Author: Kev <klmitch@mit.edu>
[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.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="ircd/ircd.c"
602 ac_default_prefix=$HOME
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 #  include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #  include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_subst_vars='LTLIBOBJS
640 LIBOBJS
641 DPATH
642 IRCDGRP
643 IRCDOWN
644 IRCDMODE
645 SYMLINK
646 INSTALL_RULE
647 ENGINE_C
648 YFLAGS
649 YACC
650 LEXLIB
651 LEX_OUTPUT_ROOT
652 LEX
653 SHPROG
654 RMPROG
655 LN_S
656 INSTALL_DATA
657 INSTALL_SCRIPT
658 INSTALL_PROGRAM
659 SET_MAKE
660 AWK
661 EGREP
662 GREP
663 CPP
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 target_alias
680 host_alias
681 build_alias
682 LIBS
683 ECHO_T
684 ECHO_N
685 ECHO_C
686 DEFS
687 mandir
688 localedir
689 libdir
690 psdir
691 pdfdir
692 dvidir
693 htmldir
694 infodir
695 docdir
696 oldincludedir
697 includedir
698 localstatedir
699 sharedstatedir
700 sysconfdir
701 datadir
702 datarootdir
703 libexecdir
704 sbindir
705 bindir
706 program_transform_name
707 prefix
708 exec_prefix
709 PACKAGE_BUGREPORT
710 PACKAGE_STRING
711 PACKAGE_VERSION
712 PACKAGE_TARNAME
713 PACKAGE_NAME
714 PATH_SEPARATOR
715 SHELL'
716 ac_subst_files=''
717 ac_user_opts='
718 enable_option_checking
719 enable_poll
720 enable_debug
721 with_leak_detect
722 with_ipv6
723 enable_asserts
724 enable_profile
725 enable_pedantic
726 enable_warnings
727 enable_inlines
728 enable_devpoll
729 enable_kqueue
730 enable_epoll
731 with_symlink
732 with_mode
733 with_owner
734 with_group
735 with_domain
736 with_chroot
737 with_dpath
738 with_cpath
739 with_lpath
740 with_maxcon
741 '
742       ac_precious_vars='build_alias
743 host_alias
744 target_alias
745 CC
746 CFLAGS
747 LDFLAGS
748 LIBS
749 CPPFLAGS
750 CPP
751 YACC
752 YFLAGS'
753
754
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 ac_unrecognized_opts=
759 ac_unrecognized_sep=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
762 cache_file=/dev/null
763 exec_prefix=NONE
764 no_create=
765 no_recursion=
766 prefix=NONE
767 program_prefix=NONE
768 program_suffix=NONE
769 program_transform_name=s,x,x,
770 silent=
771 site=
772 srcdir=
773 verbose=
774 x_includes=NONE
775 x_libraries=NONE
776
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE}'
794 infodir='${datarootdir}/info'
795 htmldir='${docdir}'
796 dvidir='${docdir}'
797 pdfdir='${docdir}'
798 psdir='${docdir}'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
802
803 ac_prev=
804 ac_dashdash=
805 for ac_option
806 do
807   # If the previous option needs an argument, assign it.
808   if test -n "$ac_prev"; then
809     eval $ac_prev=\$ac_option
810     ac_prev=
811     continue
812   fi
813
814   case $ac_option in
815   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816   *)    ac_optarg=yes ;;
817   esac
818
819   # Accept the important Cygnus configure options, so we can diagnose typos.
820
821   case $ac_dashdash$ac_option in
822   --)
823     ac_dashdash=yes ;;
824
825   -bindir | --bindir | --bindi | --bind | --bin | --bi)
826     ac_prev=bindir ;;
827   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828     bindir=$ac_optarg ;;
829
830   -build | --build | --buil | --bui | --bu)
831     ac_prev=build_alias ;;
832   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833     build_alias=$ac_optarg ;;
834
835   -cache-file | --cache-file | --cache-fil | --cache-fi \
836   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837     ac_prev=cache_file ;;
838   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840     cache_file=$ac_optarg ;;
841
842   --config-cache | -C)
843     cache_file=config.cache ;;
844
845   -datadir | --datadir | --datadi | --datad)
846     ac_prev=datadir ;;
847   -datadir=* | --datadir=* | --datadi=* | --datad=*)
848     datadir=$ac_optarg ;;
849
850   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851   | --dataroo | --dataro | --datar)
852     ac_prev=datarootdir ;;
853   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855     datarootdir=$ac_optarg ;;
856
857   -disable-* | --disable-*)
858     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859     # Reject names that are not valid shell variable names.
860     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
862    { (exit 1); exit 1; }; }
863     ac_useropt_orig=$ac_useropt
864     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
865     case $ac_user_opts in
866       *"
867 "enable_$ac_useropt"
868 "*) ;;
869       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
870          ac_unrecognized_sep=', ';;
871     esac
872     eval enable_$ac_useropt=no ;;
873
874   -docdir | --docdir | --docdi | --doc | --do)
875     ac_prev=docdir ;;
876   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
877     docdir=$ac_optarg ;;
878
879   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
880     ac_prev=dvidir ;;
881   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
882     dvidir=$ac_optarg ;;
883
884   -enable-* | --enable-*)
885     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
886     # Reject names that are not valid shell variable names.
887     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
888       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
889    { (exit 1); exit 1; }; }
890     ac_useropt_orig=$ac_useropt
891     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892     case $ac_user_opts in
893       *"
894 "enable_$ac_useropt"
895 "*) ;;
896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897          ac_unrecognized_sep=', ';;
898     esac
899     eval enable_$ac_useropt=\$ac_optarg ;;
900
901   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
902   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
903   | --exec | --exe | --ex)
904     ac_prev=exec_prefix ;;
905   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
906   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
907   | --exec=* | --exe=* | --ex=*)
908     exec_prefix=$ac_optarg ;;
909
910   -gas | --gas | --ga | --g)
911     # Obsolete; use --with-gas.
912     with_gas=yes ;;
913
914   -help | --help | --hel | --he | -h)
915     ac_init_help=long ;;
916   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
917     ac_init_help=recursive ;;
918   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
919     ac_init_help=short ;;
920
921   -host | --host | --hos | --ho)
922     ac_prev=host_alias ;;
923   -host=* | --host=* | --hos=* | --ho=*)
924     host_alias=$ac_optarg ;;
925
926   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
927     ac_prev=htmldir ;;
928   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
929   | --ht=*)
930     htmldir=$ac_optarg ;;
931
932   -includedir | --includedir | --includedi | --included | --include \
933   | --includ | --inclu | --incl | --inc)
934     ac_prev=includedir ;;
935   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
936   | --includ=* | --inclu=* | --incl=* | --inc=*)
937     includedir=$ac_optarg ;;
938
939   -infodir | --infodir | --infodi | --infod | --info | --inf)
940     ac_prev=infodir ;;
941   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
942     infodir=$ac_optarg ;;
943
944   -libdir | --libdir | --libdi | --libd)
945     ac_prev=libdir ;;
946   -libdir=* | --libdir=* | --libdi=* | --libd=*)
947     libdir=$ac_optarg ;;
948
949   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
950   | --libexe | --libex | --libe)
951     ac_prev=libexecdir ;;
952   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
953   | --libexe=* | --libex=* | --libe=*)
954     libexecdir=$ac_optarg ;;
955
956   -localedir | --localedir | --localedi | --localed | --locale)
957     ac_prev=localedir ;;
958   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
959     localedir=$ac_optarg ;;
960
961   -localstatedir | --localstatedir | --localstatedi | --localstated \
962   | --localstate | --localstat | --localsta | --localst | --locals)
963     ac_prev=localstatedir ;;
964   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
965   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
966     localstatedir=$ac_optarg ;;
967
968   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
969     ac_prev=mandir ;;
970   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
971     mandir=$ac_optarg ;;
972
973   -nfp | --nfp | --nf)
974     # Obsolete; use --without-fp.
975     with_fp=no ;;
976
977   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
978   | --no-cr | --no-c | -n)
979     no_create=yes ;;
980
981   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
982   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
983     no_recursion=yes ;;
984
985   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
986   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
987   | --oldin | --oldi | --old | --ol | --o)
988     ac_prev=oldincludedir ;;
989   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
990   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
991   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
992     oldincludedir=$ac_optarg ;;
993
994   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
995     ac_prev=prefix ;;
996   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
997     prefix=$ac_optarg ;;
998
999   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1000   | --program-pre | --program-pr | --program-p)
1001     ac_prev=program_prefix ;;
1002   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1003   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1004     program_prefix=$ac_optarg ;;
1005
1006   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1007   | --program-suf | --program-su | --program-s)
1008     ac_prev=program_suffix ;;
1009   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1010   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1011     program_suffix=$ac_optarg ;;
1012
1013   -program-transform-name | --program-transform-name \
1014   | --program-transform-nam | --program-transform-na \
1015   | --program-transform-n | --program-transform- \
1016   | --program-transform | --program-transfor \
1017   | --program-transfo | --program-transf \
1018   | --program-trans | --program-tran \
1019   | --progr-tra | --program-tr | --program-t)
1020     ac_prev=program_transform_name ;;
1021   -program-transform-name=* | --program-transform-name=* \
1022   | --program-transform-nam=* | --program-transform-na=* \
1023   | --program-transform-n=* | --program-transform-=* \
1024   | --program-transform=* | --program-transfor=* \
1025   | --program-transfo=* | --program-transf=* \
1026   | --program-trans=* | --program-tran=* \
1027   | --progr-tra=* | --program-tr=* | --program-t=*)
1028     program_transform_name=$ac_optarg ;;
1029
1030   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1031     ac_prev=pdfdir ;;
1032   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1033     pdfdir=$ac_optarg ;;
1034
1035   -psdir | --psdir | --psdi | --psd | --ps)
1036     ac_prev=psdir ;;
1037   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1038     psdir=$ac_optarg ;;
1039
1040   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1041   | -silent | --silent | --silen | --sile | --sil)
1042     silent=yes ;;
1043
1044   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1045     ac_prev=sbindir ;;
1046   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1047   | --sbi=* | --sb=*)
1048     sbindir=$ac_optarg ;;
1049
1050   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1051   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1052   | --sharedst | --shareds | --shared | --share | --shar \
1053   | --sha | --sh)
1054     ac_prev=sharedstatedir ;;
1055   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1056   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1057   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1058   | --sha=* | --sh=*)
1059     sharedstatedir=$ac_optarg ;;
1060
1061   -site | --site | --sit)
1062     ac_prev=site ;;
1063   -site=* | --site=* | --sit=*)
1064     site=$ac_optarg ;;
1065
1066   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1067     ac_prev=srcdir ;;
1068   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1069     srcdir=$ac_optarg ;;
1070
1071   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1072   | --syscon | --sysco | --sysc | --sys | --sy)
1073     ac_prev=sysconfdir ;;
1074   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1075   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1076     sysconfdir=$ac_optarg ;;
1077
1078   -target | --target | --targe | --targ | --tar | --ta | --t)
1079     ac_prev=target_alias ;;
1080   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1081     target_alias=$ac_optarg ;;
1082
1083   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1084     verbose=yes ;;
1085
1086   -version | --version | --versio | --versi | --vers | -V)
1087     ac_init_version=: ;;
1088
1089   -with-* | --with-*)
1090     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1091     # Reject names that are not valid shell variable names.
1092     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1093       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1094    { (exit 1); exit 1; }; }
1095     ac_useropt_orig=$ac_useropt
1096     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097     case $ac_user_opts in
1098       *"
1099 "with_$ac_useropt"
1100 "*) ;;
1101       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102          ac_unrecognized_sep=', ';;
1103     esac
1104     eval with_$ac_useropt=\$ac_optarg ;;
1105
1106   -without-* | --without-*)
1107     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108     # Reject names that are not valid shell variable names.
1109     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1111    { (exit 1); exit 1; }; }
1112     ac_useropt_orig=$ac_useropt
1113     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114     case $ac_user_opts in
1115       *"
1116 "with_$ac_useropt"
1117 "*) ;;
1118       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119          ac_unrecognized_sep=', ';;
1120     esac
1121     eval with_$ac_useropt=no ;;
1122
1123   --x)
1124     # Obsolete; use --with-x.
1125     with_x=yes ;;
1126
1127   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128   | --x-incl | --x-inc | --x-in | --x-i)
1129     ac_prev=x_includes ;;
1130   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132     x_includes=$ac_optarg ;;
1133
1134   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136     ac_prev=x_libraries ;;
1137   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139     x_libraries=$ac_optarg ;;
1140
1141   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1142 Try \`$0 --help' for more information." >&2
1143    { (exit 1); exit 1; }; }
1144     ;;
1145
1146   *=*)
1147     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1148     # Reject names that are not valid shell variable names.
1149     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1150       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1151    { (exit 1); exit 1; }; }
1152     eval $ac_envvar=\$ac_optarg
1153     export $ac_envvar ;;
1154
1155   *)
1156     # FIXME: should be removed in autoconf 3.0.
1157     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1161     ;;
1162
1163   esac
1164 done
1165
1166 if test -n "$ac_prev"; then
1167   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1169    { (exit 1); exit 1; }; }
1170 fi
1171
1172 if test -n "$ac_unrecognized_opts"; then
1173   case $enable_option_checking in
1174     no) ;;
1175     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1176    { (exit 1); exit 1; }; } ;;
1177     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178   esac
1179 fi
1180
1181 # Check all directory arguments for consistency.
1182 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183                 datadir sysconfdir sharedstatedir localstatedir includedir \
1184                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185                 libdir localedir mandir
1186 do
1187   eval ac_val=\$$ac_var
1188   # Remove trailing slashes.
1189   case $ac_val in
1190     */ )
1191       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192       eval $ac_var=\$ac_val;;
1193   esac
1194   # Be sure to have absolute directory names.
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1200    { (exit 1); exit 1; }; }
1201 done
1202
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1209
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212   if test "x$build_alias" = x; then
1213     cross_compiling=maybe
1214     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215     If a cross compiler is detected then cross compile mode will be used." >&2
1216   elif test "x$build_alias" != "x$host_alias"; then
1217     cross_compiling=yes
1218   fi
1219 fi
1220
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1223
1224 test "$silent" = yes && exec 6>/dev/null
1225
1226
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1231    { (exit 1); exit 1; }; }
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1234    { (exit 1); exit 1; }; }
1235
1236
1237 # Find the source files, if location was not specified.
1238 if test -z "$srcdir"; then
1239   ac_srcdir_defaulted=yes
1240   # Try the directory containing this script, then the parent directory.
1241   ac_confdir=`$as_dirname -- "$as_myself" ||
1242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1243          X"$as_myself" : 'X\(//\)[^/]' \| \
1244          X"$as_myself" : 'X\(//\)$' \| \
1245          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1246 $as_echo X"$as_myself" |
1247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248             s//\1/
1249             q
1250           }
1251           /^X\(\/\/\)[^/].*/{
1252             s//\1/
1253             q
1254           }
1255           /^X\(\/\/\)$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\).*/{
1260             s//\1/
1261             q
1262           }
1263           s/.*/./; q'`
1264   srcdir=$ac_confdir
1265   if test ! -r "$srcdir/$ac_unique_file"; then
1266     srcdir=..
1267   fi
1268 else
1269   ac_srcdir_defaulted=no
1270 fi
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1273   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1274    { (exit 1); exit 1; }; }
1275 fi
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1279    { (exit 1); exit 1; }; }
1280         pwd)`
1281 # When building in place, set srcdir=.
1282 if test "$ac_abs_confdir" = "$ac_pwd"; then
1283   srcdir=.
1284 fi
1285 # Remove unnecessary trailing slashes from srcdir.
1286 # Double slashes in file names in object file debugging info
1287 # mess up M-x gdb in Emacs.
1288 case $srcdir in
1289 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1290 esac
1291 for ac_var in $ac_precious_vars; do
1292   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1293   eval ac_env_${ac_var}_value=\$${ac_var}
1294   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1295   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1296 done
1297
1298 #
1299 # Report the --help message.
1300 #
1301 if test "$ac_init_help" = "long"; then
1302   # Omit some internal or obsolete options to make the list less imposing.
1303   # This message is too long to be a string in the A/UX 3.1 sh.
1304   cat <<_ACEOF
1305 \`configure' configures this package to adapt to many kinds of systems.
1306
1307 Usage: $0 [OPTION]... [VAR=VALUE]...
1308
1309 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1310 VAR=VALUE.  See below for descriptions of some of the useful variables.
1311
1312 Defaults for the options are specified in brackets.
1313
1314 Configuration:
1315   -h, --help              display this help and exit
1316       --help=short        display options specific to this package
1317       --help=recursive    display the short help of all the included packages
1318   -V, --version           display version information and exit
1319   -q, --quiet, --silent   do not print \`checking...' messages
1320       --cache-file=FILE   cache test results in FILE [disabled]
1321   -C, --config-cache      alias for \`--cache-file=config.cache'
1322   -n, --no-create         do not create output files
1323       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1324
1325 Installation directories:
1326   --prefix=PREFIX         install architecture-independent files in PREFIX
1327                           [$ac_default_prefix]
1328   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1329                           [PREFIX]
1330
1331 By default, \`make install' will install all the files in
1332 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1333 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1334 for instance \`--prefix=\$HOME'.
1335
1336 For better control, use the options below.
1337
1338 Fine tuning of the installation directories:
1339   --bindir=DIR            user executables [EPREFIX/bin]
1340   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1341   --libexecdir=DIR        program executables [EPREFIX/libexec]
1342   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1343   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1344   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1345   --libdir=DIR            object code libraries [EPREFIX/lib]
1346   --includedir=DIR        C header files [PREFIX/include]
1347   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1348   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1349   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1350   --infodir=DIR           info documentation [DATAROOTDIR/info]
1351   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1352   --mandir=DIR            man documentation [DATAROOTDIR/man]
1353   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1354   --htmldir=DIR           html documentation [DOCDIR]
1355   --dvidir=DIR            dvi documentation [DOCDIR]
1356   --pdfdir=DIR            pdf documentation [DOCDIR]
1357   --psdir=DIR             ps documentation [DOCDIR]
1358 _ACEOF
1359
1360   cat <<\_ACEOF
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369
1370   cat <<\_ACEOF
1371
1372 Optional Features:
1373   --disable-option-checking  ignore unrecognized --enable/--with options
1374   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1375   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1376   --enable-poll           Force poll to be used regardless of whether or not
1377                           it is a system call
1378   --enable-debug          Turn on debugging mode
1379   --disable-asserts       Disable assertion checking
1380   --enable-profile        Enable profiling support (add -pg to CFLAGS and LDFLAGS)
1381   --enable-pedantic       Enable pedantic warnings (add -pedantic to CFLAGS)
1382   --enable-warnings       Enable warnings (add -Wall to CFLAGS)
1383   --disable-inlines       Disable inlining for a few critical functions
1384   --disable-devpoll       Disable the /dev/poll-based engine
1385   --disable-kqueue        Disable the kqueue-based engine
1386   --disable-epoll         Disable the epoll-based engine
1387
1388 Optional Packages:
1389   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1390   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1391   --with-leak-detect          Turn on the leak detector(requires patched boehm)
1392   --without-ipv6          disable IPv6 support (default is autodetect)
1393   --with-symlink=name     Name to give the symlink; if name is "no," no
1394                           symlink will be created.
1395   --with-mode=mode        Permissions (in octal) to give the binary
1396   --with-owner=owner      Specify owner of the installed binary
1397   --with-group=group      Specify group owner of the installed binary
1398   --with-domain=domain    Domain name to use in local statistics gathering
1399   --with-chroot=dir       Specify that the server will be operated under
1400                           a different root directory given by dir.  See
1401                           doc/readme.chroot for more information.
1402   --with-dpath=dir        Directory for all server data files
1403   --with-cpath=file       Set server configuration file
1404   --with-lpath=file       Set the debugging log file
1405   --with-maxcon=maxcon    Maximum number of connections server will accept
1406
1407 Some influential environment variables:
1408   CC          C compiler command
1409   CFLAGS      C compiler flags
1410   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1411               nonstandard directory <lib dir>
1412   LIBS        libraries to pass to the linker, e.g. -l<library>
1413   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1414               you have headers in a nonstandard directory <include dir>
1415   CPP         C preprocessor
1416   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1417               the first program found out of: `bison -y', `byacc', `yacc'.
1418   YFLAGS      The list of arguments that will be passed by default to $YACC.
1419               This script will default YFLAGS to the empty string to avoid a
1420               default value of `-d' given by some make applications.
1421
1422 Use these variables to override the choices made by `configure' or to help
1423 it to find libraries and programs with nonstandard names/locations.
1424
1425 _ACEOF
1426 ac_status=$?
1427 fi
1428
1429 if test "$ac_init_help" = "recursive"; then
1430   # If there are subdirs, report their specific --help.
1431   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1432     test -d "$ac_dir" ||
1433       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1434       continue
1435     ac_builddir=.
1436
1437 case "$ac_dir" in
1438 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1439 *)
1440   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1441   # A ".." for each directory in $ac_dir_suffix.
1442   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1443   case $ac_top_builddir_sub in
1444   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1446   esac ;;
1447 esac
1448 ac_abs_top_builddir=$ac_pwd
1449 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1450 # for backward compatibility:
1451 ac_top_builddir=$ac_top_build_prefix
1452
1453 case $srcdir in
1454   .)  # We are building in place.
1455     ac_srcdir=.
1456     ac_top_srcdir=$ac_top_builddir_sub
1457     ac_abs_top_srcdir=$ac_pwd ;;
1458   [\\/]* | ?:[\\/]* )  # Absolute name.
1459     ac_srcdir=$srcdir$ac_dir_suffix;
1460     ac_top_srcdir=$srcdir
1461     ac_abs_top_srcdir=$srcdir ;;
1462   *) # Relative name.
1463     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1464     ac_top_srcdir=$ac_top_build_prefix$srcdir
1465     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1466 esac
1467 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1468
1469     cd "$ac_dir" || { ac_status=$?; continue; }
1470     # Check for guested configure.
1471     if test -f "$ac_srcdir/configure.gnu"; then
1472       echo &&
1473       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1474     elif test -f "$ac_srcdir/configure"; then
1475       echo &&
1476       $SHELL "$ac_srcdir/configure" --help=recursive
1477     else
1478       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1479     fi || ac_status=$?
1480     cd "$ac_pwd" || { ac_status=$?; break; }
1481   done
1482 fi
1483
1484 test -n "$ac_init_help" && exit $ac_status
1485 if $ac_init_version; then
1486   cat <<\_ACEOF
1487 configure
1488 generated by GNU Autoconf 2.63
1489
1490 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1491 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1492 This configure script is free software; the Free Software Foundation
1493 gives unlimited permission to copy, distribute and modify it.
1494 _ACEOF
1495   exit
1496 fi
1497 cat >config.log <<_ACEOF
1498 This file contains any messages produced by compilers while
1499 running configure, to aid debugging if configure makes a mistake.
1500
1501 It was created by $as_me, which was
1502 generated by GNU Autoconf 2.63.  Invocation command line was
1503
1504   $ $0 $@
1505
1506 _ACEOF
1507 exec 5>>config.log
1508 {
1509 cat <<_ASUNAME
1510 ## --------- ##
1511 ## Platform. ##
1512 ## --------- ##
1513
1514 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1515 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1516 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1517 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1518 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1519
1520 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1521 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1522
1523 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1524 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1525 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1526 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1527 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1528 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1529 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1530
1531 _ASUNAME
1532
1533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1534 for as_dir in $PATH
1535 do
1536   IFS=$as_save_IFS
1537   test -z "$as_dir" && as_dir=.
1538   $as_echo "PATH: $as_dir"
1539 done
1540 IFS=$as_save_IFS
1541
1542 } >&5
1543
1544 cat >&5 <<_ACEOF
1545
1546
1547 ## ----------- ##
1548 ## Core tests. ##
1549 ## ----------- ##
1550
1551 _ACEOF
1552
1553
1554 # Keep a trace of the command line.
1555 # Strip out --no-create and --no-recursion so they do not pile up.
1556 # Strip out --silent because we don't want to record it for future runs.
1557 # Also quote any args containing shell meta-characters.
1558 # Make two passes to allow for proper duplicate-argument suppression.
1559 ac_configure_args=
1560 ac_configure_args0=
1561 ac_configure_args1=
1562 ac_must_keep_next=false
1563 for ac_pass in 1 2
1564 do
1565   for ac_arg
1566   do
1567     case $ac_arg in
1568     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1569     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1570     | -silent | --silent | --silen | --sile | --sil)
1571       continue ;;
1572     *\'*)
1573       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1574     esac
1575     case $ac_pass in
1576     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1577     2)
1578       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1579       if test $ac_must_keep_next = true; then
1580         ac_must_keep_next=false # Got value, back to normal.
1581       else
1582         case $ac_arg in
1583           *=* | --config-cache | -C | -disable-* | --disable-* \
1584           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1585           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1586           | -with-* | --with-* | -without-* | --without-* | --x)
1587             case "$ac_configure_args0 " in
1588               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1589             esac
1590             ;;
1591           -* ) ac_must_keep_next=true ;;
1592         esac
1593       fi
1594       ac_configure_args="$ac_configure_args '$ac_arg'"
1595       ;;
1596     esac
1597   done
1598 done
1599 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1600 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1601
1602 # When interrupted or exit'd, cleanup temporary files, and complete
1603 # config.log.  We remove comments because anyway the quotes in there
1604 # would cause problems or look ugly.
1605 # WARNING: Use '\'' to represent an apostrophe within the trap.
1606 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1607 trap 'exit_status=$?
1608   # Save into config.log some information that might help in debugging.
1609   {
1610     echo
1611
1612     cat <<\_ASBOX
1613 ## ---------------- ##
1614 ## Cache variables. ##
1615 ## ---------------- ##
1616 _ASBOX
1617     echo
1618     # The following way of writing the cache mishandles newlines in values,
1619 (
1620   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1621     eval ac_val=\$$ac_var
1622     case $ac_val in #(
1623     *${as_nl}*)
1624       case $ac_var in #(
1625       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1626 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1627       esac
1628       case $ac_var in #(
1629       _ | IFS | as_nl) ;; #(
1630       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1631       *) $as_unset $ac_var ;;
1632       esac ;;
1633     esac
1634   done
1635   (set) 2>&1 |
1636     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1637     *${as_nl}ac_space=\ *)
1638       sed -n \
1639         "s/'\''/'\''\\\\'\'''\''/g;
1640           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1641       ;; #(
1642     *)
1643       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1644       ;;
1645     esac |
1646     sort
1647 )
1648     echo
1649
1650     cat <<\_ASBOX
1651 ## ----------------- ##
1652 ## Output variables. ##
1653 ## ----------------- ##
1654 _ASBOX
1655     echo
1656     for ac_var in $ac_subst_vars
1657     do
1658       eval ac_val=\$$ac_var
1659       case $ac_val in
1660       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1661       esac
1662       $as_echo "$ac_var='\''$ac_val'\''"
1663     done | sort
1664     echo
1665
1666     if test -n "$ac_subst_files"; then
1667       cat <<\_ASBOX
1668 ## ------------------- ##
1669 ## File substitutions. ##
1670 ## ------------------- ##
1671 _ASBOX
1672       echo
1673       for ac_var in $ac_subst_files
1674       do
1675         eval ac_val=\$$ac_var
1676         case $ac_val in
1677         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1678         esac
1679         $as_echo "$ac_var='\''$ac_val'\''"
1680       done | sort
1681       echo
1682     fi
1683
1684     if test -s confdefs.h; then
1685       cat <<\_ASBOX
1686 ## ----------- ##
1687 ## confdefs.h. ##
1688 ## ----------- ##
1689 _ASBOX
1690       echo
1691       cat confdefs.h
1692       echo
1693     fi
1694     test "$ac_signal" != 0 &&
1695       $as_echo "$as_me: caught signal $ac_signal"
1696     $as_echo "$as_me: exit $exit_status"
1697   } >&5
1698   rm -f core *.core core.conftest.* &&
1699     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1700     exit $exit_status
1701 ' 0
1702 for ac_signal in 1 2 13 15; do
1703   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1704 done
1705 ac_signal=0
1706
1707 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1708 rm -f -r conftest* confdefs.h
1709
1710 # Predefined preprocessor variables.
1711
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_NAME "$PACKAGE_NAME"
1714 _ACEOF
1715
1716
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1719 _ACEOF
1720
1721
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1724 _ACEOF
1725
1726
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_STRING "$PACKAGE_STRING"
1729 _ACEOF
1730
1731
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1734 _ACEOF
1735
1736
1737 # Let the site file select an alternate cache file if it wants to.
1738 # Prefer an explicitly selected file to automatically selected ones.
1739 ac_site_file1=NONE
1740 ac_site_file2=NONE
1741 if test -n "$CONFIG_SITE"; then
1742   ac_site_file1=$CONFIG_SITE
1743 elif test "x$prefix" != xNONE; then
1744   ac_site_file1=$prefix/share/config.site
1745   ac_site_file2=$prefix/etc/config.site
1746 else
1747   ac_site_file1=$ac_default_prefix/share/config.site
1748   ac_site_file2=$ac_default_prefix/etc/config.site
1749 fi
1750 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1751 do
1752   test "x$ac_site_file" = xNONE && continue
1753   if test -r "$ac_site_file"; then
1754     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1755 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1756     sed 's/^/| /' "$ac_site_file" >&5
1757     . "$ac_site_file"
1758   fi
1759 done
1760
1761 if test -r "$cache_file"; then
1762   # Some versions of bash will fail to source /dev/null (special
1763   # files actually), so we avoid doing that.
1764   if test -f "$cache_file"; then
1765     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1766 $as_echo "$as_me: loading cache $cache_file" >&6;}
1767     case $cache_file in
1768       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1769       *)                      . "./$cache_file";;
1770     esac
1771   fi
1772 else
1773   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1774 $as_echo "$as_me: creating cache $cache_file" >&6;}
1775   >$cache_file
1776 fi
1777
1778 # Check that the precious variables saved in the cache have kept the same
1779 # value.
1780 ac_cache_corrupted=false
1781 for ac_var in $ac_precious_vars; do
1782   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1783   eval ac_new_set=\$ac_env_${ac_var}_set
1784   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1785   eval ac_new_val=\$ac_env_${ac_var}_value
1786   case $ac_old_set,$ac_new_set in
1787     set,)
1788       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1789 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1790       ac_cache_corrupted=: ;;
1791     ,set)
1792       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1793 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1794       ac_cache_corrupted=: ;;
1795     ,);;
1796     *)
1797       if test "x$ac_old_val" != "x$ac_new_val"; then
1798         # differences in whitespace do not lead to failure.
1799         ac_old_val_w=`echo x $ac_old_val`
1800         ac_new_val_w=`echo x $ac_new_val`
1801         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1802           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1803 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1804           ac_cache_corrupted=:
1805         else
1806           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1807 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1808           eval $ac_var=\$ac_old_val
1809         fi
1810         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1811 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1812         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1813 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1814       fi;;
1815   esac
1816   # Pass precious variables to config.status.
1817   if test "$ac_new_set" = set; then
1818     case $ac_new_val in
1819     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1820     *) ac_arg=$ac_var=$ac_new_val ;;
1821     esac
1822     case " $ac_configure_args " in
1823       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1824       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1825     esac
1826   fi
1827 done
1828 if $ac_cache_corrupted; then
1829   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1831   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1832 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1833   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1834 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1835    { (exit 1); exit 1; }; }
1836 fi
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854 ac_ext=c
1855 ac_cpp='$CPP $CPPFLAGS'
1856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1859
1860
1861
1862
1863 { $as_echo "$as_me:$LINENO: checking for installation prefix" >&5
1864 $as_echo_n "checking for installation prefix... " >&6; }
1865 if test "${unet_cv_prefix+set}" = set; then
1866   $as_echo_n "(cached) " >&6
1867 else
1868   unet_cv_prefix=$HOME
1869 fi
1870
1871 if test x"$prefix" != xNONE; then
1872     unet_cv_prefix=$prefix
1873 fi
1874 { $as_echo "$as_me:$LINENO: result: $unet_cv_prefix" >&5
1875 $as_echo "$unet_cv_prefix" >&6; }
1876 ac_default_prefix=$unet_cv_prefix
1877
1878 ac_config_headers="$ac_config_headers config.h"
1879
1880
1881
1882
1883 ac_aux_dir=
1884 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1885   if test -f "$ac_dir/install-sh"; then
1886     ac_aux_dir=$ac_dir
1887     ac_install_sh="$ac_aux_dir/install-sh -c"
1888     break
1889   elif test -f "$ac_dir/install.sh"; then
1890     ac_aux_dir=$ac_dir
1891     ac_install_sh="$ac_aux_dir/install.sh -c"
1892     break
1893   elif test -f "$ac_dir/shtool"; then
1894     ac_aux_dir=$ac_dir
1895     ac_install_sh="$ac_aux_dir/shtool install -c"
1896     break
1897   fi
1898 done
1899 if test -z "$ac_aux_dir"; then
1900   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1901 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1902    { (exit 1); exit 1; }; }
1903 fi
1904
1905 # These three variables are undocumented and unsupported,
1906 # and are intended to be withdrawn in a future Autoconf release.
1907 # They can cause serious problems if a builder's source tree is in a directory
1908 # whose full name contains unusual characters.
1909 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1910 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1911 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1912
1913
1914 # Make sure we can run config.sub.
1915 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1916   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1917 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1918    { (exit 1); exit 1; }; }
1919
1920 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1921 $as_echo_n "checking build system type... " >&6; }
1922 if test "${ac_cv_build+set}" = set; then
1923   $as_echo_n "(cached) " >&6
1924 else
1925   ac_build_alias=$build_alias
1926 test "x$ac_build_alias" = x &&
1927   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1928 test "x$ac_build_alias" = x &&
1929   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1930 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1931    { (exit 1); exit 1; }; }
1932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1933   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1934 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1935    { (exit 1); exit 1; }; }
1936
1937 fi
1938 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1939 $as_echo "$ac_cv_build" >&6; }
1940 case $ac_cv_build in
1941 *-*-*) ;;
1942 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1943 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
1944    { (exit 1); exit 1; }; };;
1945 esac
1946 build=$ac_cv_build
1947 ac_save_IFS=$IFS; IFS='-'
1948 set x $ac_cv_build
1949 shift
1950 build_cpu=$1
1951 build_vendor=$2
1952 shift; shift
1953 # Remember, the first character of IFS is used to create $*,
1954 # except with old shells:
1955 build_os=$*
1956 IFS=$ac_save_IFS
1957 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1958
1959
1960 { $as_echo "$as_me:$LINENO: checking host system type" >&5
1961 $as_echo_n "checking host system type... " >&6; }
1962 if test "${ac_cv_host+set}" = set; then
1963   $as_echo_n "(cached) " >&6
1964 else
1965   if test "x$host_alias" = x; then
1966   ac_cv_host=$ac_cv_build
1967 else
1968   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1969     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1970 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974 fi
1975 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1976 $as_echo "$ac_cv_host" >&6; }
1977 case $ac_cv_host in
1978 *-*-*) ;;
1979 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1980 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
1981    { (exit 1); exit 1; }; };;
1982 esac
1983 host=$ac_cv_host
1984 ac_save_IFS=$IFS; IFS='-'
1985 set x $ac_cv_host
1986 shift
1987 host_cpu=$1
1988 host_vendor=$2
1989 shift; shift
1990 # Remember, the first character of IFS is used to create $*,
1991 # except with old shells:
1992 host_os=$*
1993 IFS=$ac_save_IFS
1994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1995
1996
1997
1998 ac_ext=c
1999 ac_cpp='$CPP $CPPFLAGS'
2000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2003 if test -n "$ac_tool_prefix"; then
2004   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2007 $as_echo_n "checking for $ac_word... " >&6; }
2008 if test "${ac_cv_prog_CC+set}" = set; then
2009   $as_echo_n "(cached) " >&6
2010 else
2011   if test -n "$CC"; then
2012   ac_cv_prog_CC="$CC" # Let the user override the test.
2013 else
2014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 for as_dir in $PATH
2016 do
2017   IFS=$as_save_IFS
2018   test -z "$as_dir" && as_dir=.
2019   for ac_exec_ext in '' $ac_executable_extensions; do
2020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2021     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023     break 2
2024   fi
2025 done
2026 done
2027 IFS=$as_save_IFS
2028
2029 fi
2030 fi
2031 CC=$ac_cv_prog_CC
2032 if test -n "$CC"; then
2033   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2034 $as_echo "$CC" >&6; }
2035 else
2036   { $as_echo "$as_me:$LINENO: result: no" >&5
2037 $as_echo "no" >&6; }
2038 fi
2039
2040
2041 fi
2042 if test -z "$ac_cv_prog_CC"; then
2043   ac_ct_CC=$CC
2044   # Extract the first word of "gcc", so it can be a program name with args.
2045 set dummy gcc; ac_word=$2
2046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 $as_echo_n "checking for $ac_word... " >&6; }
2048 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2049   $as_echo_n "(cached) " >&6
2050 else
2051   if test -n "$ac_ct_CC"; then
2052   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     ac_cv_prog_ac_ct_CC="gcc"
2062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067 IFS=$as_save_IFS
2068
2069 fi
2070 fi
2071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2072 if test -n "$ac_ct_CC"; then
2073   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2074 $as_echo "$ac_ct_CC" >&6; }
2075 else
2076   { $as_echo "$as_me:$LINENO: result: no" >&5
2077 $as_echo "no" >&6; }
2078 fi
2079
2080   if test "x$ac_ct_CC" = x; then
2081     CC=""
2082   else
2083     case $cross_compiling:$ac_tool_warned in
2084 yes:)
2085 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2087 ac_tool_warned=yes ;;
2088 esac
2089     CC=$ac_ct_CC
2090   fi
2091 else
2092   CC="$ac_cv_prog_CC"
2093 fi
2094
2095 if test -z "$CC"; then
2096           if test -n "$ac_tool_prefix"; then
2097     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}cc; ac_word=$2
2099 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 $as_echo_n "checking for $ac_word... " >&6; }
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102   $as_echo_n "(cached) " >&6
2103 else
2104   if test -n "$CC"; then
2105   ac_cv_prog_CC="$CC" # Let the user override the test.
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   for ac_exec_ext in '' $ac_executable_extensions; do
2113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2114     ac_cv_prog_CC="${ac_tool_prefix}cc"
2115     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 fi
2123 fi
2124 CC=$ac_cv_prog_CC
2125 if test -n "$CC"; then
2126   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2127 $as_echo "$CC" >&6; }
2128 else
2129   { $as_echo "$as_me:$LINENO: result: no" >&5
2130 $as_echo "no" >&6; }
2131 fi
2132
2133
2134   fi
2135 fi
2136 if test -z "$CC"; then
2137   # Extract the first word of "cc", so it can be a program name with args.
2138 set dummy cc; ac_word=$2
2139 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 $as_echo_n "checking for $ac_word... " >&6; }
2141 if test "${ac_cv_prog_CC+set}" = set; then
2142   $as_echo_n "(cached) " >&6
2143 else
2144   if test -n "$CC"; then
2145   ac_cv_prog_CC="$CC" # Let the user override the test.
2146 else
2147   ac_prog_rejected=no
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2150 do
2151   IFS=$as_save_IFS
2152   test -z "$as_dir" && as_dir=.
2153   for ac_exec_ext in '' $ac_executable_extensions; do
2154   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2156        ac_prog_rejected=yes
2157        continue
2158      fi
2159     ac_cv_prog_CC="cc"
2160     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167 if test $ac_prog_rejected = yes; then
2168   # We found a bogon in the path, so make sure we never use it.
2169   set dummy $ac_cv_prog_CC
2170   shift
2171   if test $# != 0; then
2172     # We chose a different compiler from the bogus one.
2173     # However, it has the same basename, so the bogon will be chosen
2174     # first if we set CC to just the basename; use the full file name.
2175     shift
2176     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2177   fi
2178 fi
2179 fi
2180 fi
2181 CC=$ac_cv_prog_CC
2182 if test -n "$CC"; then
2183   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2184 $as_echo "$CC" >&6; }
2185 else
2186   { $as_echo "$as_me:$LINENO: result: no" >&5
2187 $as_echo "no" >&6; }
2188 fi
2189
2190
2191 fi
2192 if test -z "$CC"; then
2193   if test -n "$ac_tool_prefix"; then
2194   for ac_prog in cl.exe
2195   do
2196     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2198 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2199 $as_echo_n "checking for $ac_word... " >&6; }
2200 if test "${ac_cv_prog_CC+set}" = set; then
2201   $as_echo_n "(cached) " >&6
2202 else
2203   if test -n "$CC"; then
2204   ac_cv_prog_CC="$CC" # Let the user override the test.
2205 else
2206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2207 for as_dir in $PATH
2208 do
2209   IFS=$as_save_IFS
2210   test -z "$as_dir" && as_dir=.
2211   for ac_exec_ext in '' $ac_executable_extensions; do
2212   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2213     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2214     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2215     break 2
2216   fi
2217 done
2218 done
2219 IFS=$as_save_IFS
2220
2221 fi
2222 fi
2223 CC=$ac_cv_prog_CC
2224 if test -n "$CC"; then
2225   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2226 $as_echo "$CC" >&6; }
2227 else
2228   { $as_echo "$as_me:$LINENO: result: no" >&5
2229 $as_echo "no" >&6; }
2230 fi
2231
2232
2233     test -n "$CC" && break
2234   done
2235 fi
2236 if test -z "$CC"; then
2237   ac_ct_CC=$CC
2238   for ac_prog in cl.exe
2239 do
2240   # Extract the first word of "$ac_prog", so it can be a program name with args.
2241 set dummy $ac_prog; ac_word=$2
2242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 $as_echo_n "checking for $ac_word... " >&6; }
2244 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2245   $as_echo_n "(cached) " >&6
2246 else
2247   if test -n "$ac_ct_CC"; then
2248   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257     ac_cv_prog_ac_ct_CC="$ac_prog"
2258     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259     break 2
2260   fi
2261 done
2262 done
2263 IFS=$as_save_IFS
2264
2265 fi
2266 fi
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 $as_echo "$ac_ct_CC" >&6; }
2271 else
2272   { $as_echo "$as_me:$LINENO: result: no" >&5
2273 $as_echo "no" >&6; }
2274 fi
2275
2276
2277   test -n "$ac_ct_CC" && break
2278 done
2279
2280   if test "x$ac_ct_CC" = x; then
2281     CC=""
2282   else
2283     case $cross_compiling:$ac_tool_warned in
2284 yes:)
2285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2287 ac_tool_warned=yes ;;
2288 esac
2289     CC=$ac_ct_CC
2290   fi
2291 fi
2292
2293 fi
2294
2295
2296 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2299 See \`config.log' for more details." >&5
2300 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2301 See \`config.log' for more details." >&2;}
2302    { (exit 1); exit 1; }; }; }
2303
2304 # Provide some information about the compiler.
2305 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2306 set X $ac_compile
2307 ac_compiler=$2
2308 { (ac_try="$ac_compiler --version >&5"
2309 case "(($ac_try" in
2310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2311   *) ac_try_echo=$ac_try;;
2312 esac
2313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2314 $as_echo "$ac_try_echo") >&5
2315   (eval "$ac_compiler --version >&5") 2>&5
2316   ac_status=$?
2317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }
2319 { (ac_try="$ac_compiler -v >&5"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2325 $as_echo "$ac_try_echo") >&5
2326   (eval "$ac_compiler -v >&5") 2>&5
2327   ac_status=$?
2328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }
2330 { (ac_try="$ac_compiler -V >&5"
2331 case "(($ac_try" in
2332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2333   *) ac_try_echo=$ac_try;;
2334 esac
2335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2336 $as_echo "$ac_try_echo") >&5
2337   (eval "$ac_compiler -V >&5") 2>&5
2338   ac_status=$?
2339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); }
2341
2342 cat >conftest.$ac_ext <<_ACEOF
2343 /* confdefs.h.  */
2344 _ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h.  */
2348
2349 int
2350 main ()
2351 {
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 ac_clean_files_save=$ac_clean_files
2358 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2359 # Try to create an executable without -o first, disregard a.out.
2360 # It will help us diagnose broken compilers, and finding out an intuition
2361 # of exeext.
2362 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2363 $as_echo_n "checking for C compiler default output file name... " >&6; }
2364 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2365
2366 # The possible output files:
2367 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2368
2369 ac_rmfiles=
2370 for ac_file in $ac_files
2371 do
2372   case $ac_file in
2373     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2374     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2375   esac
2376 done
2377 rm -f $ac_rmfiles
2378
2379 if { (ac_try="$ac_link_default"
2380 case "(($ac_try" in
2381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382   *) ac_try_echo=$ac_try;;
2383 esac
2384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2385 $as_echo "$ac_try_echo") >&5
2386   (eval "$ac_link_default") 2>&5
2387   ac_status=$?
2388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389   (exit $ac_status); }; then
2390   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2391 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2392 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2393 # so that the user can short-circuit this test for compilers unknown to
2394 # Autoconf.
2395 for ac_file in $ac_files ''
2396 do
2397   test -f "$ac_file" || continue
2398   case $ac_file in
2399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2400         ;;
2401     [ab].out )
2402         # We found the default executable, but exeext='' is most
2403         # certainly right.
2404         break;;
2405     *.* )
2406         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2407         then :; else
2408            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2409         fi
2410         # We set ac_cv_exeext here because the later test for it is not
2411         # safe: cross compilers may not add the suffix if given an `-o'
2412         # argument, so we may need to know it at that point already.
2413         # Even if this section looks crufty: it has the advantage of
2414         # actually working.
2415         break;;
2416     * )
2417         break;;
2418   esac
2419 done
2420 test "$ac_cv_exeext" = no && ac_cv_exeext=
2421
2422 else
2423   ac_file=''
2424 fi
2425
2426 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2427 $as_echo "$ac_file" >&6; }
2428 if test -z "$ac_file"; then
2429   $as_echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2431
2432 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2435 See \`config.log' for more details." >&5
2436 $as_echo "$as_me: error: C compiler cannot create executables
2437 See \`config.log' for more details." >&2;}
2438    { (exit 77); exit 77; }; }; }
2439 fi
2440
2441 ac_exeext=$ac_cv_exeext
2442
2443 # Check that the compiler produces executables we can run.  If not, either
2444 # the compiler is broken, or we cross compile.
2445 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2446 $as_echo_n "checking whether the C compiler works... " >&6; }
2447 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2448 # If not cross compiling, check that we can run a simple program.
2449 if test "$cross_compiling" != yes; then
2450   if { ac_try='./$ac_file'
2451   { (case "(($ac_try" in
2452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2453   *) ac_try_echo=$ac_try;;
2454 esac
2455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2456 $as_echo "$ac_try_echo") >&5
2457   (eval "$ac_try") 2>&5
2458   ac_status=$?
2459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460   (exit $ac_status); }; }; then
2461     cross_compiling=no
2462   else
2463     if test "$cross_compiling" = maybe; then
2464         cross_compiling=yes
2465     else
2466         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2467 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2468 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2469 If you meant to cross compile, use \`--host'.
2470 See \`config.log' for more details." >&5
2471 $as_echo "$as_me: error: cannot run C compiled programs.
2472 If you meant to cross compile, use \`--host'.
2473 See \`config.log' for more details." >&2;}
2474    { (exit 1); exit 1; }; }; }
2475     fi
2476   fi
2477 fi
2478 { $as_echo "$as_me:$LINENO: result: yes" >&5
2479 $as_echo "yes" >&6; }
2480
2481 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2482 ac_clean_files=$ac_clean_files_save
2483 # Check that the compiler produces executables we can run.  If not, either
2484 # the compiler is broken, or we cross compile.
2485 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2486 $as_echo_n "checking whether we are cross compiling... " >&6; }
2487 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2488 $as_echo "$cross_compiling" >&6; }
2489
2490 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2491 $as_echo_n "checking for suffix of executables... " >&6; }
2492 if { (ac_try="$ac_link"
2493 case "(($ac_try" in
2494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495   *) ac_try_echo=$ac_try;;
2496 esac
2497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2498 $as_echo "$ac_try_echo") >&5
2499   (eval "$ac_link") 2>&5
2500   ac_status=$?
2501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502   (exit $ac_status); }; then
2503   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2504 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2505 # work properly (i.e., refer to `conftest.exe'), while it won't with
2506 # `rm'.
2507 for ac_file in conftest.exe conftest conftest.*; do
2508   test -f "$ac_file" || continue
2509   case $ac_file in
2510     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2511     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512           break;;
2513     * ) break;;
2514   esac
2515 done
2516 else
2517   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2518 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2519 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2520 See \`config.log' for more details." >&5
2521 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2522 See \`config.log' for more details." >&2;}
2523    { (exit 1); exit 1; }; }; }
2524 fi
2525
2526 rm -f conftest$ac_cv_exeext
2527 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2528 $as_echo "$ac_cv_exeext" >&6; }
2529
2530 rm -f conftest.$ac_ext
2531 EXEEXT=$ac_cv_exeext
2532 ac_exeext=$EXEEXT
2533 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2534 $as_echo_n "checking for suffix of object files... " >&6; }
2535 if test "${ac_cv_objext+set}" = set; then
2536   $as_echo_n "(cached) " >&6
2537 else
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.o conftest.obj
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2560 $as_echo "$ac_try_echo") >&5
2561   (eval "$ac_compile") 2>&5
2562   ac_status=$?
2563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; then
2565   for ac_file in conftest.o conftest.obj conftest.*; do
2566   test -f "$ac_file" || continue;
2567   case $ac_file in
2568     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2569     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2570        break;;
2571   esac
2572 done
2573 else
2574   $as_echo "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2580 See \`config.log' for more details." >&5
2581 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2582 See \`config.log' for more details." >&2;}
2583    { (exit 1); exit 1; }; }; }
2584 fi
2585
2586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587 fi
2588 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2589 $as_echo "$ac_cv_objext" >&6; }
2590 OBJEXT=$ac_cv_objext
2591 ac_objext=$OBJEXT
2592 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2594 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2595   $as_echo_n "(cached) " >&6
2596 else
2597   cat >conftest.$ac_ext <<_ACEOF
2598 /* confdefs.h.  */
2599 _ACEOF
2600 cat confdefs.h >>conftest.$ac_ext
2601 cat >>conftest.$ac_ext <<_ACEOF
2602 /* end confdefs.h.  */
2603
2604 int
2605 main ()
2606 {
2607 #ifndef __GNUC__
2608        choke me
2609 #endif
2610
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (ac_try="$ac_compile"
2617 case "(($ac_try" in
2618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2619   *) ac_try_echo=$ac_try;;
2620 esac
2621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623   (eval "$ac_compile") 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } && {
2630          test -z "$ac_c_werror_flag" ||
2631          test ! -s conftest.err
2632        } && test -s conftest.$ac_objext; then
2633   ac_compiler_gnu=yes
2634 else
2635   $as_echo "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         ac_compiler_gnu=no
2639 fi
2640
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2643
2644 fi
2645 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2646 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2647 if test $ac_compiler_gnu = yes; then
2648   GCC=yes
2649 else
2650   GCC=
2651 fi
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657   $as_echo_n "(cached) " >&6
2658 else
2659   ac_save_c_werror_flag=$ac_c_werror_flag
2660    ac_c_werror_flag=yes
2661    ac_cv_prog_cc_g=no
2662    CFLAGS="-g"
2663    cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2685 $as_echo "$ac_try_echo") >&5
2686   (eval "$ac_compile") 2>conftest.er1
2687   ac_status=$?
2688   grep -v '^ *+' conftest.er1 >conftest.err
2689   rm -f conftest.er1
2690   cat conftest.err >&5
2691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); } && {
2693          test -z "$ac_c_werror_flag" ||
2694          test ! -s conftest.err
2695        } && test -s conftest.$ac_objext; then
2696   ac_cv_prog_cc_g=yes
2697 else
2698   $as_echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701         CFLAGS=""
2702       cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h.  */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h.  */
2708
2709 int
2710 main ()
2711 {
2712
2713   ;
2714   return 0;
2715 }
2716 _ACEOF
2717 rm -f conftest.$ac_objext
2718 if { (ac_try="$ac_compile"
2719 case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2724 $as_echo "$ac_try_echo") >&5
2725   (eval "$ac_compile") 2>conftest.er1
2726   ac_status=$?
2727   grep -v '^ *+' conftest.er1 >conftest.err
2728   rm -f conftest.er1
2729   cat conftest.err >&5
2730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731   (exit $ac_status); } && {
2732          test -z "$ac_c_werror_flag" ||
2733          test ! -s conftest.err
2734        } && test -s conftest.$ac_objext; then
2735   :
2736 else
2737   $as_echo "$as_me: failed program was:" >&5
2738 sed 's/^/| /' conftest.$ac_ext >&5
2739
2740         ac_c_werror_flag=$ac_save_c_werror_flag
2741          CFLAGS="-g"
2742          cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748
2749 int
2750 main ()
2751 {
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765   (eval "$ac_compile") 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } && {
2772          test -z "$ac_c_werror_flag" ||
2773          test ! -s conftest.err
2774        } && test -s conftest.$ac_objext; then
2775   ac_cv_prog_cc_g=yes
2776 else
2777   $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780
2781 fi
2782
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 fi
2788
2789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2790    ac_c_werror_flag=$ac_save_c_werror_flag
2791 fi
2792 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2793 $as_echo "$ac_cv_prog_cc_g" >&6; }
2794 if test "$ac_test_CFLAGS" = set; then
2795   CFLAGS=$ac_save_CFLAGS
2796 elif test $ac_cv_prog_cc_g = yes; then
2797   if test "$GCC" = yes; then
2798     CFLAGS="-g -O2"
2799   else
2800     CFLAGS="-g"
2801   fi
2802 else
2803   if test "$GCC" = yes; then
2804     CFLAGS="-O2"
2805   else
2806     CFLAGS=
2807   fi
2808 fi
2809 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2811 if test "${ac_cv_prog_cc_c89+set}" = set; then
2812   $as_echo_n "(cached) " >&6
2813 else
2814   ac_cv_prog_cc_c89=no
2815 ac_save_CC=$CC
2816 cat >conftest.$ac_ext <<_ACEOF
2817 /* confdefs.h.  */
2818 _ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h.  */
2822 #include <stdarg.h>
2823 #include <stdio.h>
2824 #include <sys/types.h>
2825 #include <sys/stat.h>
2826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2827 struct buf { int x; };
2828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2829 static char *e (p, i)
2830      char **p;
2831      int i;
2832 {
2833   return p[i];
2834 }
2835 static char *f (char * (*g) (char **, int), char **p, ...)
2836 {
2837   char *s;
2838   va_list v;
2839   va_start (v,p);
2840   s = g (p, va_arg (v,int));
2841   va_end (v);
2842   return s;
2843 }
2844
2845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2846    function prototypes and stuff, but not '\xHH' hex character constants.
2847    These don't provoke an error unfortunately, instead are silently treated
2848    as 'x'.  The following induces an error, until -std is added to get
2849    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2850    array size at least.  It's necessary to write '\x00'==0 to get something
2851    that's true only with -std.  */
2852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2853
2854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2855    inside strings and character constants.  */
2856 #define FOO(x) 'x'
2857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2858
2859 int test (int i, double x);
2860 struct s1 {int (*f) (int a);};
2861 struct s2 {int (*f) (double a);};
2862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2863 int argc;
2864 char **argv;
2865 int
2866 main ()
2867 {
2868 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2874         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2875 do
2876   CC="$ac_save_CC $ac_arg"
2877   rm -f conftest.$ac_objext
2878 if { (ac_try="$ac_compile"
2879 case "(($ac_try" in
2880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881   *) ac_try_echo=$ac_try;;
2882 esac
2883 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884 $as_echo "$ac_try_echo") >&5
2885   (eval "$ac_compile") 2>conftest.er1
2886   ac_status=$?
2887   grep -v '^ *+' conftest.er1 >conftest.err
2888   rm -f conftest.er1
2889   cat conftest.err >&5
2890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891   (exit $ac_status); } && {
2892          test -z "$ac_c_werror_flag" ||
2893          test ! -s conftest.err
2894        } && test -s conftest.$ac_objext; then
2895   ac_cv_prog_cc_c89=$ac_arg
2896 else
2897   $as_echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2899
2900
2901 fi
2902
2903 rm -f core conftest.err conftest.$ac_objext
2904   test "x$ac_cv_prog_cc_c89" != "xno" && break
2905 done
2906 rm -f conftest.$ac_ext
2907 CC=$ac_save_CC
2908
2909 fi
2910 # AC_CACHE_VAL
2911 case "x$ac_cv_prog_cc_c89" in
2912   x)
2913     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2914 $as_echo "none needed" >&6; } ;;
2915   xno)
2916     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2917 $as_echo "unsupported" >&6; } ;;
2918   *)
2919     CC="$CC $ac_cv_prog_cc_c89"
2920     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2922 esac
2923
2924
2925 ac_ext=c
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2930
2931
2932 ac_ext=c
2933 ac_cpp='$CPP $CPPFLAGS'
2934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 if test -n "$ac_tool_prefix"; then
2938   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2939 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2940 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2941 $as_echo_n "checking for $ac_word... " >&6; }
2942 if test "${ac_cv_prog_CC+set}" = set; then
2943   $as_echo_n "(cached) " >&6
2944 else
2945   if test -n "$CC"; then
2946   ac_cv_prog_CC="$CC" # Let the user override the test.
2947 else
2948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 for as_dir in $PATH
2950 do
2951   IFS=$as_save_IFS
2952   test -z "$as_dir" && as_dir=.
2953   for ac_exec_ext in '' $ac_executable_extensions; do
2954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2955     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2956     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957     break 2
2958   fi
2959 done
2960 done
2961 IFS=$as_save_IFS
2962
2963 fi
2964 fi
2965 CC=$ac_cv_prog_CC
2966 if test -n "$CC"; then
2967   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2968 $as_echo "$CC" >&6; }
2969 else
2970   { $as_echo "$as_me:$LINENO: result: no" >&5
2971 $as_echo "no" >&6; }
2972 fi
2973
2974
2975 fi
2976 if test -z "$ac_cv_prog_CC"; then
2977   ac_ct_CC=$CC
2978   # Extract the first word of "gcc", so it can be a program name with args.
2979 set dummy gcc; ac_word=$2
2980 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2981 $as_echo_n "checking for $ac_word... " >&6; }
2982 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2983   $as_echo_n "(cached) " >&6
2984 else
2985   if test -n "$ac_ct_CC"; then
2986   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2987 else
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991   IFS=$as_save_IFS
2992   test -z "$as_dir" && as_dir=.
2993   for ac_exec_ext in '' $ac_executable_extensions; do
2994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995     ac_cv_prog_ac_ct_CC="gcc"
2996     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997     break 2
2998   fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi
3004 fi
3005 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3006 if test -n "$ac_ct_CC"; then
3007   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3008 $as_echo "$ac_ct_CC" >&6; }
3009 else
3010   { $as_echo "$as_me:$LINENO: result: no" >&5
3011 $as_echo "no" >&6; }
3012 fi
3013
3014   if test "x$ac_ct_CC" = x; then
3015     CC=""
3016   else
3017     case $cross_compiling:$ac_tool_warned in
3018 yes:)
3019 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021 ac_tool_warned=yes ;;
3022 esac
3023     CC=$ac_ct_CC
3024   fi
3025 else
3026   CC="$ac_cv_prog_CC"
3027 fi
3028
3029 if test -z "$CC"; then
3030           if test -n "$ac_tool_prefix"; then
3031     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3032 set dummy ${ac_tool_prefix}cc; ac_word=$2
3033 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if test "${ac_cv_prog_CC+set}" = set; then
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046   for ac_exec_ext in '' $ac_executable_extensions; do
3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048     ac_cv_prog_CC="${ac_tool_prefix}cc"
3049     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053 done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063   { $as_echo "$as_me:$LINENO: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068   fi
3069 fi
3070 if test -z "$CC"; then
3071   # Extract the first word of "cc", so it can be a program name with args.
3072 set dummy cc; ac_word=$2
3073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_CC+set}" = set; then
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$CC"; then
3079   ac_cv_prog_CC="$CC" # Let the user override the test.
3080 else
3081   ac_prog_rejected=no
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 for as_dir in $PATH
3084 do
3085   IFS=$as_save_IFS
3086   test -z "$as_dir" && as_dir=.
3087   for ac_exec_ext in '' $ac_executable_extensions; do
3088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3090        ac_prog_rejected=yes
3091        continue
3092      fi
3093     ac_cv_prog_CC="cc"
3094     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3095     break 2
3096   fi
3097 done
3098 done
3099 IFS=$as_save_IFS
3100
3101 if test $ac_prog_rejected = yes; then
3102   # We found a bogon in the path, so make sure we never use it.
3103   set dummy $ac_cv_prog_CC
3104   shift
3105   if test $# != 0; then
3106     # We chose a different compiler from the bogus one.
3107     # However, it has the same basename, so the bogon will be chosen
3108     # first if we set CC to just the basename; use the full file name.
3109     shift
3110     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3111   fi
3112 fi
3113 fi
3114 fi
3115 CC=$ac_cv_prog_CC
3116 if test -n "$CC"; then
3117   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3118 $as_echo "$CC" >&6; }
3119 else
3120   { $as_echo "$as_me:$LINENO: result: no" >&5
3121 $as_echo "no" >&6; }
3122 fi
3123
3124
3125 fi
3126 if test -z "$CC"; then
3127   if test -n "$ac_tool_prefix"; then
3128   for ac_prog in cl.exe
3129   do
3130     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_CC+set}" = set; then
3135   $as_echo_n "(cached) " >&6
3136 else
3137   if test -n "$CC"; then
3138   ac_cv_prog_CC="$CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143   IFS=$as_save_IFS
3144   test -z "$as_dir" && as_dir=.
3145   for ac_exec_ext in '' $ac_executable_extensions; do
3146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149     break 2
3150   fi
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156 fi
3157 CC=$ac_cv_prog_CC
3158 if test -n "$CC"; then
3159   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3160 $as_echo "$CC" >&6; }
3161 else
3162   { $as_echo "$as_me:$LINENO: result: no" >&5
3163 $as_echo "no" >&6; }
3164 fi
3165
3166
3167     test -n "$CC" && break
3168   done
3169 fi
3170 if test -z "$CC"; then
3171   ac_ct_CC=$CC
3172   for ac_prog in cl.exe
3173 do
3174   # Extract the first word of "$ac_prog", so it can be a program name with args.
3175 set dummy $ac_prog; ac_word=$2
3176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3179   $as_echo_n "(cached) " >&6
3180 else
3181   if test -n "$ac_ct_CC"; then
3182   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187   IFS=$as_save_IFS
3188   test -z "$as_dir" && as_dir=.
3189   for ac_exec_ext in '' $ac_executable_extensions; do
3190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191     ac_cv_prog_ac_ct_CC="$ac_prog"
3192     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193     break 2
3194   fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3202 if test -n "$ac_ct_CC"; then
3203   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3204 $as_echo "$ac_ct_CC" >&6; }
3205 else
3206   { $as_echo "$as_me:$LINENO: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211   test -n "$ac_ct_CC" && break
3212 done
3213
3214   if test "x$ac_ct_CC" = x; then
3215     CC=""
3216   else
3217     case $cross_compiling:$ac_tool_warned in
3218 yes:)
3219 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3220 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3221 ac_tool_warned=yes ;;
3222 esac
3223     CC=$ac_ct_CC
3224   fi
3225 fi
3226
3227 fi
3228
3229
3230 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3233 See \`config.log' for more details." >&5
3234 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3235 See \`config.log' for more details." >&2;}
3236    { (exit 1); exit 1; }; }; }
3237
3238 # Provide some information about the compiler.
3239 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3240 set X $ac_compile
3241 ac_compiler=$2
3242 { (ac_try="$ac_compiler --version >&5"
3243 case "(($ac_try" in
3244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245   *) ac_try_echo=$ac_try;;
3246 esac
3247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3248 $as_echo "$ac_try_echo") >&5
3249   (eval "$ac_compiler --version >&5") 2>&5
3250   ac_status=$?
3251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252   (exit $ac_status); }
3253 { (ac_try="$ac_compiler -v >&5"
3254 case "(($ac_try" in
3255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3256   *) ac_try_echo=$ac_try;;
3257 esac
3258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260   (eval "$ac_compiler -v >&5") 2>&5
3261   ac_status=$?
3262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263   (exit $ac_status); }
3264 { (ac_try="$ac_compiler -V >&5"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271   (eval "$ac_compiler -V >&5") 2>&5
3272   ac_status=$?
3273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }
3275
3276 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3277 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3278 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3279   $as_echo_n "(cached) " >&6
3280 else
3281   cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291 #ifndef __GNUC__
3292        choke me
3293 #endif
3294
3295   ;
3296   return 0;
3297 }
3298 _ACEOF
3299 rm -f conftest.$ac_objext
3300 if { (ac_try="$ac_compile"
3301 case "(($ac_try" in
3302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3303   *) ac_try_echo=$ac_try;;
3304 esac
3305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3306 $as_echo "$ac_try_echo") >&5
3307   (eval "$ac_compile") 2>conftest.er1
3308   ac_status=$?
3309   grep -v '^ *+' conftest.er1 >conftest.err
3310   rm -f conftest.er1
3311   cat conftest.err >&5
3312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313   (exit $ac_status); } && {
3314          test -z "$ac_c_werror_flag" ||
3315          test ! -s conftest.err
3316        } && test -s conftest.$ac_objext; then
3317   ac_compiler_gnu=yes
3318 else
3319   $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322         ac_compiler_gnu=no
3323 fi
3324
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3327
3328 fi
3329 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3330 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3331 if test $ac_compiler_gnu = yes; then
3332   GCC=yes
3333 else
3334   GCC=
3335 fi
3336 ac_test_CFLAGS=${CFLAGS+set}
3337 ac_save_CFLAGS=$CFLAGS
3338 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3339 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3340 if test "${ac_cv_prog_cc_g+set}" = set; then
3341   $as_echo_n "(cached) " >&6
3342 else
3343   ac_save_c_werror_flag=$ac_c_werror_flag
3344    ac_c_werror_flag=yes
3345    ac_cv_prog_cc_g=no
3346    CFLAGS="-g"
3347    cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h.  */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h.  */
3353
3354 int
3355 main ()
3356 {
3357
3358   ;
3359   return 0;
3360 }
3361 _ACEOF
3362 rm -f conftest.$ac_objext
3363 if { (ac_try="$ac_compile"
3364 case "(($ac_try" in
3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366   *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3369 $as_echo "$ac_try_echo") >&5
3370   (eval "$ac_compile") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } && {
3377          test -z "$ac_c_werror_flag" ||
3378          test ! -s conftest.err
3379        } && test -s conftest.$ac_objext; then
3380   ac_cv_prog_cc_g=yes
3381 else
3382   $as_echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385         CFLAGS=""
3386       cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3408 $as_echo "$ac_try_echo") >&5
3409   (eval "$ac_compile") 2>conftest.er1
3410   ac_status=$?
3411   grep -v '^ *+' conftest.er1 >conftest.err
3412   rm -f conftest.er1
3413   cat conftest.err >&5
3414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415   (exit $ac_status); } && {
3416          test -z "$ac_c_werror_flag" ||
3417          test ! -s conftest.err
3418        } && test -s conftest.$ac_objext; then
3419   :
3420 else
3421   $as_echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3423
3424         ac_c_werror_flag=$ac_save_c_werror_flag
3425          CFLAGS="-g"
3426          cat >conftest.$ac_ext <<_ACEOF
3427 /* confdefs.h.  */
3428 _ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h.  */
3432
3433 int
3434 main ()
3435 {
3436
3437   ;
3438   return 0;
3439 }
3440 _ACEOF
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3443 case "(($ac_try" in
3444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445   *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3448 $as_echo "$ac_try_echo") >&5
3449   (eval "$ac_compile") 2>conftest.er1
3450   ac_status=$?
3451   grep -v '^ *+' conftest.er1 >conftest.err
3452   rm -f conftest.er1
3453   cat conftest.err >&5
3454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455   (exit $ac_status); } && {
3456          test -z "$ac_c_werror_flag" ||
3457          test ! -s conftest.err
3458        } && test -s conftest.$ac_objext; then
3459   ac_cv_prog_cc_g=yes
3460 else
3461   $as_echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464
3465 fi
3466
3467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3468 fi
3469
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 fi
3472
3473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3474    ac_c_werror_flag=$ac_save_c_werror_flag
3475 fi
3476 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3477 $as_echo "$ac_cv_prog_cc_g" >&6; }
3478 if test "$ac_test_CFLAGS" = set; then
3479   CFLAGS=$ac_save_CFLAGS
3480 elif test $ac_cv_prog_cc_g = yes; then
3481   if test "$GCC" = yes; then
3482     CFLAGS="-g -O2"
3483   else
3484     CFLAGS="-g"
3485   fi
3486 else
3487   if test "$GCC" = yes; then
3488     CFLAGS="-O2"
3489   else
3490     CFLAGS=
3491   fi
3492 fi
3493 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3494 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3495 if test "${ac_cv_prog_cc_c89+set}" = set; then
3496   $as_echo_n "(cached) " >&6
3497 else
3498   ac_cv_prog_cc_c89=no
3499 ac_save_CC=$CC
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h.  */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h.  */
3506 #include <stdarg.h>
3507 #include <stdio.h>
3508 #include <sys/types.h>
3509 #include <sys/stat.h>
3510 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3511 struct buf { int x; };
3512 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3513 static char *e (p, i)
3514      char **p;
3515      int i;
3516 {
3517   return p[i];
3518 }
3519 static char *f (char * (*g) (char **, int), char **p, ...)
3520 {
3521   char *s;
3522   va_list v;
3523   va_start (v,p);
3524   s = g (p, va_arg (v,int));
3525   va_end (v);
3526   return s;
3527 }
3528
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3530    function prototypes and stuff, but not '\xHH' hex character constants.
3531    These don't provoke an error unfortunately, instead are silently treated
3532    as 'x'.  The following induces an error, until -std is added to get
3533    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3534    array size at least.  It's necessary to write '\x00'==0 to get something
3535    that's true only with -std.  */
3536 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3537
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539    inside strings and character constants.  */
3540 #define FOO(x) 'x'
3541 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3542
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3547 int argc;
3548 char **argv;
3549 int
3550 main ()
3551 {
3552 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3553   ;
3554   return 0;
3555 }
3556 _ACEOF
3557 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3558         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3559 do
3560   CC="$ac_save_CC $ac_arg"
3561   rm -f conftest.$ac_objext
3562 if { (ac_try="$ac_compile"
3563 case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3568 $as_echo "$ac_try_echo") >&5
3569   (eval "$ac_compile") 2>conftest.er1
3570   ac_status=$?
3571   grep -v '^ *+' conftest.er1 >conftest.err
3572   rm -f conftest.er1
3573   cat conftest.err >&5
3574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575   (exit $ac_status); } && {
3576          test -z "$ac_c_werror_flag" ||
3577          test ! -s conftest.err
3578        } && test -s conftest.$ac_objext; then
3579   ac_cv_prog_cc_c89=$ac_arg
3580 else
3581   $as_echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3583
3584
3585 fi
3586
3587 rm -f core conftest.err conftest.$ac_objext
3588   test "x$ac_cv_prog_cc_c89" != "xno" && break
3589 done
3590 rm -f conftest.$ac_ext
3591 CC=$ac_save_CC
3592
3593 fi
3594 # AC_CACHE_VAL
3595 case "x$ac_cv_prog_cc_c89" in
3596   x)
3597     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3598 $as_echo "none needed" >&6; } ;;
3599   xno)
3600     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3601 $as_echo "unsupported" >&6; } ;;
3602   *)
3603     CC="$CC $ac_cv_prog_cc_c89"
3604     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3605 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3606 esac
3607
3608
3609 ac_ext=c
3610 ac_cpp='$CPP $CPPFLAGS'
3611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3614
3615
3616 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
3617
3618
3619
3620
3621 { $as_echo "$as_me:$LINENO: checking for library containing crypt" >&5
3622 $as_echo_n "checking for library containing crypt... " >&6; }
3623 if test "${ac_cv_search_crypt+set}" = set; then
3624   $as_echo_n "(cached) " >&6
3625 else
3626   ac_func_search_save_LIBS=$LIBS
3627 cat >conftest.$ac_ext <<_ACEOF
3628 /* confdefs.h.  */
3629 _ACEOF
3630 cat confdefs.h >>conftest.$ac_ext
3631 cat >>conftest.$ac_ext <<_ACEOF
3632 /* end confdefs.h.  */
3633
3634 /* Override any GCC internal prototype to avoid an error.
3635    Use char because int might match the return type of a GCC
3636    builtin and then its argument prototype would still apply.  */
3637 #ifdef __cplusplus
3638 extern "C"
3639 #endif
3640 char crypt ();
3641 int
3642 main ()
3643 {
3644 return crypt ();
3645   ;
3646   return 0;
3647 }
3648 _ACEOF
3649 for ac_lib in '' descrypt crypt; do
3650   if test -z "$ac_lib"; then
3651     ac_res="none required"
3652   else
3653     ac_res=-l$ac_lib
3654     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3655   fi
3656   rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3658 case "(($ac_try" in
3659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660   *) ac_try_echo=$ac_try;;
3661 esac
3662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3663 $as_echo "$ac_try_echo") >&5
3664   (eval "$ac_link") 2>conftest.er1
3665   ac_status=$?
3666   grep -v '^ *+' conftest.er1 >conftest.err
3667   rm -f conftest.er1
3668   cat conftest.err >&5
3669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670   (exit $ac_status); } && {
3671          test -z "$ac_c_werror_flag" ||
3672          test ! -s conftest.err
3673        } && test -s conftest$ac_exeext && {
3674          test "$cross_compiling" = yes ||
3675          $as_test_x conftest$ac_exeext
3676        }; then
3677   ac_cv_search_crypt=$ac_res
3678 else
3679   $as_echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682
3683 fi
3684
3685 rm -rf conftest.dSYM
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3687       conftest$ac_exeext
3688   if test "${ac_cv_search_crypt+set}" = set; then
3689   break
3690 fi
3691 done
3692 if test "${ac_cv_search_crypt+set}" = set; then
3693   :
3694 else
3695   ac_cv_search_crypt=no
3696 fi
3697 rm conftest.$ac_ext
3698 LIBS=$ac_func_search_save_LIBS
3699 fi
3700 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
3701 $as_echo "$ac_cv_search_crypt" >&6; }
3702 ac_res=$ac_cv_search_crypt
3703 if test "$ac_res" != no; then
3704   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3705
3706 else
3707   { { $as_echo "$as_me:$LINENO: error: Unable to find library containing crypt()" >&5
3708 $as_echo "$as_me: error: Unable to find library containing crypt()" >&2;}
3709    { (exit 1); exit 1; }; }
3710 fi
3711
3712
3713
3714    # Most operating systems have gethostbyname() in the default searched
3715    # libraries (i.e. libc):
3716    { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
3717 $as_echo_n "checking for gethostbyname... " >&6; }
3718 if test "${ac_cv_func_gethostbyname+set}" = set; then
3719   $as_echo_n "(cached) " >&6
3720 else
3721   cat >conftest.$ac_ext <<_ACEOF
3722 /* confdefs.h.  */
3723 _ACEOF
3724 cat confdefs.h >>conftest.$ac_ext
3725 cat >>conftest.$ac_ext <<_ACEOF
3726 /* end confdefs.h.  */
3727 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3729 #define gethostbyname innocuous_gethostbyname
3730
3731 /* System header to define __stub macros and hopefully few prototypes,
3732     which can conflict with char gethostbyname (); below.
3733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3734     <limits.h> exists even on freestanding compilers.  */
3735
3736 #ifdef __STDC__
3737 # include <limits.h>
3738 #else
3739 # include <assert.h>
3740 #endif
3741
3742 #undef gethostbyname
3743
3744 /* Override any GCC internal prototype to avoid an error.
3745    Use char because int might match the return type of a GCC
3746    builtin and then its argument prototype would still apply.  */
3747 #ifdef __cplusplus
3748 extern "C"
3749 #endif
3750 char gethostbyname ();
3751 /* The GNU C library defines this for functions which it implements
3752     to always fail with ENOSYS.  Some functions are actually named
3753     something starting with __ and the normal name is an alias.  */
3754 #if defined __stub_gethostbyname || defined __stub___gethostbyname
3755 choke me
3756 #endif
3757
3758 int
3759 main ()
3760 {
3761 return gethostbyname ();
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.$ac_objext conftest$ac_exeext
3767 if { (ac_try="$ac_link"
3768 case "(($ac_try" in
3769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770   *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3773 $as_echo "$ac_try_echo") >&5
3774   (eval "$ac_link") 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } && {
3781          test -z "$ac_c_werror_flag" ||
3782          test ! -s conftest.err
3783        } && test -s conftest$ac_exeext && {
3784          test "$cross_compiling" = yes ||
3785          $as_test_x conftest$ac_exeext
3786        }; then
3787   ac_cv_func_gethostbyname=yes
3788 else
3789   $as_echo "$as_me: failed program was:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3791
3792         ac_cv_func_gethostbyname=no
3793 fi
3794
3795 rm -rf conftest.dSYM
3796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3797       conftest$ac_exeext conftest.$ac_ext
3798 fi
3799 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3800 $as_echo "$ac_cv_func_gethostbyname" >&6; }
3801 if test "x$ac_cv_func_gethostbyname" = x""yes; then
3802   :
3803 else
3804   # Some OSes (eg. Solaris) place it in libnsl:
3805
3806 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3807 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
3808 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3809   $as_echo_n "(cached) " >&6
3810 else
3811   ac_check_lib_save_LIBS=$LIBS
3812 LIBS="-lnsl  $LIBS"
3813 cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819
3820 /* Override any GCC internal prototype to avoid an error.
3821    Use char because int might match the return type of a GCC
3822    builtin and then its argument prototype would still apply.  */
3823 #ifdef __cplusplus
3824 extern "C"
3825 #endif
3826 char gethostbyname ();
3827 int
3828 main ()
3829 {
3830 return gethostbyname ();
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext conftest$ac_exeext
3836 if { (ac_try="$ac_link"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3842 $as_echo "$ac_try_echo") >&5
3843   (eval "$ac_link") 2>conftest.er1
3844   ac_status=$?
3845   grep -v '^ *+' conftest.er1 >conftest.err
3846   rm -f conftest.er1
3847   cat conftest.err >&5
3848   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849   (exit $ac_status); } && {
3850          test -z "$ac_c_werror_flag" ||
3851          test ! -s conftest.err
3852        } && test -s conftest$ac_exeext && {
3853          test "$cross_compiling" = yes ||
3854          $as_test_x conftest$ac_exeext
3855        }; then
3856   ac_cv_lib_nsl_gethostbyname=yes
3857 else
3858   $as_echo "$as_me: failed program was:" >&5
3859 sed 's/^/| /' conftest.$ac_ext >&5
3860
3861         ac_cv_lib_nsl_gethostbyname=no
3862 fi
3863
3864 rm -rf conftest.dSYM
3865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3866       conftest$ac_exeext conftest.$ac_ext
3867 LIBS=$ac_check_lib_save_LIBS
3868 fi
3869 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3870 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
3871 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
3872   cat >>confdefs.h <<_ACEOF
3873 #define HAVE_LIBNSL 1
3874 _ACEOF
3875
3876   LIBS="-lnsl $LIBS"
3877
3878 else
3879   # Some strange OSes (SINIX) have it in libsocket:
3880
3881 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3882 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3883 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3884   $as_echo_n "(cached) " >&6
3885 else
3886   ac_check_lib_save_LIBS=$LIBS
3887 LIBS="-lsocket  $LIBS"
3888 cat >conftest.$ac_ext <<_ACEOF
3889 /* confdefs.h.  */
3890 _ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h.  */
3894
3895 /* Override any GCC internal prototype to avoid an error.
3896    Use char because int might match the return type of a GCC
3897    builtin and then its argument prototype would still apply.  */
3898 #ifdef __cplusplus
3899 extern "C"
3900 #endif
3901 char gethostbyname ();
3902 int
3903 main ()
3904 {
3905 return gethostbyname ();
3906   ;
3907   return 0;
3908 }
3909 _ACEOF
3910 rm -f conftest.$ac_objext conftest$ac_exeext
3911 if { (ac_try="$ac_link"
3912 case "(($ac_try" in
3913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914   *) ac_try_echo=$ac_try;;
3915 esac
3916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3917 $as_echo "$ac_try_echo") >&5
3918   (eval "$ac_link") 2>conftest.er1
3919   ac_status=$?
3920   grep -v '^ *+' conftest.er1 >conftest.err
3921   rm -f conftest.er1
3922   cat conftest.err >&5
3923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924   (exit $ac_status); } && {
3925          test -z "$ac_c_werror_flag" ||
3926          test ! -s conftest.err
3927        } && test -s conftest$ac_exeext && {
3928          test "$cross_compiling" = yes ||
3929          $as_test_x conftest$ac_exeext
3930        }; then
3931   ac_cv_lib_socket_gethostbyname=yes
3932 else
3933   $as_echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936         ac_cv_lib_socket_gethostbyname=no
3937 fi
3938
3939 rm -rf conftest.dSYM
3940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3941       conftest$ac_exeext conftest.$ac_ext
3942 LIBS=$ac_check_lib_save_LIBS
3943 fi
3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
3945 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
3946 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then
3947   cat >>confdefs.h <<_ACEOF
3948 #define HAVE_LIBSOCKET 1
3949 _ACEOF
3950
3951   LIBS="-lsocket $LIBS"
3952
3953 else
3954   # Unfortunately libsocket sometimes depends on libnsl.
3955           # AC_CHECK_LIB's API is essentially broken so the following
3956           # ugliness is necessary:
3957           { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lsocket" >&5
3958 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
3959 if test "${ac_cv_lib_socket_gethostbyname+set}" = set; then
3960   $as_echo_n "(cached) " >&6
3961 else
3962   ac_check_lib_save_LIBS=$LIBS
3963 LIBS="-lsocket -lnsl $LIBS"
3964 cat >conftest.$ac_ext <<_ACEOF
3965 /* confdefs.h.  */
3966 _ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h.  */
3970
3971 /* Override any GCC internal prototype to avoid an error.
3972    Use char because int might match the return type of a GCC
3973    builtin and then its argument prototype would still apply.  */
3974 #ifdef __cplusplus
3975 extern "C"
3976 #endif
3977 char gethostbyname ();
3978 int
3979 main ()
3980 {
3981 return gethostbyname ();
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 rm -f conftest.$ac_objext conftest$ac_exeext
3987 if { (ac_try="$ac_link"
3988 case "(($ac_try" in
3989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990   *) ac_try_echo=$ac_try;;
3991 esac
3992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3993 $as_echo "$ac_try_echo") >&5
3994   (eval "$ac_link") 2>conftest.er1
3995   ac_status=$?
3996   grep -v '^ *+' conftest.er1 >conftest.err
3997   rm -f conftest.er1
3998   cat conftest.err >&5
3999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); } && {
4001          test -z "$ac_c_werror_flag" ||
4002          test ! -s conftest.err
4003        } && test -s conftest$ac_exeext && {
4004          test "$cross_compiling" = yes ||
4005          $as_test_x conftest$ac_exeext
4006        }; then
4007   ac_cv_lib_socket_gethostbyname=yes
4008 else
4009   $as_echo "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012         ac_cv_lib_socket_gethostbyname=no
4013 fi
4014
4015 rm -rf conftest.dSYM
4016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4017       conftest$ac_exeext conftest.$ac_ext
4018 LIBS=$ac_check_lib_save_LIBS
4019 fi
4020 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_gethostbyname" >&5
4021 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
4022 if test "x$ac_cv_lib_socket_gethostbyname" = x""yes; then
4023   LIBS="-lsocket -lnsl $LIBS"
4024 else
4025
4026 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lresolv" >&5
4027 $as_echo_n "checking for gethostbyname in -lresolv... " >&6; }
4028 if test "${ac_cv_lib_resolv_gethostbyname+set}" = set; then
4029   $as_echo_n "(cached) " >&6
4030 else
4031   ac_check_lib_save_LIBS=$LIBS
4032 LIBS="-lresolv  $LIBS"
4033 cat >conftest.$ac_ext <<_ACEOF
4034 /* confdefs.h.  */
4035 _ACEOF
4036 cat confdefs.h >>conftest.$ac_ext
4037 cat >>conftest.$ac_ext <<_ACEOF
4038 /* end confdefs.h.  */
4039
4040 /* Override any GCC internal prototype to avoid an error.
4041    Use char because int might match the return type of a GCC
4042    builtin and then its argument prototype would still apply.  */
4043 #ifdef __cplusplus
4044 extern "C"
4045 #endif
4046 char gethostbyname ();
4047 int
4048 main ()
4049 {
4050 return gethostbyname ();
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 rm -f conftest.$ac_objext conftest$ac_exeext
4056 if { (ac_try="$ac_link"
4057 case "(($ac_try" in
4058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059   *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063   (eval "$ac_link") 2>conftest.er1
4064   ac_status=$?
4065   grep -v '^ *+' conftest.er1 >conftest.err
4066   rm -f conftest.er1
4067   cat conftest.err >&5
4068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } && {
4070          test -z "$ac_c_werror_flag" ||
4071          test ! -s conftest.err
4072        } && test -s conftest$ac_exeext && {
4073          test "$cross_compiling" = yes ||
4074          $as_test_x conftest$ac_exeext
4075        }; then
4076   ac_cv_lib_resolv_gethostbyname=yes
4077 else
4078   $as_echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4080
4081         ac_cv_lib_resolv_gethostbyname=no
4082 fi
4083
4084 rm -rf conftest.dSYM
4085 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4086       conftest$ac_exeext conftest.$ac_ext
4087 LIBS=$ac_check_lib_save_LIBS
4088 fi
4089 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname" >&5
4090 $as_echo "$ac_cv_lib_resolv_gethostbyname" >&6; }
4091 if test "x$ac_cv_lib_resolv_gethostbyname" = x""yes; then
4092   cat >>confdefs.h <<_ACEOF
4093 #define HAVE_LIBRESOLV 1
4094 _ACEOF
4095
4096   LIBS="-lresolv $LIBS"
4097
4098 fi
4099
4100 fi
4101
4102
4103 fi
4104
4105
4106 fi
4107
4108
4109 fi
4110
4111   { $as_echo "$as_me:$LINENO: checking for socket" >&5
4112 $as_echo_n "checking for socket... " >&6; }
4113 if test "${ac_cv_func_socket+set}" = set; then
4114   $as_echo_n "(cached) " >&6
4115 else
4116   cat >conftest.$ac_ext <<_ACEOF
4117 /* confdefs.h.  */
4118 _ACEOF
4119 cat confdefs.h >>conftest.$ac_ext
4120 cat >>conftest.$ac_ext <<_ACEOF
4121 /* end confdefs.h.  */
4122 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
4123    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4124 #define socket innocuous_socket
4125
4126 /* System header to define __stub macros and hopefully few prototypes,
4127     which can conflict with char socket (); below.
4128     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129     <limits.h> exists even on freestanding compilers.  */
4130
4131 #ifdef __STDC__
4132 # include <limits.h>
4133 #else
4134 # include <assert.h>
4135 #endif
4136
4137 #undef socket
4138
4139 /* Override any GCC internal prototype to avoid an error.
4140    Use char because int might match the return type of a GCC
4141    builtin and then its argument prototype would still apply.  */
4142 #ifdef __cplusplus
4143 extern "C"
4144 #endif
4145 char socket ();
4146 /* The GNU C library defines this for functions which it implements
4147     to always fail with ENOSYS.  Some functions are actually named
4148     something starting with __ and the normal name is an alias.  */
4149 #if defined __stub_socket || defined __stub___socket
4150 choke me
4151 #endif
4152
4153 int
4154 main ()
4155 {
4156 return socket ();
4157   ;
4158   return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162 if { (ac_try="$ac_link"
4163 case "(($ac_try" in
4164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165   *) ac_try_echo=$ac_try;;
4166 esac
4167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4168 $as_echo "$ac_try_echo") >&5
4169   (eval "$ac_link") 2>conftest.er1
4170   ac_status=$?
4171   grep -v '^ *+' conftest.er1 >conftest.err
4172   rm -f conftest.er1
4173   cat conftest.err >&5
4174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175   (exit $ac_status); } && {
4176          test -z "$ac_c_werror_flag" ||
4177          test ! -s conftest.err
4178        } && test -s conftest$ac_exeext && {
4179          test "$cross_compiling" = yes ||
4180          $as_test_x conftest$ac_exeext
4181        }; then
4182   ac_cv_func_socket=yes
4183 else
4184   $as_echo "$as_me: failed program was:" >&5
4185 sed 's/^/| /' conftest.$ac_ext >&5
4186
4187         ac_cv_func_socket=no
4188 fi
4189
4190 rm -rf conftest.dSYM
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192       conftest$ac_exeext conftest.$ac_ext
4193 fi
4194 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4195 $as_echo "$ac_cv_func_socket" >&6; }
4196 if test "x$ac_cv_func_socket" = x""yes; then
4197   :
4198 else
4199
4200 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4201 $as_echo_n "checking for socket in -lsocket... " >&6; }
4202 if test "${ac_cv_lib_socket_socket+set}" = set; then
4203   $as_echo_n "(cached) " >&6
4204 else
4205   ac_check_lib_save_LIBS=$LIBS
4206 LIBS="-lsocket  $LIBS"
4207 cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213
4214 /* Override any GCC internal prototype to avoid an error.
4215    Use char because int might match the return type of a GCC
4216    builtin and then its argument prototype would still apply.  */
4217 #ifdef __cplusplus
4218 extern "C"
4219 #endif
4220 char socket ();
4221 int
4222 main ()
4223 {
4224 return socket ();
4225   ;
4226   return 0;
4227 }
4228 _ACEOF
4229 rm -f conftest.$ac_objext conftest$ac_exeext
4230 if { (ac_try="$ac_link"
4231 case "(($ac_try" in
4232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4233   *) ac_try_echo=$ac_try;;
4234 esac
4235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4236 $as_echo "$ac_try_echo") >&5
4237   (eval "$ac_link") 2>conftest.er1
4238   ac_status=$?
4239   grep -v '^ *+' conftest.er1 >conftest.err
4240   rm -f conftest.er1
4241   cat conftest.err >&5
4242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243   (exit $ac_status); } && {
4244          test -z "$ac_c_werror_flag" ||
4245          test ! -s conftest.err
4246        } && test -s conftest$ac_exeext && {
4247          test "$cross_compiling" = yes ||
4248          $as_test_x conftest$ac_exeext
4249        }; then
4250   ac_cv_lib_socket_socket=yes
4251 else
4252   $as_echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255         ac_cv_lib_socket_socket=no
4256 fi
4257
4258 rm -rf conftest.dSYM
4259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4260       conftest$ac_exeext conftest.$ac_ext
4261 LIBS=$ac_check_lib_save_LIBS
4262 fi
4263 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4264 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4265 if test "x$ac_cv_lib_socket_socket" = x""yes; then
4266   cat >>confdefs.h <<_ACEOF
4267 #define HAVE_LIBSOCKET 1
4268 _ACEOF
4269
4270   LIBS="-lsocket $LIBS"
4271
4272 else
4273   { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4274 $as_echo_n "checking for socket in -lsocket... " >&6; }
4275 if test "${ac_cv_lib_socket_socket+set}" = set; then
4276   $as_echo_n "(cached) " >&6
4277 else
4278   ac_check_lib_save_LIBS=$LIBS
4279 LIBS="-lsocket -lnsl $LIBS"
4280 cat >conftest.$ac_ext <<_ACEOF
4281 /* confdefs.h.  */
4282 _ACEOF
4283 cat confdefs.h >>conftest.$ac_ext
4284 cat >>conftest.$ac_ext <<_ACEOF
4285 /* end confdefs.h.  */
4286
4287 /* Override any GCC internal prototype to avoid an error.
4288    Use char because int might match the return type of a GCC
4289    builtin and then its argument prototype would still apply.  */
4290 #ifdef __cplusplus
4291 extern "C"
4292 #endif
4293 char socket ();
4294 int
4295 main ()
4296 {
4297 return socket ();
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 rm -f conftest.$ac_objext conftest$ac_exeext
4303 if { (ac_try="$ac_link"
4304 case "(($ac_try" in
4305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306   *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4309 $as_echo "$ac_try_echo") >&5
4310   (eval "$ac_link") 2>conftest.er1
4311   ac_status=$?
4312   grep -v '^ *+' conftest.er1 >conftest.err
4313   rm -f conftest.er1
4314   cat conftest.err >&5
4315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316   (exit $ac_status); } && {
4317          test -z "$ac_c_werror_flag" ||
4318          test ! -s conftest.err
4319        } && test -s conftest$ac_exeext && {
4320          test "$cross_compiling" = yes ||
4321          $as_test_x conftest$ac_exeext
4322        }; then
4323   ac_cv_lib_socket_socket=yes
4324 else
4325   $as_echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328         ac_cv_lib_socket_socket=no
4329 fi
4330
4331 rm -rf conftest.dSYM
4332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4333       conftest$ac_exeext conftest.$ac_ext
4334 LIBS=$ac_check_lib_save_LIBS
4335 fi
4336 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4337 $as_echo "$ac_cv_lib_socket_socket" >&6; }
4338 if test "x$ac_cv_lib_socket_socket" = x""yes; then
4339   LIBS="-lsocket -lnsl $LIBS"
4340 fi
4341
4342 fi
4343
4344 fi
4345
4346
4347
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4354 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4355 # On Suns, sometimes $CPP names a directory.
4356 if test -n "$CPP" && test -d "$CPP"; then
4357   CPP=
4358 fi
4359 if test -z "$CPP"; then
4360   if test "${ac_cv_prog_CPP+set}" = set; then
4361   $as_echo_n "(cached) " >&6
4362 else
4363       # Double quotes because CPP needs to be expanded
4364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4365     do
4366       ac_preproc_ok=false
4367 for ac_c_preproc_warn_flag in '' yes
4368 do
4369   # Use a header file that comes with gcc, so configuring glibc
4370   # with a fresh cross-compiler works.
4371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4372   # <limits.h> exists even on freestanding compilers.
4373   # On the NeXT, cc -E runs the code through the compiler's parser,
4374   # not just through cpp. "Syntax error" is here to catch this case.
4375   cat >conftest.$ac_ext <<_ACEOF
4376 /* confdefs.h.  */
4377 _ACEOF
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h.  */
4381 #ifdef __STDC__
4382 # include <limits.h>
4383 #else
4384 # include <assert.h>
4385 #endif
4386                      Syntax error
4387 _ACEOF
4388 if { (ac_try="$ac_cpp conftest.$ac_ext"
4389 case "(($ac_try" in
4390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4391   *) ac_try_echo=$ac_try;;
4392 esac
4393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4394 $as_echo "$ac_try_echo") >&5
4395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4396   ac_status=$?
4397   grep -v '^ *+' conftest.er1 >conftest.err
4398   rm -f conftest.er1
4399   cat conftest.err >&5
4400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } >/dev/null && {
4402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4403          test ! -s conftest.err
4404        }; then
4405   :
4406 else
4407   $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4409
4410   # Broken: fails on valid input.
4411 continue
4412 fi
4413
4414 rm -f conftest.err conftest.$ac_ext
4415
4416   # OK, works on sane cases.  Now check whether nonexistent headers
4417   # can be detected and how.
4418   cat >conftest.$ac_ext <<_ACEOF
4419 /* confdefs.h.  */
4420 _ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h.  */
4424 #include <ac_nonexistent.h>
4425 _ACEOF
4426 if { (ac_try="$ac_cpp conftest.$ac_ext"
4427 case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4432 $as_echo "$ac_try_echo") >&5
4433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4434   ac_status=$?
4435   grep -v '^ *+' conftest.er1 >conftest.err
4436   rm -f conftest.er1
4437   cat conftest.err >&5
4438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439   (exit $ac_status); } >/dev/null && {
4440          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4441          test ! -s conftest.err
4442        }; then
4443   # Broken: success on invalid input.
4444 continue
4445 else
4446   $as_echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4448
4449   # Passes both tests.
4450 ac_preproc_ok=:
4451 break
4452 fi
4453
4454 rm -f conftest.err conftest.$ac_ext
4455
4456 done
4457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4458 rm -f conftest.err conftest.$ac_ext
4459 if $ac_preproc_ok; then
4460   break
4461 fi
4462
4463     done
4464     ac_cv_prog_CPP=$CPP
4465
4466 fi
4467   CPP=$ac_cv_prog_CPP
4468 else
4469   ac_cv_prog_CPP=$CPP
4470 fi
4471 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4472 $as_echo "$CPP" >&6; }
4473 ac_preproc_ok=false
4474 for ac_c_preproc_warn_flag in '' yes
4475 do
4476   # Use a header file that comes with gcc, so configuring glibc
4477   # with a fresh cross-compiler works.
4478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4479   # <limits.h> exists even on freestanding compilers.
4480   # On the NeXT, cc -E runs the code through the compiler's parser,
4481   # not just through cpp. "Syntax error" is here to catch this case.
4482   cat >conftest.$ac_ext <<_ACEOF
4483 /* confdefs.h.  */
4484 _ACEOF
4485 cat confdefs.h >>conftest.$ac_ext
4486 cat >>conftest.$ac_ext <<_ACEOF
4487 /* end confdefs.h.  */
4488 #ifdef __STDC__
4489 # include <limits.h>
4490 #else
4491 # include <assert.h>
4492 #endif
4493                      Syntax error
4494 _ACEOF
4495 if { (ac_try="$ac_cpp conftest.$ac_ext"
4496 case "(($ac_try" in
4497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498   *) ac_try_echo=$ac_try;;
4499 esac
4500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4501 $as_echo "$ac_try_echo") >&5
4502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4503   ac_status=$?
4504   grep -v '^ *+' conftest.er1 >conftest.err
4505   rm -f conftest.er1
4506   cat conftest.err >&5
4507   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508   (exit $ac_status); } >/dev/null && {
4509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4510          test ! -s conftest.err
4511        }; then
4512   :
4513 else
4514   $as_echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517   # Broken: fails on valid input.
4518 continue
4519 fi
4520
4521 rm -f conftest.err conftest.$ac_ext
4522
4523   # OK, works on sane cases.  Now check whether nonexistent headers
4524   # can be detected and how.
4525   cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h.  */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h.  */
4531 #include <ac_nonexistent.h>
4532 _ACEOF
4533 if { (ac_try="$ac_cpp conftest.$ac_ext"
4534 case "(($ac_try" in
4535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536   *) ac_try_echo=$ac_try;;
4537 esac
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4539 $as_echo "$ac_try_echo") >&5
4540   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4541   ac_status=$?
4542   grep -v '^ *+' conftest.er1 >conftest.err
4543   rm -f conftest.er1
4544   cat conftest.err >&5
4545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546   (exit $ac_status); } >/dev/null && {
4547          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4548          test ! -s conftest.err
4549        }; then
4550   # Broken: success on invalid input.
4551 continue
4552 else
4553   $as_echo "$as_me: failed program was:" >&5
4554 sed 's/^/| /' conftest.$ac_ext >&5
4555
4556   # Passes both tests.
4557 ac_preproc_ok=:
4558 break
4559 fi
4560
4561 rm -f conftest.err conftest.$ac_ext
4562
4563 done
4564 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4565 rm -f conftest.err conftest.$ac_ext
4566 if $ac_preproc_ok; then
4567   :
4568 else
4569   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4571 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4572 See \`config.log' for more details." >&5
4573 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4574 See \`config.log' for more details." >&2;}
4575    { (exit 1); exit 1; }; }; }
4576 fi
4577
4578 ac_ext=c
4579 ac_cpp='$CPP $CPPFLAGS'
4580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583
4584
4585 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4586 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4587 if test "${ac_cv_path_GREP+set}" = set; then
4588   $as_echo_n "(cached) " >&6
4589 else
4590   if test -z "$GREP"; then
4591   ac_path_GREP_found=false
4592   # Loop through the user's path and test for each of PROGNAME-LIST
4593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 do
4596   IFS=$as_save_IFS
4597   test -z "$as_dir" && as_dir=.
4598   for ac_prog in grep ggrep; do
4599     for ac_exec_ext in '' $ac_executable_extensions; do
4600       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4601       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4602 # Check for GNU ac_path_GREP and select it if it is found.
4603   # Check for GNU $ac_path_GREP
4604 case `"$ac_path_GREP" --version 2>&1` in
4605 *GNU*)
4606   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4607 *)
4608   ac_count=0
4609   $as_echo_n 0123456789 >"conftest.in"
4610   while :
4611   do
4612     cat "conftest.in" "conftest.in" >"conftest.tmp"
4613     mv "conftest.tmp" "conftest.in"
4614     cp "conftest.in" "conftest.nl"
4615     $as_echo 'GREP' >> "conftest.nl"
4616     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618     ac_count=`expr $ac_count + 1`
4619     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4620       # Best one so far, save it but keep looking for a better one
4621       ac_cv_path_GREP="$ac_path_GREP"
4622       ac_path_GREP_max=$ac_count
4623     fi
4624     # 10*(2^10) chars as input seems more than enough
4625     test $ac_count -gt 10 && break
4626   done
4627   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630       $ac_path_GREP_found && break 3
4631     done
4632   done
4633 done
4634 IFS=$as_save_IFS
4635   if test -z "$ac_cv_path_GREP"; then
4636     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4637 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4638    { (exit 1); exit 1; }; }
4639   fi
4640 else
4641   ac_cv_path_GREP=$GREP
4642 fi
4643
4644 fi
4645 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4646 $as_echo "$ac_cv_path_GREP" >&6; }
4647  GREP="$ac_cv_path_GREP"
4648
4649
4650 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4651 $as_echo_n "checking for egrep... " >&6; }
4652 if test "${ac_cv_path_EGREP+set}" = set; then
4653   $as_echo_n "(cached) " >&6
4654 else
4655   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4656    then ac_cv_path_EGREP="$GREP -E"
4657    else
4658      if test -z "$EGREP"; then
4659   ac_path_EGREP_found=false
4660   # Loop through the user's path and test for each of PROGNAME-LIST
4661   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 do
4664   IFS=$as_save_IFS
4665   test -z "$as_dir" && as_dir=.
4666   for ac_prog in egrep; do
4667     for ac_exec_ext in '' $ac_executable_extensions; do
4668       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4669       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4670 # Check for GNU ac_path_EGREP and select it if it is found.
4671   # Check for GNU $ac_path_EGREP
4672 case `"$ac_path_EGREP" --version 2>&1` in
4673 *GNU*)
4674   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4675 *)
4676   ac_count=0
4677   $as_echo_n 0123456789 >"conftest.in"
4678   while :
4679   do
4680     cat "conftest.in" "conftest.in" >"conftest.tmp"
4681     mv "conftest.tmp" "conftest.in"
4682     cp "conftest.in" "conftest.nl"
4683     $as_echo 'EGREP' >> "conftest.nl"
4684     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4685     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4686     ac_count=`expr $ac_count + 1`
4687     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4688       # Best one so far, save it but keep looking for a better one
4689       ac_cv_path_EGREP="$ac_path_EGREP"
4690       ac_path_EGREP_max=$ac_count
4691     fi
4692     # 10*(2^10) chars as input seems more than enough
4693     test $ac_count -gt 10 && break
4694   done
4695   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 esac
4697
4698       $ac_path_EGREP_found && break 3
4699     done
4700   done
4701 done
4702 IFS=$as_save_IFS
4703   if test -z "$ac_cv_path_EGREP"; then
4704     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4705 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4706    { (exit 1); exit 1; }; }
4707   fi
4708 else
4709   ac_cv_path_EGREP=$EGREP
4710 fi
4711
4712    fi
4713 fi
4714 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716  EGREP="$ac_cv_path_EGREP"
4717
4718
4719 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4720 $as_echo_n "checking for ANSI C header files... " >&6; }
4721 if test "${ac_cv_header_stdc+set}" = set; then
4722   $as_echo_n "(cached) " >&6
4723 else
4724   cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h.  */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h.  */
4730 #include <stdlib.h>
4731 #include <stdarg.h>
4732 #include <string.h>
4733 #include <float.h>
4734
4735 int
4736 main ()
4737 {
4738
4739   ;
4740   return 0;
4741 }
4742 _ACEOF
4743 rm -f conftest.$ac_objext
4744 if { (ac_try="$ac_compile"
4745 case "(($ac_try" in
4746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4747   *) ac_try_echo=$ac_try;;
4748 esac
4749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4750 $as_echo "$ac_try_echo") >&5
4751   (eval "$ac_compile") 2>conftest.er1
4752   ac_status=$?
4753   grep -v '^ *+' conftest.er1 >conftest.err
4754   rm -f conftest.er1
4755   cat conftest.err >&5
4756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757   (exit $ac_status); } && {
4758          test -z "$ac_c_werror_flag" ||
4759          test ! -s conftest.err
4760        } && test -s conftest.$ac_objext; then
4761   ac_cv_header_stdc=yes
4762 else
4763   $as_echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4765
4766         ac_cv_header_stdc=no
4767 fi
4768
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770
4771 if test $ac_cv_header_stdc = yes; then
4772   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4773   cat >conftest.$ac_ext <<_ACEOF
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 #include <string.h>
4780
4781 _ACEOF
4782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4783   $EGREP "memchr" >/dev/null 2>&1; then
4784   :
4785 else
4786   ac_cv_header_stdc=no
4787 fi
4788 rm -f conftest*
4789
4790 fi
4791
4792 if test $ac_cv_header_stdc = yes; then
4793   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4794   cat >conftest.$ac_ext <<_ACEOF
4795 /* confdefs.h.  */
4796 _ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h.  */
4800 #include <stdlib.h>
4801
4802 _ACEOF
4803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4804   $EGREP "free" >/dev/null 2>&1; then
4805   :
4806 else
4807   ac_cv_header_stdc=no
4808 fi
4809 rm -f conftest*
4810
4811 fi
4812
4813 if test $ac_cv_header_stdc = yes; then
4814   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4815   if test "$cross_compiling" = yes; then
4816   :
4817 else
4818   cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h.  */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h.  */
4824 #include <ctype.h>
4825 #include <stdlib.h>
4826 #if ((' ' & 0x0FF) == 0x020)
4827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4829 #else
4830 # define ISLOWER(c) \
4831                    (('a' <= (c) && (c) <= 'i') \
4832                      || ('j' <= (c) && (c) <= 'r') \
4833                      || ('s' <= (c) && (c) <= 'z'))
4834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4835 #endif
4836
4837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4838 int
4839 main ()
4840 {
4841   int i;
4842   for (i = 0; i < 256; i++)
4843     if (XOR (islower (i), ISLOWER (i))
4844         || toupper (i) != TOUPPER (i))
4845       return 2;
4846   return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest$ac_exeext
4850 if { (ac_try="$ac_link"
4851 case "(($ac_try" in
4852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853   *) ac_try_echo=$ac_try;;
4854 esac
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857   (eval "$ac_link") 2>&5
4858   ac_status=$?
4859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4861   { (case "(($ac_try" in
4862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863   *) ac_try_echo=$ac_try;;
4864 esac
4865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867   (eval "$ac_try") 2>&5
4868   ac_status=$?
4869   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870   (exit $ac_status); }; }; then
4871   :
4872 else
4873   $as_echo "$as_me: program exited with status $ac_status" >&5
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ( exit $ac_status )
4878 ac_cv_header_stdc=no
4879 fi
4880 rm -rf conftest.dSYM
4881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4882 fi
4883
4884
4885 fi
4886 fi
4887 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4888 $as_echo "$ac_cv_header_stdc" >&6; }
4889 if test $ac_cv_header_stdc = yes; then
4890
4891 cat >>confdefs.h <<\_ACEOF
4892 #define STDC_HEADERS 1
4893 _ACEOF
4894
4895 fi
4896
4897 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4908                   inttypes.h stdint.h unistd.h
4909 do
4910 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4912 $as_echo_n "checking for $ac_header... " >&6; }
4913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4914   $as_echo_n "(cached) " >&6
4915 else
4916   cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h.  */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h.  */
4922 $ac_includes_default
4923
4924 #include <$ac_header>
4925 _ACEOF
4926 rm -f conftest.$ac_objext
4927 if { (ac_try="$ac_compile"
4928 case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4933 $as_echo "$ac_try_echo") >&5
4934   (eval "$ac_compile") 2>conftest.er1
4935   ac_status=$?
4936   grep -v '^ *+' conftest.er1 >conftest.err
4937   rm -f conftest.er1
4938   cat conftest.err >&5
4939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940   (exit $ac_status); } && {
4941          test -z "$ac_c_werror_flag" ||
4942          test ! -s conftest.err
4943        } && test -s conftest.$ac_objext; then
4944   eval "$as_ac_Header=yes"
4945 else
4946   $as_echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4948
4949         eval "$as_ac_Header=no"
4950 fi
4951
4952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4953 fi
4954 ac_res=`eval 'as_val=${'$as_ac_Header'}
4955                  $as_echo "$as_val"'`
4956                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4957 $as_echo "$ac_res" >&6; }
4958 as_val=`eval 'as_val=${'$as_ac_Header'}
4959                  $as_echo "$as_val"'`
4960    if test "x$as_val" = x""yes; then
4961   cat >>confdefs.h <<_ACEOF
4962 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4963 _ACEOF
4964
4965 fi
4966
4967 done
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980 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
4981 do
4982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4984   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4985 $as_echo_n "checking for $ac_header... " >&6; }
4986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4987   $as_echo_n "(cached) " >&6
4988 fi
4989 ac_res=`eval 'as_val=${'$as_ac_Header'}
4990                  $as_echo "$as_val"'`
4991                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4992 $as_echo "$ac_res" >&6; }
4993 else
4994   # Is the header compilable?
4995 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4996 $as_echo_n "checking $ac_header usability... " >&6; }
4997 cat >conftest.$ac_ext <<_ACEOF
4998 /* confdefs.h.  */
4999 _ACEOF
5000 cat confdefs.h >>conftest.$ac_ext
5001 cat >>conftest.$ac_ext <<_ACEOF
5002 /* end confdefs.h.  */
5003 $ac_includes_default
5004 #include <$ac_header>
5005 _ACEOF
5006 rm -f conftest.$ac_objext
5007 if { (ac_try="$ac_compile"
5008 case "(($ac_try" in
5009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010   *) ac_try_echo=$ac_try;;
5011 esac
5012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5013 $as_echo "$ac_try_echo") >&5
5014   (eval "$ac_compile") 2>conftest.er1
5015   ac_status=$?
5016   grep -v '^ *+' conftest.er1 >conftest.err
5017   rm -f conftest.er1
5018   cat conftest.err >&5
5019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020   (exit $ac_status); } && {
5021          test -z "$ac_c_werror_flag" ||
5022          test ! -s conftest.err
5023        } && test -s conftest.$ac_objext; then
5024   ac_header_compiler=yes
5025 else
5026   $as_echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5028
5029         ac_header_compiler=no
5030 fi
5031
5032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5034 $as_echo "$ac_header_compiler" >&6; }
5035
5036 # Is the header present?
5037 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5038 $as_echo_n "checking $ac_header presence... " >&6; }
5039 cat >conftest.$ac_ext <<_ACEOF
5040 /* confdefs.h.  */
5041 _ACEOF
5042 cat confdefs.h >>conftest.$ac_ext
5043 cat >>conftest.$ac_ext <<_ACEOF
5044 /* end confdefs.h.  */
5045 #include <$ac_header>
5046 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext"
5048 case "(($ac_try" in
5049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050   *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055   ac_status=$?
5056   grep -v '^ *+' conftest.er1 >conftest.err
5057   rm -f conftest.er1
5058   cat conftest.err >&5
5059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060   (exit $ac_status); } >/dev/null && {
5061          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062          test ! -s conftest.err
5063        }; then
5064   ac_header_preproc=yes
5065 else
5066   $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069   ac_header_preproc=no
5070 fi
5071
5072 rm -f conftest.err conftest.$ac_ext
5073 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5074 $as_echo "$ac_header_preproc" >&6; }
5075
5076 # So?  What about this header?
5077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5078   yes:no: )
5079     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5080 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5081     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5082 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5083     ac_header_preproc=yes
5084     ;;
5085   no:yes:* )
5086     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5087 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5088     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5089 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5090     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5091 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5092     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5093 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5094     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5095 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5096     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5097 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5098
5099     ;;
5100 esac
5101 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5102 $as_echo_n "checking for $ac_header... " >&6; }
5103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5104   $as_echo_n "(cached) " >&6
5105 else
5106   eval "$as_ac_Header=\$ac_header_preproc"
5107 fi
5108 ac_res=`eval 'as_val=${'$as_ac_Header'}
5109                  $as_echo "$as_val"'`
5110                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5111 $as_echo "$ac_res" >&6; }
5112
5113 fi
5114 as_val=`eval 'as_val=${'$as_ac_Header'}
5115                  $as_echo "$as_val"'`
5116    if test "x$as_val" = x""yes; then
5117   cat >>confdefs.h <<_ACEOF
5118 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5119 _ACEOF
5120
5121 fi
5122
5123 done
5124
5125
5126
5127  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
5128 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5129 if test "${ac_cv_c_bigendian+set}" = set; then
5130   $as_echo_n "(cached) " >&6
5131 else
5132   ac_cv_c_bigendian=unknown
5133     # See if we're dealing with a universal compiler.
5134     cat >conftest.$ac_ext <<_ACEOF
5135 /* confdefs.h.  */
5136 _ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h.  */
5140 #ifndef __APPLE_CC__
5141                not a universal capable compiler
5142              #endif
5143              typedef int dummy;
5144
5145 _ACEOF
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5153 $as_echo "$ac_try_echo") >&5
5154   (eval "$ac_compile") 2>conftest.er1
5155   ac_status=$?
5156   grep -v '^ *+' conftest.er1 >conftest.err
5157   rm -f conftest.er1
5158   cat conftest.err >&5
5159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5160   (exit $ac_status); } && {
5161          test -z "$ac_c_werror_flag" ||
5162          test ! -s conftest.err
5163        } && test -s conftest.$ac_objext; then
5164
5165         # Check for potential -arch flags.  It is not universal unless
5166         # there are some -arch flags.  Note that *ppc* also matches
5167         # ppc64.  This check is also rather less than ideal.
5168         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
5169           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
5170         esac
5171 else
5172   $as_echo "$as_me: failed program was:" >&5
5173 sed 's/^/| /' conftest.$ac_ext >&5
5174
5175
5176 fi
5177
5178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5179     if test $ac_cv_c_bigendian = unknown; then
5180       # See if sys/param.h defines the BYTE_ORDER macro.
5181       cat >conftest.$ac_ext <<_ACEOF
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 #include <sys/types.h>
5188              #include <sys/param.h>
5189
5190 int
5191 main ()
5192 {
5193 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5194                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5195                      && LITTLE_ENDIAN)
5196               bogus endian macros
5197              #endif
5198
5199   ;
5200   return 0;
5201 }
5202 _ACEOF
5203 rm -f conftest.$ac_objext
5204 if { (ac_try="$ac_compile"
5205 case "(($ac_try" in
5206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207   *) ac_try_echo=$ac_try;;
5208 esac
5209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5210 $as_echo "$ac_try_echo") >&5
5211   (eval "$ac_compile") 2>conftest.er1
5212   ac_status=$?
5213   grep -v '^ *+' conftest.er1 >conftest.err
5214   rm -f conftest.er1
5215   cat conftest.err >&5
5216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217   (exit $ac_status); } && {
5218          test -z "$ac_c_werror_flag" ||
5219          test ! -s conftest.err
5220        } && test -s conftest.$ac_objext; then
5221   # It does; now see whether it defined to BIG_ENDIAN or not.
5222          cat >conftest.$ac_ext <<_ACEOF
5223 /* confdefs.h.  */
5224 _ACEOF
5225 cat confdefs.h >>conftest.$ac_ext
5226 cat >>conftest.$ac_ext <<_ACEOF
5227 /* end confdefs.h.  */
5228 #include <sys/types.h>
5229                 #include <sys/param.h>
5230
5231 int
5232 main ()
5233 {
5234 #if BYTE_ORDER != BIG_ENDIAN
5235                  not big endian
5236                 #endif
5237
5238   ;
5239   return 0;
5240 }
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5244 case "(($ac_try" in
5245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246   *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250   (eval "$ac_compile") 2>conftest.er1
5251   ac_status=$?
5252   grep -v '^ *+' conftest.er1 >conftest.err
5253   rm -f conftest.er1
5254   cat conftest.err >&5
5255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } && {
5257          test -z "$ac_c_werror_flag" ||
5258          test ! -s conftest.err
5259        } && test -s conftest.$ac_objext; then
5260   ac_cv_c_bigendian=yes
5261 else
5262   $as_echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265         ac_cv_c_bigendian=no
5266 fi
5267
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 else
5270   $as_echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5272
5273
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277     fi
5278     if test $ac_cv_c_bigendian = unknown; then
5279       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5280       cat >conftest.$ac_ext <<_ACEOF
5281 /* confdefs.h.  */
5282 _ACEOF
5283 cat confdefs.h >>conftest.$ac_ext
5284 cat >>conftest.$ac_ext <<_ACEOF
5285 /* end confdefs.h.  */
5286 #include <limits.h>
5287
5288 int
5289 main ()
5290 {
5291 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5292               bogus endian macros
5293              #endif
5294
5295   ;
5296   return 0;
5297 }
5298 _ACEOF
5299 rm -f conftest.$ac_objext
5300 if { (ac_try="$ac_compile"
5301 case "(($ac_try" in
5302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303   *) ac_try_echo=$ac_try;;
5304 esac
5305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5306 $as_echo "$ac_try_echo") >&5
5307   (eval "$ac_compile") 2>conftest.er1
5308   ac_status=$?
5309   grep -v '^ *+' conftest.er1 >conftest.err
5310   rm -f conftest.er1
5311   cat conftest.err >&5
5312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); } && {
5314          test -z "$ac_c_werror_flag" ||
5315          test ! -s conftest.err
5316        } && test -s conftest.$ac_objext; then
5317   # It does; now see whether it defined to _BIG_ENDIAN or not.
5318          cat >conftest.$ac_ext <<_ACEOF
5319 /* confdefs.h.  */
5320 _ACEOF
5321 cat confdefs.h >>conftest.$ac_ext
5322 cat >>conftest.$ac_ext <<_ACEOF
5323 /* end confdefs.h.  */
5324 #include <limits.h>
5325
5326 int
5327 main ()
5328 {
5329 #ifndef _BIG_ENDIAN
5330                  not big endian
5331                 #endif
5332
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (ac_try="$ac_compile"
5339 case "(($ac_try" in
5340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341   *) ac_try_echo=$ac_try;;
5342 esac
5343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5344 $as_echo "$ac_try_echo") >&5
5345   (eval "$ac_compile") 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } && {
5352          test -z "$ac_c_werror_flag" ||
5353          test ! -s conftest.err
5354        } && test -s conftest.$ac_objext; then
5355   ac_cv_c_bigendian=yes
5356 else
5357   $as_echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360         ac_cv_c_bigendian=no
5361 fi
5362
5363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 else
5365   $as_echo "$as_me: failed program was:" >&5
5366 sed 's/^/| /' conftest.$ac_ext >&5
5367
5368
5369 fi
5370
5371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372     fi
5373     if test $ac_cv_c_bigendian = unknown; then
5374       # Compile a test program.
5375       if test "$cross_compiling" = yes; then
5376   # Try to guess by grepping values from an object file.
5377          cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h.  */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h.  */
5383 short int ascii_mm[] =
5384                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5385                 short int ascii_ii[] =
5386                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5387                 int use_ascii (int i) {
5388                   return ascii_mm[i] + ascii_ii[i];
5389                 }
5390                 short int ebcdic_ii[] =
5391                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5392                 short int ebcdic_mm[] =
5393                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5394                 int use_ebcdic (int i) {
5395                   return ebcdic_mm[i] + ebcdic_ii[i];
5396                 }
5397                 extern int foo;
5398
5399 int
5400 main ()
5401 {
5402 return use_ascii (foo) == use_ebcdic (foo);
5403   ;
5404   return 0;
5405 }
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411   *) ac_try_echo=$ac_try;;
5412 esac
5413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5414 $as_echo "$ac_try_echo") >&5
5415   (eval "$ac_compile") 2>conftest.er1
5416   ac_status=$?
5417   grep -v '^ *+' conftest.er1 >conftest.err
5418   rm -f conftest.er1
5419   cat conftest.err >&5
5420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421   (exit $ac_status); } && {
5422          test -z "$ac_c_werror_flag" ||
5423          test ! -s conftest.err
5424        } && test -s conftest.$ac_objext; then
5425   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5426               ac_cv_c_bigendian=yes
5427             fi
5428             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5429               if test "$ac_cv_c_bigendian" = unknown; then
5430                 ac_cv_c_bigendian=no
5431               else
5432                 # finding both strings is unlikely to happen, but who knows?
5433                 ac_cv_c_bigendian=unknown
5434               fi
5435             fi
5436 else
5437   $as_echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440
5441 fi
5442
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444 else
5445   cat >conftest.$ac_ext <<_ACEOF
5446 /* confdefs.h.  */
5447 _ACEOF
5448 cat confdefs.h >>conftest.$ac_ext
5449 cat >>conftest.$ac_ext <<_ACEOF
5450 /* end confdefs.h.  */
5451 $ac_includes_default
5452 int
5453 main ()
5454 {
5455
5456              /* Are we little or big endian?  From Harbison&Steele.  */
5457              union
5458              {
5459                long int l;
5460                char c[sizeof (long int)];
5461              } u;
5462              u.l = 1;
5463              return u.c[sizeof (long int) - 1] == 1;
5464
5465   ;
5466   return 0;
5467 }
5468 _ACEOF
5469 rm -f conftest$ac_exeext
5470 if { (ac_try="$ac_link"
5471 case "(($ac_try" in
5472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5473   *) ac_try_echo=$ac_try;;
5474 esac
5475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5476 $as_echo "$ac_try_echo") >&5
5477   (eval "$ac_link") 2>&5
5478   ac_status=$?
5479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5481   { (case "(($ac_try" in
5482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483   *) ac_try_echo=$ac_try;;
5484 esac
5485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5486 $as_echo "$ac_try_echo") >&5
5487   (eval "$ac_try") 2>&5
5488   ac_status=$?
5489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490   (exit $ac_status); }; }; then
5491   ac_cv_c_bigendian=no
5492 else
5493   $as_echo "$as_me: program exited with status $ac_status" >&5
5494 $as_echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.$ac_ext >&5
5496
5497 ( exit $ac_status )
5498 ac_cv_c_bigendian=yes
5499 fi
5500 rm -rf conftest.dSYM
5501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5502 fi
5503
5504
5505     fi
5506 fi
5507 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
5508 $as_echo "$ac_cv_c_bigendian" >&6; }
5509  case $ac_cv_c_bigendian in #(
5510    yes)
5511      cat >>confdefs.h <<\_ACEOF
5512 #define WORDS_BIGENDIAN 1
5513 _ACEOF
5514 ;; #(
5515    no)
5516       ;; #(
5517    universal)
5518
5519 cat >>confdefs.h <<\_ACEOF
5520 #define AC_APPLE_UNIVERSAL_BUILD 1
5521 _ACEOF
5522
5523      ;; #(
5524    *)
5525      { { $as_echo "$as_me:$LINENO: error: unknown endianness
5526  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
5527 $as_echo "$as_me: error: unknown endianness
5528  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
5529    { (exit 1); exit 1; }; } ;;
5530  esac
5531
5532 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5533 $as_echo_n "checking for size_t... " >&6; }
5534 if test "${ac_cv_type_size_t+set}" = set; then
5535   $as_echo_n "(cached) " >&6
5536 else
5537   ac_cv_type_size_t=no
5538 cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 $ac_includes_default
5545 int
5546 main ()
5547 {
5548 if (sizeof (size_t))
5549        return 0;
5550   ;
5551   return 0;
5552 }
5553 _ACEOF
5554 rm -f conftest.$ac_objext
5555 if { (ac_try="$ac_compile"
5556 case "(($ac_try" in
5557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5558   *) ac_try_echo=$ac_try;;
5559 esac
5560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5561 $as_echo "$ac_try_echo") >&5
5562   (eval "$ac_compile") 2>conftest.er1
5563   ac_status=$?
5564   grep -v '^ *+' conftest.er1 >conftest.err
5565   rm -f conftest.er1
5566   cat conftest.err >&5
5567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568   (exit $ac_status); } && {
5569          test -z "$ac_c_werror_flag" ||
5570          test ! -s conftest.err
5571        } && test -s conftest.$ac_objext; then
5572   cat >conftest.$ac_ext <<_ACEOF
5573 /* confdefs.h.  */
5574 _ACEOF
5575 cat confdefs.h >>conftest.$ac_ext
5576 cat >>conftest.$ac_ext <<_ACEOF
5577 /* end confdefs.h.  */
5578 $ac_includes_default
5579 int
5580 main ()
5581 {
5582 if (sizeof ((size_t)))
5583           return 0;
5584   ;
5585   return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592   *) ac_try_echo=$ac_try;;
5593 esac
5594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595 $as_echo "$ac_try_echo") >&5
5596   (eval "$ac_compile") 2>conftest.er1
5597   ac_status=$?
5598   grep -v '^ *+' conftest.er1 >conftest.err
5599   rm -f conftest.er1
5600   cat conftest.err >&5
5601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602   (exit $ac_status); } && {
5603          test -z "$ac_c_werror_flag" ||
5604          test ! -s conftest.err
5605        } && test -s conftest.$ac_objext; then
5606   :
5607 else
5608   $as_echo "$as_me: failed program was:" >&5
5609 sed 's/^/| /' conftest.$ac_ext >&5
5610
5611         ac_cv_type_size_t=yes
5612 fi
5613
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5615 else
5616   $as_echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5618
5619
5620 fi
5621
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 fi
5624 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5625 $as_echo "$ac_cv_type_size_t" >&6; }
5626 if test "x$ac_cv_type_size_t" = x""yes; then
5627   :
5628 else
5629
5630 cat >>confdefs.h <<_ACEOF
5631 #define size_t unsigned int
5632 _ACEOF
5633
5634 fi
5635
5636 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
5637 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5638 if test "${ac_cv_header_time+set}" = set; then
5639   $as_echo_n "(cached) " >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 #include <sys/types.h>
5648 #include <sys/time.h>
5649 #include <time.h>
5650
5651 int
5652 main ()
5653 {
5654 if ((struct tm *) 0)
5655 return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5667 $as_echo "$ac_try_echo") >&5
5668   (eval "$ac_compile") 2>conftest.er1
5669   ac_status=$?
5670   grep -v '^ *+' conftest.er1 >conftest.err
5671   rm -f conftest.er1
5672   cat conftest.err >&5
5673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); } && {
5675          test -z "$ac_c_werror_flag" ||
5676          test ! -s conftest.err
5677        } && test -s conftest.$ac_objext; then
5678   ac_cv_header_time=yes
5679 else
5680   $as_echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5682
5683         ac_cv_header_time=no
5684 fi
5685
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 fi
5688 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
5689 $as_echo "$ac_cv_header_time" >&6; }
5690 if test $ac_cv_header_time = yes; then
5691
5692 cat >>confdefs.h <<\_ACEOF
5693 #define TIME_WITH_SYS_TIME 1
5694 _ACEOF
5695
5696 fi
5697
5698 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5699 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5700 if test "${ac_cv_struct_tm+set}" = set; then
5701   $as_echo_n "(cached) " >&6
5702 else
5703   cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h.  */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h.  */
5709 #include <sys/types.h>
5710 #include <time.h>
5711
5712 int
5713 main ()
5714 {
5715 struct tm tm;
5716                                      int *p = &tm.tm_sec;
5717                                      return !p;
5718   ;
5719   return 0;
5720 }
5721 _ACEOF
5722 rm -f conftest.$ac_objext
5723 if { (ac_try="$ac_compile"
5724 case "(($ac_try" in
5725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5726   *) ac_try_echo=$ac_try;;
5727 esac
5728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5729 $as_echo "$ac_try_echo") >&5
5730   (eval "$ac_compile") 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } && {
5737          test -z "$ac_c_werror_flag" ||
5738          test ! -s conftest.err
5739        } && test -s conftest.$ac_objext; then
5740   ac_cv_struct_tm=time.h
5741 else
5742   $as_echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745         ac_cv_struct_tm=sys/time.h
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 fi
5750 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5751 $as_echo "$ac_cv_struct_tm" >&6; }
5752 if test $ac_cv_struct_tm = sys/time.h; then
5753
5754 cat >>confdefs.h <<\_ACEOF
5755 #define TM_IN_SYS_TIME 1
5756 _ACEOF
5757
5758 fi
5759
5760 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
5761 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5762 if test "${ac_cv_type_uid_t+set}" = set; then
5763   $as_echo_n "(cached) " >&6
5764 else
5765   cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h.  */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h.  */
5771 #include <sys/types.h>
5772
5773 _ACEOF
5774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5775   $EGREP "uid_t" >/dev/null 2>&1; then
5776   ac_cv_type_uid_t=yes
5777 else
5778   ac_cv_type_uid_t=no
5779 fi
5780 rm -f conftest*
5781
5782 fi
5783 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
5784 $as_echo "$ac_cv_type_uid_t" >&6; }
5785 if test $ac_cv_type_uid_t = no; then
5786
5787 cat >>confdefs.h <<\_ACEOF
5788 #define uid_t int
5789 _ACEOF
5790
5791
5792 cat >>confdefs.h <<\_ACEOF
5793 #define gid_t int
5794 _ACEOF
5795
5796 fi
5797
5798 # The cast to long int works around a bug in the HP C Compiler
5799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5801 # This bug is HP SR number 8606223364.
5802 { $as_echo "$as_me:$LINENO: checking size of short" >&5
5803 $as_echo_n "checking size of short... " >&6; }
5804 if test "${ac_cv_sizeof_short+set}" = set; then
5805   $as_echo_n "(cached) " >&6
5806 else
5807   if test "$cross_compiling" = yes; then
5808   # Depending upon the size, compute the lo and hi bounds.
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h.  */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h.  */
5815 $ac_includes_default
5816 int
5817 main ()
5818 {
5819 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
5820 test_array [0] = 0
5821
5822   ;
5823   return 0;
5824 }
5825 _ACEOF
5826 rm -f conftest.$ac_objext
5827 if { (ac_try="$ac_compile"
5828 case "(($ac_try" in
5829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5830   *) ac_try_echo=$ac_try;;
5831 esac
5832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5833 $as_echo "$ac_try_echo") >&5
5834   (eval "$ac_compile") 2>conftest.er1
5835   ac_status=$?
5836   grep -v '^ *+' conftest.er1 >conftest.err
5837   rm -f conftest.er1
5838   cat conftest.err >&5
5839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840   (exit $ac_status); } && {
5841          test -z "$ac_c_werror_flag" ||
5842          test ! -s conftest.err
5843        } && test -s conftest.$ac_objext; then
5844   ac_lo=0 ac_mid=0
5845   while :; do
5846     cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h.  */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h.  */
5852 $ac_includes_default
5853 int
5854 main ()
5855 {
5856 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
5857 test_array [0] = 0
5858
5859   ;
5860   return 0;
5861 }
5862 _ACEOF
5863 rm -f conftest.$ac_objext
5864 if { (ac_try="$ac_compile"
5865 case "(($ac_try" in
5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867   *) ac_try_echo=$ac_try;;
5868 esac
5869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870 $as_echo "$ac_try_echo") >&5
5871   (eval "$ac_compile") 2>conftest.er1
5872   ac_status=$?
5873   grep -v '^ *+' conftest.er1 >conftest.err
5874   rm -f conftest.er1
5875   cat conftest.err >&5
5876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877   (exit $ac_status); } && {
5878          test -z "$ac_c_werror_flag" ||
5879          test ! -s conftest.err
5880        } && test -s conftest.$ac_objext; then
5881   ac_hi=$ac_mid; break
5882 else
5883   $as_echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886         ac_lo=`expr $ac_mid + 1`
5887                         if test $ac_lo -le $ac_mid; then
5888                           ac_lo= ac_hi=
5889                           break
5890                         fi
5891                         ac_mid=`expr 2 '*' $ac_mid + 1`
5892 fi
5893
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895   done
5896 else
5897   $as_echo "$as_me: failed program was:" >&5
5898 sed 's/^/| /' conftest.$ac_ext >&5
5899
5900         cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906 $ac_includes_default
5907 int
5908 main ()
5909 {
5910 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
5911 test_array [0] = 0
5912
5913   ;
5914   return 0;
5915 }
5916 _ACEOF
5917 rm -f conftest.$ac_objext
5918 if { (ac_try="$ac_compile"
5919 case "(($ac_try" in
5920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921   *) ac_try_echo=$ac_try;;
5922 esac
5923 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5924 $as_echo "$ac_try_echo") >&5
5925   (eval "$ac_compile") 2>conftest.er1
5926   ac_status=$?
5927   grep -v '^ *+' conftest.er1 >conftest.err
5928   rm -f conftest.er1
5929   cat conftest.err >&5
5930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); } && {
5932          test -z "$ac_c_werror_flag" ||
5933          test ! -s conftest.err
5934        } && test -s conftest.$ac_objext; then
5935   ac_hi=-1 ac_mid=-1
5936   while :; do
5937     cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943 $ac_includes_default
5944 int
5945 main ()
5946 {
5947 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
5948 test_array [0] = 0
5949
5950   ;
5951   return 0;
5952 }
5953 _ACEOF
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5956 case "(($ac_try" in
5957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958   *) ac_try_echo=$ac_try;;
5959 esac
5960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5961 $as_echo "$ac_try_echo") >&5
5962   (eval "$ac_compile") 2>conftest.er1
5963   ac_status=$?
5964   grep -v '^ *+' conftest.er1 >conftest.err
5965   rm -f conftest.er1
5966   cat conftest.err >&5
5967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5968   (exit $ac_status); } && {
5969          test -z "$ac_c_werror_flag" ||
5970          test ! -s conftest.err
5971        } && test -s conftest.$ac_objext; then
5972   ac_lo=$ac_mid; break
5973 else
5974   $as_echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977         ac_hi=`expr '(' $ac_mid ')' - 1`
5978                         if test $ac_mid -le $ac_hi; then
5979                           ac_lo= ac_hi=
5980                           break
5981                         fi
5982                         ac_mid=`expr 2 '*' $ac_mid`
5983 fi
5984
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986   done
5987 else
5988   $as_echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991         ac_lo= ac_hi=
5992 fi
5993
5994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 fi
5996
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 # Binary search between lo and hi bounds.
5999 while test "x$ac_lo" != "x$ac_hi"; do
6000   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6001   cat >conftest.$ac_ext <<_ACEOF
6002 /* confdefs.h.  */
6003 _ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h.  */
6007 $ac_includes_default
6008 int
6009 main ()
6010 {
6011 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
6012 test_array [0] = 0
6013
6014   ;
6015   return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6025 $as_echo "$ac_try_echo") >&5
6026   (eval "$ac_compile") 2>conftest.er1
6027   ac_status=$?
6028   grep -v '^ *+' conftest.er1 >conftest.err
6029   rm -f conftest.er1
6030   cat conftest.err >&5
6031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); } && {
6033          test -z "$ac_c_werror_flag" ||
6034          test ! -s conftest.err
6035        } && test -s conftest.$ac_objext; then
6036   ac_hi=$ac_mid
6037 else
6038   $as_echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6040
6041         ac_lo=`expr '(' $ac_mid ')' + 1`
6042 fi
6043
6044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 done
6046 case $ac_lo in
6047 ?*) ac_cv_sizeof_short=$ac_lo;;
6048 '') if test "$ac_cv_type_short" = yes; then
6049      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6051 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6052 See \`config.log' for more details." >&5
6053 $as_echo "$as_me: error: cannot compute sizeof (short)
6054 See \`config.log' for more details." >&2;}
6055    { (exit 77); exit 77; }; }; }
6056    else
6057      ac_cv_sizeof_short=0
6058    fi ;;
6059 esac
6060 else
6061   cat >conftest.$ac_ext <<_ACEOF
6062 /* confdefs.h.  */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h.  */
6067 $ac_includes_default
6068 static long int longval () { return (long int) (sizeof (short)); }
6069 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
6070 #include <stdio.h>
6071 #include <stdlib.h>
6072 int
6073 main ()
6074 {
6075
6076   FILE *f = fopen ("conftest.val", "w");
6077   if (! f)
6078     return 1;
6079   if (((long int) (sizeof (short))) < 0)
6080     {
6081       long int i = longval ();
6082       if (i != ((long int) (sizeof (short))))
6083         return 1;
6084       fprintf (f, "%ld", i);
6085     }
6086   else
6087     {
6088       unsigned long int i = ulongval ();
6089       if (i != ((long int) (sizeof (short))))
6090         return 1;
6091       fprintf (f, "%lu", i);
6092     }
6093   /* Do not output a trailing newline, as this causes \r\n confusion
6094      on some platforms.  */
6095   return ferror (f) || fclose (f) != 0;
6096
6097   ;
6098   return 0;
6099 }
6100 _ACEOF
6101 rm -f conftest$ac_exeext
6102 if { (ac_try="$ac_link"
6103 case "(($ac_try" in
6104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105   *) ac_try_echo=$ac_try;;
6106 esac
6107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6108 $as_echo "$ac_try_echo") >&5
6109   (eval "$ac_link") 2>&5
6110   ac_status=$?
6111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6113   { (case "(($ac_try" in
6114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115   *) ac_try_echo=$ac_try;;
6116 esac
6117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118 $as_echo "$ac_try_echo") >&5
6119   (eval "$ac_try") 2>&5
6120   ac_status=$?
6121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122   (exit $ac_status); }; }; then
6123   ac_cv_sizeof_short=`cat conftest.val`
6124 else
6125   $as_echo "$as_me: program exited with status $ac_status" >&5
6126 $as_echo "$as_me: failed program was:" >&5
6127 sed 's/^/| /' conftest.$ac_ext >&5
6128
6129 ( exit $ac_status )
6130 if test "$ac_cv_type_short" = yes; then
6131      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6133 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
6134 See \`config.log' for more details." >&5
6135 $as_echo "$as_me: error: cannot compute sizeof (short)
6136 See \`config.log' for more details." >&2;}
6137    { (exit 77); exit 77; }; }; }
6138    else
6139      ac_cv_sizeof_short=0
6140    fi
6141 fi
6142 rm -rf conftest.dSYM
6143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6144 fi
6145 rm -f conftest.val
6146 fi
6147 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
6148 $as_echo "$ac_cv_sizeof_short" >&6; }
6149
6150
6151
6152 cat >>confdefs.h <<_ACEOF
6153 #define SIZEOF_SHORT $ac_cv_sizeof_short
6154 _ACEOF
6155
6156
6157 # The cast to long int works around a bug in the HP C Compiler
6158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6160 # This bug is HP SR number 8606223364.
6161 { $as_echo "$as_me:$LINENO: checking size of int" >&5
6162 $as_echo_n "checking size of int... " >&6; }
6163 if test "${ac_cv_sizeof_int+set}" = set; then
6164   $as_echo_n "(cached) " >&6
6165 else
6166   if test "$cross_compiling" = yes; then
6167   # Depending upon the size, compute the lo and hi bounds.
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 $ac_includes_default
6175 int
6176 main ()
6177 {
6178 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
6179 test_array [0] = 0
6180
6181   ;
6182   return 0;
6183 }
6184 _ACEOF
6185 rm -f conftest.$ac_objext
6186 if { (ac_try="$ac_compile"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192 $as_echo "$ac_try_echo") >&5
6193   (eval "$ac_compile") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } && {
6200          test -z "$ac_c_werror_flag" ||
6201          test ! -s conftest.err
6202        } && test -s conftest.$ac_objext; then
6203   ac_lo=0 ac_mid=0
6204   while :; do
6205     cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h.  */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h.  */
6211 $ac_includes_default
6212 int
6213 main ()
6214 {
6215 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
6216 test_array [0] = 0
6217
6218   ;
6219   return 0;
6220 }
6221 _ACEOF
6222 rm -f conftest.$ac_objext
6223 if { (ac_try="$ac_compile"
6224 case "(($ac_try" in
6225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6226   *) ac_try_echo=$ac_try;;
6227 esac
6228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6229 $as_echo "$ac_try_echo") >&5
6230   (eval "$ac_compile") 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } && {
6237          test -z "$ac_c_werror_flag" ||
6238          test ! -s conftest.err
6239        } && test -s conftest.$ac_objext; then
6240   ac_hi=$ac_mid; break
6241 else
6242   $as_echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245         ac_lo=`expr $ac_mid + 1`
6246                         if test $ac_lo -le $ac_mid; then
6247                           ac_lo= ac_hi=
6248                           break
6249                         fi
6250                         ac_mid=`expr 2 '*' $ac_mid + 1`
6251 fi
6252
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254   done
6255 else
6256   $as_echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259         cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 $ac_includes_default
6266 int
6267 main ()
6268 {
6269 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
6270 test_array [0] = 0
6271
6272   ;
6273   return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284   (eval "$ac_compile") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest.$ac_objext; then
6294   ac_hi=-1 ac_mid=-1
6295   while :; do
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 int
6304 main ()
6305 {
6306 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
6307 test_array [0] = 0
6308
6309   ;
6310   return 0;
6311 }
6312 _ACEOF
6313 rm -f conftest.$ac_objext
6314 if { (ac_try="$ac_compile"
6315 case "(($ac_try" in
6316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317   *) ac_try_echo=$ac_try;;
6318 esac
6319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6320 $as_echo "$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   $as_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=$ac_mid; break
6332 else
6333   $as_echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336         ac_hi=`expr '(' $ac_mid ')' - 1`
6337                         if test $ac_mid -le $ac_hi; then
6338                           ac_lo= ac_hi=
6339                           break
6340                         fi
6341                         ac_mid=`expr 2 '*' $ac_mid`
6342 fi
6343
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345   done
6346 else
6347   $as_echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350         ac_lo= ac_hi=
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 # Binary search between lo and hi bounds.
6358 while test "x$ac_lo" != "x$ac_hi"; do
6359   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 $ac_includes_default
6367 int
6368 main ()
6369 {
6370 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
6371 test_array [0] = 0
6372
6373   ;
6374   return 0;
6375 }
6376 _ACEOF
6377 rm -f conftest.$ac_objext
6378 if { (ac_try="$ac_compile"
6379 case "(($ac_try" in
6380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6381   *) ac_try_echo=$ac_try;;
6382 esac
6383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6384 $as_echo "$ac_try_echo") >&5
6385   (eval "$ac_compile") 2>conftest.er1
6386   ac_status=$?
6387   grep -v '^ *+' conftest.er1 >conftest.err
6388   rm -f conftest.er1
6389   cat conftest.err >&5
6390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } && {
6392          test -z "$ac_c_werror_flag" ||
6393          test ! -s conftest.err
6394        } && test -s conftest.$ac_objext; then
6395   ac_hi=$ac_mid
6396 else
6397   $as_echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400         ac_lo=`expr '(' $ac_mid ')' + 1`
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 done
6405 case $ac_lo in
6406 ?*) ac_cv_sizeof_int=$ac_lo;;
6407 '') if test "$ac_cv_type_int" = yes; then
6408      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6410 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6411 See \`config.log' for more details." >&5
6412 $as_echo "$as_me: error: cannot compute sizeof (int)
6413 See \`config.log' for more details." >&2;}
6414    { (exit 77); exit 77; }; }; }
6415    else
6416      ac_cv_sizeof_int=0
6417    fi ;;
6418 esac
6419 else
6420   cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h.  */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h.  */
6426 $ac_includes_default
6427 static long int longval () { return (long int) (sizeof (int)); }
6428 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
6429 #include <stdio.h>
6430 #include <stdlib.h>
6431 int
6432 main ()
6433 {
6434
6435   FILE *f = fopen ("conftest.val", "w");
6436   if (! f)
6437     return 1;
6438   if (((long int) (sizeof (int))) < 0)
6439     {
6440       long int i = longval ();
6441       if (i != ((long int) (sizeof (int))))
6442         return 1;
6443       fprintf (f, "%ld", i);
6444     }
6445   else
6446     {
6447       unsigned long int i = ulongval ();
6448       if (i != ((long int) (sizeof (int))))
6449         return 1;
6450       fprintf (f, "%lu", i);
6451     }
6452   /* Do not output a trailing newline, as this causes \r\n confusion
6453      on some platforms.  */
6454   return ferror (f) || fclose (f) != 0;
6455
6456   ;
6457   return 0;
6458 }
6459 _ACEOF
6460 rm -f conftest$ac_exeext
6461 if { (ac_try="$ac_link"
6462 case "(($ac_try" in
6463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6464   *) ac_try_echo=$ac_try;;
6465 esac
6466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6467 $as_echo "$ac_try_echo") >&5
6468   (eval "$ac_link") 2>&5
6469   ac_status=$?
6470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6472   { (case "(($ac_try" in
6473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474   *) ac_try_echo=$ac_try;;
6475 esac
6476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6477 $as_echo "$ac_try_echo") >&5
6478   (eval "$ac_try") 2>&5
6479   ac_status=$?
6480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481   (exit $ac_status); }; }; then
6482   ac_cv_sizeof_int=`cat conftest.val`
6483 else
6484   $as_echo "$as_me: program exited with status $ac_status" >&5
6485 $as_echo "$as_me: failed program was:" >&5
6486 sed 's/^/| /' conftest.$ac_ext >&5
6487
6488 ( exit $ac_status )
6489 if test "$ac_cv_type_int" = yes; then
6490      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6492 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
6493 See \`config.log' for more details." >&5
6494 $as_echo "$as_me: error: cannot compute sizeof (int)
6495 See \`config.log' for more details." >&2;}
6496    { (exit 77); exit 77; }; }; }
6497    else
6498      ac_cv_sizeof_int=0
6499    fi
6500 fi
6501 rm -rf conftest.dSYM
6502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 rm -f conftest.val
6505 fi
6506 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
6507 $as_echo "$ac_cv_sizeof_int" >&6; }
6508
6509
6510
6511 cat >>confdefs.h <<_ACEOF
6512 #define SIZEOF_INT $ac_cv_sizeof_int
6513 _ACEOF
6514
6515
6516 # The cast to long int works around a bug in the HP C Compiler
6517 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6518 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6519 # This bug is HP SR number 8606223364.
6520 { $as_echo "$as_me:$LINENO: checking size of long" >&5
6521 $as_echo_n "checking size of long... " >&6; }
6522 if test "${ac_cv_sizeof_long+set}" = set; then
6523   $as_echo_n "(cached) " >&6
6524 else
6525   if test "$cross_compiling" = yes; then
6526   # Depending upon the size, compute the lo and hi bounds.
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h.  */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h.  */
6533 $ac_includes_default
6534 int
6535 main ()
6536 {
6537 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
6538 test_array [0] = 0
6539
6540   ;
6541   return 0;
6542 }
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548   *) ac_try_echo=$ac_try;;
6549 esac
6550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6551 $as_echo "$ac_try_echo") >&5
6552   (eval "$ac_compile") 2>conftest.er1
6553   ac_status=$?
6554   grep -v '^ *+' conftest.er1 >conftest.err
6555   rm -f conftest.er1
6556   cat conftest.err >&5
6557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558   (exit $ac_status); } && {
6559          test -z "$ac_c_werror_flag" ||
6560          test ! -s conftest.err
6561        } && test -s conftest.$ac_objext; then
6562   ac_lo=0 ac_mid=0
6563   while :; do
6564     cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h.  */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h.  */
6570 $ac_includes_default
6571 int
6572 main ()
6573 {
6574 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6575 test_array [0] = 0
6576
6577   ;
6578   return 0;
6579 }
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (ac_try="$ac_compile"
6583 case "(($ac_try" in
6584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585   *) ac_try_echo=$ac_try;;
6586 esac
6587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6588 $as_echo "$ac_try_echo") >&5
6589   (eval "$ac_compile") 2>conftest.er1
6590   ac_status=$?
6591   grep -v '^ *+' conftest.er1 >conftest.err
6592   rm -f conftest.er1
6593   cat conftest.err >&5
6594   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595   (exit $ac_status); } && {
6596          test -z "$ac_c_werror_flag" ||
6597          test ! -s conftest.err
6598        } && test -s conftest.$ac_objext; then
6599   ac_hi=$ac_mid; break
6600 else
6601   $as_echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604         ac_lo=`expr $ac_mid + 1`
6605                         if test $ac_lo -le $ac_mid; then
6606                           ac_lo= ac_hi=
6607                           break
6608                         fi
6609                         ac_mid=`expr 2 '*' $ac_mid + 1`
6610 fi
6611
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613   done
6614 else
6615   $as_echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6617
6618         cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h.  */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h.  */
6624 $ac_includes_default
6625 int
6626 main ()
6627 {
6628 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
6629 test_array [0] = 0
6630
6631   ;
6632   return 0;
6633 }
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639   *) ac_try_echo=$ac_try;;
6640 esac
6641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642 $as_echo "$ac_try_echo") >&5
6643   (eval "$ac_compile") 2>conftest.er1
6644   ac_status=$?
6645   grep -v '^ *+' conftest.er1 >conftest.err
6646   rm -f conftest.er1
6647   cat conftest.err >&5
6648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); } && {
6650          test -z "$ac_c_werror_flag" ||
6651          test ! -s conftest.err
6652        } && test -s conftest.$ac_objext; then
6653   ac_hi=-1 ac_mid=-1
6654   while :; do
6655     cat >conftest.$ac_ext <<_ACEOF
6656 /* confdefs.h.  */
6657 _ACEOF
6658 cat confdefs.h >>conftest.$ac_ext
6659 cat >>conftest.$ac_ext <<_ACEOF
6660 /* end confdefs.h.  */
6661 $ac_includes_default
6662 int
6663 main ()
6664 {
6665 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
6666 test_array [0] = 0
6667
6668   ;
6669   return 0;
6670 }
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6674 case "(($ac_try" in
6675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676   *) ac_try_echo=$ac_try;;
6677 esac
6678 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6679 $as_echo "$ac_try_echo") >&5
6680   (eval "$ac_compile") 2>conftest.er1
6681   ac_status=$?
6682   grep -v '^ *+' conftest.er1 >conftest.err
6683   rm -f conftest.er1
6684   cat conftest.err >&5
6685   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686   (exit $ac_status); } && {
6687          test -z "$ac_c_werror_flag" ||
6688          test ! -s conftest.err
6689        } && test -s conftest.$ac_objext; then
6690   ac_lo=$ac_mid; break
6691 else
6692   $as_echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695         ac_hi=`expr '(' $ac_mid ')' - 1`
6696                         if test $ac_mid -le $ac_hi; then
6697                           ac_lo= ac_hi=
6698                           break
6699                         fi
6700                         ac_mid=`expr 2 '*' $ac_mid`
6701 fi
6702
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704   done
6705 else
6706   $as_echo "$as_me: failed program was:" >&5
6707 sed 's/^/| /' conftest.$ac_ext >&5
6708
6709         ac_lo= ac_hi=
6710 fi
6711
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 fi
6714
6715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716 # Binary search between lo and hi bounds.
6717 while test "x$ac_lo" != "x$ac_hi"; do
6718   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6719   cat >conftest.$ac_ext <<_ACEOF
6720 /* confdefs.h.  */
6721 _ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h.  */
6725 $ac_includes_default
6726 int
6727 main ()
6728 {
6729 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
6730 test_array [0] = 0
6731
6732   ;
6733   return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6738 case "(($ac_try" in
6739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740   *) ac_try_echo=$ac_try;;
6741 esac
6742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6743 $as_echo "$ac_try_echo") >&5
6744   (eval "$ac_compile") 2>conftest.er1
6745   ac_status=$?
6746   grep -v '^ *+' conftest.er1 >conftest.err
6747   rm -f conftest.er1
6748   cat conftest.err >&5
6749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750   (exit $ac_status); } && {
6751          test -z "$ac_c_werror_flag" ||
6752          test ! -s conftest.err
6753        } && test -s conftest.$ac_objext; then
6754   ac_hi=$ac_mid
6755 else
6756   $as_echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6758
6759         ac_lo=`expr '(' $ac_mid ')' + 1`
6760 fi
6761
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 done
6764 case $ac_lo in
6765 ?*) ac_cv_sizeof_long=$ac_lo;;
6766 '') if test "$ac_cv_type_long" = yes; then
6767      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6769 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6770 See \`config.log' for more details." >&5
6771 $as_echo "$as_me: error: cannot compute sizeof (long)
6772 See \`config.log' for more details." >&2;}
6773    { (exit 77); exit 77; }; }; }
6774    else
6775      ac_cv_sizeof_long=0
6776    fi ;;
6777 esac
6778 else
6779   cat >conftest.$ac_ext <<_ACEOF
6780 /* confdefs.h.  */
6781 _ACEOF
6782 cat confdefs.h >>conftest.$ac_ext
6783 cat >>conftest.$ac_ext <<_ACEOF
6784 /* end confdefs.h.  */
6785 $ac_includes_default
6786 static long int longval () { return (long int) (sizeof (long)); }
6787 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
6788 #include <stdio.h>
6789 #include <stdlib.h>
6790 int
6791 main ()
6792 {
6793
6794   FILE *f = fopen ("conftest.val", "w");
6795   if (! f)
6796     return 1;
6797   if (((long int) (sizeof (long))) < 0)
6798     {
6799       long int i = longval ();
6800       if (i != ((long int) (sizeof (long))))
6801         return 1;
6802       fprintf (f, "%ld", i);
6803     }
6804   else
6805     {
6806       unsigned long int i = ulongval ();
6807       if (i != ((long int) (sizeof (long))))
6808         return 1;
6809       fprintf (f, "%lu", i);
6810     }
6811   /* Do not output a trailing newline, as this causes \r\n confusion
6812      on some platforms.  */
6813   return ferror (f) || fclose (f) != 0;
6814
6815   ;
6816   return 0;
6817 }
6818 _ACEOF
6819 rm -f conftest$ac_exeext
6820 if { (ac_try="$ac_link"
6821 case "(($ac_try" in
6822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6823   *) ac_try_echo=$ac_try;;
6824 esac
6825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6826 $as_echo "$ac_try_echo") >&5
6827   (eval "$ac_link") 2>&5
6828   ac_status=$?
6829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6831   { (case "(($ac_try" in
6832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833   *) ac_try_echo=$ac_try;;
6834 esac
6835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6836 $as_echo "$ac_try_echo") >&5
6837   (eval "$ac_try") 2>&5
6838   ac_status=$?
6839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840   (exit $ac_status); }; }; then
6841   ac_cv_sizeof_long=`cat conftest.val`
6842 else
6843   $as_echo "$as_me: program exited with status $ac_status" >&5
6844 $as_echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6846
6847 ( exit $ac_status )
6848 if test "$ac_cv_type_long" = yes; then
6849      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6851 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
6852 See \`config.log' for more details." >&5
6853 $as_echo "$as_me: error: cannot compute sizeof (long)
6854 See \`config.log' for more details." >&2;}
6855    { (exit 77); exit 77; }; }; }
6856    else
6857      ac_cv_sizeof_long=0
6858    fi
6859 fi
6860 rm -rf conftest.dSYM
6861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6862 fi
6863 rm -f conftest.val
6864 fi
6865 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6866 $as_echo "$ac_cv_sizeof_long" >&6; }
6867
6868
6869
6870 cat >>confdefs.h <<_ACEOF
6871 #define SIZEOF_LONG $ac_cv_sizeof_long
6872 _ACEOF
6873
6874
6875 # The cast to long int works around a bug in the HP C Compiler
6876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6878 # This bug is HP SR number 8606223364.
6879 { $as_echo "$as_me:$LINENO: checking size of void *" >&5
6880 $as_echo_n "checking size of void *... " >&6; }
6881 if test "${ac_cv_sizeof_void_p+set}" = set; then
6882   $as_echo_n "(cached) " >&6
6883 else
6884   if test "$cross_compiling" = yes; then
6885   # Depending upon the size, compute the lo and hi bounds.
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892 $ac_includes_default
6893 int
6894 main ()
6895 {
6896 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= 0)];
6897 test_array [0] = 0
6898
6899   ;
6900   return 0;
6901 }
6902 _ACEOF
6903 rm -f conftest.$ac_objext
6904 if { (ac_try="$ac_compile"
6905 case "(($ac_try" in
6906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6907   *) ac_try_echo=$ac_try;;
6908 esac
6909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6910 $as_echo "$ac_try_echo") >&5
6911   (eval "$ac_compile") 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } && {
6918          test -z "$ac_c_werror_flag" ||
6919          test ! -s conftest.err
6920        } && test -s conftest.$ac_objext; then
6921   ac_lo=0 ac_mid=0
6922   while :; do
6923     cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929 $ac_includes_default
6930 int
6931 main ()
6932 {
6933 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
6934 test_array [0] = 0
6935
6936   ;
6937   return 0;
6938 }
6939 _ACEOF
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6942 case "(($ac_try" in
6943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6944   *) ac_try_echo=$ac_try;;
6945 esac
6946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6947 $as_echo "$ac_try_echo") >&5
6948   (eval "$ac_compile") 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } && {
6955          test -z "$ac_c_werror_flag" ||
6956          test ! -s conftest.err
6957        } && test -s conftest.$ac_objext; then
6958   ac_hi=$ac_mid; break
6959 else
6960   $as_echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963         ac_lo=`expr $ac_mid + 1`
6964                         if test $ac_lo -le $ac_mid; then
6965                           ac_lo= ac_hi=
6966                           break
6967                         fi
6968                         ac_mid=`expr 2 '*' $ac_mid + 1`
6969 fi
6970
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972   done
6973 else
6974   $as_echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977         cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h.  */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h.  */
6983 $ac_includes_default
6984 int
6985 main ()
6986 {
6987 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) < 0)];
6988 test_array [0] = 0
6989
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (ac_try="$ac_compile"
6996 case "(($ac_try" in
6997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998   *) ac_try_echo=$ac_try;;
6999 esac
7000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7001 $as_echo "$ac_try_echo") >&5
7002   (eval "$ac_compile") 2>conftest.er1
7003   ac_status=$?
7004   grep -v '^ *+' conftest.er1 >conftest.err
7005   rm -f conftest.er1
7006   cat conftest.err >&5
7007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008   (exit $ac_status); } && {
7009          test -z "$ac_c_werror_flag" ||
7010          test ! -s conftest.err
7011        } && test -s conftest.$ac_objext; then
7012   ac_hi=-1 ac_mid=-1
7013   while :; do
7014     cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h.  */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h.  */
7020 $ac_includes_default
7021 int
7022 main ()
7023 {
7024 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) >= $ac_mid)];
7025 test_array [0] = 0
7026
7027   ;
7028   return 0;
7029 }
7030 _ACEOF
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7033 case "(($ac_try" in
7034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035   *) ac_try_echo=$ac_try;;
7036 esac
7037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7038 $as_echo "$ac_try_echo") >&5
7039   (eval "$ac_compile") 2>conftest.er1
7040   ac_status=$?
7041   grep -v '^ *+' conftest.er1 >conftest.err
7042   rm -f conftest.er1
7043   cat conftest.err >&5
7044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045   (exit $ac_status); } && {
7046          test -z "$ac_c_werror_flag" ||
7047          test ! -s conftest.err
7048        } && test -s conftest.$ac_objext; then
7049   ac_lo=$ac_mid; break
7050 else
7051   $as_echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7053
7054         ac_hi=`expr '(' $ac_mid ')' - 1`
7055                         if test $ac_mid -le $ac_hi; then
7056                           ac_lo= ac_hi=
7057                           break
7058                         fi
7059                         ac_mid=`expr 2 '*' $ac_mid`
7060 fi
7061
7062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7063   done
7064 else
7065   $as_echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068         ac_lo= ac_hi=
7069 fi
7070
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073
7074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7075 # Binary search between lo and hi bounds.
7076 while test "x$ac_lo" != "x$ac_hi"; do
7077   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7078   cat >conftest.$ac_ext <<_ACEOF
7079 /* confdefs.h.  */
7080 _ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h.  */
7084 $ac_includes_default
7085 int
7086 main ()
7087 {
7088 static int test_array [1 - 2 * !(((long int) (sizeof (void *))) <= $ac_mid)];
7089 test_array [0] = 0
7090
7091   ;
7092   return 0;
7093 }
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7097 case "(($ac_try" in
7098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099   *) ac_try_echo=$ac_try;;
7100 esac
7101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7102 $as_echo "$ac_try_echo") >&5
7103   (eval "$ac_compile") 2>conftest.er1
7104   ac_status=$?
7105   grep -v '^ *+' conftest.er1 >conftest.err
7106   rm -f conftest.er1
7107   cat conftest.err >&5
7108   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109   (exit $ac_status); } && {
7110          test -z "$ac_c_werror_flag" ||
7111          test ! -s conftest.err
7112        } && test -s conftest.$ac_objext; then
7113   ac_hi=$ac_mid
7114 else
7115   $as_echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118         ac_lo=`expr '(' $ac_mid ')' + 1`
7119 fi
7120
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 done
7123 case $ac_lo in
7124 ?*) ac_cv_sizeof_void_p=$ac_lo;;
7125 '') if test "$ac_cv_type_void_p" = yes; then
7126      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7128 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7129 See \`config.log' for more details." >&5
7130 $as_echo "$as_me: error: cannot compute sizeof (void *)
7131 See \`config.log' for more details." >&2;}
7132    { (exit 77); exit 77; }; }; }
7133    else
7134      ac_cv_sizeof_void_p=0
7135    fi ;;
7136 esac
7137 else
7138   cat >conftest.$ac_ext <<_ACEOF
7139 /* confdefs.h.  */
7140 _ACEOF
7141 cat confdefs.h >>conftest.$ac_ext
7142 cat >>conftest.$ac_ext <<_ACEOF
7143 /* end confdefs.h.  */
7144 $ac_includes_default
7145 static long int longval () { return (long int) (sizeof (void *)); }
7146 static unsigned long int ulongval () { return (long int) (sizeof (void *)); }
7147 #include <stdio.h>
7148 #include <stdlib.h>
7149 int
7150 main ()
7151 {
7152
7153   FILE *f = fopen ("conftest.val", "w");
7154   if (! f)
7155     return 1;
7156   if (((long int) (sizeof (void *))) < 0)
7157     {
7158       long int i = longval ();
7159       if (i != ((long int) (sizeof (void *))))
7160         return 1;
7161       fprintf (f, "%ld", i);
7162     }
7163   else
7164     {
7165       unsigned long int i = ulongval ();
7166       if (i != ((long int) (sizeof (void *))))
7167         return 1;
7168       fprintf (f, "%lu", i);
7169     }
7170   /* Do not output a trailing newline, as this causes \r\n confusion
7171      on some platforms.  */
7172   return ferror (f) || fclose (f) != 0;
7173
7174   ;
7175   return 0;
7176 }
7177 _ACEOF
7178 rm -f conftest$ac_exeext
7179 if { (ac_try="$ac_link"
7180 case "(($ac_try" in
7181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182   *) ac_try_echo=$ac_try;;
7183 esac
7184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7185 $as_echo "$ac_try_echo") >&5
7186   (eval "$ac_link") 2>&5
7187   ac_status=$?
7188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7190   { (case "(($ac_try" in
7191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192   *) ac_try_echo=$ac_try;;
7193 esac
7194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7195 $as_echo "$ac_try_echo") >&5
7196   (eval "$ac_try") 2>&5
7197   ac_status=$?
7198   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; }; then
7200   ac_cv_sizeof_void_p=`cat conftest.val`
7201 else
7202   $as_echo "$as_me: program exited with status $ac_status" >&5
7203 $as_echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 ( exit $ac_status )
7207 if test "$ac_cv_type_void_p" = yes; then
7208      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7210 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
7211 See \`config.log' for more details." >&5
7212 $as_echo "$as_me: error: cannot compute sizeof (void *)
7213 See \`config.log' for more details." >&2;}
7214    { (exit 77); exit 77; }; }; }
7215    else
7216      ac_cv_sizeof_void_p=0
7217    fi
7218 fi
7219 rm -rf conftest.dSYM
7220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7221 fi
7222 rm -f conftest.val
7223 fi
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
7225 $as_echo "$ac_cv_sizeof_void_p" >&6; }
7226
7227
7228
7229 cat >>confdefs.h <<_ACEOF
7230 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
7231 _ACEOF
7232
7233
7234 # The cast to long int works around a bug in the HP C Compiler
7235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7237 # This bug is HP SR number 8606223364.
7238 { $as_echo "$as_me:$LINENO: checking size of int64_t" >&5
7239 $as_echo_n "checking size of int64_t... " >&6; }
7240 if test "${ac_cv_sizeof_int64_t+set}" = set; then
7241   $as_echo_n "(cached) " >&6
7242 else
7243   if test "$cross_compiling" = yes; then
7244   # Depending upon the size, compute the lo and hi bounds.
7245 cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251 $ac_includes_default
7252 int
7253 main ()
7254 {
7255 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) >= 0)];
7256 test_array [0] = 0
7257
7258   ;
7259   return 0;
7260 }
7261 _ACEOF
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7264 case "(($ac_try" in
7265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266   *) ac_try_echo=$ac_try;;
7267 esac
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270   (eval "$ac_compile") 2>conftest.er1
7271   ac_status=$?
7272   grep -v '^ *+' conftest.er1 >conftest.err
7273   rm -f conftest.er1
7274   cat conftest.err >&5
7275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276   (exit $ac_status); } && {
7277          test -z "$ac_c_werror_flag" ||
7278          test ! -s conftest.err
7279        } && test -s conftest.$ac_objext; then
7280   ac_lo=0 ac_mid=0
7281   while :; do
7282     cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 $ac_includes_default
7289 int
7290 main ()
7291 {
7292 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) <= $ac_mid)];
7293 test_array [0] = 0
7294
7295   ;
7296   return 0;
7297 }
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303   *) ac_try_echo=$ac_try;;
7304 esac
7305 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7306 $as_echo "$ac_try_echo") >&5
7307   (eval "$ac_compile") 2>conftest.er1
7308   ac_status=$?
7309   grep -v '^ *+' conftest.er1 >conftest.err
7310   rm -f conftest.er1
7311   cat conftest.err >&5
7312   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313   (exit $ac_status); } && {
7314          test -z "$ac_c_werror_flag" ||
7315          test ! -s conftest.err
7316        } && test -s conftest.$ac_objext; then
7317   ac_hi=$ac_mid; break
7318 else
7319   $as_echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7321
7322         ac_lo=`expr $ac_mid + 1`
7323                         if test $ac_lo -le $ac_mid; then
7324                           ac_lo= ac_hi=
7325                           break
7326                         fi
7327                         ac_mid=`expr 2 '*' $ac_mid + 1`
7328 fi
7329
7330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7331   done
7332 else
7333   $as_echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7335
7336         cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h.  */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h.  */
7342 $ac_includes_default
7343 int
7344 main ()
7345 {
7346 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) < 0)];
7347 test_array [0] = 0
7348
7349   ;
7350   return 0;
7351 }
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357   *) ac_try_echo=$ac_try;;
7358 esac
7359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361   (eval "$ac_compile") 2>conftest.er1
7362   ac_status=$?
7363   grep -v '^ *+' conftest.er1 >conftest.err
7364   rm -f conftest.er1
7365   cat conftest.err >&5
7366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); } && {
7368          test -z "$ac_c_werror_flag" ||
7369          test ! -s conftest.err
7370        } && test -s conftest.$ac_objext; then
7371   ac_hi=-1 ac_mid=-1
7372   while :; do
7373     cat >conftest.$ac_ext <<_ACEOF
7374 /* confdefs.h.  */
7375 _ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h.  */
7379 $ac_includes_default
7380 int
7381 main ()
7382 {
7383 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) >= $ac_mid)];
7384 test_array [0] = 0
7385
7386   ;
7387   return 0;
7388 }
7389 _ACEOF
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7392 case "(($ac_try" in
7393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394   *) ac_try_echo=$ac_try;;
7395 esac
7396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7397 $as_echo "$ac_try_echo") >&5
7398   (eval "$ac_compile") 2>conftest.er1
7399   ac_status=$?
7400   grep -v '^ *+' conftest.er1 >conftest.err
7401   rm -f conftest.er1
7402   cat conftest.err >&5
7403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404   (exit $ac_status); } && {
7405          test -z "$ac_c_werror_flag" ||
7406          test ! -s conftest.err
7407        } && test -s conftest.$ac_objext; then
7408   ac_lo=$ac_mid; break
7409 else
7410   $as_echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.$ac_ext >&5
7412
7413         ac_hi=`expr '(' $ac_mid ')' - 1`
7414                         if test $ac_mid -le $ac_hi; then
7415                           ac_lo= ac_hi=
7416                           break
7417                         fi
7418                         ac_mid=`expr 2 '*' $ac_mid`
7419 fi
7420
7421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7422   done
7423 else
7424   $as_echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7426
7427         ac_lo= ac_hi=
7428 fi
7429
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 fi
7432
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 # Binary search between lo and hi bounds.
7435 while test "x$ac_lo" != "x$ac_hi"; do
7436   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7437   cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h.  */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h.  */
7443 $ac_includes_default
7444 int
7445 main ()
7446 {
7447 static int test_array [1 - 2 * !(((long int) (sizeof (int64_t))) <= $ac_mid)];
7448 test_array [0] = 0
7449
7450   ;
7451   return 0;
7452 }
7453 _ACEOF
7454 rm -f conftest.$ac_objext
7455 if { (ac_try="$ac_compile"
7456 case "(($ac_try" in
7457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458   *) ac_try_echo=$ac_try;;
7459 esac
7460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7461 $as_echo "$ac_try_echo") >&5
7462   (eval "$ac_compile") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } && {
7469          test -z "$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        } && test -s conftest.$ac_objext; then
7472   ac_hi=$ac_mid
7473 else
7474   $as_echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477         ac_lo=`expr '(' $ac_mid ')' + 1`
7478 fi
7479
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481 done
7482 case $ac_lo in
7483 ?*) ac_cv_sizeof_int64_t=$ac_lo;;
7484 '') if test "$ac_cv_type_int64_t" = yes; then
7485      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7487 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7488 See \`config.log' for more details." >&5
7489 $as_echo "$as_me: error: cannot compute sizeof (int64_t)
7490 See \`config.log' for more details." >&2;}
7491    { (exit 77); exit 77; }; }; }
7492    else
7493      ac_cv_sizeof_int64_t=0
7494    fi ;;
7495 esac
7496 else
7497   cat >conftest.$ac_ext <<_ACEOF
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503 $ac_includes_default
7504 static long int longval () { return (long int) (sizeof (int64_t)); }
7505 static unsigned long int ulongval () { return (long int) (sizeof (int64_t)); }
7506 #include <stdio.h>
7507 #include <stdlib.h>
7508 int
7509 main ()
7510 {
7511
7512   FILE *f = fopen ("conftest.val", "w");
7513   if (! f)
7514     return 1;
7515   if (((long int) (sizeof (int64_t))) < 0)
7516     {
7517       long int i = longval ();
7518       if (i != ((long int) (sizeof (int64_t))))
7519         return 1;
7520       fprintf (f, "%ld", i);
7521     }
7522   else
7523     {
7524       unsigned long int i = ulongval ();
7525       if (i != ((long int) (sizeof (int64_t))))
7526         return 1;
7527       fprintf (f, "%lu", i);
7528     }
7529   /* Do not output a trailing newline, as this causes \r\n confusion
7530      on some platforms.  */
7531   return ferror (f) || fclose (f) != 0;
7532
7533   ;
7534   return 0;
7535 }
7536 _ACEOF
7537 rm -f conftest$ac_exeext
7538 if { (ac_try="$ac_link"
7539 case "(($ac_try" in
7540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541   *) ac_try_echo=$ac_try;;
7542 esac
7543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7544 $as_echo "$ac_try_echo") >&5
7545   (eval "$ac_link") 2>&5
7546   ac_status=$?
7547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7549   { (case "(($ac_try" in
7550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7551   *) ac_try_echo=$ac_try;;
7552 esac
7553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7554 $as_echo "$ac_try_echo") >&5
7555   (eval "$ac_try") 2>&5
7556   ac_status=$?
7557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558   (exit $ac_status); }; }; then
7559   ac_cv_sizeof_int64_t=`cat conftest.val`
7560 else
7561   $as_echo "$as_me: program exited with status $ac_status" >&5
7562 $as_echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565 ( exit $ac_status )
7566 if test "$ac_cv_type_int64_t" = yes; then
7567      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7569 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int64_t)
7570 See \`config.log' for more details." >&5
7571 $as_echo "$as_me: error: cannot compute sizeof (int64_t)
7572 See \`config.log' for more details." >&2;}
7573    { (exit 77); exit 77; }; }; }
7574    else
7575      ac_cv_sizeof_int64_t=0
7576    fi
7577 fi
7578 rm -rf conftest.dSYM
7579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7580 fi
7581 rm -f conftest.val
7582 fi
7583 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
7584 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
7585
7586
7587
7588 cat >>confdefs.h <<_ACEOF
7589 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
7590 _ACEOF
7591
7592
7593 # The cast to long int works around a bug in the HP C Compiler
7594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7596 # This bug is HP SR number 8606223364.
7597 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
7598 $as_echo_n "checking size of long long... " >&6; }
7599 if test "${ac_cv_sizeof_long_long+set}" = set; then
7600   $as_echo_n "(cached) " >&6
7601 else
7602   if test "$cross_compiling" = yes; then
7603   # Depending upon the size, compute the lo and hi bounds.
7604 cat >conftest.$ac_ext <<_ACEOF
7605 /* confdefs.h.  */
7606 _ACEOF
7607 cat confdefs.h >>conftest.$ac_ext
7608 cat >>conftest.$ac_ext <<_ACEOF
7609 /* end confdefs.h.  */
7610 $ac_includes_default
7611 int
7612 main ()
7613 {
7614 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
7615 test_array [0] = 0
7616
7617   ;
7618   return 0;
7619 }
7620 _ACEOF
7621 rm -f conftest.$ac_objext
7622 if { (ac_try="$ac_compile"
7623 case "(($ac_try" in
7624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625   *) ac_try_echo=$ac_try;;
7626 esac
7627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628 $as_echo "$ac_try_echo") >&5
7629   (eval "$ac_compile") 2>conftest.er1
7630   ac_status=$?
7631   grep -v '^ *+' conftest.er1 >conftest.err
7632   rm -f conftest.er1
7633   cat conftest.err >&5
7634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); } && {
7636          test -z "$ac_c_werror_flag" ||
7637          test ! -s conftest.err
7638        } && test -s conftest.$ac_objext; then
7639   ac_lo=0 ac_mid=0
7640   while :; do
7641     cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647 $ac_includes_default
7648 int
7649 main ()
7650 {
7651 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7652 test_array [0] = 0
7653
7654   ;
7655   return 0;
7656 }
7657 _ACEOF
7658 rm -f conftest.$ac_objext
7659 if { (ac_try="$ac_compile"
7660 case "(($ac_try" in
7661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662   *) ac_try_echo=$ac_try;;
7663 esac
7664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7665 $as_echo "$ac_try_echo") >&5
7666   (eval "$ac_compile") 2>conftest.er1
7667   ac_status=$?
7668   grep -v '^ *+' conftest.er1 >conftest.err
7669   rm -f conftest.er1
7670   cat conftest.err >&5
7671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672   (exit $ac_status); } && {
7673          test -z "$ac_c_werror_flag" ||
7674          test ! -s conftest.err
7675        } && test -s conftest.$ac_objext; then
7676   ac_hi=$ac_mid; break
7677 else
7678   $as_echo "$as_me: failed program was:" >&5
7679 sed 's/^/| /' conftest.$ac_ext >&5
7680
7681         ac_lo=`expr $ac_mid + 1`
7682                         if test $ac_lo -le $ac_mid; then
7683                           ac_lo= ac_hi=
7684                           break
7685                         fi
7686                         ac_mid=`expr 2 '*' $ac_mid + 1`
7687 fi
7688
7689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7690   done
7691 else
7692   $as_echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695         cat >conftest.$ac_ext <<_ACEOF
7696 /* confdefs.h.  */
7697 _ACEOF
7698 cat confdefs.h >>conftest.$ac_ext
7699 cat >>conftest.$ac_ext <<_ACEOF
7700 /* end confdefs.h.  */
7701 $ac_includes_default
7702 int
7703 main ()
7704 {
7705 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
7706 test_array [0] = 0
7707
7708   ;
7709   return 0;
7710 }
7711 _ACEOF
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7714 case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7719 $as_echo "$ac_try_echo") >&5
7720   (eval "$ac_compile") 2>conftest.er1
7721   ac_status=$?
7722   grep -v '^ *+' conftest.er1 >conftest.err
7723   rm -f conftest.er1
7724   cat conftest.err >&5
7725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } && {
7727          test -z "$ac_c_werror_flag" ||
7728          test ! -s conftest.err
7729        } && test -s conftest.$ac_objext; then
7730   ac_hi=-1 ac_mid=-1
7731   while :; do
7732     cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738 $ac_includes_default
7739 int
7740 main ()
7741 {
7742 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
7743 test_array [0] = 0
7744
7745   ;
7746   return 0;
7747 }
7748 _ACEOF
7749 rm -f conftest.$ac_objext
7750 if { (ac_try="$ac_compile"
7751 case "(($ac_try" in
7752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7753   *) ac_try_echo=$ac_try;;
7754 esac
7755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7756 $as_echo "$ac_try_echo") >&5
7757   (eval "$ac_compile") 2>conftest.er1
7758   ac_status=$?
7759   grep -v '^ *+' conftest.er1 >conftest.err
7760   rm -f conftest.er1
7761   cat conftest.err >&5
7762   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } && {
7764          test -z "$ac_c_werror_flag" ||
7765          test ! -s conftest.err
7766        } && test -s conftest.$ac_objext; then
7767   ac_lo=$ac_mid; break
7768 else
7769   $as_echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7771
7772         ac_hi=`expr '(' $ac_mid ')' - 1`
7773                         if test $ac_mid -le $ac_hi; then
7774                           ac_lo= ac_hi=
7775                           break
7776                         fi
7777                         ac_mid=`expr 2 '*' $ac_mid`
7778 fi
7779
7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781   done
7782 else
7783   $as_echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7785
7786         ac_lo= ac_hi=
7787 fi
7788
7789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 fi
7791
7792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7793 # Binary search between lo and hi bounds.
7794 while test "x$ac_lo" != "x$ac_hi"; do
7795   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7796   cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h.  */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h.  */
7802 $ac_includes_default
7803 int
7804 main ()
7805 {
7806 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
7807 test_array [0] = 0
7808
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 rm -f conftest.$ac_objext
7814 if { (ac_try="$ac_compile"
7815 case "(($ac_try" in
7816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7817   *) ac_try_echo=$ac_try;;
7818 esac
7819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7820 $as_echo "$ac_try_echo") >&5
7821   (eval "$ac_compile") 2>conftest.er1
7822   ac_status=$?
7823   grep -v '^ *+' conftest.er1 >conftest.err
7824   rm -f conftest.er1
7825   cat conftest.err >&5
7826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } && {
7828          test -z "$ac_c_werror_flag" ||
7829          test ! -s conftest.err
7830        } && test -s conftest.$ac_objext; then
7831   ac_hi=$ac_mid
7832 else
7833   $as_echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7835
7836         ac_lo=`expr '(' $ac_mid ')' + 1`
7837 fi
7838
7839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7840 done
7841 case $ac_lo in
7842 ?*) ac_cv_sizeof_long_long=$ac_lo;;
7843 '') if test "$ac_cv_type_long_long" = yes; then
7844      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7846 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7847 See \`config.log' for more details." >&5
7848 $as_echo "$as_me: error: cannot compute sizeof (long long)
7849 See \`config.log' for more details." >&2;}
7850    { (exit 77); exit 77; }; }; }
7851    else
7852      ac_cv_sizeof_long_long=0
7853    fi ;;
7854 esac
7855 else
7856   cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h.  */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h.  */
7862 $ac_includes_default
7863 static long int longval () { return (long int) (sizeof (long long)); }
7864 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
7865 #include <stdio.h>
7866 #include <stdlib.h>
7867 int
7868 main ()
7869 {
7870
7871   FILE *f = fopen ("conftest.val", "w");
7872   if (! f)
7873     return 1;
7874   if (((long int) (sizeof (long long))) < 0)
7875     {
7876       long int i = longval ();
7877       if (i != ((long int) (sizeof (long long))))
7878         return 1;
7879       fprintf (f, "%ld", i);
7880     }
7881   else
7882     {
7883       unsigned long int i = ulongval ();
7884       if (i != ((long int) (sizeof (long long))))
7885         return 1;
7886       fprintf (f, "%lu", i);
7887     }
7888   /* Do not output a trailing newline, as this causes \r\n confusion
7889      on some platforms.  */
7890   return ferror (f) || fclose (f) != 0;
7891
7892   ;
7893   return 0;
7894 }
7895 _ACEOF
7896 rm -f conftest$ac_exeext
7897 if { (ac_try="$ac_link"
7898 case "(($ac_try" in
7899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7900   *) ac_try_echo=$ac_try;;
7901 esac
7902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7903 $as_echo "$ac_try_echo") >&5
7904   (eval "$ac_link") 2>&5
7905   ac_status=$?
7906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7908   { (case "(($ac_try" in
7909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7910   *) ac_try_echo=$ac_try;;
7911 esac
7912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7913 $as_echo "$ac_try_echo") >&5
7914   (eval "$ac_try") 2>&5
7915   ac_status=$?
7916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917   (exit $ac_status); }; }; then
7918   ac_cv_sizeof_long_long=`cat conftest.val`
7919 else
7920   $as_echo "$as_me: program exited with status $ac_status" >&5
7921 $as_echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 ( exit $ac_status )
7925 if test "$ac_cv_type_long_long" = yes; then
7926      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7928 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
7929 See \`config.log' for more details." >&5
7930 $as_echo "$as_me: error: cannot compute sizeof (long long)
7931 See \`config.log' for more details." >&2;}
7932    { (exit 77); exit 77; }; }; }
7933    else
7934      ac_cv_sizeof_long_long=0
7935    fi
7936 fi
7937 rm -rf conftest.dSYM
7938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7939 fi
7940 rm -f conftest.val
7941 fi
7942 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
7943 $as_echo "$ac_cv_sizeof_long_long" >&6; }
7944
7945
7946
7947 cat >>confdefs.h <<_ACEOF
7948 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
7949 _ACEOF
7950
7951
7952 if test "$ac_cv_sizeof_int" = 2 ; then
7953   { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7954 $as_echo_n "checking for int16_t... " >&6; }
7955 if test "${ac_cv_type_int16_t+set}" = set; then
7956   $as_echo_n "(cached) " >&6
7957 else
7958   ac_cv_type_int16_t=no
7959 cat >conftest.$ac_ext <<_ACEOF
7960 /* confdefs.h.  */
7961 _ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h.  */
7965 $ac_includes_default
7966 int
7967 main ()
7968 {
7969 if (sizeof (int16_t))
7970        return 0;
7971   ;
7972   return 0;
7973 }
7974 _ACEOF
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7977 case "(($ac_try" in
7978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7979   *) ac_try_echo=$ac_try;;
7980 esac
7981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7982 $as_echo "$ac_try_echo") >&5
7983   (eval "$ac_compile") 2>conftest.er1
7984   ac_status=$?
7985   grep -v '^ *+' conftest.er1 >conftest.err
7986   rm -f conftest.er1
7987   cat conftest.err >&5
7988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } && {
7990          test -z "$ac_c_werror_flag" ||
7991          test ! -s conftest.err
7992        } && test -s conftest.$ac_objext; then
7993   cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 $ac_includes_default
8000 int
8001 main ()
8002 {
8003 if (sizeof ((int16_t)))
8004           return 0;
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8016 $as_echo "$ac_try_echo") >&5
8017   (eval "$ac_compile") 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
8021   cat conftest.err >&5
8022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } && {
8024          test -z "$ac_c_werror_flag" ||
8025          test ! -s conftest.err
8026        } && test -s conftest.$ac_objext; then
8027   :
8028 else
8029   $as_echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032         ac_cv_type_int16_t=yes
8033 fi
8034
8035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8036 else
8037   $as_echo "$as_me: failed program was:" >&5
8038 sed 's/^/| /' conftest.$ac_ext >&5
8039
8040
8041 fi
8042
8043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 fi
8045 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8046 $as_echo "$ac_cv_type_int16_t" >&6; }
8047 if test "x$ac_cv_type_int16_t" = x""yes; then
8048   :
8049 else
8050
8051 cat >>confdefs.h <<_ACEOF
8052 #define int16_t int
8053 _ACEOF
8054
8055 fi
8056
8057   { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8058 $as_echo_n "checking for uint16_t... " >&6; }
8059 if test "${ac_cv_type_uint16_t+set}" = set; then
8060   $as_echo_n "(cached) " >&6
8061 else
8062   ac_cv_type_uint16_t=no
8063 cat >conftest.$ac_ext <<_ACEOF
8064 /* confdefs.h.  */
8065 _ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h.  */
8069 $ac_includes_default
8070 int
8071 main ()
8072 {
8073 if (sizeof (uint16_t))
8074        return 0;
8075   ;
8076   return 0;
8077 }
8078 _ACEOF
8079 rm -f conftest.$ac_objext
8080 if { (ac_try="$ac_compile"
8081 case "(($ac_try" in
8082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8083   *) ac_try_echo=$ac_try;;
8084 esac
8085 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8086 $as_echo "$ac_try_echo") >&5
8087   (eval "$ac_compile") 2>conftest.er1
8088   ac_status=$?
8089   grep -v '^ *+' conftest.er1 >conftest.err
8090   rm -f conftest.er1
8091   cat conftest.err >&5
8092   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093   (exit $ac_status); } && {
8094          test -z "$ac_c_werror_flag" ||
8095          test ! -s conftest.err
8096        } && test -s conftest.$ac_objext; then
8097   cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 $ac_includes_default
8104 int
8105 main ()
8106 {
8107 if (sizeof ((uint16_t)))
8108           return 0;
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121   (eval "$ac_compile") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } && {
8128          test -z "$ac_c_werror_flag" ||
8129          test ! -s conftest.err
8130        } && test -s conftest.$ac_objext; then
8131   :
8132 else
8133   $as_echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136         ac_cv_type_uint16_t=yes
8137 fi
8138
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8140 else
8141   $as_echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144
8145 fi
8146
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8150 $as_echo "$ac_cv_type_uint16_t" >&6; }
8151 if test "x$ac_cv_type_uint16_t" = x""yes; then
8152   :
8153 else
8154
8155 cat >>confdefs.h <<_ACEOF
8156 #define uint16_t unsigned int
8157 _ACEOF
8158
8159 fi
8160
8161 elif test "$ac_cv_sizeof_short" = 2 ; then
8162   { $as_echo "$as_me:$LINENO: checking for int16_t" >&5
8163 $as_echo_n "checking for int16_t... " >&6; }
8164 if test "${ac_cv_type_int16_t+set}" = set; then
8165   $as_echo_n "(cached) " >&6
8166 else
8167   ac_cv_type_int16_t=no
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h.  */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h.  */
8174 $ac_includes_default
8175 int
8176 main ()
8177 {
8178 if (sizeof (int16_t))
8179        return 0;
8180   ;
8181   return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188   *) ac_try_echo=$ac_try;;
8189 esac
8190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8191 $as_echo "$ac_try_echo") >&5
8192   (eval "$ac_compile") 2>conftest.er1
8193   ac_status=$?
8194   grep -v '^ *+' conftest.er1 >conftest.err
8195   rm -f conftest.er1
8196   cat conftest.err >&5
8197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198   (exit $ac_status); } && {
8199          test -z "$ac_c_werror_flag" ||
8200          test ! -s conftest.err
8201        } && test -s conftest.$ac_objext; then
8202   cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208 $ac_includes_default
8209 int
8210 main ()
8211 {
8212 if (sizeof ((int16_t)))
8213           return 0;
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 rm -f conftest.$ac_objext
8219 if { (ac_try="$ac_compile"
8220 case "(($ac_try" in
8221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222   *) ac_try_echo=$ac_try;;
8223 esac
8224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8225 $as_echo "$ac_try_echo") >&5
8226   (eval "$ac_compile") 2>conftest.er1
8227   ac_status=$?
8228   grep -v '^ *+' conftest.er1 >conftest.err
8229   rm -f conftest.er1
8230   cat conftest.err >&5
8231   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232   (exit $ac_status); } && {
8233          test -z "$ac_c_werror_flag" ||
8234          test ! -s conftest.err
8235        } && test -s conftest.$ac_objext; then
8236   :
8237 else
8238   $as_echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241         ac_cv_type_int16_t=yes
8242 fi
8243
8244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8245 else
8246   $as_echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249
8250 fi
8251
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
8255 $as_echo "$ac_cv_type_int16_t" >&6; }
8256 if test "x$ac_cv_type_int16_t" = x""yes; then
8257   :
8258 else
8259
8260 cat >>confdefs.h <<_ACEOF
8261 #define int16_t short
8262 _ACEOF
8263
8264 fi
8265
8266   { $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
8267 $as_echo_n "checking for uint16_t... " >&6; }
8268 if test "${ac_cv_type_uint16_t+set}" = set; then
8269   $as_echo_n "(cached) " >&6
8270 else
8271   ac_cv_type_uint16_t=no
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 $ac_includes_default
8279 int
8280 main ()
8281 {
8282 if (sizeof (uint16_t))
8283        return 0;
8284   ;
8285   return 0;
8286 }
8287 _ACEOF
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8290 case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8295 $as_echo "$ac_try_echo") >&5
8296   (eval "$ac_compile") 2>conftest.er1
8297   ac_status=$?
8298   grep -v '^ *+' conftest.er1 >conftest.err
8299   rm -f conftest.er1
8300   cat conftest.err >&5
8301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); } && {
8303          test -z "$ac_c_werror_flag" ||
8304          test ! -s conftest.err
8305        } && test -s conftest.$ac_objext; then
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 int
8314 main ()
8315 {
8316 if (sizeof ((uint16_t)))
8317           return 0;
8318   ;
8319   return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8324 case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330   (eval "$ac_compile") 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } && {
8337          test -z "$ac_c_werror_flag" ||
8338          test ! -s conftest.err
8339        } && test -s conftest.$ac_objext; then
8340   :
8341 else
8342   $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345         ac_cv_type_uint16_t=yes
8346 fi
8347
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 else
8350   $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8352
8353
8354 fi
8355
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 fi
8358 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
8359 $as_echo "$ac_cv_type_uint16_t" >&6; }
8360 if test "x$ac_cv_type_uint16_t" = x""yes; then
8361   :
8362 else
8363
8364 cat >>confdefs.h <<_ACEOF
8365 #define uint16_t unsigned short
8366 _ACEOF
8367
8368 fi
8369
8370 else
8371   { { $as_echo "$as_me:$LINENO: error: Cannot find a type with size of 16 bits" >&5
8372 $as_echo "$as_me: error: Cannot find a type with size of 16 bits" >&2;}
8373    { (exit 1); exit 1; }; }
8374 fi
8375 if test "$ac_cv_sizeof_int" = 4 ; then
8376   { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8377 $as_echo_n "checking for int32_t... " >&6; }
8378 if test "${ac_cv_type_int32_t+set}" = set; then
8379   $as_echo_n "(cached) " >&6
8380 else
8381   ac_cv_type_int32_t=no
8382 cat >conftest.$ac_ext <<_ACEOF
8383 /* confdefs.h.  */
8384 _ACEOF
8385 cat confdefs.h >>conftest.$ac_ext
8386 cat >>conftest.$ac_ext <<_ACEOF
8387 /* end confdefs.h.  */
8388 $ac_includes_default
8389 int
8390 main ()
8391 {
8392 if (sizeof (int32_t))
8393        return 0;
8394   ;
8395   return 0;
8396 }
8397 _ACEOF
8398 rm -f conftest.$ac_objext
8399 if { (ac_try="$ac_compile"
8400 case "(($ac_try" in
8401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402   *) ac_try_echo=$ac_try;;
8403 esac
8404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8405 $as_echo "$ac_try_echo") >&5
8406   (eval "$ac_compile") 2>conftest.er1
8407   ac_status=$?
8408   grep -v '^ *+' conftest.er1 >conftest.err
8409   rm -f conftest.er1
8410   cat conftest.err >&5
8411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412   (exit $ac_status); } && {
8413          test -z "$ac_c_werror_flag" ||
8414          test ! -s conftest.err
8415        } && test -s conftest.$ac_objext; then
8416   cat >conftest.$ac_ext <<_ACEOF
8417 /* confdefs.h.  */
8418 _ACEOF
8419 cat confdefs.h >>conftest.$ac_ext
8420 cat >>conftest.$ac_ext <<_ACEOF
8421 /* end confdefs.h.  */
8422 $ac_includes_default
8423 int
8424 main ()
8425 {
8426 if (sizeof ((int32_t)))
8427           return 0;
8428   ;
8429   return 0;
8430 }
8431 _ACEOF
8432 rm -f conftest.$ac_objext
8433 if { (ac_try="$ac_compile"
8434 case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8439 $as_echo "$ac_try_echo") >&5
8440   (eval "$ac_compile") 2>conftest.er1
8441   ac_status=$?
8442   grep -v '^ *+' conftest.er1 >conftest.err
8443   rm -f conftest.er1
8444   cat conftest.err >&5
8445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } && {
8447          test -z "$ac_c_werror_flag" ||
8448          test ! -s conftest.err
8449        } && test -s conftest.$ac_objext; then
8450   :
8451 else
8452   $as_echo "$as_me: failed program was:" >&5
8453 sed 's/^/| /' conftest.$ac_ext >&5
8454
8455         ac_cv_type_int32_t=yes
8456 fi
8457
8458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 else
8460   $as_echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8469 $as_echo "$ac_cv_type_int32_t" >&6; }
8470 if test "x$ac_cv_type_int32_t" = x""yes; then
8471   :
8472 else
8473
8474 cat >>confdefs.h <<_ACEOF
8475 #define int32_t int
8476 _ACEOF
8477
8478 fi
8479
8480   { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8481 $as_echo_n "checking for uint32_t... " >&6; }
8482 if test "${ac_cv_type_uint32_t+set}" = set; then
8483   $as_echo_n "(cached) " >&6
8484 else
8485   ac_cv_type_uint32_t=no
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 $ac_includes_default
8493 int
8494 main ()
8495 {
8496 if (sizeof (uint32_t))
8497        return 0;
8498   ;
8499   return 0;
8500 }
8501 _ACEOF
8502 rm -f conftest.$ac_objext
8503 if { (ac_try="$ac_compile"
8504 case "(($ac_try" in
8505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8506   *) ac_try_echo=$ac_try;;
8507 esac
8508 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8509 $as_echo "$ac_try_echo") >&5
8510   (eval "$ac_compile") 2>conftest.er1
8511   ac_status=$?
8512   grep -v '^ *+' conftest.er1 >conftest.err
8513   rm -f conftest.er1
8514   cat conftest.err >&5
8515   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516   (exit $ac_status); } && {
8517          test -z "$ac_c_werror_flag" ||
8518          test ! -s conftest.err
8519        } && test -s conftest.$ac_objext; then
8520   cat >conftest.$ac_ext <<_ACEOF
8521 /* confdefs.h.  */
8522 _ACEOF
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h.  */
8526 $ac_includes_default
8527 int
8528 main ()
8529 {
8530 if (sizeof ((uint32_t)))
8531           return 0;
8532   ;
8533   return 0;
8534 }
8535 _ACEOF
8536 rm -f conftest.$ac_objext
8537 if { (ac_try="$ac_compile"
8538 case "(($ac_try" in
8539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540   *) ac_try_echo=$ac_try;;
8541 esac
8542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8543 $as_echo "$ac_try_echo") >&5
8544   (eval "$ac_compile") 2>conftest.er1
8545   ac_status=$?
8546   grep -v '^ *+' conftest.er1 >conftest.err
8547   rm -f conftest.er1
8548   cat conftest.err >&5
8549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550   (exit $ac_status); } && {
8551          test -z "$ac_c_werror_flag" ||
8552          test ! -s conftest.err
8553        } && test -s conftest.$ac_objext; then
8554   :
8555 else
8556   $as_echo "$as_me: failed program was:" >&5
8557 sed 's/^/| /' conftest.$ac_ext >&5
8558
8559         ac_cv_type_uint32_t=yes
8560 fi
8561
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 else
8564   $as_echo "$as_me: failed program was:" >&5
8565 sed 's/^/| /' conftest.$ac_ext >&5
8566
8567
8568 fi
8569
8570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 fi
8572 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8573 $as_echo "$ac_cv_type_uint32_t" >&6; }
8574 if test "x$ac_cv_type_uint32_t" = x""yes; then
8575   :
8576 else
8577
8578 cat >>confdefs.h <<_ACEOF
8579 #define uint32_t unsigned int
8580 _ACEOF
8581
8582 fi
8583
8584 elif test "$ac_cv_sizeof_short" = 4 ; then
8585   { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8586 $as_echo_n "checking for int32_t... " >&6; }
8587 if test "${ac_cv_type_int32_t+set}" = set; then
8588   $as_echo_n "(cached) " >&6
8589 else
8590   ac_cv_type_int32_t=no
8591 cat >conftest.$ac_ext <<_ACEOF
8592 /* confdefs.h.  */
8593 _ACEOF
8594 cat confdefs.h >>conftest.$ac_ext
8595 cat >>conftest.$ac_ext <<_ACEOF
8596 /* end confdefs.h.  */
8597 $ac_includes_default
8598 int
8599 main ()
8600 {
8601 if (sizeof (int32_t))
8602        return 0;
8603   ;
8604   return 0;
8605 }
8606 _ACEOF
8607 rm -f conftest.$ac_objext
8608 if { (ac_try="$ac_compile"
8609 case "(($ac_try" in
8610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611   *) ac_try_echo=$ac_try;;
8612 esac
8613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8614 $as_echo "$ac_try_echo") >&5
8615   (eval "$ac_compile") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } && {
8622          test -z "$ac_c_werror_flag" ||
8623          test ! -s conftest.err
8624        } && test -s conftest.$ac_objext; then
8625   cat >conftest.$ac_ext <<_ACEOF
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631 $ac_includes_default
8632 int
8633 main ()
8634 {
8635 if (sizeof ((int32_t)))
8636           return 0;
8637   ;
8638   return 0;
8639 }
8640 _ACEOF
8641 rm -f conftest.$ac_objext
8642 if { (ac_try="$ac_compile"
8643 case "(($ac_try" in
8644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645   *) ac_try_echo=$ac_try;;
8646 esac
8647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8648 $as_echo "$ac_try_echo") >&5
8649   (eval "$ac_compile") 2>conftest.er1
8650   ac_status=$?
8651   grep -v '^ *+' conftest.er1 >conftest.err
8652   rm -f conftest.er1
8653   cat conftest.err >&5
8654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655   (exit $ac_status); } && {
8656          test -z "$ac_c_werror_flag" ||
8657          test ! -s conftest.err
8658        } && test -s conftest.$ac_objext; then
8659   :
8660 else
8661   $as_echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664         ac_cv_type_int32_t=yes
8665 fi
8666
8667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8668 else
8669   $as_echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 fi
8677 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8678 $as_echo "$ac_cv_type_int32_t" >&6; }
8679 if test "x$ac_cv_type_int32_t" = x""yes; then
8680   :
8681 else
8682
8683 cat >>confdefs.h <<_ACEOF
8684 #define int32_t short
8685 _ACEOF
8686
8687 fi
8688
8689   { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8690 $as_echo_n "checking for uint32_t... " >&6; }
8691 if test "${ac_cv_type_uint32_t+set}" = set; then
8692   $as_echo_n "(cached) " >&6
8693 else
8694   ac_cv_type_uint32_t=no
8695 cat >conftest.$ac_ext <<_ACEOF
8696 /* confdefs.h.  */
8697 _ACEOF
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h.  */
8701 $ac_includes_default
8702 int
8703 main ()
8704 {
8705 if (sizeof (uint32_t))
8706        return 0;
8707   ;
8708   return 0;
8709 }
8710 _ACEOF
8711 rm -f conftest.$ac_objext
8712 if { (ac_try="$ac_compile"
8713 case "(($ac_try" in
8714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8715   *) ac_try_echo=$ac_try;;
8716 esac
8717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8718 $as_echo "$ac_try_echo") >&5
8719   (eval "$ac_compile") 2>conftest.er1
8720   ac_status=$?
8721   grep -v '^ *+' conftest.er1 >conftest.err
8722   rm -f conftest.er1
8723   cat conftest.err >&5
8724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725   (exit $ac_status); } && {
8726          test -z "$ac_c_werror_flag" ||
8727          test ! -s conftest.err
8728        } && test -s conftest.$ac_objext; then
8729   cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 $ac_includes_default
8736 int
8737 main ()
8738 {
8739 if (sizeof ((uint32_t)))
8740           return 0;
8741   ;
8742   return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749   *) ac_try_echo=$ac_try;;
8750 esac
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753   (eval "$ac_compile") 2>conftest.er1
8754   ac_status=$?
8755   grep -v '^ *+' conftest.er1 >conftest.err
8756   rm -f conftest.er1
8757   cat conftest.err >&5
8758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } && {
8760          test -z "$ac_c_werror_flag" ||
8761          test ! -s conftest.err
8762        } && test -s conftest.$ac_objext; then
8763   :
8764 else
8765   $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768         ac_cv_type_uint32_t=yes
8769 fi
8770
8771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8772 else
8773   $as_echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8775
8776
8777 fi
8778
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 fi
8781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8782 $as_echo "$ac_cv_type_uint32_t" >&6; }
8783 if test "x$ac_cv_type_uint32_t" = x""yes; then
8784   :
8785 else
8786
8787 cat >>confdefs.h <<_ACEOF
8788 #define uint32_t unsigned short
8789 _ACEOF
8790
8791 fi
8792
8793 elif test "$ac_cv_sizeof_long" = 4 ; then
8794   { $as_echo "$as_me:$LINENO: checking for int32_t" >&5
8795 $as_echo_n "checking for int32_t... " >&6; }
8796 if test "${ac_cv_type_int32_t+set}" = set; then
8797   $as_echo_n "(cached) " >&6
8798 else
8799   ac_cv_type_int32_t=no
8800 cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806 $ac_includes_default
8807 int
8808 main ()
8809 {
8810 if (sizeof (int32_t))
8811        return 0;
8812   ;
8813   return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8818 case "(($ac_try" in
8819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820   *) ac_try_echo=$ac_try;;
8821 esac
8822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8823 $as_echo "$ac_try_echo") >&5
8824   (eval "$ac_compile") 2>conftest.er1
8825   ac_status=$?
8826   grep -v '^ *+' conftest.er1 >conftest.err
8827   rm -f conftest.er1
8828   cat conftest.err >&5
8829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830   (exit $ac_status); } && {
8831          test -z "$ac_c_werror_flag" ||
8832          test ! -s conftest.err
8833        } && test -s conftest.$ac_objext; then
8834   cat >conftest.$ac_ext <<_ACEOF
8835 /* confdefs.h.  */
8836 _ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h.  */
8840 $ac_includes_default
8841 int
8842 main ()
8843 {
8844 if (sizeof ((int32_t)))
8845           return 0;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (ac_try="$ac_compile"
8852 case "(($ac_try" in
8853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854   *) ac_try_echo=$ac_try;;
8855 esac
8856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8857 $as_echo "$ac_try_echo") >&5
8858   (eval "$ac_compile") 2>conftest.er1
8859   ac_status=$?
8860   grep -v '^ *+' conftest.er1 >conftest.err
8861   rm -f conftest.er1
8862   cat conftest.err >&5
8863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); } && {
8865          test -z "$ac_c_werror_flag" ||
8866          test ! -s conftest.err
8867        } && test -s conftest.$ac_objext; then
8868   :
8869 else
8870   $as_echo "$as_me: failed program was:" >&5
8871 sed 's/^/| /' conftest.$ac_ext >&5
8872
8873         ac_cv_type_int32_t=yes
8874 fi
8875
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 else
8878   $as_echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881
8882 fi
8883
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885 fi
8886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
8887 $as_echo "$ac_cv_type_int32_t" >&6; }
8888 if test "x$ac_cv_type_int32_t" = x""yes; then
8889   :
8890 else
8891
8892 cat >>confdefs.h <<_ACEOF
8893 #define int32_t long
8894 _ACEOF
8895
8896 fi
8897
8898   { $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
8899 $as_echo_n "checking for uint32_t... " >&6; }
8900 if test "${ac_cv_type_uint32_t+set}" = set; then
8901   $as_echo_n "(cached) " >&6
8902 else
8903   ac_cv_type_uint32_t=no
8904 cat >conftest.$ac_ext <<_ACEOF
8905 /* confdefs.h.  */
8906 _ACEOF
8907 cat confdefs.h >>conftest.$ac_ext
8908 cat >>conftest.$ac_ext <<_ACEOF
8909 /* end confdefs.h.  */
8910 $ac_includes_default
8911 int
8912 main ()
8913 {
8914 if (sizeof (uint32_t))
8915        return 0;
8916   ;
8917   return 0;
8918 }
8919 _ACEOF
8920 rm -f conftest.$ac_objext
8921 if { (ac_try="$ac_compile"
8922 case "(($ac_try" in
8923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924   *) ac_try_echo=$ac_try;;
8925 esac
8926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8927 $as_echo "$ac_try_echo") >&5
8928   (eval "$ac_compile") 2>conftest.er1
8929   ac_status=$?
8930   grep -v '^ *+' conftest.er1 >conftest.err
8931   rm -f conftest.er1
8932   cat conftest.err >&5
8933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934   (exit $ac_status); } && {
8935          test -z "$ac_c_werror_flag" ||
8936          test ! -s conftest.err
8937        } && test -s conftest.$ac_objext; then
8938   cat >conftest.$ac_ext <<_ACEOF
8939 /* confdefs.h.  */
8940 _ACEOF
8941 cat confdefs.h >>conftest.$ac_ext
8942 cat >>conftest.$ac_ext <<_ACEOF
8943 /* end confdefs.h.  */
8944 $ac_includes_default
8945 int
8946 main ()
8947 {
8948 if (sizeof ((uint32_t)))
8949           return 0;
8950   ;
8951   return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext
8955 if { (ac_try="$ac_compile"
8956 case "(($ac_try" in
8957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958   *) ac_try_echo=$ac_try;;
8959 esac
8960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8961 $as_echo "$ac_try_echo") >&5
8962   (eval "$ac_compile") 2>conftest.er1
8963   ac_status=$?
8964   grep -v '^ *+' conftest.er1 >conftest.err
8965   rm -f conftest.er1
8966   cat conftest.err >&5
8967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968   (exit $ac_status); } && {
8969          test -z "$ac_c_werror_flag" ||
8970          test ! -s conftest.err
8971        } && test -s conftest.$ac_objext; then
8972   :
8973 else
8974   $as_echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977         ac_cv_type_uint32_t=yes
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8981 else
8982   $as_echo "$as_me: failed program was:" >&5
8983 sed 's/^/| /' conftest.$ac_ext >&5
8984
8985
8986 fi
8987
8988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8989 fi
8990 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
8991 $as_echo "$ac_cv_type_uint32_t" >&6; }
8992 if test "x$ac_cv_type_uint32_t" = x""yes; then
8993   :
8994 else
8995
8996 cat >>confdefs.h <<_ACEOF
8997 #define uint32_t unsigned long
8998 _ACEOF
8999
9000 fi
9001
9002 else
9003   { { $as_echo "$as_me:$LINENO: error: Cannot find a type with size of 32 bits" >&5
9004 $as_echo "$as_me: error: Cannot find a type with size of 32 bits" >&2;}
9005    { (exit 1); exit 1; }; }
9006 fi
9007 if test "$ac_cv_sizeof_int64_t" = 8 ; then
9008   { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
9009 $as_echo_n "checking for int64_t... " >&6; }
9010 if test "${ac_cv_type_int64_t+set}" = set; then
9011   $as_echo_n "(cached) " >&6
9012 else
9013   ac_cv_type_int64_t=no
9014 cat >conftest.$ac_ext <<_ACEOF
9015 /* confdefs.h.  */
9016 _ACEOF
9017 cat confdefs.h >>conftest.$ac_ext
9018 cat >>conftest.$ac_ext <<_ACEOF
9019 /* end confdefs.h.  */
9020 $ac_includes_default
9021 int
9022 main ()
9023 {
9024 if (sizeof (int64_t))
9025        return 0;
9026   ;
9027   return 0;
9028 }
9029 _ACEOF
9030 rm -f conftest.$ac_objext
9031 if { (ac_try="$ac_compile"
9032 case "(($ac_try" in
9033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9034   *) ac_try_echo=$ac_try;;
9035 esac
9036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9037 $as_echo "$ac_try_echo") >&5
9038   (eval "$ac_compile") 2>conftest.er1
9039   ac_status=$?
9040   grep -v '^ *+' conftest.er1 >conftest.err
9041   rm -f conftest.er1
9042   cat conftest.err >&5
9043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); } && {
9045          test -z "$ac_c_werror_flag" ||
9046          test ! -s conftest.err
9047        } && test -s conftest.$ac_objext; then
9048   cat >conftest.$ac_ext <<_ACEOF
9049 /* confdefs.h.  */
9050 _ACEOF
9051 cat confdefs.h >>conftest.$ac_ext
9052 cat >>conftest.$ac_ext <<_ACEOF
9053 /* end confdefs.h.  */
9054 $ac_includes_default
9055 int
9056 main ()
9057 {
9058 if (sizeof ((int64_t)))
9059           return 0;
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 rm -f conftest.$ac_objext
9065 if { (ac_try="$ac_compile"
9066 case "(($ac_try" in
9067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9068   *) ac_try_echo=$ac_try;;
9069 esac
9070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9071 $as_echo "$ac_try_echo") >&5
9072   (eval "$ac_compile") 2>conftest.er1
9073   ac_status=$?
9074   grep -v '^ *+' conftest.er1 >conftest.err
9075   rm -f conftest.er1
9076   cat conftest.err >&5
9077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078   (exit $ac_status); } && {
9079          test -z "$ac_c_werror_flag" ||
9080          test ! -s conftest.err
9081        } && test -s conftest.$ac_objext; then
9082   :
9083 else
9084   $as_echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9086
9087         ac_cv_type_int64_t=yes
9088 fi
9089
9090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9091 else
9092   $as_echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.$ac_ext >&5
9094
9095
9096 fi
9097
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 fi
9100 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9101 $as_echo "$ac_cv_type_int64_t" >&6; }
9102
9103   { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
9104 $as_echo_n "checking for uint64_t... " >&6; }
9105 if test "${ac_cv_type_uint64_t+set}" = set; then
9106   $as_echo_n "(cached) " >&6
9107 else
9108   ac_cv_type_uint64_t=no
9109 cat >conftest.$ac_ext <<_ACEOF
9110 /* confdefs.h.  */
9111 _ACEOF
9112 cat confdefs.h >>conftest.$ac_ext
9113 cat >>conftest.$ac_ext <<_ACEOF
9114 /* end confdefs.h.  */
9115 $ac_includes_default
9116 int
9117 main ()
9118 {
9119 if (sizeof (uint64_t))
9120        return 0;
9121   ;
9122   return 0;
9123 }
9124 _ACEOF
9125 rm -f conftest.$ac_objext
9126 if { (ac_try="$ac_compile"
9127 case "(($ac_try" in
9128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129   *) ac_try_echo=$ac_try;;
9130 esac
9131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9132 $as_echo "$ac_try_echo") >&5
9133   (eval "$ac_compile") 2>conftest.er1
9134   ac_status=$?
9135   grep -v '^ *+' conftest.er1 >conftest.err
9136   rm -f conftest.er1
9137   cat conftest.err >&5
9138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139   (exit $ac_status); } && {
9140          test -z "$ac_c_werror_flag" ||
9141          test ! -s conftest.err
9142        } && test -s conftest.$ac_objext; then
9143   cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h.  */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h.  */
9149 $ac_includes_default
9150 int
9151 main ()
9152 {
9153 if (sizeof ((uint64_t)))
9154           return 0;
9155   ;
9156   return 0;
9157 }
9158 _ACEOF
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9161 case "(($ac_try" in
9162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163   *) ac_try_echo=$ac_try;;
9164 esac
9165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9166 $as_echo "$ac_try_echo") >&5
9167   (eval "$ac_compile") 2>conftest.er1
9168   ac_status=$?
9169   grep -v '^ *+' conftest.er1 >conftest.err
9170   rm -f conftest.er1
9171   cat conftest.err >&5
9172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); } && {
9174          test -z "$ac_c_werror_flag" ||
9175          test ! -s conftest.err
9176        } && test -s conftest.$ac_objext; then
9177   :
9178 else
9179   $as_echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9181
9182         ac_cv_type_uint64_t=yes
9183 fi
9184
9185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 else
9187   $as_echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9189
9190
9191 fi
9192
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9194 fi
9195 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9196 $as_echo "$ac_cv_type_uint64_t" >&6; }
9197
9198 elif test "$ac_cv_sizeof_long_long" = 8 ; then
9199   { $as_echo "$as_me:$LINENO: checking for int64_t" >&5
9200 $as_echo_n "checking for int64_t... " >&6; }
9201 if test "${ac_cv_type_int64_t+set}" = set; then
9202   $as_echo_n "(cached) " >&6
9203 else
9204   ac_cv_type_int64_t=no
9205 cat >conftest.$ac_ext <<_ACEOF
9206 /* confdefs.h.  */
9207 _ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h.  */
9211 $ac_includes_default
9212 int
9213 main ()
9214 {
9215 if (sizeof (int64_t))
9216        return 0;
9217   ;
9218   return 0;
9219 }
9220 _ACEOF
9221 rm -f conftest.$ac_objext
9222 if { (ac_try="$ac_compile"
9223 case "(($ac_try" in
9224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9225   *) ac_try_echo=$ac_try;;
9226 esac
9227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9228 $as_echo "$ac_try_echo") >&5
9229   (eval "$ac_compile") 2>conftest.er1
9230   ac_status=$?
9231   grep -v '^ *+' conftest.er1 >conftest.err
9232   rm -f conftest.er1
9233   cat conftest.err >&5
9234   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235   (exit $ac_status); } && {
9236          test -z "$ac_c_werror_flag" ||
9237          test ! -s conftest.err
9238        } && test -s conftest.$ac_objext; then
9239   cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245 $ac_includes_default
9246 int
9247 main ()
9248 {
9249 if (sizeof ((int64_t)))
9250           return 0;
9251   ;
9252   return 0;
9253 }
9254 _ACEOF
9255 rm -f conftest.$ac_objext
9256 if { (ac_try="$ac_compile"
9257 case "(($ac_try" in
9258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259   *) ac_try_echo=$ac_try;;
9260 esac
9261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9262 $as_echo "$ac_try_echo") >&5
9263   (eval "$ac_compile") 2>conftest.er1
9264   ac_status=$?
9265   grep -v '^ *+' conftest.er1 >conftest.err
9266   rm -f conftest.er1
9267   cat conftest.err >&5
9268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); } && {
9270          test -z "$ac_c_werror_flag" ||
9271          test ! -s conftest.err
9272        } && test -s conftest.$ac_objext; then
9273   :
9274 else
9275   $as_echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9277
9278         ac_cv_type_int64_t=yes
9279 fi
9280
9281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9282 else
9283   $as_echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9285
9286
9287 fi
9288
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 fi
9291 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
9292 $as_echo "$ac_cv_type_int64_t" >&6; }
9293 if test "x$ac_cv_type_int64_t" = x""yes; then
9294   :
9295 else
9296
9297 cat >>confdefs.h <<_ACEOF
9298 #define int64_t long long
9299 _ACEOF
9300
9301 fi
9302
9303   { $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
9304 $as_echo_n "checking for uint64_t... " >&6; }
9305 if test "${ac_cv_type_uint64_t+set}" = set; then
9306   $as_echo_n "(cached) " >&6
9307 else
9308   ac_cv_type_uint64_t=no
9309 cat >conftest.$ac_ext <<_ACEOF
9310 /* confdefs.h.  */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h.  */
9315 $ac_includes_default
9316 int
9317 main ()
9318 {
9319 if (sizeof (uint64_t))
9320        return 0;
9321   ;
9322   return 0;
9323 }
9324 _ACEOF
9325 rm -f conftest.$ac_objext
9326 if { (ac_try="$ac_compile"
9327 case "(($ac_try" in
9328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329   *) ac_try_echo=$ac_try;;
9330 esac
9331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9332 $as_echo "$ac_try_echo") >&5
9333   (eval "$ac_compile") 2>conftest.er1
9334   ac_status=$?
9335   grep -v '^ *+' conftest.er1 >conftest.err
9336   rm -f conftest.er1
9337   cat conftest.err >&5
9338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339   (exit $ac_status); } && {
9340          test -z "$ac_c_werror_flag" ||
9341          test ! -s conftest.err
9342        } && test -s conftest.$ac_objext; then
9343   cat >conftest.$ac_ext <<_ACEOF
9344 /* confdefs.h.  */
9345 _ACEOF
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h.  */
9349 $ac_includes_default
9350 int
9351 main ()
9352 {
9353 if (sizeof ((uint64_t)))
9354           return 0;
9355   ;
9356   return 0;
9357 }
9358 _ACEOF
9359 rm -f conftest.$ac_objext
9360 if { (ac_try="$ac_compile"
9361 case "(($ac_try" in
9362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9363   *) ac_try_echo=$ac_try;;
9364 esac
9365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9366 $as_echo "$ac_try_echo") >&5
9367   (eval "$ac_compile") 2>conftest.er1
9368   ac_status=$?
9369   grep -v '^ *+' conftest.er1 >conftest.err
9370   rm -f conftest.er1
9371   cat conftest.err >&5
9372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); } && {
9374          test -z "$ac_c_werror_flag" ||
9375          test ! -s conftest.err
9376        } && test -s conftest.$ac_objext; then
9377   :
9378 else
9379   $as_echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9381
9382         ac_cv_type_uint64_t=yes
9383 fi
9384
9385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9386 else
9387   $as_echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9389
9390
9391 fi
9392
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9394 fi
9395 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
9396 $as_echo "$ac_cv_type_uint64_t" >&6; }
9397 if test "x$ac_cv_type_uint64_t" = x""yes; then
9398   :
9399 else
9400
9401 cat >>confdefs.h <<_ACEOF
9402 #define uint64_t unsigned long long
9403 _ACEOF
9404
9405 fi
9406
9407 else
9408   { { $as_echo "$as_me:$LINENO: error: Cannot find a type with size of 64 bits" >&5
9409 $as_echo "$as_me: error: Cannot find a type with size of 64 bits" >&2;}
9410    { (exit 1); exit 1; }; }
9411 fi
9412 { $as_echo "$as_me:$LINENO: checking for struct sockaddr_in6" >&5
9413 $as_echo_n "checking for struct sockaddr_in6... " >&6; }
9414 if test "${ac_cv_type_struct_sockaddr_in6+set}" = set; then
9415   $as_echo_n "(cached) " >&6
9416 else
9417   ac_cv_type_struct_sockaddr_in6=no
9418 cat >conftest.$ac_ext <<_ACEOF
9419 /* confdefs.h.  */
9420 _ACEOF
9421 cat confdefs.h >>conftest.$ac_ext
9422 cat >>conftest.$ac_ext <<_ACEOF
9423 /* end confdefs.h.  */
9424 #include <sys/types.h>
9425 #include <netinet/in.h>
9426
9427 int
9428 main ()
9429 {
9430 if (sizeof (struct sockaddr_in6))
9431        return 0;
9432   ;
9433   return 0;
9434 }
9435 _ACEOF
9436 rm -f conftest.$ac_objext
9437 if { (ac_try="$ac_compile"
9438 case "(($ac_try" in
9439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9440   *) ac_try_echo=$ac_try;;
9441 esac
9442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9443 $as_echo "$ac_try_echo") >&5
9444   (eval "$ac_compile") 2>conftest.er1
9445   ac_status=$?
9446   grep -v '^ *+' conftest.er1 >conftest.err
9447   rm -f conftest.er1
9448   cat conftest.err >&5
9449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450   (exit $ac_status); } && {
9451          test -z "$ac_c_werror_flag" ||
9452          test ! -s conftest.err
9453        } && test -s conftest.$ac_objext; then
9454   cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460 #include <sys/types.h>
9461 #include <netinet/in.h>
9462
9463 int
9464 main ()
9465 {
9466 if (sizeof ((struct sockaddr_in6)))
9467           return 0;
9468   ;
9469   return 0;
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext
9473 if { (ac_try="$ac_compile"
9474 case "(($ac_try" in
9475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476   *) ac_try_echo=$ac_try;;
9477 esac
9478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9479 $as_echo "$ac_try_echo") >&5
9480   (eval "$ac_compile") 2>conftest.er1
9481   ac_status=$?
9482   grep -v '^ *+' conftest.er1 >conftest.err
9483   rm -f conftest.er1
9484   cat conftest.err >&5
9485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486   (exit $ac_status); } && {
9487          test -z "$ac_c_werror_flag" ||
9488          test ! -s conftest.err
9489        } && test -s conftest.$ac_objext; then
9490   :
9491 else
9492   $as_echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495         ac_cv_type_struct_sockaddr_in6=yes
9496 fi
9497
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 else
9500   $as_echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.$ac_ext >&5
9502
9503
9504 fi
9505
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 fi
9508 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_in6" >&5
9509 $as_echo "$ac_cv_type_struct_sockaddr_in6" >&6; }
9510 if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then
9511   unet_have_sockaddr_in6="yes"
9512 else
9513   unet_have_sockaddr_in6="no"
9514 fi
9515
9516
9517 { $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
9518 $as_echo_n "checking for socklen_t... " >&6; }
9519 if test "${ac_cv_type_socklen_t+set}" = set; then
9520   $as_echo_n "(cached) " >&6
9521 else
9522   ac_cv_type_socklen_t=no
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529 #include <sys/types.h>
9530 #include<sys/socket.h>
9531
9532 int
9533 main ()
9534 {
9535 if (sizeof (socklen_t))
9536        return 0;
9537   ;
9538   return 0;
9539 }
9540 _ACEOF
9541 rm -f conftest.$ac_objext
9542 if { (ac_try="$ac_compile"
9543 case "(($ac_try" in
9544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545   *) ac_try_echo=$ac_try;;
9546 esac
9547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9548 $as_echo "$ac_try_echo") >&5
9549   (eval "$ac_compile") 2>conftest.er1
9550   ac_status=$?
9551   grep -v '^ *+' conftest.er1 >conftest.err
9552   rm -f conftest.er1
9553   cat conftest.err >&5
9554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } && {
9556          test -z "$ac_c_werror_flag" ||
9557          test ! -s conftest.err
9558        } && test -s conftest.$ac_objext; then
9559   cat >conftest.$ac_ext <<_ACEOF
9560 /* confdefs.h.  */
9561 _ACEOF
9562 cat confdefs.h >>conftest.$ac_ext
9563 cat >>conftest.$ac_ext <<_ACEOF
9564 /* end confdefs.h.  */
9565 #include <sys/types.h>
9566 #include<sys/socket.h>
9567
9568 int
9569 main ()
9570 {
9571 if (sizeof ((socklen_t)))
9572           return 0;
9573   ;
9574   return 0;
9575 }
9576 _ACEOF
9577 rm -f conftest.$ac_objext
9578 if { (ac_try="$ac_compile"
9579 case "(($ac_try" in
9580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9581   *) ac_try_echo=$ac_try;;
9582 esac
9583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9584 $as_echo "$ac_try_echo") >&5
9585   (eval "$ac_compile") 2>conftest.er1
9586   ac_status=$?
9587   grep -v '^ *+' conftest.er1 >conftest.err
9588   rm -f conftest.er1
9589   cat conftest.err >&5
9590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591   (exit $ac_status); } && {
9592          test -z "$ac_c_werror_flag" ||
9593          test ! -s conftest.err
9594        } && test -s conftest.$ac_objext; then
9595   :
9596 else
9597   $as_echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600         ac_cv_type_socklen_t=yes
9601 fi
9602
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9604 else
9605   $as_echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9607
9608
9609 fi
9610
9611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9612 fi
9613 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
9614 $as_echo "$ac_cv_type_socklen_t" >&6; }
9615 if test "x$ac_cv_type_socklen_t" = x""yes; then
9616   :
9617 else
9618
9619   { $as_echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
9620 $as_echo_n "checking for socklen_t equivalent... " >&6; }
9621   if test "${curl_cv_socklen_t_equiv+set}" = set; then
9622   $as_echo_n "(cached) " >&6
9623 else
9624
9625     curl_cv_socklen_t_equiv=
9626     for arg2 in "struct sockaddr" void ; do
9627       for t in int size_t unsigned long "unsigned long" ; do
9628         cat >conftest.$ac_ext <<_ACEOF
9629 /* confdefs.h.  */
9630 _ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h.  */
9634 #include <sys/types.h>
9635 #include <sys/socket.h>
9636 int getpeername (int $arg2 *, $t *);
9637 int
9638 main ()
9639 {
9640 $t len;
9641   getpeername(0, 0, &len);
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext
9647 if { (ac_try="$ac_compile"
9648 case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9653 $as_echo "$ac_try_echo") >&5
9654   (eval "$ac_compile") 2>conftest.er1
9655   ac_status=$?
9656   grep -v '^ *+' conftest.er1 >conftest.err
9657   rm -f conftest.er1
9658   cat conftest.err >&5
9659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660   (exit $ac_status); } && {
9661          test -z "$ac_c_werror_flag" ||
9662          test ! -s conftest.err
9663        } && test -s conftest.$ac_objext; then
9664   curl_cv_socklen_t_equiv="$t"
9665   break
9666 else
9667   $as_echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674       done
9675     done
9676
9677 fi
9678
9679   { $as_echo "$as_me:$LINENO: result: $curl_cv_socklen_t_equiv" >&5
9680 $as_echo "$curl_cv_socklen_t_equiv" >&6; }
9681
9682 cat >>confdefs.h <<_ACEOF
9683 #define socklen_t $curl_cv_socklen_t_equiv
9684 _ACEOF
9685
9686 fi
9687
9688
9689
9690
9691
9692
9693 for ac_func in kqueue setrlimit getrusage times
9694 do
9695 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9696 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9697 $as_echo_n "checking for $ac_func... " >&6; }
9698 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9699   $as_echo_n "(cached) " >&6
9700 else
9701   cat >conftest.$ac_ext <<_ACEOF
9702 /* confdefs.h.  */
9703 _ACEOF
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h.  */
9707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9708    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9709 #define $ac_func innocuous_$ac_func
9710
9711 /* System header to define __stub macros and hopefully few prototypes,
9712     which can conflict with char $ac_func (); below.
9713     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9714     <limits.h> exists even on freestanding compilers.  */
9715
9716 #ifdef __STDC__
9717 # include <limits.h>
9718 #else
9719 # include <assert.h>
9720 #endif
9721
9722 #undef $ac_func
9723
9724 /* Override any GCC internal prototype to avoid an error.
9725    Use char because int might match the return type of a GCC
9726    builtin and then its argument prototype would still apply.  */
9727 #ifdef __cplusplus
9728 extern "C"
9729 #endif
9730 char $ac_func ();
9731 /* The GNU C library defines this for functions which it implements
9732     to always fail with ENOSYS.  Some functions are actually named
9733     something starting with __ and the normal name is an alias.  */
9734 #if defined __stub_$ac_func || defined __stub___$ac_func
9735 choke me
9736 #endif
9737
9738 int
9739 main ()
9740 {
9741 return $ac_func ();
9742   ;
9743   return 0;
9744 }
9745 _ACEOF
9746 rm -f conftest.$ac_objext conftest$ac_exeext
9747 if { (ac_try="$ac_link"
9748 case "(($ac_try" in
9749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9750   *) ac_try_echo=$ac_try;;
9751 esac
9752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9753 $as_echo "$ac_try_echo") >&5
9754   (eval "$ac_link") 2>conftest.er1
9755   ac_status=$?
9756   grep -v '^ *+' conftest.er1 >conftest.err
9757   rm -f conftest.er1
9758   cat conftest.err >&5
9759   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); } && {
9761          test -z "$ac_c_werror_flag" ||
9762          test ! -s conftest.err
9763        } && test -s conftest$ac_exeext && {
9764          test "$cross_compiling" = yes ||
9765          $as_test_x conftest$ac_exeext
9766        }; then
9767   eval "$as_ac_var=yes"
9768 else
9769   $as_echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9771
9772         eval "$as_ac_var=no"
9773 fi
9774
9775 rm -rf conftest.dSYM
9776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9777       conftest$ac_exeext conftest.$ac_ext
9778 fi
9779 ac_res=`eval 'as_val=${'$as_ac_var'}
9780                  $as_echo "$as_val"'`
9781                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9782 $as_echo "$ac_res" >&6; }
9783 as_val=`eval 'as_val=${'$as_ac_var'}
9784                  $as_echo "$as_val"'`
9785    if test "x$as_val" = x""yes; then
9786   cat >>confdefs.h <<_ACEOF
9787 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9788 _ACEOF
9789
9790 fi
9791 done
9792
9793
9794 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9795 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9796 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9797   $as_echo_n "(cached) " >&6
9798 else
9799   cat >conftest.$ac_ext <<_ACEOF
9800 /* confdefs.h.  */
9801 _ACEOF
9802 cat confdefs.h >>conftest.$ac_ext
9803 cat >>conftest.$ac_ext <<_ACEOF
9804 /* end confdefs.h.  */
9805 #include <sys/types.h>
9806 #include <sys/wait.h>
9807 #ifndef WEXITSTATUS
9808 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9809 #endif
9810 #ifndef WIFEXITED
9811 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9812 #endif
9813
9814 int
9815 main ()
9816 {
9817   int s;
9818   wait (&s);
9819   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext
9825 if { (ac_try="$ac_compile"
9826 case "(($ac_try" in
9827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828   *) ac_try_echo=$ac_try;;
9829 esac
9830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831 $as_echo "$ac_try_echo") >&5
9832   (eval "$ac_compile") 2>conftest.er1
9833   ac_status=$?
9834   grep -v '^ *+' conftest.er1 >conftest.err
9835   rm -f conftest.er1
9836   cat conftest.err >&5
9837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838   (exit $ac_status); } && {
9839          test -z "$ac_c_werror_flag" ||
9840          test ! -s conftest.err
9841        } && test -s conftest.$ac_objext; then
9842   ac_cv_header_sys_wait_h=yes
9843 else
9844   $as_echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9846
9847         ac_cv_header_sys_wait_h=no
9848 fi
9849
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 fi
9852 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9853 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9854 if test $ac_cv_header_sys_wait_h = yes; then
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_SYS_WAIT_H 1
9858 _ACEOF
9859
9860 fi
9861
9862 { $as_echo "$as_me:$LINENO: checking for restartable system calls" >&5
9863 $as_echo_n "checking for restartable system calls... " >&6; }
9864 if test "${ac_cv_sys_restartable_syscalls+set}" = set; then
9865   $as_echo_n "(cached) " >&6
9866 else
9867   if test "$cross_compiling" = yes; then
9868   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
9869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9870 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9871 See \`config.log' for more details." >&5
9872 $as_echo "$as_me: error: cannot run test program while cross compiling
9873 See \`config.log' for more details." >&2;}
9874    { (exit 1); exit 1; }; }; }
9875 else
9876   cat >conftest.$ac_ext <<_ACEOF
9877 /* confdefs.h.  */
9878 _ACEOF
9879 cat confdefs.h >>conftest.$ac_ext
9880 cat >>conftest.$ac_ext <<_ACEOF
9881 /* end confdefs.h.  */
9882 /* Exit 0 (true) if wait returns something other than -1,
9883    i.e. the pid of the child, which means that wait was restarted
9884    after getting the signal.  */
9885
9886 $ac_includes_default
9887 #include <signal.h>
9888 #ifdef HAVE_SYS_WAIT_H
9889 # include <sys/wait.h>
9890 #endif
9891
9892 /* Some platforms explicitly require an extern "C" signal handler
9893    when using C++. */
9894 #ifdef __cplusplus
9895 extern "C" void ucatch (int dummy) { }
9896 #else
9897 void ucatch (dummy) int dummy; { }
9898 #endif
9899
9900 int
9901 main ()
9902 {
9903   int i = fork (), status;
9904
9905   if (i == 0)
9906     {
9907       sleep (3);
9908       kill (getppid (), SIGINT);
9909       sleep (3);
9910       return 0;
9911     }
9912
9913   signal (SIGINT, ucatch);
9914
9915   status = wait (&i);
9916   if (status == -1)
9917     wait (&i);
9918
9919   return status == -1;
9920 }
9921 _ACEOF
9922 rm -f conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926   *) ac_try_echo=$ac_try;;
9927 esac
9928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9929 $as_echo "$ac_try_echo") >&5
9930   (eval "$ac_link") 2>&5
9931   ac_status=$?
9932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9934   { (case "(($ac_try" in
9935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936   *) ac_try_echo=$ac_try;;
9937 esac
9938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9939 $as_echo "$ac_try_echo") >&5
9940   (eval "$ac_try") 2>&5
9941   ac_status=$?
9942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); }; }; then
9944   ac_cv_sys_restartable_syscalls=yes
9945 else
9946   $as_echo "$as_me: program exited with status $ac_status" >&5
9947 $as_echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9949
9950 ( exit $ac_status )
9951 ac_cv_sys_restartable_syscalls=no
9952 fi
9953 rm -rf conftest.dSYM
9954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9955 fi
9956
9957
9958 fi
9959 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_restartable_syscalls" >&5
9960 $as_echo "$ac_cv_sys_restartable_syscalls" >&6; }
9961 if test $ac_cv_sys_restartable_syscalls = yes; then
9962
9963 cat >>confdefs.h <<\_ACEOF
9964 #define HAVE_RESTARTABLE_SYSCALLS 1
9965 _ACEOF
9966
9967 fi
9968
9969
9970 { $as_echo "$as_me:$LINENO: checking for donuts" >&5
9971 $as_echo_n "checking for donuts... " >&6; }
9972 { $as_echo "$as_me:$LINENO: result: yes" >&5
9973 $as_echo "yes" >&6; }
9974
9975 for ac_prog in gawk mawk nawk awk
9976 do
9977   # Extract the first word of "$ac_prog", so it can be a program name with args.
9978 set dummy $ac_prog; ac_word=$2
9979 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9980 $as_echo_n "checking for $ac_word... " >&6; }
9981 if test "${ac_cv_prog_AWK+set}" = set; then
9982   $as_echo_n "(cached) " >&6
9983 else
9984   if test -n "$AWK"; then
9985   ac_cv_prog_AWK="$AWK" # Let the user override the test.
9986 else
9987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9988 for as_dir in $PATH
9989 do
9990   IFS=$as_save_IFS
9991   test -z "$as_dir" && as_dir=.
9992   for ac_exec_ext in '' $ac_executable_extensions; do
9993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9994     ac_cv_prog_AWK="$ac_prog"
9995     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9996     break 2
9997   fi
9998 done
9999 done
10000 IFS=$as_save_IFS
10001
10002 fi
10003 fi
10004 AWK=$ac_cv_prog_AWK
10005 if test -n "$AWK"; then
10006   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
10007 $as_echo "$AWK" >&6; }
10008 else
10009   { $as_echo "$as_me:$LINENO: result: no" >&5
10010 $as_echo "no" >&6; }
10011 fi
10012
10013
10014   test -n "$AWK" && break
10015 done
10016
10017 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10018 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10019 set x ${MAKE-make}
10020 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10021 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10022   $as_echo_n "(cached) " >&6
10023 else
10024   cat >conftest.make <<\_ACEOF
10025 SHELL = /bin/sh
10026 all:
10027         @echo '@@@%%%=$(MAKE)=@@@%%%'
10028 _ACEOF
10029 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10030 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10031   *@@@%%%=?*=@@@%%%*)
10032     eval ac_cv_prog_make_${ac_make}_set=yes;;
10033   *)
10034     eval ac_cv_prog_make_${ac_make}_set=no;;
10035 esac
10036 rm -f conftest.make
10037 fi
10038 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10039   { $as_echo "$as_me:$LINENO: result: yes" >&5
10040 $as_echo "yes" >&6; }
10041   SET_MAKE=
10042 else
10043   { $as_echo "$as_me:$LINENO: result: no" >&5
10044 $as_echo "no" >&6; }
10045   SET_MAKE="MAKE=${MAKE-make}"
10046 fi
10047
10048 # Find a good install program.  We prefer a C program (faster),
10049 # so one script is as good as another.  But avoid the broken or
10050 # incompatible versions:
10051 # SysV /etc/install, /usr/sbin/install
10052 # SunOS /usr/etc/install
10053 # IRIX /sbin/install
10054 # AIX /bin/install
10055 # AmigaOS /C/install, which installs bootblocks on floppy discs
10056 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10057 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10058 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10059 # OS/2's system install, which has a completely different semantic
10060 # ./install, which can be erroneously created by make from ./install.sh.
10061 # Reject install programs that cannot install multiple files.
10062 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10063 $as_echo_n "checking for a BSD-compatible install... " >&6; }
10064 if test -z "$INSTALL"; then
10065 if test "${ac_cv_path_install+set}" = set; then
10066   $as_echo_n "(cached) " >&6
10067 else
10068   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10070 do
10071   IFS=$as_save_IFS
10072   test -z "$as_dir" && as_dir=.
10073   # Account for people who put trailing slashes in PATH elements.
10074 case $as_dir/ in
10075   ./ | .// | /cC/* | \
10076   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10077   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10078   /usr/ucb/* ) ;;
10079   *)
10080     # OSF1 and SCO ODT 3.0 have their own names for install.
10081     # Don't use installbsd from OSF since it installs stuff as root
10082     # by default.
10083     for ac_prog in ginstall scoinst install; do
10084       for ac_exec_ext in '' $ac_executable_extensions; do
10085         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
10086           if test $ac_prog = install &&
10087             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10088             # AIX install.  It has an incompatible calling convention.
10089             :
10090           elif test $ac_prog = install &&
10091             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10092             # program-specific install script used by HP pwplus--don't use.
10093             :
10094           else
10095             rm -rf conftest.one conftest.two conftest.dir
10096             echo one > conftest.one
10097             echo two > conftest.two
10098             mkdir conftest.dir
10099             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10100               test -s conftest.one && test -s conftest.two &&
10101               test -s conftest.dir/conftest.one &&
10102               test -s conftest.dir/conftest.two
10103             then
10104               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10105               break 3
10106             fi
10107           fi
10108         fi
10109       done
10110     done
10111     ;;
10112 esac
10113
10114 done
10115 IFS=$as_save_IFS
10116
10117 rm -rf conftest.one conftest.two conftest.dir
10118
10119 fi
10120   if test "${ac_cv_path_install+set}" = set; then
10121     INSTALL=$ac_cv_path_install
10122   else
10123     # As a last resort, use the slow shell script.  Don't cache a
10124     # value for INSTALL within a source directory, because that will
10125     # break other packages using the cache if that directory is
10126     # removed, or if the value is a relative name.
10127     INSTALL=$ac_install_sh
10128   fi
10129 fi
10130 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
10131 $as_echo "$INSTALL" >&6; }
10132
10133 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10134 # It thinks the first close brace ends the variable substitution.
10135 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10136
10137 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10138
10139 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10140
10141 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
10142 $as_echo_n "checking whether ln -s works... " >&6; }
10143 LN_S=$as_ln_s
10144 if test "$LN_S" = "ln -s"; then
10145   { $as_echo "$as_me:$LINENO: result: yes" >&5
10146 $as_echo "yes" >&6; }
10147 else
10148   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10149 $as_echo "no, using $LN_S" >&6; }
10150 fi
10151
10152 for ac_prog in rm
10153 do
10154   # Extract the first word of "$ac_prog", so it can be a program name with args.
10155 set dummy $ac_prog; ac_word=$2
10156 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10157 $as_echo_n "checking for $ac_word... " >&6; }
10158 if test "${ac_cv_path_RMPROG+set}" = set; then
10159   $as_echo_n "(cached) " >&6
10160 else
10161   case $RMPROG in
10162   [\\/]* | ?:[\\/]*)
10163   ac_cv_path_RMPROG="$RMPROG" # Let the user override the test with a path.
10164   ;;
10165   *)
10166   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10167 for as_dir in $PATH
10168 do
10169   IFS=$as_save_IFS
10170   test -z "$as_dir" && as_dir=.
10171   for ac_exec_ext in '' $ac_executable_extensions; do
10172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10173     ac_cv_path_RMPROG="$as_dir/$ac_word$ac_exec_ext"
10174     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10175     break 2
10176   fi
10177 done
10178 done
10179 IFS=$as_save_IFS
10180
10181   ;;
10182 esac
10183 fi
10184 RMPROG=$ac_cv_path_RMPROG
10185 if test -n "$RMPROG"; then
10186   { $as_echo "$as_me:$LINENO: result: $RMPROG" >&5
10187 $as_echo "$RMPROG" >&6; }
10188 else
10189   { $as_echo "$as_me:$LINENO: result: no" >&5
10190 $as_echo "no" >&6; }
10191 fi
10192
10193
10194   test -n "$RMPROG" && break
10195 done
10196 test -n "$RMPROG" || RMPROG="/bin/rm"
10197
10198 for ac_prog in sh
10199 do
10200   # Extract the first word of "$ac_prog", so it can be a program name with args.
10201 set dummy $ac_prog; ac_word=$2
10202 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10203 $as_echo_n "checking for $ac_word... " >&6; }
10204 if test "${ac_cv_path_SHPROG+set}" = set; then
10205   $as_echo_n "(cached) " >&6
10206 else
10207   case $SHPROG in
10208   [\\/]* | ?:[\\/]*)
10209   ac_cv_path_SHPROG="$SHPROG" # Let the user override the test with a path.
10210   ;;
10211   *)
10212   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10214 do
10215   IFS=$as_save_IFS
10216   test -z "$as_dir" && as_dir=.
10217   for ac_exec_ext in '' $ac_executable_extensions; do
10218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10219     ac_cv_path_SHPROG="$as_dir/$ac_word$ac_exec_ext"
10220     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10221     break 2
10222   fi
10223 done
10224 done
10225 IFS=$as_save_IFS
10226
10227   ;;
10228 esac
10229 fi
10230 SHPROG=$ac_cv_path_SHPROG
10231 if test -n "$SHPROG"; then
10232   { $as_echo "$as_me:$LINENO: result: $SHPROG" >&5
10233 $as_echo "$SHPROG" >&6; }
10234 else
10235   { $as_echo "$as_me:$LINENO: result: no" >&5
10236 $as_echo "no" >&6; }
10237 fi
10238
10239
10240   test -n "$SHPROG" && break
10241 done
10242 test -n "$SHPROG" || SHPROG="/bin/sh"
10243
10244
10245 for ac_prog in flex lex
10246 do
10247   # Extract the first word of "$ac_prog", so it can be a program name with args.
10248 set dummy $ac_prog; ac_word=$2
10249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_LEX+set}" = set; then
10252   $as_echo_n "(cached) " >&6
10253 else
10254   if test -n "$LEX"; then
10255   ac_cv_prog_LEX="$LEX" # Let the user override the test.
10256 else
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10259 do
10260   IFS=$as_save_IFS
10261   test -z "$as_dir" && as_dir=.
10262   for ac_exec_ext in '' $ac_executable_extensions; do
10263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264     ac_cv_prog_LEX="$ac_prog"
10265     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10266     break 2
10267   fi
10268 done
10269 done
10270 IFS=$as_save_IFS
10271
10272 fi
10273 fi
10274 LEX=$ac_cv_prog_LEX
10275 if test -n "$LEX"; then
10276   { $as_echo "$as_me:$LINENO: result: $LEX" >&5
10277 $as_echo "$LEX" >&6; }
10278 else
10279   { $as_echo "$as_me:$LINENO: result: no" >&5
10280 $as_echo "no" >&6; }
10281 fi
10282
10283
10284   test -n "$LEX" && break
10285 done
10286 test -n "$LEX" || LEX=":"
10287
10288 if test "x$LEX" != "x:"; then
10289   cat >conftest.l <<_ACEOF
10290 %%
10291 a { ECHO; }
10292 b { REJECT; }
10293 c { yymore (); }
10294 d { yyless (1); }
10295 e { yyless (input () != 0); }
10296 f { unput (yytext[0]); }
10297 . { BEGIN INITIAL; }
10298 %%
10299 #ifdef YYTEXT_POINTER
10300 extern char *yytext;
10301 #endif
10302 int
10303 main (void)
10304 {
10305   return ! yylex () + ! yywrap ();
10306 }
10307 _ACEOF
10308 { (ac_try="$LEX conftest.l"
10309 case "(($ac_try" in
10310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311   *) ac_try_echo=$ac_try;;
10312 esac
10313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10314 $as_echo "$ac_try_echo") >&5
10315   (eval "$LEX conftest.l") 2>&5
10316   ac_status=$?
10317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }
10319 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
10320 $as_echo_n "checking lex output file root... " >&6; }
10321 if test "${ac_cv_prog_lex_root+set}" = set; then
10322   $as_echo_n "(cached) " >&6
10323 else
10324
10325 if test -f lex.yy.c; then
10326   ac_cv_prog_lex_root=lex.yy
10327 elif test -f lexyy.c; then
10328   ac_cv_prog_lex_root=lexyy
10329 else
10330   { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
10331 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
10332    { (exit 1); exit 1; }; }
10333 fi
10334 fi
10335 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
10336 $as_echo "$ac_cv_prog_lex_root" >&6; }
10337 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
10338
10339 if test -z "${LEXLIB+set}"; then
10340   { $as_echo "$as_me:$LINENO: checking lex library" >&5
10341 $as_echo_n "checking lex library... " >&6; }
10342 if test "${ac_cv_lib_lex+set}" = set; then
10343   $as_echo_n "(cached) " >&6
10344 else
10345
10346     ac_save_LIBS=$LIBS
10347     ac_cv_lib_lex='none needed'
10348     for ac_lib in '' -lfl -ll; do
10349       LIBS="$ac_lib $ac_save_LIBS"
10350       cat >conftest.$ac_ext <<_ACEOF
10351 `cat $LEX_OUTPUT_ROOT.c`
10352 _ACEOF
10353 rm -f conftest.$ac_objext conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357   *) ac_try_echo=$ac_try;;
10358 esac
10359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10360 $as_echo "$ac_try_echo") >&5
10361   (eval "$ac_link") 2>conftest.er1
10362   ac_status=$?
10363   grep -v '^ *+' conftest.er1 >conftest.err
10364   rm -f conftest.er1
10365   cat conftest.err >&5
10366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && {
10368          test -z "$ac_c_werror_flag" ||
10369          test ! -s conftest.err
10370        } && test -s conftest$ac_exeext && {
10371          test "$cross_compiling" = yes ||
10372          $as_test_x conftest$ac_exeext
10373        }; then
10374   ac_cv_lib_lex=$ac_lib
10375 else
10376   $as_echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379
10380 fi
10381
10382 rm -rf conftest.dSYM
10383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10384       conftest$ac_exeext conftest.$ac_ext
10385       test "$ac_cv_lib_lex" != 'none needed' && break
10386     done
10387     LIBS=$ac_save_LIBS
10388
10389 fi
10390 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
10391 $as_echo "$ac_cv_lib_lex" >&6; }
10392   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
10393 fi
10394
10395
10396 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
10397 $as_echo_n "checking whether yytext is a pointer... " >&6; }
10398 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
10399   $as_echo_n "(cached) " >&6
10400 else
10401   # POSIX says lex can declare yytext either as a pointer or an array; the
10402 # default is implementation-dependent.  Figure out which it is, since
10403 # not all implementations provide the %pointer and %array declarations.
10404 ac_cv_prog_lex_yytext_pointer=no
10405 ac_save_LIBS=$LIBS
10406 LIBS="$LEXLIB $ac_save_LIBS"
10407 cat >conftest.$ac_ext <<_ACEOF
10408 #define YYTEXT_POINTER 1
10409 `cat $LEX_OUTPUT_ROOT.c`
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415   *) ac_try_echo=$ac_try;;
10416 esac
10417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419   (eval "$ac_link") 2>conftest.er1
10420   ac_status=$?
10421   grep -v '^ *+' conftest.er1 >conftest.err
10422   rm -f conftest.er1
10423   cat conftest.err >&5
10424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425   (exit $ac_status); } && {
10426          test -z "$ac_c_werror_flag" ||
10427          test ! -s conftest.err
10428        } && test -s conftest$ac_exeext && {
10429          test "$cross_compiling" = yes ||
10430          $as_test_x conftest$ac_exeext
10431        }; then
10432   ac_cv_prog_lex_yytext_pointer=yes
10433 else
10434   $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10436
10437
10438 fi
10439
10440 rm -rf conftest.dSYM
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442       conftest$ac_exeext conftest.$ac_ext
10443 LIBS=$ac_save_LIBS
10444
10445 fi
10446 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
10447 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
10448 if test $ac_cv_prog_lex_yytext_pointer = yes; then
10449
10450 cat >>confdefs.h <<\_ACEOF
10451 #define YYTEXT_POINTER 1
10452 _ACEOF
10453
10454 fi
10455 rm -f conftest.l $LEX_OUTPUT_ROOT.c
10456
10457 fi
10458 if test "$LEX" = ":" ; then
10459   { { $as_echo "$as_me:$LINENO: error: Cannot find flex." >&5
10460 $as_echo "$as_me: error: Cannot find flex." >&2;}
10461    { (exit 1); exit 1; }; }
10462 elif echo "" | $LEX -V -v --version > /dev/null 2>&1 ; then
10463   :
10464 else
10465   { { $as_echo "$as_me:$LINENO: error: Cannot use $LEX as flex." >&5
10466 $as_echo "$as_me: error: Cannot use $LEX as flex." >&2;}
10467    { (exit 1); exit 1; }; }
10468 fi
10469
10470 for ac_prog in 'bison -y' byacc
10471 do
10472   # Extract the first word of "$ac_prog", so it can be a program name with args.
10473 set dummy $ac_prog; ac_word=$2
10474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10475 $as_echo_n "checking for $ac_word... " >&6; }
10476 if test "${ac_cv_prog_YACC+set}" = set; then
10477   $as_echo_n "(cached) " >&6
10478 else
10479   if test -n "$YACC"; then
10480   ac_cv_prog_YACC="$YACC" # Let the user override the test.
10481 else
10482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10483 for as_dir in $PATH
10484 do
10485   IFS=$as_save_IFS
10486   test -z "$as_dir" && as_dir=.
10487   for ac_exec_ext in '' $ac_executable_extensions; do
10488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10489     ac_cv_prog_YACC="$ac_prog"
10490     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10491     break 2
10492   fi
10493 done
10494 done
10495 IFS=$as_save_IFS
10496
10497 fi
10498 fi
10499 YACC=$ac_cv_prog_YACC
10500 if test -n "$YACC"; then
10501   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
10502 $as_echo "$YACC" >&6; }
10503 else
10504   { $as_echo "$as_me:$LINENO: result: no" >&5
10505 $as_echo "no" >&6; }
10506 fi
10507
10508
10509   test -n "$YACC" && break
10510 done
10511 test -n "$YACC" || YACC="yacc"
10512
10513 if test "$YACC" = ":" ; then
10514   { { $as_echo "$as_me:$LINENO: error: Cannot find yacc." >&5
10515 $as_echo "$as_me: error: Cannot find yacc." >&2;}
10516    { (exit 1); exit 1; }; }
10517 elif echo "" | $YACC -V -v --version > /dev/null 2>&1 ; then
10518   :
10519 else
10520   { $as_echo "$as_me:$LINENO: WARNING: $YACC may not work as yacc." >&5
10521 $as_echo "$as_me: WARNING: $YACC may not work as yacc." >&2;}
10522 fi
10523
10524 { $as_echo "$as_me:$LINENO: checking for posix non-blocking" >&5
10525 $as_echo_n "checking for posix non-blocking... " >&6; }
10526 if test "${unet_cv_sys_nonblocking_posix+set}" = set; then
10527   $as_echo_n "(cached) " >&6
10528 else
10529   if test "$cross_compiling" = yes; then
10530   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10532 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10533 See \`config.log' for more details." >&5
10534 $as_echo "$as_me: error: cannot run test program while cross compiling
10535 See \`config.log' for more details." >&2;}
10536    { (exit 1); exit 1; }; }; }
10537 else
10538   cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h.  */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h.  */
10544 #include <sys/types.h>
10545 #include <sys/socket.h>
10546 #include <fcntl.h>
10547 #include <sys/ioctl.h>
10548 #include <sys/file.h>
10549 #include <signal.h>
10550 $ac_cv_type_signal alarmed() { exit(1); }
10551 int main(void)
10552 {
10553   char b[12];
10554   struct sockaddr x;
10555   size_t l = sizeof(x);
10556   int f = socket(AF_INET, SOCK_DGRAM, 0);
10557   if (f >= 0 && !(fcntl(f, F_SETFL, O_NONBLOCK)))
10558   {
10559     signal(SIGALRM, alarmed);
10560     alarm(2);
10561     recvfrom(f, b, 12, 0, &x, &l);
10562     alarm(0);
10563     exit(0);
10564   }
10565   exit(1);
10566 }
10567 _ACEOF
10568 rm -f conftest$ac_exeext
10569 if { (ac_try="$ac_link"
10570 case "(($ac_try" in
10571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572   *) ac_try_echo=$ac_try;;
10573 esac
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576   (eval "$ac_link") 2>&5
10577   ac_status=$?
10578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10580   { (case "(($ac_try" in
10581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10582   *) ac_try_echo=$ac_try;;
10583 esac
10584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10585 $as_echo "$ac_try_echo") >&5
10586   (eval "$ac_try") 2>&5
10587   ac_status=$?
10588   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589   (exit $ac_status); }; }; then
10590   unet_cv_sys_nonblocking_posix=yes
10591 else
10592   $as_echo "$as_me: program exited with status $ac_status" >&5
10593 $as_echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ( exit $ac_status )
10597 unet_cv_sys_nonblocking_posix=no
10598 fi
10599 rm -rf conftest.dSYM
10600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10601 fi
10602
10603
10604 fi
10605 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_posix" >&5
10606 $as_echo "$unet_cv_sys_nonblocking_posix" >&6; }
10607 if test $unet_cv_sys_nonblocking_posix = yes; then
10608
10609 cat >>confdefs.h <<\_ACEOF
10610 #define NBLOCK_POSIX /**/
10611 _ACEOF
10612
10613 else
10614 { $as_echo "$as_me:$LINENO: checking for bsd non-blocking" >&5
10615 $as_echo_n "checking for bsd non-blocking... " >&6; }
10616 if test "${unet_cv_sys_nonblocking_bsd+set}" = set; then
10617   $as_echo_n "(cached) " >&6
10618 else
10619   if test "$cross_compiling" = yes; then
10620   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10622 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10623 See \`config.log' for more details." >&5
10624 $as_echo "$as_me: error: cannot run test program while cross compiling
10625 See \`config.log' for more details." >&2;}
10626    { (exit 1); exit 1; }; }; }
10627 else
10628   cat >conftest.$ac_ext <<_ACEOF
10629 /* confdefs.h.  */
10630 _ACEOF
10631 cat confdefs.h >>conftest.$ac_ext
10632 cat >>conftest.$ac_ext <<_ACEOF
10633 /* end confdefs.h.  */
10634 #include <sys/types.h>
10635 #include <sys/socket.h>
10636 #include <fcntl.h>
10637 #include <sys/ioctl.h>
10638 #include <sys/file.h>
10639 #include <signal.h>
10640 $ac_cv_type_signal alarmed() { exit(1); }
10641 int main(void)
10642 {
10643   char b[12];
10644   struct sockaddr x;
10645   size_t l = sizeof(x);
10646   int f = socket(AF_INET, SOCK_DGRAM, 0);
10647   if (f >= 0 && !(fcntl(f, F_SETFL, O_NDELAY)))
10648   {
10649     signal(SIGALRM, alarmed);
10650     alarm(2);
10651     recvfrom(f, b, 12, 0, &x, &l);
10652     alarm(0);
10653     exit(0);
10654   }
10655   exit(1);
10656 }
10657 _ACEOF
10658 rm -f conftest$ac_exeext
10659 if { (ac_try="$ac_link"
10660 case "(($ac_try" in
10661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662   *) ac_try_echo=$ac_try;;
10663 esac
10664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10665 $as_echo "$ac_try_echo") >&5
10666   (eval "$ac_link") 2>&5
10667   ac_status=$?
10668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10670   { (case "(($ac_try" in
10671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672   *) ac_try_echo=$ac_try;;
10673 esac
10674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10675 $as_echo "$ac_try_echo") >&5
10676   (eval "$ac_try") 2>&5
10677   ac_status=$?
10678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); }; }; then
10680   unet_cv_sys_nonblocking_bsd=yes
10681 else
10682   $as_echo "$as_me: program exited with status $ac_status" >&5
10683 $as_echo "$as_me: failed program was:" >&5
10684 sed 's/^/| /' conftest.$ac_ext >&5
10685
10686 ( exit $ac_status )
10687 unet_cv_sys_nonblocking_bsd=no
10688 fi
10689 rm -rf conftest.dSYM
10690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10691 fi
10692
10693
10694 fi
10695 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_nonblocking_bsd" >&5
10696 $as_echo "$unet_cv_sys_nonblocking_bsd" >&6; }
10697 if test $unet_cv_sys_nonblocking_bsd = yes; then
10698
10699 cat >>confdefs.h <<\_ACEOF
10700 #define NBLOCK_BSD /**/
10701 _ACEOF
10702
10703 else
10704
10705 cat >>confdefs.h <<\_ACEOF
10706 #define NBLOCK_SYSV /**/
10707 _ACEOF
10708
10709 fi
10710 fi
10711 { $as_echo "$as_me:$LINENO: checking for posix signals" >&5
10712 $as_echo_n "checking for posix signals... " >&6; }
10713 if test "${unet_cv_sys_signal_posix+set}" = set; then
10714   $as_echo_n "(cached) " >&6
10715 else
10716   cat >conftest.$ac_ext <<_ACEOF
10717 /* confdefs.h.  */
10718 _ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h.  */
10722 #include <signal.h>
10723 int
10724 main ()
10725 {
10726 sigaction(SIGTERM, (struct sigaction *)0L, (struct sigaction *)0L)
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735   *) ac_try_echo=$ac_try;;
10736 esac
10737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10738 $as_echo "$ac_try_echo") >&5
10739   (eval "$ac_compile") 2>conftest.er1
10740   ac_status=$?
10741   grep -v '^ *+' conftest.er1 >conftest.err
10742   rm -f conftest.er1
10743   cat conftest.err >&5
10744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); } && {
10746          test -z "$ac_c_werror_flag" ||
10747          test ! -s conftest.err
10748        } && test -s conftest.$ac_objext; then
10749   unet_cv_sys_signal_posix=yes
10750 else
10751   $as_echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10753
10754         unet_cv_sys_signal_posix=no
10755 fi
10756
10757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 fi
10759 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_signal_posix" >&5
10760 $as_echo "$unet_cv_sys_signal_posix" >&6; }
10761 if test $unet_cv_sys_signal_posix = yes; then
10762
10763 cat >>confdefs.h <<\_ACEOF
10764 #define POSIX_SIGNALS /**/
10765 _ACEOF
10766
10767 else
10768 { $as_echo "$as_me:$LINENO: checking for bsd reliable signals" >&5
10769 $as_echo_n "checking for bsd reliable signals... " >&6; }
10770 if test "${unet_cv_sys_signal_bsd+set}" = set; then
10771   $as_echo_n "(cached) " >&6
10772 else
10773   if test "$cross_compiling" = yes; then
10774   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
10775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10776 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10777 See \`config.log' for more details." >&5
10778 $as_echo "$as_me: error: cannot run test program while cross compiling
10779 See \`config.log' for more details." >&2;}
10780    { (exit 1); exit 1; }; }; }
10781 else
10782   cat >conftest.$ac_ext <<_ACEOF
10783 /* confdefs.h.  */
10784 _ACEOF
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h.  */
10788 #include <signal.h>
10789 int calls = 0;
10790 $ac_cv_type_signal handler()
10791 {
10792   if (calls) return;
10793   calls++;
10794   kill(getpid(), SIGTERM);
10795   sleep(1);
10796 }
10797 int main(void)
10798 {
10799   signal(SIGTERM, handler);
10800   kill(getpid(), SIGTERM);
10801   exit (0);
10802 }
10803 _ACEOF
10804 rm -f conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808   *) ac_try_echo=$ac_try;;
10809 esac
10810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10811 $as_echo "$ac_try_echo") >&5
10812   (eval "$ac_link") 2>&5
10813   ac_status=$?
10814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10816   { (case "(($ac_try" in
10817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10818   *) ac_try_echo=$ac_try;;
10819 esac
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822   (eval "$ac_try") 2>&5
10823   ac_status=$?
10824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825   (exit $ac_status); }; }; then
10826   unet_cv_sys_signal_bsd=yes
10827 else
10828   $as_echo "$as_me: program exited with status $ac_status" >&5
10829 $as_echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10831
10832 ( exit $ac_status )
10833 unet_cv_sys_signal_bsd=no
10834 fi
10835 rm -rf conftest.dSYM
10836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10837 fi
10838
10839
10840 fi
10841 { $as_echo "$as_me:$LINENO: result: $unet_cv_sys_signal_bsd" >&5
10842 $as_echo "$unet_cv_sys_signal_bsd" >&6; }
10843 if test $unet_cv_sys_signal_bsd = yes; then
10844
10845 cat >>confdefs.h <<\_ACEOF
10846 #define BSD_RELIABLE_SIGNALS /**/
10847 _ACEOF
10848
10849 else
10850
10851 cat >>confdefs.h <<\_ACEOF
10852 #define SYSV_UNRELIABLE_SIGNALS /**/
10853 _ACEOF
10854
10855 fi
10856 fi
10857
10858 { $as_echo "$as_me:$LINENO: checking for OS-dependent information" >&5
10859 $as_echo_n "checking for OS-dependent information... " >&6; }
10860 case "$host" in
10861     *-linux*)
10862         { $as_echo "$as_me:$LINENO: result: Linux ($host) found." >&5
10863 $as_echo "Linux ($host) found." >&6; }
10864         unet_poll_syscall=yes
10865         ;;
10866
10867     *-solaris*)
10868         { $as_echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10869 $as_echo "Solaris ($host) found." >&6; }
10870         if test x"$ac_cv_header_poll_h" = xyes; then
10871             unet_poll_syscall=yes
10872         else
10873             unet_poll_syscall=no
10874         fi
10875
10876 cat >>confdefs.h <<\_ACEOF
10877 #define IRCU_SOLARIS 1
10878 _ACEOF
10879
10880         ;;
10881
10882     *-sunos*)
10883         { $as_echo "$as_me:$LINENO: result: Solaris ($host) found." >&5
10884 $as_echo "Solaris ($host) found." >&6; }
10885         unet_poll_syscall=no
10886         ;;
10887
10888     *-openbsd*)
10889         { $as_echo "$as_me:$LINENO: result: OpenBSD ($host) found." >&5
10890 $as_echo "OpenBSD ($host) found." >&6; }
10891         if test x"$ac_cv_header_poll_h" = xyes; then
10892             unet_poll_syscall=yes
10893         else
10894             unet_poll_syscall=no
10895         fi
10896         ;;
10897
10898     *-*bsd*)
10899         { $as_echo "$as_me:$LINENO: result: Generic BSD ($host) found." >&5
10900 $as_echo "Generic BSD ($host) found." >&6; }
10901         if test x"$ac_cv_header_poll_h" = xyes; then
10902             unet_poll_syscall=yes
10903         else
10904             unet_poll_syscall=no
10905         fi
10906         ;;
10907
10908     *-darwin*)
10909         { $as_echo "$as_me:$LINENO: result: Darwin (Mac OS X) ($host) found." >&5
10910 $as_echo "Darwin (Mac OS X) ($host) found." >&6; }
10911         unet_poll_syscall=no
10912         ;;
10913
10914     *)
10915         { $as_echo "$as_me:$LINENO: result: Unknown system type $host found." >&5
10916 $as_echo "Unknown system type $host found." >&6; }
10917         { $as_echo "$as_me:$LINENO: WARNING: Unknown OS type; using generic routines." >&5
10918 $as_echo "$as_me: WARNING: Unknown OS type; using generic routines." >&2;}
10919         unet_poll_syscall=no
10920         ;;
10921 esac
10922
10923 { $as_echo "$as_me:$LINENO: checking whether to enable use of poll()" >&5
10924 $as_echo_n "checking whether to enable use of poll()... " >&6; }
10925 # Check whether --enable-poll was given.
10926 if test "${enable_poll+set}" = set; then
10927   enableval=$enable_poll; unet_cv_enable_poll=$enable_poll
10928 else
10929   if test "${unet_cv_enable_poll+set}" = set; then
10930   $as_echo_n "(cached) " >&6
10931 else
10932   unet_cv_enable_poll=$unet_poll_syscall
10933 fi
10934
10935 fi
10936
10937
10938 # Force poll to be disabled if there is no poll.h
10939 if test x"$ac_cv_header_poll_h" != xyes; then
10940     unet_cv_enable_poll=no
10941 fi
10942
10943 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_poll" >&5
10944 $as_echo "$unet_cv_enable_poll" >&6; }
10945
10946 if test x"$unet_cv_enable_poll" = xyes; then
10947
10948 cat >>confdefs.h <<\_ACEOF
10949 #define USE_POLL 1
10950 _ACEOF
10951
10952     ENGINE_C=engine_poll.c
10953 else
10954     ENGINE_C=engine_select.c
10955 fi
10956
10957
10958 { $as_echo "$as_me:$LINENO: checking whether to enable debug mode" >&5
10959 $as_echo_n "checking whether to enable debug mode... " >&6; }
10960 # Check whether --enable-debug was given.
10961 if test "${enable_debug+set}" = set; then
10962   enableval=$enable_debug; unet_cv_enable_debug=$enable_debug
10963 else
10964   if test "${unet_cv_enable_debug+set}" = set; then
10965   $as_echo_n "(cached) " >&6
10966 else
10967   unet_cv_enable_debug=no
10968 fi
10969
10970 fi
10971
10972 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_debug" >&5
10973 $as_echo "$unet_cv_enable_debug" >&6; }
10974
10975 if test x"$unet_cv_enable_debug" = xyes; then
10976
10977 cat >>confdefs.h <<\_ACEOF
10978 #define DEBUGMODE 1
10979 _ACEOF
10980
10981 fi
10982
10983 { $as_echo "$as_me:$LINENO: checking whether to enable leak detection" >&5
10984 $as_echo_n "checking whether to enable leak detection... " >&6; }
10985
10986 # Check whether --with-leak-detect was given.
10987 if test "${with_leak_detect+set}" = set; then
10988   withval=$with_leak_detect; unet_cv_with_leak_detect=$with_leak_detect
10989 else
10990   if test "${unet_cv_with_leak_detect+set}" = set; then
10991   $as_echo_n "(cached) " >&6
10992 else
10993   unet_cv_with_leak_detect=no
10994 fi
10995
10996 fi
10997
10998 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_leak_detect" >&5
10999 $as_echo "$unet_cv_enable_leak_detect" >&6; }
11000
11001 if test x"$unet_cv_with_leak_detect" != xno; then
11002     LIBS="-lgc $LIBS"
11003     CFLAGS="-DMDEBUG $CFLAGS"
11004     if test x"$unet_cv_with_leak_detect" != xyes; then
11005        LIBS="-L$unet_cv_with_leak_detect $LIBS"
11006     fi
11007 fi
11008
11009
11010 # Check whether --with-ipv6 was given.
11011 if test "${with_ipv6+set}" = set; then
11012   withval=$with_ipv6; ac_cv_use_ipv6=$withval
11013 else
11014   ac_cv_use_ipv6=$unet_have_sockaddr_in6
11015 fi
11016
11017 { $as_echo "$as_me:$LINENO: checking whether to use IPv6" >&5
11018 $as_echo_n "checking whether to use IPv6... " >&6; }
11019 if test "${ac_cv_use_ipv6+set}" = set; then
11020   $as_echo_n "(cached) " >&6
11021 else
11022   ac_cv_use_ipv6=no
11023 fi
11024 { $as_echo "$as_me:$LINENO: result: $ac_cv_use_ipv6" >&5
11025 $as_echo "$ac_cv_use_ipv6" >&6; }
11026 if test x"$ac_cv_use_ipv6" != "xno" ; then
11027
11028 cat >>confdefs.h <<\_ACEOF
11029 #define IPV6 1
11030 _ACEOF
11031
11032 fi
11033
11034 { $as_echo "$as_me:$LINENO: checking whether to enable asserts" >&5
11035 $as_echo_n "checking whether to enable asserts... " >&6; }
11036 # Check whether --enable-asserts was given.
11037 if test "${enable_asserts+set}" = set; then
11038   enableval=$enable_asserts; unet_cv_enable_asserts=$enable_asserts
11039 else
11040   if test "${unet_cv_enable_asserts+set}" = set; then
11041   $as_echo_n "(cached) " >&6
11042 else
11043   unet_cv_enable_asserts=yes
11044 fi
11045
11046 fi
11047
11048 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_asserts" >&5
11049 $as_echo "$unet_cv_enable_asserts" >&6; }
11050
11051 if test x"$unet_cv_enable_asserts" = xno; then
11052
11053 cat >>confdefs.h <<\_ACEOF
11054 #define NDEBUG 1
11055 _ACEOF
11056
11057 fi
11058
11059 { $as_echo "$as_me:$LINENO: checking whether to enable profiling support (gprof)" >&5
11060 $as_echo_n "checking whether to enable profiling support (gprof)... " >&6; }
11061 # Check whether --enable-profile was given.
11062 if test "${enable_profile+set}" = set; then
11063   enableval=$enable_profile; unet_cv_enable_profile=$enable_profile
11064 else
11065   if test "${unet_cv_enable_profile+set}" = set; then
11066   $as_echo_n "(cached) " >&6
11067 else
11068   unet_cv_enable_profile=no
11069 fi
11070
11071 fi
11072
11073 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_profile" >&5
11074 $as_echo "$unet_cv_enable_profile" >&6; }
11075
11076 if test x"$unet_cv_enable_profile" = xyes; then
11077     CFLAGS="-pg $CFLAGS"
11078     LDFLAGS="-pg $LDFLAGS"
11079 fi
11080
11081 { $as_echo "$as_me:$LINENO: checking whether to enable pedantic compiler warnings" >&5
11082 $as_echo_n "checking whether to enable pedantic compiler warnings... " >&6; }
11083 # Check whether --enable-pedantic was given.
11084 if test "${enable_pedantic+set}" = set; then
11085   enableval=$enable_pedantic; unet_cv_enable_pedantic=$enable_pedantic
11086 else
11087   if test "${unet_cv_enable_pedantic+set}" = set; then
11088   $as_echo_n "(cached) " >&6
11089 else
11090   unet_cv_enable_pedantic=no
11091 fi
11092
11093 fi
11094
11095 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_pedantic" >&5
11096 $as_echo "$unet_cv_enable_pedantic" >&6; }
11097
11098 if test x"$unet_cv_enable_pedantic" = xyes; then
11099     CFLAGS="-pedantic $CFLAGS"
11100 fi
11101
11102 { $as_echo "$as_me:$LINENO: checking whether to enable compiler warnings" >&5
11103 $as_echo_n "checking whether to enable compiler warnings... " >&6; }
11104 # Check whether --enable-warnings was given.
11105 if test "${enable_warnings+set}" = set; then
11106   enableval=$enable_warnings; unet_cv_enable_warnings=$enable_warnings
11107 else
11108   if test "${unet_cv_enable_warnings+set}" = set; then
11109   $as_echo_n "(cached) " >&6
11110 else
11111   unet_cv_enable_warnings=no
11112 fi
11113
11114 fi
11115
11116 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_warnings" >&5
11117 $as_echo "$unet_cv_enable_warnings" >&6; }
11118
11119 if test x"$unet_cv_enable_warnings" = xyes; then
11120     CFLAGS="-Wall $CFLAGS"
11121 fi
11122
11123 { $as_echo "$as_me:$LINENO: checking whether to enable inlining for a few critical functions" >&5
11124 $as_echo_n "checking whether to enable inlining for a few critical functions... " >&6; }
11125 # Check whether --enable-inlines was given.
11126 if test "${enable_inlines+set}" = set; then
11127   enableval=$enable_inlines; unet_cv_enable_inlines=$enable_inlines
11128 else
11129   if test "${unet_cv_enable_inlines+set}" = set; then
11130   $as_echo_n "(cached) " >&6
11131 else
11132   unet_cv_enable_inlines=yes
11133 fi
11134
11135 fi
11136
11137 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_inlines" >&5
11138 $as_echo "$unet_cv_enable_inlines" >&6; }
11139
11140 if test x"$unet_cv_enable_inlines" = xyes; then
11141
11142 cat >>confdefs.h <<\_ACEOF
11143 #define FORCEINLINE 1
11144 _ACEOF
11145
11146 fi
11147
11148 { $as_echo "$as_me:$LINENO: checking whether to enable the /dev/poll event engine" >&5
11149 $as_echo_n "checking whether to enable the /dev/poll event engine... " >&6; }
11150 # Check whether --enable-devpoll was given.
11151 if test "${enable_devpoll+set}" = set; then
11152   enableval=$enable_devpoll; unet_cv_enable_devpoll=$enable_devpoll
11153 else
11154   if test "${unet_cv_enable_devpoll+set}" = set; then
11155   $as_echo_n "(cached) " >&6
11156 else
11157   unet_cv_enable_devpoll=yes
11158 fi
11159
11160 fi
11161
11162
11163 if test x"$ac_cv_header_sys_devpoll_h" = xno; then
11164     unet_cv_enable_devpoll=no
11165 fi
11166
11167 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_devpoll" >&5
11168 $as_echo "$unet_cv_enable_devpoll" >&6; }
11169
11170 if test x"$unet_cv_enable_devpoll" != xno; then
11171
11172 cat >>confdefs.h <<\_ACEOF
11173 #define USE_DEVPOLL 1
11174 _ACEOF
11175
11176     ENGINE_C="engine_devpoll.c $ENGINE_C"
11177 fi
11178
11179 { $as_echo "$as_me:$LINENO: checking whether to enable the kqueue event engine" >&5
11180 $as_echo_n "checking whether to enable the kqueue event engine... " >&6; }
11181 # Check whether --enable-kqueue was given.
11182 if test "${enable_kqueue+set}" = set; then
11183   enableval=$enable_kqueue; unet_cv_enable_kqueue=$enable_kqueue
11184 else
11185   if test "${unet_cv_enable_kqueue+set}" = set; then
11186   $as_echo_n "(cached) " >&6
11187 else
11188   unet_cv_enable_kqueue=yes
11189 fi
11190
11191 fi
11192
11193
11194 if test x"$ac_cv_header_sys_event_h" = xno -o x"$ac_cv_func_kqueue" = xno; then
11195     unet_cv_enable_kqueue=no
11196 fi
11197
11198 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_kqueue" >&5
11199 $as_echo "$unet_cv_enable_kqueue" >&6; }
11200
11201 if test x"$unet_cv_enable_kqueue" != xno; then
11202
11203 cat >>confdefs.h <<\_ACEOF
11204 #define USE_KQUEUE 1
11205 _ACEOF
11206
11207     ENGINE_C="engine_kqueue.c $ENGINE_C"
11208 fi
11209
11210 { $as_echo "$as_me:$LINENO: checking whether to enable the epoll event engine" >&5
11211 $as_echo_n "checking whether to enable the epoll event engine... " >&6; }
11212 # Check whether --enable-epoll was given.
11213 if test "${enable_epoll+set}" = set; then
11214   enableval=$enable_epoll; unet_cv_enable_epoll=$enable_epoll
11215 else
11216   if test "${unet_cv_enable_epoll+set}" = set; then
11217   $as_echo_n "(cached) " >&6
11218 else
11219   unet_cv_enable_epoll=yes
11220 fi
11221
11222 fi
11223
11224
11225 if test x"$ac_cv_header_sys_epoll_h" = xno -o x"$ac_cv_func_epoll" = xno; then
11226     unet_cv_enable_epoll=no
11227 fi
11228
11229 { $as_echo "$as_me:$LINENO: result: $unet_cv_enable_epoll" >&5
11230 $as_echo "$unet_cv_enable_epoll" >&6; }
11231
11232 if test x"$unet_cv_enable_epoll" != xno; then
11233     { $as_echo "$as_me:$LINENO: checking whether epoll functions are properly defined" >&5
11234 $as_echo_n "checking whether epoll functions are properly defined... " >&6; }
11235     cat >conftest.$ac_ext <<_ACEOF
11236 /* confdefs.h.  */
11237 _ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h.  */
11241 #include <sys/epoll.h>
11242 int
11243 main ()
11244 {
11245 epoll_create(10);
11246   ;
11247   return 0;
11248 }
11249 _ACEOF
11250 rm -f conftest.$ac_objext conftest$ac_exeext
11251 if { (ac_try="$ac_link"
11252 case "(($ac_try" in
11253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11254   *) ac_try_echo=$ac_try;;
11255 esac
11256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11257 $as_echo "$ac_try_echo") >&5
11258   (eval "$ac_link") 2>conftest.er1
11259   ac_status=$?
11260   grep -v '^ *+' conftest.er1 >conftest.err
11261   rm -f conftest.er1
11262   cat conftest.err >&5
11263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264   (exit $ac_status); } && {
11265          test -z "$ac_c_werror_flag" ||
11266          test ! -s conftest.err
11267        } && test -s conftest$ac_exeext && {
11268          test "$cross_compiling" = yes ||
11269          $as_test_x conftest$ac_exeext
11270        }; then
11271   { $as_echo "$as_me:$LINENO: result: yes" >&5
11272 $as_echo "yes" >&6; }
11273 else
11274   $as_echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11276
11277         { $as_echo "$as_me:$LINENO: result: no" >&5
11278 $as_echo "no" >&6; }
11279
11280 cat >>confdefs.h <<\_ACEOF
11281 #define EPOLL_NEED_BODY 1
11282 _ACEOF
11283
11284 fi
11285
11286 rm -rf conftest.dSYM
11287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11288       conftest$ac_exeext conftest.$ac_ext
11289
11290 cat >>confdefs.h <<\_ACEOF
11291 #define USE_EPOLL 1
11292 _ACEOF
11293
11294     ENGINE_C="engine_epoll.c $ENGINE_C"
11295 fi
11296
11297 { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
11298 $as_echo_n "checking for va_copy... " >&6; }
11299 if test "${unet_cv_c_va_copy+set}" = set; then
11300   $as_echo_n "(cached) " >&6
11301 else
11302   cat >conftest.$ac_ext <<_ACEOF
11303 /* confdefs.h.  */
11304 _ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h.  */
11308 #include <stdarg.h>
11309 int
11310 main ()
11311 {
11312 va_list ap1, ap2; va_copy(ap1, ap2);
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11324 $as_echo "$ac_try_echo") >&5
11325   (eval "$ac_link") 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } && {
11332          test -z "$ac_c_werror_flag" ||
11333          test ! -s conftest.err
11334        } && test -s conftest$ac_exeext && {
11335          test "$cross_compiling" = yes ||
11336          $as_test_x conftest$ac_exeext
11337        }; then
11338   unet_cv_c_va_copy="yes"
11339 else
11340   $as_echo "$as_me: failed program was:" >&5
11341 sed 's/^/| /' conftest.$ac_ext >&5
11342
11343         unet_cv_c_va_copy="no"
11344
11345 fi
11346
11347 rm -rf conftest.dSYM
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349       conftest$ac_exeext conftest.$ac_ext
11350 fi
11351 { $as_echo "$as_me:$LINENO: result: $unet_cv_c_va_copy" >&5
11352 $as_echo "$unet_cv_c_va_copy" >&6; }
11353 if test "$unet_cv_c_va_copy" = "yes" ; then
11354
11355 cat >>confdefs.h <<\_ACEOF
11356 #define HAVE_VA_COPY 1
11357 _ACEOF
11358
11359 fi
11360
11361 { $as_echo "$as_me:$LINENO: checking for __va_copy" >&5
11362 $as_echo_n "checking for __va_copy... " >&6; }
11363 if test "${unet_cv_c___va_copy+set}" = set; then
11364   $as_echo_n "(cached) " >&6
11365 else
11366   cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <stdarg.h>
11373 int
11374 main ()
11375 {
11376 va_list ap1, ap2; __va_copy(ap1, ap2);
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 rm -f conftest.$ac_objext conftest$ac_exeext
11382 if { (ac_try="$ac_link"
11383 case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11388 $as_echo "$ac_try_echo") >&5
11389   (eval "$ac_link") 2>conftest.er1
11390   ac_status=$?
11391   grep -v '^ *+' conftest.er1 >conftest.err
11392   rm -f conftest.er1
11393   cat conftest.err >&5
11394   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); } && {
11396          test -z "$ac_c_werror_flag" ||
11397          test ! -s conftest.err
11398        } && test -s conftest$ac_exeext && {
11399          test "$cross_compiling" = yes ||
11400          $as_test_x conftest$ac_exeext
11401        }; then
11402   unet_cv_c___va_copy="yes"
11403 else
11404   $as_echo "$as_me: failed program was:" >&5
11405 sed 's/^/| /' conftest.$ac_ext >&5
11406
11407         unet_cv_c___va_copy="no"
11408
11409 fi
11410
11411 rm -rf conftest.dSYM
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413       conftest$ac_exeext conftest.$ac_ext
11414 fi
11415 { $as_echo "$as_me:$LINENO: result: $unet_cv_c___va_copy" >&5
11416 $as_echo "$unet_cv_c___va_copy" >&6; }
11417 if test "$unet_cv_c___va_copy" = "yes" ; then
11418
11419 cat >>confdefs.h <<\_ACEOF
11420 #define HAVE___VA_COPY 1
11421 _ACEOF
11422
11423 fi
11424
11425 { $as_echo "$as_me:$LINENO: checking what name to give the symlink" >&5
11426 $as_echo_n "checking what name to give the symlink... " >&6; }
11427
11428 # Check whether --with-symlink was given.
11429 if test "${with_symlink+set}" = set; then
11430   withval=$with_symlink; unet_cv_with_symlink=$with_symlink
11431 else
11432   if test "${unet_cv_with_symlink+set}" = set; then
11433   $as_echo_n "(cached) " >&6
11434 else
11435   unet_cv_with_symlink="ircd"
11436 fi
11437
11438 fi
11439
11440
11441 if test x"$unet_cv_with_symlink" = xyes; then
11442     unet_cv_with_symlink="ircd"
11443 fi
11444
11445 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_symlink" >&5
11446 $as_echo "$unet_cv_with_symlink" >&6; }
11447
11448 if test x"$unet_cv_with_symlink" = xno; then
11449     INSTALL_RULE=install-no-symlink
11450     SYMLINK=
11451 else
11452     INSTALL_RULE=install-with-symlink
11453     SYMLINK=$unet_cv_with_symlink
11454 fi
11455
11456
11457
11458 { $as_echo "$as_me:$LINENO: checking what permissions to set on the installed binary" >&5
11459 $as_echo_n "checking what permissions to set on the installed binary... " >&6; }
11460
11461 # Check whether --with-mode was given.
11462 if test "${with_mode+set}" = set; then
11463   withval=$with_mode; unet_cv_with_mode=$with_mode
11464 else
11465   if test "${unet_cv_with_mode+set}" = set; then
11466   $as_echo_n "(cached) " >&6
11467 else
11468   unet_cv_with_mode=711
11469 fi
11470
11471 fi
11472
11473
11474 if test x"$unet_cv_with_mode" = xyes -o x"$unet_cv_with_mode" = xno; then
11475     unet_cv_with_mode=711
11476 fi
11477
11478 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_mode" >&5
11479 $as_echo "$unet_cv_with_mode" >&6; }
11480
11481 IRCDMODE=$unet_cv_with_mode
11482
11483
11484 unet_uid=`id | sed -e 's/.*uid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
11485 { $as_echo "$as_me:$LINENO: checking which user should own the installed binary" >&5
11486 $as_echo_n "checking which user should own the installed binary... " >&6; }
11487
11488 # Check whether --with-owner was given.
11489 if test "${with_owner+set}" = set; then
11490   withval=$with_owner; unet_cv_with_owner=$with_owner
11491 else
11492   if test "${unet_cv_with_owner+set}" = set; then
11493   $as_echo_n "(cached) " >&6
11494 else
11495   unet_cv_with_owner=$unet_uid
11496 fi
11497
11498 fi
11499
11500
11501 if test x"$unet_cv_with_owner" = xyes -o x"$unet_cv_with_owner" = xno; then
11502     unet_cv_with_owner=$unet_uid
11503 fi
11504
11505 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_owner" >&5
11506 $as_echo "$unet_cv_with_owner" >&6; }
11507
11508 IRCDOWN=$unet_cv_with_owner
11509
11510
11511 unet_gid=`id | sed -e 's/.*gid=[0-9]*(//' -e 's/).*//' 2> /dev/null`
11512 { $as_echo "$as_me:$LINENO: checking which group should own the installed binary" >&5
11513 $as_echo_n "checking which group should own the installed binary... " >&6; }
11514
11515 # Check whether --with-group was given.
11516 if test "${with_group+set}" = set; then
11517   withval=$with_group; unet_cv_with_group=$with_group
11518 else
11519   if test "${unet_cv_with_group+set}" = set; then
11520   $as_echo_n "(cached) " >&6
11521 else
11522   unet_cv_with_group=$unet_gid
11523 fi
11524
11525 fi
11526
11527
11528 if test x"$unet_cv_with_group" = xyes -o x"$unet_cv_with_group" = xno; then
11529     unet_cv_with_group=$unet_gid
11530 fi
11531
11532 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_group" >&5
11533 $as_echo "$unet_cv_with_group" >&6; }
11534
11535 IRCDGRP=$unet_cv_with_group
11536
11537
11538 unet_domain=
11539 if test -f /etc/resolv.conf; then
11540     unet_domain=`awk '/^domain/ { print $2; exit }' /etc/resolv.conf`
11541     if test x"$unet_domain" = x; then
11542         unet_domain=`awk '/^search/ { print $2; exit }' /etc/resolv.conf`
11543     fi
11544 fi
11545 { $as_echo "$as_me:$LINENO: checking for site domain name" >&5
11546 $as_echo_n "checking for site domain name... " >&6; }
11547
11548 # Check whether --with-domain was given.
11549 if test "${with_domain+set}" = set; then
11550   withval=$with_domain; unet_cv_with_domain=$with_domain
11551 else
11552   if test "${unet_cv_with_domain+set}" = set; then
11553   $as_echo_n "(cached) " >&6
11554 else
11555   unet_cv_with_domain=$unet_domain
11556 fi
11557
11558 fi
11559
11560
11561 if test x"$unet_cv_with_domain" = xyes -o x"$unet_cv_with_domain" = xno; then
11562     unet_cv_with_domain=$unet_domain
11563 fi
11564 if test x"$unet_cv_with_domain" = xno; then
11565     { { $as_echo "$as_me:$LINENO: error: Unable to determine server DNS domain; use --with-domain to set it" >&5
11566 $as_echo "$as_me: error: Unable to determine server DNS domain; use --with-domain to set it" >&2;}
11567    { (exit 1); exit 1; }; }
11568 fi
11569
11570 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_domain" >&5
11571 $as_echo "$unet_cv_with_domain" >&6; }
11572
11573
11574 cat >>confdefs.h <<_ACEOF
11575 #define DOMAINNAME "*$unet_cv_with_domain"
11576 _ACEOF
11577
11578
11579 { $as_echo "$as_me:$LINENO: checking if chroot operation is desired" >&5
11580 $as_echo_n "checking if chroot operation is desired... " >&6; }
11581
11582 # Check whether --with-chroot was given.
11583 if test "${with_chroot+set}" = set; then
11584   withval=$with_chroot; unet_cv_with_chroot=$with_chroot
11585 else
11586   if test "${unet_cv_with_chroot+set}" = set; then
11587   $as_echo_n "(cached) " >&6
11588 else
11589   unet_cv_with_chroot=no
11590 fi
11591
11592 fi
11593
11594
11595 if test x"$unet_cv_with_chroot" = xyes; then
11596     { { $as_echo "$as_me:$LINENO: error: --with-chroot given with no directory.  See doc/readme.chroot." >&5
11597 $as_echo "$as_me: error: --with-chroot given with no directory.  See doc/readme.chroot." >&2;}
11598    { (exit 1); exit 1; }; }
11599 fi
11600
11601 # Ensure there are no trailing /'s to mess us up
11602 unet_cv_with_chroot=`echo "$unet_cv_with_chroot" | sed 's%/*$%%'`
11603
11604 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_chroot" >&5
11605 $as_echo "$unet_cv_with_chroot" >&6; }
11606
11607 # Deal with the annoying value "NONE" here
11608 unet_save_prefix=$prefix
11609 if test x"$prefix" = xNONE; then
11610     prefix=$ac_default_prefix
11611 else
11612     prefix=$prefix
11613 fi
11614
11615 unet_save_exec_prefix=$exec_prefix
11616 if test x"$exec_prefix" = xNONE; then
11617     exec_prefix=$prefix
11618 else
11619     exec_prefix=$exec_prefix
11620 fi
11621
11622 # Obtain the actual interesting directories
11623 unet_bindir=`eval echo "$bindir"`
11624 unet_libdir=`eval echo "$libdir"`
11625
11626 # Restore the original settings of $prefix and $exec_prefix
11627 prefix=$unet_save_prefix
11628 exec_prefix=$unet_save_exec_prefix
11629
11630 { $as_echo "$as_me:$LINENO: checking where the binary will be for /restart" >&5
11631 $as_echo_n "checking where the binary will be for /restart... " >&6; }
11632 if test x"$unet_cv_with_symlink" = xno; then
11633     unet_spath="$unet_bindir/ircd"
11634 else
11635     unet_spath="$unet_bindir/$unet_cv_with_symlink"
11636 fi
11637 { $as_echo "$as_me:$LINENO: result: $unet_spath" >&5
11638 $as_echo "$unet_spath" >&6; }
11639
11640 if test x"$unet_cv_with_chroot" != xno; then
11641     if echo "$unet_spath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11642         unet_spath=`echo "$unet_spath" | sed "s%^$unet_cv_with_chroot%%"`
11643     else
11644         { $as_echo "$as_me:$LINENO: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&5
11645 $as_echo "$as_me: WARNING: Binary $unet_spath not relative to root directory $unet_cv_with_chroot; restarts will probably fail" >&2;}
11646     fi
11647 fi
11648
11649
11650 cat >>confdefs.h <<_ACEOF
11651 #define SPATH "$unet_spath"
11652 _ACEOF
11653
11654
11655 { $as_echo "$as_me:$LINENO: checking what the data directory should be" >&5
11656 $as_echo_n "checking what the data directory should be... " >&6; }
11657
11658 # Check whether --with-dpath was given.
11659 if test "${with_dpath+set}" = set; then
11660   withval=$with_dpath; unet_cv_with_dpath=$with_dpath
11661 else
11662   if test "${unet_cv_with_dpath+set}" = set; then
11663   $as_echo_n "(cached) " >&6
11664 else
11665   unet_cv_with_dpath=$unet_libdir
11666 fi
11667
11668 fi
11669
11670
11671 if test x"$unet_cv_with_dpath" = xyes -o x"$unet_cv_with_dpath" = xno; then
11672     unet_cv_with_dpath=$unet_libdir
11673 fi
11674
11675 # Ensure there are no trailing /'s to mess us up
11676 unet_cv_with_dpath=`echo "$unet_cv_with_dpath" | sed 's%/*$%%'`
11677
11678 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_dpath" >&5
11679 $as_echo "$unet_cv_with_dpath" >&6; }
11680
11681 if test x"$unet_cv_with_chroot" != xno; then
11682     if echo "$unet_cv_with_dpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11683         unet_dpath=`echo "$unet_cv_with_dpath" | sed "s%^$unet_cv_with_chroot%%"`
11684     else
11685         { { $as_echo "$as_me:$LINENO: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&5
11686 $as_echo "$as_me: error: Data directory $unet_cv_with_dpath not relative to root directory $unet_cv_with_chroot" >&2;}
11687    { (exit 1); exit 1; }; }
11688     fi
11689 else
11690     unet_dpath=$unet_cv_with_dpath
11691 fi
11692
11693
11694 cat >>confdefs.h <<_ACEOF
11695 #define DPATH "$unet_dpath"
11696 _ACEOF
11697
11698
11699 DPATH=$unet_cv_with_dpath
11700
11701
11702 { $as_echo "$as_me:$LINENO: checking where the default configuration file resides" >&5
11703 $as_echo_n "checking where the default configuration file resides... " >&6; }
11704
11705 # Check whether --with-cpath was given.
11706 if test "${with_cpath+set}" = set; then
11707   withval=$with_cpath; unet_cv_with_cpath=$with_cpath
11708 else
11709   if test "${unet_cv_with_cpath+set}" = set; then
11710   $as_echo_n "(cached) " >&6
11711 else
11712   unet_cv_with_cpath="ircd.conf"
11713 fi
11714
11715 fi
11716
11717
11718 if test x"$unet_cv_with_cpath" = xyes -o x"$unet_cv_with_cpath" = xno; then
11719     unet_cv_with_cpath="ircd.conf"
11720 fi
11721
11722 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_cpath" >&5
11723 $as_echo "$unet_cv_with_cpath" >&6; }
11724
11725 if echo "$unet_cv_with_cpath" | grep '^/' > /dev/null 2>&1; then
11726     # Absolute path; check against chroot stuff
11727     if test x"$unet_cv_with_chroot" != xno; then
11728         if echo "$unet_cv_with_cpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11729             unet_cpath=`echo "$unet_cv_with_cpath" | sed "s%^$unet_cv_with_chroot%%"`
11730         else
11731             { { $as_echo "$as_me:$LINENO: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&5
11732 $as_echo "$as_me: error: Configuration file $unet_cv_with_cpath not relative to root directory $unet_cv_with_chroot" >&2;}
11733    { (exit 1); exit 1; }; }
11734         fi
11735     else
11736         unet_cpath=$unet_cv_with_cpath
11737     fi
11738 else
11739     unet_cpath=$unet_cv_with_cpath
11740 fi
11741
11742
11743 cat >>confdefs.h <<_ACEOF
11744 #define CPATH "$unet_cpath"
11745 _ACEOF
11746
11747
11748 { $as_echo "$as_me:$LINENO: checking where to put the debugging log if debugging enabled" >&5
11749 $as_echo_n "checking where to put the debugging log if debugging enabled... " >&6; }
11750
11751 # Check whether --with-lpath was given.
11752 if test "${with_lpath+set}" = set; then
11753   withval=$with_lpath; unet_cv_with_lpath=$with_lpath
11754 else
11755   if test "${unet_cv_with_lpath+set}" = set; then
11756   $as_echo_n "(cached) " >&6
11757 else
11758   unet_cv_with_lpath="ircd.log"
11759 fi
11760
11761 fi
11762
11763
11764 if test x"$unet_cv_with_lpath" = xyes -o x"$unet_cv_with_lpath" = xno; then
11765     unet_cv_with_lpath="ircd.log"
11766 fi
11767
11768 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_lpath" >&5
11769 $as_echo "$unet_cv_with_lpath" >&6; }
11770
11771 if echo "$unet_cv_with_lpath" | grep '^/' > /dev/null 2>&1; then
11772     # Absolute path; check against chroot stuff
11773     if test x"$unet_cv_with_chroot" != xno; then
11774         if echo "$unet_cv_with_lpath" | grep "^$unet_cv_with_chroot" > /dev/null 2>&1; then
11775             unet_lpath=`echo "$unet_cv_with_lpath" | sed "s%^$unet_cv_with_chroot%%"`
11776         else
11777             { $as_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
11778 $as_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;}
11779             unet_cv_with_lpath="ircd.log"
11780             unet_lpath="ircd.log"
11781         fi
11782     else
11783         unet_lpath=$unet_cv_with_lpath
11784     fi
11785 else
11786     unet_lpath=$unet_cv_with_lpath
11787 fi
11788
11789
11790 cat >>confdefs.h <<_ACEOF
11791 #define LPATH "$unet_lpath"
11792 _ACEOF
11793
11794
11795 unet_maxcon=`ulimit -Hn`
11796 if test x"$unet_maxcon" = xunlimited; then
11797     unet_maxcon=`ulimit -Sn`
11798 fi
11799 unet_maxcon=`expr $unet_maxcon - 4`
11800 { $as_echo "$as_me:$LINENO: checking max connections" >&5
11801 $as_echo_n "checking max connections... " >&6; }
11802
11803 # Check whether --with-maxcon was given.
11804 if test "${with_maxcon+set}" = set; then
11805   withval=$with_maxcon; unet_cv_with_maxcon=$with_maxcon
11806 else
11807   if test "${unet_cv_with_maxcon+set}" = set; then
11808   $as_echo_n "(cached) " >&6
11809 else
11810   unet_cv_with_maxcon=$unet_maxcon
11811 fi
11812
11813 fi
11814
11815
11816 if test x"$unet_cv_with_maxcon" = xyes -o x"$unet_cv_with_maxcon" = xno; then
11817     if test "$unet_maxcon" -lt 32; then
11818       { { $as_echo "$as_me:$LINENO: error: Maximum connections (number of open files minus 4) must be at least 32." >&5
11819 $as_echo "$as_me: error: Maximum connections (number of open files minus 4) must be at least 32." >&2;}
11820    { (exit 1); exit 1; }; }
11821     fi
11822     unet_cv_with_maxcon=$unet_maxcon
11823 elif test "$unet_cv_with_maxcon" -lt 32; then
11824     { { $as_echo "$as_me:$LINENO: error: Maximum connections (--with-maxcon) must be at least 32." >&5
11825 $as_echo "$as_me: error: Maximum connections (--with-maxcon) must be at least 32." >&2;}
11826    { (exit 1); exit 1; }; }
11827 fi
11828
11829 { $as_echo "$as_me:$LINENO: result: $unet_cv_with_maxcon" >&5
11830 $as_echo "$unet_cv_with_maxcon" >&6; }
11831
11832
11833 cat >>confdefs.h <<_ACEOF
11834 #define MAXCONNECTIONS $unet_cv_with_maxcon
11835 _ACEOF
11836
11837
11838 ac_config_files="$ac_config_files Makefile ircd/Makefile ircd/test/Makefile doc/Makefile"
11839
11840 ac_config_commands="$ac_config_commands default"
11841
11842 cat >confcache <<\_ACEOF
11843 # This file is a shell script that caches the results of configure
11844 # tests run on this system so they can be shared between configure
11845 # scripts and configure runs, see configure's option --config-cache.
11846 # It is not useful on other systems.  If it contains results you don't
11847 # want to keep, you may remove or edit it.
11848 #
11849 # config.status only pays attention to the cache file if you give it
11850 # the --recheck option to rerun configure.
11851 #
11852 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11853 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11854 # following values.
11855
11856 _ACEOF
11857
11858 # The following way of writing the cache mishandles newlines in values,
11859 # but we know of no workaround that is simple, portable, and efficient.
11860 # So, we kill variables containing newlines.
11861 # Ultrix sh set writes to stderr and can't be redirected directly,
11862 # and sets the high bit in the cache file unless we assign to the vars.
11863 (
11864   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11865     eval ac_val=\$$ac_var
11866     case $ac_val in #(
11867     *${as_nl}*)
11868       case $ac_var in #(
11869       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
11870 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11871       esac
11872       case $ac_var in #(
11873       _ | IFS | as_nl) ;; #(
11874       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11875       *) $as_unset $ac_var ;;
11876       esac ;;
11877     esac
11878   done
11879
11880   (set) 2>&1 |
11881     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11882     *${as_nl}ac_space=\ *)
11883       # `set' does not quote correctly, so add quotes (double-quote
11884       # substitution turns \\\\ into \\, and sed turns \\ into \).
11885       sed -n \
11886         "s/'/'\\\\''/g;
11887           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11888       ;; #(
11889     *)
11890       # `set' quotes correctly as required by POSIX, so do not add quotes.
11891       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11892       ;;
11893     esac |
11894     sort
11895 ) |
11896   sed '
11897      /^ac_cv_env_/b end
11898      t clear
11899      :clear
11900      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11901      t end
11902      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11903      :end' >>confcache
11904 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11905   if test -w "$cache_file"; then
11906     test "x$cache_file" != "x/dev/null" &&
11907       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11908 $as_echo "$as_me: updating cache $cache_file" >&6;}
11909     cat confcache >$cache_file
11910   else
11911     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11912 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11913   fi
11914 fi
11915 rm -f confcache
11916
11917 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11918 # Let make expand exec_prefix.
11919 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11920
11921 DEFS=-DHAVE_CONFIG_H
11922
11923 ac_libobjs=
11924 ac_ltlibobjs=
11925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11926   # 1. Remove the extension, and $U if already installed.
11927   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11928   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11929   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11930   #    will be set to the directory where LIBOBJS objects are built.
11931   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11932   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11933 done
11934 LIBOBJS=$ac_libobjs
11935
11936 LTLIBOBJS=$ac_ltlibobjs
11937
11938
11939
11940
11941 : ${CONFIG_STATUS=./config.status}
11942 ac_write_fail=0
11943 ac_clean_files_save=$ac_clean_files
11944 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11945 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11946 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11947 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11948 #! $SHELL
11949 # Generated by $as_me.
11950 # Run this file to recreate the current configuration.
11951 # Compiler output produced by configure, useful for debugging
11952 # configure, is in config.log if it exists.
11953
11954 debug=false
11955 ac_cs_recheck=false
11956 ac_cs_silent=false
11957 SHELL=\${CONFIG_SHELL-$SHELL}
11958 _ACEOF
11959
11960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11961 ## --------------------- ##
11962 ## M4sh Initialization.  ##
11963 ## --------------------- ##
11964
11965 # Be more Bourne compatible
11966 DUALCASE=1; export DUALCASE # for MKS sh
11967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11968   emulate sh
11969   NULLCMD=:
11970   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11971   # is contrary to our usage.  Disable this feature.
11972   alias -g '${1+"$@"}'='"$@"'
11973   setopt NO_GLOB_SUBST
11974 else
11975   case `(set -o) 2>/dev/null` in
11976   *posix*) set -o posix ;;
11977 esac
11978
11979 fi
11980
11981
11982
11983
11984 # PATH needs CR
11985 # Avoid depending upon Character Ranges.
11986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11989 as_cr_digits='0123456789'
11990 as_cr_alnum=$as_cr_Letters$as_cr_digits
11991
11992 as_nl='
11993 '
11994 export as_nl
11995 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11996 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11997 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11998 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11999 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12000   as_echo='printf %s\n'
12001   as_echo_n='printf %s'
12002 else
12003   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12004     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12005     as_echo_n='/usr/ucb/echo -n'
12006   else
12007     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12008     as_echo_n_body='eval
12009       arg=$1;
12010       case $arg in
12011       *"$as_nl"*)
12012         expr "X$arg" : "X\\(.*\\)$as_nl";
12013         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12014       esac;
12015       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12016     '
12017     export as_echo_n_body
12018     as_echo_n='sh -c $as_echo_n_body as_echo'
12019   fi
12020   export as_echo_body
12021   as_echo='sh -c $as_echo_body as_echo'
12022 fi
12023
12024 # The user is always right.
12025 if test "${PATH_SEPARATOR+set}" != set; then
12026   PATH_SEPARATOR=:
12027   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12028     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12029       PATH_SEPARATOR=';'
12030   }
12031 fi
12032
12033 # Support unset when possible.
12034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12035   as_unset=unset
12036 else
12037   as_unset=false
12038 fi
12039
12040
12041 # IFS
12042 # We need space, tab and new line, in precisely that order.  Quoting is
12043 # there to prevent editors from complaining about space-tab.
12044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12045 # splitting by setting IFS to empty value.)
12046 IFS=" ""        $as_nl"
12047
12048 # Find who we are.  Look in the path if we contain no directory separator.
12049 case $0 in
12050   *[\\/]* ) as_myself=$0 ;;
12051   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12052 for as_dir in $PATH
12053 do
12054   IFS=$as_save_IFS
12055   test -z "$as_dir" && as_dir=.
12056   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12057 done
12058 IFS=$as_save_IFS
12059
12060      ;;
12061 esac
12062 # We did not find ourselves, most probably we were run as `sh COMMAND'
12063 # in which case we are not to be found in the path.
12064 if test "x$as_myself" = x; then
12065   as_myself=$0
12066 fi
12067 if test ! -f "$as_myself"; then
12068   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12069   { (exit 1); exit 1; }
12070 fi
12071
12072 # Work around bugs in pre-3.0 UWIN ksh.
12073 for as_var in ENV MAIL MAILPATH
12074 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12075 done
12076 PS1='$ '
12077 PS2='> '
12078 PS4='+ '
12079
12080 # NLS nuisances.
12081 LC_ALL=C
12082 export LC_ALL
12083 LANGUAGE=C
12084 export LANGUAGE
12085
12086 # Required to use basename.
12087 if expr a : '\(a\)' >/dev/null 2>&1 &&
12088    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12089   as_expr=expr
12090 else
12091   as_expr=false
12092 fi
12093
12094 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12095   as_basename=basename
12096 else
12097   as_basename=false
12098 fi
12099
12100
12101 # Name of the executable.
12102 as_me=`$as_basename -- "$0" ||
12103 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12104          X"$0" : 'X\(//\)$' \| \
12105          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12106 $as_echo X/"$0" |
12107     sed '/^.*\/\([^/][^/]*\)\/*$/{
12108             s//\1/
12109             q
12110           }
12111           /^X\/\(\/\/\)$/{
12112             s//\1/
12113             q
12114           }
12115           /^X\/\(\/\).*/{
12116             s//\1/
12117             q
12118           }
12119           s/.*/./; q'`
12120
12121 # CDPATH.
12122 $as_unset CDPATH
12123
12124
12125
12126   as_lineno_1=$LINENO
12127   as_lineno_2=$LINENO
12128   test "x$as_lineno_1" != "x$as_lineno_2" &&
12129   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12130
12131   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12132   # uniformly replaced by the line number.  The first 'sed' inserts a
12133   # line-number line after each line using $LINENO; the second 'sed'
12134   # does the real work.  The second script uses 'N' to pair each
12135   # line-number line with the line containing $LINENO, and appends
12136   # trailing '-' during substitution so that $LINENO is not a special
12137   # case at line end.
12138   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12139   # scripts with optimization help from Paolo Bonzini.  Blame Lee
12140   # E. McMahon (1931-1989) for sed's syntax.  :-)
12141   sed -n '
12142     p
12143     /[$]LINENO/=
12144   ' <$as_myself |
12145     sed '
12146       s/[$]LINENO.*/&-/
12147       t lineno
12148       b
12149       :lineno
12150       N
12151       :loop
12152       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12153       t loop
12154       s/-\n.*//
12155     ' >$as_me.lineno &&
12156   chmod +x "$as_me.lineno" ||
12157     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12158    { (exit 1); exit 1; }; }
12159
12160   # Don't try to exec as it changes $[0], causing all sort of problems
12161   # (the dirname of $[0] is not the place where we might find the
12162   # original and so on.  Autoconf is especially sensitive to this).
12163   . "./$as_me.lineno"
12164   # Exit status is that of the last command.
12165   exit
12166 }
12167
12168
12169 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12170   as_dirname=dirname
12171 else
12172   as_dirname=false
12173 fi
12174
12175 ECHO_C= ECHO_N= ECHO_T=
12176 case `echo -n x` in
12177 -n*)
12178   case `echo 'x\c'` in
12179   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12180   *)   ECHO_C='\c';;
12181   esac;;
12182 *)
12183   ECHO_N='-n';;
12184 esac
12185 if expr a : '\(a\)' >/dev/null 2>&1 &&
12186    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12187   as_expr=expr
12188 else
12189   as_expr=false
12190 fi
12191
12192 rm -f conf$$ conf$$.exe conf$$.file
12193 if test -d conf$$.dir; then
12194   rm -f conf$$.dir/conf$$.file
12195 else
12196   rm -f conf$$.dir
12197   mkdir conf$$.dir 2>/dev/null
12198 fi
12199 if (echo >conf$$.file) 2>/dev/null; then
12200   if ln -s conf$$.file conf$$ 2>/dev/null; then
12201     as_ln_s='ln -s'
12202     # ... but there are two gotchas:
12203     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12204     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12205     # In both cases, we have to default to `cp -p'.
12206     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12207       as_ln_s='cp -p'
12208   elif ln conf$$.file conf$$ 2>/dev/null; then
12209     as_ln_s=ln
12210   else
12211     as_ln_s='cp -p'
12212   fi
12213 else
12214   as_ln_s='cp -p'
12215 fi
12216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12217 rmdir conf$$.dir 2>/dev/null
12218
12219 if mkdir -p . 2>/dev/null; then
12220   as_mkdir_p=:
12221 else
12222   test -d ./-p && rmdir ./-p
12223   as_mkdir_p=false
12224 fi
12225
12226 if test -x / >/dev/null 2>&1; then
12227   as_test_x='test -x'
12228 else
12229   if ls -dL / >/dev/null 2>&1; then
12230     as_ls_L_option=L
12231   else
12232     as_ls_L_option=
12233   fi
12234   as_test_x='
12235     eval sh -c '\''
12236       if test -d "$1"; then
12237         test -d "$1/.";
12238       else
12239         case $1 in
12240         -*)set "./$1";;
12241         esac;
12242         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12243         ???[sx]*):;;*)false;;esac;fi
12244     '\'' sh
12245   '
12246 fi
12247 as_executable_p=$as_test_x
12248
12249 # Sed expression to map a string onto a valid CPP name.
12250 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12251
12252 # Sed expression to map a string onto a valid variable name.
12253 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12254
12255
12256 exec 6>&1
12257
12258 # Save the log message, to keep $[0] and so on meaningful, and to
12259 # report actual input values of CONFIG_FILES etc. instead of their
12260 # values after options handling.
12261 ac_log="
12262 This file was extended by $as_me, which was
12263 generated by GNU Autoconf 2.63.  Invocation command line was
12264
12265   CONFIG_FILES    = $CONFIG_FILES
12266   CONFIG_HEADERS  = $CONFIG_HEADERS
12267   CONFIG_LINKS    = $CONFIG_LINKS
12268   CONFIG_COMMANDS = $CONFIG_COMMANDS
12269   $ $0 $@
12270
12271 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12272 "
12273
12274 _ACEOF
12275
12276 case $ac_config_files in *"
12277 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12278 esac
12279
12280 case $ac_config_headers in *"
12281 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12282 esac
12283
12284
12285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12286 # Files that config.status was made for.
12287 config_files="$ac_config_files"
12288 config_headers="$ac_config_headers"
12289 config_commands="$ac_config_commands"
12290
12291 _ACEOF
12292
12293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12294 ac_cs_usage="\
12295 \`$as_me' instantiates files from templates according to the
12296 current configuration.
12297
12298 Usage: $0 [OPTION]... [FILE]...
12299
12300   -h, --help       print this help, then exit
12301   -V, --version    print version number and configuration settings, then exit
12302   -q, --quiet, --silent
12303                    do not print progress messages
12304   -d, --debug      don't remove temporary files
12305       --recheck    update $as_me by reconfiguring in the same conditions
12306       --file=FILE[:TEMPLATE]
12307                    instantiate the configuration file FILE
12308       --header=FILE[:TEMPLATE]
12309                    instantiate the configuration header FILE
12310
12311 Configuration files:
12312 $config_files
12313
12314 Configuration headers:
12315 $config_headers
12316
12317 Configuration commands:
12318 $config_commands
12319
12320 Report bugs to <bug-autoconf@gnu.org>."
12321
12322 _ACEOF
12323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12324 ac_cs_version="\\
12325 config.status
12326 configured by $0, generated by GNU Autoconf 2.63,
12327   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12328
12329 Copyright (C) 2008 Free Software Foundation, Inc.
12330 This config.status script is free software; the Free Software Foundation
12331 gives unlimited permission to copy, distribute and modify it."
12332
12333 ac_pwd='$ac_pwd'
12334 srcdir='$srcdir'
12335 INSTALL='$INSTALL'
12336 AWK='$AWK'
12337 test -n "\$AWK" || AWK=awk
12338 _ACEOF
12339
12340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12341 # The default lists apply if the user does not specify any file.
12342 ac_need_defaults=:
12343 while test $# != 0
12344 do
12345   case $1 in
12346   --*=*)
12347     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12348     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12349     ac_shift=:
12350     ;;
12351   *)
12352     ac_option=$1
12353     ac_optarg=$2
12354     ac_shift=shift
12355     ;;
12356   esac
12357
12358   case $ac_option in
12359   # Handling of the options.
12360   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12361     ac_cs_recheck=: ;;
12362   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12363     $as_echo "$ac_cs_version"; exit ;;
12364   --debug | --debu | --deb | --de | --d | -d )
12365     debug=: ;;
12366   --file | --fil | --fi | --f )
12367     $ac_shift
12368     case $ac_optarg in
12369     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12370     esac
12371     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
12372     ac_need_defaults=false;;
12373   --header | --heade | --head | --hea )
12374     $ac_shift
12375     case $ac_optarg in
12376     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12377     esac
12378     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
12379     ac_need_defaults=false;;
12380   --he | --h)
12381     # Conflict between --help and --header
12382     { $as_echo "$as_me: error: ambiguous option: $1
12383 Try \`$0 --help' for more information." >&2
12384    { (exit 1); exit 1; }; };;
12385   --help | --hel | -h )
12386     $as_echo "$ac_cs_usage"; exit ;;
12387   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12388   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12389     ac_cs_silent=: ;;
12390
12391   # This is an error.
12392   -*) { $as_echo "$as_me: error: unrecognized option: $1
12393 Try \`$0 --help' for more information." >&2
12394    { (exit 1); exit 1; }; } ;;
12395
12396   *) ac_config_targets="$ac_config_targets $1"
12397      ac_need_defaults=false ;;
12398
12399   esac
12400   shift
12401 done
12402
12403 ac_configure_extra_args=
12404
12405 if $ac_cs_silent; then
12406   exec 6>/dev/null
12407   ac_configure_extra_args="$ac_configure_extra_args --silent"
12408 fi
12409
12410 _ACEOF
12411 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12412 if \$ac_cs_recheck; then
12413   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12414   shift
12415   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12416   CONFIG_SHELL='$SHELL'
12417   export CONFIG_SHELL
12418   exec "\$@"
12419 fi
12420
12421 _ACEOF
12422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12423 exec 5>>config.log
12424 {
12425   echo
12426   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12427 ## Running $as_me. ##
12428 _ASBOX
12429   $as_echo "$ac_log"
12430 } >&5
12431
12432 _ACEOF
12433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12434 _ACEOF
12435
12436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12437
12438 # Handling of arguments.
12439 for ac_config_target in $ac_config_targets
12440 do
12441   case $ac_config_target in
12442     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12443     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12444     "ircd/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/Makefile" ;;
12445     "ircd/test/Makefile") CONFIG_FILES="$CONFIG_FILES ircd/test/Makefile" ;;
12446     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12447     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12448
12449   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12450 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12451    { (exit 1); exit 1; }; };;
12452   esac
12453 done
12454
12455
12456 # If the user did not use the arguments to specify the items to instantiate,
12457 # then the envvar interface is used.  Set only those that are not.
12458 # We use the long form for the default assignment because of an extremely
12459 # bizarre bug on SunOS 4.1.3.
12460 if $ac_need_defaults; then
12461   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12462   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12463   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12464 fi
12465
12466 # Have a temporary directory for convenience.  Make it in the build tree
12467 # simply because there is no reason against having it here, and in addition,
12468 # creating and moving files from /tmp can sometimes cause problems.
12469 # Hook for its removal unless debugging.
12470 # Note that there is a small window in which the directory will not be cleaned:
12471 # after its creation but before its name has been assigned to `$tmp'.
12472 $debug ||
12473 {
12474   tmp=
12475   trap 'exit_status=$?
12476   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12477 ' 0
12478   trap '{ (exit 1); exit 1; }' 1 2 13 15
12479 }
12480 # Create a (secure) tmp directory for tmp files.
12481
12482 {
12483   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12484   test -n "$tmp" && test -d "$tmp"
12485 }  ||
12486 {
12487   tmp=./conf$$-$RANDOM
12488   (umask 077 && mkdir "$tmp")
12489 } ||
12490 {
12491    $as_echo "$as_me: cannot create a temporary directory in ." >&2
12492    { (exit 1); exit 1; }
12493 }
12494
12495 # Set up the scripts for CONFIG_FILES section.
12496 # No need to generate them if there are no CONFIG_FILES.
12497 # This happens for instance with `./config.status config.h'.
12498 if test -n "$CONFIG_FILES"; then
12499
12500
12501 ac_cr='\r'
12502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12504   ac_cs_awk_cr='\\r'
12505 else
12506   ac_cs_awk_cr=$ac_cr
12507 fi
12508
12509 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12510 _ACEOF
12511
12512
12513 {
12514   echo "cat >conf$$subs.awk <<_ACEOF" &&
12515   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12516   echo "_ACEOF"
12517 } >conf$$subs.sh ||
12518   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12519 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12520    { (exit 1); exit 1; }; }
12521 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12522 ac_delim='%!_!# '
12523 for ac_last_try in false false false false false :; do
12524   . ./conf$$subs.sh ||
12525     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12526 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12527    { (exit 1); exit 1; }; }
12528
12529   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12530   if test $ac_delim_n = $ac_delim_num; then
12531     break
12532   elif $ac_last_try; then
12533     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12534 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12535    { (exit 1); exit 1; }; }
12536   else
12537     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12538   fi
12539 done
12540 rm -f conf$$subs.sh
12541
12542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12543 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12544 _ACEOF
12545 sed -n '
12546 h
12547 s/^/S["/; s/!.*/"]=/
12548 p
12549 g
12550 s/^[^!]*!//
12551 :repl
12552 t repl
12553 s/'"$ac_delim"'$//
12554 t delim
12555 :nl
12556 h
12557 s/\(.\{148\}\).*/\1/
12558 t more1
12559 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12560 p
12561 n
12562 b repl
12563 :more1
12564 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12565 p
12566 g
12567 s/.\{148\}//
12568 t nl
12569 :delim
12570 h
12571 s/\(.\{148\}\).*/\1/
12572 t more2
12573 s/["\\]/\\&/g; s/^/"/; s/$/"/
12574 p
12575 b
12576 :more2
12577 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12578 p
12579 g
12580 s/.\{148\}//
12581 t delim
12582 ' <conf$$subs.awk | sed '
12583 /^[^""]/{
12584   N
12585   s/\n//
12586 }
12587 ' >>$CONFIG_STATUS || ac_write_fail=1
12588 rm -f conf$$subs.awk
12589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12590 _ACAWK
12591 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12592   for (key in S) S_is_set[key] = 1
12593   FS = "\a"
12594
12595 }
12596 {
12597   line = $ 0
12598   nfields = split(line, field, "@")
12599   substed = 0
12600   len = length(field[1])
12601   for (i = 2; i < nfields; i++) {
12602     key = field[i]
12603     keylen = length(key)
12604     if (S_is_set[key]) {
12605       value = S[key]
12606       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12607       len += length(value) + length(field[++i])
12608       substed = 1
12609     } else
12610       len += 1 + keylen
12611   }
12612
12613   print line
12614 }
12615
12616 _ACAWK
12617 _ACEOF
12618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12619 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12620   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12621 else
12622   cat
12623 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12624   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
12625 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
12626    { (exit 1); exit 1; }; }
12627 _ACEOF
12628
12629 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12630 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12631 # trailing colons and then remove the whole line if VPATH becomes empty
12632 # (actually we leave an empty line to preserve line numbers).
12633 if test "x$srcdir" = x.; then
12634   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12635 s/:*\$(srcdir):*/:/
12636 s/:*\${srcdir}:*/:/
12637 s/:*@srcdir@:*/:/
12638 s/^\([^=]*=[     ]*\):*/\1/
12639 s/:*$//
12640 s/^[^=]*=[       ]*$//
12641 }'
12642 fi
12643
12644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12645 fi # test -n "$CONFIG_FILES"
12646
12647 # Set up the scripts for CONFIG_HEADERS section.
12648 # No need to generate them if there are no CONFIG_HEADERS.
12649 # This happens for instance with `./config.status Makefile'.
12650 if test -n "$CONFIG_HEADERS"; then
12651 cat >"$tmp/defines.awk" <<\_ACAWK ||
12652 BEGIN {
12653 _ACEOF
12654
12655 # Transform confdefs.h into an awk script `defines.awk', embedded as
12656 # here-document in config.status, that substitutes the proper values into
12657 # config.h.in to produce config.h.
12658
12659 # Create a delimiter string that does not exist in confdefs.h, to ease
12660 # handling of long lines.
12661 ac_delim='%!_!# '
12662 for ac_last_try in false false :; do
12663   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12664   if test -z "$ac_t"; then
12665     break
12666   elif $ac_last_try; then
12667     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12668 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12669    { (exit 1); exit 1; }; }
12670   else
12671     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12672   fi
12673 done
12674
12675 # For the awk script, D is an array of macro values keyed by name,
12676 # likewise P contains macro parameters if any.  Preserve backslash
12677 # newline sequences.
12678
12679 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12680 sed -n '
12681 s/.\{148\}/&'"$ac_delim"'/g
12682 t rset
12683 :rset
12684 s/^[     ]*#[    ]*define[       ][      ]*/ /
12685 t def
12686 d
12687 :def
12688 s/\\$//
12689 t bsnl
12690 s/["\\]/\\&/g
12691 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12692 D["\1"]=" \3"/p
12693 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12694 d
12695 :bsnl
12696 s/["\\]/\\&/g
12697 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12698 D["\1"]=" \3\\\\\\n"\\/p
12699 t cont
12700 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12701 t cont
12702 d
12703 :cont
12704 n
12705 s/.\{148\}/&'"$ac_delim"'/g
12706 t clear
12707 :clear
12708 s/\\$//
12709 t bsnlc
12710 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12711 d
12712 :bsnlc
12713 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12714 b cont
12715 ' <confdefs.h | sed '
12716 s/'"$ac_delim"'/"\\\
12717 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12718
12719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12720   for (key in D) D_is_set[key] = 1
12721   FS = "\a"
12722 }
12723 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12724   line = \$ 0
12725   split(line, arg, " ")
12726   if (arg[1] == "#") {
12727     defundef = arg[2]
12728     mac1 = arg[3]
12729   } else {
12730     defundef = substr(arg[1], 2)
12731     mac1 = arg[2]
12732   }
12733   split(mac1, mac2, "(") #)
12734   macro = mac2[1]
12735   prefix = substr(line, 1, index(line, defundef) - 1)
12736   if (D_is_set[macro]) {
12737     # Preserve the white space surrounding the "#".
12738     print prefix "define", macro P[macro] D[macro]
12739     next
12740   } else {
12741     # Replace #undef with comments.  This is necessary, for example,
12742     # in the case of _POSIX_SOURCE, which is predefined and required
12743     # on some systems where configure will not decide to define it.
12744     if (defundef == "undef") {
12745       print "/*", prefix defundef, macro, "*/"
12746       next
12747     }
12748   }
12749 }
12750 { print }
12751 _ACAWK
12752 _ACEOF
12753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12755 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12756    { (exit 1); exit 1; }; }
12757 fi # test -n "$CONFIG_HEADERS"
12758
12759
12760 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
12761 shift
12762 for ac_tag
12763 do
12764   case $ac_tag in
12765   :[FHLC]) ac_mode=$ac_tag; continue;;
12766   esac
12767   case $ac_mode$ac_tag in
12768   :[FHL]*:*);;
12769   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
12770 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
12771    { (exit 1); exit 1; }; };;
12772   :[FH]-) ac_tag=-:-;;
12773   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12774   esac
12775   ac_save_IFS=$IFS
12776   IFS=:
12777   set x $ac_tag
12778   IFS=$ac_save_IFS
12779   shift
12780   ac_file=$1
12781   shift
12782
12783   case $ac_mode in
12784   :L) ac_source=$1;;
12785   :[FH])
12786     ac_file_inputs=
12787     for ac_f
12788     do
12789       case $ac_f in
12790       -) ac_f="$tmp/stdin";;
12791       *) # Look for the file first in the build tree, then in the source tree
12792          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12793          # because $ac_f cannot contain `:'.
12794          test -f "$ac_f" ||
12795            case $ac_f in
12796            [\\/$]*) false;;
12797            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12798            esac ||
12799            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12800 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12801    { (exit 1); exit 1; }; };;
12802       esac
12803       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12804       ac_file_inputs="$ac_file_inputs '$ac_f'"
12805     done
12806
12807     # Let's still pretend it is `configure' which instantiates (i.e., don't
12808     # use $as_me), people would be surprised to read:
12809     #    /* config.h.  Generated by config.status.  */
12810     configure_input='Generated from '`
12811           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12812         `' by configure.'
12813     if test x"$ac_file" != x-; then
12814       configure_input="$ac_file.  $configure_input"
12815       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12816 $as_echo "$as_me: creating $ac_file" >&6;}
12817     fi
12818     # Neutralize special characters interpreted by sed in replacement strings.
12819     case $configure_input in #(
12820     *\&* | *\|* | *\\* )
12821        ac_sed_conf_input=`$as_echo "$configure_input" |
12822        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12823     *) ac_sed_conf_input=$configure_input;;
12824     esac
12825
12826     case $ac_tag in
12827     *:-:* | *:-) cat >"$tmp/stdin" \
12828       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12829 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12830    { (exit 1); exit 1; }; } ;;
12831     esac
12832     ;;
12833   esac
12834
12835   ac_dir=`$as_dirname -- "$ac_file" ||
12836 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12837          X"$ac_file" : 'X\(//\)[^/]' \| \
12838          X"$ac_file" : 'X\(//\)$' \| \
12839          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12840 $as_echo X"$ac_file" |
12841     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12842             s//\1/
12843             q
12844           }
12845           /^X\(\/\/\)[^/].*/{
12846             s//\1/
12847             q
12848           }
12849           /^X\(\/\/\)$/{
12850             s//\1/
12851             q
12852           }
12853           /^X\(\/\).*/{
12854             s//\1/
12855             q
12856           }
12857           s/.*/./; q'`
12858   { as_dir="$ac_dir"
12859   case $as_dir in #(
12860   -*) as_dir=./$as_dir;;
12861   esac
12862   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12863     as_dirs=
12864     while :; do
12865       case $as_dir in #(
12866       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12867       *) as_qdir=$as_dir;;
12868       esac
12869       as_dirs="'$as_qdir' $as_dirs"
12870       as_dir=`$as_dirname -- "$as_dir" ||
12871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12872          X"$as_dir" : 'X\(//\)[^/]' \| \
12873          X"$as_dir" : 'X\(//\)$' \| \
12874          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12875 $as_echo X"$as_dir" |
12876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12877             s//\1/
12878             q
12879           }
12880           /^X\(\/\/\)[^/].*/{
12881             s//\1/
12882             q
12883           }
12884           /^X\(\/\/\)$/{
12885             s//\1/
12886             q
12887           }
12888           /^X\(\/\).*/{
12889             s//\1/
12890             q
12891           }
12892           s/.*/./; q'`
12893       test -d "$as_dir" && break
12894     done
12895     test -z "$as_dirs" || eval "mkdir $as_dirs"
12896   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12897 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12898    { (exit 1); exit 1; }; }; }
12899   ac_builddir=.
12900
12901 case "$ac_dir" in
12902 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12903 *)
12904   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12905   # A ".." for each directory in $ac_dir_suffix.
12906   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12907   case $ac_top_builddir_sub in
12908   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12909   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12910   esac ;;
12911 esac
12912 ac_abs_top_builddir=$ac_pwd
12913 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12914 # for backward compatibility:
12915 ac_top_builddir=$ac_top_build_prefix
12916
12917 case $srcdir in
12918   .)  # We are building in place.
12919     ac_srcdir=.
12920     ac_top_srcdir=$ac_top_builddir_sub
12921     ac_abs_top_srcdir=$ac_pwd ;;
12922   [\\/]* | ?:[\\/]* )  # Absolute name.
12923     ac_srcdir=$srcdir$ac_dir_suffix;
12924     ac_top_srcdir=$srcdir
12925     ac_abs_top_srcdir=$srcdir ;;
12926   *) # Relative name.
12927     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12928     ac_top_srcdir=$ac_top_build_prefix$srcdir
12929     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12930 esac
12931 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12932
12933
12934   case $ac_mode in
12935   :F)
12936   #
12937   # CONFIG_FILE
12938   #
12939
12940   case $INSTALL in
12941   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12942   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12943   esac
12944 _ACEOF
12945
12946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12947 # If the template does not know about datarootdir, expand it.
12948 # FIXME: This hack should be removed a few years after 2.60.
12949 ac_datarootdir_hack=; ac_datarootdir_seen=
12950
12951 ac_sed_dataroot='
12952 /datarootdir/ {
12953   p
12954   q
12955 }
12956 /@datadir@/p
12957 /@docdir@/p
12958 /@infodir@/p
12959 /@localedir@/p
12960 /@mandir@/p
12961 '
12962 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12963 *datarootdir*) ac_datarootdir_seen=yes;;
12964 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12965   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12966 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12967 _ACEOF
12968 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12969   ac_datarootdir_hack='
12970   s&@datadir@&$datadir&g
12971   s&@docdir@&$docdir&g
12972   s&@infodir@&$infodir&g
12973   s&@localedir@&$localedir&g
12974   s&@mandir@&$mandir&g
12975     s&\\\${datarootdir}&$datarootdir&g' ;;
12976 esac
12977 _ACEOF
12978
12979 # Neutralize VPATH when `$srcdir' = `.'.
12980 # Shell code in configure.ac might set extrasub.
12981 # FIXME: do we really want to maintain this feature?
12982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12983 ac_sed_extra="$ac_vpsub
12984 $extrasub
12985 _ACEOF
12986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12987 :t
12988 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12989 s|@configure_input@|$ac_sed_conf_input|;t t
12990 s&@top_builddir@&$ac_top_builddir_sub&;t t
12991 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12992 s&@srcdir@&$ac_srcdir&;t t
12993 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12994 s&@top_srcdir@&$ac_top_srcdir&;t t
12995 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12996 s&@builddir@&$ac_builddir&;t t
12997 s&@abs_builddir@&$ac_abs_builddir&;t t
12998 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12999 s&@INSTALL@&$ac_INSTALL&;t t
13000 $ac_datarootdir_hack
13001 "
13002 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13003   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13004 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13005    { (exit 1); exit 1; }; }
13006
13007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13008   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13009   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13010   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011 which seems to be undefined.  Please make sure it is defined." >&5
13012 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13013 which seems to be undefined.  Please make sure it is defined." >&2;}
13014
13015   rm -f "$tmp/stdin"
13016   case $ac_file in
13017   -) cat "$tmp/out" && rm -f "$tmp/out";;
13018   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13019   esac \
13020   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13021 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13022    { (exit 1); exit 1; }; }
13023  ;;
13024   :H)
13025   #
13026   # CONFIG_HEADER
13027   #
13028   if test x"$ac_file" != x-; then
13029     {
13030       $as_echo "/* $configure_input  */" \
13031       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13032     } >"$tmp/config.h" \
13033       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13034 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13035    { (exit 1); exit 1; }; }
13036     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13037       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13038 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13039     else
13040       rm -f "$ac_file"
13041       mv "$tmp/config.h" "$ac_file" \
13042         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13043 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13044    { (exit 1); exit 1; }; }
13045     fi
13046   else
13047     $as_echo "/* $configure_input  */" \
13048       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13049       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13050 $as_echo "$as_me: error: could not create -" >&2;}
13051    { (exit 1); exit 1; }; }
13052   fi
13053  ;;
13054
13055   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
13056 $as_echo "$as_me: executing $ac_file commands" >&6;}
13057  ;;
13058   esac
13059
13060
13061   case $ac_file$ac_mode in
13062     "default":C) echo timestamp > stamp-h ;;
13063
13064   esac
13065 done # for ac_tag
13066
13067
13068 { (exit 0); exit 0; }
13069 _ACEOF
13070 chmod +x $CONFIG_STATUS
13071 ac_clean_files=$ac_clean_files_save
13072
13073 test $ac_write_fail = 0 ||
13074   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13075 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13076    { (exit 1); exit 1; }; }
13077
13078
13079 # configure is writing to config.log, and then calls config.status.
13080 # config.status does its own redirection, appending to config.log.
13081 # Unfortunately, on DOS this fails, as config.log is still kept open
13082 # by configure, so config.status won't be able to write to it; its
13083 # output is simply discarded.  So we exec the FD to /dev/null,
13084 # effectively closing config.log, so it can be properly (re)opened and
13085 # appended to by config.status.  When coming back to configure, we
13086 # need to make the FD available again.
13087 if test "$no_create" != yes; then
13088   ac_cs_success=:
13089   ac_config_status_args=
13090   test "$silent" = yes &&
13091     ac_config_status_args="$ac_config_status_args --quiet"
13092   exec 5>/dev/null
13093   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13094   exec 5>>config.log
13095   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13096   # would make configure fail if this is the last instruction.
13097   $ac_cs_success || { (exit 1); exit 1; }
13098 fi
13099 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13100   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13101 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13102 fi
13103
13104
13105 ac_config_commands="$ac_config_commands default-1"
13106