]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
a3816265f53d8e400b051952e0c7f1c6586c56ea
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="src/version.h"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 BUILD_DIR
639 TOP_DIR
640 TRUEPRG
641 FALSEPRG
642 VERSION
643 DATE
644 LSMDATE
645 CC
646 CFLAGS
647 LDFLAGS
648 CPPFLAGS
649 ac_ct_CC
650 EXEEXT
651 OBJEXT
652 CXX
653 CXXFLAGS
654 ac_ct_CXX
655 CPP
656 GREP
657 EGREP
658 INSTALL_PROGRAM
659 INSTALL_SCRIPT
660 INSTALL_DATA
661 RANLIB
662 MV
663 RM
664 CP
665 SED
666 ECHO
667 CMP
668 TBL
669 AR
670 OPENSSL
671 MTX
672 DD
673 MKISOFS
674 PYTHON
675 GROWISOFS
676 DVDRWMEDIAINFO
677 DVDRWFORMAT
678 PKGCONFIG
679 WXCONFIG
680 WXFLAGS
681 CDRECORD
682 PIDOF
683 AWK
684 ARFLAGS
685 MAKE_SHELL
686 LOCAL_LIBS
687 LOCAL_CFLAGS
688 LOCAL_LDFLAGS
689 LOCAL_DEFS
690 build
691 build_cpu
692 build_vendor
693 build_os
694 host
695 host_cpu
696 host_vendor
697 host_os
698 HAVE_SUN_OS_TRUE
699 HAVE_SUN_OS_FALSE
700 HAVE_OSF1_OS_TRUE
701 HAVE_OSF1_OS_FALSE
702 HAVE_AIX_OS_TRUE
703 HAVE_AIX_OS_FALSE
704 HAVE_HPUX_OS_TRUE
705 HAVE_HPUX_OS_FALSE
706 HAVE_LINUX_OS_TRUE
707 HAVE_LINUX_OS_FALSE
708 HAVE_FREEBSD_OS_TRUE
709 HAVE_FREEBSD_OS_FALSE
710 HAVE_NETBSD_OS_TRUE
711 HAVE_NETBSD_OS_FALSE
712 HAVE_OPENBSD_OS_TRUE
713 HAVE_OPENBSD_OS_FALSE
714 HAVE_BSDI_OS_TRUE
715 HAVE_BSDI_OS_FALSE
716 HAVE_SGI_OS_TRUE
717 HAVE_SGI_OS_FALSE
718 HAVE_IRIX_OS_TRUE
719 HAVE_IRIX_OS_FALSE
720 HAVE_DARWIN_OS_TRUE
721 HAVE_DARWIN_OS_FALSE
722 SET_MAKE
723 MKINSTALLDIRS
724 USE_NLS
725 MSGFMT
726 GMSGFMT
727 XGETTEXT
728 MSGMERGE
729 INTL_MACOSX_LIBS
730 LIBICONV
731 LTLIBICONV
732 INTLLIBS
733 LIBINTL
734 LTLIBINTL
735 POSUB
736 GLIBC2
737 ALLOCA
738 GLIBC21
739 HAVE_POSIX_PRINTF
740 HAVE_ASPRINTF
741 HAVE_SNPRINTF
742 HAVE_WPRINTF
743 INTLBISON
744 BUILD_INCLUDED_LIBINTL
745 USE_INCLUDED_LIBINTL
746 CATOBJEXT
747 DATADIRNAME
748 INSTOBJEXT
749 GENCAT
750 INTLOBJS
751 INTL_LIBTOOL_SUFFIX_PREFIX
752 GNOME_INCLUDEDIR
753 GNOMEUI_LIBS
754 GNOME_LIBDIR
755 GNOME_LIBS
756 GNOME_DIR
757 WXCONS_CPPFLAGS
758 WXCONS_LDFLAGS
759 WX_DIR
760 TRAY_MONITOR_CPPFLAGS
761 TRAY_MONITOR_LDFLAGS
762 TRAY_MONITOR_DIR
763 TTOOL_LDFLAGS
764 STATIC_FD
765 STATIC_SD
766 STATIC_DIR
767 STATIC_CONS
768 STATIC_GNOME_CONS
769 STATIC_WX_CONS
770 ALL_DIRS
771 DIRD_DIR
772 DIR_TOOLS
773 STORED_DIR
774 CONS_INC
775 CONS_OBJ
776 CONS_SRC
777 CONS_LIBS
778 CONS_LDFLAGS
779 READLINE_SRC
780 PYTHON_LIBS
781 PYTHON_INCDIR
782 OPENSSL_LIBS
783 OPENSSL_INC
784 working_dir
785 scriptdir
786 dump_email
787 job_email
788 smtp_host
789 piddir
790 subsysdir
791 baseport
792 dir_port
793 fd_port
794 sd_port
795 dir_password
796 fd_password
797 sd_password
798 mon_dir_password
799 mon_fd_password
800 mon_sd_password
801 dir_user
802 dir_group
803 sd_user
804 sd_group
805 fd_user
806 fd_group
807 SBINPERM
808 SQL_LFLAGS
809 SQL_INCLUDE
810 SQL_BINDIR
811 cats
812 DB_NAME
813 GETCONF
814 XMKMF
815 X_CFLAGS
816 X_PRE_LIBS
817 X_LIBS
818 X_EXTRA_LIBS
819 LIBOBJS
820 FDLIBS
821 DEBUG
822 DINCLUDE
823 DLIB
824 DB_LIBS
825 WCFLAGS
826 WLDFLAGS
827 WRAPLIBS
828 OBJLIST
829 hostname
830 TAPEDRIVE
831 PSCMD
832 WIN32
833 MACOSX
834 DISTNAME
835 DISTVER
836 LTLIBOBJS'
837 ac_subst_files='MCOMMON'
838       ac_precious_vars='build_alias
839 host_alias
840 target_alias
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 CXX
846 CXXFLAGS
847 CCC
848 CPP
849 WXCONFIG
850 WXFLAGS
851 XMKMF'
852
853
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904   # If the previous option needs an argument, assign it.
905   if test -n "$ac_prev"; then
906     eval $ac_prev=\$ac_option
907     ac_prev=
908     continue
909   fi
910
911   case $ac_option in
912   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913   *)    ac_optarg=yes ;;
914   esac
915
916   # Accept the important Cygnus configure options, so we can diagnose typos.
917
918   case $ac_dashdash$ac_option in
919   --)
920     ac_dashdash=yes ;;
921
922   -bindir | --bindir | --bindi | --bind | --bin | --bi)
923     ac_prev=bindir ;;
924   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925     bindir=$ac_optarg ;;
926
927   -build | --build | --buil | --bui | --bu)
928     ac_prev=build_alias ;;
929   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930     build_alias=$ac_optarg ;;
931
932   -cache-file | --cache-file | --cache-fil | --cache-fi \
933   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934     ac_prev=cache_file ;;
935   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937     cache_file=$ac_optarg ;;
938
939   --config-cache | -C)
940     cache_file=config.cache ;;
941
942   -datadir | --datadir | --datadi | --datad)
943     ac_prev=datadir ;;
944   -datadir=* | --datadir=* | --datadi=* | --datad=*)
945     datadir=$ac_optarg ;;
946
947   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948   | --dataroo | --dataro | --datar)
949     ac_prev=datarootdir ;;
950   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952     datarootdir=$ac_optarg ;;
953
954   -disable-* | --disable-*)
955     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956     # Reject names that are not valid shell variable names.
957     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959    { (exit 1); exit 1; }; }
960     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961     eval enable_$ac_feature=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978    { (exit 1); exit 1; }; }
979     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980     eval enable_$ac_feature=\$ac_optarg ;;
981
982   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984   | --exec | --exe | --ex)
985     ac_prev=exec_prefix ;;
986   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988   | --exec=* | --exe=* | --ex=*)
989     exec_prefix=$ac_optarg ;;
990
991   -gas | --gas | --ga | --g)
992     # Obsolete; use --with-gas.
993     with_gas=yes ;;
994
995   -help | --help | --hel | --he | -h)
996     ac_init_help=long ;;
997   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998     ac_init_help=recursive ;;
999   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000     ac_init_help=short ;;
1001
1002   -host | --host | --hos | --ho)
1003     ac_prev=host_alias ;;
1004   -host=* | --host=* | --hos=* | --ho=*)
1005     host_alias=$ac_optarg ;;
1006
1007   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008     ac_prev=htmldir ;;
1009   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010   | --ht=*)
1011     htmldir=$ac_optarg ;;
1012
1013   -includedir | --includedir | --includedi | --included | --include \
1014   | --includ | --inclu | --incl | --inc)
1015     ac_prev=includedir ;;
1016   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017   | --includ=* | --inclu=* | --incl=* | --inc=*)
1018     includedir=$ac_optarg ;;
1019
1020   -infodir | --infodir | --infodi | --infod | --info | --inf)
1021     ac_prev=infodir ;;
1022   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023     infodir=$ac_optarg ;;
1024
1025   -libdir | --libdir | --libdi | --libd)
1026     ac_prev=libdir ;;
1027   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028     libdir=$ac_optarg ;;
1029
1030   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031   | --libexe | --libex | --libe)
1032     ac_prev=libexecdir ;;
1033   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034   | --libexe=* | --libex=* | --libe=*)
1035     libexecdir=$ac_optarg ;;
1036
1037   -localedir | --localedir | --localedi | --localed | --locale)
1038     ac_prev=localedir ;;
1039   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040     localedir=$ac_optarg ;;
1041
1042   -localstatedir | --localstatedir | --localstatedi | --localstated \
1043   | --localstate | --localstat | --localsta | --localst | --locals)
1044     ac_prev=localstatedir ;;
1045   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047     localstatedir=$ac_optarg ;;
1048
1049   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050     ac_prev=mandir ;;
1051   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052     mandir=$ac_optarg ;;
1053
1054   -nfp | --nfp | --nf)
1055     # Obsolete; use --without-fp.
1056     with_fp=no ;;
1057
1058   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059   | --no-cr | --no-c | -n)
1060     no_create=yes ;;
1061
1062   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064     no_recursion=yes ;;
1065
1066   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068   | --oldin | --oldi | --old | --ol | --o)
1069     ac_prev=oldincludedir ;;
1070   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073     oldincludedir=$ac_optarg ;;
1074
1075   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076     ac_prev=prefix ;;
1077   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078     prefix=$ac_optarg ;;
1079
1080   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081   | --program-pre | --program-pr | --program-p)
1082     ac_prev=program_prefix ;;
1083   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085     program_prefix=$ac_optarg ;;
1086
1087   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088   | --program-suf | --program-su | --program-s)
1089     ac_prev=program_suffix ;;
1090   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092     program_suffix=$ac_optarg ;;
1093
1094   -program-transform-name | --program-transform-name \
1095   | --program-transform-nam | --program-transform-na \
1096   | --program-transform-n | --program-transform- \
1097   | --program-transform | --program-transfor \
1098   | --program-transfo | --program-transf \
1099   | --program-trans | --program-tran \
1100   | --progr-tra | --program-tr | --program-t)
1101     ac_prev=program_transform_name ;;
1102   -program-transform-name=* | --program-transform-name=* \
1103   | --program-transform-nam=* | --program-transform-na=* \
1104   | --program-transform-n=* | --program-transform-=* \
1105   | --program-transform=* | --program-transfor=* \
1106   | --program-transfo=* | --program-transf=* \
1107   | --program-trans=* | --program-tran=* \
1108   | --progr-tra=* | --program-tr=* | --program-t=*)
1109     program_transform_name=$ac_optarg ;;
1110
1111   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112     ac_prev=pdfdir ;;
1113   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114     pdfdir=$ac_optarg ;;
1115
1116   -psdir | --psdir | --psdi | --psd | --ps)
1117     ac_prev=psdir ;;
1118   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119     psdir=$ac_optarg ;;
1120
1121   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122   | -silent | --silent | --silen | --sile | --sil)
1123     silent=yes ;;
1124
1125   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126     ac_prev=sbindir ;;
1127   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128   | --sbi=* | --sb=*)
1129     sbindir=$ac_optarg ;;
1130
1131   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133   | --sharedst | --shareds | --shared | --share | --shar \
1134   | --sha | --sh)
1135     ac_prev=sharedstatedir ;;
1136   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139   | --sha=* | --sh=*)
1140     sharedstatedir=$ac_optarg ;;
1141
1142   -site | --site | --sit)
1143     ac_prev=site ;;
1144   -site=* | --site=* | --sit=*)
1145     site=$ac_optarg ;;
1146
1147   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148     ac_prev=srcdir ;;
1149   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150     srcdir=$ac_optarg ;;
1151
1152   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153   | --syscon | --sysco | --sysc | --sys | --sy)
1154     ac_prev=sysconfdir ;;
1155   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157     sysconfdir=$ac_optarg ;;
1158
1159   -target | --target | --targe | --targ | --tar | --ta | --t)
1160     ac_prev=target_alias ;;
1161   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162     target_alias=$ac_optarg ;;
1163
1164   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165     verbose=yes ;;
1166
1167   -version | --version | --versio | --versi | --vers | -V)
1168     ac_init_version=: ;;
1169
1170   -with-* | --with-*)
1171     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172     # Reject names that are not valid shell variable names.
1173     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1174       { echo "$as_me: error: invalid package name: $ac_package" >&2
1175    { (exit 1); exit 1; }; }
1176     ac_package=`echo $ac_package| sed 's/-/_/g'`
1177     eval with_$ac_package=\$ac_optarg ;;
1178
1179   -without-* | --without-*)
1180     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid package name: $ac_package" >&2
1184    { (exit 1); exit 1; }; }
1185     ac_package=`echo $ac_package | sed 's/-/_/g'`
1186     eval with_$ac_package=no ;;
1187
1188   --x)
1189     # Obsolete; use --with-x.
1190     with_x=yes ;;
1191
1192   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193   | --x-incl | --x-inc | --x-in | --x-i)
1194     ac_prev=x_includes ;;
1195   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197     x_includes=$ac_optarg ;;
1198
1199   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201     ac_prev=x_libraries ;;
1202   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204     x_libraries=$ac_optarg ;;
1205
1206   -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208    { (exit 1); exit 1; }; }
1209     ;;
1210
1211   *=*)
1212     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213     # Reject names that are not valid shell variable names.
1214     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216    { (exit 1); exit 1; }; }
1217     eval $ac_envvar=\$ac_optarg
1218     export $ac_envvar ;;
1219
1220   *)
1221     # FIXME: should be removed in autoconf 3.0.
1222     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1226     ;;
1227
1228   esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233   { echo "$as_me: error: missing argument to $ac_option" >&2
1234    { (exit 1); exit 1; }; }
1235 fi
1236
1237 # Be sure to have absolute directory names.
1238 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239                 datadir sysconfdir sharedstatedir localstatedir includedir \
1240                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241                 libdir localedir mandir
1242 do
1243   eval ac_val=\$$ac_var
1244   case $ac_val in
1245     [\\/$]* | ?:[\\/]* )  continue;;
1246     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247   esac
1248   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249    { (exit 1); exit 1; }; }
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   { echo "$as_me: error: Working directory cannot be determined" >&2
1280    { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282   { echo "$as_me: error: pwd does not report name of working directory" >&2
1283    { (exit 1); exit 1; }; }
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288   ac_srcdir_defaulted=yes
1289   # Try the directory containing this script, then the parent directory.
1290   ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292          X"$0" : 'X\(//\)[^/]' \| \
1293          X"$0" : 'X\(//\)$' \| \
1294          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1295 echo X"$0" |
1296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297             s//\1/
1298             q
1299           }
1300           /^X\(\/\/\)[^/].*/{
1301             s//\1/
1302             q
1303           }
1304           /^X\(\/\/\)$/{
1305             s//\1/
1306             q
1307           }
1308           /^X\(\/\).*/{
1309             s//\1/
1310             q
1311           }
1312           s/.*/./; q'`
1313   srcdir=$ac_confdir
1314   if test ! -r "$srcdir/$ac_unique_file"; then
1315     srcdir=..
1316   fi
1317 else
1318   ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323    { (exit 1); exit 1; }; }
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328    { (exit 1); exit 1; }; }
1329         pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332   srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342   eval ac_env_${ac_var}_value=\$${ac_var}
1343   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351   # Omit some internal or obsolete options to make the list less imposing.
1352   # This message is too long to be a string in the A/UX 3.1 sh.
1353   cat <<_ACEOF
1354 \`configure' configures this package to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE.  See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364   -h, --help              display this help and exit
1365       --help=short        display options specific to this package
1366       --help=recursive    display the short help of all the included packages
1367   -V, --version           display version information and exit
1368   -q, --quiet, --silent   do not print \`checking...' messages
1369       --cache-file=FILE   cache test results in FILE [disabled]
1370   -C, --config-cache      alias for \`--cache-file=config.cache'
1371   -n, --no-create         do not create output files
1372       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1373
1374 Installation directories:
1375   --prefix=PREFIX         install architecture-independent files in PREFIX
1376                           [$ac_default_prefix]
1377   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1378                           [PREFIX]
1379
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388   --bindir=DIR           user executables [EPREFIX/bin]
1389   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1390   --libexecdir=DIR       program executables [EPREFIX/libexec]
1391   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1392   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1393   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1394   --libdir=DIR           object code libraries [EPREFIX/lib]
1395   --includedir=DIR       C header files [PREFIX/include]
1396   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1397   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1398   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1399   --infodir=DIR          info documentation [DATAROOTDIR/info]
1400   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1401   --mandir=DIR           man documentation [DATAROOTDIR/man]
1402   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1403   --htmldir=DIR          html documentation [DOCDIR]
1404   --dvidir=DIR           dvi documentation [DOCDIR]
1405   --pdfdir=DIR           pdf documentation [DOCDIR]
1406   --psdir=DIR            ps documentation [DOCDIR]
1407 _ACEOF
1408
1409   cat <<\_ACEOF
1410
1411 X features:
1412   --x-includes=DIR    X include files are in DIR
1413   --x-libraries=DIR   X library files are in DIR
1414
1415 System types:
1416   --build=BUILD     configure for building on BUILD [guessed]
1417   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1427   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1428   --disable-nls           do not use Native Language Support
1429   --disable-rpath         do not hardcode runtime library paths
1430   --enable-gnome          enable build of gnome-console GUI disabled
1431   --enable-wx-console     enable build of wxWidgets console disabled
1432   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1433   --enable-smartalloc     enable smartalloc debugging support disabled
1434   --enable-static-tools   enable static tape tools disabled
1435   --enable-static-fd      enable static File daemon disabled
1436   --enable-static-sd      enable static Storage daemon disabled
1437   --enable-static-dir     enable static Director disabled
1438   --enable-static-cons    enable static Console disabled
1439   --enable-client-only    build client (File daemon) only disabled
1440   --enable-build-dird     enable building of dird (Director) enabled
1441   --enable-build-stored   enable building of stored (Storage daemon) enabled
1442  --disable-conio disable conio support enabled
1443
1444   --enable-ipv6             enable ipv6 support enabled
1445
1446   --disable-readline      disable readline support disable
1447
1448   --disable-largefile     omit support for large files
1449
1450 Optional Packages:
1451   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1452   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1453   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1454   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1455   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1456   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1457   --without-libintl-prefix     don't search for libintl in includedir and libdir
1458   --with-included-gettext use the GNU gettext library included here
1459  --with-readline[=DIR]         specify readline library directory
1460
1461   --with-python[=DIR]   Include Python support.  DIR is the Python base
1462                           install directory, default is to search through
1463                           a number of common places for the Python files.
1464   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1465   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1466   --with-working-dir=PATH        specify path of Bacula working directory
1467   --with-scriptdir=PATH    specify path of Bacula scripts directory
1468   --with-dump-email=EMAIL        dump email address
1469   --with-job-email=EMAIL         job output email address
1470   --with-smtp-host=HOST          SMTP mail host address
1471   --with-pid-dir=PATH            specify location of Bacula pid files
1472   --with-subsys-dir=PATH         specify location of Bacula subsys file
1473   --with-baseport=PORT           specify base port address for daemons
1474   --with-dir-password=PASSWORD   specify Director's password
1475   --with-fd-password=PASSWORD    specify Client's password
1476   --with-sd-password=PASSWORD    specify Storage daemon's password
1477   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1478   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1479   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1480   --with-dir-user=USER           specify user for Director daemon
1481   --with-dir-group=GROUP                 specify group for Director daemon
1482   --with-sd-user=USER            specify user for Storage daemon
1483   --with-sd-group=GROUP          specify group for Storage daemon
1484   --with-fd-user=USER            specify user for File daemon
1485   --with-fd-group=GROUP          specify group for File daemon
1486   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1487   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1488                           base install directory, defaults to /usr/local/pgsql
1489
1490   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1491                           install directory, default is to search through
1492                           a number of common places for the MySQL files.
1493
1494   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1495                           install directory, default is to search through
1496                           a number of common places for the MySQL files.
1497
1498   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1499                           install directory, default is to search through
1500                           a number of common places for the SQLite3 files.
1501
1502   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1503                           install directory, default is to search through
1504                           a number of common places for the SQLite files.
1505   --with-x                use the X Window System
1506
1507 Some influential environment variables:
1508   CC          C compiler command
1509   CFLAGS      C compiler flags
1510   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1511               nonstandard directory <lib dir>
1512   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513               you have headers in a nonstandard directory <include dir>
1514   CXX         C++ compiler command
1515   CXXFLAGS    C++ compiler flags
1516   CPP         C preprocessor
1517   WXCONFIG    wx-config command. On some systems, you must set it to
1518               wx-config-2.6 to use wxWidgets 2.6.
1519   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1520   XMKMF       Path to xmkmf, Makefile generator for X Window System
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 _ACEOF
1526 ac_status=$?
1527 fi
1528
1529 if test "$ac_init_help" = "recursive"; then
1530   # If there are subdirs, report their specific --help.
1531   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1532     test -d "$ac_dir" || continue
1533     ac_builddir=.
1534
1535 case "$ac_dir" in
1536 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *)
1538   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1539   # A ".." for each directory in $ac_dir_suffix.
1540   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1541   case $ac_top_builddir_sub in
1542   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1544   esac ;;
1545 esac
1546 ac_abs_top_builddir=$ac_pwd
1547 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1548 # for backward compatibility:
1549 ac_top_builddir=$ac_top_build_prefix
1550
1551 case $srcdir in
1552   .)  # We are building in place.
1553     ac_srcdir=.
1554     ac_top_srcdir=$ac_top_builddir_sub
1555     ac_abs_top_srcdir=$ac_pwd ;;
1556   [\\/]* | ?:[\\/]* )  # Absolute name.
1557     ac_srcdir=$srcdir$ac_dir_suffix;
1558     ac_top_srcdir=$srcdir
1559     ac_abs_top_srcdir=$srcdir ;;
1560   *) # Relative name.
1561     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1562     ac_top_srcdir=$ac_top_build_prefix$srcdir
1563     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 esac
1565 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566
1567     cd "$ac_dir" || { ac_status=$?; continue; }
1568     # Check for guested configure.
1569     if test -f "$ac_srcdir/configure.gnu"; then
1570       echo &&
1571       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1572     elif test -f "$ac_srcdir/configure"; then
1573       echo &&
1574       $SHELL "$ac_srcdir/configure" --help=recursive
1575     else
1576       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577     fi || ac_status=$?
1578     cd "$ac_pwd" || { ac_status=$?; break; }
1579   done
1580 fi
1581
1582 test -n "$ac_init_help" && exit $ac_status
1583 if $ac_init_version; then
1584   cat <<\_ACEOF
1585 configure
1586 generated by GNU Autoconf 2.60
1587
1588 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1589 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1590 This configure script is free software; the Free Software Foundation
1591 gives unlimited permission to copy, distribute and modify it.
1592 _ACEOF
1593   exit
1594 fi
1595 cat >config.log <<_ACEOF
1596 This file contains any messages produced by compilers while
1597 running configure, to aid debugging if configure makes a mistake.
1598
1599 It was created by $as_me, which was
1600 generated by GNU Autoconf 2.60.  Invocation command line was
1601
1602   $ $0 $@
1603
1604 _ACEOF
1605 exec 5>>config.log
1606 {
1607 cat <<_ASUNAME
1608 ## --------- ##
1609 ## Platform. ##
1610 ## --------- ##
1611
1612 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1613 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1614 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1615 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1616 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1617
1618 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1619 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1620
1621 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1622 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1623 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1624 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1625 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1626 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1627 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1628
1629 _ASUNAME
1630
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632 for as_dir in $PATH
1633 do
1634   IFS=$as_save_IFS
1635   test -z "$as_dir" && as_dir=.
1636   echo "PATH: $as_dir"
1637 done
1638 IFS=$as_save_IFS
1639
1640 } >&5
1641
1642 cat >&5 <<_ACEOF
1643
1644
1645 ## ----------- ##
1646 ## Core tests. ##
1647 ## ----------- ##
1648
1649 _ACEOF
1650
1651
1652 # Keep a trace of the command line.
1653 # Strip out --no-create and --no-recursion so they do not pile up.
1654 # Strip out --silent because we don't want to record it for future runs.
1655 # Also quote any args containing shell meta-characters.
1656 # Make two passes to allow for proper duplicate-argument suppression.
1657 ac_configure_args=
1658 ac_configure_args0=
1659 ac_configure_args1=
1660 ac_must_keep_next=false
1661 for ac_pass in 1 2
1662 do
1663   for ac_arg
1664   do
1665     case $ac_arg in
1666     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1667     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1668     | -silent | --silent | --silen | --sile | --sil)
1669       continue ;;
1670     *\'*)
1671       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1672     esac
1673     case $ac_pass in
1674     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1675     2)
1676       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1677       if test $ac_must_keep_next = true; then
1678         ac_must_keep_next=false # Got value, back to normal.
1679       else
1680         case $ac_arg in
1681           *=* | --config-cache | -C | -disable-* | --disable-* \
1682           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1683           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1684           | -with-* | --with-* | -without-* | --without-* | --x)
1685             case "$ac_configure_args0 " in
1686               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1687             esac
1688             ;;
1689           -* ) ac_must_keep_next=true ;;
1690         esac
1691       fi
1692       ac_configure_args="$ac_configure_args '$ac_arg'"
1693       ;;
1694     esac
1695   done
1696 done
1697 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1698 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1699
1700 # When interrupted or exit'd, cleanup temporary files, and complete
1701 # config.log.  We remove comments because anyway the quotes in there
1702 # would cause problems or look ugly.
1703 # WARNING: Use '\'' to represent an apostrophe within the trap.
1704 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1705 trap 'exit_status=$?
1706   # Save into config.log some information that might help in debugging.
1707   {
1708     echo
1709
1710     cat <<\_ASBOX
1711 ## ---------------- ##
1712 ## Cache variables. ##
1713 ## ---------------- ##
1714 _ASBOX
1715     echo
1716     # The following way of writing the cache mishandles newlines in values,
1717 (
1718   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1719     eval ac_val=\$$ac_var
1720     case $ac_val in #(
1721     *${as_nl}*)
1722       case $ac_var in #(
1723       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1724 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1725       esac
1726       case $ac_var in #(
1727       _ | IFS | as_nl) ;; #(
1728       *) $as_unset $ac_var ;;
1729       esac ;;
1730     esac
1731   done
1732   (set) 2>&1 |
1733     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1734     *${as_nl}ac_space=\ *)
1735       sed -n \
1736         "s/'\''/'\''\\\\'\'''\''/g;
1737           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1738       ;; #(
1739     *)
1740       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1741       ;;
1742     esac |
1743     sort
1744 )
1745     echo
1746
1747     cat <<\_ASBOX
1748 ## ----------------- ##
1749 ## Output variables. ##
1750 ## ----------------- ##
1751 _ASBOX
1752     echo
1753     for ac_var in $ac_subst_vars
1754     do
1755       eval ac_val=\$$ac_var
1756       case $ac_val in
1757       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758       esac
1759       echo "$ac_var='\''$ac_val'\''"
1760     done | sort
1761     echo
1762
1763     if test -n "$ac_subst_files"; then
1764       cat <<\_ASBOX
1765 ## ------------------- ##
1766 ## File substitutions. ##
1767 ## ------------------- ##
1768 _ASBOX
1769       echo
1770       for ac_var in $ac_subst_files
1771       do
1772         eval ac_val=\$$ac_var
1773         case $ac_val in
1774         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775         esac
1776         echo "$ac_var='\''$ac_val'\''"
1777       done | sort
1778       echo
1779     fi
1780
1781     if test -s confdefs.h; then
1782       cat <<\_ASBOX
1783 ## ----------- ##
1784 ## confdefs.h. ##
1785 ## ----------- ##
1786 _ASBOX
1787       echo
1788       cat confdefs.h
1789       echo
1790     fi
1791     test "$ac_signal" != 0 &&
1792       echo "$as_me: caught signal $ac_signal"
1793     echo "$as_me: exit $exit_status"
1794   } >&5
1795   rm -f core *.core core.conftest.* &&
1796     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1797     exit $exit_status
1798 ' 0
1799 for ac_signal in 1 2 13 15; do
1800   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1801 done
1802 ac_signal=0
1803
1804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1805 rm -f -r conftest* confdefs.h
1806
1807 # Predefined preprocessor variables.
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_NAME "$PACKAGE_NAME"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1816 _ACEOF
1817
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_STRING "$PACKAGE_STRING"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1831 _ACEOF
1832
1833
1834 # Let the site file select an alternate cache file if it wants to.
1835 # Prefer explicitly selected file to automatically selected ones.
1836 if test -n "$CONFIG_SITE"; then
1837   set x "$CONFIG_SITE"
1838 elif test "x$prefix" != xNONE; then
1839   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1840 else
1841   set x "$ac_default_prefix/share/config.site" \
1842         "$ac_default_prefix/etc/config.site"
1843 fi
1844 shift
1845 for ac_site_file
1846 do
1847   if test -r "$ac_site_file"; then
1848     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1849 echo "$as_me: loading site script $ac_site_file" >&6;}
1850     sed 's/^/| /' "$ac_site_file" >&5
1851     . "$ac_site_file"
1852   fi
1853 done
1854
1855 if test -r "$cache_file"; then
1856   # Some versions of bash will fail to source /dev/null (special
1857   # files actually), so we avoid doing that.
1858   if test -f "$cache_file"; then
1859     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1860 echo "$as_me: loading cache $cache_file" >&6;}
1861     case $cache_file in
1862       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1863       *)                      . "./$cache_file";;
1864     esac
1865   fi
1866 else
1867   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1868 echo "$as_me: creating cache $cache_file" >&6;}
1869   >$cache_file
1870 fi
1871
1872 # Check that the precious variables saved in the cache have kept the same
1873 # value.
1874 ac_cache_corrupted=false
1875 for ac_var in $ac_precious_vars; do
1876   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1877   eval ac_new_set=\$ac_env_${ac_var}_set
1878   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1879   eval ac_new_val=\$ac_env_${ac_var}_value
1880   case $ac_old_set,$ac_new_set in
1881     set,)
1882       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1883 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1884       ac_cache_corrupted=: ;;
1885     ,set)
1886       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1887 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1888       ac_cache_corrupted=: ;;
1889     ,);;
1890     *)
1891       if test "x$ac_old_val" != "x$ac_new_val"; then
1892         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1893 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1894         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1895 echo "$as_me:   former value:  $ac_old_val" >&2;}
1896         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1897 echo "$as_me:   current value: $ac_new_val" >&2;}
1898         ac_cache_corrupted=:
1899       fi;;
1900   esac
1901   # Pass precious variables to config.status.
1902   if test "$ac_new_set" = set; then
1903     case $ac_new_val in
1904     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1905     *) ac_arg=$ac_var=$ac_new_val ;;
1906     esac
1907     case " $ac_configure_args " in
1908       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1909       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1910     esac
1911   fi
1912 done
1913 if $ac_cache_corrupted; then
1914   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1915 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1916   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1917 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1918    { (exit 1); exit 1; }; }
1919 fi
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937 ac_ext=c
1938 ac_cpp='$CPP $CPPFLAGS'
1939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1942
1943
1944 BUILD_DIR=`pwd`
1945 cd ..
1946 TOP_DIR=`pwd`
1947 cd ${BUILD_DIR}
1948
1949
1950 ac_aux_dir=
1951 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1952   if test -f "$ac_dir/install-sh"; then
1953     ac_aux_dir=$ac_dir
1954     ac_install_sh="$ac_aux_dir/install-sh -c"
1955     break
1956   elif test -f "$ac_dir/install.sh"; then
1957     ac_aux_dir=$ac_dir
1958     ac_install_sh="$ac_aux_dir/install.sh -c"
1959     break
1960   elif test -f "$ac_dir/shtool"; then
1961     ac_aux_dir=$ac_dir
1962     ac_install_sh="$ac_aux_dir/shtool install -c"
1963     break
1964   fi
1965 done
1966 if test -z "$ac_aux_dir"; then
1967   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1968 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1969    { (exit 1); exit 1; }; }
1970 fi
1971
1972 # These three variables are undocumented and unsupported,
1973 # and are intended to be withdrawn in a future Autoconf release.
1974 # They can cause serious problems if a builder's source tree is in a directory
1975 # whose full name contains unusual characters.
1976 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1977 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1978 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1979
1980
1981 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1982
1983
1984
1985
1986
1987 for ac_prog in true
1988 do
1989   # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1993 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1994   echo $ECHO_N "(cached) $ECHO_C" >&6
1995 else
1996   case $TRUEPRG in
1997   [\\/]* | ?:[\\/]*)
1998   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1999   ;;
2000   *)
2001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002 for as_dir in $PATH
2003 do
2004   IFS=$as_save_IFS
2005   test -z "$as_dir" && as_dir=.
2006   for ac_exec_ext in '' $ac_executable_extensions; do
2007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2008     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010     break 2
2011   fi
2012 done
2013 done
2014 IFS=$as_save_IFS
2015
2016   ;;
2017 esac
2018 fi
2019 TRUEPRG=$ac_cv_path_TRUEPRG
2020 if test -n "$TRUEPRG"; then
2021   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2022 echo "${ECHO_T}$TRUEPRG" >&6; }
2023 else
2024   { echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6; }
2026 fi
2027
2028
2029   test -n "$TRUEPRG" && break
2030 done
2031 test -n "$TRUEPRG" || TRUEPRG=":"
2032
2033 for ac_prog in false
2034 do
2035   # Extract the first word of "$ac_prog", so it can be a program name with args.
2036 set dummy $ac_prog; ac_word=$2
2037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2039 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   case $FALSEPRG in
2043   [\\/]* | ?:[\\/]*)
2044   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2045   ;;
2046   *)
2047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 for as_dir in $PATH
2049 do
2050   IFS=$as_save_IFS
2051   test -z "$as_dir" && as_dir=.
2052   for ac_exec_ext in '' $ac_executable_extensions; do
2053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2054     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2056     break 2
2057   fi
2058 done
2059 done
2060 IFS=$as_save_IFS
2061
2062   ;;
2063 esac
2064 fi
2065 FALSEPRG=$ac_cv_path_FALSEPRG
2066 if test -n "$FALSEPRG"; then
2067   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2068 echo "${ECHO_T}$FALSEPRG" >&6; }
2069 else
2070   { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2072 fi
2073
2074
2075   test -n "$FALSEPRG" && break
2076 done
2077 test -n "$FALSEPRG" || FALSEPRG=":"
2078
2079
2080 #AC_CANONICAL_HOST
2081
2082 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2083 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2084 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2085 echo "configuring for bacula $VERSION ($DATE)"
2086
2087
2088
2089 ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 if test -n "$ac_tool_prefix"; then
2095   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100   echo $ECHO_N "(cached) $ECHO_C" >&6
2101 else
2102   if test -n "$CC"; then
2103   ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2112     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124   { echo "$as_me:$LINENO: result: $CC" >&5
2125 echo "${ECHO_T}$CC" >&6; }
2126 else
2127   { echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6; }
2129 fi
2130
2131
2132 fi
2133 if test -z "$ac_cv_prog_CC"; then
2134   ac_ct_CC=$CC
2135   # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$ac_ct_CC"; then
2143   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2152     ac_cv_prog_ac_ct_CC="gcc"
2153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161 fi
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 echo "${ECHO_T}$ac_ct_CC" >&6; }
2166 else
2167   { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2169 fi
2170
2171   if test "x$ac_ct_CC" = x; then
2172     CC=""
2173   else
2174     case $cross_compiling:$ac_tool_warned in
2175 yes:)
2176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2177 whose name does not start with the host triplet.  If you think this
2178 configuration is useful to you, please write to autoconf@gnu.org." >&5
2179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2180 whose name does not start with the host triplet.  If you think this
2181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2182 ac_tool_warned=yes ;;
2183 esac
2184     CC=$ac_ct_CC
2185   fi
2186 else
2187   CC="$ac_cv_prog_CC"
2188 fi
2189
2190 if test -z "$CC"; then
2191           if test -n "$ac_tool_prefix"; then
2192     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}cc; ac_word=$2
2194 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197   echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199   if test -n "$CC"; then
2200   ac_cv_prog_CC="$CC" # Let the user override the test.
2201 else
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 for as_dir in $PATH
2204 do
2205   IFS=$as_save_IFS
2206   test -z "$as_dir" && as_dir=.
2207   for ac_exec_ext in '' $ac_executable_extensions; do
2208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2209     ac_cv_prog_CC="${ac_tool_prefix}cc"
2210     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2211     break 2
2212   fi
2213 done
2214 done
2215 IFS=$as_save_IFS
2216
2217 fi
2218 fi
2219 CC=$ac_cv_prog_CC
2220 if test -n "$CC"; then
2221   { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2223 else
2224   { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2226 fi
2227
2228
2229   fi
2230 fi
2231 if test -z "$CC"; then
2232   # Extract the first word of "cc", so it can be a program name with args.
2233 set dummy cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$CC"; then
2240   ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242   ac_prog_rejected=no
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246   IFS=$as_save_IFS
2247   test -z "$as_dir" && as_dir=.
2248   for ac_exec_ext in '' $ac_executable_extensions; do
2249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2250     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2251        ac_prog_rejected=yes
2252        continue
2253      fi
2254     ac_cv_prog_CC="cc"
2255     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256     break 2
2257   fi
2258 done
2259 done
2260 IFS=$as_save_IFS
2261
2262 if test $ac_prog_rejected = yes; then
2263   # We found a bogon in the path, so make sure we never use it.
2264   set dummy $ac_cv_prog_CC
2265   shift
2266   if test $# != 0; then
2267     # We chose a different compiler from the bogus one.
2268     # However, it has the same basename, so the bogon will be chosen
2269     # first if we set CC to just the basename; use the full file name.
2270     shift
2271     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2272   fi
2273 fi
2274 fi
2275 fi
2276 CC=$ac_cv_prog_CC
2277 if test -n "$CC"; then
2278   { echo "$as_me:$LINENO: result: $CC" >&5
2279 echo "${ECHO_T}$CC" >&6; }
2280 else
2281   { echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6; }
2283 fi
2284
2285
2286 fi
2287 if test -z "$CC"; then
2288   if test -n "$ac_tool_prefix"; then
2289   for ac_prog in cl.exe
2290   do
2291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_CC+set}" = set; then
2296   echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298   if test -n "$CC"; then
2299   ac_cv_prog_CC="$CC" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2308     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310     break 2
2311   fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 CC=$ac_cv_prog_CC
2319 if test -n "$CC"; then
2320   { echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6; }
2322 else
2323   { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2325 fi
2326
2327
2328     test -n "$CC" && break
2329   done
2330 fi
2331 if test -z "$CC"; then
2332   ac_ct_CC=$CC
2333   for ac_prog in cl.exe
2334 do
2335   # Extract the first word of "$ac_prog", so it can be a program name with args.
2336 set dummy $ac_prog; ac_word=$2
2337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2340   echo $ECHO_N "(cached) $ECHO_C" >&6
2341 else
2342   if test -n "$ac_ct_CC"; then
2343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2344 else
2345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350   for ac_exec_ext in '' $ac_executable_extensions; do
2351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2352     ac_cv_prog_ac_ct_CC="$ac_prog"
2353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2354     break 2
2355   fi
2356 done
2357 done
2358 IFS=$as_save_IFS
2359
2360 fi
2361 fi
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6; }
2366 else
2367   { echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6; }
2369 fi
2370
2371
2372   test -n "$ac_ct_CC" && break
2373 done
2374
2375   if test "x$ac_ct_CC" = x; then
2376     CC=""
2377   else
2378     case $cross_compiling:$ac_tool_warned in
2379 yes:)
2380 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2381 whose name does not start with the host triplet.  If you think this
2382 configuration is useful to you, please write to autoconf@gnu.org." >&5
2383 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2384 whose name does not start with the host triplet.  If you think this
2385 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2386 ac_tool_warned=yes ;;
2387 esac
2388     CC=$ac_ct_CC
2389   fi
2390 fi
2391
2392 fi
2393
2394
2395 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&5
2397 echo "$as_me: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&2;}
2399    { (exit 1); exit 1; }; }
2400
2401 # Provide some information about the compiler.
2402 echo "$as_me:$LINENO: checking for C compiler version" >&5
2403 ac_compiler=`set X $ac_compile; echo $2`
2404 { (ac_try="$ac_compiler --version >&5"
2405 case "(($ac_try" in
2406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407   *) ac_try_echo=$ac_try;;
2408 esac
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410   (eval "$ac_compiler --version >&5") 2>&5
2411   ac_status=$?
2412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413   (exit $ac_status); }
2414 { (ac_try="$ac_compiler -v >&5"
2415 case "(($ac_try" in
2416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417   *) ac_try_echo=$ac_try;;
2418 esac
2419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2420   (eval "$ac_compiler -v >&5") 2>&5
2421   ac_status=$?
2422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423   (exit $ac_status); }
2424 { (ac_try="$ac_compiler -V >&5"
2425 case "(($ac_try" in
2426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427   *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430   (eval "$ac_compiler -V >&5") 2>&5
2431   ac_status=$?
2432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433   (exit $ac_status); }
2434
2435 cat >conftest.$ac_ext <<_ACEOF
2436 /* confdefs.h.  */
2437 _ACEOF
2438 cat confdefs.h >>conftest.$ac_ext
2439 cat >>conftest.$ac_ext <<_ACEOF
2440 /* end confdefs.h.  */
2441
2442 int
2443 main ()
2444 {
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 ac_clean_files_save=$ac_clean_files
2451 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2452 # Try to create an executable without -o first, disregard a.out.
2453 # It will help us diagnose broken compilers, and finding out an intuition
2454 # of exeext.
2455 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2456 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2457 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2458 #
2459 # List of possible output files, starting from the most likely.
2460 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2461 # only as a last resort.  b.out is created by i960 compilers.
2462 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2463 #
2464 # The IRIX 6 linker writes into existing files which may not be
2465 # executable, retaining their permissions.  Remove them first so a
2466 # subsequent execution test works.
2467 ac_rmfiles=
2468 for ac_file in $ac_files
2469 do
2470   case $ac_file in
2471     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2472     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2473   esac
2474 done
2475 rm -f $ac_rmfiles
2476
2477 if { (ac_try="$ac_link_default"
2478 case "(($ac_try" in
2479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480   *) ac_try_echo=$ac_try;;
2481 esac
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483   (eval "$ac_link_default") 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; then
2487   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2489 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2490 # so that the user can short-circuit this test for compilers unknown to
2491 # Autoconf.
2492 for ac_file in $ac_files
2493 do
2494   test -f "$ac_file" || continue
2495   case $ac_file in
2496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2497         ;;
2498     [ab].out )
2499         # We found the default executable, but exeext='' is most
2500         # certainly right.
2501         break;;
2502     *.* )
2503         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2504         then :; else
2505            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506         fi
2507         # We set ac_cv_exeext here because the later test for it is not
2508         # safe: cross compilers may not add the suffix if given an `-o'
2509         # argument, so we may need to know it at that point already.
2510         # Even if this section looks crufty: it has the advantage of
2511         # actually working.
2512         break;;
2513     * )
2514         break;;
2515   esac
2516 done
2517 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2524 See \`config.log' for more details." >&5
2525 echo "$as_me: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&2;}
2527    { (exit 77); exit 77; }; }
2528 fi
2529
2530 ac_exeext=$ac_cv_exeext
2531 { echo "$as_me:$LINENO: result: $ac_file" >&5
2532 echo "${ECHO_T}$ac_file" >&6; }
2533
2534 # Check that the compiler produces executables we can run.  If not, either
2535 # the compiler is broken, or we cross compile.
2536 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539 # If not cross compiling, check that we can run a simple program.
2540 if test "$cross_compiling" != yes; then
2541   if { ac_try='./$ac_file'
2542   { (case "(($ac_try" in
2543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544   *) ac_try_echo=$ac_try;;
2545 esac
2546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2547   (eval "$ac_try") 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }; }; then
2551     cross_compiling=no
2552   else
2553     if test "$cross_compiling" = maybe; then
2554         cross_compiling=yes
2555     else
2556         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2557 If you meant to cross compile, use \`--host'.
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot run C compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&2;}
2562    { (exit 1); exit 1; }; }
2563     fi
2564   fi
2565 fi
2566 { echo "$as_me:$LINENO: result: yes" >&5
2567 echo "${ECHO_T}yes" >&6; }
2568
2569 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2570 ac_clean_files=$ac_clean_files_save
2571 # Check that the compiler produces executables we can run.  If not, either
2572 # the compiler is broken, or we cross compile.
2573 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2574 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2575 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2576 echo "${ECHO_T}$cross_compiling" >&6; }
2577
2578 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2579 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2580 if { (ac_try="$ac_link"
2581 case "(($ac_try" in
2582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583   *) ac_try_echo=$ac_try;;
2584 esac
2585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586   (eval "$ac_link") 2>&5
2587   ac_status=$?
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); }; then
2590   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2591 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2592 # work properly (i.e., refer to `conftest.exe'), while it won't with
2593 # `rm'.
2594 for ac_file in conftest.exe conftest conftest.*; do
2595   test -f "$ac_file" || continue
2596   case $ac_file in
2597     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2598     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2599           break;;
2600     * ) break;;
2601   esac
2602 done
2603 else
2604   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2605 See \`config.log' for more details." >&5
2606 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&2;}
2608    { (exit 1); exit 1; }; }
2609 fi
2610
2611 rm -f conftest$ac_cv_exeext
2612 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2613 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2614
2615 rm -f conftest.$ac_ext
2616 EXEEXT=$ac_cv_exeext
2617 ac_exeext=$EXEEXT
2618 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2619 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2620 if test "${ac_cv_objext+set}" = set; then
2621   echo $ECHO_N "(cached) $ECHO_C" >&6
2622 else
2623   cat >conftest.$ac_ext <<_ACEOF
2624 /* confdefs.h.  */
2625 _ACEOF
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h.  */
2629
2630 int
2631 main ()
2632 {
2633
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 rm -f conftest.o conftest.obj
2639 if { (ac_try="$ac_compile"
2640 case "(($ac_try" in
2641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2642   *) ac_try_echo=$ac_try;;
2643 esac
2644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2645   (eval "$ac_compile") 2>&5
2646   ac_status=$?
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); }; then
2649   for ac_file in conftest.o conftest.obj conftest.*; do
2650   test -f "$ac_file" || continue;
2651   case $ac_file in
2652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2653     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654        break;;
2655   esac
2656 done
2657 else
2658   echo "$as_me: failed program was:" >&5
2659 sed 's/^/| /' conftest.$ac_ext >&5
2660
2661 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&5
2663 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&2;}
2665    { (exit 1); exit 1; }; }
2666 fi
2667
2668 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2669 fi
2670 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2671 echo "${ECHO_T}$ac_cv_objext" >&6; }
2672 OBJEXT=$ac_cv_objext
2673 ac_objext=$OBJEXT
2674 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2675 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2676 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2677   echo $ECHO_N "(cached) $ECHO_C" >&6
2678 else
2679   cat >conftest.$ac_ext <<_ACEOF
2680 /* confdefs.h.  */
2681 _ACEOF
2682 cat confdefs.h >>conftest.$ac_ext
2683 cat >>conftest.$ac_ext <<_ACEOF
2684 /* end confdefs.h.  */
2685
2686 int
2687 main ()
2688 {
2689 #ifndef __GNUC__
2690        choke me
2691 #endif
2692
2693   ;
2694   return 0;
2695 }
2696 _ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (ac_try="$ac_compile"
2699 case "(($ac_try" in
2700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2701   *) ac_try_echo=$ac_try;;
2702 esac
2703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2704   (eval "$ac_compile") 2>conftest.er1
2705   ac_status=$?
2706   grep -v '^ *+' conftest.er1 >conftest.err
2707   rm -f conftest.er1
2708   cat conftest.err >&5
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); } &&
2711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2712   { (case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_try") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }; } &&
2721          { ac_try='test -s conftest.$ac_objext'
2722   { (case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_try") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }; }; then
2731   ac_compiler_gnu=yes
2732 else
2733   echo "$as_me: failed program was:" >&5
2734 sed 's/^/| /' conftest.$ac_ext >&5
2735
2736         ac_compiler_gnu=no
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2741
2742 fi
2743 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2744 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2745 GCC=`test $ac_compiler_gnu = yes && echo yes`
2746 ac_test_CFLAGS=${CFLAGS+set}
2747 ac_save_CFLAGS=$CFLAGS
2748 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2749 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_cc_g+set}" = set; then
2751   echo $ECHO_N "(cached) $ECHO_C" >&6
2752 else
2753   ac_save_c_werror_flag=$ac_c_werror_flag
2754    ac_c_werror_flag=yes
2755    ac_cv_prog_cc_g=no
2756    CFLAGS="-g"
2757    cat >conftest.$ac_ext <<_ACEOF
2758 /* confdefs.h.  */
2759 _ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h.  */
2763
2764 int
2765 main ()
2766 {
2767
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 rm -f conftest.$ac_objext
2773 if { (ac_try="$ac_compile"
2774 case "(($ac_try" in
2775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776   *) ac_try_echo=$ac_try;;
2777 esac
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779   (eval "$ac_compile") 2>conftest.er1
2780   ac_status=$?
2781   grep -v '^ *+' conftest.er1 >conftest.err
2782   rm -f conftest.er1
2783   cat conftest.err >&5
2784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785   (exit $ac_status); } &&
2786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2787   { (case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792   (eval "$ac_try") 2>&5
2793   ac_status=$?
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); }; } &&
2796          { ac_try='test -s conftest.$ac_objext'
2797   { (case "(($ac_try" in
2798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799   *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802   (eval "$ac_try") 2>&5
2803   ac_status=$?
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); }; }; then
2806   ac_cv_prog_cc_g=yes
2807 else
2808   echo "$as_me: failed program was:" >&5
2809 sed 's/^/| /' conftest.$ac_ext >&5
2810
2811         CFLAGS=""
2812       cat >conftest.$ac_ext <<_ACEOF
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818
2819 int
2820 main ()
2821 {
2822
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 rm -f conftest.$ac_objext
2828 if { (ac_try="$ac_compile"
2829 case "(($ac_try" in
2830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2831   *) ac_try_echo=$ac_try;;
2832 esac
2833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2834   (eval "$ac_compile") 2>conftest.er1
2835   ac_status=$?
2836   grep -v '^ *+' conftest.er1 >conftest.err
2837   rm -f conftest.er1
2838   cat conftest.err >&5
2839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2840   (exit $ac_status); } &&
2841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2842   { (case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_try") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; } &&
2851          { ac_try='test -s conftest.$ac_objext'
2852   { (case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857   (eval "$ac_try") 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; }; then
2861   :
2862 else
2863   echo "$as_me: failed program was:" >&5
2864 sed 's/^/| /' conftest.$ac_ext >&5
2865
2866         ac_c_werror_flag=$ac_save_c_werror_flag
2867          CFLAGS="-g"
2868          cat >conftest.$ac_ext <<_ACEOF
2869 /* confdefs.h.  */
2870 _ACEOF
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h.  */
2874
2875 int
2876 main ()
2877 {
2878
2879   ;
2880   return 0;
2881 }
2882 _ACEOF
2883 rm -f conftest.$ac_objext
2884 if { (ac_try="$ac_compile"
2885 case "(($ac_try" in
2886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2887   *) ac_try_echo=$ac_try;;
2888 esac
2889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2890   (eval "$ac_compile") 2>conftest.er1
2891   ac_status=$?
2892   grep -v '^ *+' conftest.er1 >conftest.err
2893   rm -f conftest.er1
2894   cat conftest.err >&5
2895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896   (exit $ac_status); } &&
2897          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2898   { (case "(($ac_try" in
2899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900   *) ac_try_echo=$ac_try;;
2901 esac
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903   (eval "$ac_try") 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; } &&
2907          { ac_try='test -s conftest.$ac_objext'
2908   { (case "(($ac_try" in
2909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910   *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913   (eval "$ac_try") 2>&5
2914   ac_status=$?
2915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916   (exit $ac_status); }; }; then
2917   ac_cv_prog_cc_g=yes
2918 else
2919   echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922
2923 fi
2924
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 fi
2927
2928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2929 fi
2930
2931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932    ac_c_werror_flag=$ac_save_c_werror_flag
2933 fi
2934 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2935 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2936 if test "$ac_test_CFLAGS" = set; then
2937   CFLAGS=$ac_save_CFLAGS
2938 elif test $ac_cv_prog_cc_g = yes; then
2939   if test "$GCC" = yes; then
2940     CFLAGS="-g -O2"
2941   else
2942     CFLAGS="-g"
2943   fi
2944 else
2945   if test "$GCC" = yes; then
2946     CFLAGS="-O2"
2947   else
2948     CFLAGS=
2949   fi
2950 fi
2951 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2952 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_cc_c89+set}" = set; then
2954   echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956   ac_cv_prog_cc_c89=no
2957 ac_save_CC=$CC
2958 cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964 #include <stdarg.h>
2965 #include <stdio.h>
2966 #include <sys/types.h>
2967 #include <sys/stat.h>
2968 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2969 struct buf { int x; };
2970 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2971 static char *e (p, i)
2972      char **p;
2973      int i;
2974 {
2975   return p[i];
2976 }
2977 static char *f (char * (*g) (char **, int), char **p, ...)
2978 {
2979   char *s;
2980   va_list v;
2981   va_start (v,p);
2982   s = g (p, va_arg (v,int));
2983   va_end (v);
2984   return s;
2985 }
2986
2987 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2988    function prototypes and stuff, but not '\xHH' hex character constants.
2989    These don't provoke an error unfortunately, instead are silently treated
2990    as 'x'.  The following induces an error, until -std is added to get
2991    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2992    array size at least.  It's necessary to write '\x00'==0 to get something
2993    that's true only with -std.  */
2994 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2995
2996 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2997    inside strings and character constants.  */
2998 #define FOO(x) 'x'
2999 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3000
3001 int test (int i, double x);
3002 struct s1 {int (*f) (int a);};
3003 struct s2 {int (*f) (double a);};
3004 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3005 int argc;
3006 char **argv;
3007 int
3008 main ()
3009 {
3010 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3011   ;
3012   return 0;
3013 }
3014 _ACEOF
3015 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3016         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3017 do
3018   CC="$ac_save_CC $ac_arg"
3019   rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3021 case "(($ac_try" in
3022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023   *) ac_try_echo=$ac_try;;
3024 esac
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026   (eval "$ac_compile") 2>conftest.er1
3027   ac_status=$?
3028   grep -v '^ *+' conftest.er1 >conftest.err
3029   rm -f conftest.er1
3030   cat conftest.err >&5
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); } &&
3033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3034   { (case "(($ac_try" in
3035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036   *) ac_try_echo=$ac_try;;
3037 esac
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039   (eval "$ac_try") 2>&5
3040   ac_status=$?
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); }; } &&
3043          { ac_try='test -s conftest.$ac_objext'
3044   { (case "(($ac_try" in
3045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046   *) ac_try_echo=$ac_try;;
3047 esac
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049   (eval "$ac_try") 2>&5
3050   ac_status=$?
3051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052   (exit $ac_status); }; }; then
3053   ac_cv_prog_cc_c89=$ac_arg
3054 else
3055   echo "$as_me: failed program was:" >&5
3056 sed 's/^/| /' conftest.$ac_ext >&5
3057
3058
3059 fi
3060
3061 rm -f core conftest.err conftest.$ac_objext
3062   test "x$ac_cv_prog_cc_c89" != "xno" && break
3063 done
3064 rm -f conftest.$ac_ext
3065 CC=$ac_save_CC
3066
3067 fi
3068 # AC_CACHE_VAL
3069 case "x$ac_cv_prog_cc_c89" in
3070   x)
3071     { echo "$as_me:$LINENO: result: none needed" >&5
3072 echo "${ECHO_T}none needed" >&6; } ;;
3073   xno)
3074     { echo "$as_me:$LINENO: result: unsupported" >&5
3075 echo "${ECHO_T}unsupported" >&6; } ;;
3076   *)
3077     CC="$CC $ac_cv_prog_cc_c89"
3078     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3079 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3080 esac
3081
3082
3083 ac_ext=c
3084 ac_cpp='$CPP $CPPFLAGS'
3085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3088
3089 ac_ext=cpp
3090 ac_cpp='$CXXCPP $CPPFLAGS'
3091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3094 if test -z "$CXX"; then
3095   if test -n "$CCC"; then
3096     CXX=$CCC
3097   else
3098     if test -n "$ac_tool_prefix"; then
3099   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3100   do
3101     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3105 if test "${ac_cv_prog_CXX+set}" = set; then
3106   echo $ECHO_N "(cached) $ECHO_C" >&6
3107 else
3108   if test -n "$CXX"; then
3109   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114   IFS=$as_save_IFS
3115   test -z "$as_dir" && as_dir=.
3116   for ac_exec_ext in '' $ac_executable_extensions; do
3117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3118     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3120     break 2
3121   fi
3122 done
3123 done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CXX=$ac_cv_prog_CXX
3129 if test -n "$CXX"; then
3130   { echo "$as_me:$LINENO: result: $CXX" >&5
3131 echo "${ECHO_T}$CXX" >&6; }
3132 else
3133   { echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6; }
3135 fi
3136
3137
3138     test -n "$CXX" && break
3139   done
3140 fi
3141 if test -z "$CXX"; then
3142   ac_ct_CXX=$CXX
3143   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3144 do
3145   # Extract the first word of "$ac_prog", so it can be a program name with args.
3146 set dummy $ac_prog; ac_word=$2
3147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3149 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3150   echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152   if test -n "$ac_ct_CXX"; then
3153   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3154 else
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158   IFS=$as_save_IFS
3159   test -z "$as_dir" && as_dir=.
3160   for ac_exec_ext in '' $ac_executable_extensions; do
3161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3162     ac_cv_prog_ac_ct_CXX="$ac_prog"
3163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164     break 2
3165   fi
3166 done
3167 done
3168 IFS=$as_save_IFS
3169
3170 fi
3171 fi
3172 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3173 if test -n "$ac_ct_CXX"; then
3174   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3175 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3176 else
3177   { echo "$as_me:$LINENO: result: no" >&5
3178 echo "${ECHO_T}no" >&6; }
3179 fi
3180
3181
3182   test -n "$ac_ct_CXX" && break
3183 done
3184
3185   if test "x$ac_ct_CXX" = x; then
3186     CXX="g++"
3187   else
3188     case $cross_compiling:$ac_tool_warned in
3189 yes:)
3190 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3191 whose name does not start with the host triplet.  If you think this
3192 configuration is useful to you, please write to autoconf@gnu.org." >&5
3193 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3194 whose name does not start with the host triplet.  If you think this
3195 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3196 ac_tool_warned=yes ;;
3197 esac
3198     CXX=$ac_ct_CXX
3199   fi
3200 fi
3201
3202   fi
3203 fi
3204 # Provide some information about the compiler.
3205 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3206 ac_compiler=`set X $ac_compile; echo $2`
3207 { (ac_try="$ac_compiler --version >&5"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_compiler --version >&5") 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }
3217 { (ac_try="$ac_compiler -v >&5"
3218 case "(($ac_try" in
3219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220   *) ac_try_echo=$ac_try;;
3221 esac
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223   (eval "$ac_compiler -v >&5") 2>&5
3224   ac_status=$?
3225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226   (exit $ac_status); }
3227 { (ac_try="$ac_compiler -V >&5"
3228 case "(($ac_try" in
3229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230   *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233   (eval "$ac_compiler -V >&5") 2>&5
3234   ac_status=$?
3235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236   (exit $ac_status); }
3237
3238 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3239 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3240 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3241   echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243   cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h.  */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253 #ifndef __GNUC__
3254        choke me
3255 #endif
3256
3257   ;
3258   return 0;
3259 }
3260 _ACEOF
3261 rm -f conftest.$ac_objext
3262 if { (ac_try="$ac_compile"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268   (eval "$ac_compile") 2>conftest.er1
3269   ac_status=$?
3270   grep -v '^ *+' conftest.er1 >conftest.err
3271   rm -f conftest.er1
3272   cat conftest.err >&5
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); } &&
3275          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3276   { (case "(($ac_try" in
3277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278   *) ac_try_echo=$ac_try;;
3279 esac
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281   (eval "$ac_try") 2>&5
3282   ac_status=$?
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); }; } &&
3285          { ac_try='test -s conftest.$ac_objext'
3286   { (case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291   (eval "$ac_try") 2>&5
3292   ac_status=$?
3293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294   (exit $ac_status); }; }; then
3295   ac_compiler_gnu=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300         ac_compiler_gnu=no
3301 fi
3302
3303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3305
3306 fi
3307 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3308 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3309 GXX=`test $ac_compiler_gnu = yes && echo yes`
3310 ac_test_CXXFLAGS=${CXXFLAGS+set}
3311 ac_save_CXXFLAGS=$CXXFLAGS
3312 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3313 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_cxx_g+set}" = set; then
3315   echo $ECHO_N "(cached) $ECHO_C" >&6
3316 else
3317   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3318    ac_cxx_werror_flag=yes
3319    ac_cv_prog_cxx_g=no
3320    CXXFLAGS="-g"
3321    cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343   (eval "$ac_compile") 2>conftest.er1
3344   ac_status=$?
3345   grep -v '^ *+' conftest.er1 >conftest.err
3346   rm -f conftest.er1
3347   cat conftest.err >&5
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); } &&
3350          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3351   { (case "(($ac_try" in
3352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353   *) ac_try_echo=$ac_try;;
3354 esac
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356   (eval "$ac_try") 2>&5
3357   ac_status=$?
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); }; } &&
3360          { ac_try='test -s conftest.$ac_objext'
3361   { (case "(($ac_try" in
3362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363   *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366   (eval "$ac_try") 2>&5
3367   ac_status=$?
3368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369   (exit $ac_status); }; }; then
3370   ac_cv_prog_cxx_g=yes
3371 else
3372   echo "$as_me: failed program was:" >&5
3373 sed 's/^/| /' conftest.$ac_ext >&5
3374
3375         CXXFLAGS=""
3376       cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h.  */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h.  */
3382
3383 int
3384 main ()
3385 {
3386
3387   ;
3388   return 0;
3389 }
3390 _ACEOF
3391 rm -f conftest.$ac_objext
3392 if { (ac_try="$ac_compile"
3393 case "(($ac_try" in
3394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395   *) ac_try_echo=$ac_try;;
3396 esac
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398   (eval "$ac_compile") 2>conftest.er1
3399   ac_status=$?
3400   grep -v '^ *+' conftest.er1 >conftest.err
3401   rm -f conftest.er1
3402   cat conftest.err >&5
3403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404   (exit $ac_status); } &&
3405          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3406   { (case "(($ac_try" in
3407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408   *) ac_try_echo=$ac_try;;
3409 esac
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411   (eval "$ac_try") 2>&5
3412   ac_status=$?
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); }; } &&
3415          { ac_try='test -s conftest.$ac_objext'
3416   { (case "(($ac_try" in
3417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418   *) ac_try_echo=$ac_try;;
3419 esac
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421   (eval "$ac_try") 2>&5
3422   ac_status=$?
3423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424   (exit $ac_status); }; }; then
3425   :
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3431          CXXFLAGS="-g"
3432          cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438
3439 int
3440 main ()
3441 {
3442
3443   ;
3444   return 0;
3445 }
3446 _ACEOF
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3449 case "(($ac_try" in
3450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451   *) ac_try_echo=$ac_try;;
3452 esac
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454   (eval "$ac_compile") 2>conftest.er1
3455   ac_status=$?
3456   grep -v '^ *+' conftest.er1 >conftest.err
3457   rm -f conftest.er1
3458   cat conftest.err >&5
3459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460   (exit $ac_status); } &&
3461          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3462   { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); }; } &&
3471          { ac_try='test -s conftest.$ac_objext'
3472   { (case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_try") 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; }; then
3481   ac_cv_prog_cxx_g=yes
3482 else
3483   echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3485
3486
3487 fi
3488
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3490 fi
3491
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3497 fi
3498 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3500 if test "$ac_test_CXXFLAGS" = set; then
3501   CXXFLAGS=$ac_save_CXXFLAGS
3502 elif test $ac_cv_prog_cxx_g = yes; then
3503   if test "$GXX" = yes; then
3504     CXXFLAGS="-g -O2"
3505   else
3506     CXXFLAGS="-g"
3507   fi
3508 else
3509   if test "$GXX" = yes; then
3510     CXXFLAGS="-O2"
3511   else
3512     CXXFLAGS=
3513   fi
3514 fi
3515 ac_ext=c
3516 ac_cpp='$CPP $CPPFLAGS'
3517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3520
3521 if test "x$CC" != xcc; then
3522   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3523 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3524 else
3525   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3526 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3527 fi
3528 set dummy $CC; ac_cc=`echo $2 |
3529                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3530 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3531   echo $ECHO_N "(cached) $ECHO_C" >&6
3532 else
3533   cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539
3540 int
3541 main ()
3542 {
3543
3544   ;
3545   return 0;
3546 }
3547 _ACEOF
3548 # Make sure it works both with $CC and with simple cc.
3549 # We do the test twice because some compilers refuse to overwrite an
3550 # existing .o file with -o, though they will create one.
3551 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3552 rm -f conftest2.*
3553 if { (case "(($ac_try" in
3554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555   *) ac_try_echo=$ac_try;;
3556 esac
3557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3558   (eval "$ac_try") 2>&5
3559   ac_status=$?
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } &&
3562    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567   (eval "$ac_try") 2>&5
3568   ac_status=$?
3569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570   (exit $ac_status); };
3571 then
3572   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3573   if test "x$CC" != xcc; then
3574     # Test first that cc exists at all.
3575     if { ac_try='cc -c conftest.$ac_ext >&5'
3576   { (case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_try") 2>&5
3582   ac_status=$?
3583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584   (exit $ac_status); }; }; then
3585       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3586       rm -f conftest2.*
3587       if { (case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3592   (eval "$ac_try") 2>&5
3593   ac_status=$?
3594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595   (exit $ac_status); } &&
3596          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598   *) ac_try_echo=$ac_try;;
3599 esac
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601   (eval "$ac_try") 2>&5
3602   ac_status=$?
3603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604   (exit $ac_status); };
3605       then
3606         # cc works too.
3607         :
3608       else
3609         # cc exists but doesn't like -o.
3610         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3611       fi
3612     fi
3613   fi
3614 else
3615   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3616 fi
3617 rm -f core conftest*
3618
3619 fi
3620 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3621   { echo "$as_me:$LINENO: result: yes" >&5
3622 echo "${ECHO_T}yes" >&6; }
3623 else
3624   { echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6; }
3626
3627 cat >>confdefs.h <<\_ACEOF
3628 #define NO_MINUS_C_MINUS_O 1
3629 _ACEOF
3630
3631 fi
3632
3633 ac_ext=c
3634 ac_cpp='$CPP $CPPFLAGS'
3635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3639 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3640 # On Suns, sometimes $CPP names a directory.
3641 if test -n "$CPP" && test -d "$CPP"; then
3642   CPP=
3643 fi
3644 if test -z "$CPP"; then
3645   if test "${ac_cv_prog_CPP+set}" = set; then
3646   echo $ECHO_N "(cached) $ECHO_C" >&6
3647 else
3648       # Double quotes because CPP needs to be expanded
3649     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3650     do
3651       ac_preproc_ok=false
3652 for ac_c_preproc_warn_flag in '' yes
3653 do
3654   # Use a header file that comes with gcc, so configuring glibc
3655   # with a fresh cross-compiler works.
3656   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3657   # <limits.h> exists even on freestanding compilers.
3658   # On the NeXT, cc -E runs the code through the compiler's parser,
3659   # not just through cpp. "Syntax error" is here to catch this case.
3660   cat >conftest.$ac_ext <<_ACEOF
3661 /* confdefs.h.  */
3662 _ACEOF
3663 cat confdefs.h >>conftest.$ac_ext
3664 cat >>conftest.$ac_ext <<_ACEOF
3665 /* end confdefs.h.  */
3666 #ifdef __STDC__
3667 # include <limits.h>
3668 #else
3669 # include <assert.h>
3670 #endif
3671                      Syntax error
3672 _ACEOF
3673 if { (ac_try="$ac_cpp conftest.$ac_ext"
3674 case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3680   ac_status=$?
3681   grep -v '^ *+' conftest.er1 >conftest.err
3682   rm -f conftest.er1
3683   cat conftest.err >&5
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); } >/dev/null; then
3686   if test -s conftest.err; then
3687     ac_cpp_err=$ac_c_preproc_warn_flag
3688     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3689   else
3690     ac_cpp_err=
3691   fi
3692 else
3693   ac_cpp_err=yes
3694 fi
3695 if test -z "$ac_cpp_err"; then
3696   :
3697 else
3698   echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701   # Broken: fails on valid input.
3702 continue
3703 fi
3704
3705 rm -f conftest.err conftest.$ac_ext
3706
3707   # OK, works on sane cases.  Now check whether nonexistent headers
3708   # can be detected and how.
3709   cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h.  */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h.  */
3715 #include <ac_nonexistent.h>
3716 _ACEOF
3717 if { (ac_try="$ac_cpp conftest.$ac_ext"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } >/dev/null; then
3730   if test -s conftest.err; then
3731     ac_cpp_err=$ac_c_preproc_warn_flag
3732     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3733   else
3734     ac_cpp_err=
3735   fi
3736 else
3737   ac_cpp_err=yes
3738 fi
3739 if test -z "$ac_cpp_err"; then
3740   # Broken: success on invalid input.
3741 continue
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746   # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3749 fi
3750
3751 rm -f conftest.err conftest.$ac_ext
3752
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3757   break
3758 fi
3759
3760     done
3761     ac_cv_prog_CPP=$CPP
3762
3763 fi
3764   CPP=$ac_cv_prog_CPP
3765 else
3766   ac_cv_prog_CPP=$CPP
3767 fi
3768 { echo "$as_me:$LINENO: result: $CPP" >&5
3769 echo "${ECHO_T}$CPP" >&6; }
3770 ac_preproc_ok=false
3771 for ac_c_preproc_warn_flag in '' yes
3772 do
3773   # Use a header file that comes with gcc, so configuring glibc
3774   # with a fresh cross-compiler works.
3775   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776   # <limits.h> exists even on freestanding compilers.
3777   # On the NeXT, cc -E runs the code through the compiler's parser,
3778   # not just through cpp. "Syntax error" is here to catch this case.
3779   cat >conftest.$ac_ext <<_ACEOF
3780 /* confdefs.h.  */
3781 _ACEOF
3782 cat confdefs.h >>conftest.$ac_ext
3783 cat >>conftest.$ac_ext <<_ACEOF
3784 /* end confdefs.h.  */
3785 #ifdef __STDC__
3786 # include <limits.h>
3787 #else
3788 # include <assert.h>
3789 #endif
3790                      Syntax error
3791 _ACEOF
3792 if { (ac_try="$ac_cpp conftest.$ac_ext"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3799   ac_status=$?
3800   grep -v '^ *+' conftest.er1 >conftest.err
3801   rm -f conftest.er1
3802   cat conftest.err >&5
3803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804   (exit $ac_status); } >/dev/null; then
3805   if test -s conftest.err; then
3806     ac_cpp_err=$ac_c_preproc_warn_flag
3807     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3808   else
3809     ac_cpp_err=
3810   fi
3811 else
3812   ac_cpp_err=yes
3813 fi
3814 if test -z "$ac_cpp_err"; then
3815   :
3816 else
3817   echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820   # Broken: fails on valid input.
3821 continue
3822 fi
3823
3824 rm -f conftest.err conftest.$ac_ext
3825
3826   # OK, works on sane cases.  Now check whether nonexistent headers
3827   # can be detected and how.
3828   cat >conftest.$ac_ext <<_ACEOF
3829 /* confdefs.h.  */
3830 _ACEOF
3831 cat confdefs.h >>conftest.$ac_ext
3832 cat >>conftest.$ac_ext <<_ACEOF
3833 /* end confdefs.h.  */
3834 #include <ac_nonexistent.h>
3835 _ACEOF
3836 if { (ac_try="$ac_cpp conftest.$ac_ext"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } >/dev/null; then
3849   if test -s conftest.err; then
3850     ac_cpp_err=$ac_c_preproc_warn_flag
3851     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3852   else
3853     ac_cpp_err=
3854   fi
3855 else
3856   ac_cpp_err=yes
3857 fi
3858 if test -z "$ac_cpp_err"; then
3859   # Broken: success on invalid input.
3860 continue
3861 else
3862   echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3864
3865   # Passes both tests.
3866 ac_preproc_ok=:
3867 break
3868 fi
3869
3870 rm -f conftest.err conftest.$ac_ext
3871
3872 done
3873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3874 rm -f conftest.err conftest.$ac_ext
3875 if $ac_preproc_ok; then
3876   :
3877 else
3878   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3879 See \`config.log' for more details." >&5
3880 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3881 See \`config.log' for more details." >&2;}
3882    { (exit 1); exit 1; }; }
3883 fi
3884
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890
3891
3892 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3893 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3894 if test "${ac_cv_path_GREP+set}" = set; then
3895   echo $ECHO_N "(cached) $ECHO_C" >&6
3896 else
3897   # Extract the first word of "grep ggrep" to use in msg output
3898 if test -z "$GREP"; then
3899 set dummy grep ggrep; ac_prog_name=$2
3900 if test "${ac_cv_path_GREP+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   ac_path_GREP_found=false
3904 # Loop through the user's path and test for each of PROGNAME-LIST
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3907 do
3908   IFS=$as_save_IFS
3909   test -z "$as_dir" && as_dir=.
3910   for ac_prog in grep ggrep; do
3911   for ac_exec_ext in '' $ac_executable_extensions; do
3912     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3913     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3914     # Check for GNU ac_path_GREP and select it if it is found.
3915   # Check for GNU $ac_path_GREP
3916 case `"$ac_path_GREP" --version 2>&1` in
3917 *GNU*)
3918   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3919 *)
3920   ac_count=0
3921   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3922   while :
3923   do
3924     cat "conftest.in" "conftest.in" >"conftest.tmp"
3925     mv "conftest.tmp" "conftest.in"
3926     cp "conftest.in" "conftest.nl"
3927     echo 'GREP' >> "conftest.nl"
3928     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3929     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3930     ac_count=`expr $ac_count + 1`
3931     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3932       # Best one so far, save it but keep looking for a better one
3933       ac_cv_path_GREP="$ac_path_GREP"
3934       ac_path_GREP_max=$ac_count
3935     fi
3936     # 10*(2^10) chars as input seems more than enough
3937     test $ac_count -gt 10 && break
3938   done
3939   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3940 esac
3941
3942
3943     $ac_path_GREP_found && break 3
3944   done
3945 done
3946
3947 done
3948 IFS=$as_save_IFS
3949
3950
3951 fi
3952
3953 GREP="$ac_cv_path_GREP"
3954 if test -z "$GREP"; then
3955   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3956 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3957    { (exit 1); exit 1; }; }
3958 fi
3959
3960 else
3961   ac_cv_path_GREP=$GREP
3962 fi
3963
3964
3965 fi
3966 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3967 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3968  GREP="$ac_cv_path_GREP"
3969
3970
3971 { echo "$as_me:$LINENO: checking for egrep" >&5
3972 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3977    then ac_cv_path_EGREP="$GREP -E"
3978    else
3979      # Extract the first word of "egrep" to use in msg output
3980 if test -z "$EGREP"; then
3981 set dummy egrep; ac_prog_name=$2
3982 if test "${ac_cv_path_EGREP+set}" = set; then
3983   echo $ECHO_N "(cached) $ECHO_C" >&6
3984 else
3985   ac_path_EGREP_found=false
3986 # Loop through the user's path and test for each of PROGNAME-LIST
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3989 do
3990   IFS=$as_save_IFS
3991   test -z "$as_dir" && as_dir=.
3992   for ac_prog in egrep; do
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3995     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3996     # Check for GNU ac_path_EGREP and select it if it is found.
3997   # Check for GNU $ac_path_EGREP
3998 case `"$ac_path_EGREP" --version 2>&1` in
3999 *GNU*)
4000   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4001 *)
4002   ac_count=0
4003   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004   while :
4005   do
4006     cat "conftest.in" "conftest.in" >"conftest.tmp"
4007     mv "conftest.tmp" "conftest.in"
4008     cp "conftest.in" "conftest.nl"
4009     echo 'EGREP' >> "conftest.nl"
4010     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4011     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4012     ac_count=`expr $ac_count + 1`
4013     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4014       # Best one so far, save it but keep looking for a better one
4015       ac_cv_path_EGREP="$ac_path_EGREP"
4016       ac_path_EGREP_max=$ac_count
4017     fi
4018     # 10*(2^10) chars as input seems more than enough
4019     test $ac_count -gt 10 && break
4020   done
4021   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4022 esac
4023
4024
4025     $ac_path_EGREP_found && break 3
4026   done
4027 done
4028
4029 done
4030 IFS=$as_save_IFS
4031
4032
4033 fi
4034
4035 EGREP="$ac_cv_path_EGREP"
4036 if test -z "$EGREP"; then
4037   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4038 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4039    { (exit 1); exit 1; }; }
4040 fi
4041
4042 else
4043   ac_cv_path_EGREP=$EGREP
4044 fi
4045
4046
4047    fi
4048 fi
4049 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4050 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4051  EGREP="$ac_cv_path_EGREP"
4052
4053
4054 if test $ac_cv_c_compiler_gnu = yes; then
4055     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4056 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4057 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060     ac_pattern="Autoconf.*'x'"
4061   cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067 #include <sgtty.h>
4068 Autoconf TIOCGETP
4069 _ACEOF
4070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4071   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4072   ac_cv_prog_gcc_traditional=yes
4073 else
4074   ac_cv_prog_gcc_traditional=no
4075 fi
4076 rm -f conftest*
4077
4078
4079   if test $ac_cv_prog_gcc_traditional = no; then
4080     cat >conftest.$ac_ext <<_ACEOF
4081 /* confdefs.h.  */
4082 _ACEOF
4083 cat confdefs.h >>conftest.$ac_ext
4084 cat >>conftest.$ac_ext <<_ACEOF
4085 /* end confdefs.h.  */
4086 #include <termio.h>
4087 Autoconf TCGETA
4088 _ACEOF
4089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4090   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4091   ac_cv_prog_gcc_traditional=yes
4092 fi
4093 rm -f conftest*
4094
4095   fi
4096 fi
4097 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4098 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4099   if test $ac_cv_prog_gcc_traditional = yes; then
4100     CC="$CC -traditional"
4101   fi
4102 fi
4103
4104 BASECC=`basename $CC`
4105 have_gcc=no
4106 if test "x$BASECC" = xgcc; then
4107    cat >>confdefs.h <<\_ACEOF
4108 #define HAVE_GCC 1
4109 _ACEOF
4110
4111    have_gcc=yes
4112 fi
4113 # Extract the first word of "$CXX", so it can be a program name with args.
4114 set dummy $CXX; ac_word=$2
4115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4117 if test "${ac_cv_path_CXX+set}" = set; then
4118   echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120   case $CXX in
4121   [\\/]* | ?:[\\/]*)
4122   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4123   ;;
4124   *)
4125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4132     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4141   ;;
4142 esac
4143 fi
4144 CXX=$ac_cv_path_CXX
4145 if test -n "$CXX"; then
4146   { echo "$as_me:$LINENO: result: $CXX" >&5
4147 echo "${ECHO_T}$CXX" >&6; }
4148 else
4149   { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4151 fi
4152
4153
4154 if test ! -e $CXX; then
4155    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4156 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4157    { (exit 1); exit 1; }; }
4158 fi
4159
4160 # Find a good install program.  We prefer a C program (faster),
4161 # so one script is as good as another.  But avoid the broken or
4162 # incompatible versions:
4163 # SysV /etc/install, /usr/sbin/install
4164 # SunOS /usr/etc/install
4165 # IRIX /sbin/install
4166 # AIX /bin/install
4167 # AmigaOS /C/install, which installs bootblocks on floppy discs
4168 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4169 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4170 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4171 # OS/2's system install, which has a completely different semantic
4172 # ./install, which can be erroneously created by make from ./install.sh.
4173 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4174 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4175 if test -z "$INSTALL"; then
4176 if test "${ac_cv_path_install+set}" = set; then
4177   echo $ECHO_N "(cached) $ECHO_C" >&6
4178 else
4179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 for as_dir in $PATH
4181 do
4182   IFS=$as_save_IFS
4183   test -z "$as_dir" && as_dir=.
4184   # Account for people who put trailing slashes in PATH elements.
4185 case $as_dir/ in
4186   ./ | .// | /cC/* | \
4187   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4188   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4189   /usr/ucb/* ) ;;
4190   *)
4191     # OSF1 and SCO ODT 3.0 have their own names for install.
4192     # Don't use installbsd from OSF since it installs stuff as root
4193     # by default.
4194     for ac_prog in ginstall scoinst install; do
4195       for ac_exec_ext in '' $ac_executable_extensions; do
4196         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4197           if test $ac_prog = install &&
4198             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4199             # AIX install.  It has an incompatible calling convention.
4200             :
4201           elif test $ac_prog = install &&
4202             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4203             # program-specific install script used by HP pwplus--don't use.
4204             :
4205           else
4206             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4207             break 3
4208           fi
4209         fi
4210       done
4211     done
4212     ;;
4213 esac
4214 done
4215 IFS=$as_save_IFS
4216
4217
4218 fi
4219   if test "${ac_cv_path_install+set}" = set; then
4220     INSTALL=$ac_cv_path_install
4221   else
4222     # As a last resort, use the slow shell script.  Don't cache a
4223     # value for INSTALL within a source directory, because that will
4224     # break other packages using the cache if that directory is
4225     # removed, or if the value is a relative name.
4226     INSTALL=$ac_install_sh
4227   fi
4228 fi
4229 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4230 echo "${ECHO_T}$INSTALL" >&6; }
4231
4232 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4233 # It thinks the first close brace ends the variable substitution.
4234 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4235
4236 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4237
4238 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4239
4240 if test -n "$ac_tool_prefix"; then
4241   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4242 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_RANLIB+set}" = set; then
4246   echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248   if test -n "$RANLIB"; then
4249   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4253 do
4254   IFS=$as_save_IFS
4255   test -z "$as_dir" && as_dir=.
4256   for ac_exec_ext in '' $ac_executable_extensions; do
4257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4258     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4259     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260     break 2
4261   fi
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267 fi
4268 RANLIB=$ac_cv_prog_RANLIB
4269 if test -n "$RANLIB"; then
4270   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4271 echo "${ECHO_T}$RANLIB" >&6; }
4272 else
4273   { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4275 fi
4276
4277
4278 fi
4279 if test -z "$ac_cv_prog_RANLIB"; then
4280   ac_ct_RANLIB=$RANLIB
4281   # Extract the first word of "ranlib", so it can be a program name with args.
4282 set dummy ranlib; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   if test -n "$ac_ct_RANLIB"; then
4289   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4290 else
4291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292 for as_dir in $PATH
4293 do
4294   IFS=$as_save_IFS
4295   test -z "$as_dir" && as_dir=.
4296   for ac_exec_ext in '' $ac_executable_extensions; do
4297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4298     ac_cv_prog_ac_ct_RANLIB="ranlib"
4299     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4300     break 2
4301   fi
4302 done
4303 done
4304 IFS=$as_save_IFS
4305
4306 fi
4307 fi
4308 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4309 if test -n "$ac_ct_RANLIB"; then
4310   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4311 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4312 else
4313   { echo "$as_me:$LINENO: result: no" >&5
4314 echo "${ECHO_T}no" >&6; }
4315 fi
4316
4317   if test "x$ac_ct_RANLIB" = x; then
4318     RANLIB=":"
4319   else
4320     case $cross_compiling:$ac_tool_warned in
4321 yes:)
4322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4323 whose name does not start with the host triplet.  If you think this
4324 configuration is useful to you, please write to autoconf@gnu.org." >&5
4325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4326 whose name does not start with the host triplet.  If you think this
4327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4328 ac_tool_warned=yes ;;
4329 esac
4330     RANLIB=$ac_ct_RANLIB
4331   fi
4332 else
4333   RANLIB="$ac_cv_prog_RANLIB"
4334 fi
4335
4336 # Extract the first word of "mv", so it can be a program name with args.
4337 set dummy mv; ac_word=$2
4338 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4340 if test "${ac_cv_path_MV+set}" = set; then
4341   echo $ECHO_N "(cached) $ECHO_C" >&6
4342 else
4343   case $MV in
4344   [\\/]* | ?:[\\/]*)
4345   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4346   ;;
4347   *)
4348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353   for ac_exec_ext in '' $ac_executable_extensions; do
4354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4355     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4356     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4357     break 2
4358   fi
4359 done
4360 done
4361 IFS=$as_save_IFS
4362
4363   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4364   ;;
4365 esac
4366 fi
4367 MV=$ac_cv_path_MV
4368 if test -n "$MV"; then
4369   { echo "$as_me:$LINENO: result: $MV" >&5
4370 echo "${ECHO_T}$MV" >&6; }
4371 else
4372   { echo "$as_me:$LINENO: result: no" >&5
4373 echo "${ECHO_T}no" >&6; }
4374 fi
4375
4376
4377 # Extract the first word of "rm", so it can be a program name with args.
4378 set dummy rm; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_path_RM+set}" = set; then
4382   echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384   case $RM in
4385   [\\/]* | ?:[\\/]*)
4386   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4387   ;;
4388   *)
4389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4391 do
4392   IFS=$as_save_IFS
4393   test -z "$as_dir" && as_dir=.
4394   for ac_exec_ext in '' $ac_executable_extensions; do
4395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4396     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4397     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398     break 2
4399   fi
4400 done
4401 done
4402 IFS=$as_save_IFS
4403
4404   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4405   ;;
4406 esac
4407 fi
4408 RM=$ac_cv_path_RM
4409 if test -n "$RM"; then
4410   { echo "$as_me:$LINENO: result: $RM" >&5
4411 echo "${ECHO_T}$RM" >&6; }
4412 else
4413   { echo "$as_me:$LINENO: result: no" >&5
4414 echo "${ECHO_T}no" >&6; }
4415 fi
4416
4417
4418 # Extract the first word of "cp", so it can be a program name with args.
4419 set dummy cp; ac_word=$2
4420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4422 if test "${ac_cv_path_CP+set}" = set; then
4423   echo $ECHO_N "(cached) $ECHO_C" >&6
4424 else
4425   case $CP in
4426   [\\/]* | ?:[\\/]*)
4427   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4428   ;;
4429   *)
4430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 for as_dir in $PATH
4432 do
4433   IFS=$as_save_IFS
4434   test -z "$as_dir" && as_dir=.
4435   for ac_exec_ext in '' $ac_executable_extensions; do
4436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4437     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4439     break 2
4440   fi
4441 done
4442 done
4443 IFS=$as_save_IFS
4444
4445   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4446   ;;
4447 esac
4448 fi
4449 CP=$ac_cv_path_CP
4450 if test -n "$CP"; then
4451   { echo "$as_me:$LINENO: result: $CP" >&5
4452 echo "${ECHO_T}$CP" >&6; }
4453 else
4454   { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4456 fi
4457
4458
4459 # Extract the first word of "sed", so it can be a program name with args.
4460 set dummy sed; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_path_SED+set}" = set; then
4464   echo $ECHO_N "(cached) $ECHO_C" >&6
4465 else
4466   case $SED in
4467   [\\/]* | ?:[\\/]*)
4468   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4469   ;;
4470   *)
4471   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4479     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480     break 2
4481   fi
4482 done
4483 done
4484 IFS=$as_save_IFS
4485
4486   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4487   ;;
4488 esac
4489 fi
4490 SED=$ac_cv_path_SED
4491 if test -n "$SED"; then
4492   { echo "$as_me:$LINENO: result: $SED" >&5
4493 echo "${ECHO_T}$SED" >&6; }
4494 else
4495   { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4497 fi
4498
4499
4500 # Extract the first word of "echo", so it can be a program name with args.
4501 set dummy echo; ac_word=$2
4502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4504 if test "${ac_cv_path_ECHO+set}" = set; then
4505   echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507   case $ECHO in
4508   [\\/]* | ?:[\\/]*)
4509   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4510   ;;
4511   *)
4512   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4514 do
4515   IFS=$as_save_IFS
4516   test -z "$as_dir" && as_dir=.
4517   for ac_exec_ext in '' $ac_executable_extensions; do
4518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4519     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4520     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521     break 2
4522   fi
4523 done
4524 done
4525 IFS=$as_save_IFS
4526
4527   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4528   ;;
4529 esac
4530 fi
4531 ECHO=$ac_cv_path_ECHO
4532 if test -n "$ECHO"; then
4533   { echo "$as_me:$LINENO: result: $ECHO" >&5
4534 echo "${ECHO_T}$ECHO" >&6; }
4535 else
4536   { echo "$as_me:$LINENO: result: no" >&5
4537 echo "${ECHO_T}no" >&6; }
4538 fi
4539
4540
4541 # Extract the first word of "cmp", so it can be a program name with args.
4542 set dummy cmp; ac_word=$2
4543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4545 if test "${ac_cv_path_CMP+set}" = set; then
4546   echo $ECHO_N "(cached) $ECHO_C" >&6
4547 else
4548   case $CMP in
4549   [\\/]* | ?:[\\/]*)
4550   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4551   ;;
4552   *)
4553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4555 do
4556   IFS=$as_save_IFS
4557   test -z "$as_dir" && as_dir=.
4558   for ac_exec_ext in '' $ac_executable_extensions; do
4559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4560     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4562     break 2
4563   fi
4564 done
4565 done
4566 IFS=$as_save_IFS
4567
4568   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4569   ;;
4570 esac
4571 fi
4572 CMP=$ac_cv_path_CMP
4573 if test -n "$CMP"; then
4574   { echo "$as_me:$LINENO: result: $CMP" >&5
4575 echo "${ECHO_T}$CMP" >&6; }
4576 else
4577   { echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6; }
4579 fi
4580
4581
4582 # Extract the first word of "tbl", so it can be a program name with args.
4583 set dummy tbl; ac_word=$2
4584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4586 if test "${ac_cv_path_TBL+set}" = set; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   case $TBL in
4590   [\\/]* | ?:[\\/]*)
4591   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4592   ;;
4593   *)
4594   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4596 do
4597   IFS=$as_save_IFS
4598   test -z "$as_dir" && as_dir=.
4599   for ac_exec_ext in '' $ac_executable_extensions; do
4600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4601     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4602     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4603     break 2
4604   fi
4605 done
4606 done
4607 IFS=$as_save_IFS
4608
4609   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4610   ;;
4611 esac
4612 fi
4613 TBL=$ac_cv_path_TBL
4614 if test -n "$TBL"; then
4615   { echo "$as_me:$LINENO: result: $TBL" >&5
4616 echo "${ECHO_T}$TBL" >&6; }
4617 else
4618   { echo "$as_me:$LINENO: result: no" >&5
4619 echo "${ECHO_T}no" >&6; }
4620 fi
4621
4622
4623 # Extract the first word of "ar", so it can be a program name with args.
4624 set dummy ar; ac_word=$2
4625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4627 if test "${ac_cv_path_AR+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   case $AR in
4631   [\\/]* | ?:[\\/]*)
4632   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4633   ;;
4634   *)
4635   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH
4637 do
4638   IFS=$as_save_IFS
4639   test -z "$as_dir" && as_dir=.
4640   for ac_exec_ext in '' $ac_executable_extensions; do
4641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4642     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4643     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4644     break 2
4645   fi
4646 done
4647 done
4648 IFS=$as_save_IFS
4649
4650   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4651   ;;
4652 esac
4653 fi
4654 AR=$ac_cv_path_AR
4655 if test -n "$AR"; then
4656   { echo "$as_me:$LINENO: result: $AR" >&5
4657 echo "${ECHO_T}$AR" >&6; }
4658 else
4659   { echo "$as_me:$LINENO: result: no" >&5
4660 echo "${ECHO_T}no" >&6; }
4661 fi
4662
4663
4664 # Extract the first word of "openssl", so it can be a program name with args.
4665 set dummy openssl; ac_word=$2
4666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4668 if test "${ac_cv_path_OPENSSL+set}" = set; then
4669   echo $ECHO_N "(cached) $ECHO_C" >&6
4670 else
4671   case $OPENSSL in
4672   [\\/]* | ?:[\\/]*)
4673   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4674   ;;
4675   *)
4676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH
4678 do
4679   IFS=$as_save_IFS
4680   test -z "$as_dir" && as_dir=.
4681   for ac_exec_ext in '' $ac_executable_extensions; do
4682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4685     break 2
4686   fi
4687 done
4688 done
4689 IFS=$as_save_IFS
4690
4691   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4692   ;;
4693 esac
4694 fi
4695 OPENSSL=$ac_cv_path_OPENSSL
4696 if test -n "$OPENSSL"; then
4697   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4698 echo "${ECHO_T}$OPENSSL" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705 # Extract the first word of "mtx", so it can be a program name with args.
4706 set dummy mtx; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_path_MTX+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   case $MTX in
4713   [\\/]* | ?:[\\/]*)
4714   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4715   ;;
4716   *)
4717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH
4719 do
4720   IFS=$as_save_IFS
4721   test -z "$as_dir" && as_dir=.
4722   for ac_exec_ext in '' $ac_executable_extensions; do
4723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4724     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4725     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4726     break 2
4727   fi
4728 done
4729 done
4730 IFS=$as_save_IFS
4731
4732   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4733   ;;
4734 esac
4735 fi
4736 MTX=$ac_cv_path_MTX
4737 if test -n "$MTX"; then
4738   { echo "$as_me:$LINENO: result: $MTX" >&5
4739 echo "${ECHO_T}$MTX" >&6; }
4740 else
4741   { echo "$as_me:$LINENO: result: no" >&5
4742 echo "${ECHO_T}no" >&6; }
4743 fi
4744
4745
4746 # Extract the first word of "dd", so it can be a program name with args.
4747 set dummy dd; ac_word=$2
4748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4750 if test "${ac_cv_path_DD+set}" = set; then
4751   echo $ECHO_N "(cached) $ECHO_C" >&6
4752 else
4753   case $DD in
4754   [\\/]* | ?:[\\/]*)
4755   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4756   ;;
4757   *)
4758   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH
4760 do
4761   IFS=$as_save_IFS
4762   test -z "$as_dir" && as_dir=.
4763   for ac_exec_ext in '' $ac_executable_extensions; do
4764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4765     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767     break 2
4768   fi
4769 done
4770 done
4771 IFS=$as_save_IFS
4772
4773   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4774   ;;
4775 esac
4776 fi
4777 DD=$ac_cv_path_DD
4778 if test -n "$DD"; then
4779   { echo "$as_me:$LINENO: result: $DD" >&5
4780 echo "${ECHO_T}$DD" >&6; }
4781 else
4782   { echo "$as_me:$LINENO: result: no" >&5
4783 echo "${ECHO_T}no" >&6; }
4784 fi
4785
4786
4787 # Extract the first word of "mkisofs", so it can be a program name with args.
4788 set dummy mkisofs; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_path_MKISOFS+set}" = set; then
4792   echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794   case $MKISOFS in
4795   [\\/]* | ?:[\\/]*)
4796   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4797   ;;
4798   *)
4799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804   for ac_exec_ext in '' $ac_executable_extensions; do
4805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4806     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811 done
4812 IFS=$as_save_IFS
4813
4814   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4815   ;;
4816 esac
4817 fi
4818 MKISOFS=$ac_cv_path_MKISOFS
4819 if test -n "$MKISOFS"; then
4820   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4821 echo "${ECHO_T}$MKISOFS" >&6; }
4822 else
4823   { echo "$as_me:$LINENO: result: no" >&5
4824 echo "${ECHO_T}no" >&6; }
4825 fi
4826
4827
4828 # Extract the first word of "python", so it can be a program name with args.
4829 set dummy python; ac_word=$2
4830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4832 if test "${ac_cv_path_PYTHON+set}" = set; then
4833   echo $ECHO_N "(cached) $ECHO_C" >&6
4834 else
4835   case $PYTHON in
4836   [\\/]* | ?:[\\/]*)
4837   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4838   ;;
4839   *)
4840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 for as_dir in $PATH
4842 do
4843   IFS=$as_save_IFS
4844   test -z "$as_dir" && as_dir=.
4845   for ac_exec_ext in '' $ac_executable_extensions; do
4846   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4847     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4849     break 2
4850   fi
4851 done
4852 done
4853 IFS=$as_save_IFS
4854
4855   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4856   ;;
4857 esac
4858 fi
4859 PYTHON=$ac_cv_path_PYTHON
4860 if test -n "$PYTHON"; then
4861   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4862 echo "${ECHO_T}$PYTHON" >&6; }
4863 else
4864   { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4866 fi
4867
4868
4869 # Extract the first word of "growisofs", so it can be a program name with args.
4870 set dummy growisofs; ac_word=$2
4871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4873 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4874   echo $ECHO_N "(cached) $ECHO_C" >&6
4875 else
4876   case $GROWISOFS in
4877   [\\/]* | ?:[\\/]*)
4878   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4879   ;;
4880   *)
4881   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4882 for as_dir in $PATH
4883 do
4884   IFS=$as_save_IFS
4885   test -z "$as_dir" && as_dir=.
4886   for ac_exec_ext in '' $ac_executable_extensions; do
4887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4888     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890     break 2
4891   fi
4892 done
4893 done
4894 IFS=$as_save_IFS
4895
4896   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4897   ;;
4898 esac
4899 fi
4900 GROWISOFS=$ac_cv_path_GROWISOFS
4901 if test -n "$GROWISOFS"; then
4902   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4903 echo "${ECHO_T}$GROWISOFS" >&6; }
4904 else
4905   { echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6; }
4907 fi
4908
4909
4910 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4911 set dummy dvd+rw-mediainfo; ac_word=$2
4912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4914 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4915   echo $ECHO_N "(cached) $ECHO_C" >&6
4916 else
4917   case $DVDRWMEDIAINFO in
4918   [\\/]* | ?:[\\/]*)
4919   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4920   ;;
4921   *)
4922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 for as_dir in $PATH
4924 do
4925   IFS=$as_save_IFS
4926   test -z "$as_dir" && as_dir=.
4927   for ac_exec_ext in '' $ac_executable_extensions; do
4928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4929     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4931     break 2
4932   fi
4933 done
4934 done
4935 IFS=$as_save_IFS
4936
4937   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4938   ;;
4939 esac
4940 fi
4941 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4942 if test -n "$DVDRWMEDIAINFO"; then
4943   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4944 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4945 else
4946   { echo "$as_me:$LINENO: result: no" >&5
4947 echo "${ECHO_T}no" >&6; }
4948 fi
4949
4950
4951 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4952 set dummy dvd+rw-format; ac_word=$2
4953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4955 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4956   echo $ECHO_N "(cached) $ECHO_C" >&6
4957 else
4958   case $DVDRWFORMAT in
4959   [\\/]* | ?:[\\/]*)
4960   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4961   ;;
4962   *)
4963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964 for as_dir in $PATH
4965 do
4966   IFS=$as_save_IFS
4967   test -z "$as_dir" && as_dir=.
4968   for ac_exec_ext in '' $ac_executable_extensions; do
4969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4970     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972     break 2
4973   fi
4974 done
4975 done
4976 IFS=$as_save_IFS
4977
4978   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4979   ;;
4980 esac
4981 fi
4982 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4983 if test -n "$DVDRWFORMAT"; then
4984   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4985 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4986 else
4987   { echo "$as_me:$LINENO: result: no" >&5
4988 echo "${ECHO_T}no" >&6; }
4989 fi
4990
4991
4992 # Extract the first word of "pkg-config", so it can be a program name with args.
4993 set dummy pkg-config; ac_word=$2
4994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4996 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4997   echo $ECHO_N "(cached) $ECHO_C" >&6
4998 else
4999   case $PKGCONFIG in
5000   [\\/]* | ?:[\\/]*)
5001   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5002   ;;
5003   *)
5004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007   IFS=$as_save_IFS
5008   test -z "$as_dir" && as_dir=.
5009   for ac_exec_ext in '' $ac_executable_extensions; do
5010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5011     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5012     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013     break 2
5014   fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5018
5019   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5020   ;;
5021 esac
5022 fi
5023 PKGCONFIG=$ac_cv_path_PKGCONFIG
5024 if test -n "$PKGCONFIG"; then
5025   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5026 echo "${ECHO_T}$PKGCONFIG" >&6; }
5027 else
5028   { echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6; }
5030 fi
5031
5032
5033
5034 if test "x$WXCONFIG" = x; then
5035   WXCONFIG=wx-config
5036 fi
5037 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5038 set dummy ${WXCONFIG}; ac_word=$2
5039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5041 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5042   echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044   case $WXCONFIG in
5045   [\\/]* | ?:[\\/]*)
5046   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5047   ;;
5048   *)
5049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050 for as_dir in $PATH
5051 do
5052   IFS=$as_save_IFS
5053   test -z "$as_dir" && as_dir=.
5054   for ac_exec_ext in '' $ac_executable_extensions; do
5055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5056     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5058     break 2
5059   fi
5060 done
5061 done
5062 IFS=$as_save_IFS
5063
5064   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5065   ;;
5066 esac
5067 fi
5068 WXCONFIG=$ac_cv_path_WXCONFIG
5069 if test -n "$WXCONFIG"; then
5070   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5071 echo "${ECHO_T}$WXCONFIG" >&6; }
5072 else
5073   { echo "$as_me:$LINENO: result: no" >&5
5074 echo "${ECHO_T}no" >&6; }
5075 fi
5076
5077
5078
5079 # Extract the first word of "cdrecord", so it can be a program name with args.
5080 set dummy cdrecord; ac_word=$2
5081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5083 if test "${ac_cv_path_CDRECORD+set}" = set; then
5084   echo $ECHO_N "(cached) $ECHO_C" >&6
5085 else
5086   case $CDRECORD in
5087   [\\/]* | ?:[\\/]*)
5088   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5089   ;;
5090   *)
5091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094   IFS=$as_save_IFS
5095   test -z "$as_dir" && as_dir=.
5096   for ac_exec_ext in '' $ac_executable_extensions; do
5097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5098     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5099     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100     break 2
5101   fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5107   ;;
5108 esac
5109 fi
5110 CDRECORD=$ac_cv_path_CDRECORD
5111 if test -n "$CDRECORD"; then
5112   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5113 echo "${ECHO_T}$CDRECORD" >&6; }
5114 else
5115   { echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6; }
5117 fi
5118
5119
5120 # Extract the first word of "pidof", so it can be a program name with args.
5121 set dummy pidof; ac_word=$2
5122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5124 if test "${ac_cv_path_PIDOF+set}" = set; then
5125   echo $ECHO_N "(cached) $ECHO_C" >&6
5126 else
5127   case $PIDOF in
5128   [\\/]* | ?:[\\/]*)
5129   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5130   ;;
5131   *)
5132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133 for as_dir in $PATH
5134 do
5135   IFS=$as_save_IFS
5136   test -z "$as_dir" && as_dir=.
5137   for ac_exec_ext in '' $ac_executable_extensions; do
5138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5139     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5141     break 2
5142   fi
5143 done
5144 done
5145 IFS=$as_save_IFS
5146
5147   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5148   ;;
5149 esac
5150 fi
5151 PIDOF=$ac_cv_path_PIDOF
5152 if test -n "$PIDOF"; then
5153   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5154 echo "${ECHO_T}$PIDOF" >&6; }
5155 else
5156   { echo "$as_me:$LINENO: result: no" >&5
5157 echo "${ECHO_T}no" >&6; }
5158 fi
5159
5160
5161 for ac_prog in gawk mawk nawk awk
5162 do
5163   # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5167 if test "${ac_cv_prog_AWK+set}" = set; then
5168   echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170   if test -n "$AWK"; then
5171   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178   for ac_exec_ext in '' $ac_executable_extensions; do
5179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5180     ac_cv_prog_AWK="$ac_prog"
5181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 AWK=$ac_cv_prog_AWK
5191 if test -n "$AWK"; then
5192   { echo "$as_me:$LINENO: result: $AWK" >&5
5193 echo "${ECHO_T}$AWK" >&6; }
5194 else
5195   { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5197 fi
5198
5199
5200   test -n "$AWK" && break
5201 done
5202
5203 # Some AWK programs fail, so test it and warn the user
5204 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5205       { if ((prog == $2) || (("(" prog ")") == $2) ||
5206            (("" prog "") == $2) ||
5207            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5208 else
5209   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5210    The regex engine of $AWK is too broken to be used you
5211    might want to install GNU AWK.
5212    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5213 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5214    The regex engine of $AWK is too broken to be used you
5215    might want to install GNU AWK.
5216    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5217    { (exit 1); exit 1; }; }
5218 fi
5219 THE_AWK=$AWK
5220 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5221 set dummy $THE_AWK; ac_word=$2
5222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5224 if test "${ac_cv_path_AWK+set}" = set; then
5225   echo $ECHO_N "(cached) $ECHO_C" >&6
5226 else
5227   case $AWK in
5228   [\\/]* | ?:[\\/]*)
5229   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5230   ;;
5231   *)
5232   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5233 for as_dir in $PATH
5234 do
5235   IFS=$as_save_IFS
5236   test -z "$as_dir" && as_dir=.
5237   for ac_exec_ext in '' $ac_executable_extensions; do
5238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5239     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5240     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5241     break 2
5242   fi
5243 done
5244 done
5245 IFS=$as_save_IFS
5246
5247   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5248   ;;
5249 esac
5250 fi
5251 AWK=$ac_cv_path_AWK
5252 if test -n "$AWK"; then
5253   { echo "$as_me:$LINENO: result: $AWK" >&5
5254 echo "${ECHO_T}$AWK" >&6; }
5255 else
5256   { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5258 fi
5259
5260
5261
5262 test -n "$ARFLAG" || ARFLAGS="cr"
5263
5264
5265 MAKE_SHELL=/bin/sh
5266
5267
5268
5269
5270
5271
5272
5273 # Make sure we can run config.sub.
5274 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5275   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5276 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5277    { (exit 1); exit 1; }; }
5278
5279 { echo "$as_me:$LINENO: checking build system type" >&5
5280 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5281 if test "${ac_cv_build+set}" = set; then
5282   echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284   ac_build_alias=$build_alias
5285 test "x$ac_build_alias" = x &&
5286   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5287 test "x$ac_build_alias" = x &&
5288   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5289 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5290    { (exit 1); exit 1; }; }
5291 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5292   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5293 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5294    { (exit 1); exit 1; }; }
5295
5296 fi
5297 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5298 echo "${ECHO_T}$ac_cv_build" >&6; }
5299 case $ac_cv_build in
5300 *-*-*) ;;
5301 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5302 echo "$as_me: error: invalid value of canonical build" >&2;}
5303    { (exit 1); exit 1; }; };;
5304 esac
5305 build=$ac_cv_build
5306 ac_save_IFS=$IFS; IFS='-'
5307 set x $ac_cv_build
5308 shift
5309 build_cpu=$1
5310 build_vendor=$2
5311 shift; shift
5312 # Remember, the first character of IFS is used to create $*,
5313 # except with old shells:
5314 build_os=$*
5315 IFS=$ac_save_IFS
5316 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5317
5318
5319
5320 { echo "$as_me:$LINENO: checking host system type" >&5
5321 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5322 if test "${ac_cv_host+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   if test "x$host_alias" = x; then
5326   ac_cv_host=$ac_cv_build
5327 else
5328   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5329     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5330 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5331    { (exit 1); exit 1; }; }
5332 fi
5333
5334 fi
5335 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5336 echo "${ECHO_T}$ac_cv_host" >&6; }
5337 case $ac_cv_host in
5338 *-*-*) ;;
5339 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5340 echo "$as_me: error: invalid value of canonical host" >&2;}
5341    { (exit 1); exit 1; }; };;
5342 esac
5343 host=$ac_cv_host
5344 ac_save_IFS=$IFS; IFS='-'
5345 set x $ac_cv_host
5346 shift
5347 host_cpu=$1
5348 host_vendor=$2
5349 shift; shift
5350 # Remember, the first character of IFS is used to create $*,
5351 # except with old shells:
5352 host_os=$*
5353 IFS=$ac_save_IFS
5354 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5355
5356
5357 case $host_os in
5358   *cygwin* ) CYGWIN=yes;;
5359          * ) CYGWIN=no;;
5360 esac
5361
5362 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5363 then
5364
5365
5366 if $TRUEPRG; then
5367   HAVE_SUN_OS_TRUE=
5368   HAVE_SUN_OS_FALSE='#'
5369 else
5370   HAVE_SUN_OS_TRUE='#'
5371   HAVE_SUN_OS_FALSE=
5372 fi
5373         cat >>confdefs.h <<\_ACEOF
5374 #define HAVE_SUN_OS 1
5375 _ACEOF
5376
5377 else
5378
5379
5380 if $FALSEPRG; then
5381   HAVE_SUN_OS_TRUE=
5382   HAVE_SUN_OS_FALSE='#'
5383 else
5384   HAVE_SUN_OS_TRUE='#'
5385   HAVE_SUN_OS_FALSE=
5386 fi
5387 fi
5388
5389 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5390 then
5391
5392
5393 if $TRUEPRG; then
5394   HAVE_OSF1_OS_TRUE=
5395   HAVE_OSF1_OS_FALSE='#'
5396 else
5397   HAVE_OSF1_OS_TRUE='#'
5398   HAVE_OSF1_OS_FALSE=
5399 fi
5400         cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_OSF1_OS 1
5402 _ACEOF
5403
5404 else
5405
5406
5407 if $FALSEPRG; then
5408   HAVE_OSF1_OS_TRUE=
5409   HAVE_OSF1_OS_FALSE='#'
5410 else
5411   HAVE_OSF1_OS_TRUE='#'
5412   HAVE_OSF1_OS_FALSE=
5413 fi
5414 fi
5415
5416 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5417 then
5418
5419
5420 if $TRUEPRG; then
5421   HAVE_AIX_OS_TRUE=
5422   HAVE_AIX_OS_FALSE='#'
5423 else
5424   HAVE_AIX_OS_TRUE='#'
5425   HAVE_AIX_OS_FALSE=
5426 fi
5427         cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_AIX_OS 1
5429 _ACEOF
5430
5431 else
5432
5433
5434 if $FALSEPRG; then
5435   HAVE_AIX_OS_TRUE=
5436   HAVE_AIX_OS_FALSE='#'
5437 else
5438   HAVE_AIX_OS_TRUE='#'
5439   HAVE_AIX_OS_FALSE=
5440 fi
5441 fi
5442
5443 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5444 then
5445
5446
5447 if $TRUEPRG; then
5448   HAVE_HPUX_OS_TRUE=
5449   HAVE_HPUX_OS_FALSE='#'
5450 else
5451   HAVE_HPUX_OS_TRUE='#'
5452   HAVE_HPUX_OS_FALSE=
5453 fi
5454         cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_HPUX_OS 1
5456 _ACEOF
5457
5458 else
5459
5460
5461 if $FALSEPRG; then
5462   HAVE_HPUX_OS_TRUE=
5463   HAVE_HPUX_OS_FALSE='#'
5464 else
5465   HAVE_HPUX_OS_TRUE='#'
5466   HAVE_HPUX_OS_FALSE=
5467 fi
5468 fi
5469
5470 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5471 then
5472
5473
5474 if $TRUEPRG; then
5475   HAVE_LINUX_OS_TRUE=
5476   HAVE_LINUX_OS_FALSE='#'
5477 else
5478   HAVE_LINUX_OS_TRUE='#'
5479   HAVE_LINUX_OS_FALSE=
5480 fi
5481         cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_LINUX_OS 1
5483 _ACEOF
5484
5485 else
5486
5487
5488 if $FALSEPRG; then
5489   HAVE_LINUX_OS_TRUE=
5490   HAVE_LINUX_OS_FALSE='#'
5491 else
5492   HAVE_LINUX_OS_TRUE='#'
5493   HAVE_LINUX_OS_FALSE=
5494 fi
5495 fi
5496
5497 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5498 then
5499
5500
5501 if $TRUEPRG; then
5502   HAVE_FREEBSD_OS_TRUE=
5503   HAVE_FREEBSD_OS_FALSE='#'
5504 else
5505   HAVE_FREEBSD_OS_TRUE='#'
5506   HAVE_FREEBSD_OS_FALSE=
5507 fi
5508         cat >>confdefs.h <<\_ACEOF
5509 #define HAVE_FREEBSD_OS 1
5510 _ACEOF
5511
5512 else
5513
5514
5515 if $FALSEPRG; then
5516   HAVE_FREEBSD_OS_TRUE=
5517   HAVE_FREEBSD_OS_FALSE='#'
5518 else
5519   HAVE_FREEBSD_OS_TRUE='#'
5520   HAVE_FREEBSD_OS_FALSE=
5521 fi
5522 fi
5523
5524 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5525 then
5526
5527
5528 if $TRUEPRG; then
5529   HAVE_NETBSD_OS_TRUE=
5530   HAVE_NETBSD_OS_FALSE='#'
5531 else
5532   HAVE_NETBSD_OS_TRUE='#'
5533   HAVE_NETBSD_OS_FALSE=
5534 fi
5535         cat >>confdefs.h <<\_ACEOF
5536 #define HAVE_NETBSD_OS 1
5537 _ACEOF
5538
5539 else
5540
5541
5542 if $FALSEPRG; then
5543   HAVE_NETBSD_OS_TRUE=
5544   HAVE_NETBSD_OS_FALSE='#'
5545 else
5546   HAVE_NETBSD_OS_TRUE='#'
5547   HAVE_NETBSD_OS_FALSE=
5548 fi
5549 fi
5550
5551 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5552 then
5553
5554
5555 if $TRUEPRG; then
5556   HAVE_OPENBSD_OS_TRUE=
5557   HAVE_OPENBSD_OS_FALSE='#'
5558 else
5559   HAVE_OPENBSD_OS_TRUE='#'
5560   HAVE_OPENBSD_OS_FALSE=
5561 fi
5562         cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_OPENBSD_OS 1
5564 _ACEOF
5565
5566 else
5567
5568
5569 if $FALSEPRG; then
5570   HAVE_OPENBSD_OS_TRUE=
5571   HAVE_OPENBSD_OS_FALSE='#'
5572 else
5573   HAVE_OPENBSD_OS_TRUE='#'
5574   HAVE_OPENBSD_OS_FALSE=
5575 fi
5576 fi
5577
5578 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5579 then
5580
5581
5582 if $TRUEPRG; then
5583   HAVE_BSDI_OS_TRUE=
5584   HAVE_BSDI_OS_FALSE='#'
5585 else
5586   HAVE_BSDI_OS_TRUE='#'
5587   HAVE_BSDI_OS_FALSE=
5588 fi
5589         cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_BSDI_OS 1
5591 _ACEOF
5592
5593 else
5594
5595
5596 if $FALSEPRG; then
5597   HAVE_BSDI_OS_TRUE=
5598   HAVE_BSDI_OS_FALSE='#'
5599 else
5600   HAVE_BSDI_OS_TRUE='#'
5601   HAVE_BSDI_OS_FALSE=
5602 fi
5603 fi
5604
5605 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5606 then
5607
5608
5609 if $TRUEPRG; then
5610   HAVE_SGI_OS_TRUE=
5611   HAVE_SGI_OS_FALSE='#'
5612 else
5613   HAVE_SGI_OS_TRUE='#'
5614   HAVE_SGI_OS_FALSE=
5615 fi
5616         cat >>confdefs.h <<\_ACEOF
5617 #define HAVE_SGI_OS 1
5618 _ACEOF
5619
5620 else
5621
5622
5623 if $FALSEPRG; then
5624   HAVE_SGI_OS_TRUE=
5625   HAVE_SGI_OS_FALSE='#'
5626 else
5627   HAVE_SGI_OS_TRUE='#'
5628   HAVE_SGI_OS_FALSE=
5629 fi
5630 fi
5631
5632 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5633 then
5634
5635
5636 if $TRUEPRG; then
5637   HAVE_IRIX_OS_TRUE=
5638   HAVE_IRIX_OS_FALSE='#'
5639 else
5640   HAVE_IRIX_OS_TRUE='#'
5641   HAVE_IRIX_OS_FALSE=
5642 fi
5643         cat >>confdefs.h <<\_ACEOF
5644 #define HAVE_IRIX_OS 1
5645 _ACEOF
5646
5647 else
5648
5649
5650 if $FALSEPRG; then
5651   HAVE_IRIX_OS_TRUE=
5652   HAVE_IRIX_OS_FALSE='#'
5653 else
5654   HAVE_IRIX_OS_TRUE='#'
5655   HAVE_IRIX_OS_FALSE=
5656 fi
5657 fi
5658
5659 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5660 then
5661
5662
5663 if $TRUEPRG; then
5664   HAVE_DARWIN_OS_TRUE=
5665   HAVE_DARWIN_OS_FALSE='#'
5666 else
5667   HAVE_DARWIN_OS_TRUE='#'
5668   HAVE_DARWIN_OS_FALSE=
5669 fi
5670     cat >>confdefs.h <<\_ACEOF
5671 #define HAVE_DARWIN_OS 1
5672 _ACEOF
5673
5674 else
5675
5676
5677 if $FALSEPRG; then
5678   HAVE_DARWIN_OS_TRUE=
5679   HAVE_DARWIN_OS_FALSE='#'
5680 else
5681   HAVE_DARWIN_OS_TRUE='#'
5682   HAVE_DARWIN_OS_FALSE=
5683 fi
5684 fi
5685
5686
5687 # -----------------------------------------------------------
5688 # ----------------------------------------------------------
5689 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5690 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5691 if test "x$DISTNAME" != "x"
5692 then
5693         echo "distname set to $DISTNAME"
5694 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5695 then
5696         DISTNAME=alpha
5697 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5698 then
5699         DISTNAME=aix
5700 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5701 then
5702         DISTNAME=hpux
5703 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5704 then
5705         DISTNAME=solaris
5706 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5707 then
5708         DISTNAME=freebsd
5709 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5710 then
5711         DISTNAME=netbsd
5712 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5713 then
5714         DISTNAME=openbsd
5715 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5716 then
5717         DISTNAME=irix
5718 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5719 then
5720         DISTNAME=bsdi
5721 elif test -f /etc/SuSE-release
5722 then
5723         DISTNAME=suse
5724 elif test -d /etc/SuSEconfig
5725 then
5726         DISTNAME=suse5
5727 elif test -f /etc/mandrake-release
5728 then
5729         DISTNAME=mandrake
5730 elif test -f /etc/whitebox-release
5731 then
5732        DISTNAME=redhat
5733 elif test -f /etc/redhat-release
5734 then
5735         DISTNAME=redhat
5736 elif test -f /etc/gentoo-release
5737 then
5738         DISTNAME=gentoo
5739 elif test -f /etc/debian_version
5740 then
5741         DISTNAME=debian
5742 elif test -f /etc/slackware-version
5743 then
5744         DISTNAME=slackware
5745 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5746 then
5747     DISTNAME=darwin
5748 elif test -f /etc/engarde-version
5749 then
5750         DISTNAME=engarde
5751 elif test "$CYGWIN" = yes
5752 then
5753         DISTNAME=cygwin
5754         cat >>confdefs.h <<\_ACEOF
5755 #define HAVE_CYGWIN 1
5756 _ACEOF
5757
5758 else
5759         DISTNAME=unknown
5760 fi
5761 { echo "$as_me:$LINENO: result: done" >&5
5762 echo "${ECHO_T}done" >&6; }
5763
5764
5765 # --------------------------------------------------
5766 # Suppport for gettext (translations)
5767 # By default, $datadir is ${prefix}/share
5768 # --------------------------------------------------
5769 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5771 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   cat >conftest.make <<\_ACEOF
5776 SHELL = /bin/sh
5777 all:
5778         @echo '@@@%%%=$(MAKE)=@@@%%%'
5779 _ACEOF
5780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5782   *@@@%%%=?*=@@@%%%*)
5783     eval ac_cv_prog_make_${ac_make}_set=yes;;
5784   *)
5785     eval ac_cv_prog_make_${ac_make}_set=no;;
5786 esac
5787 rm -f conftest.make
5788 fi
5789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5790   { echo "$as_me:$LINENO: result: yes" >&5
5791 echo "${ECHO_T}yes" >&6; }
5792   SET_MAKE=
5793 else
5794   { echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6; }
5796   SET_MAKE="MAKE=${MAKE-make}"
5797 fi
5798
5799
5800
5801         MKINSTALLDIRS=
5802   if test -n "$ac_aux_dir"; then
5803     case "$ac_aux_dir" in
5804       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5805       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5806     esac
5807   fi
5808   if test -z "$MKINSTALLDIRS"; then
5809     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5810   fi
5811
5812
5813
5814   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5815 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5816     # Check whether --enable-nls was given.
5817 if test "${enable_nls+set}" = set; then
5818   enableval=$enable_nls; USE_NLS=$enableval
5819 else
5820   USE_NLS=yes
5821 fi
5822
5823   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5824 echo "${ECHO_T}$USE_NLS" >&6; }
5825
5826
5827
5828
5829
5830
5831 # Prepare PATH_SEPARATOR.
5832 # The user is always right.
5833 if test "${PATH_SEPARATOR+set}" != set; then
5834   echo "#! /bin/sh" >conf$$.sh
5835   echo  "exit 0"   >>conf$$.sh
5836   chmod +x conf$$.sh
5837   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5838     PATH_SEPARATOR=';'
5839   else
5840     PATH_SEPARATOR=:
5841   fi
5842   rm -f conf$$.sh
5843 fi
5844
5845 # Find out how to test for executable files. Don't use a zero-byte file,
5846 # as systems may use methods other than mode bits to determine executability.
5847 cat >conf$$.file <<_ASEOF
5848 #! /bin/sh
5849 exit 0
5850 _ASEOF
5851 chmod +x conf$$.file
5852 if test -x conf$$.file >/dev/null 2>&1; then
5853   ac_executable_p="test -x"
5854 else
5855   ac_executable_p="test -f"
5856 fi
5857 rm -f conf$$.file
5858
5859 # Extract the first word of "msgfmt", so it can be a program name with args.
5860 set dummy msgfmt; ac_word=$2
5861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5863 if test "${ac_cv_path_MSGFMT+set}" = set; then
5864   echo $ECHO_N "(cached) $ECHO_C" >&6
5865 else
5866   case "$MSGFMT" in
5867   [\\/]* | ?:[\\/]*)
5868     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5869     ;;
5870   *)
5871     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5872     for ac_dir in $PATH; do
5873       IFS="$ac_save_IFS"
5874       test -z "$ac_dir" && ac_dir=.
5875       for ac_exec_ext in '' $ac_executable_extensions; do
5876         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5877           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5878           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5879      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5880             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5881             break 2
5882           fi
5883         fi
5884       done
5885     done
5886     IFS="$ac_save_IFS"
5887   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5888     ;;
5889 esac
5890 fi
5891 MSGFMT="$ac_cv_path_MSGFMT"
5892 if test "$MSGFMT" != ":"; then
5893   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5894 echo "${ECHO_T}$MSGFMT" >&6; }
5895 else
5896   { echo "$as_me:$LINENO: result: no" >&5
5897 echo "${ECHO_T}no" >&6; }
5898 fi
5899
5900   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5901 set dummy gmsgfmt; ac_word=$2
5902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5904 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5905   echo $ECHO_N "(cached) $ECHO_C" >&6
5906 else
5907   case $GMSGFMT in
5908   [\\/]* | ?:[\\/]*)
5909   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5910   ;;
5911   *)
5912   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5913 for as_dir in $PATH
5914 do
5915   IFS=$as_save_IFS
5916   test -z "$as_dir" && as_dir=.
5917   for ac_exec_ext in '' $ac_executable_extensions; do
5918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5919     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5920     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5921     break 2
5922   fi
5923 done
5924 done
5925 IFS=$as_save_IFS
5926
5927   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5928   ;;
5929 esac
5930 fi
5931 GMSGFMT=$ac_cv_path_GMSGFMT
5932 if test -n "$GMSGFMT"; then
5933   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5934 echo "${ECHO_T}$GMSGFMT" >&6; }
5935 else
5936   { echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6; }
5938 fi
5939
5940
5941
5942
5943 # Prepare PATH_SEPARATOR.
5944 # The user is always right.
5945 if test "${PATH_SEPARATOR+set}" != set; then
5946   echo "#! /bin/sh" >conf$$.sh
5947   echo  "exit 0"   >>conf$$.sh
5948   chmod +x conf$$.sh
5949   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5950     PATH_SEPARATOR=';'
5951   else
5952     PATH_SEPARATOR=:
5953   fi
5954   rm -f conf$$.sh
5955 fi
5956
5957 # Find out how to test for executable files. Don't use a zero-byte file,
5958 # as systems may use methods other than mode bits to determine executability.
5959 cat >conf$$.file <<_ASEOF
5960 #! /bin/sh
5961 exit 0
5962 _ASEOF
5963 chmod +x conf$$.file
5964 if test -x conf$$.file >/dev/null 2>&1; then
5965   ac_executable_p="test -x"
5966 else
5967   ac_executable_p="test -f"
5968 fi
5969 rm -f conf$$.file
5970
5971 # Extract the first word of "xgettext", so it can be a program name with args.
5972 set dummy xgettext; ac_word=$2
5973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5975 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5976   echo $ECHO_N "(cached) $ECHO_C" >&6
5977 else
5978   case "$XGETTEXT" in
5979   [\\/]* | ?:[\\/]*)
5980     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5981     ;;
5982   *)
5983     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5984     for ac_dir in $PATH; do
5985       IFS="$ac_save_IFS"
5986       test -z "$ac_dir" && ac_dir=.
5987       for ac_exec_ext in '' $ac_executable_extensions; do
5988         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5989           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5990           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5991      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5992             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5993             break 2
5994           fi
5995         fi
5996       done
5997     done
5998     IFS="$ac_save_IFS"
5999   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6000     ;;
6001 esac
6002 fi
6003 XGETTEXT="$ac_cv_path_XGETTEXT"
6004 if test "$XGETTEXT" != ":"; then
6005   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6006 echo "${ECHO_T}$XGETTEXT" >&6; }
6007 else
6008   { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6010 fi
6011
6012     rm -f messages.po
6013
6014
6015 # Prepare PATH_SEPARATOR.
6016 # The user is always right.
6017 if test "${PATH_SEPARATOR+set}" != set; then
6018   echo "#! /bin/sh" >conf$$.sh
6019   echo  "exit 0"   >>conf$$.sh
6020   chmod +x conf$$.sh
6021   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6022     PATH_SEPARATOR=';'
6023   else
6024     PATH_SEPARATOR=:
6025   fi
6026   rm -f conf$$.sh
6027 fi
6028
6029 # Find out how to test for executable files. Don't use a zero-byte file,
6030 # as systems may use methods other than mode bits to determine executability.
6031 cat >conf$$.file <<_ASEOF
6032 #! /bin/sh
6033 exit 0
6034 _ASEOF
6035 chmod +x conf$$.file
6036 if test -x conf$$.file >/dev/null 2>&1; then
6037   ac_executable_p="test -x"
6038 else
6039   ac_executable_p="test -f"
6040 fi
6041 rm -f conf$$.file
6042
6043 # Extract the first word of "msgmerge", so it can be a program name with args.
6044 set dummy msgmerge; ac_word=$2
6045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6047 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6048   echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050   case "$MSGMERGE" in
6051   [\\/]* | ?:[\\/]*)
6052     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6053     ;;
6054   *)
6055     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6056     for ac_dir in $PATH; do
6057       IFS="$ac_save_IFS"
6058       test -z "$ac_dir" && ac_dir=.
6059       for ac_exec_ext in '' $ac_executable_extensions; do
6060         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6061           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6062           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6063             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6064             break 2
6065           fi
6066         fi
6067       done
6068     done
6069     IFS="$ac_save_IFS"
6070   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6071     ;;
6072 esac
6073 fi
6074 MSGMERGE="$ac_cv_path_MSGMERGE"
6075 if test "$MSGMERGE" != ":"; then
6076   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6077 echo "${ECHO_T}$MSGMERGE" >&6; }
6078 else
6079   { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6081 fi
6082
6083
6084       if test "$GMSGFMT" != ":"; then
6085             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6086        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6087       : ;
6088     else
6089       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6090       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6091 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6092       GMSGFMT=":"
6093     fi
6094   fi
6095
6096       if test "$XGETTEXT" != ":"; then
6097             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6098        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6099       : ;
6100     else
6101       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6102 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6103       XGETTEXT=":"
6104     fi
6105         rm -f messages.po
6106   fi
6107
6108   ac_config_commands="$ac_config_commands default-1"
6109
6110
6111
6112       if test "X$prefix" = "XNONE"; then
6113     acl_final_prefix="$ac_default_prefix"
6114   else
6115     acl_final_prefix="$prefix"
6116   fi
6117   if test "X$exec_prefix" = "XNONE"; then
6118     acl_final_exec_prefix='${prefix}'
6119   else
6120     acl_final_exec_prefix="$exec_prefix"
6121   fi
6122   acl_save_prefix="$prefix"
6123   prefix="$acl_final_prefix"
6124   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6125   prefix="$acl_save_prefix"
6126
6127
6128 # Check whether --with-gnu-ld was given.
6129 if test "${with_gnu_ld+set}" = set; then
6130   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6131 else
6132   with_gnu_ld=no
6133 fi
6134
6135 # Prepare PATH_SEPARATOR.
6136 # The user is always right.
6137 if test "${PATH_SEPARATOR+set}" != set; then
6138   echo "#! /bin/sh" >conf$$.sh
6139   echo  "exit 0"   >>conf$$.sh
6140   chmod +x conf$$.sh
6141   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6142     PATH_SEPARATOR=';'
6143   else
6144     PATH_SEPARATOR=:
6145   fi
6146   rm -f conf$$.sh
6147 fi
6148 ac_prog=ld
6149 if test "$GCC" = yes; then
6150   # Check if gcc -print-prog-name=ld gives a path.
6151   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6152 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6153   case $host in
6154   *-*-mingw*)
6155     # gcc leaves a trailing carriage return which upsets mingw
6156     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6157   *)
6158     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6159   esac
6160   case $ac_prog in
6161     # Accept absolute paths.
6162     [\\/]* | [A-Za-z]:[\\/]*)
6163       re_direlt='/[^/][^/]*/\.\./'
6164       # Canonicalize the path of ld
6165       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6166       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6167         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6168       done
6169       test -z "$LD" && LD="$ac_prog"
6170       ;;
6171   "")
6172     # If it fails, then pretend we aren't using GCC.
6173     ac_prog=ld
6174     ;;
6175   *)
6176     # If it is relative, then search for the first ld in PATH.
6177     with_gnu_ld=unknown
6178     ;;
6179   esac
6180 elif test "$with_gnu_ld" = yes; then
6181   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6182 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6183 else
6184   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6185 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6186 fi
6187 if test "${acl_cv_path_LD+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   if test -z "$LD"; then
6191   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6192   for ac_dir in $PATH; do
6193     test -z "$ac_dir" && ac_dir=.
6194     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6195       acl_cv_path_LD="$ac_dir/$ac_prog"
6196       # Check to see if the program is GNU ld.  I'd rather use --version,
6197       # but apparently some GNU ld's only accept -v.
6198       # Break only if it was the GNU/non-GNU ld that we prefer.
6199       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6200       *GNU* | *'with BFD'*)
6201         test "$with_gnu_ld" != no && break ;;
6202       *)
6203         test "$with_gnu_ld" != yes && break ;;
6204       esac
6205     fi
6206   done
6207   IFS="$ac_save_ifs"
6208 else
6209   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6210 fi
6211 fi
6212
6213 LD="$acl_cv_path_LD"
6214 if test -n "$LD"; then
6215   { echo "$as_me:$LINENO: result: $LD" >&5
6216 echo "${ECHO_T}$LD" >&6; }
6217 else
6218   { echo "$as_me:$LINENO: result: no" >&5
6219 echo "${ECHO_T}no" >&6; }
6220 fi
6221 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6222 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6223    { (exit 1); exit 1; }; }
6224 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6225 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6226 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6227   echo $ECHO_N "(cached) $ECHO_C" >&6
6228 else
6229   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6230 case `$LD -v 2>&1 </dev/null` in
6231 *GNU* | *'with BFD'*)
6232   acl_cv_prog_gnu_ld=yes ;;
6233 *)
6234   acl_cv_prog_gnu_ld=no ;;
6235 esac
6236 fi
6237 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6238 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6239 with_gnu_ld=$acl_cv_prog_gnu_ld
6240
6241
6242
6243
6244                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6245 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6246 if test "${acl_cv_rpath+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249
6250     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6251     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6252     . ./conftest.sh
6253     rm -f ./conftest.sh
6254     acl_cv_rpath=done
6255
6256 fi
6257 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6258 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6259   wl="$acl_cv_wl"
6260   libext="$acl_cv_libext"
6261   shlibext="$acl_cv_shlibext"
6262   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6263   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6264   hardcode_direct="$acl_cv_hardcode_direct"
6265   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6266     # Check whether --enable-rpath was given.
6267 if test "${enable_rpath+set}" = set; then
6268   enableval=$enable_rpath; :
6269 else
6270   enable_rpath=yes
6271 fi
6272
6273
6274
6275
6276
6277
6278
6279
6280     use_additional=yes
6281
6282   acl_save_prefix="$prefix"
6283   prefix="$acl_final_prefix"
6284   acl_save_exec_prefix="$exec_prefix"
6285   exec_prefix="$acl_final_exec_prefix"
6286
6287     eval additional_includedir=\"$includedir\"
6288     eval additional_libdir=\"$libdir\"
6289
6290   exec_prefix="$acl_save_exec_prefix"
6291   prefix="$acl_save_prefix"
6292
6293
6294 # Check whether --with-libiconv-prefix was given.
6295 if test "${with_libiconv_prefix+set}" = set; then
6296   withval=$with_libiconv_prefix;
6297     if test "X$withval" = "Xno"; then
6298       use_additional=no
6299     else
6300       if test "X$withval" = "X"; then
6301
6302   acl_save_prefix="$prefix"
6303   prefix="$acl_final_prefix"
6304   acl_save_exec_prefix="$exec_prefix"
6305   exec_prefix="$acl_final_exec_prefix"
6306
6307           eval additional_includedir=\"$includedir\"
6308           eval additional_libdir=\"$libdir\"
6309
6310   exec_prefix="$acl_save_exec_prefix"
6311   prefix="$acl_save_prefix"
6312
6313       else
6314         additional_includedir="$withval/include"
6315         additional_libdir="$withval/lib"
6316       fi
6317     fi
6318
6319 fi
6320
6321       LIBICONV=
6322   LTLIBICONV=
6323   INCICONV=
6324   rpathdirs=
6325   ltrpathdirs=
6326   names_already_handled=
6327   names_next_round='iconv '
6328   while test -n "$names_next_round"; do
6329     names_this_round="$names_next_round"
6330     names_next_round=
6331     for name in $names_this_round; do
6332       already_handled=
6333       for n in $names_already_handled; do
6334         if test "$n" = "$name"; then
6335           already_handled=yes
6336           break
6337         fi
6338       done
6339       if test -z "$already_handled"; then
6340         names_already_handled="$names_already_handled $name"
6341                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6342         eval value=\"\$HAVE_LIB$uppername\"
6343         if test -n "$value"; then
6344           if test "$value" = yes; then
6345             eval value=\"\$LIB$uppername\"
6346             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6347             eval value=\"\$LTLIB$uppername\"
6348             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6349           else
6350                                     :
6351           fi
6352         else
6353                               found_dir=
6354           found_la=
6355           found_so=
6356           found_a=
6357           if test $use_additional = yes; then
6358             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6359               found_dir="$additional_libdir"
6360               found_so="$additional_libdir/lib$name.$shlibext"
6361               if test -f "$additional_libdir/lib$name.la"; then
6362                 found_la="$additional_libdir/lib$name.la"
6363               fi
6364             else
6365               if test -f "$additional_libdir/lib$name.$libext"; then
6366                 found_dir="$additional_libdir"
6367                 found_a="$additional_libdir/lib$name.$libext"
6368                 if test -f "$additional_libdir/lib$name.la"; then
6369                   found_la="$additional_libdir/lib$name.la"
6370                 fi
6371               fi
6372             fi
6373           fi
6374           if test "X$found_dir" = "X"; then
6375             for x in $LDFLAGS $LTLIBICONV; do
6376
6377   acl_save_prefix="$prefix"
6378   prefix="$acl_final_prefix"
6379   acl_save_exec_prefix="$exec_prefix"
6380   exec_prefix="$acl_final_exec_prefix"
6381   eval x=\"$x\"
6382   exec_prefix="$acl_save_exec_prefix"
6383   prefix="$acl_save_prefix"
6384
6385               case "$x" in
6386                 -L*)
6387                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6388                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6389                     found_dir="$dir"
6390                     found_so="$dir/lib$name.$shlibext"
6391                     if test -f "$dir/lib$name.la"; then
6392                       found_la="$dir/lib$name.la"
6393                     fi
6394                   else
6395                     if test -f "$dir/lib$name.$libext"; then
6396                       found_dir="$dir"
6397                       found_a="$dir/lib$name.$libext"
6398                       if test -f "$dir/lib$name.la"; then
6399                         found_la="$dir/lib$name.la"
6400                       fi
6401                     fi
6402                   fi
6403                   ;;
6404               esac
6405               if test "X$found_dir" != "X"; then
6406                 break
6407               fi
6408             done
6409           fi
6410           if test "X$found_dir" != "X"; then
6411                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6412             if test "X$found_so" != "X"; then
6413                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6414                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6415               else
6416                                                                                 haveit=
6417                 for x in $ltrpathdirs; do
6418                   if test "X$x" = "X$found_dir"; then
6419                     haveit=yes
6420                     break
6421                   fi
6422                 done
6423                 if test -z "$haveit"; then
6424                   ltrpathdirs="$ltrpathdirs $found_dir"
6425                 fi
6426                                 if test "$hardcode_direct" = yes; then
6427                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6428                 else
6429                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6430                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6431                                                             haveit=
6432                     for x in $rpathdirs; do
6433                       if test "X$x" = "X$found_dir"; then
6434                         haveit=yes
6435                         break
6436                       fi
6437                     done
6438                     if test -z "$haveit"; then
6439                       rpathdirs="$rpathdirs $found_dir"
6440                     fi
6441                   else
6442                                                                                 haveit=
6443                     for x in $LDFLAGS $LIBICONV; do
6444
6445   acl_save_prefix="$prefix"
6446   prefix="$acl_final_prefix"
6447   acl_save_exec_prefix="$exec_prefix"
6448   exec_prefix="$acl_final_exec_prefix"
6449   eval x=\"$x\"
6450   exec_prefix="$acl_save_exec_prefix"
6451   prefix="$acl_save_prefix"
6452
6453                       if test "X$x" = "X-L$found_dir"; then
6454                         haveit=yes
6455                         break
6456                       fi
6457                     done
6458                     if test -z "$haveit"; then
6459                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6460                     fi
6461                     if test "$hardcode_minus_L" != no; then
6462                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6463                     else
6464                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6465                     fi
6466                   fi
6467                 fi
6468               fi
6469             else
6470               if test "X$found_a" != "X"; then
6471                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6472               else
6473                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6474               fi
6475             fi
6476                         additional_includedir=
6477             case "$found_dir" in
6478               */lib | */lib/)
6479                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6480                 additional_includedir="$basedir/include"
6481                 ;;
6482             esac
6483             if test "X$additional_includedir" != "X"; then
6484                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6485                 haveit=
6486                 if test "X$additional_includedir" = "X/usr/local/include"; then
6487                   if test -n "$GCC"; then
6488                     case $host_os in
6489                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6490                     esac
6491                   fi
6492                 fi
6493                 if test -z "$haveit"; then
6494                   for x in $CPPFLAGS $INCICONV; do
6495
6496   acl_save_prefix="$prefix"
6497   prefix="$acl_final_prefix"
6498   acl_save_exec_prefix="$exec_prefix"
6499   exec_prefix="$acl_final_exec_prefix"
6500   eval x=\"$x\"
6501   exec_prefix="$acl_save_exec_prefix"
6502   prefix="$acl_save_prefix"
6503
6504                     if test "X$x" = "X-I$additional_includedir"; then
6505                       haveit=yes
6506                       break
6507                     fi
6508                   done
6509                   if test -z "$haveit"; then
6510                     if test -d "$additional_includedir"; then
6511                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6512                     fi
6513                   fi
6514                 fi
6515               fi
6516             fi
6517                         if test -n "$found_la"; then
6518                                                         save_libdir="$libdir"
6519               case "$found_la" in
6520                 */* | *\\*) . "$found_la" ;;
6521                 *) . "./$found_la" ;;
6522               esac
6523               libdir="$save_libdir"
6524                             for dep in $dependency_libs; do
6525                 case "$dep" in
6526                   -L*)
6527                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6528                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6529                       haveit=
6530                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6531                         if test -n "$GCC"; then
6532                           case $host_os in
6533                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6534                           esac
6535                         fi
6536                       fi
6537                       if test -z "$haveit"; then
6538                         haveit=
6539                         for x in $LDFLAGS $LIBICONV; do
6540
6541   acl_save_prefix="$prefix"
6542   prefix="$acl_final_prefix"
6543   acl_save_exec_prefix="$exec_prefix"
6544   exec_prefix="$acl_final_exec_prefix"
6545   eval x=\"$x\"
6546   exec_prefix="$acl_save_exec_prefix"
6547   prefix="$acl_save_prefix"
6548
6549                           if test "X$x" = "X-L$additional_libdir"; then
6550                             haveit=yes
6551                             break
6552                           fi
6553                         done
6554                         if test -z "$haveit"; then
6555                           if test -d "$additional_libdir"; then
6556                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6557                           fi
6558                         fi
6559                         haveit=
6560                         for x in $LDFLAGS $LTLIBICONV; do
6561
6562   acl_save_prefix="$prefix"
6563   prefix="$acl_final_prefix"
6564   acl_save_exec_prefix="$exec_prefix"
6565   exec_prefix="$acl_final_exec_prefix"
6566   eval x=\"$x\"
6567   exec_prefix="$acl_save_exec_prefix"
6568   prefix="$acl_save_prefix"
6569
6570                           if test "X$x" = "X-L$additional_libdir"; then
6571                             haveit=yes
6572                             break
6573                           fi
6574                         done
6575                         if test -z "$haveit"; then
6576                           if test -d "$additional_libdir"; then
6577                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6578                           fi
6579                         fi
6580                       fi
6581                     fi
6582                     ;;
6583                   -R*)
6584                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6585                     if test "$enable_rpath" != no; then
6586                                                                   haveit=
6587                       for x in $rpathdirs; do
6588                         if test "X$x" = "X$dir"; then
6589                           haveit=yes
6590                           break
6591                         fi
6592                       done
6593                       if test -z "$haveit"; then
6594                         rpathdirs="$rpathdirs $dir"
6595                       fi
6596                                                                   haveit=
6597                       for x in $ltrpathdirs; do
6598                         if test "X$x" = "X$dir"; then
6599                           haveit=yes
6600                           break
6601                         fi
6602                       done
6603                       if test -z "$haveit"; then
6604                         ltrpathdirs="$ltrpathdirs $dir"
6605                       fi
6606                     fi
6607                     ;;
6608                   -l*)
6609                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6610                     ;;
6611                   *.la)
6612                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6613                     ;;
6614                   *)
6615                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6616                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6617                     ;;
6618                 esac
6619               done
6620             fi
6621           else
6622                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6623             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6624           fi
6625         fi
6626       fi
6627     done
6628   done
6629   if test "X$rpathdirs" != "X"; then
6630     if test -n "$hardcode_libdir_separator"; then
6631                         alldirs=
6632       for found_dir in $rpathdirs; do
6633         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6634       done
6635             acl_save_libdir="$libdir"
6636       libdir="$alldirs"
6637       eval flag=\"$hardcode_libdir_flag_spec\"
6638       libdir="$acl_save_libdir"
6639       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6640     else
6641             for found_dir in $rpathdirs; do
6642         acl_save_libdir="$libdir"
6643         libdir="$found_dir"
6644         eval flag=\"$hardcode_libdir_flag_spec\"
6645         libdir="$acl_save_libdir"
6646         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6647       done
6648     fi
6649   fi
6650   if test "X$ltrpathdirs" != "X"; then
6651             for found_dir in $ltrpathdirs; do
6652       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6653     done
6654   fi
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6674 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6675 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   gt_save_CPPFLAGS="$CPPFLAGS"
6679      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6680      gt_save_LIBS="$LIBS"
6681      LIBS="$LIBS -framework CoreFoundation"
6682      cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h.  */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h.  */
6688 #include <CFPreferences.h>
6689 int
6690 main ()
6691 {
6692 CFPreferencesCopyAppValue(NULL, NULL)
6693   ;
6694   return 0;
6695 }
6696 _ACEOF
6697 rm -f conftest.$ac_objext conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6699 case "(($ac_try" in
6700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701   *) ac_try_echo=$ac_try;;
6702 esac
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704   (eval "$ac_link") 2>conftest.er1
6705   ac_status=$?
6706   grep -v '^ *+' conftest.er1 >conftest.err
6707   rm -f conftest.er1
6708   cat conftest.err >&5
6709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710   (exit $ac_status); } &&
6711          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6712   { (case "(($ac_try" in
6713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6714   *) ac_try_echo=$ac_try;;
6715 esac
6716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6717   (eval "$ac_try") 2>&5
6718   ac_status=$?
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); }; } &&
6721          { ac_try='test -s conftest$ac_exeext'
6722   { (case "(($ac_try" in
6723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724   *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727   (eval "$ac_try") 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); }; }; then
6731   gt_cv_func_CFPreferencesCopyAppValue=yes
6732 else
6733   echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736         gt_cv_func_CFPreferencesCopyAppValue=no
6737 fi
6738
6739 rm -f core conftest.err conftest.$ac_objext \
6740       conftest$ac_exeext conftest.$ac_ext
6741      CPPFLAGS="$gt_save_CPPFLAGS"
6742      LIBS="$gt_save_LIBS"
6743 fi
6744 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6745 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6746   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6747
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6750 _ACEOF
6751
6752   fi
6753     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6754 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6755 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6756   echo $ECHO_N "(cached) $ECHO_C" >&6
6757 else
6758   gt_save_CPPFLAGS="$CPPFLAGS"
6759      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6760      gt_save_LIBS="$LIBS"
6761      LIBS="$LIBS -framework CoreFoundation"
6762      cat >conftest.$ac_ext <<_ACEOF
6763 /* confdefs.h.  */
6764 _ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h.  */
6768 #include <CFLocale.h>
6769 int
6770 main ()
6771 {
6772 CFLocaleCopyCurrent();
6773   ;
6774   return 0;
6775 }
6776 _ACEOF
6777 rm -f conftest.$ac_objext conftest$ac_exeext
6778 if { (ac_try="$ac_link"
6779 case "(($ac_try" in
6780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781   *) ac_try_echo=$ac_try;;
6782 esac
6783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6784   (eval "$ac_link") 2>conftest.er1
6785   ac_status=$?
6786   grep -v '^ *+' conftest.er1 >conftest.err
6787   rm -f conftest.er1
6788   cat conftest.err >&5
6789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6790   (exit $ac_status); } &&
6791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6792   { (case "(($ac_try" in
6793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6794   *) ac_try_echo=$ac_try;;
6795 esac
6796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6797   (eval "$ac_try") 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; } &&
6801          { ac_try='test -s conftest$ac_exeext'
6802   { (case "(($ac_try" in
6803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804   *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807   (eval "$ac_try") 2>&5
6808   ac_status=$?
6809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810   (exit $ac_status); }; }; then
6811   gt_cv_func_CFLocaleCopyCurrent=yes
6812 else
6813   echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6815
6816         gt_cv_func_CFLocaleCopyCurrent=no
6817 fi
6818
6819 rm -f core conftest.err conftest.$ac_objext \
6820       conftest$ac_exeext conftest.$ac_ext
6821      CPPFLAGS="$gt_save_CPPFLAGS"
6822      LIBS="$gt_save_LIBS"
6823 fi
6824 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6825 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6826   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6827
6828 cat >>confdefs.h <<\_ACEOF
6829 #define HAVE_CFLOCALECOPYCURRENT 1
6830 _ACEOF
6831
6832   fi
6833   INTL_MACOSX_LIBS=
6834   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6835     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6836   fi
6837
6838
6839
6840
6841   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6842 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6843     # Check whether --enable-nls was given.
6844 if test "${enable_nls+set}" = set; then
6845   enableval=$enable_nls; USE_NLS=$enableval
6846 else
6847   USE_NLS=yes
6848 fi
6849
6850   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6851 echo "${ECHO_T}$USE_NLS" >&6; }
6852
6853
6854
6855
6856   LIBINTL=
6857   LTLIBINTL=
6858   POSUB=
6859
6860     if test "$USE_NLS" = "yes"; then
6861     gt_use_preinstalled_gnugettext=no
6862
6863
6864
6865
6866
6867
6868         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6869 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6870 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873   cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h.  */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h.  */
6879 #include <libintl.h>
6880 extern int _nl_msg_cat_cntr;
6881 extern int *_nl_domain_bindings;
6882 int
6883 main ()
6884 {
6885 bindtextdomain ("", "");
6886 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext conftest$ac_exeext
6892 if { (ac_try="$ac_link"
6893 case "(($ac_try" in
6894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895   *) ac_try_echo=$ac_try;;
6896 esac
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898   (eval "$ac_link") 2>conftest.er1
6899   ac_status=$?
6900   grep -v '^ *+' conftest.er1 >conftest.err
6901   rm -f conftest.er1
6902   cat conftest.err >&5
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); } &&
6905          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6906   { (case "(($ac_try" in
6907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908   *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911   (eval "$ac_try") 2>&5
6912   ac_status=$?
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); }; } &&
6915          { ac_try='test -s conftest$ac_exeext'
6916   { (case "(($ac_try" in
6917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918   *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921   (eval "$ac_try") 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   gt_cv_func_gnugettext1_libc=yes
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930         gt_cv_func_gnugettext1_libc=no
6931 fi
6932
6933 rm -f core conftest.err conftest.$ac_objext \
6934       conftest$ac_exeext conftest.$ac_ext
6935 fi
6936 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6937 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6938
6939         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6940
6941
6942
6943
6944
6945           am_save_CPPFLAGS="$CPPFLAGS"
6946
6947   for element in $INCICONV; do
6948     haveit=
6949     for x in $CPPFLAGS; do
6950
6951   acl_save_prefix="$prefix"
6952   prefix="$acl_final_prefix"
6953   acl_save_exec_prefix="$exec_prefix"
6954   exec_prefix="$acl_final_exec_prefix"
6955   eval x=\"$x\"
6956   exec_prefix="$acl_save_exec_prefix"
6957   prefix="$acl_save_prefix"
6958
6959       if test "X$x" = "X$element"; then
6960         haveit=yes
6961         break
6962       fi
6963     done
6964     if test -z "$haveit"; then
6965       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6966     fi
6967   done
6968
6969
6970   { echo "$as_me:$LINENO: checking for iconv" >&5
6971 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6972 if test "${am_cv_func_iconv+set}" = set; then
6973   echo $ECHO_N "(cached) $ECHO_C" >&6
6974 else
6975
6976     am_cv_func_iconv="no, consider installing GNU libiconv"
6977     am_cv_lib_iconv=no
6978     cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984 #include <stdlib.h>
6985 #include <iconv.h>
6986 int
6987 main ()
6988 {
6989 iconv_t cd = iconv_open("","");
6990        iconv(cd,NULL,NULL,NULL,NULL);
6991        iconv_close(cd);
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (ac_try="$ac_link"
6998 case "(($ac_try" in
6999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000   *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003   (eval "$ac_link") 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } &&
7010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7011   { (case "(($ac_try" in
7012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7013   *) ac_try_echo=$ac_try;;
7014 esac
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016   (eval "$ac_try") 2>&5
7017   ac_status=$?
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); }; } &&
7020          { ac_try='test -s conftest$ac_exeext'
7021   { (case "(($ac_try" in
7022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023   *) ac_try_echo=$ac_try;;
7024 esac
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026   (eval "$ac_try") 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); }; }; then
7030   am_cv_func_iconv=yes
7031 else
7032   echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7034
7035
7036 fi
7037
7038 rm -f core conftest.err conftest.$ac_objext \
7039       conftest$ac_exeext conftest.$ac_ext
7040     if test "$am_cv_func_iconv" != yes; then
7041       am_save_LIBS="$LIBS"
7042       LIBS="$LIBS $LIBICONV"
7043       cat >conftest.$ac_ext <<_ACEOF
7044 /* confdefs.h.  */
7045 _ACEOF
7046 cat confdefs.h >>conftest.$ac_ext
7047 cat >>conftest.$ac_ext <<_ACEOF
7048 /* end confdefs.h.  */
7049 #include <stdlib.h>
7050 #include <iconv.h>
7051 int
7052 main ()
7053 {
7054 iconv_t cd = iconv_open("","");
7055          iconv(cd,NULL,NULL,NULL,NULL);
7056          iconv_close(cd);
7057   ;
7058   return 0;
7059 }
7060 _ACEOF
7061 rm -f conftest.$ac_objext conftest$ac_exeext
7062 if { (ac_try="$ac_link"
7063 case "(($ac_try" in
7064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065   *) ac_try_echo=$ac_try;;
7066 esac
7067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068   (eval "$ac_link") 2>conftest.er1
7069   ac_status=$?
7070   grep -v '^ *+' conftest.er1 >conftest.err
7071   rm -f conftest.er1
7072   cat conftest.err >&5
7073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074   (exit $ac_status); } &&
7075          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7076   { (case "(($ac_try" in
7077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078   *) ac_try_echo=$ac_try;;
7079 esac
7080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7081   (eval "$ac_try") 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); }; } &&
7085          { ac_try='test -s conftest$ac_exeext'
7086   { (case "(($ac_try" in
7087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088   *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091   (eval "$ac_try") 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); }; }; then
7095   am_cv_lib_iconv=yes
7096         am_cv_func_iconv=yes
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101
7102 fi
7103
7104 rm -f core conftest.err conftest.$ac_objext \
7105       conftest$ac_exeext conftest.$ac_ext
7106       LIBS="$am_save_LIBS"
7107     fi
7108
7109 fi
7110 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7111 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7112   if test "$am_cv_func_iconv" = yes; then
7113
7114 cat >>confdefs.h <<\_ACEOF
7115 #define HAVE_ICONV 1
7116 _ACEOF
7117
7118   fi
7119   if test "$am_cv_lib_iconv" = yes; then
7120     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7121 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7122     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7123 echo "${ECHO_T}$LIBICONV" >&6; }
7124   else
7125             CPPFLAGS="$am_save_CPPFLAGS"
7126     LIBICONV=
7127     LTLIBICONV=
7128   fi
7129
7130
7131
7132
7133
7134
7135     use_additional=yes
7136
7137   acl_save_prefix="$prefix"
7138   prefix="$acl_final_prefix"
7139   acl_save_exec_prefix="$exec_prefix"
7140   exec_prefix="$acl_final_exec_prefix"
7141
7142     eval additional_includedir=\"$includedir\"
7143     eval additional_libdir=\"$libdir\"
7144
7145   exec_prefix="$acl_save_exec_prefix"
7146   prefix="$acl_save_prefix"
7147
7148
7149 # Check whether --with-libintl-prefix was given.
7150 if test "${with_libintl_prefix+set}" = set; then
7151   withval=$with_libintl_prefix;
7152     if test "X$withval" = "Xno"; then
7153       use_additional=no
7154     else
7155       if test "X$withval" = "X"; then
7156
7157   acl_save_prefix="$prefix"
7158   prefix="$acl_final_prefix"
7159   acl_save_exec_prefix="$exec_prefix"
7160   exec_prefix="$acl_final_exec_prefix"
7161
7162           eval additional_includedir=\"$includedir\"
7163           eval additional_libdir=\"$libdir\"
7164
7165   exec_prefix="$acl_save_exec_prefix"
7166   prefix="$acl_save_prefix"
7167
7168       else
7169         additional_includedir="$withval/include"
7170         additional_libdir="$withval/lib"
7171       fi
7172     fi
7173
7174 fi
7175
7176       LIBINTL=
7177   LTLIBINTL=
7178   INCINTL=
7179   rpathdirs=
7180   ltrpathdirs=
7181   names_already_handled=
7182   names_next_round='intl '
7183   while test -n "$names_next_round"; do
7184     names_this_round="$names_next_round"
7185     names_next_round=
7186     for name in $names_this_round; do
7187       already_handled=
7188       for n in $names_already_handled; do
7189         if test "$n" = "$name"; then
7190           already_handled=yes
7191           break
7192         fi
7193       done
7194       if test -z "$already_handled"; then
7195         names_already_handled="$names_already_handled $name"
7196                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7197         eval value=\"\$HAVE_LIB$uppername\"
7198         if test -n "$value"; then
7199           if test "$value" = yes; then
7200             eval value=\"\$LIB$uppername\"
7201             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7202             eval value=\"\$LTLIB$uppername\"
7203             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7204           else
7205                                     :
7206           fi
7207         else
7208                               found_dir=
7209           found_la=
7210           found_so=
7211           found_a=
7212           if test $use_additional = yes; then
7213             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7214               found_dir="$additional_libdir"
7215               found_so="$additional_libdir/lib$name.$shlibext"
7216               if test -f "$additional_libdir/lib$name.la"; then
7217                 found_la="$additional_libdir/lib$name.la"
7218               fi
7219             else
7220               if test -f "$additional_libdir/lib$name.$libext"; then
7221                 found_dir="$additional_libdir"
7222                 found_a="$additional_libdir/lib$name.$libext"
7223                 if test -f "$additional_libdir/lib$name.la"; then
7224                   found_la="$additional_libdir/lib$name.la"
7225                 fi
7226               fi
7227             fi
7228           fi
7229           if test "X$found_dir" = "X"; then
7230             for x in $LDFLAGS $LTLIBINTL; do
7231
7232   acl_save_prefix="$prefix"
7233   prefix="$acl_final_prefix"
7234   acl_save_exec_prefix="$exec_prefix"
7235   exec_prefix="$acl_final_exec_prefix"
7236   eval x=\"$x\"
7237   exec_prefix="$acl_save_exec_prefix"
7238   prefix="$acl_save_prefix"
7239
7240               case "$x" in
7241                 -L*)
7242                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7243                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7244                     found_dir="$dir"
7245                     found_so="$dir/lib$name.$shlibext"
7246                     if test -f "$dir/lib$name.la"; then
7247                       found_la="$dir/lib$name.la"
7248                     fi
7249                   else
7250                     if test -f "$dir/lib$name.$libext"; then
7251                       found_dir="$dir"
7252                       found_a="$dir/lib$name.$libext"
7253                       if test -f "$dir/lib$name.la"; then
7254                         found_la="$dir/lib$name.la"
7255                       fi
7256                     fi
7257                   fi
7258                   ;;
7259               esac
7260               if test "X$found_dir" != "X"; then
7261                 break
7262               fi
7263             done
7264           fi
7265           if test "X$found_dir" != "X"; then
7266                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7267             if test "X$found_so" != "X"; then
7268                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7269                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7270               else
7271                                                                                 haveit=
7272                 for x in $ltrpathdirs; do
7273                   if test "X$x" = "X$found_dir"; then
7274                     haveit=yes
7275                     break
7276                   fi
7277                 done
7278                 if test -z "$haveit"; then
7279                   ltrpathdirs="$ltrpathdirs $found_dir"
7280                 fi
7281                                 if test "$hardcode_direct" = yes; then
7282                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7283                 else
7284                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7285                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7286                                                             haveit=
7287                     for x in $rpathdirs; do
7288                       if test "X$x" = "X$found_dir"; then
7289                         haveit=yes
7290                         break
7291                       fi
7292                     done
7293                     if test -z "$haveit"; then
7294                       rpathdirs="$rpathdirs $found_dir"
7295                     fi
7296                   else
7297                                                                                 haveit=
7298                     for x in $LDFLAGS $LIBINTL; do
7299
7300   acl_save_prefix="$prefix"
7301   prefix="$acl_final_prefix"
7302   acl_save_exec_prefix="$exec_prefix"
7303   exec_prefix="$acl_final_exec_prefix"
7304   eval x=\"$x\"
7305   exec_prefix="$acl_save_exec_prefix"
7306   prefix="$acl_save_prefix"
7307
7308                       if test "X$x" = "X-L$found_dir"; then
7309                         haveit=yes
7310                         break
7311                       fi
7312                     done
7313                     if test -z "$haveit"; then
7314                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7315                     fi
7316                     if test "$hardcode_minus_L" != no; then
7317                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7318                     else
7319                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7320                     fi
7321                   fi
7322                 fi
7323               fi
7324             else
7325               if test "X$found_a" != "X"; then
7326                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7327               else
7328                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7329               fi
7330             fi
7331                         additional_includedir=
7332             case "$found_dir" in
7333               */lib | */lib/)
7334                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7335                 additional_includedir="$basedir/include"
7336                 ;;
7337             esac
7338             if test "X$additional_includedir" != "X"; then
7339                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7340                 haveit=
7341                 if test "X$additional_includedir" = "X/usr/local/include"; then
7342                   if test -n "$GCC"; then
7343                     case $host_os in
7344                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7345                     esac
7346                   fi
7347                 fi
7348                 if test -z "$haveit"; then
7349                   for x in $CPPFLAGS $INCINTL; do
7350
7351   acl_save_prefix="$prefix"
7352   prefix="$acl_final_prefix"
7353   acl_save_exec_prefix="$exec_prefix"
7354   exec_prefix="$acl_final_exec_prefix"
7355   eval x=\"$x\"
7356   exec_prefix="$acl_save_exec_prefix"
7357   prefix="$acl_save_prefix"
7358
7359                     if test "X$x" = "X-I$additional_includedir"; then
7360                       haveit=yes
7361                       break
7362                     fi
7363                   done
7364                   if test -z "$haveit"; then
7365                     if test -d "$additional_includedir"; then
7366                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7367                     fi
7368                   fi
7369                 fi
7370               fi
7371             fi
7372                         if test -n "$found_la"; then
7373                                                         save_libdir="$libdir"
7374               case "$found_la" in
7375                 */* | *\\*) . "$found_la" ;;
7376                 *) . "./$found_la" ;;
7377               esac
7378               libdir="$save_libdir"
7379                             for dep in $dependency_libs; do
7380                 case "$dep" in
7381                   -L*)
7382                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7383                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7384                       haveit=
7385                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7386                         if test -n "$GCC"; then
7387                           case $host_os in
7388                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7389                           esac
7390                         fi
7391                       fi
7392                       if test -z "$haveit"; then
7393                         haveit=
7394                         for x in $LDFLAGS $LIBINTL; do
7395
7396   acl_save_prefix="$prefix"
7397   prefix="$acl_final_prefix"
7398   acl_save_exec_prefix="$exec_prefix"
7399   exec_prefix="$acl_final_exec_prefix"
7400   eval x=\"$x\"
7401   exec_prefix="$acl_save_exec_prefix"
7402   prefix="$acl_save_prefix"
7403
7404                           if test "X$x" = "X-L$additional_libdir"; then
7405                             haveit=yes
7406                             break
7407                           fi
7408                         done
7409                         if test -z "$haveit"; then
7410                           if test -d "$additional_libdir"; then
7411                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7412                           fi
7413                         fi
7414                         haveit=
7415                         for x in $LDFLAGS $LTLIBINTL; do
7416
7417   acl_save_prefix="$prefix"
7418   prefix="$acl_final_prefix"
7419   acl_save_exec_prefix="$exec_prefix"
7420   exec_prefix="$acl_final_exec_prefix"
7421   eval x=\"$x\"
7422   exec_prefix="$acl_save_exec_prefix"
7423   prefix="$acl_save_prefix"
7424
7425                           if test "X$x" = "X-L$additional_libdir"; then
7426                             haveit=yes
7427                             break
7428                           fi
7429                         done
7430                         if test -z "$haveit"; then
7431                           if test -d "$additional_libdir"; then
7432                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7433                           fi
7434                         fi
7435                       fi
7436                     fi
7437                     ;;
7438                   -R*)
7439                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7440                     if test "$enable_rpath" != no; then
7441                                                                   haveit=
7442                       for x in $rpathdirs; do
7443                         if test "X$x" = "X$dir"; then
7444                           haveit=yes
7445                           break
7446                         fi
7447                       done
7448                       if test -z "$haveit"; then
7449                         rpathdirs="$rpathdirs $dir"
7450                       fi
7451                                                                   haveit=
7452                       for x in $ltrpathdirs; do
7453                         if test "X$x" = "X$dir"; then
7454                           haveit=yes
7455                           break
7456                         fi
7457                       done
7458                       if test -z "$haveit"; then
7459                         ltrpathdirs="$ltrpathdirs $dir"
7460                       fi
7461                     fi
7462                     ;;
7463                   -l*)
7464                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7465                     ;;
7466                   *.la)
7467                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7468                     ;;
7469                   *)
7470                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7471                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7472                     ;;
7473                 esac
7474               done
7475             fi
7476           else
7477                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7478             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7479           fi
7480         fi
7481       fi
7482     done
7483   done
7484   if test "X$rpathdirs" != "X"; then
7485     if test -n "$hardcode_libdir_separator"; then
7486                         alldirs=
7487       for found_dir in $rpathdirs; do
7488         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7489       done
7490             acl_save_libdir="$libdir"
7491       libdir="$alldirs"
7492       eval flag=\"$hardcode_libdir_flag_spec\"
7493       libdir="$acl_save_libdir"
7494       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7495     else
7496             for found_dir in $rpathdirs; do
7497         acl_save_libdir="$libdir"
7498         libdir="$found_dir"
7499         eval flag=\"$hardcode_libdir_flag_spec\"
7500         libdir="$acl_save_libdir"
7501         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7502       done
7503     fi
7504   fi
7505   if test "X$ltrpathdirs" != "X"; then
7506             for found_dir in $ltrpathdirs; do
7507       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7508     done
7509   fi
7510
7511           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7512 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7513 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7514   echo $ECHO_N "(cached) $ECHO_C" >&6
7515 else
7516   gt_save_CPPFLAGS="$CPPFLAGS"
7517             CPPFLAGS="$CPPFLAGS $INCINTL"
7518             gt_save_LIBS="$LIBS"
7519             LIBS="$LIBS $LIBINTL"
7520                         cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h.  */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h.  */
7526 #include <libintl.h>
7527 extern int _nl_msg_cat_cntr;
7528 extern
7529 #ifdef __cplusplus
7530 "C"
7531 #endif
7532 const char *_nl_expand_alias (const char *);
7533 int
7534 main ()
7535 {
7536 bindtextdomain ("", "");
7537 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7538   ;
7539   return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext conftest$ac_exeext
7543 if { (ac_try="$ac_link"
7544 case "(($ac_try" in
7545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546   *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549   (eval "$ac_link") 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7557   { (case "(($ac_try" in
7558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559   *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562   (eval "$ac_try") 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; } &&
7566          { ac_try='test -s conftest$ac_exeext'
7567   { (case "(($ac_try" in
7568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7569   *) ac_try_echo=$ac_try;;
7570 esac
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572   (eval "$ac_try") 2>&5
7573   ac_status=$?
7574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); }; }; then
7576   gt_cv_func_gnugettext1_libintl=yes
7577 else
7578   echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581         gt_cv_func_gnugettext1_libintl=no
7582 fi
7583
7584 rm -f core conftest.err conftest.$ac_objext \
7585       conftest$ac_exeext conftest.$ac_ext
7586                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7587               LIBS="$LIBS $LIBICONV"
7588               cat >conftest.$ac_ext <<_ACEOF
7589 /* confdefs.h.  */
7590 _ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h.  */
7594 #include <libintl.h>
7595 extern int _nl_msg_cat_cntr;
7596 extern
7597 #ifdef __cplusplus
7598 "C"
7599 #endif
7600 const char *_nl_expand_alias (const char *);
7601 int
7602 main ()
7603 {
7604 bindtextdomain ("", "");
7605 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7606   ;
7607   return 0;
7608 }
7609 _ACEOF
7610 rm -f conftest.$ac_objext conftest$ac_exeext
7611 if { (ac_try="$ac_link"
7612 case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617   (eval "$ac_link") 2>conftest.er1
7618   ac_status=$?
7619   grep -v '^ *+' conftest.er1 >conftest.err
7620   rm -f conftest.er1
7621   cat conftest.err >&5
7622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623   (exit $ac_status); } &&
7624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7625   { (case "(($ac_try" in
7626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627   *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630   (eval "$ac_try") 2>&5
7631   ac_status=$?
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); }; } &&
7634          { ac_try='test -s conftest$ac_exeext'
7635   { (case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640   (eval "$ac_try") 2>&5
7641   ac_status=$?
7642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643   (exit $ac_status); }; }; then
7644   LIBINTL="$LIBINTL $LIBICONV"
7645                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7646                 gt_cv_func_gnugettext1_libintl=yes
7647
7648 else
7649   echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652
7653 fi
7654
7655 rm -f core conftest.err conftest.$ac_objext \
7656       conftest$ac_exeext conftest.$ac_ext
7657             fi
7658             CPPFLAGS="$gt_save_CPPFLAGS"
7659             LIBS="$gt_save_LIBS"
7660 fi
7661 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7662 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7663         fi
7664
7665                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7666            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7667                 && test "$PACKAGE" != gettext-runtime \
7668                 && test "$PACKAGE" != gettext-tools; }; then
7669           gt_use_preinstalled_gnugettext=yes
7670         else
7671                     LIBINTL=
7672           LTLIBINTL=
7673           INCINTL=
7674         fi
7675
7676
7677
7678     if test -n "$INTL_MACOSX_LIBS"; then
7679       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7680          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7681                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7682         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7683       fi
7684     fi
7685
7686     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7687        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7688
7689 cat >>confdefs.h <<\_ACEOF
7690 #define ENABLE_NLS 1
7691 _ACEOF
7692
7693     else
7694       USE_NLS=no
7695     fi
7696   fi
7697
7698   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7699 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7700   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7701 echo "${ECHO_T}$USE_NLS" >&6; }
7702   if test "$USE_NLS" = "yes"; then
7703     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7704 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7705     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7706       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7707         gt_source="external libintl"
7708       else
7709         gt_source="libc"
7710       fi
7711     else
7712       gt_source="included intl directory"
7713     fi
7714     { echo "$as_me:$LINENO: result: $gt_source" >&5
7715 echo "${ECHO_T}$gt_source" >&6; }
7716   fi
7717
7718   if test "$USE_NLS" = "yes"; then
7719
7720     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7721       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7722         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7723 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7724         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7725 echo "${ECHO_T}$LIBINTL" >&6; }
7726
7727   for element in $INCINTL; do
7728     haveit=
7729     for x in $CPPFLAGS; do
7730
7731   acl_save_prefix="$prefix"
7732   prefix="$acl_final_prefix"
7733   acl_save_exec_prefix="$exec_prefix"
7734   exec_prefix="$acl_final_exec_prefix"
7735   eval x=\"$x\"
7736   exec_prefix="$acl_save_exec_prefix"
7737   prefix="$acl_save_prefix"
7738
7739       if test "X$x" = "X$element"; then
7740         haveit=yes
7741         break
7742       fi
7743     done
7744     if test -z "$haveit"; then
7745       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7746     fi
7747   done
7748
7749       fi
7750
7751
7752 cat >>confdefs.h <<\_ACEOF
7753 #define HAVE_GETTEXT 1
7754 _ACEOF
7755
7756
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_DCGETTEXT 1
7759 _ACEOF
7760
7761     fi
7762
7763         POSUB=po
7764   fi
7765
7766
7767
7768     INTLLIBS="$LIBINTL"
7769
7770
7771
7772
7773
7774
7775 if test x${prefix} = xNONE ; then
7776    if test `eval echo ${datadir}` = NONE/share ; then
7777       datadir=/usr/share
7778    fi
7779 fi
7780
7781 # ------------------------------------------------------------------
7782 #  If the user has not set --prefix, we set our default to nothing.
7783 #  In this case, if the user has not set --sysconfdir, we set it
7784 #  to the package default of /etc/bacula.  If either --prefix or
7785 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7786 # ------------------------------------------------------------------
7787 if test x${prefix} = xNONE ; then
7788     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7789         sysconfdir=/etc/bacula
7790     fi
7791     prefix=
7792 fi
7793 sysconfdir=`eval echo ${sysconfdir}`
7794 datadir=`eval echo ${datadir}`
7795 localedir=`eval echo ${datadir}/locale`
7796 cat >>confdefs.h <<_ACEOF
7797 #define LOCALEDIR "$localedir"
7798 _ACEOF
7799
7800 cat >>confdefs.h <<_ACEOF
7801 #define SYSCONFDIR "$sysconfdir"
7802 _ACEOF
7803
7804
7805 # -------------------------------------------------------------------------
7806 #  If the user has not set --exec-prefix, we default to ${prefix}
7807 # -------------------------------------------------------------------------
7808 if test x${exec_prefix} = xNONE ; then
7809     exec_prefix=${prefix}
7810 fi
7811
7812 # ------------------------------------------------------------------
7813 # If the user has not set --sbindir, we set our default as /sbin
7814 # ------------------------------------------------------------------
7815 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7816     sbindir=${exec_prefix}/sbin
7817 fi
7818 sbindir=`eval echo ${sbindir}`
7819
7820 # -------------------------------------------------------------------------
7821 #  If the user has not set --mandir, we default to /usr/share/man
7822 # -------------------------------------------------------------------------
7823 if test x$mandir = x'${prefix}/man' ; then
7824    mandir=/usr/share/man
7825 fi
7826
7827
7828 # ------------------------------------------------------------------
7829 # All list of languages for which a translation exist. Each
7830 #  language is separated by a space.
7831 # ------------------------------------------------------------------
7832 ALL_LINGUAS=""
7833
7834 for ac_prog in msgfmt
7835 do
7836   # Extract the first word of "$ac_prog", so it can be a program name with args.
7837 set dummy $ac_prog; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_path_MSGFMT+set}" = set; then
7841   echo $ECHO_N "(cached) $ECHO_C" >&6
7842 else
7843   case $MSGFMT in
7844   [\\/]* | ?:[\\/]*)
7845   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7846   ;;
7847   *)
7848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 for as_dir in $PATH
7850 do
7851   IFS=$as_save_IFS
7852   test -z "$as_dir" && as_dir=.
7853   for ac_exec_ext in '' $ac_executable_extensions; do
7854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7855     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857     break 2
7858   fi
7859 done
7860 done
7861 IFS=$as_save_IFS
7862
7863   ;;
7864 esac
7865 fi
7866 MSGFMT=$ac_cv_path_MSGFMT
7867 if test -n "$MSGFMT"; then
7868   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7869 echo "${ECHO_T}$MSGFMT" >&6; }
7870 else
7871   { echo "$as_me:$LINENO: result: no" >&5
7872 echo "${ECHO_T}no" >&6; }
7873 fi
7874
7875
7876   test -n "$MSGFMT" && break
7877 done
7878 test -n "$MSGFMT" || MSGFMT="no"
7879
7880 if test "$MSGFMT" = "no"
7881 then
7882    echo 'msgfmt program not found, disabling NLS !'
7883    USE_NLS=no
7884    USE_INCLUDED_LIBINTL=no
7885 #else
7886
7887     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7888 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7889 if test "${ac_cv_gnu_library_2+set}" = set; then
7890   echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898
7899 #include <features.h>
7900 #ifdef __GNU_LIBRARY__
7901  #if (__GLIBC__ >= 2)
7902   Lucky GNU user
7903  #endif
7904 #endif
7905
7906 _ACEOF
7907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7908   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7909   ac_cv_gnu_library_2=yes
7910 else
7911   ac_cv_gnu_library_2=no
7912 fi
7913 rm -f conftest*
7914
7915
7916
7917 fi
7918 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7919 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7920
7921     GLIBC2="$ac_cv_gnu_library_2"
7922
7923
7924
7925         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7926 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7927 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930   ac_check_lib_save_LIBS=$LIBS
7931 LIBS="-lcposix  $LIBS"
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h.  */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h.  */
7938
7939 /* Override any GCC internal prototype to avoid an error.
7940    Use char because int might match the return type of a GCC
7941    builtin and then its argument prototype would still apply.  */
7942 #ifdef __cplusplus
7943 extern "C"
7944 #endif
7945 char strerror ();
7946 int
7947 main ()
7948 {
7949 return strerror ();
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (ac_try="$ac_link"
7956 case "(($ac_try" in
7957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7958   *) ac_try_echo=$ac_try;;
7959 esac
7960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7961   (eval "$ac_link") 2>conftest.er1
7962   ac_status=$?
7963   grep -v '^ *+' conftest.er1 >conftest.err
7964   rm -f conftest.er1
7965   cat conftest.err >&5
7966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967   (exit $ac_status); } &&
7968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969   { (case "(($ac_try" in
7970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971   *) ac_try_echo=$ac_try;;
7972 esac
7973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974   (eval "$ac_try") 2>&5
7975   ac_status=$?
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); }; } &&
7978          { ac_try='test -s conftest$ac_exeext'
7979   { (case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_try") 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   ac_cv_lib_cposix_strerror=yes
7989 else
7990   echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7992
7993         ac_cv_lib_cposix_strerror=no
7994 fi
7995
7996 rm -f core conftest.err conftest.$ac_objext \
7997       conftest$ac_exeext conftest.$ac_ext
7998 LIBS=$ac_check_lib_save_LIBS
7999 fi
8000 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8001 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8002 if test $ac_cv_lib_cposix_strerror = yes; then
8003   LIBS="$LIBS -lcposix"
8004 fi
8005
8006
8007
8008 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8010 if test "${ac_cv_header_stdc+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   cat >conftest.$ac_ext <<_ACEOF
8014 /* confdefs.h.  */
8015 _ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h.  */
8019 #include <stdlib.h>
8020 #include <stdarg.h>
8021 #include <string.h>
8022 #include <float.h>
8023
8024 int
8025 main ()
8026 {
8027
8028   ;
8029   return 0;
8030 }
8031 _ACEOF
8032 rm -f conftest.$ac_objext
8033 if { (ac_try="$ac_compile"
8034 case "(($ac_try" in
8035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8036   *) ac_try_echo=$ac_try;;
8037 esac
8038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8039   (eval "$ac_compile") 2>conftest.er1
8040   ac_status=$?
8041   grep -v '^ *+' conftest.er1 >conftest.err
8042   rm -f conftest.er1
8043   cat conftest.err >&5
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047   { (case "(($ac_try" in
8048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049   *) ac_try_echo=$ac_try;;
8050 esac
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052   (eval "$ac_try") 2>&5
8053   ac_status=$?
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); }; } &&
8056          { ac_try='test -s conftest.$ac_objext'
8057   { (case "(($ac_try" in
8058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8059   *) ac_try_echo=$ac_try;;
8060 esac
8061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8062   (eval "$ac_try") 2>&5
8063   ac_status=$?
8064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065   (exit $ac_status); }; }; then
8066   ac_cv_header_stdc=yes
8067 else
8068   echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071         ac_cv_header_stdc=no
8072 fi
8073
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075
8076 if test $ac_cv_header_stdc = yes; then
8077   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8078   cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 #include <string.h>
8085
8086 _ACEOF
8087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8088   $EGREP "memchr" >/dev/null 2>&1; then
8089   :
8090 else
8091   ac_cv_header_stdc=no
8092 fi
8093 rm -f conftest*
8094
8095 fi
8096
8097 if test $ac_cv_header_stdc = yes; then
8098   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8099   cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h.  */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h.  */
8105 #include <stdlib.h>
8106
8107 _ACEOF
8108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8109   $EGREP "free" >/dev/null 2>&1; then
8110   :
8111 else
8112   ac_cv_header_stdc=no
8113 fi
8114 rm -f conftest*
8115
8116 fi
8117
8118 if test $ac_cv_header_stdc = yes; then
8119   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8120   if test "$cross_compiling" = yes; then
8121   :
8122 else
8123   cat >conftest.$ac_ext <<_ACEOF
8124 /* confdefs.h.  */
8125 _ACEOF
8126 cat confdefs.h >>conftest.$ac_ext
8127 cat >>conftest.$ac_ext <<_ACEOF
8128 /* end confdefs.h.  */
8129 #include <ctype.h>
8130 #include <stdlib.h>
8131 #if ((' ' & 0x0FF) == 0x020)
8132 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8133 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8134 #else
8135 # define ISLOWER(c) \
8136                    (('a' <= (c) && (c) <= 'i') \
8137                      || ('j' <= (c) && (c) <= 'r') \
8138                      || ('s' <= (c) && (c) <= 'z'))
8139 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8140 #endif
8141
8142 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8143 int
8144 main ()
8145 {
8146   int i;
8147   for (i = 0; i < 256; i++)
8148     if (XOR (islower (i), ISLOWER (i))
8149         || toupper (i) != TOUPPER (i))
8150       return 2;
8151   return 0;
8152 }
8153 _ACEOF
8154 rm -f conftest$ac_exeext
8155 if { (ac_try="$ac_link"
8156 case "(($ac_try" in
8157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158   *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161   (eval "$ac_link") 2>&5
8162   ac_status=$?
8163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8165   { (case "(($ac_try" in
8166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8167   *) ac_try_echo=$ac_try;;
8168 esac
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170   (eval "$ac_try") 2>&5
8171   ac_status=$?
8172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173   (exit $ac_status); }; }; then
8174   :
8175 else
8176   echo "$as_me: program exited with status $ac_status" >&5
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ( exit $ac_status )
8181 ac_cv_header_stdc=no
8182 fi
8183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8184 fi
8185
8186
8187 fi
8188 fi
8189 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8190 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8191 if test $ac_cv_header_stdc = yes; then
8192
8193 cat >>confdefs.h <<\_ACEOF
8194 #define STDC_HEADERS 1
8195 _ACEOF
8196
8197 fi
8198
8199 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8200 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8201 if test "${ac_cv_c_const+set}" = set; then
8202   echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204   cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h.  */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h.  */
8210
8211 int
8212 main ()
8213 {
8214 /* FIXME: Include the comments suggested by Paul. */
8215 #ifndef __cplusplus
8216   /* Ultrix mips cc rejects this.  */
8217   typedef int charset[2];
8218   const charset x;
8219   /* SunOS 4.1.1 cc rejects this.  */
8220   char const *const *ccp;
8221   char **p;
8222   /* NEC SVR4.0.2 mips cc rejects this.  */
8223   struct point {int x, y;};
8224   static struct point const zero = {0,0};
8225   /* AIX XL C 1.02.0.0 rejects this.
8226      It does not let you subtract one const X* pointer from another in
8227      an arm of an if-expression whose if-part is not a constant
8228      expression */
8229   const char *g = "string";
8230   ccp = &g + (g ? g-g : 0);
8231   /* HPUX 7.0 cc rejects these. */
8232   ++ccp;
8233   p = (char**) ccp;
8234   ccp = (char const *const *) p;
8235   { /* SCO 3.2v4 cc rejects this.  */
8236     char *t;
8237     char const *s = 0 ? (char *) 0 : (char const *) 0;
8238
8239     *t++ = 0;
8240     if (s) return 0;
8241   }
8242   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8243     int x[] = {25, 17};
8244     const int *foo = &x[0];
8245     ++foo;
8246   }
8247   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8248     typedef const int *iptr;
8249     iptr p = 0;
8250     ++p;
8251   }
8252   { /* AIX XL C 1.02.0.0 rejects this saying
8253        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8254     struct s { int j; const int *ap[3]; };
8255     struct s *b; b->j = 5;
8256   }
8257   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8258     const int foo = 10;
8259     if (!foo) return 0;
8260   }
8261   return !x[0] && !zero.x;
8262 #endif
8263
8264   ;
8265   return 0;
8266 }
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8270 case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_compile") 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } &&
8282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8283   { (case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_try") 2>&5
8289   ac_status=$?
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); }; } &&
8292          { ac_try='test -s conftest.$ac_objext'
8293   { (case "(($ac_try" in
8294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295   *) ac_try_echo=$ac_try;;
8296 esac
8297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8298   (eval "$ac_try") 2>&5
8299   ac_status=$?
8300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301   (exit $ac_status); }; }; then
8302   ac_cv_c_const=yes
8303 else
8304   echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8306
8307         ac_cv_c_const=no
8308 fi
8309
8310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8311 fi
8312 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8313 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8314 if test $ac_cv_c_const = no; then
8315
8316 cat >>confdefs.h <<\_ACEOF
8317 #define const
8318 _ACEOF
8319
8320 fi
8321
8322
8323   { echo "$as_me:$LINENO: checking for signed" >&5
8324 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8325 if test "${bh_cv_c_signed+set}" = set; then
8326   echo $ECHO_N "(cached) $ECHO_C" >&6
8327 else
8328   cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h.  */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h.  */
8334
8335 int
8336 main ()
8337 {
8338 signed char x;
8339   ;
8340   return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347   *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350   (eval "$ac_compile") 2>conftest.er1
8351   ac_status=$?
8352   grep -v '^ *+' conftest.er1 >conftest.err
8353   rm -f conftest.er1
8354   cat conftest.err >&5
8355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356   (exit $ac_status); } &&
8357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8358   { (case "(($ac_try" in
8359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360   *) ac_try_echo=$ac_try;;
8361 esac
8362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8363   (eval "$ac_try") 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; } &&
8367          { ac_try='test -s conftest.$ac_objext'
8368   { (case "(($ac_try" in
8369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370   *) ac_try_echo=$ac_try;;
8371 esac
8372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8373   (eval "$ac_try") 2>&5
8374   ac_status=$?
8375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376   (exit $ac_status); }; }; then
8377   bh_cv_c_signed=yes
8378 else
8379   echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.$ac_ext >&5
8381
8382         bh_cv_c_signed=no
8383 fi
8384
8385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386 fi
8387 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8388 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8389   if test $bh_cv_c_signed = no; then
8390
8391 cat >>confdefs.h <<\_ACEOF
8392 #define signed
8393 _ACEOF
8394
8395   fi
8396
8397 { echo "$as_me:$LINENO: checking for inline" >&5
8398 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8399 if test "${ac_cv_c_inline+set}" = set; then
8400   echo $ECHO_N "(cached) $ECHO_C" >&6
8401 else
8402   ac_cv_c_inline=no
8403 for ac_kw in inline __inline__ __inline; do
8404   cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h.  */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h.  */
8410 #ifndef __cplusplus
8411 typedef int foo_t;
8412 static $ac_kw foo_t static_foo () {return 0; }
8413 $ac_kw foo_t foo () {return 0; }
8414 #endif
8415
8416 _ACEOF
8417 rm -f conftest.$ac_objext
8418 if { (ac_try="$ac_compile"
8419 case "(($ac_try" in
8420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421   *) ac_try_echo=$ac_try;;
8422 esac
8423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424   (eval "$ac_compile") 2>conftest.er1
8425   ac_status=$?
8426   grep -v '^ *+' conftest.er1 >conftest.err
8427   rm -f conftest.er1
8428   cat conftest.err >&5
8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430   (exit $ac_status); } &&
8431          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8432   { (case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8437   (eval "$ac_try") 2>&5
8438   ac_status=$?
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); }; } &&
8441          { ac_try='test -s conftest.$ac_objext'
8442   { (case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_try") 2>&5
8448   ac_status=$?
8449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450   (exit $ac_status); }; }; then
8451   ac_cv_c_inline=$ac_kw
8452 else
8453   echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.$ac_ext >&5
8455
8456
8457 fi
8458
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460   test "$ac_cv_c_inline" != no && break
8461 done
8462
8463 fi
8464 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8465 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8466
8467
8468 case $ac_cv_c_inline in
8469   inline | yes) ;;
8470   *)
8471     case $ac_cv_c_inline in
8472       no) ac_val=;;
8473       *) ac_val=$ac_cv_c_inline;;
8474     esac
8475     cat >>confdefs.h <<_ACEOF
8476 #ifndef __cplusplus
8477 #define inline $ac_val
8478 #endif
8479 _ACEOF
8480     ;;
8481 esac
8482
8483 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8494                   inttypes.h stdint.h unistd.h
8495 do
8496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508 $ac_includes_default
8509
8510 #include <$ac_header>
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (ac_try="$ac_compile"
8514 case "(($ac_try" in
8515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516   *) ac_try_echo=$ac_try;;
8517 esac
8518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8519   (eval "$ac_compile") 2>conftest.er1
8520   ac_status=$?
8521   grep -v '^ *+' conftest.er1 >conftest.err
8522   rm -f conftest.er1
8523   cat conftest.err >&5
8524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525   (exit $ac_status); } &&
8526          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8527   { (case "(($ac_try" in
8528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8529   *) ac_try_echo=$ac_try;;
8530 esac
8531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8532   (eval "$ac_try") 2>&5
8533   ac_status=$?
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); }; } &&
8536          { ac_try='test -s conftest.$ac_objext'
8537   { (case "(($ac_try" in
8538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8539   *) ac_try_echo=$ac_try;;
8540 esac
8541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8542   (eval "$ac_try") 2>&5
8543   ac_status=$?
8544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545   (exit $ac_status); }; }; then
8546   eval "$as_ac_Header=yes"
8547 else
8548   echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551         eval "$as_ac_Header=no"
8552 fi
8553
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555 fi
8556 ac_res=`eval echo '${'$as_ac_Header'}'`
8557                { echo "$as_me:$LINENO: result: $ac_res" >&5
8558 echo "${ECHO_T}$ac_res" >&6; }
8559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8560   cat >>confdefs.h <<_ACEOF
8561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8562 _ACEOF
8563
8564 fi
8565
8566 done
8567
8568
8569 { echo "$as_me:$LINENO: checking for off_t" >&5
8570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8571 if test "${ac_cv_type_off_t+set}" = set; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574   cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h.  */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h.  */
8580 $ac_includes_default
8581 typedef off_t ac__type_new_;
8582 int
8583 main ()
8584 {
8585 if ((ac__type_new_ *) 0)
8586   return 0;
8587 if (sizeof (ac__type_new_))
8588   return 0;
8589   ;
8590   return 0;
8591 }
8592 _ACEOF
8593 rm -f conftest.$ac_objext
8594 if { (ac_try="$ac_compile"
8595 case "(($ac_try" in
8596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597   *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600   (eval "$ac_compile") 2>conftest.er1
8601   ac_status=$?
8602   grep -v '^ *+' conftest.er1 >conftest.err
8603   rm -f conftest.er1
8604   cat conftest.err >&5
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } &&
8607          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8608   { (case "(($ac_try" in
8609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610   *) ac_try_echo=$ac_try;;
8611 esac
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613   (eval "$ac_try") 2>&5
8614   ac_status=$?
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); }; } &&
8617          { ac_try='test -s conftest.$ac_objext'
8618   { (case "(($ac_try" in
8619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620   *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623   (eval "$ac_try") 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_cv_type_off_t=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632         ac_cv_type_off_t=no
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8638 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8639 if test $ac_cv_type_off_t = yes; then
8640   :
8641 else
8642
8643 cat >>confdefs.h <<_ACEOF
8644 #define off_t long int
8645 _ACEOF
8646
8647 fi
8648
8649 { echo "$as_me:$LINENO: checking for size_t" >&5
8650 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8651 if test "${ac_cv_type_size_t+set}" = set; then
8652   echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654   cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h.  */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h.  */
8660 $ac_includes_default
8661 typedef size_t ac__type_new_;
8662 int
8663 main ()
8664 {
8665 if ((ac__type_new_ *) 0)
8666   return 0;
8667 if (sizeof (ac__type_new_))
8668   return 0;
8669   ;
8670   return 0;
8671 }
8672 _ACEOF
8673 rm -f conftest.$ac_objext
8674 if { (ac_try="$ac_compile"
8675 case "(($ac_try" in
8676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677   *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680   (eval "$ac_compile") 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8688   { (case "(($ac_try" in
8689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8690   *) ac_try_echo=$ac_try;;
8691 esac
8692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8693   (eval "$ac_try") 2>&5
8694   ac_status=$?
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); }; } &&
8697          { ac_try='test -s conftest.$ac_objext'
8698   { (case "(($ac_try" in
8699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700   *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703   (eval "$ac_try") 2>&5
8704   ac_status=$?
8705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706   (exit $ac_status); }; }; then
8707   ac_cv_type_size_t=yes
8708 else
8709   echo "$as_me: failed program was:" >&5
8710 sed 's/^/| /' conftest.$ac_ext >&5
8711
8712         ac_cv_type_size_t=no
8713 fi
8714
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8718 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8719 if test $ac_cv_type_size_t = yes; then
8720   :
8721 else
8722
8723 cat >>confdefs.h <<_ACEOF
8724 #define size_t unsigned int
8725 _ACEOF
8726
8727 fi
8728
8729
8730   { echo "$as_me:$LINENO: checking for long long" >&5
8731 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8732 if test "${ac_cv_type_long_long+set}" = set; then
8733   echo $ECHO_N "(cached) $ECHO_C" >&6
8734 else
8735   cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h.  */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h.  */
8741 long long ll = 1LL; int i = 63;
8742 int
8743 main ()
8744 {
8745 long long llmax = (long long) -1;
8746      return ll << i | ll >> i | llmax / ll | llmax % ll;
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (ac_try="$ac_link"
8753 case "(($ac_try" in
8754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8755   *) ac_try_echo=$ac_try;;
8756 esac
8757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8758   (eval "$ac_link") 2>conftest.er1
8759   ac_status=$?
8760   grep -v '^ *+' conftest.er1 >conftest.err
8761   rm -f conftest.er1
8762   cat conftest.err >&5
8763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764   (exit $ac_status); } &&
8765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8766   { (case "(($ac_try" in
8767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768   *) ac_try_echo=$ac_try;;
8769 esac
8770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8771   (eval "$ac_try") 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; } &&
8775          { ac_try='test -s conftest$ac_exeext'
8776   { (case "(($ac_try" in
8777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778   *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781   (eval "$ac_try") 2>&5
8782   ac_status=$?
8783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); }; }; then
8785   ac_cv_type_long_long=yes
8786 else
8787   echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8789
8790         ac_cv_type_long_long=no
8791 fi
8792
8793 rm -f core conftest.err conftest.$ac_objext \
8794       conftest$ac_exeext conftest.$ac_ext
8795 fi
8796 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8797 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8798   if test $ac_cv_type_long_long = yes; then
8799
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_LONG_LONG 1
8802 _ACEOF
8803
8804   fi
8805
8806
8807   { echo "$as_me:$LINENO: checking for long double" >&5
8808 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8809 if test "${gt_cv_c_long_double+set}" = set; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812   if test "$GCC" = yes; then
8813        gt_cv_c_long_double=yes
8814      else
8815        cat >conftest.$ac_ext <<_ACEOF
8816 /* confdefs.h.  */
8817 _ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h.  */
8821
8822          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8823          long double foo = 0.0;
8824          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8825          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8826
8827 int
8828 main ()
8829 {
8830
8831   ;
8832   return 0;
8833 }
8834 _ACEOF
8835 rm -f conftest.$ac_objext
8836 if { (ac_try="$ac_compile"
8837 case "(($ac_try" in
8838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839   *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842   (eval "$ac_compile") 2>conftest.er1
8843   ac_status=$?
8844   grep -v '^ *+' conftest.er1 >conftest.err
8845   rm -f conftest.er1
8846   cat conftest.err >&5
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); } &&
8849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850   { (case "(($ac_try" in
8851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852   *) ac_try_echo=$ac_try;;
8853 esac
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855   (eval "$ac_try") 2>&5
8856   ac_status=$?
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); }; } &&
8859          { ac_try='test -s conftest.$ac_objext'
8860   { (case "(($ac_try" in
8861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862   *) ac_try_echo=$ac_try;;
8863 esac
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865   (eval "$ac_try") 2>&5
8866   ac_status=$?
8867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868   (exit $ac_status); }; }; then
8869   gt_cv_c_long_double=yes
8870 else
8871   echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8873
8874         gt_cv_c_long_double=no
8875 fi
8876
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878      fi
8879 fi
8880 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8881 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8882   if test $gt_cv_c_long_double = yes; then
8883
8884 cat >>confdefs.h <<\_ACEOF
8885 #define HAVE_LONG_DOUBLE 1
8886 _ACEOF
8887
8888   fi
8889
8890
8891   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8892 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8893 if test "${gt_cv_c_wchar_t+set}" = set; then
8894   echo $ECHO_N "(cached) $ECHO_C" >&6
8895 else
8896   cat >conftest.$ac_ext <<_ACEOF
8897 /* confdefs.h.  */
8898 _ACEOF
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h.  */
8902 #include <stddef.h>
8903        wchar_t foo = (wchar_t)'\0';
8904 int
8905 main ()
8906 {
8907
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext
8913 if { (ac_try="$ac_compile"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_compile") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } &&
8926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927   { (case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_try") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; } &&
8936          { ac_try='test -s conftest.$ac_objext'
8937   { (case "(($ac_try" in
8938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939   *) ac_try_echo=$ac_try;;
8940 esac
8941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8942   (eval "$ac_try") 2>&5
8943   ac_status=$?
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); }; }; then
8946   gt_cv_c_wchar_t=yes
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951         gt_cv_c_wchar_t=no
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8955 fi
8956 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8957 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8958   if test $gt_cv_c_wchar_t = yes; then
8959
8960 cat >>confdefs.h <<\_ACEOF
8961 #define HAVE_WCHAR_T 1
8962 _ACEOF
8963
8964   fi
8965
8966
8967   { echo "$as_me:$LINENO: checking for wint_t" >&5
8968 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8969 if test "${gt_cv_c_wint_t+set}" = set; then
8970   echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972   cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978 #include <wchar.h>
8979        wint_t foo = (wchar_t)'\0';
8980 int
8981 main ()
8982 {
8983
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 rm -f conftest.$ac_objext
8989 if { (ac_try="$ac_compile"
8990 case "(($ac_try" in
8991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992   *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995   (eval "$ac_compile") 2>conftest.er1
8996   ac_status=$?
8997   grep -v '^ *+' conftest.er1 >conftest.err
8998   rm -f conftest.er1
8999   cat conftest.err >&5
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } &&
9002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003   { (case "(($ac_try" in
9004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005   *) ac_try_echo=$ac_try;;
9006 esac
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008   (eval "$ac_try") 2>&5
9009   ac_status=$?
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); }; } &&
9012          { ac_try='test -s conftest.$ac_objext'
9013   { (case "(($ac_try" in
9014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015   *) ac_try_echo=$ac_try;;
9016 esac
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018   (eval "$ac_try") 2>&5
9019   ac_status=$?
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); }; }; then
9022   gt_cv_c_wint_t=yes
9023 else
9024   echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9026
9027         gt_cv_c_wint_t=no
9028 fi
9029
9030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 fi
9032 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9033 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9034   if test $gt_cv_c_wint_t = yes; then
9035
9036 cat >>confdefs.h <<\_ACEOF
9037 #define HAVE_WINT_T 1
9038 _ACEOF
9039
9040   fi
9041
9042
9043   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9044 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9045 if test "${gl_cv_header_inttypes_h+set}" = set; then
9046   echo $ECHO_N "(cached) $ECHO_C" >&6
9047 else
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 #include <sys/types.h>
9055 #include <inttypes.h>
9056 int
9057 main ()
9058 {
9059 uintmax_t i = (uintmax_t) -1;
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 "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9071   (eval "$ac_compile") 2>conftest.er1
9072   ac_status=$?
9073   grep -v '^ *+' conftest.er1 >conftest.err
9074   rm -f conftest.er1
9075   cat conftest.err >&5
9076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077   (exit $ac_status); } &&
9078          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9079   { (case "(($ac_try" in
9080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081   *) ac_try_echo=$ac_try;;
9082 esac
9083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084   (eval "$ac_try") 2>&5
9085   ac_status=$?
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); }; } &&
9088          { ac_try='test -s conftest.$ac_objext'
9089   { (case "(($ac_try" in
9090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091   *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094   (eval "$ac_try") 2>&5
9095   ac_status=$?
9096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097   (exit $ac_status); }; }; then
9098   gl_cv_header_inttypes_h=yes
9099 else
9100   echo "$as_me: failed program was:" >&5
9101 sed 's/^/| /' conftest.$ac_ext >&5
9102
9103         gl_cv_header_inttypes_h=no
9104 fi
9105
9106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9107 fi
9108 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9109 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9110   if test $gl_cv_header_inttypes_h = yes; then
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9114 _ACEOF
9115
9116   fi
9117
9118
9119   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9120 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9121 if test "${gl_cv_header_stdint_h+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h.  */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h.  */
9130 #include <sys/types.h>
9131 #include <stdint.h>
9132 int
9133 main ()
9134 {
9135 uintmax_t i = (uintmax_t) -1;
9136   ;
9137   return 0;
9138 }
9139 _ACEOF
9140 rm -f conftest.$ac_objext
9141 if { (ac_try="$ac_compile"
9142 case "(($ac_try" in
9143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9144   *) ac_try_echo=$ac_try;;
9145 esac
9146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9147   (eval "$ac_compile") 2>conftest.er1
9148   ac_status=$?
9149   grep -v '^ *+' conftest.er1 >conftest.err
9150   rm -f conftest.er1
9151   cat conftest.err >&5
9152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153   (exit $ac_status); } &&
9154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9155   { (case "(($ac_try" in
9156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157   *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160   (eval "$ac_try") 2>&5
9161   ac_status=$?
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); }; } &&
9164          { ac_try='test -s conftest.$ac_objext'
9165   { (case "(($ac_try" in
9166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9167   *) ac_try_echo=$ac_try;;
9168 esac
9169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9170   (eval "$ac_try") 2>&5
9171   ac_status=$?
9172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173   (exit $ac_status); }; }; then
9174   gl_cv_header_stdint_h=yes
9175 else
9176   echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.$ac_ext >&5
9178
9179         gl_cv_header_stdint_h=no
9180 fi
9181
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183 fi
9184 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9185 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9186   if test $gl_cv_header_stdint_h = yes; then
9187
9188 cat >>confdefs.h <<_ACEOF
9189 #define HAVE_STDINT_H_WITH_UINTMAX 1
9190 _ACEOF
9191
9192   fi
9193
9194
9195
9196
9197   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9198 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9199 if test "${gt_cv_c_intmax_t+set}" = set; then
9200   echo $ECHO_N "(cached) $ECHO_C" >&6
9201 else
9202   cat >conftest.$ac_ext <<_ACEOF
9203 /* confdefs.h.  */
9204 _ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h.  */
9208
9209 #include <stddef.h>
9210 #include <stdlib.h>
9211 #if HAVE_STDINT_H_WITH_UINTMAX
9212 #include <stdint.h>
9213 #endif
9214 #if HAVE_INTTYPES_H_WITH_UINTMAX
9215 #include <inttypes.h>
9216 #endif
9217
9218 int
9219 main ()
9220 {
9221 intmax_t x = -1;
9222   ;
9223   return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9228 case "(($ac_try" in
9229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230   *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233   (eval "$ac_compile") 2>conftest.er1
9234   ac_status=$?
9235   grep -v '^ *+' conftest.er1 >conftest.err
9236   rm -f conftest.er1
9237   cat conftest.err >&5
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } &&
9240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9241   { (case "(($ac_try" in
9242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243   *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246   (eval "$ac_try") 2>&5
9247   ac_status=$?
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); }; } &&
9250          { ac_try='test -s conftest.$ac_objext'
9251   { (case "(($ac_try" in
9252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253   *) ac_try_echo=$ac_try;;
9254 esac
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256   (eval "$ac_try") 2>&5
9257   ac_status=$?
9258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259   (exit $ac_status); }; }; then
9260   gt_cv_c_intmax_t=yes
9261 else
9262   echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9264
9265         gt_cv_c_intmax_t=no
9266 fi
9267
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 fi
9270 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9271 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9272   if test $gt_cv_c_intmax_t = yes; then
9273
9274 cat >>confdefs.h <<\_ACEOF
9275 #define HAVE_INTMAX_T 1
9276 _ACEOF
9277
9278   fi
9279
9280
9281
9282   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9283 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9284 if test "${gt_cv_func_printf_posix+set}" = set; then
9285   echo $ECHO_N "(cached) $ECHO_C" >&6
9286 else
9287
9288       if test "$cross_compiling" = yes; then
9289
9290         cat >conftest.$ac_ext <<_ACEOF
9291 /* confdefs.h.  */
9292 _ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h.  */
9296
9297 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9298   notposix
9299 #endif
9300
9301 _ACEOF
9302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9303   $EGREP "notposix" >/dev/null 2>&1; then
9304   gt_cv_func_printf_posix="guessing no"
9305 else
9306   gt_cv_func_printf_posix="guessing yes"
9307 fi
9308 rm -f conftest*
9309
9310
9311 else
9312   cat >conftest.$ac_ext <<_ACEOF
9313 /* confdefs.h.  */
9314 _ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h.  */
9318
9319 #include <stdio.h>
9320 #include <string.h>
9321 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9322    dollar expansion (possibly an autoconf bug).  */
9323 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9324 static char buf[100];
9325 int main ()
9326 {
9327   sprintf (buf, format, 33, 55);
9328   return (strcmp (buf, "55 33") != 0);
9329 }
9330 _ACEOF
9331 rm -f conftest$ac_exeext
9332 if { (ac_try="$ac_link"
9333 case "(($ac_try" in
9334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335   *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338   (eval "$ac_link") 2>&5
9339   ac_status=$?
9340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9342   { (case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_try") 2>&5
9348   ac_status=$?
9349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350   (exit $ac_status); }; }; then
9351   gt_cv_func_printf_posix=yes
9352 else
9353   echo "$as_me: program exited with status $ac_status" >&5
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9356
9357 ( exit $ac_status )
9358 gt_cv_func_printf_posix=no
9359 fi
9360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9361 fi
9362
9363
9364
9365 fi
9366 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9367 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9368   case $gt_cv_func_printf_posix in
9369     *yes)
9370
9371 cat >>confdefs.h <<\_ACEOF
9372 #define HAVE_POSIX_PRINTF 1
9373 _ACEOF
9374
9375       ;;
9376   esac
9377
9378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9379 # for constant arguments.  Useless!
9380 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9381 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9382 if test "${ac_cv_working_alloca_h+set}" = set; then
9383   echo $ECHO_N "(cached) $ECHO_C" >&6
9384 else
9385   cat >conftest.$ac_ext <<_ACEOF
9386 /* confdefs.h.  */
9387 _ACEOF
9388 cat confdefs.h >>conftest.$ac_ext
9389 cat >>conftest.$ac_ext <<_ACEOF
9390 /* end confdefs.h.  */
9391 #include <alloca.h>
9392 int
9393 main ()
9394 {
9395 char *p = (char *) alloca (2 * sizeof (int));
9396                           if (p) return 0;
9397   ;
9398   return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (ac_try="$ac_link"
9403 case "(($ac_try" in
9404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9405   *) ac_try_echo=$ac_try;;
9406 esac
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408   (eval "$ac_link") 2>conftest.er1
9409   ac_status=$?
9410   grep -v '^ *+' conftest.er1 >conftest.err
9411   rm -f conftest.er1
9412   cat conftest.err >&5
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); } &&
9415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9416   { (case "(($ac_try" in
9417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9418   *) ac_try_echo=$ac_try;;
9419 esac
9420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9421   (eval "$ac_try") 2>&5
9422   ac_status=$?
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); }; } &&
9425          { ac_try='test -s conftest$ac_exeext'
9426   { (case "(($ac_try" in
9427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9428   *) ac_try_echo=$ac_try;;
9429 esac
9430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9431   (eval "$ac_try") 2>&5
9432   ac_status=$?
9433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9434   (exit $ac_status); }; }; then
9435   ac_cv_working_alloca_h=yes
9436 else
9437   echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9439
9440         ac_cv_working_alloca_h=no
9441 fi
9442
9443 rm -f core conftest.err conftest.$ac_objext \
9444       conftest$ac_exeext conftest.$ac_ext
9445 fi
9446 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9447 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9448 if test $ac_cv_working_alloca_h = yes; then
9449
9450 cat >>confdefs.h <<\_ACEOF
9451 #define HAVE_ALLOCA_H 1
9452 _ACEOF
9453
9454 fi
9455
9456 { echo "$as_me:$LINENO: checking for alloca" >&5
9457 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9458 if test "${ac_cv_func_alloca_works+set}" = set; then
9459   echo $ECHO_N "(cached) $ECHO_C" >&6
9460 else
9461   cat >conftest.$ac_ext <<_ACEOF
9462 /* confdefs.h.  */
9463 _ACEOF
9464 cat confdefs.h >>conftest.$ac_ext
9465 cat >>conftest.$ac_ext <<_ACEOF
9466 /* end confdefs.h.  */
9467 #ifdef __GNUC__
9468 # define alloca __builtin_alloca
9469 #else
9470 # ifdef _MSC_VER
9471 #  include <malloc.h>
9472 #  define alloca _alloca
9473 # else
9474 #  if HAVE_ALLOCA_H
9475 #   include <alloca.h>
9476 #  else
9477 #   ifdef _AIX
9478  #pragma alloca
9479 #   else
9480 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9481 char *alloca ();
9482 #    endif
9483 #   endif
9484 #  endif
9485 # endif
9486 #endif
9487
9488 int
9489 main ()
9490 {
9491 char *p = (char *) alloca (1);
9492                                     if (p) return 0;
9493   ;
9494   return 0;
9495 }
9496 _ACEOF
9497 rm -f conftest.$ac_objext conftest$ac_exeext
9498 if { (ac_try="$ac_link"
9499 case "(($ac_try" in
9500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9501   *) ac_try_echo=$ac_try;;
9502 esac
9503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9504   (eval "$ac_link") 2>conftest.er1
9505   ac_status=$?
9506   grep -v '^ *+' conftest.er1 >conftest.err
9507   rm -f conftest.er1
9508   cat conftest.err >&5
9509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510   (exit $ac_status); } &&
9511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9512   { (case "(($ac_try" in
9513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514   *) ac_try_echo=$ac_try;;
9515 esac
9516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9517   (eval "$ac_try") 2>&5
9518   ac_status=$?
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); }; } &&
9521          { ac_try='test -s conftest$ac_exeext'
9522   { (case "(($ac_try" in
9523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9524   *) ac_try_echo=$ac_try;;
9525 esac
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527   (eval "$ac_try") 2>&5
9528   ac_status=$?
9529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530   (exit $ac_status); }; }; then
9531   ac_cv_func_alloca_works=yes
9532 else
9533   echo "$as_me: failed program was:" >&5
9534 sed 's/^/| /' conftest.$ac_ext >&5
9535
9536         ac_cv_func_alloca_works=no
9537 fi
9538
9539 rm -f core conftest.err conftest.$ac_objext \
9540       conftest$ac_exeext conftest.$ac_ext
9541 fi
9542 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9543 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9544
9545 if test $ac_cv_func_alloca_works = yes; then
9546
9547 cat >>confdefs.h <<\_ACEOF
9548 #define HAVE_ALLOCA 1
9549 _ACEOF
9550
9551 else
9552   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9553 # that cause trouble.  Some versions do not even contain alloca or
9554 # contain a buggy version.  If you still want to use their alloca,
9555 # use ar to extract alloca.o from them instead of compiling alloca.c.
9556
9557 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9558
9559 cat >>confdefs.h <<\_ACEOF
9560 #define C_ALLOCA 1
9561 _ACEOF
9562
9563
9564 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9565 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9566 if test "${ac_cv_os_cray+set}" = set; then
9567   echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569   cat >conftest.$ac_ext <<_ACEOF
9570 /* confdefs.h.  */
9571 _ACEOF
9572 cat confdefs.h >>conftest.$ac_ext
9573 cat >>conftest.$ac_ext <<_ACEOF
9574 /* end confdefs.h.  */
9575 #if defined CRAY && ! defined CRAY2
9576 webecray
9577 #else
9578 wenotbecray
9579 #endif
9580
9581 _ACEOF
9582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9583   $EGREP "webecray" >/dev/null 2>&1; then
9584   ac_cv_os_cray=yes
9585 else
9586   ac_cv_os_cray=no
9587 fi
9588 rm -f conftest*
9589
9590 fi
9591 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9592 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9593 if test $ac_cv_os_cray = yes; then
9594   for ac_func in _getb67 GETB67 getb67; do
9595     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9599   echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601   cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h.  */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h.  */
9607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9609 #define $ac_func innocuous_$ac_func
9610
9611 /* System header to define __stub macros and hopefully few prototypes,
9612     which can conflict with char $ac_func (); below.
9613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9614     <limits.h> exists even on freestanding compilers.  */
9615
9616 #ifdef __STDC__
9617 # include <limits.h>
9618 #else
9619 # include <assert.h>
9620 #endif
9621
9622 #undef $ac_func
9623
9624 /* Override any GCC internal prototype to avoid an error.
9625    Use char because int might match the return type of a GCC
9626    builtin and then its argument prototype would still apply.  */
9627 #ifdef __cplusplus
9628 extern "C"
9629 #endif
9630 char $ac_func ();
9631 /* The GNU C library defines this for functions which it implements
9632     to always fail with ENOSYS.  Some functions are actually named
9633     something starting with __ and the normal name is an alias.  */
9634 #if defined __stub_$ac_func || defined __stub___$ac_func
9635 choke me
9636 #endif
9637
9638 int
9639 main ()
9640 {
9641 return $ac_func ();
9642   ;
9643   return 0;
9644 }
9645 _ACEOF
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9648 case "(($ac_try" in
9649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650   *) ac_try_echo=$ac_try;;
9651 esac
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653   (eval "$ac_link") 2>conftest.er1
9654   ac_status=$?
9655   grep -v '^ *+' conftest.er1 >conftest.err
9656   rm -f conftest.er1
9657   cat conftest.err >&5
9658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659   (exit $ac_status); } &&
9660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9661   { (case "(($ac_try" in
9662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9663   *) ac_try_echo=$ac_try;;
9664 esac
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666   (eval "$ac_try") 2>&5
9667   ac_status=$?
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); }; } &&
9670          { ac_try='test -s conftest$ac_exeext'
9671   { (case "(($ac_try" in
9672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673   *) ac_try_echo=$ac_try;;
9674 esac
9675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676   (eval "$ac_try") 2>&5
9677   ac_status=$?
9678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679   (exit $ac_status); }; }; then
9680   eval "$as_ac_var=yes"
9681 else
9682   echo "$as_me: failed program was:" >&5
9683 sed 's/^/| /' conftest.$ac_ext >&5
9684
9685         eval "$as_ac_var=no"
9686 fi
9687
9688 rm -f core conftest.err conftest.$ac_objext \
9689       conftest$ac_exeext conftest.$ac_ext
9690 fi
9691 ac_res=`eval echo '${'$as_ac_var'}'`
9692                { echo "$as_me:$LINENO: result: $ac_res" >&5
9693 echo "${ECHO_T}$ac_res" >&6; }
9694 if test `eval echo '${'$as_ac_var'}'` = yes; then
9695
9696 cat >>confdefs.h <<_ACEOF
9697 #define CRAY_STACKSEG_END $ac_func
9698 _ACEOF
9699
9700     break
9701 fi
9702
9703   done
9704 fi
9705
9706 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9707 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9708 if test "${ac_cv_c_stack_direction+set}" = set; then
9709   echo $ECHO_N "(cached) $ECHO_C" >&6
9710 else
9711   if test "$cross_compiling" = yes; then
9712   ac_cv_c_stack_direction=0
9713 else
9714   cat >conftest.$ac_ext <<_ACEOF
9715 /* confdefs.h.  */
9716 _ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h.  */
9720 $ac_includes_default
9721 int
9722 find_stack_direction ()
9723 {
9724   static char *addr = 0;
9725   auto char dummy;
9726   if (addr == 0)
9727     {
9728       addr = &dummy;
9729       return find_stack_direction ();
9730     }
9731   else
9732     return (&dummy > addr) ? 1 : -1;
9733 }
9734
9735 int
9736 main ()
9737 {
9738   return find_stack_direction () < 0;
9739 }
9740 _ACEOF
9741 rm -f conftest$ac_exeext
9742 if { (ac_try="$ac_link"
9743 case "(($ac_try" in
9744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9745   *) ac_try_echo=$ac_try;;
9746 esac
9747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9748   (eval "$ac_link") 2>&5
9749   ac_status=$?
9750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9752   { (case "(($ac_try" in
9753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754   *) ac_try_echo=$ac_try;;
9755 esac
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757   (eval "$ac_try") 2>&5
9758   ac_status=$?
9759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760   (exit $ac_status); }; }; then
9761   ac_cv_c_stack_direction=1
9762 else
9763   echo "$as_me: program exited with status $ac_status" >&5
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9766
9767 ( exit $ac_status )
9768 ac_cv_c_stack_direction=-1
9769 fi
9770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9771 fi
9772
9773
9774 fi
9775 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9776 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9777
9778 cat >>confdefs.h <<_ACEOF
9779 #define STACK_DIRECTION $ac_cv_c_stack_direction
9780 _ACEOF
9781
9782
9783 fi
9784
9785
9786
9787 for ac_header in stdlib.h unistd.h
9788 do
9789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9794   echo $ECHO_N "(cached) $ECHO_C" >&6
9795 fi
9796 ac_res=`eval echo '${'$as_ac_Header'}'`
9797                { echo "$as_me:$LINENO: result: $ac_res" >&5
9798 echo "${ECHO_T}$ac_res" >&6; }
9799 else
9800   # Is the header compilable?
9801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9803 cat >conftest.$ac_ext <<_ACEOF
9804 /* confdefs.h.  */
9805 _ACEOF
9806 cat confdefs.h >>conftest.$ac_ext
9807 cat >>conftest.$ac_ext <<_ACEOF
9808 /* end confdefs.h.  */
9809 $ac_includes_default
9810 #include <$ac_header>
9811 _ACEOF
9812 rm -f conftest.$ac_objext
9813 if { (ac_try="$ac_compile"
9814 case "(($ac_try" in
9815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816   *) ac_try_echo=$ac_try;;
9817 esac
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819   (eval "$ac_compile") 2>conftest.er1
9820   ac_status=$?
9821   grep -v '^ *+' conftest.er1 >conftest.err
9822   rm -f conftest.er1
9823   cat conftest.err >&5
9824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825   (exit $ac_status); } &&
9826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9827   { (case "(($ac_try" in
9828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829   *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832   (eval "$ac_try") 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; } &&
9836          { ac_try='test -s conftest.$ac_objext'
9837   { (case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_try") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); }; }; then
9846   ac_header_compiler=yes
9847 else
9848   echo "$as_me: failed program was:" >&5
9849 sed 's/^/| /' conftest.$ac_ext >&5
9850
9851         ac_header_compiler=no
9852 fi
9853
9854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9856 echo "${ECHO_T}$ac_header_compiler" >&6; }
9857
9858 # Is the header present?
9859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9861 cat >conftest.$ac_ext <<_ACEOF
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867 #include <$ac_header>
9868 _ACEOF
9869 if { (ac_try="$ac_cpp conftest.$ac_ext"
9870 case "(($ac_try" in
9871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872   *) ac_try_echo=$ac_try;;
9873 esac
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9876   ac_status=$?
9877   grep -v '^ *+' conftest.er1 >conftest.err
9878   rm -f conftest.er1
9879   cat conftest.err >&5
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } >/dev/null; then
9882   if test -s conftest.err; then
9883     ac_cpp_err=$ac_c_preproc_warn_flag
9884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9885   else
9886     ac_cpp_err=
9887   fi
9888 else
9889   ac_cpp_err=yes
9890 fi
9891 if test -z "$ac_cpp_err"; then
9892   ac_header_preproc=yes
9893 else
9894   echo "$as_me: failed program was:" >&5
9895 sed 's/^/| /' conftest.$ac_ext >&5
9896
9897   ac_header_preproc=no
9898 fi
9899
9900 rm -f conftest.err conftest.$ac_ext
9901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9902 echo "${ECHO_T}$ac_header_preproc" >&6; }
9903
9904 # So?  What about this header?
9905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9906   yes:no: )
9907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9911     ac_header_preproc=yes
9912     ;;
9913   no:yes:* )
9914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9926
9927     ;;
9928 esac
9929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9932   echo $ECHO_N "(cached) $ECHO_C" >&6
9933 else
9934   eval "$as_ac_Header=\$ac_header_preproc"
9935 fi
9936 ac_res=`eval echo '${'$as_ac_Header'}'`
9937                { echo "$as_me:$LINENO: result: $ac_res" >&5
9938 echo "${ECHO_T}$ac_res" >&6; }
9939
9940 fi
9941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9942   cat >>confdefs.h <<_ACEOF
9943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9944 _ACEOF
9945
9946 fi
9947
9948 done
9949
9950
9951 for ac_func in getpagesize
9952 do
9953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9954 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9956 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9957   echo $ECHO_N "(cached) $ECHO_C" >&6
9958 else
9959   cat >conftest.$ac_ext <<_ACEOF
9960 /* confdefs.h.  */
9961 _ACEOF
9962 cat confdefs.h >>conftest.$ac_ext
9963 cat >>conftest.$ac_ext <<_ACEOF
9964 /* end confdefs.h.  */
9965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9966    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9967 #define $ac_func innocuous_$ac_func
9968
9969 /* System header to define __stub macros and hopefully few prototypes,
9970     which can conflict with char $ac_func (); below.
9971     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9972     <limits.h> exists even on freestanding compilers.  */
9973
9974 #ifdef __STDC__
9975 # include <limits.h>
9976 #else
9977 # include <assert.h>
9978 #endif
9979
9980 #undef $ac_func
9981
9982 /* Override any GCC internal prototype to avoid an error.
9983    Use char because int might match the return type of a GCC
9984    builtin and then its argument prototype would still apply.  */
9985 #ifdef __cplusplus
9986 extern "C"
9987 #endif
9988 char $ac_func ();
9989 /* The GNU C library defines this for functions which it implements
9990     to always fail with ENOSYS.  Some functions are actually named
9991     something starting with __ and the normal name is an alias.  */
9992 #if defined __stub_$ac_func || defined __stub___$ac_func
9993 choke me
9994 #endif
9995
9996 int
9997 main ()
9998 {
9999 return $ac_func ();
10000   ;
10001   return 0;
10002 }
10003 _ACEOF
10004 rm -f conftest.$ac_objext conftest$ac_exeext
10005 if { (ac_try="$ac_link"
10006 case "(($ac_try" in
10007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008   *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011   (eval "$ac_link") 2>conftest.er1
10012   ac_status=$?
10013   grep -v '^ *+' conftest.er1 >conftest.err
10014   rm -f conftest.er1
10015   cat conftest.err >&5
10016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017   (exit $ac_status); } &&
10018          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10019   { (case "(($ac_try" in
10020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021   *) ac_try_echo=$ac_try;;
10022 esac
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024   (eval "$ac_try") 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; } &&
10028          { ac_try='test -s conftest$ac_exeext'
10029   { (case "(($ac_try" in
10030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031   *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034   (eval "$ac_try") 2>&5
10035   ac_status=$?
10036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037   (exit $ac_status); }; }; then
10038   eval "$as_ac_var=yes"
10039 else
10040   echo "$as_me: failed program was:" >&5
10041 sed 's/^/| /' conftest.$ac_ext >&5
10042
10043         eval "$as_ac_var=no"
10044 fi
10045
10046 rm -f core conftest.err conftest.$ac_objext \
10047       conftest$ac_exeext conftest.$ac_ext
10048 fi
10049 ac_res=`eval echo '${'$as_ac_var'}'`
10050                { echo "$as_me:$LINENO: result: $ac_res" >&5
10051 echo "${ECHO_T}$ac_res" >&6; }
10052 if test `eval echo '${'$as_ac_var'}'` = yes; then
10053   cat >>confdefs.h <<_ACEOF
10054 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10055 _ACEOF
10056
10057 fi
10058 done
10059
10060 { echo "$as_me:$LINENO: checking for working mmap" >&5
10061 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10062 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10063   echo $ECHO_N "(cached) $ECHO_C" >&6
10064 else
10065   if test "$cross_compiling" = yes; then
10066   ac_cv_func_mmap_fixed_mapped=no
10067 else
10068   cat >conftest.$ac_ext <<_ACEOF
10069 /* confdefs.h.  */
10070 _ACEOF
10071 cat confdefs.h >>conftest.$ac_ext
10072 cat >>conftest.$ac_ext <<_ACEOF
10073 /* end confdefs.h.  */
10074 $ac_includes_default
10075 /* malloc might have been renamed as rpl_malloc. */
10076 #undef malloc
10077
10078 /* Thanks to Mike Haertel and Jim Avera for this test.
10079    Here is a matrix of mmap possibilities:
10080         mmap private not fixed
10081         mmap private fixed at somewhere currently unmapped
10082         mmap private fixed at somewhere already mapped
10083         mmap shared not fixed
10084         mmap shared fixed at somewhere currently unmapped
10085         mmap shared fixed at somewhere already mapped
10086    For private mappings, we should verify that changes cannot be read()
10087    back from the file, nor mmap's back from the file at a different
10088    address.  (There have been systems where private was not correctly
10089    implemented like the infamous i386 svr4.0, and systems where the
10090    VM page cache was not coherent with the file system buffer cache
10091    like early versions of FreeBSD and possibly contemporary NetBSD.)
10092    For shared mappings, we should conversely verify that changes get
10093    propagated back to all the places they're supposed to be.
10094
10095    Grep wants private fixed already mapped.
10096    The main things grep needs to know about mmap are:
10097    * does it exist and is it safe to write into the mmap'd area
10098    * how to use it (BSD variants)  */
10099
10100 #include <fcntl.h>
10101 #include <sys/mman.h>
10102
10103 #if !STDC_HEADERS && !HAVE_STDLIB_H
10104 char *malloc ();
10105 #endif
10106
10107 /* This mess was copied from the GNU getpagesize.h.  */
10108 #if !HAVE_GETPAGESIZE
10109 /* Assume that all systems that can run configure have sys/param.h.  */
10110 # if !HAVE_SYS_PARAM_H
10111 #  define HAVE_SYS_PARAM_H 1
10112 # endif
10113
10114 # ifdef _SC_PAGESIZE
10115 #  define getpagesize() sysconf(_SC_PAGESIZE)
10116 # else /* no _SC_PAGESIZE */
10117 #  if HAVE_SYS_PARAM_H
10118 #   include <sys/param.h>
10119 #   ifdef EXEC_PAGESIZE
10120 #    define getpagesize() EXEC_PAGESIZE
10121 #   else /* no EXEC_PAGESIZE */
10122 #    ifdef NBPG
10123 #     define getpagesize() NBPG * CLSIZE
10124 #     ifndef CLSIZE
10125 #      define CLSIZE 1
10126 #     endif /* no CLSIZE */
10127 #    else /* no NBPG */
10128 #     ifdef NBPC
10129 #      define getpagesize() NBPC
10130 #     else /* no NBPC */
10131 #      ifdef PAGESIZE
10132 #       define getpagesize() PAGESIZE
10133 #      endif /* PAGESIZE */
10134 #     endif /* no NBPC */
10135 #    endif /* no NBPG */
10136 #   endif /* no EXEC_PAGESIZE */
10137 #  else /* no HAVE_SYS_PARAM_H */
10138 #   define getpagesize() 8192   /* punt totally */
10139 #  endif /* no HAVE_SYS_PARAM_H */
10140 # endif /* no _SC_PAGESIZE */
10141
10142 #endif /* no HAVE_GETPAGESIZE */
10143
10144 int
10145 main ()
10146 {
10147   char *data, *data2, *data3;
10148   int i, pagesize;
10149   int fd;
10150
10151   pagesize = getpagesize ();
10152
10153   /* First, make a file with some known garbage in it. */
10154   data = (char *) malloc (pagesize);
10155   if (!data)
10156     return 1;
10157   for (i = 0; i < pagesize; ++i)
10158     *(data + i) = rand ();
10159   umask (0);
10160   fd = creat ("conftest.mmap", 0600);
10161   if (fd < 0)
10162     return 1;
10163   if (write (fd, data, pagesize) != pagesize)
10164     return 1;
10165   close (fd);
10166
10167   /* Next, try to mmap the file at a fixed address which already has
10168      something else allocated at it.  If we can, also make sure that
10169      we see the same garbage.  */
10170   fd = open ("conftest.mmap", O_RDWR);
10171   if (fd < 0)
10172     return 1;
10173   data2 = (char *) malloc (2 * pagesize);
10174   if (!data2)
10175     return 1;
10176   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10177   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10178                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10179     return 1;
10180   for (i = 0; i < pagesize; ++i)
10181     if (*(data + i) != *(data2 + i))
10182       return 1;
10183
10184   /* Finally, make sure that changes to the mapped area do not
10185      percolate back to the file as seen by read().  (This is a bug on
10186      some variants of i386 svr4.0.)  */
10187   for (i = 0; i < pagesize; ++i)
10188     *(data2 + i) = *(data2 + i) + 1;
10189   data3 = (char *) malloc (pagesize);
10190   if (!data3)
10191     return 1;
10192   if (read (fd, data3, pagesize) != pagesize)
10193     return 1;
10194   for (i = 0; i < pagesize; ++i)
10195     if (*(data + i) != *(data3 + i))
10196       return 1;
10197   close (fd);
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_link") 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10212   { (case "(($ac_try" in
10213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10214   *) ac_try_echo=$ac_try;;
10215 esac
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217   (eval "$ac_try") 2>&5
10218   ac_status=$?
10219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220   (exit $ac_status); }; }; then
10221   ac_cv_func_mmap_fixed_mapped=yes
10222 else
10223   echo "$as_me: program exited with status $ac_status" >&5
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10226
10227 ( exit $ac_status )
10228 ac_cv_func_mmap_fixed_mapped=no
10229 fi
10230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10231 fi
10232
10233
10234 fi
10235 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10236 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10237 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10238
10239 cat >>confdefs.h <<\_ACEOF
10240 #define HAVE_MMAP 1
10241 _ACEOF
10242
10243 fi
10244 rm -f conftest.mmap
10245
10246
10247     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10248 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10249 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10250   echo $ECHO_N "(cached) $ECHO_C" >&6
10251 else
10252   cat >conftest.$ac_ext <<_ACEOF
10253 /* confdefs.h.  */
10254 _ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h.  */
10258
10259 #include <features.h>
10260 #ifdef __GNU_LIBRARY__
10261  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10262   Lucky GNU user
10263  #endif
10264 #endif
10265
10266 _ACEOF
10267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10268   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10269   ac_cv_gnu_library_2_1=yes
10270 else
10271   ac_cv_gnu_library_2_1=no
10272 fi
10273 rm -f conftest*
10274
10275
10276
10277 fi
10278 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10279 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10280
10281     GLIBC21="$ac_cv_gnu_library_2_1"
10282
10283
10284
10285
10286   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10287 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10288 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10289   echo $ECHO_N "(cached) $ECHO_C" >&6
10290 else
10291
10292       if test "$cross_compiling" = yes; then
10293
10294           # Guess based on the CPU.
10295           case "$host_cpu" in
10296             alpha* | i3456786 | m68k | s390*)
10297               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10298             *)
10299               gt_cv_int_divbyzero_sigfpe="guessing no";;
10300           esac
10301
10302 else
10303   cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309
10310 #include <stdlib.h>
10311 #include <signal.h>
10312
10313 static void
10314 #ifdef __cplusplus
10315 sigfpe_handler (int sig)
10316 #else
10317 sigfpe_handler (sig) int sig;
10318 #endif
10319 {
10320   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10321   exit (sig != SIGFPE);
10322 }
10323
10324 int x = 1;
10325 int y = 0;
10326 int z;
10327 int nan;
10328
10329 int main ()
10330 {
10331   signal (SIGFPE, sigfpe_handler);
10332 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10333 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10334   signal (SIGTRAP, sigfpe_handler);
10335 #endif
10336 /* Linux/SPARC yields signal SIGILL.  */
10337 #if defined (__sparc__) && defined (__linux__)
10338   signal (SIGILL, sigfpe_handler);
10339 #endif
10340
10341   z = x / y;
10342   nan = y / y;
10343   exit (1);
10344 }
10345
10346 _ACEOF
10347 rm -f conftest$ac_exeext
10348 if { (ac_try="$ac_link"
10349 case "(($ac_try" in
10350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10351   *) ac_try_echo=$ac_try;;
10352 esac
10353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10354   (eval "$ac_link") 2>&5
10355   ac_status=$?
10356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10358   { (case "(($ac_try" in
10359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10360   *) ac_try_echo=$ac_try;;
10361 esac
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363   (eval "$ac_try") 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   gt_cv_int_divbyzero_sigfpe=yes
10368 else
10369   echo "$as_me: program exited with status $ac_status" >&5
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10372
10373 ( exit $ac_status )
10374 gt_cv_int_divbyzero_sigfpe=no
10375 fi
10376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10377 fi
10378
10379
10380
10381 fi
10382 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10383 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10384   case "$gt_cv_int_divbyzero_sigfpe" in
10385     *yes) value=1;;
10386     *) value=0;;
10387   esac
10388
10389 cat >>confdefs.h <<_ACEOF
10390 #define INTDIV0_RAISES_SIGFPE $value
10391 _ACEOF
10392
10393
10394
10395   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10396 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10397 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10398   echo $ECHO_N "(cached) $ECHO_C" >&6
10399 else
10400   cat >conftest.$ac_ext <<_ACEOF
10401 /* confdefs.h.  */
10402 _ACEOF
10403 cat confdefs.h >>conftest.$ac_ext
10404 cat >>conftest.$ac_ext <<_ACEOF
10405 /* end confdefs.h.  */
10406 unsigned long long ull = 1ULL; int i = 63;
10407 int
10408 main ()
10409 {
10410 unsigned long long ullmax = (unsigned long long) -1;
10411      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10412   ;
10413   return 0;
10414 }
10415 _ACEOF
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10420   *) ac_try_echo=$ac_try;;
10421 esac
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423   (eval "$ac_link") 2>conftest.er1
10424   ac_status=$?
10425   grep -v '^ *+' conftest.er1 >conftest.err
10426   rm -f conftest.er1
10427   cat conftest.err >&5
10428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429   (exit $ac_status); } &&
10430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10431   { (case "(($ac_try" in
10432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10433   *) ac_try_echo=$ac_try;;
10434 esac
10435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10436   (eval "$ac_try") 2>&5
10437   ac_status=$?
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); }; } &&
10440          { ac_try='test -s conftest$ac_exeext'
10441   { (case "(($ac_try" in
10442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10443   *) ac_try_echo=$ac_try;;
10444 esac
10445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10446   (eval "$ac_try") 2>&5
10447   ac_status=$?
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   (exit $ac_status); }; }; then
10450   ac_cv_type_unsigned_long_long=yes
10451 else
10452   echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10454
10455         ac_cv_type_unsigned_long_long=no
10456 fi
10457
10458 rm -f core conftest.err conftest.$ac_objext \
10459       conftest$ac_exeext conftest.$ac_ext
10460 fi
10461 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10462 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10463   if test $ac_cv_type_unsigned_long_long = yes; then
10464
10465 cat >>confdefs.h <<\_ACEOF
10466 #define HAVE_UNSIGNED_LONG_LONG 1
10467 _ACEOF
10468
10469   fi
10470
10471
10472
10473
10474   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10475
10476     test $ac_cv_type_unsigned_long_long = yes \
10477       && ac_type='unsigned long long' \
10478       || ac_type='unsigned long'
10479
10480 cat >>confdefs.h <<_ACEOF
10481 #define uintmax_t $ac_type
10482 _ACEOF
10483
10484   else
10485
10486 cat >>confdefs.h <<\_ACEOF
10487 #define HAVE_UINTMAX_T 1
10488 _ACEOF
10489
10490   fi
10491
10492
10493   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10494 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10495 if test "${gt_cv_header_inttypes_h+set}" = set; then
10496   echo $ECHO_N "(cached) $ECHO_C" >&6
10497 else
10498
10499     cat >conftest.$ac_ext <<_ACEOF
10500 /* confdefs.h.  */
10501 _ACEOF
10502 cat confdefs.h >>conftest.$ac_ext
10503 cat >>conftest.$ac_ext <<_ACEOF
10504 /* end confdefs.h.  */
10505 #include <sys/types.h>
10506 #include <inttypes.h>
10507 int
10508 main ()
10509 {
10510
10511   ;
10512   return 0;
10513 }
10514 _ACEOF
10515 rm -f conftest.$ac_objext
10516 if { (ac_try="$ac_compile"
10517 case "(($ac_try" in
10518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519   *) ac_try_echo=$ac_try;;
10520 esac
10521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522   (eval "$ac_compile") 2>conftest.er1
10523   ac_status=$?
10524   grep -v '^ *+' conftest.er1 >conftest.err
10525   rm -f conftest.er1
10526   cat conftest.err >&5
10527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528   (exit $ac_status); } &&
10529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10530   { (case "(($ac_try" in
10531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10532   *) ac_try_echo=$ac_try;;
10533 esac
10534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10535   (eval "$ac_try") 2>&5
10536   ac_status=$?
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); }; } &&
10539          { ac_try='test -s conftest.$ac_objext'
10540   { (case "(($ac_try" in
10541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10542   *) ac_try_echo=$ac_try;;
10543 esac
10544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10545   (eval "$ac_try") 2>&5
10546   ac_status=$?
10547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548   (exit $ac_status); }; }; then
10549   gt_cv_header_inttypes_h=yes
10550 else
10551   echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554         gt_cv_header_inttypes_h=no
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558
10559 fi
10560 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10561 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10562   if test $gt_cv_header_inttypes_h = yes; then
10563
10564 cat >>confdefs.h <<_ACEOF
10565 #define HAVE_INTTYPES_H 1
10566 _ACEOF
10567
10568   fi
10569
10570
10571
10572   if test $gt_cv_header_inttypes_h = yes; then
10573     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10574 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10575 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10576   echo $ECHO_N "(cached) $ECHO_C" >&6
10577 else
10578
10579         cat >conftest.$ac_ext <<_ACEOF
10580 /* confdefs.h.  */
10581 _ACEOF
10582 cat confdefs.h >>conftest.$ac_ext
10583 cat >>conftest.$ac_ext <<_ACEOF
10584 /* end confdefs.h.  */
10585 #include <inttypes.h>
10586 #ifdef PRId32
10587 char *p = PRId32;
10588 #endif
10589
10590 int
10591 main ()
10592 {
10593
10594   ;
10595   return 0;
10596 }
10597 _ACEOF
10598 rm -f conftest.$ac_objext
10599 if { (ac_try="$ac_compile"
10600 case "(($ac_try" in
10601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10602   *) ac_try_echo=$ac_try;;
10603 esac
10604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10605   (eval "$ac_compile") 2>conftest.er1
10606   ac_status=$?
10607   grep -v '^ *+' conftest.er1 >conftest.err
10608   rm -f conftest.er1
10609   cat conftest.err >&5
10610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611   (exit $ac_status); } &&
10612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10613   { (case "(($ac_try" in
10614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615   *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618   (eval "$ac_try") 2>&5
10619   ac_status=$?
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); }; } &&
10622          { ac_try='test -s conftest.$ac_objext'
10623   { (case "(($ac_try" in
10624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625   *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628   (eval "$ac_try") 2>&5
10629   ac_status=$?
10630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631   (exit $ac_status); }; }; then
10632   gt_cv_inttypes_pri_broken=no
10633 else
10634   echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10636
10637         gt_cv_inttypes_pri_broken=yes
10638 fi
10639
10640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10641
10642 fi
10643 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10644 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10645   fi
10646   if test "$gt_cv_inttypes_pri_broken" = yes; then
10647
10648 cat >>confdefs.h <<_ACEOF
10649 #define PRI_MACROS_BROKEN 1
10650 _ACEOF
10651
10652   fi
10653
10654
10655
10656 for ac_header in stdint.h
10657 do
10658 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10663   echo $ECHO_N "(cached) $ECHO_C" >&6
10664 fi
10665 ac_res=`eval echo '${'$as_ac_Header'}'`
10666                { echo "$as_me:$LINENO: result: $ac_res" >&5
10667 echo "${ECHO_T}$ac_res" >&6; }
10668 else
10669   # Is the header compilable?
10670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10672 cat >conftest.$ac_ext <<_ACEOF
10673 /* confdefs.h.  */
10674 _ACEOF
10675 cat confdefs.h >>conftest.$ac_ext
10676 cat >>conftest.$ac_ext <<_ACEOF
10677 /* end confdefs.h.  */
10678 $ac_includes_default
10679 #include <$ac_header>
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (ac_try="$ac_compile"
10683 case "(($ac_try" in
10684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685   *) ac_try_echo=$ac_try;;
10686 esac
10687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688   (eval "$ac_compile") 2>conftest.er1
10689   ac_status=$?
10690   grep -v '^ *+' conftest.er1 >conftest.err
10691   rm -f conftest.er1
10692   cat conftest.err >&5
10693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); } &&
10695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10696   { (case "(($ac_try" in
10697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698   *) ac_try_echo=$ac_try;;
10699 esac
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701   (eval "$ac_try") 2>&5
10702   ac_status=$?
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); }; } &&
10705          { ac_try='test -s conftest.$ac_objext'
10706   { (case "(($ac_try" in
10707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708   *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711   (eval "$ac_try") 2>&5
10712   ac_status=$?
10713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714   (exit $ac_status); }; }; then
10715   ac_header_compiler=yes
10716 else
10717   echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720         ac_header_compiler=no
10721 fi
10722
10723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10725 echo "${ECHO_T}$ac_header_compiler" >&6; }
10726
10727 # Is the header present?
10728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10730 cat >conftest.$ac_ext <<_ACEOF
10731 /* confdefs.h.  */
10732 _ACEOF
10733 cat confdefs.h >>conftest.$ac_ext
10734 cat >>conftest.$ac_ext <<_ACEOF
10735 /* end confdefs.h.  */
10736 #include <$ac_header>
10737 _ACEOF
10738 if { (ac_try="$ac_cpp conftest.$ac_ext"
10739 case "(($ac_try" in
10740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741   *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10745   ac_status=$?
10746   grep -v '^ *+' conftest.er1 >conftest.err
10747   rm -f conftest.er1
10748   cat conftest.err >&5
10749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750   (exit $ac_status); } >/dev/null; then
10751   if test -s conftest.err; then
10752     ac_cpp_err=$ac_c_preproc_warn_flag
10753     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10754   else
10755     ac_cpp_err=
10756   fi
10757 else
10758   ac_cpp_err=yes
10759 fi
10760 if test -z "$ac_cpp_err"; then
10761   ac_header_preproc=yes
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766   ac_header_preproc=no
10767 fi
10768
10769 rm -f conftest.err conftest.$ac_ext
10770 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10771 echo "${ECHO_T}$ac_header_preproc" >&6; }
10772
10773 # So?  What about this header?
10774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10775   yes:no: )
10776     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10777 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10778     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10780     ac_header_preproc=yes
10781     ;;
10782   no:yes:* )
10783     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10784 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10786 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10788 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10790 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10794 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10795
10796     ;;
10797 esac
10798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801   echo $ECHO_N "(cached) $ECHO_C" >&6
10802 else
10803   eval "$as_ac_Header=\$ac_header_preproc"
10804 fi
10805 ac_res=`eval echo '${'$as_ac_Header'}'`
10806                { echo "$as_me:$LINENO: result: $ac_res" >&5
10807 echo "${ECHO_T}$ac_res" >&6; }
10808
10809 fi
10810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10811   cat >>confdefs.h <<_ACEOF
10812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10813 _ACEOF
10814
10815 fi
10816
10817 done
10818
10819     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10820 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10821   result=
10822   cat >conftest.$ac_ext <<_ACEOF
10823 /* confdefs.h.  */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h.  */
10828
10829 #include <limits.h>
10830 #if HAVE_STDINT_H
10831 #include <stdint.h>
10832 #endif
10833 #ifdef SIZE_MAX
10834 Found it
10835 #endif
10836
10837 _ACEOF
10838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10839   $EGREP "Found it" >/dev/null 2>&1; then
10840   result=yes
10841 fi
10842 rm -f conftest*
10843
10844   if test -z "$result"; then
10845                     if test "$cross_compiling" = yes; then
10846   # Depending upon the size, compute the lo and hi bounds.
10847 cat >conftest.$ac_ext <<_ACEOF
10848 /* confdefs.h.  */
10849 _ACEOF
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h.  */
10853 #include <stddef.h>
10854 int
10855 main ()
10856 {
10857 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10858 test_array [0] = 0
10859
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest.$ac_objext
10865 if { (ac_try="$ac_compile"
10866 case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_compile") 2>conftest.er1
10872   ac_status=$?
10873   grep -v '^ *+' conftest.er1 >conftest.err
10874   rm -f conftest.er1
10875   cat conftest.err >&5
10876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877   (exit $ac_status); } &&
10878          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10879   { (case "(($ac_try" in
10880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10881   *) ac_try_echo=$ac_try;;
10882 esac
10883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10884   (eval "$ac_try") 2>&5
10885   ac_status=$?
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); }; } &&
10888          { ac_try='test -s conftest.$ac_objext'
10889   { (case "(($ac_try" in
10890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891   *) ac_try_echo=$ac_try;;
10892 esac
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894   (eval "$ac_try") 2>&5
10895   ac_status=$?
10896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897   (exit $ac_status); }; }; then
10898   ac_lo=0 ac_mid=0
10899   while :; do
10900     cat >conftest.$ac_ext <<_ACEOF
10901 /* confdefs.h.  */
10902 _ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h.  */
10906 #include <stddef.h>
10907 int
10908 main ()
10909 {
10910 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10911 test_array [0] = 0
10912
10913   ;
10914   return 0;
10915 }
10916 _ACEOF
10917 rm -f conftest.$ac_objext
10918 if { (ac_try="$ac_compile"
10919 case "(($ac_try" in
10920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10921   *) ac_try_echo=$ac_try;;
10922 esac
10923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10924   (eval "$ac_compile") 2>conftest.er1
10925   ac_status=$?
10926   grep -v '^ *+' conftest.er1 >conftest.err
10927   rm -f conftest.er1
10928   cat conftest.err >&5
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10932   { (case "(($ac_try" in
10933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934   *) ac_try_echo=$ac_try;;
10935 esac
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937   (eval "$ac_try") 2>&5
10938   ac_status=$?
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; } &&
10941          { ac_try='test -s conftest.$ac_objext'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; }; then
10951   ac_hi=$ac_mid; break
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956         ac_lo=`expr $ac_mid + 1`
10957                         if test $ac_lo -le $ac_mid; then
10958                           ac_lo= ac_hi=
10959                           break
10960                         fi
10961                         ac_mid=`expr 2 '*' $ac_mid + 1`
10962 fi
10963
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965   done
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976 #include <stddef.h>
10977 int
10978 main ()
10979 {
10980 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10981 test_array [0] = 0
10982
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_compile") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } &&
11001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11002   { (case "(($ac_try" in
11003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11004   *) ac_try_echo=$ac_try;;
11005 esac
11006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11007   (eval "$ac_try") 2>&5
11008   ac_status=$?
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); }; } &&
11011          { ac_try='test -s conftest.$ac_objext'
11012   { (case "(($ac_try" in
11013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11014   *) ac_try_echo=$ac_try;;
11015 esac
11016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11017   (eval "$ac_try") 2>&5
11018   ac_status=$?
11019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020   (exit $ac_status); }; }; then
11021   ac_hi=-1 ac_mid=-1
11022   while :; do
11023     cat >conftest.$ac_ext <<_ACEOF
11024 /* confdefs.h.  */
11025 _ACEOF
11026 cat confdefs.h >>conftest.$ac_ext
11027 cat >>conftest.$ac_ext <<_ACEOF
11028 /* end confdefs.h.  */
11029 #include <stddef.h>
11030 int
11031 main ()
11032 {
11033 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11034 test_array [0] = 0
11035
11036   ;
11037   return 0;
11038 }
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (ac_try="$ac_compile"
11042 case "(($ac_try" in
11043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044   *) ac_try_echo=$ac_try;;
11045 esac
11046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11047   (eval "$ac_compile") 2>conftest.er1
11048   ac_status=$?
11049   grep -v '^ *+' conftest.er1 >conftest.err
11050   rm -f conftest.er1
11051   cat conftest.err >&5
11052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053   (exit $ac_status); } &&
11054          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11055   { (case "(($ac_try" in
11056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057   *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060   (eval "$ac_try") 2>&5
11061   ac_status=$?
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); }; } &&
11064          { ac_try='test -s conftest.$ac_objext'
11065   { (case "(($ac_try" in
11066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067   *) ac_try_echo=$ac_try;;
11068 esac
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070   (eval "$ac_try") 2>&5
11071   ac_status=$?
11072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073   (exit $ac_status); }; }; then
11074   ac_lo=$ac_mid; break
11075 else
11076   echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079         ac_hi=`expr '(' $ac_mid ')' - 1`
11080                         if test $ac_mid -le $ac_hi; then
11081                           ac_lo= ac_hi=
11082                           break
11083                         fi
11084                         ac_mid=`expr 2 '*' $ac_mid`
11085 fi
11086
11087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11088   done
11089 else
11090   echo "$as_me: failed program was:" >&5
11091 sed 's/^/| /' conftest.$ac_ext >&5
11092
11093         ac_lo= ac_hi=
11094 fi
11095
11096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11097 fi
11098
11099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11100 # Binary search between lo and hi bounds.
11101 while test "x$ac_lo" != "x$ac_hi"; do
11102   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11103   cat >conftest.$ac_ext <<_ACEOF
11104 /* confdefs.h.  */
11105 _ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h.  */
11109 #include <stddef.h>
11110 int
11111 main ()
11112 {
11113 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11114 test_array [0] = 0
11115
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 rm -f conftest.$ac_objext
11121 if { (ac_try="$ac_compile"
11122 case "(($ac_try" in
11123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124   *) ac_try_echo=$ac_try;;
11125 esac
11126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11127   (eval "$ac_compile") 2>conftest.er1
11128   ac_status=$?
11129   grep -v '^ *+' conftest.er1 >conftest.err
11130   rm -f conftest.er1
11131   cat conftest.err >&5
11132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133   (exit $ac_status); } &&
11134          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11135   { (case "(($ac_try" in
11136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11137   *) ac_try_echo=$ac_try;;
11138 esac
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140   (eval "$ac_try") 2>&5
11141   ac_status=$?
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); }; } &&
11144          { ac_try='test -s conftest.$ac_objext'
11145   { (case "(($ac_try" in
11146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11147   *) ac_try_echo=$ac_try;;
11148 esac
11149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11150   (eval "$ac_try") 2>&5
11151   ac_status=$?
11152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153   (exit $ac_status); }; }; then
11154   ac_hi=$ac_mid
11155 else
11156   echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11158
11159         ac_lo=`expr '(' $ac_mid ')' + 1`
11160 fi
11161
11162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11163 done
11164 case $ac_lo in
11165 ?*) res_hi=$ac_lo;;
11166 '') result=? ;;
11167 esac
11168 else
11169   cat >conftest.$ac_ext <<_ACEOF
11170 /* confdefs.h.  */
11171 _ACEOF
11172 cat confdefs.h >>conftest.$ac_ext
11173 cat >>conftest.$ac_ext <<_ACEOF
11174 /* end confdefs.h.  */
11175 #include <stddef.h>
11176 static long int longval () { return ~(size_t)0 / 10; }
11177 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11178 #include <stdio.h>
11179 #include <stdlib.h>
11180 int
11181 main ()
11182 {
11183
11184   FILE *f = fopen ("conftest.val", "w");
11185   if (! f)
11186     return 1;
11187   if ((~(size_t)0 / 10) < 0)
11188     {
11189       long int i = longval ();
11190       if (i != (~(size_t)0 / 10))
11191         return 1;
11192       fprintf (f, "%ld\n", i);
11193     }
11194   else
11195     {
11196       unsigned long int i = ulongval ();
11197       if (i != (~(size_t)0 / 10))
11198         return 1;
11199       fprintf (f, "%lu\n", i);
11200     }
11201   return ferror (f) || fclose (f) != 0;
11202
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest$ac_exeext
11208 if { (ac_try="$ac_link"
11209 case "(($ac_try" in
11210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211   *) ac_try_echo=$ac_try;;
11212 esac
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214   (eval "$ac_link") 2>&5
11215   ac_status=$?
11216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11218   { (case "(($ac_try" in
11219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220   *) ac_try_echo=$ac_try;;
11221 esac
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223   (eval "$ac_try") 2>&5
11224   ac_status=$?
11225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226   (exit $ac_status); }; }; then
11227   res_hi=`cat conftest.val`
11228 else
11229   echo "$as_me: program exited with status $ac_status" >&5
11230 echo "$as_me: failed program was:" >&5
11231 sed 's/^/| /' conftest.$ac_ext >&5
11232
11233 ( exit $ac_status )
11234 result=?
11235 fi
11236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11237 fi
11238 rm -f conftest.val
11239     if test "$cross_compiling" = yes; then
11240   # Depending upon the size, compute the lo and hi bounds.
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h.  */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h.  */
11247 #include <stddef.h>
11248 int
11249 main ()
11250 {
11251 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11252 test_array [0] = 0
11253
11254   ;
11255   return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext
11259 if { (ac_try="$ac_compile"
11260 case "(($ac_try" in
11261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262   *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265   (eval "$ac_compile") 2>conftest.er1
11266   ac_status=$?
11267   grep -v '^ *+' conftest.er1 >conftest.err
11268   rm -f conftest.er1
11269   cat conftest.err >&5
11270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271   (exit $ac_status); } &&
11272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11273   { (case "(($ac_try" in
11274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275   *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278   (eval "$ac_try") 2>&5
11279   ac_status=$?
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); }; } &&
11282          { ac_try='test -s conftest.$ac_objext'
11283   { (case "(($ac_try" in
11284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11285   *) ac_try_echo=$ac_try;;
11286 esac
11287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11288   (eval "$ac_try") 2>&5
11289   ac_status=$?
11290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291   (exit $ac_status); }; }; then
11292   ac_lo=0 ac_mid=0
11293   while :; do
11294     cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h.  */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h.  */
11300 #include <stddef.h>
11301 int
11302 main ()
11303 {
11304 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11305 test_array [0] = 0
11306
11307   ;
11308   return 0;
11309 }
11310 _ACEOF
11311 rm -f conftest.$ac_objext
11312 if { (ac_try="$ac_compile"
11313 case "(($ac_try" in
11314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315   *) ac_try_echo=$ac_try;;
11316 esac
11317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11318   (eval "$ac_compile") 2>conftest.er1
11319   ac_status=$?
11320   grep -v '^ *+' conftest.er1 >conftest.err
11321   rm -f conftest.er1
11322   cat conftest.err >&5
11323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324   (exit $ac_status); } &&
11325          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11326   { (case "(($ac_try" in
11327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328   *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331   (eval "$ac_try") 2>&5
11332   ac_status=$?
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); }; } &&
11335          { ac_try='test -s conftest.$ac_objext'
11336   { (case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_try") 2>&5
11342   ac_status=$?
11343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344   (exit $ac_status); }; }; then
11345   ac_hi=$ac_mid; break
11346 else
11347   echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11349
11350         ac_lo=`expr $ac_mid + 1`
11351                         if test $ac_lo -le $ac_mid; then
11352                           ac_lo= ac_hi=
11353                           break
11354                         fi
11355                         ac_mid=`expr 2 '*' $ac_mid + 1`
11356 fi
11357
11358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11359   done
11360 else
11361   echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11363
11364         cat >conftest.$ac_ext <<_ACEOF
11365 /* confdefs.h.  */
11366 _ACEOF
11367 cat confdefs.h >>conftest.$ac_ext
11368 cat >>conftest.$ac_ext <<_ACEOF
11369 /* end confdefs.h.  */
11370 #include <stddef.h>
11371 int
11372 main ()
11373 {
11374 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11375 test_array [0] = 0
11376
11377   ;
11378   return 0;
11379 }
11380 _ACEOF
11381 rm -f conftest.$ac_objext
11382 if { (ac_try="$ac_compile"
11383 case "(($ac_try" in
11384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11385   *) ac_try_echo=$ac_try;;
11386 esac
11387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11388   (eval "$ac_compile") 2>conftest.er1
11389   ac_status=$?
11390   grep -v '^ *+' conftest.er1 >conftest.err
11391   rm -f conftest.er1
11392   cat conftest.err >&5
11393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11394   (exit $ac_status); } &&
11395          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11396   { (case "(($ac_try" in
11397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398   *) ac_try_echo=$ac_try;;
11399 esac
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401   (eval "$ac_try") 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; } &&
11405          { ac_try='test -s conftest.$ac_objext'
11406   { (case "(($ac_try" in
11407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11408   *) ac_try_echo=$ac_try;;
11409 esac
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411   (eval "$ac_try") 2>&5
11412   ac_status=$?
11413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414   (exit $ac_status); }; }; then
11415   ac_hi=-1 ac_mid=-1
11416   while :; do
11417     cat >conftest.$ac_ext <<_ACEOF
11418 /* confdefs.h.  */
11419 _ACEOF
11420 cat confdefs.h >>conftest.$ac_ext
11421 cat >>conftest.$ac_ext <<_ACEOF
11422 /* end confdefs.h.  */
11423 #include <stddef.h>
11424 int
11425 main ()
11426 {
11427 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11428 test_array [0] = 0
11429
11430   ;
11431   return 0;
11432 }
11433 _ACEOF
11434 rm -f conftest.$ac_objext
11435 if { (ac_try="$ac_compile"
11436 case "(($ac_try" in
11437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11438   *) ac_try_echo=$ac_try;;
11439 esac
11440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11441   (eval "$ac_compile") 2>conftest.er1
11442   ac_status=$?
11443   grep -v '^ *+' conftest.er1 >conftest.err
11444   rm -f conftest.er1
11445   cat conftest.err >&5
11446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447   (exit $ac_status); } &&
11448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11449   { (case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_try") 2>&5
11455   ac_status=$?
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); }; } &&
11458          { ac_try='test -s conftest.$ac_objext'
11459   { (case "(($ac_try" in
11460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11461   *) ac_try_echo=$ac_try;;
11462 esac
11463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11464   (eval "$ac_try") 2>&5
11465   ac_status=$?
11466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467   (exit $ac_status); }; }; then
11468   ac_lo=$ac_mid; break
11469 else
11470   echo "$as_me: failed program was:" >&5
11471 sed 's/^/| /' conftest.$ac_ext >&5
11472
11473         ac_hi=`expr '(' $ac_mid ')' - 1`
11474                         if test $ac_mid -le $ac_hi; then
11475                           ac_lo= ac_hi=
11476                           break
11477                         fi
11478                         ac_mid=`expr 2 '*' $ac_mid`
11479 fi
11480
11481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11482   done
11483 else
11484   echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11486
11487         ac_lo= ac_hi=
11488 fi
11489
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 fi
11492
11493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11494 # Binary search between lo and hi bounds.
11495 while test "x$ac_lo" != "x$ac_hi"; do
11496   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11497   cat >conftest.$ac_ext <<_ACEOF
11498 /* confdefs.h.  */
11499 _ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h.  */
11503 #include <stddef.h>
11504 int
11505 main ()
11506 {
11507 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11508 test_array [0] = 0
11509
11510   ;
11511   return 0;
11512 }
11513 _ACEOF
11514 rm -f conftest.$ac_objext
11515 if { (ac_try="$ac_compile"
11516 case "(($ac_try" in
11517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11518   *) ac_try_echo=$ac_try;;
11519 esac
11520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11521   (eval "$ac_compile") 2>conftest.er1
11522   ac_status=$?
11523   grep -v '^ *+' conftest.er1 >conftest.err
11524   rm -f conftest.er1
11525   cat conftest.err >&5
11526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527   (exit $ac_status); } &&
11528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11529   { (case "(($ac_try" in
11530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531   *) ac_try_echo=$ac_try;;
11532 esac
11533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11534   (eval "$ac_try") 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); }; } &&
11538          { ac_try='test -s conftest.$ac_objext'
11539   { (case "(($ac_try" in
11540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11541   *) ac_try_echo=$ac_try;;
11542 esac
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544   (eval "$ac_try") 2>&5
11545   ac_status=$?
11546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547   (exit $ac_status); }; }; then
11548   ac_hi=$ac_mid
11549 else
11550   echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.$ac_ext >&5
11552
11553         ac_lo=`expr '(' $ac_mid ')' + 1`
11554 fi
11555
11556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 done
11558 case $ac_lo in
11559 ?*) res_lo=$ac_lo;;
11560 '') result=? ;;
11561 esac
11562 else
11563   cat >conftest.$ac_ext <<_ACEOF
11564 /* confdefs.h.  */
11565 _ACEOF
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h.  */
11569 #include <stddef.h>
11570 static long int longval () { return ~(size_t)0 % 10; }
11571 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11572 #include <stdio.h>
11573 #include <stdlib.h>
11574 int
11575 main ()
11576 {
11577
11578   FILE *f = fopen ("conftest.val", "w");
11579   if (! f)
11580     return 1;
11581   if ((~(size_t)0 % 10) < 0)
11582     {
11583       long int i = longval ();
11584       if (i != (~(size_t)0 % 10))
11585         return 1;
11586       fprintf (f, "%ld\n", i);
11587     }
11588   else
11589     {
11590       unsigned long int i = ulongval ();
11591       if (i != (~(size_t)0 % 10))
11592         return 1;
11593       fprintf (f, "%lu\n", i);
11594     }
11595   return ferror (f) || fclose (f) != 0;
11596
11597   ;
11598   return 0;
11599 }
11600 _ACEOF
11601 rm -f conftest$ac_exeext
11602 if { (ac_try="$ac_link"
11603 case "(($ac_try" in
11604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11605   *) ac_try_echo=$ac_try;;
11606 esac
11607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11608   (eval "$ac_link") 2>&5
11609   ac_status=$?
11610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11612   { (case "(($ac_try" in
11613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614   *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617   (eval "$ac_try") 2>&5
11618   ac_status=$?
11619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620   (exit $ac_status); }; }; then
11621   res_lo=`cat conftest.val`
11622 else
11623   echo "$as_me: program exited with status $ac_status" >&5
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ( exit $ac_status )
11628 result=?
11629 fi
11630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11631 fi
11632 rm -f conftest.val
11633     if test "$cross_compiling" = yes; then
11634   # Depending upon the size, compute the lo and hi bounds.
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h.  */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h.  */
11641 #include <stddef.h>
11642 int
11643 main ()
11644 {
11645 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11646 test_array [0] = 0
11647
11648   ;
11649   return 0;
11650 }
11651 _ACEOF
11652 rm -f conftest.$ac_objext
11653 if { (ac_try="$ac_compile"
11654 case "(($ac_try" in
11655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11656   *) ac_try_echo=$ac_try;;
11657 esac
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659   (eval "$ac_compile") 2>conftest.er1
11660   ac_status=$?
11661   grep -v '^ *+' conftest.er1 >conftest.err
11662   rm -f conftest.er1
11663   cat conftest.err >&5
11664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665   (exit $ac_status); } &&
11666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11667   { (case "(($ac_try" in
11668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11669   *) ac_try_echo=$ac_try;;
11670 esac
11671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11672   (eval "$ac_try") 2>&5
11673   ac_status=$?
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); }; } &&
11676          { ac_try='test -s conftest.$ac_objext'
11677   { (case "(($ac_try" in
11678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11679   *) ac_try_echo=$ac_try;;
11680 esac
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682   (eval "$ac_try") 2>&5
11683   ac_status=$?
11684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685   (exit $ac_status); }; }; then
11686   ac_lo=0 ac_mid=0
11687   while :; do
11688     cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 #include <stddef.h>
11695 int
11696 main ()
11697 {
11698 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11699 test_array [0] = 0
11700
11701   ;
11702   return 0;
11703 }
11704 _ACEOF
11705 rm -f conftest.$ac_objext
11706 if { (ac_try="$ac_compile"
11707 case "(($ac_try" in
11708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11709   *) ac_try_echo=$ac_try;;
11710 esac
11711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11712   (eval "$ac_compile") 2>conftest.er1
11713   ac_status=$?
11714   grep -v '^ *+' conftest.er1 >conftest.err
11715   rm -f conftest.er1
11716   cat conftest.err >&5
11717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718   (exit $ac_status); } &&
11719          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11720   { (case "(($ac_try" in
11721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722   *) ac_try_echo=$ac_try;;
11723 esac
11724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11725   (eval "$ac_try") 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); }; } &&
11729          { ac_try='test -s conftest.$ac_objext'
11730   { (case "(($ac_try" in
11731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732   *) ac_try_echo=$ac_try;;
11733 esac
11734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11735   (eval "$ac_try") 2>&5
11736   ac_status=$?
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); }; }; then
11739   ac_hi=$ac_mid; break
11740 else
11741   echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744         ac_lo=`expr $ac_mid + 1`
11745                         if test $ac_lo -le $ac_mid; then
11746                           ac_lo= ac_hi=
11747                           break
11748                         fi
11749                         ac_mid=`expr 2 '*' $ac_mid + 1`
11750 fi
11751
11752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11753   done
11754 else
11755   echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11757
11758         cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h.  */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h.  */
11764 #include <stddef.h>
11765 int
11766 main ()
11767 {
11768 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11769 test_array [0] = 0
11770
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_compile") 2>conftest.er1
11783   ac_status=$?
11784   grep -v '^ *+' conftest.er1 >conftest.err
11785   rm -f conftest.er1
11786   cat conftest.err >&5
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); } &&
11789          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11790   { (case "(($ac_try" in
11791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11792   *) ac_try_echo=$ac_try;;
11793 esac
11794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11795   (eval "$ac_try") 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; } &&
11799          { ac_try='test -s conftest.$ac_objext'
11800   { (case "(($ac_try" in
11801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11802   *) ac_try_echo=$ac_try;;
11803 esac
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805   (eval "$ac_try") 2>&5
11806   ac_status=$?
11807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808   (exit $ac_status); }; }; then
11809   ac_hi=-1 ac_mid=-1
11810   while :; do
11811     cat >conftest.$ac_ext <<_ACEOF
11812 /* confdefs.h.  */
11813 _ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h.  */
11817 #include <stddef.h>
11818 int
11819 main ()
11820 {
11821 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11822 test_array [0] = 0
11823
11824   ;
11825   return 0;
11826 }
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832   *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835   (eval "$ac_compile") 2>conftest.er1
11836   ac_status=$?
11837   grep -v '^ *+' conftest.er1 >conftest.err
11838   rm -f conftest.er1
11839   cat conftest.err >&5
11840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841   (exit $ac_status); } &&
11842          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11843   { (case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11848   (eval "$ac_try") 2>&5
11849   ac_status=$?
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); }; } &&
11852          { ac_try='test -s conftest.$ac_objext'
11853   { (case "(($ac_try" in
11854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11855   *) ac_try_echo=$ac_try;;
11856 esac
11857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11858   (eval "$ac_try") 2>&5
11859   ac_status=$?
11860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); }; }; then
11862   ac_lo=$ac_mid; break
11863 else
11864   echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11866
11867         ac_hi=`expr '(' $ac_mid ')' - 1`
11868                         if test $ac_mid -le $ac_hi; then
11869                           ac_lo= ac_hi=
11870                           break
11871                         fi
11872                         ac_mid=`expr 2 '*' $ac_mid`
11873 fi
11874
11875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876   done
11877 else
11878   echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11880
11881         ac_lo= ac_hi=
11882 fi
11883
11884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11885 fi
11886
11887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11888 # Binary search between lo and hi bounds.
11889 while test "x$ac_lo" != "x$ac_hi"; do
11890   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11891   cat >conftest.$ac_ext <<_ACEOF
11892 /* confdefs.h.  */
11893 _ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h.  */
11897 #include <stddef.h>
11898 int
11899 main ()
11900 {
11901 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11902 test_array [0] = 0
11903
11904   ;
11905   return 0;
11906 }
11907 _ACEOF
11908 rm -f conftest.$ac_objext
11909 if { (ac_try="$ac_compile"
11910 case "(($ac_try" in
11911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912   *) ac_try_echo=$ac_try;;
11913 esac
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915   (eval "$ac_compile") 2>conftest.er1
11916   ac_status=$?
11917   grep -v '^ *+' conftest.er1 >conftest.err
11918   rm -f conftest.er1
11919   cat conftest.err >&5
11920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921   (exit $ac_status); } &&
11922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11923   { (case "(($ac_try" in
11924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11925   *) ac_try_echo=$ac_try;;
11926 esac
11927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11928   (eval "$ac_try") 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; } &&
11932          { ac_try='test -s conftest.$ac_objext'
11933   { (case "(($ac_try" in
11934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11935   *) ac_try_echo=$ac_try;;
11936 esac
11937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11938   (eval "$ac_try") 2>&5
11939   ac_status=$?
11940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941   (exit $ac_status); }; }; then
11942   ac_hi=$ac_mid
11943 else
11944   echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11946
11947         ac_lo=`expr '(' $ac_mid ')' + 1`
11948 fi
11949
11950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11951 done
11952 case $ac_lo in
11953 ?*) fits_in_uint=$ac_lo;;
11954 '') result=? ;;
11955 esac
11956 else
11957   cat >conftest.$ac_ext <<_ACEOF
11958 /* confdefs.h.  */
11959 _ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h.  */
11963 #include <stddef.h>
11964 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11965 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11966 #include <stdio.h>
11967 #include <stdlib.h>
11968 int
11969 main ()
11970 {
11971
11972   FILE *f = fopen ("conftest.val", "w");
11973   if (! f)
11974     return 1;
11975   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11976     {
11977       long int i = longval ();
11978       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11979         return 1;
11980       fprintf (f, "%ld\n", i);
11981     }
11982   else
11983     {
11984       unsigned long int i = ulongval ();
11985       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11986         return 1;
11987       fprintf (f, "%lu\n", i);
11988     }
11989   return ferror (f) || fclose (f) != 0;
11990
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest$ac_exeext
11996 if { (ac_try="$ac_link"
11997 case "(($ac_try" in
11998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11999   *) ac_try_echo=$ac_try;;
12000 esac
12001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12002   (eval "$ac_link") 2>&5
12003   ac_status=$?
12004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12006   { (case "(($ac_try" in
12007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12008   *) ac_try_echo=$ac_try;;
12009 esac
12010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12011   (eval "$ac_try") 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); }; }; then
12015   fits_in_uint=`cat conftest.val`
12016 else
12017   echo "$as_me: program exited with status $ac_status" >&5
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12020
12021 ( exit $ac_status )
12022 result=?
12023 fi
12024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12025 fi
12026 rm -f conftest.val
12027     if test "$fits_in_uint" = 1; then
12028                   cat >conftest.$ac_ext <<_ACEOF
12029 /* confdefs.h.  */
12030 _ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h.  */
12034 #include <stddef.h>
12035         extern size_t foo;
12036         extern unsigned long foo;
12037
12038 int
12039 main ()
12040 {
12041
12042   ;
12043   return 0;
12044 }
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050   *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053   (eval "$ac_compile") 2>conftest.er1
12054   ac_status=$?
12055   grep -v '^ *+' conftest.er1 >conftest.err
12056   rm -f conftest.er1
12057   cat conftest.err >&5
12058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059   (exit $ac_status); } &&
12060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12061   { (case "(($ac_try" in
12062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063   *) ac_try_echo=$ac_try;;
12064 esac
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066   (eval "$ac_try") 2>&5
12067   ac_status=$?
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); }; } &&
12070          { ac_try='test -s conftest.$ac_objext'
12071   { (case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_try") 2>&5
12077   ac_status=$?
12078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079   (exit $ac_status); }; }; then
12080   fits_in_uint=0
12081 else
12082   echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12084
12085
12086 fi
12087
12088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12089     fi
12090     if test -z "$result"; then
12091       if test "$fits_in_uint" = 1; then
12092         result="$res_hi$res_lo"U
12093       else
12094         result="$res_hi$res_lo"UL
12095       fi
12096     else
12097             result='~(size_t)0'
12098     fi
12099   fi
12100   { echo "$as_me:$LINENO: result: $result" >&5
12101 echo "${ECHO_T}$result" >&6; }
12102   if test "$result" != yes; then
12103
12104 cat >>confdefs.h <<_ACEOF
12105 #define SIZE_MAX $result
12106 _ACEOF
12107
12108   fi
12109
12110
12111
12112
12113
12114 for ac_header in stdint.h
12115 do
12116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12118   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12121   echo $ECHO_N "(cached) $ECHO_C" >&6
12122 fi
12123 ac_res=`eval echo '${'$as_ac_Header'}'`
12124                { echo "$as_me:$LINENO: result: $ac_res" >&5
12125 echo "${ECHO_T}$ac_res" >&6; }
12126 else
12127   # Is the header compilable?
12128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12130 cat >conftest.$ac_ext <<_ACEOF
12131 /* confdefs.h.  */
12132 _ACEOF
12133 cat confdefs.h >>conftest.$ac_ext
12134 cat >>conftest.$ac_ext <<_ACEOF
12135 /* end confdefs.h.  */
12136 $ac_includes_default
12137 #include <$ac_header>
12138 _ACEOF
12139 rm -f conftest.$ac_objext
12140 if { (ac_try="$ac_compile"
12141 case "(($ac_try" in
12142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12143   *) ac_try_echo=$ac_try;;
12144 esac
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146   (eval "$ac_compile") 2>conftest.er1
12147   ac_status=$?
12148   grep -v '^ *+' conftest.er1 >conftest.err
12149   rm -f conftest.er1
12150   cat conftest.err >&5
12151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152   (exit $ac_status); } &&
12153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12154   { (case "(($ac_try" in
12155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12156   *) ac_try_echo=$ac_try;;
12157 esac
12158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12159   (eval "$ac_try") 2>&5
12160   ac_status=$?
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); }; } &&
12163          { ac_try='test -s conftest.$ac_objext'
12164   { (case "(($ac_try" in
12165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166   *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169   (eval "$ac_try") 2>&5
12170   ac_status=$?
12171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172   (exit $ac_status); }; }; then
12173   ac_header_compiler=yes
12174 else
12175   echo "$as_me: failed program was:" >&5
12176 sed 's/^/| /' conftest.$ac_ext >&5
12177
12178         ac_header_compiler=no
12179 fi
12180
12181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12182 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12183 echo "${ECHO_T}$ac_header_compiler" >&6; }
12184
12185 # Is the header present?
12186 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12187 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 #include <$ac_header>
12195 _ACEOF
12196 if { (ac_try="$ac_cpp conftest.$ac_ext"
12197 case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } >/dev/null; then
12209   if test -s conftest.err; then
12210     ac_cpp_err=$ac_c_preproc_warn_flag
12211     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12212   else
12213     ac_cpp_err=
12214   fi
12215 else
12216   ac_cpp_err=yes
12217 fi
12218 if test -z "$ac_cpp_err"; then
12219   ac_header_preproc=yes
12220 else
12221   echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12223
12224   ac_header_preproc=no
12225 fi
12226
12227 rm -f conftest.err conftest.$ac_ext
12228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12229 echo "${ECHO_T}$ac_header_preproc" >&6; }
12230
12231 # So?  What about this header?
12232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12233   yes:no: )
12234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12238     ac_header_preproc=yes
12239     ;;
12240   no:yes:* )
12241     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12243     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12244 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12247     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12248 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12253
12254     ;;
12255 esac
12256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12259   echo $ECHO_N "(cached) $ECHO_C" >&6
12260 else
12261   eval "$as_ac_Header=\$ac_header_preproc"
12262 fi
12263 ac_res=`eval echo '${'$as_ac_Header'}'`
12264                { echo "$as_me:$LINENO: result: $ac_res" >&5
12265 echo "${ECHO_T}$ac_res" >&6; }
12266
12267 fi
12268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12269   cat >>confdefs.h <<_ACEOF
12270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12271 _ACEOF
12272
12273 fi
12274
12275 done
12276
12277
12278
12279
12280
12281
12282
12283
12284   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12285 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12286 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12287   echo $ECHO_N "(cached) $ECHO_C" >&6
12288 else
12289   cat >conftest.$ac_ext <<_ACEOF
12290 /* confdefs.h.  */
12291 _ACEOF
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h.  */
12295 $ac_includes_default
12296 typedef ptrdiff_t ac__type_new_;
12297 int
12298 main ()
12299 {
12300 if ((ac__type_new_ *) 0)
12301   return 0;
12302 if (sizeof (ac__type_new_))
12303   return 0;
12304   ;
12305   return 0;
12306 }
12307 _ACEOF
12308 rm -f conftest.$ac_objext
12309 if { (ac_try="$ac_compile"
12310 case "(($ac_try" in
12311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312   *) ac_try_echo=$ac_try;;
12313 esac
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315   (eval "$ac_compile") 2>conftest.er1
12316   ac_status=$?
12317   grep -v '^ *+' conftest.er1 >conftest.err
12318   rm -f conftest.er1
12319   cat conftest.err >&5
12320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321   (exit $ac_status); } &&
12322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12323   { (case "(($ac_try" in
12324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325   *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328   (eval "$ac_try") 2>&5
12329   ac_status=$?
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); }; } &&
12332          { ac_try='test -s conftest.$ac_objext'
12333   { (case "(($ac_try" in
12334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12335   *) ac_try_echo=$ac_try;;
12336 esac
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338   (eval "$ac_try") 2>&5
12339   ac_status=$?
12340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341   (exit $ac_status); }; }; then
12342   ac_cv_type_ptrdiff_t=yes
12343 else
12344   echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347         ac_cv_type_ptrdiff_t=no
12348 fi
12349
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12353 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12354 if test $ac_cv_type_ptrdiff_t = yes; then
12355   :
12356 else
12357
12358 cat >>confdefs.h <<\_ACEOF
12359 #define ptrdiff_t long
12360 _ACEOF
12361
12362
12363 fi
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12376 stdlib.h string.h unistd.h sys/param.h
12377 do
12378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12380   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 fi
12385 ac_res=`eval echo '${'$as_ac_Header'}'`
12386                { echo "$as_me:$LINENO: result: $ac_res" >&5
12387 echo "${ECHO_T}$ac_res" >&6; }
12388 else
12389   # Is the header compilable?
12390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12392 cat >conftest.$ac_ext <<_ACEOF
12393 /* confdefs.h.  */
12394 _ACEOF
12395 cat confdefs.h >>conftest.$ac_ext
12396 cat >>conftest.$ac_ext <<_ACEOF
12397 /* end confdefs.h.  */
12398 $ac_includes_default
12399 #include <$ac_header>
12400 _ACEOF
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12405   *) ac_try_echo=$ac_try;;
12406 esac
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408   (eval "$ac_compile") 2>conftest.er1
12409   ac_status=$?
12410   grep -v '^ *+' conftest.er1 >conftest.err
12411   rm -f conftest.er1
12412   cat conftest.err >&5
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); } &&
12415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12416   { (case "(($ac_try" in
12417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12418   *) ac_try_echo=$ac_try;;
12419 esac
12420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12421   (eval "$ac_try") 2>&5
12422   ac_status=$?
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); }; } &&
12425          { ac_try='test -s conftest.$ac_objext'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; }; then
12435   ac_header_compiler=yes
12436 else
12437   echo "$as_me: failed program was:" >&5
12438 sed 's/^/| /' conftest.$ac_ext >&5
12439
12440         ac_header_compiler=no
12441 fi
12442
12443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12444 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12445 echo "${ECHO_T}$ac_header_compiler" >&6; }
12446
12447 # Is the header present?
12448 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12456 #include <$ac_header>
12457 _ACEOF
12458 if { (ac_try="$ac_cpp conftest.$ac_ext"
12459 case "(($ac_try" in
12460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461   *) ac_try_echo=$ac_try;;
12462 esac
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12465   ac_status=$?
12466   grep -v '^ *+' conftest.er1 >conftest.err
12467   rm -f conftest.er1
12468   cat conftest.err >&5
12469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470   (exit $ac_status); } >/dev/null; then
12471   if test -s conftest.err; then
12472     ac_cpp_err=$ac_c_preproc_warn_flag
12473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12474   else
12475     ac_cpp_err=
12476   fi
12477 else
12478   ac_cpp_err=yes
12479 fi
12480 if test -z "$ac_cpp_err"; then
12481   ac_header_preproc=yes
12482 else
12483   echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486   ac_header_preproc=no
12487 fi
12488
12489 rm -f conftest.err conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12491 echo "${ECHO_T}$ac_header_preproc" >&6; }
12492
12493 # So?  What about this header?
12494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12495   yes:no: )
12496     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12498     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12500     ac_header_preproc=yes
12501     ;;
12502   no:yes:* )
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12506 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12507     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12509     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12510 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12511     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12515
12516     ;;
12517 esac
12518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12521   echo $ECHO_N "(cached) $ECHO_C" >&6
12522 else
12523   eval "$as_ac_Header=\$ac_header_preproc"
12524 fi
12525 ac_res=`eval echo '${'$as_ac_Header'}'`
12526                { echo "$as_me:$LINENO: result: $ac_res" >&5
12527 echo "${ECHO_T}$ac_res" >&6; }
12528
12529 fi
12530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12531   cat >>confdefs.h <<_ACEOF
12532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12533 _ACEOF
12534
12535 fi
12536
12537 done
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12563 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12564 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12565 __fsetlocking
12566 do
12567 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12568 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12569 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12570 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12571   echo $ECHO_N "(cached) $ECHO_C" >&6
12572 else
12573   cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h.  */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h.  */
12579 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12581 #define $ac_func innocuous_$ac_func
12582
12583 /* System header to define __stub macros and hopefully few prototypes,
12584     which can conflict with char $ac_func (); below.
12585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12586     <limits.h> exists even on freestanding compilers.  */
12587
12588 #ifdef __STDC__
12589 # include <limits.h>
12590 #else
12591 # include <assert.h>
12592 #endif
12593
12594 #undef $ac_func
12595
12596 /* Override any GCC internal prototype to avoid an error.
12597    Use char because int might match the return type of a GCC
12598    builtin and then its argument prototype would still apply.  */
12599 #ifdef __cplusplus
12600 extern "C"
12601 #endif
12602 char $ac_func ();
12603 /* The GNU C library defines this for functions which it implements
12604     to always fail with ENOSYS.  Some functions are actually named
12605     something starting with __ and the normal name is an alias.  */
12606 #if defined __stub_$ac_func || defined __stub___$ac_func
12607 choke me
12608 #endif
12609
12610 int
12611 main ()
12612 {
12613 return $ac_func ();
12614   ;
12615   return 0;
12616 }
12617 _ACEOF
12618 rm -f conftest.$ac_objext conftest$ac_exeext
12619 if { (ac_try="$ac_link"
12620 case "(($ac_try" in
12621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12622   *) ac_try_echo=$ac_try;;
12623 esac
12624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12625   (eval "$ac_link") 2>conftest.er1
12626   ac_status=$?
12627   grep -v '^ *+' conftest.er1 >conftest.err
12628   rm -f conftest.er1
12629   cat conftest.err >&5
12630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631   (exit $ac_status); } &&
12632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12633   { (case "(($ac_try" in
12634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12635   *) ac_try_echo=$ac_try;;
12636 esac
12637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12638   (eval "$ac_try") 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); }; } &&
12642          { ac_try='test -s conftest$ac_exeext'
12643   { (case "(($ac_try" in
12644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12645   *) ac_try_echo=$ac_try;;
12646 esac
12647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12648   (eval "$ac_try") 2>&5
12649   ac_status=$?
12650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12651   (exit $ac_status); }; }; then
12652   eval "$as_ac_var=yes"
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657         eval "$as_ac_var=no"
12658 fi
12659
12660 rm -f core conftest.err conftest.$ac_objext \
12661       conftest$ac_exeext conftest.$ac_ext
12662 fi
12663 ac_res=`eval echo '${'$as_ac_var'}'`
12664                { echo "$as_me:$LINENO: result: $ac_res" >&5
12665 echo "${ECHO_T}$ac_res" >&6; }
12666 if test `eval echo '${'$as_ac_var'}'` = yes; then
12667   cat >>confdefs.h <<_ACEOF
12668 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12669 _ACEOF
12670
12671 fi
12672 done
12673
12674
12675
12676   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12677 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12678 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12679   echo $ECHO_N "(cached) $ECHO_C" >&6
12680 else
12681   cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h.  */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h.  */
12687 #include <stdio.h>
12688 int
12689 main ()
12690 {
12691
12692 #ifndef _snprintf
12693   char *p = (char *) _snprintf;
12694 #endif
12695
12696   ;
12697   return 0;
12698 }
12699 _ACEOF
12700 rm -f conftest.$ac_objext
12701 if { (ac_try="$ac_compile"
12702 case "(($ac_try" in
12703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704   *) ac_try_echo=$ac_try;;
12705 esac
12706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707   (eval "$ac_compile") 2>conftest.er1
12708   ac_status=$?
12709   grep -v '^ *+' conftest.er1 >conftest.err
12710   rm -f conftest.er1
12711   cat conftest.err >&5
12712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713   (exit $ac_status); } &&
12714          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12715   { (case "(($ac_try" in
12716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12717   *) ac_try_echo=$ac_try;;
12718 esac
12719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12720   (eval "$ac_try") 2>&5
12721   ac_status=$?
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); }; } &&
12724          { ac_try='test -s conftest.$ac_objext'
12725   { (case "(($ac_try" in
12726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727   *) ac_try_echo=$ac_try;;
12728 esac
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730   (eval "$ac_try") 2>&5
12731   ac_status=$?
12732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733   (exit $ac_status); }; }; then
12734   ac_cv_have_decl__snprintf=yes
12735 else
12736   echo "$as_me: failed program was:" >&5
12737 sed 's/^/| /' conftest.$ac_ext >&5
12738
12739         ac_cv_have_decl__snprintf=no
12740 fi
12741
12742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 fi
12744 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12745 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12746   if test $ac_cv_have_decl__snprintf = yes; then
12747     gt_value=1
12748   else
12749     gt_value=0
12750   fi
12751
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE_DECL__SNPRINTF $gt_value
12754 _ACEOF
12755
12756
12757
12758   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12759 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12760 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12761   echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763   cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h.  */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h.  */
12769 #include <stdio.h>
12770 int
12771 main ()
12772 {
12773
12774 #ifndef _snwprintf
12775   char *p = (char *) _snwprintf;
12776 #endif
12777
12778   ;
12779   return 0;
12780 }
12781 _ACEOF
12782 rm -f conftest.$ac_objext
12783 if { (ac_try="$ac_compile"
12784 case "(($ac_try" in
12785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12786   *) ac_try_echo=$ac_try;;
12787 esac
12788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12789   (eval "$ac_compile") 2>conftest.er1
12790   ac_status=$?
12791   grep -v '^ *+' conftest.er1 >conftest.err
12792   rm -f conftest.er1
12793   cat conftest.err >&5
12794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795   (exit $ac_status); } &&
12796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12797   { (case "(($ac_try" in
12798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799   *) ac_try_echo=$ac_try;;
12800 esac
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802   (eval "$ac_try") 2>&5
12803   ac_status=$?
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); }; } &&
12806          { ac_try='test -s conftest.$ac_objext'
12807   { (case "(($ac_try" in
12808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12809   *) ac_try_echo=$ac_try;;
12810 esac
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812   (eval "$ac_try") 2>&5
12813   ac_status=$?
12814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815   (exit $ac_status); }; }; then
12816   ac_cv_have_decl__snwprintf=yes
12817 else
12818   echo "$as_me: failed program was:" >&5
12819 sed 's/^/| /' conftest.$ac_ext >&5
12820
12821         ac_cv_have_decl__snwprintf=no
12822 fi
12823
12824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 fi
12826 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12827 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12828   if test $ac_cv_have_decl__snwprintf = yes; then
12829     gt_value=1
12830   else
12831     gt_value=0
12832   fi
12833
12834 cat >>confdefs.h <<_ACEOF
12835 #define HAVE_DECL__SNWPRINTF $gt_value
12836 _ACEOF
12837
12838
12839
12840
12841   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12842 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12843 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12844   echo $ECHO_N "(cached) $ECHO_C" >&6
12845 else
12846   cat >conftest.$ac_ext <<_ACEOF
12847 /* confdefs.h.  */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h.  */
12852 #include <stdio.h>
12853 int
12854 main ()
12855 {
12856
12857 #ifndef feof_unlocked
12858   char *p = (char *) feof_unlocked;
12859 #endif
12860
12861   ;
12862   return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869   *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872   (eval "$ac_compile") 2>conftest.er1
12873   ac_status=$?
12874   grep -v '^ *+' conftest.er1 >conftest.err
12875   rm -f conftest.er1
12876   cat conftest.err >&5
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } &&
12879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12880   { (case "(($ac_try" in
12881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12882   *) ac_try_echo=$ac_try;;
12883 esac
12884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12885   (eval "$ac_try") 2>&5
12886   ac_status=$?
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); }; } &&
12889          { ac_try='test -s conftest.$ac_objext'
12890   { (case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12895   (eval "$ac_try") 2>&5
12896   ac_status=$?
12897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898   (exit $ac_status); }; }; then
12899   ac_cv_have_decl_feof_unlocked=yes
12900 else
12901   echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12903
12904         ac_cv_have_decl_feof_unlocked=no
12905 fi
12906
12907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12908 fi
12909 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12910 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12911   if test $ac_cv_have_decl_feof_unlocked = yes; then
12912     gt_value=1
12913   else
12914     gt_value=0
12915   fi
12916
12917 cat >>confdefs.h <<_ACEOF
12918 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12919 _ACEOF
12920
12921
12922
12923   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12924 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12925 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12926   echo $ECHO_N "(cached) $ECHO_C" >&6
12927 else
12928   cat >conftest.$ac_ext <<_ACEOF
12929 /* confdefs.h.  */
12930 _ACEOF
12931 cat confdefs.h >>conftest.$ac_ext
12932 cat >>conftest.$ac_ext <<_ACEOF
12933 /* end confdefs.h.  */
12934 #include <stdio.h>
12935 int
12936 main ()
12937 {
12938
12939 #ifndef fgets_unlocked
12940   char *p = (char *) fgets_unlocked;
12941 #endif
12942
12943   ;
12944   return 0;
12945 }
12946 _ACEOF
12947 rm -f conftest.$ac_objext
12948 if { (ac_try="$ac_compile"
12949 case "(($ac_try" in
12950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951   *) ac_try_echo=$ac_try;;
12952 esac
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954   (eval "$ac_compile") 2>conftest.er1
12955   ac_status=$?
12956   grep -v '^ *+' conftest.er1 >conftest.err
12957   rm -f conftest.er1
12958   cat conftest.err >&5
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12962   { (case "(($ac_try" in
12963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964   *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967   (eval "$ac_try") 2>&5
12968   ac_status=$?
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); }; } &&
12971          { ac_try='test -s conftest.$ac_objext'
12972   { (case "(($ac_try" in
12973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12974   *) ac_try_echo=$ac_try;;
12975 esac
12976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12977   (eval "$ac_try") 2>&5
12978   ac_status=$?
12979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980   (exit $ac_status); }; }; then
12981   ac_cv_have_decl_fgets_unlocked=yes
12982 else
12983   echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12985
12986         ac_cv_have_decl_fgets_unlocked=no
12987 fi
12988
12989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12990 fi
12991 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12992 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12993   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12994     gt_value=1
12995   else
12996     gt_value=0
12997   fi
12998
12999 cat >>confdefs.h <<_ACEOF
13000 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13001 _ACEOF
13002
13003
13004
13005   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13006 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13007 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13008   echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010   cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016 #include <stdio.h>
13017 int
13018 main ()
13019 {
13020
13021 #ifndef getc_unlocked
13022   char *p = (char *) getc_unlocked;
13023 #endif
13024
13025   ;
13026   return 0;
13027 }
13028 _ACEOF
13029 rm -f conftest.$ac_objext
13030 if { (ac_try="$ac_compile"
13031 case "(($ac_try" in
13032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033   *) ac_try_echo=$ac_try;;
13034 esac
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036   (eval "$ac_compile") 2>conftest.er1
13037   ac_status=$?
13038   grep -v '^ *+' conftest.er1 >conftest.err
13039   rm -f conftest.er1
13040   cat conftest.err >&5
13041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042   (exit $ac_status); } &&
13043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13044   { (case "(($ac_try" in
13045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13046   *) ac_try_echo=$ac_try;;
13047 esac
13048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13049   (eval "$ac_try") 2>&5
13050   ac_status=$?
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); }; } &&
13053          { ac_try='test -s conftest.$ac_objext'
13054   { (case "(($ac_try" in
13055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13056   *) ac_try_echo=$ac_try;;
13057 esac
13058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13059   (eval "$ac_try") 2>&5
13060   ac_status=$?
13061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13062   (exit $ac_status); }; }; then
13063   ac_cv_have_decl_getc_unlocked=yes
13064 else
13065   echo "$as_me: failed program was:" >&5
13066 sed 's/^/| /' conftest.$ac_ext >&5
13067
13068         ac_cv_have_decl_getc_unlocked=no
13069 fi
13070
13071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13072 fi
13073 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13074 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13075   if test $ac_cv_have_decl_getc_unlocked = yes; then
13076     gt_value=1
13077   else
13078     gt_value=0
13079   fi
13080
13081 cat >>confdefs.h <<_ACEOF
13082 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13083 _ACEOF
13084
13085
13086
13087   case $gt_cv_func_printf_posix in
13088     *yes) HAVE_POSIX_PRINTF=1 ;;
13089     *) HAVE_POSIX_PRINTF=0 ;;
13090   esac
13091
13092   if test "$ac_cv_func_asprintf" = yes; then
13093     HAVE_ASPRINTF=1
13094   else
13095     HAVE_ASPRINTF=0
13096   fi
13097
13098   if test "$ac_cv_func_snprintf" = yes; then
13099     HAVE_SNPRINTF=1
13100   else
13101     HAVE_SNPRINTF=0
13102   fi
13103
13104   if test "$ac_cv_func_wprintf" = yes; then
13105     HAVE_WPRINTF=1
13106   else
13107     HAVE_WPRINTF=0
13108   fi
13109
13110
13111
13112
13113
13114
13115
13116           am_save_CPPFLAGS="$CPPFLAGS"
13117
13118   for element in $INCICONV; do
13119     haveit=
13120     for x in $CPPFLAGS; do
13121
13122   acl_save_prefix="$prefix"
13123   prefix="$acl_final_prefix"
13124   acl_save_exec_prefix="$exec_prefix"
13125   exec_prefix="$acl_final_exec_prefix"
13126   eval x=\"$x\"
13127   exec_prefix="$acl_save_exec_prefix"
13128   prefix="$acl_save_prefix"
13129
13130       if test "X$x" = "X$element"; then
13131         haveit=yes
13132         break
13133       fi
13134     done
13135     if test -z "$haveit"; then
13136       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13137     fi
13138   done
13139
13140
13141   { echo "$as_me:$LINENO: checking for iconv" >&5
13142 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13143 if test "${am_cv_func_iconv+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146
13147     am_cv_func_iconv="no, consider installing GNU libiconv"
13148     am_cv_lib_iconv=no
13149     cat >conftest.$ac_ext <<_ACEOF
13150 /* confdefs.h.  */
13151 _ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h.  */
13155 #include <stdlib.h>
13156 #include <iconv.h>
13157 int
13158 main ()
13159 {
13160 iconv_t cd = iconv_open("","");
13161        iconv(cd,NULL,NULL,NULL,NULL);
13162        iconv_close(cd);
13163   ;
13164   return 0;
13165 }
13166 _ACEOF
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171   *) ac_try_echo=$ac_try;;
13172 esac
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174   (eval "$ac_link") 2>conftest.er1
13175   ac_status=$?
13176   grep -v '^ *+' conftest.er1 >conftest.err
13177   rm -f conftest.er1
13178   cat conftest.err >&5
13179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180   (exit $ac_status); } &&
13181          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13182   { (case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_try") 2>&5
13188   ac_status=$?
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); }; } &&
13191          { ac_try='test -s conftest$ac_exeext'
13192   { (case "(($ac_try" in
13193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194   *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197   (eval "$ac_try") 2>&5
13198   ac_status=$?
13199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200   (exit $ac_status); }; }; then
13201   am_cv_func_iconv=yes
13202 else
13203   echo "$as_me: failed program was:" >&5
13204 sed 's/^/| /' conftest.$ac_ext >&5
13205
13206
13207 fi
13208
13209 rm -f core conftest.err conftest.$ac_objext \
13210       conftest$ac_exeext conftest.$ac_ext
13211     if test "$am_cv_func_iconv" != yes; then
13212       am_save_LIBS="$LIBS"
13213       LIBS="$LIBS $LIBICONV"
13214       cat >conftest.$ac_ext <<_ACEOF
13215 /* confdefs.h.  */
13216 _ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h.  */
13220 #include <stdlib.h>
13221 #include <iconv.h>
13222 int
13223 main ()
13224 {
13225 iconv_t cd = iconv_open("","");
13226          iconv(cd,NULL,NULL,NULL,NULL);
13227          iconv_close(cd);
13228   ;
13229   return 0;
13230 }
13231 _ACEOF
13232 rm -f conftest.$ac_objext conftest$ac_exeext
13233 if { (ac_try="$ac_link"
13234 case "(($ac_try" in
13235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13236   *) ac_try_echo=$ac_try;;
13237 esac
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239   (eval "$ac_link") 2>conftest.er1
13240   ac_status=$?
13241   grep -v '^ *+' conftest.er1 >conftest.err
13242   rm -f conftest.er1
13243   cat conftest.err >&5
13244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245   (exit $ac_status); } &&
13246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13247   { (case "(($ac_try" in
13248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13249   *) ac_try_echo=$ac_try;;
13250 esac
13251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13252   (eval "$ac_try") 2>&5
13253   ac_status=$?
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); }; } &&
13256          { ac_try='test -s conftest$ac_exeext'
13257   { (case "(($ac_try" in
13258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13259   *) ac_try_echo=$ac_try;;
13260 esac
13261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13262   (eval "$ac_try") 2>&5
13263   ac_status=$?
13264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265   (exit $ac_status); }; }; then
13266   am_cv_lib_iconv=yes
13267         am_cv_func_iconv=yes
13268 else
13269   echo "$as_me: failed program was:" >&5
13270 sed 's/^/| /' conftest.$ac_ext >&5
13271
13272
13273 fi
13274
13275 rm -f core conftest.err conftest.$ac_objext \
13276       conftest$ac_exeext conftest.$ac_ext
13277       LIBS="$am_save_LIBS"
13278     fi
13279
13280 fi
13281 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13282 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13283   if test "$am_cv_func_iconv" = yes; then
13284
13285 cat >>confdefs.h <<\_ACEOF
13286 #define HAVE_ICONV 1
13287 _ACEOF
13288
13289   fi
13290   if test "$am_cv_lib_iconv" = yes; then
13291     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13292 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13293     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13294 echo "${ECHO_T}$LIBICONV" >&6; }
13295   else
13296             CPPFLAGS="$am_save_CPPFLAGS"
13297     LIBICONV=
13298     LTLIBICONV=
13299   fi
13300
13301
13302
13303   if test "$am_cv_func_iconv" = yes; then
13304     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13305 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13306     if test "${am_cv_proto_iconv+set}" = set; then
13307   echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309
13310       cat >conftest.$ac_ext <<_ACEOF
13311 /* confdefs.h.  */
13312 _ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h.  */
13316
13317 #include <stdlib.h>
13318 #include <iconv.h>
13319 extern
13320 #ifdef __cplusplus
13321 "C"
13322 #endif
13323 #if defined(__STDC__) || defined(__cplusplus)
13324 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13325 #else
13326 size_t iconv();
13327 #endif
13328
13329 int
13330 main ()
13331 {
13332
13333   ;
13334   return 0;
13335 }
13336 _ACEOF
13337 rm -f conftest.$ac_objext
13338 if { (ac_try="$ac_compile"
13339 case "(($ac_try" in
13340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341   *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344   (eval "$ac_compile") 2>conftest.er1
13345   ac_status=$?
13346   grep -v '^ *+' conftest.er1 >conftest.err
13347   rm -f conftest.er1
13348   cat conftest.err >&5
13349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350   (exit $ac_status); } &&
13351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13352   { (case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13357   (eval "$ac_try") 2>&5
13358   ac_status=$?
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); }; } &&
13361          { ac_try='test -s conftest.$ac_objext'
13362   { (case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13367   (eval "$ac_try") 2>&5
13368   ac_status=$?
13369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370   (exit $ac_status); }; }; then
13371   am_cv_proto_iconv_arg1=""
13372 else
13373   echo "$as_me: failed program was:" >&5
13374 sed 's/^/| /' conftest.$ac_ext >&5
13375
13376         am_cv_proto_iconv_arg1="const"
13377 fi
13378
13379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
13381 fi
13382
13383     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13384     { echo "$as_me:$LINENO: result: ${ac_t:-
13385          }$am_cv_proto_iconv" >&5
13386 echo "${ECHO_T}${ac_t:-
13387          }$am_cv_proto_iconv" >&6; }
13388
13389 cat >>confdefs.h <<_ACEOF
13390 #define ICONV_CONST $am_cv_proto_iconv_arg1
13391 _ACEOF
13392
13393   fi
13394
13395
13396   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13397 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13398 if test "${am_cv_langinfo_codeset+set}" = set; then
13399   echo $ECHO_N "(cached) $ECHO_C" >&6
13400 else
13401   cat >conftest.$ac_ext <<_ACEOF
13402 /* confdefs.h.  */
13403 _ACEOF
13404 cat confdefs.h >>conftest.$ac_ext
13405 cat >>conftest.$ac_ext <<_ACEOF
13406 /* end confdefs.h.  */
13407 #include <langinfo.h>
13408 int
13409 main ()
13410 {
13411 char* cs = nl_langinfo(CODESET);
13412   ;
13413   return 0;
13414 }
13415 _ACEOF
13416 rm -f conftest.$ac_objext conftest$ac_exeext
13417 if { (ac_try="$ac_link"
13418 case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_link") 2>conftest.er1
13424   ac_status=$?
13425   grep -v '^ *+' conftest.er1 >conftest.err
13426   rm -f conftest.er1
13427   cat conftest.err >&5
13428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429   (exit $ac_status); } &&
13430          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13431   { (case "(($ac_try" in
13432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433   *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436   (eval "$ac_try") 2>&5
13437   ac_status=$?
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); }; } &&
13440          { ac_try='test -s conftest$ac_exeext'
13441   { (case "(($ac_try" in
13442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443   *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446   (eval "$ac_try") 2>&5
13447   ac_status=$?
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); }; }; then
13450   am_cv_langinfo_codeset=yes
13451 else
13452   echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13454
13455         am_cv_langinfo_codeset=no
13456 fi
13457
13458 rm -f core conftest.err conftest.$ac_objext \
13459       conftest$ac_exeext conftest.$ac_ext
13460
13461 fi
13462 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13463 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13464   if test $am_cv_langinfo_codeset = yes; then
13465
13466 cat >>confdefs.h <<\_ACEOF
13467 #define HAVE_LANGINFO_CODESET 1
13468 _ACEOF
13469
13470   fi
13471
13472   if test $ac_cv_header_locale_h = yes; then
13473
13474   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13475 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13476 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13477   echo $ECHO_N "(cached) $ECHO_C" >&6
13478 else
13479   cat >conftest.$ac_ext <<_ACEOF
13480 /* confdefs.h.  */
13481 _ACEOF
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h.  */
13485 #include <locale.h>
13486 int
13487 main ()
13488 {
13489 return LC_MESSAGES
13490   ;
13491   return 0;
13492 }
13493 _ACEOF
13494 rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498   *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501   (eval "$ac_link") 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } &&
13508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13509   { (case "(($ac_try" in
13510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511   *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514   (eval "$ac_try") 2>&5
13515   ac_status=$?
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); }; } &&
13518          { ac_try='test -s conftest$ac_exeext'
13519   { (case "(($ac_try" in
13520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13521   *) ac_try_echo=$ac_try;;
13522 esac
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524   (eval "$ac_try") 2>&5
13525   ac_status=$?
13526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527   (exit $ac_status); }; }; then
13528   gt_cv_val_LC_MESSAGES=yes
13529 else
13530   echo "$as_me: failed program was:" >&5
13531 sed 's/^/| /' conftest.$ac_ext >&5
13532
13533         gt_cv_val_LC_MESSAGES=no
13534 fi
13535
13536 rm -f core conftest.err conftest.$ac_objext \
13537       conftest$ac_exeext conftest.$ac_ext
13538 fi
13539 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13540 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13541   if test $gt_cv_val_LC_MESSAGES = yes; then
13542
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_LC_MESSAGES 1
13545 _ACEOF
13546
13547   fi
13548
13549   fi
13550
13551   if test -n "$INTL_MACOSX_LIBS"; then
13552     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13553   fi
13554
13555                       for ac_prog in bison
13556 do
13557   # Extract the first word of "$ac_prog", so it can be a program name with args.
13558 set dummy $ac_prog; ac_word=$2
13559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13561 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   if test -n "$INTLBISON"; then
13565   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13566 else
13567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13568 for as_dir in $PATH
13569 do
13570   IFS=$as_save_IFS
13571   test -z "$as_dir" && as_dir=.
13572   for ac_exec_ext in '' $ac_executable_extensions; do
13573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13574     ac_cv_prog_INTLBISON="$ac_prog"
13575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13576     break 2
13577   fi
13578 done
13579 done
13580 IFS=$as_save_IFS
13581
13582 fi
13583 fi
13584 INTLBISON=$ac_cv_prog_INTLBISON
13585 if test -n "$INTLBISON"; then
13586   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13587 echo "${ECHO_T}$INTLBISON" >&6; }
13588 else
13589   { echo "$as_me:$LINENO: result: no" >&5
13590 echo "${ECHO_T}no" >&6; }
13591 fi
13592
13593
13594   test -n "$INTLBISON" && break
13595 done
13596
13597   if test -z "$INTLBISON"; then
13598     ac_verc_fail=yes
13599   else
13600         { echo "$as_me:$LINENO: checking version of bison" >&5
13601 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13602     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13603     case $ac_prog_version in
13604       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13605       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13606          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13607       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13608     esac
13609     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13610 echo "${ECHO_T}$ac_prog_version" >&6; }
13611   fi
13612   if test $ac_verc_fail = yes; then
13613     INTLBISON=:
13614   fi
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13632 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13633 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13634   echo $ECHO_N "(cached) $ECHO_C" >&6
13635 else
13636   gt_save_CPPFLAGS="$CPPFLAGS"
13637      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13638      gt_save_LIBS="$LIBS"
13639      LIBS="$LIBS -framework CoreFoundation"
13640      cat >conftest.$ac_ext <<_ACEOF
13641 /* confdefs.h.  */
13642 _ACEOF
13643 cat confdefs.h >>conftest.$ac_ext
13644 cat >>conftest.$ac_ext <<_ACEOF
13645 /* end confdefs.h.  */
13646 #include <CFPreferences.h>
13647 int
13648 main ()
13649 {
13650 CFPreferencesCopyAppValue(NULL, NULL)
13651   ;
13652   return 0;
13653 }
13654 _ACEOF
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (ac_try="$ac_link"
13657 case "(($ac_try" in
13658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13659   *) ac_try_echo=$ac_try;;
13660 esac
13661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13662   (eval "$ac_link") 2>conftest.er1
13663   ac_status=$?
13664   grep -v '^ *+' conftest.er1 >conftest.err
13665   rm -f conftest.er1
13666   cat conftest.err >&5
13667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13668   (exit $ac_status); } &&
13669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13670   { (case "(($ac_try" in
13671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13672   *) ac_try_echo=$ac_try;;
13673 esac
13674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13675   (eval "$ac_try") 2>&5
13676   ac_status=$?
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); }; } &&
13679          { ac_try='test -s conftest$ac_exeext'
13680   { (case "(($ac_try" in
13681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13682   *) ac_try_echo=$ac_try;;
13683 esac
13684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13685   (eval "$ac_try") 2>&5
13686   ac_status=$?
13687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688   (exit $ac_status); }; }; then
13689   gt_cv_func_CFPreferencesCopyAppValue=yes
13690 else
13691   echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.$ac_ext >&5
13693
13694         gt_cv_func_CFPreferencesCopyAppValue=no
13695 fi
13696
13697 rm -f core conftest.err conftest.$ac_objext \
13698       conftest$ac_exeext conftest.$ac_ext
13699      CPPFLAGS="$gt_save_CPPFLAGS"
13700      LIBS="$gt_save_LIBS"
13701 fi
13702 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13703 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13704   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13705
13706 cat >>confdefs.h <<\_ACEOF
13707 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13708 _ACEOF
13709
13710   fi
13711     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13712 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13713 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13714   echo $ECHO_N "(cached) $ECHO_C" >&6
13715 else
13716   gt_save_CPPFLAGS="$CPPFLAGS"
13717      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13718      gt_save_LIBS="$LIBS"
13719      LIBS="$LIBS -framework CoreFoundation"
13720      cat >conftest.$ac_ext <<_ACEOF
13721 /* confdefs.h.  */
13722 _ACEOF
13723 cat confdefs.h >>conftest.$ac_ext
13724 cat >>conftest.$ac_ext <<_ACEOF
13725 /* end confdefs.h.  */
13726 #include <CFLocale.h>
13727 int
13728 main ()
13729 {
13730 CFLocaleCopyCurrent();
13731   ;
13732   return 0;
13733 }
13734 _ACEOF
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (ac_try="$ac_link"
13737 case "(($ac_try" in
13738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13739   *) ac_try_echo=$ac_try;;
13740 esac
13741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13742   (eval "$ac_link") 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } &&
13749          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13750   { (case "(($ac_try" in
13751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13752   *) ac_try_echo=$ac_try;;
13753 esac
13754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13755   (eval "$ac_try") 2>&5
13756   ac_status=$?
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); }; } &&
13759          { ac_try='test -s conftest$ac_exeext'
13760   { (case "(($ac_try" in
13761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13762   *) ac_try_echo=$ac_try;;
13763 esac
13764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13765   (eval "$ac_try") 2>&5
13766   ac_status=$?
13767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768   (exit $ac_status); }; }; then
13769   gt_cv_func_CFLocaleCopyCurrent=yes
13770 else
13771   echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13773
13774         gt_cv_func_CFLocaleCopyCurrent=no
13775 fi
13776
13777 rm -f core conftest.err conftest.$ac_objext \
13778       conftest$ac_exeext conftest.$ac_ext
13779      CPPFLAGS="$gt_save_CPPFLAGS"
13780      LIBS="$gt_save_LIBS"
13781 fi
13782 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13783 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13784   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13785
13786 cat >>confdefs.h <<\_ACEOF
13787 #define HAVE_CFLOCALECOPYCURRENT 1
13788 _ACEOF
13789
13790   fi
13791   INTL_MACOSX_LIBS=
13792   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13793     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13794   fi
13795
13796
13797
13798
13799   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13800 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13801     # Check whether --enable-nls was given.
13802 if test "${enable_nls+set}" = set; then
13803   enableval=$enable_nls; USE_NLS=$enableval
13804 else
13805   USE_NLS=yes
13806 fi
13807
13808   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13809 echo "${ECHO_T}$USE_NLS" >&6; }
13810
13811
13812
13813
13814     BUILD_INCLUDED_LIBINTL=no
13815     USE_INCLUDED_LIBINTL=no
13816
13817   LIBINTL=
13818   LTLIBINTL=
13819   POSUB=
13820
13821     if test "$USE_NLS" = "yes"; then
13822     gt_use_preinstalled_gnugettext=no
13823
13824       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13825 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13826
13827 # Check whether --with-included-gettext was given.
13828 if test "${with_included_gettext+set}" = set; then
13829   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13830 else
13831   nls_cv_force_use_gnu_gettext=no
13832 fi
13833
13834       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13835 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13836
13837       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13838       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13839
13840
13841
13842
13843
13844
13845         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13846 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13847 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13848   echo $ECHO_N "(cached) $ECHO_C" >&6
13849 else
13850   cat >conftest.$ac_ext <<_ACEOF
13851 /* confdefs.h.  */
13852 _ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h.  */
13856 #include <libintl.h>
13857 extern int _nl_msg_cat_cntr;
13858 extern int *_nl_domain_bindings;
13859 int
13860 main ()
13861 {
13862 bindtextdomain ("", "");
13863 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13864   ;
13865   return 0;
13866 }
13867 _ACEOF
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872   *) ac_try_echo=$ac_try;;
13873 esac
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875   (eval "$ac_link") 2>conftest.er1
13876   ac_status=$?
13877   grep -v '^ *+' conftest.er1 >conftest.err
13878   rm -f conftest.er1
13879   cat conftest.err >&5
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); } &&
13882          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883   { (case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_try") 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; } &&
13892          { ac_try='test -s conftest$ac_exeext'
13893   { (case "(($ac_try" in
13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895   *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898   (eval "$ac_try") 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902   gt_cv_func_gnugettext1_libc=yes
13903 else
13904   echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13906
13907         gt_cv_func_gnugettext1_libc=no
13908 fi
13909
13910 rm -f core conftest.err conftest.$ac_objext \
13911       conftest$ac_exeext conftest.$ac_ext
13912 fi
13913 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13914 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13915
13916         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13917
13918
13919
13920     use_additional=yes
13921
13922   acl_save_prefix="$prefix"
13923   prefix="$acl_final_prefix"
13924   acl_save_exec_prefix="$exec_prefix"
13925   exec_prefix="$acl_final_exec_prefix"
13926
13927     eval additional_includedir=\"$includedir\"
13928     eval additional_libdir=\"$libdir\"
13929
13930   exec_prefix="$acl_save_exec_prefix"
13931   prefix="$acl_save_prefix"
13932
13933
13934 # Check whether --with-libintl-prefix was given.
13935 if test "${with_libintl_prefix+set}" = set; then
13936   withval=$with_libintl_prefix;
13937     if test "X$withval" = "Xno"; then
13938       use_additional=no
13939     else
13940       if test "X$withval" = "X"; then
13941
13942   acl_save_prefix="$prefix"
13943   prefix="$acl_final_prefix"
13944   acl_save_exec_prefix="$exec_prefix"
13945   exec_prefix="$acl_final_exec_prefix"
13946
13947           eval additional_includedir=\"$includedir\"
13948           eval additional_libdir=\"$libdir\"
13949
13950   exec_prefix="$acl_save_exec_prefix"
13951   prefix="$acl_save_prefix"
13952
13953       else
13954         additional_includedir="$withval/include"
13955         additional_libdir="$withval/lib"
13956       fi
13957     fi
13958
13959 fi
13960
13961       LIBINTL=
13962   LTLIBINTL=
13963   INCINTL=
13964   rpathdirs=
13965   ltrpathdirs=
13966   names_already_handled=
13967   names_next_round='intl '
13968   while test -n "$names_next_round"; do
13969     names_this_round="$names_next_round"
13970     names_next_round=
13971     for name in $names_this_round; do
13972       already_handled=
13973       for n in $names_already_handled; do
13974         if test "$n" = "$name"; then
13975           already_handled=yes
13976           break
13977         fi
13978       done
13979       if test -z "$already_handled"; then
13980         names_already_handled="$names_already_handled $name"
13981                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13982         eval value=\"\$HAVE_LIB$uppername\"
13983         if test -n "$value"; then
13984           if test "$value" = yes; then
13985             eval value=\"\$LIB$uppername\"
13986             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13987             eval value=\"\$LTLIB$uppername\"
13988             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13989           else
13990                                     :
13991           fi
13992         else
13993                               found_dir=
13994           found_la=
13995           found_so=
13996           found_a=
13997           if test $use_additional = yes; then
13998             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
13999               found_dir="$additional_libdir"
14000               found_so="$additional_libdir/lib$name.$shlibext"
14001               if test -f "$additional_libdir/lib$name.la"; then
14002                 found_la="$additional_libdir/lib$name.la"
14003               fi
14004             else
14005               if test -f "$additional_libdir/lib$name.$libext"; then
14006                 found_dir="$additional_libdir"
14007                 found_a="$additional_libdir/lib$name.$libext"
14008                 if test -f "$additional_libdir/lib$name.la"; then
14009                   found_la="$additional_libdir/lib$name.la"
14010                 fi
14011               fi
14012             fi
14013           fi
14014           if test "X$found_dir" = "X"; then
14015             for x in $LDFLAGS $LTLIBINTL; do
14016
14017   acl_save_prefix="$prefix"
14018   prefix="$acl_final_prefix"
14019   acl_save_exec_prefix="$exec_prefix"
14020   exec_prefix="$acl_final_exec_prefix"
14021   eval x=\"$x\"
14022   exec_prefix="$acl_save_exec_prefix"
14023   prefix="$acl_save_prefix"
14024
14025               case "$x" in
14026                 -L*)
14027                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14028                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14029                     found_dir="$dir"
14030                     found_so="$dir/lib$name.$shlibext"
14031                     if test -f "$dir/lib$name.la"; then
14032                       found_la="$dir/lib$name.la"
14033                     fi
14034                   else
14035                     if test -f "$dir/lib$name.$libext"; then
14036                       found_dir="$dir"
14037                       found_a="$dir/lib$name.$libext"
14038                       if test -f "$dir/lib$name.la"; then
14039                         found_la="$dir/lib$name.la"
14040                       fi
14041                     fi
14042                   fi
14043                   ;;
14044               esac
14045               if test "X$found_dir" != "X"; then
14046                 break
14047               fi
14048             done
14049           fi
14050           if test "X$found_dir" != "X"; then
14051                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14052             if test "X$found_so" != "X"; then
14053                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14054                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14055               else
14056                                                                                 haveit=
14057                 for x in $ltrpathdirs; do
14058                   if test "X$x" = "X$found_dir"; then
14059                     haveit=yes
14060                     break
14061                   fi
14062                 done
14063                 if test -z "$haveit"; then
14064                   ltrpathdirs="$ltrpathdirs $found_dir"
14065                 fi
14066                                 if test "$hardcode_direct" = yes; then
14067                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14068                 else
14069                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14070                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14071                                                             haveit=
14072                     for x in $rpathdirs; do
14073                       if test "X$x" = "X$found_dir"; then
14074                         haveit=yes
14075                         break
14076                       fi
14077                     done
14078                     if test -z "$haveit"; then
14079                       rpathdirs="$rpathdirs $found_dir"
14080                     fi
14081                   else
14082                                                                                 haveit=
14083                     for x in $LDFLAGS $LIBINTL; do
14084
14085   acl_save_prefix="$prefix"
14086   prefix="$acl_final_prefix"
14087   acl_save_exec_prefix="$exec_prefix"
14088   exec_prefix="$acl_final_exec_prefix"
14089   eval x=\"$x\"
14090   exec_prefix="$acl_save_exec_prefix"
14091   prefix="$acl_save_prefix"
14092
14093                       if test "X$x" = "X-L$found_dir"; then
14094                         haveit=yes
14095                         break
14096                       fi
14097                     done
14098                     if test -z "$haveit"; then
14099                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14100                     fi
14101                     if test "$hardcode_minus_L" != no; then
14102                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14103                     else
14104                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14105                     fi
14106                   fi
14107                 fi
14108               fi
14109             else
14110               if test "X$found_a" != "X"; then
14111                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14112               else
14113                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14114               fi
14115             fi
14116                         additional_includedir=
14117             case "$found_dir" in
14118               */lib | */lib/)
14119                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14120                 additional_includedir="$basedir/include"
14121                 ;;
14122             esac
14123             if test "X$additional_includedir" != "X"; then
14124                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14125                 haveit=
14126                 if test "X$additional_includedir" = "X/usr/local/include"; then
14127                   if test -n "$GCC"; then
14128                     case $host_os in
14129                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14130                     esac
14131                   fi
14132                 fi
14133                 if test -z "$haveit"; then
14134                   for x in $CPPFLAGS $INCINTL; do
14135
14136   acl_save_prefix="$prefix"
14137   prefix="$acl_final_prefix"
14138   acl_save_exec_prefix="$exec_prefix"
14139   exec_prefix="$acl_final_exec_prefix"
14140   eval x=\"$x\"
14141   exec_prefix="$acl_save_exec_prefix"
14142   prefix="$acl_save_prefix"
14143
14144                     if test "X$x" = "X-I$additional_includedir"; then
14145                       haveit=yes
14146                       break
14147                     fi
14148                   done
14149                   if test -z "$haveit"; then
14150                     if test -d "$additional_includedir"; then
14151                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14152                     fi
14153                   fi
14154                 fi
14155               fi
14156             fi
14157                         if test -n "$found_la"; then
14158                                                         save_libdir="$libdir"
14159               case "$found_la" in
14160                 */* | *\\*) . "$found_la" ;;
14161                 *) . "./$found_la" ;;
14162               esac
14163               libdir="$save_libdir"
14164                             for dep in $dependency_libs; do
14165                 case "$dep" in
14166                   -L*)
14167                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14168                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14169                       haveit=
14170                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14171                         if test -n "$GCC"; then
14172                           case $host_os in
14173                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14174                           esac
14175                         fi
14176                       fi
14177                       if test -z "$haveit"; then
14178                         haveit=
14179                         for x in $LDFLAGS $LIBINTL; do
14180
14181   acl_save_prefix="$prefix"
14182   prefix="$acl_final_prefix"
14183   acl_save_exec_prefix="$exec_prefix"
14184   exec_prefix="$acl_final_exec_prefix"
14185   eval x=\"$x\"
14186   exec_prefix="$acl_save_exec_prefix"
14187   prefix="$acl_save_prefix"
14188
14189                           if test "X$x" = "X-L$additional_libdir"; then
14190                             haveit=yes
14191                             break
14192                           fi
14193                         done
14194                         if test -z "$haveit"; then
14195                           if test -d "$additional_libdir"; then
14196                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14197                           fi
14198                         fi
14199                         haveit=
14200                         for x in $LDFLAGS $LTLIBINTL; do
14201
14202   acl_save_prefix="$prefix"
14203   prefix="$acl_final_prefix"
14204   acl_save_exec_prefix="$exec_prefix"
14205   exec_prefix="$acl_final_exec_prefix"
14206   eval x=\"$x\"
14207   exec_prefix="$acl_save_exec_prefix"
14208   prefix="$acl_save_prefix"
14209
14210                           if test "X$x" = "X-L$additional_libdir"; then
14211                             haveit=yes
14212                             break
14213                           fi
14214                         done
14215                         if test -z "$haveit"; then
14216                           if test -d "$additional_libdir"; then
14217                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14218                           fi
14219                         fi
14220                       fi
14221                     fi
14222                     ;;
14223                   -R*)
14224                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14225                     if test "$enable_rpath" != no; then
14226                                                                   haveit=
14227                       for x in $rpathdirs; do
14228                         if test "X$x" = "X$dir"; then
14229                           haveit=yes
14230                           break
14231                         fi
14232                       done
14233                       if test -z "$haveit"; then
14234                         rpathdirs="$rpathdirs $dir"
14235                       fi
14236                                                                   haveit=
14237                       for x in $ltrpathdirs; do
14238                         if test "X$x" = "X$dir"; then
14239                           haveit=yes
14240                           break
14241                         fi
14242                       done
14243                       if test -z "$haveit"; then
14244                         ltrpathdirs="$ltrpathdirs $dir"
14245                       fi
14246                     fi
14247                     ;;
14248                   -l*)
14249                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14250                     ;;
14251                   *.la)
14252                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14253                     ;;
14254                   *)
14255                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14256                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14257                     ;;
14258                 esac
14259               done
14260             fi
14261           else
14262                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14263             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14264           fi
14265         fi
14266       fi
14267     done
14268   done
14269   if test "X$rpathdirs" != "X"; then
14270     if test -n "$hardcode_libdir_separator"; then
14271                         alldirs=
14272       for found_dir in $rpathdirs; do
14273         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14274       done
14275             acl_save_libdir="$libdir"
14276       libdir="$alldirs"
14277       eval flag=\"$hardcode_libdir_flag_spec\"
14278       libdir="$acl_save_libdir"
14279       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14280     else
14281             for found_dir in $rpathdirs; do
14282         acl_save_libdir="$libdir"
14283         libdir="$found_dir"
14284         eval flag=\"$hardcode_libdir_flag_spec\"
14285         libdir="$acl_save_libdir"
14286         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14287       done
14288     fi
14289   fi
14290   if test "X$ltrpathdirs" != "X"; then
14291             for found_dir in $ltrpathdirs; do
14292       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14293     done
14294   fi
14295
14296           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14297 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14298 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14299   echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301   gt_save_CPPFLAGS="$CPPFLAGS"
14302             CPPFLAGS="$CPPFLAGS $INCINTL"
14303             gt_save_LIBS="$LIBS"
14304             LIBS="$LIBS $LIBINTL"
14305                         cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h.  */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h.  */
14311 #include <libintl.h>
14312 extern int _nl_msg_cat_cntr;
14313 extern
14314 #ifdef __cplusplus
14315 "C"
14316 #endif
14317 const char *_nl_expand_alias (const char *);
14318 int
14319 main ()
14320 {
14321 bindtextdomain ("", "");
14322 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334   (eval "$ac_link") 2>conftest.er1
14335   ac_status=$?
14336   grep -v '^ *+' conftest.er1 >conftest.err
14337   rm -f conftest.er1
14338   cat conftest.err >&5
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342   { (case "(($ac_try" in
14343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344   *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347   (eval "$ac_try") 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; } &&
14351          { ac_try='test -s conftest$ac_exeext'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; }; then
14361   gt_cv_func_gnugettext1_libintl=yes
14362 else
14363   echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14365
14366         gt_cv_func_gnugettext1_libintl=no
14367 fi
14368
14369 rm -f core conftest.err conftest.$ac_objext \
14370       conftest$ac_exeext conftest.$ac_ext
14371                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14372               LIBS="$LIBS $LIBICONV"
14373               cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h.  */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h.  */
14379 #include <libintl.h>
14380 extern int _nl_msg_cat_cntr;
14381 extern
14382 #ifdef __cplusplus
14383 "C"
14384 #endif
14385 const char *_nl_expand_alias (const char *);
14386 int
14387 main ()
14388 {
14389 bindtextdomain ("", "");
14390 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14391   ;
14392   return 0;
14393 }
14394 _ACEOF
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399   *) ac_try_echo=$ac_try;;
14400 esac
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402   (eval "$ac_link") 2>conftest.er1
14403   ac_status=$?
14404   grep -v '^ *+' conftest.er1 >conftest.err
14405   rm -f conftest.er1
14406   cat conftest.err >&5
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); } &&
14409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410   { (case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_try") 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; } &&
14419          { ac_try='test -s conftest$ac_exeext'
14420   { (case "(($ac_try" in
14421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422   *) ac_try_echo=$ac_try;;
14423 esac
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425   (eval "$ac_try") 2>&5
14426   ac_status=$?
14427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428   (exit $ac_status); }; }; then
14429   LIBINTL="$LIBINTL $LIBICONV"
14430                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14431                 gt_cv_func_gnugettext1_libintl=yes
14432
14433 else
14434   echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.$ac_ext >&5
14436
14437
14438 fi
14439
14440 rm -f core conftest.err conftest.$ac_objext \
14441       conftest$ac_exeext conftest.$ac_ext
14442             fi
14443             CPPFLAGS="$gt_save_CPPFLAGS"
14444             LIBS="$gt_save_LIBS"
14445 fi
14446 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14447 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14448         fi
14449
14450                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14451            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14452                 && test "$PACKAGE" != gettext-runtime \
14453                 && test "$PACKAGE" != gettext-tools; }; then
14454           gt_use_preinstalled_gnugettext=yes
14455         else
14456                     LIBINTL=
14457           LTLIBINTL=
14458           INCINTL=
14459         fi
14460
14461
14462         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14463                               nls_cv_use_gnu_gettext=yes
14464         fi
14465       fi
14466
14467       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14468                 BUILD_INCLUDED_LIBINTL=yes
14469         USE_INCLUDED_LIBINTL=yes
14470         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14471         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14472         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14473       fi
14474
14475       CATOBJEXT=
14476       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14477          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14478                 CATOBJEXT=.gmo
14479       fi
14480
14481
14482     if test -n "$INTL_MACOSX_LIBS"; then
14483       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14484          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14485                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14486         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14487       fi
14488     fi
14489
14490     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14491        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14492
14493 cat >>confdefs.h <<\_ACEOF
14494 #define ENABLE_NLS 1
14495 _ACEOF
14496
14497     else
14498       USE_NLS=no
14499     fi
14500   fi
14501
14502   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14503 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14504   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14505 echo "${ECHO_T}$USE_NLS" >&6; }
14506   if test "$USE_NLS" = "yes"; then
14507     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14508 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14509     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14510       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14511         gt_source="external libintl"
14512       else
14513         gt_source="libc"
14514       fi
14515     else
14516       gt_source="included intl directory"
14517     fi
14518     { echo "$as_me:$LINENO: result: $gt_source" >&5
14519 echo "${ECHO_T}$gt_source" >&6; }
14520   fi
14521
14522   if test "$USE_NLS" = "yes"; then
14523
14524     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14525       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14526         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14527 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14528         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14529 echo "${ECHO_T}$LIBINTL" >&6; }
14530
14531   for element in $INCINTL; do
14532     haveit=
14533     for x in $CPPFLAGS; do
14534
14535   acl_save_prefix="$prefix"
14536   prefix="$acl_final_prefix"
14537   acl_save_exec_prefix="$exec_prefix"
14538   exec_prefix="$acl_final_exec_prefix"
14539   eval x=\"$x\"
14540   exec_prefix="$acl_save_exec_prefix"
14541   prefix="$acl_save_prefix"
14542
14543       if test "X$x" = "X$element"; then
14544         haveit=yes
14545         break
14546       fi
14547     done
14548     if test -z "$haveit"; then
14549       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14550     fi
14551   done
14552
14553       fi
14554
14555
14556 cat >>confdefs.h <<\_ACEOF
14557 #define HAVE_GETTEXT 1
14558 _ACEOF
14559
14560
14561 cat >>confdefs.h <<\_ACEOF
14562 #define HAVE_DCGETTEXT 1
14563 _ACEOF
14564
14565     fi
14566
14567         POSUB=po
14568   fi
14569
14570
14571             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14572       BUILD_INCLUDED_LIBINTL=yes
14573     fi
14574
14575
14576
14577
14578
14579         nls_cv_header_intl=
14580     nls_cv_header_libgt=
14581
14582         DATADIRNAME=share
14583
14584
14585         INSTOBJEXT=.mo
14586
14587
14588         GENCAT=gencat
14589
14590
14591         INTLOBJS=
14592     if test "$USE_INCLUDED_LIBINTL" = yes; then
14593       INTLOBJS="\$(GETTOBJS)"
14594     fi
14595
14596
14597         INTL_LIBTOOL_SUFFIX_PREFIX=
14598
14599
14600
14601     INTLLIBS="$LIBINTL"
14602
14603
14604
14605
14606
14607
14608 fi
14609
14610
14611 support_mysql=no
14612 support_sqlite=no
14613 support_sqlite3=no
14614 support_postgresql=no
14615 support_smartalloc=yes
14616 support_readline=yes
14617 support_conio=yes
14618 support_gnome=no
14619 support_wx_console=no
14620 support_tls=no
14621 support_crypto=no
14622 gnome_version=
14623 wx_version=
14624 support_static_tools=no
14625 support_static_fd=no
14626 support_static_sd=no
14627 support_static_dir=no
14628 support_static_cons=no
14629 support_python=no
14630 build_client_only=no
14631 build_dird=yes
14632 build_stored=yes
14633 cats=
14634 db_name=Internal
14635 DB_NAME=bdb
14636
14637
14638 # -------------------------------------------
14639 # gnome (default off)
14640 # -------------------------------------------
14641 # Check whether --enable-gnome was given.
14642 if test "${enable_gnome+set}" = set; then
14643   enableval=$enable_gnome; if test x$enableval = xyes; then
14644     support_gnome=yes
14645   fi
14646 fi
14647
14648
14649 GNOME_DIR=
14650 if test x$support_gnome = xyes; then
14651   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14652   pkg=$?
14653   if test $pkg = 0; then
14654      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14655      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14656      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14657      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14658
14659
14660
14661
14662      GNOME_DIR=src/gnome2-console
14663      gnome_version="Version 2.x"
14664   else
14665      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14666 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14667    { (exit 1); exit 1; }; }
14668   fi
14669 fi
14670
14671
14672
14673 # -------------------------------------------
14674 # wx-console (default off)
14675 # -------------------------------------------
14676 # Check whether --enable-wx-console was given.
14677 if test "${enable_wx_console+set}" = set; then
14678   enableval=$enable_wx_console; if test x$enableval = xyes; then
14679     support_wx_console=yes
14680   fi
14681 fi
14682
14683
14684 WX_DIR=
14685 if test x$support_wx_console = xyes; then
14686   abc=`$WXCONFIG $WXFLAGS --cppflags`
14687   pkg=$?
14688   if test $pkg = 0; then
14689      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14690      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14691      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14692
14693
14694
14695      WX_DIR=src/wx-console
14696   else
14697      echo " "
14698      echo "wx-config program not found. wx-console disabled."
14699      echo " "
14700      support_wx_console=no
14701   fi
14702 fi
14703
14704
14705
14706 # -------------------------------------------
14707 # tray-monitor (default off)
14708 # -------------------------------------------
14709 # Check whether --enable-tray-monitor was given.
14710 if test "${enable_tray_monitor+set}" = set; then
14711   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14712     support_tray_monitor=yes
14713   fi
14714 fi
14715
14716
14717 TRAY_MONITOR_DIR=
14718 if test x$support_tray_monitor = xyes; then
14719   abc=`$PKGCONFIG --exists gtk+-2.0`
14720   pkg=$?
14721   if test $pkg = 0; then
14722      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14723      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14724
14725
14726      TRAY_MONITOR_DIR=src/tray-monitor
14727      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14728      pkg=$?
14729      if test $pkg = 0; then
14730      cat >>confdefs.h <<\_ACEOF
14731 #define HAVE_GTK_2_4 1
14732 _ACEOF
14733
14734      fi
14735   fi
14736 fi
14737
14738
14739 # -------------------------------------------
14740 # smartalloc (default off)
14741 # -------------------------------------------
14742 # Check whether --enable-smartalloc was given.
14743 if test "${enable_smartalloc+set}" = set; then
14744   enableval=$enable_smartalloc; if test x$enableval = xno; then
14745     support_smartalloc=no
14746   fi
14747 fi
14748
14749
14750 if test x$support_smartalloc = xyes; then
14751    cat >>confdefs.h <<\_ACEOF
14752 #define SMARTALLOC 1
14753 _ACEOF
14754
14755 fi
14756
14757 # -------------------------------------------
14758 # static-tools (default off)
14759 # -------------------------------------------
14760 # Check whether --enable-static-tools was given.
14761 if test "${enable_static_tools+set}" = set; then
14762   enableval=$enable_static_tools; if test x$enableval = xyes; then
14763      support_static_tools=yes
14764    fi
14765 fi
14766
14767
14768 TTOOL_LDFLAGS=
14769 if test x$support_static_tools = xyes; then
14770    TTOOL_LDFLAGS="-static"
14771 fi
14772
14773
14774 # -------------------------------------------
14775 # static-fd    (default off)
14776 # -------------------------------------------
14777 # Check whether --enable-static-fd was given.
14778 if test "${enable_static_fd+set}" = set; then
14779   enableval=$enable_static_fd; if test x$enableval = xyes; then
14780      support_static_fd=yes
14781    fi
14782 fi
14783
14784
14785 STATIC_FD=
14786 if test x$support_static_fd = xyes; then
14787    STATIC_FD="static-bacula-fd"
14788 fi
14789
14790
14791 # -------------------------------------------
14792 # static-sd    (default off)
14793 # -------------------------------------------
14794 # Check whether --enable-static-sd was given.
14795 if test "${enable_static_sd+set}" = set; then
14796   enableval=$enable_static_sd; if test x$enableval = xyes; then
14797      support_static_sd=yes
14798    fi
14799 fi
14800
14801
14802 STATIC_SD=
14803 if test x$support_static_sd = xyes; then
14804    STATIC_SD="static-bacula-sd"
14805 fi
14806
14807
14808 # -------------------------------------------
14809 # static-dir   (default off)
14810 # -------------------------------------------
14811 # Check whether --enable-static-dir was given.
14812 if test "${enable_static_dir+set}" = set; then
14813   enableval=$enable_static_dir; if test x$enableval = xyes; then
14814      support_static_dir=yes
14815    fi
14816 fi
14817
14818
14819 STATIC_DIR=
14820 if test x$support_static_dir = xyes; then
14821    STATIC_DIR="static-bacula-dir"
14822 fi
14823
14824
14825 # -------------------------------------------
14826 # static-cons  (default off)
14827 # -------------------------------------------
14828 # Check whether --enable-static-cons was given.
14829 if test "${enable_static_cons+set}" = set; then
14830   enableval=$enable_static_cons; if test x$enableval = xyes; then
14831      support_static_cons=yes
14832    fi
14833 fi
14834
14835
14836 STATIC_CONS=
14837 STATIC_GNOME_CONS=
14838 STATIC_WX_CONS=
14839 if test x$support_static_cons = xyes; then
14840    STATIC_CONS="static-bconsole"
14841    STATIC_GNOME_CONS="static-gnome-console"
14842    STATIC_WX_CONS="static-wx-console"
14843 fi
14844
14845
14846
14847
14848 # -------------------------------------------
14849 # client_only  (default off)
14850 # -------------------------------------------
14851 # Check whether --enable-client-only was given.
14852 if test "${enable_client_only+set}" = set; then
14853   enableval=$enable_client_only; if test x$enableval = xyes; then
14854       build_client_only=yes
14855       db_name=None
14856       DB_NAME=none
14857    fi
14858 fi
14859
14860 if test x$build_client_only = xno; then
14861    ALL_DIRS="subdirs"
14862 else
14863    ALL_DIRS=""
14864 fi
14865
14866
14867 # -------------------------------------------
14868 # director  (default on)
14869 # -------------------------------------------
14870 # Check whether --enable-build-dird was given.
14871 if test "${enable_build_dird+set}" = set; then
14872   enableval=$enable_build_dird; if test x$enableval = xno; then
14873       build_dird=no
14874    fi
14875 fi
14876
14877 if test x$build_dird = xyes; then
14878    DIRD_DIR="src/dird"
14879    DIR_TOOLS="DIRTOOLS"
14880 else
14881    DIRD_DIR=""
14882    DIR_TOOLS="NODIRTOOLS"
14883 fi
14884
14885
14886
14887 # -------------------------------------------
14888 # stored  (default on)
14889 # -------------------------------------------
14890 # Check whether --enable-build-stored was given.
14891 if test "${enable_build_stored+set}" = set; then
14892   enableval=$enable_build_stored; if test x$enableval = xno; then
14893       build_stored=no
14894    fi
14895 fi
14896
14897 if test x$build_stored = xyes; then
14898    STORED_DIR="src/stored"
14899 else
14900    STORED_DIR=""
14901 fi
14902
14903
14904 # ---------------------------------------------------
14905 # Check for conio (Bacula readline substitute)(
14906 # ---------------------------------------------------
14907 # this allows you to turn it completely off
14908 # Check whether --enable-conio was given.
14909 if test "${enable_conio+set}" = set; then
14910   enableval=$enable_conio; if test x$enableval = xno; then
14911      support_conio=no
14912   fi
14913
14914 fi
14915
14916
14917
14918 # ---------------------------------------------------
14919 # Check for IPv6 support
14920 # ---------------------------------------------------
14921 # this allows you to turn it completely off
14922 support_ipv6=yes
14923 # Check whether --enable-ipv6 was given.
14924 if test "${enable_ipv6+set}" = set; then
14925   enableval=$enable_ipv6; if test x$enableval = xno; then
14926      support_ipv6=no
14927   fi
14928
14929 fi
14930
14931
14932 if test x$support_ipv6 = xyes; then
14933     cat >conftest.$ac_ext <<_ACEOF
14934 /* confdefs.h.  */
14935 _ACEOF
14936 cat confdefs.h >>conftest.$ac_ext
14937 cat >>conftest.$ac_ext <<_ACEOF
14938 /* end confdefs.h.  */
14939  #include <sys/types.h>
14940 #include <sys/socket.h>
14941 #include <netinet/in.h>
14942 int
14943 main ()
14944 {
14945 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14946   ;
14947   return 0;
14948 }
14949 _ACEOF
14950 rm -f conftest.$ac_objext conftest$ac_exeext
14951 if { (ac_try="$ac_link"
14952 case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_link") 2>conftest.er1
14958   ac_status=$?
14959   grep -v '^ *+' conftest.er1 >conftest.err
14960   rm -f conftest.er1
14961   cat conftest.err >&5
14962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963   (exit $ac_status); } &&
14964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14965   { (case "(($ac_try" in
14966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14967   *) ac_try_echo=$ac_try;;
14968 esac
14969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14970   (eval "$ac_try") 2>&5
14971   ac_status=$?
14972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973   (exit $ac_status); }; } &&
14974          { ac_try='test -s conftest$ac_exeext'
14975   { (case "(($ac_try" in
14976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14977   *) ac_try_echo=$ac_try;;
14978 esac
14979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14980   (eval "$ac_try") 2>&5
14981   ac_status=$?
14982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983   (exit $ac_status); }; }; then
14984   support_ipv6=yes
14985 else
14986   echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14988
14989         support_ipv6=no
14990 fi
14991
14992 rm -f core conftest.err conftest.$ac_objext \
14993       conftest$ac_exeext conftest.$ac_ext
14994 fi
14995
14996 if test x$support_ipv6 = xyes; then
14997
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_IPV6 1
15000 _ACEOF
15001
15002 fi
15003
15004
15005
15006 got_conio="no"
15007 if test x$support_conio = xyes; then
15008    if test "${ac_cv_header_termcap_h+set}" = set; then
15009   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15010 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15011 if test "${ac_cv_header_termcap_h+set}" = set; then
15012   echo $ECHO_N "(cached) $ECHO_C" >&6
15013 fi
15014 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15015 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15016 else
15017   # Is the header compilable?
15018 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15019 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15020 cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026 $ac_includes_default
15027 #include <termcap.h>
15028 _ACEOF
15029 rm -f conftest.$ac_objext
15030 if { (ac_try="$ac_compile"
15031 case "(($ac_try" in
15032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033   *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036   (eval "$ac_compile") 2>conftest.er1
15037   ac_status=$?
15038   grep -v '^ *+' conftest.er1 >conftest.err
15039   rm -f conftest.er1
15040   cat conftest.err >&5
15041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042   (exit $ac_status); } &&
15043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15044   { (case "(($ac_try" in
15045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15046   *) ac_try_echo=$ac_try;;
15047 esac
15048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15049   (eval "$ac_try") 2>&5
15050   ac_status=$?
15051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15052   (exit $ac_status); }; } &&
15053          { ac_try='test -s conftest.$ac_objext'
15054   { (case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_try") 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); }; }; then
15063   ac_header_compiler=yes
15064 else
15065   echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15067
15068         ac_header_compiler=no
15069 fi
15070
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15073 echo "${ECHO_T}$ac_header_compiler" >&6; }
15074
15075 # Is the header present?
15076 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15077 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15078 cat >conftest.$ac_ext <<_ACEOF
15079 /* confdefs.h.  */
15080 _ACEOF
15081 cat confdefs.h >>conftest.$ac_ext
15082 cat >>conftest.$ac_ext <<_ACEOF
15083 /* end confdefs.h.  */
15084 #include <termcap.h>
15085 _ACEOF
15086 if { (ac_try="$ac_cpp conftest.$ac_ext"
15087 case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } >/dev/null; then
15099   if test -s conftest.err; then
15100     ac_cpp_err=$ac_c_preproc_warn_flag
15101     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15102   else
15103     ac_cpp_err=
15104   fi
15105 else
15106   ac_cpp_err=yes
15107 fi
15108 if test -z "$ac_cpp_err"; then
15109   ac_header_preproc=yes
15110 else
15111   echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15113
15114   ac_header_preproc=no
15115 fi
15116
15117 rm -f conftest.err conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15119 echo "${ECHO_T}$ac_header_preproc" >&6; }
15120
15121 # So?  What about this header?
15122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15123   yes:no: )
15124     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15125 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15126     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15127 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15128     ac_header_preproc=yes
15129     ;;
15130   no:yes:* )
15131     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15132 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15133     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15134 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15135     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15136 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15137     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15138 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15139     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15140 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15141     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15142 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15143
15144     ;;
15145 esac
15146 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15147 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15148 if test "${ac_cv_header_termcap_h+set}" = set; then
15149   echo $ECHO_N "(cached) $ECHO_C" >&6
15150 else
15151   ac_cv_header_termcap_h=$ac_header_preproc
15152 fi
15153 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15154 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15155
15156 fi
15157 if test $ac_cv_header_termcap_h = yes; then
15158    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15159 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15160 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15161   echo $ECHO_N "(cached) $ECHO_C" >&6
15162 else
15163   ac_check_lib_save_LIBS=$LIBS
15164 LIBS="-ltermcap  $LIBS"
15165 cat >conftest.$ac_ext <<_ACEOF
15166 /* confdefs.h.  */
15167 _ACEOF
15168 cat confdefs.h >>conftest.$ac_ext
15169 cat >>conftest.$ac_ext <<_ACEOF
15170 /* end confdefs.h.  */
15171
15172 /* Override any GCC internal prototype to avoid an error.
15173    Use char because int might match the return type of a GCC
15174    builtin and then its argument prototype would still apply.  */
15175 #ifdef __cplusplus
15176 extern "C"
15177 #endif
15178 char tgetent ();
15179 int
15180 main ()
15181 {
15182 return tgetent ();
15183   ;
15184   return 0;
15185 }
15186 _ACEOF
15187 rm -f conftest.$ac_objext conftest$ac_exeext
15188 if { (ac_try="$ac_link"
15189 case "(($ac_try" in
15190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15191   *) ac_try_echo=$ac_try;;
15192 esac
15193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15194   (eval "$ac_link") 2>conftest.er1
15195   ac_status=$?
15196   grep -v '^ *+' conftest.er1 >conftest.err
15197   rm -f conftest.er1
15198   cat conftest.err >&5
15199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200   (exit $ac_status); } &&
15201          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15202   { (case "(($ac_try" in
15203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204   *) ac_try_echo=$ac_try;;
15205 esac
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207   (eval "$ac_try") 2>&5
15208   ac_status=$?
15209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210   (exit $ac_status); }; } &&
15211          { ac_try='test -s conftest$ac_exeext'
15212   { (case "(($ac_try" in
15213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15214   *) ac_try_echo=$ac_try;;
15215 esac
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217   (eval "$ac_try") 2>&5
15218   ac_status=$?
15219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220   (exit $ac_status); }; }; then
15221   ac_cv_lib_termcap_tgetent=yes
15222 else
15223   echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226         ac_cv_lib_termcap_tgetent=no
15227 fi
15228
15229 rm -f core conftest.err conftest.$ac_objext \
15230       conftest$ac_exeext conftest.$ac_ext
15231 LIBS=$ac_check_lib_save_LIBS
15232 fi
15233 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15234 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15235 if test $ac_cv_lib_termcap_tgetent = yes; then
15236    CONS_LIBS="-ltermcap"
15237          CONS_OBJ="conio.o"
15238          CONS_SRC="conio.c"
15239          got_conio="yes"
15240          support_readline=no
15241
15242 cat >>confdefs.h <<\_ACEOF
15243 #define HAVE_CONIO 1
15244 _ACEOF
15245
15246
15247 else
15248    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15249 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15250 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15251   echo $ECHO_N "(cached) $ECHO_C" >&6
15252 else
15253   ac_check_lib_save_LIBS=$LIBS
15254 LIBS="-lncurses  $LIBS"
15255 cat >conftest.$ac_ext <<_ACEOF
15256 /* confdefs.h.  */
15257 _ACEOF
15258 cat confdefs.h >>conftest.$ac_ext
15259 cat >>conftest.$ac_ext <<_ACEOF
15260 /* end confdefs.h.  */
15261
15262 /* Override any GCC internal prototype to avoid an error.
15263    Use char because int might match the return type of a GCC
15264    builtin and then its argument prototype would still apply.  */
15265 #ifdef __cplusplus
15266 extern "C"
15267 #endif
15268 char tgetent ();
15269 int
15270 main ()
15271 {
15272 return tgetent ();
15273   ;
15274   return 0;
15275 }
15276 _ACEOF
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (ac_try="$ac_link"
15279 case "(($ac_try" in
15280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15281   *) ac_try_echo=$ac_try;;
15282 esac
15283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15284   (eval "$ac_link") 2>conftest.er1
15285   ac_status=$?
15286   grep -v '^ *+' conftest.er1 >conftest.err
15287   rm -f conftest.er1
15288   cat conftest.err >&5
15289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290   (exit $ac_status); } &&
15291          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15292   { (case "(($ac_try" in
15293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294   *) ac_try_echo=$ac_try;;
15295 esac
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297   (eval "$ac_try") 2>&5
15298   ac_status=$?
15299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300   (exit $ac_status); }; } &&
15301          { ac_try='test -s conftest$ac_exeext'
15302   { (case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_try") 2>&5
15308   ac_status=$?
15309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); }; }; then
15311   ac_cv_lib_ncurses_tgetent=yes
15312 else
15313   echo "$as_me: failed program was:" >&5
15314 sed 's/^/| /' conftest.$ac_ext >&5
15315
15316         ac_cv_lib_ncurses_tgetent=no
15317 fi
15318
15319 rm -f core conftest.err conftest.$ac_objext \
15320       conftest$ac_exeext conftest.$ac_ext
15321 LIBS=$ac_check_lib_save_LIBS
15322 fi
15323 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15324 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15325 if test $ac_cv_lib_ncurses_tgetent = yes; then
15326    CONS_LIBS="-lncurses"
15327            CONS_OBJ="conio.o"
15328            CONS_SRC="conio.c"
15329            got_conio="yes"
15330            support_readline=no
15331
15332 cat >>confdefs.h <<\_ACEOF
15333 #define HAVE_CONIO 1
15334 _ACEOF
15335
15336
15337 fi
15338
15339
15340 fi
15341
15342
15343 else
15344
15345
15346 for ac_header in curses.h
15347 do
15348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353   echo $ECHO_N "(cached) $ECHO_C" >&6
15354 fi
15355 ac_res=`eval echo '${'$as_ac_Header'}'`
15356                { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 else
15359   # Is the header compilable?
15360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h.  */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h.  */
15368 $ac_includes_default
15369 #include <$ac_header>
15370 _ACEOF
15371 rm -f conftest.$ac_objext
15372 if { (ac_try="$ac_compile"
15373 case "(($ac_try" in
15374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375   *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378   (eval "$ac_compile") 2>conftest.er1
15379   ac_status=$?
15380   grep -v '^ *+' conftest.er1 >conftest.err
15381   rm -f conftest.er1
15382   cat conftest.err >&5
15383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384   (exit $ac_status); } &&
15385          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15386   { (case "(($ac_try" in
15387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15388   *) ac_try_echo=$ac_try;;
15389 esac
15390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15391   (eval "$ac_try") 2>&5
15392   ac_status=$?
15393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15394   (exit $ac_status); }; } &&
15395          { ac_try='test -s conftest.$ac_objext'
15396   { (case "(($ac_try" in
15397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15398   *) ac_try_echo=$ac_try;;
15399 esac
15400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15401   (eval "$ac_try") 2>&5
15402   ac_status=$?
15403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15404   (exit $ac_status); }; }; then
15405   ac_header_compiler=yes
15406 else
15407   echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410         ac_header_compiler=no
15411 fi
15412
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15415 echo "${ECHO_T}$ac_header_compiler" >&6; }
15416
15417 # Is the header present?
15418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15420 cat >conftest.$ac_ext <<_ACEOF
15421 /* confdefs.h.  */
15422 _ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h.  */
15426 #include <$ac_header>
15427 _ACEOF
15428 if { (ac_try="$ac_cpp conftest.$ac_ext"
15429 case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15435   ac_status=$?
15436   grep -v '^ *+' conftest.er1 >conftest.err
15437   rm -f conftest.er1
15438   cat conftest.err >&5
15439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440   (exit $ac_status); } >/dev/null; then
15441   if test -s conftest.err; then
15442     ac_cpp_err=$ac_c_preproc_warn_flag
15443     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15444   else
15445     ac_cpp_err=
15446   fi
15447 else
15448   ac_cpp_err=yes
15449 fi
15450 if test -z "$ac_cpp_err"; then
15451   ac_header_preproc=yes
15452 else
15453   echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.$ac_ext >&5
15455
15456   ac_header_preproc=no
15457 fi
15458
15459 rm -f conftest.err conftest.$ac_ext
15460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15461 echo "${ECHO_T}$ac_header_preproc" >&6; }
15462
15463 # So?  What about this header?
15464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15465   yes:no: )
15466     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15468     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15470     ac_header_preproc=yes
15471     ;;
15472   no:yes:* )
15473     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15475     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15476 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15477     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15479     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15480 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15481     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15483     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15485
15486     ;;
15487 esac
15488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493   eval "$as_ac_Header=\$ac_header_preproc"
15494 fi
15495 ac_res=`eval echo '${'$as_ac_Header'}'`
15496                { echo "$as_me:$LINENO: result: $ac_res" >&5
15497 echo "${ECHO_T}$ac_res" >&6; }
15498
15499 fi
15500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15501   cat >>confdefs.h <<_ACEOF
15502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15503 _ACEOF
15504
15505 fi
15506
15507 done
15508
15509          { echo "$as_me:$LINENO: checking for term.h" >&5
15510 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15511 if test "${ac_cv_header_term_h+set}" = set; then
15512   echo $ECHO_N "(cached) $ECHO_C" >&6
15513 else
15514   cat >conftest.$ac_ext <<_ACEOF
15515 /* confdefs.h.  */
15516 _ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h.  */
15520 #if HAVE_CURSES_H
15521 #include <curses.h>
15522 #endif
15523
15524
15525 #include <term.h>
15526 _ACEOF
15527 rm -f conftest.$ac_objext
15528 if { (ac_try="$ac_compile"
15529 case "(($ac_try" in
15530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531   *) ac_try_echo=$ac_try;;
15532 esac
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534   (eval "$ac_compile") 2>conftest.er1
15535   ac_status=$?
15536   grep -v '^ *+' conftest.er1 >conftest.err
15537   rm -f conftest.er1
15538   cat conftest.err >&5
15539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540   (exit $ac_status); } &&
15541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15542   { (case "(($ac_try" in
15543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15544   *) ac_try_echo=$ac_try;;
15545 esac
15546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15547   (eval "$ac_try") 2>&5
15548   ac_status=$?
15549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15550   (exit $ac_status); }; } &&
15551          { ac_try='test -s conftest.$ac_objext'
15552   { (case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_try") 2>&5
15558   ac_status=$?
15559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560   (exit $ac_status); }; }; then
15561   ac_cv_header_term_h=yes
15562 else
15563   echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15565
15566         ac_cv_header_term_h=no
15567 fi
15568
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570 fi
15571 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15572 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15573 if test $ac_cv_header_term_h = yes; then
15574    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15575 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15576 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15577   echo $ECHO_N "(cached) $ECHO_C" >&6
15578 else
15579   ac_check_lib_save_LIBS=$LIBS
15580 LIBS="-lcurses  $LIBS"
15581 cat >conftest.$ac_ext <<_ACEOF
15582 /* confdefs.h.  */
15583 _ACEOF
15584 cat confdefs.h >>conftest.$ac_ext
15585 cat >>conftest.$ac_ext <<_ACEOF
15586 /* end confdefs.h.  */
15587
15588 /* Override any GCC internal prototype to avoid an error.
15589    Use char because int might match the return type of a GCC
15590    builtin and then its argument prototype would still apply.  */
15591 #ifdef __cplusplus
15592 extern "C"
15593 #endif
15594 char tgetent ();
15595 int
15596 main ()
15597 {
15598 return tgetent ();
15599   ;
15600   return 0;
15601 }
15602 _ACEOF
15603 rm -f conftest.$ac_objext conftest$ac_exeext
15604 if { (ac_try="$ac_link"
15605 case "(($ac_try" in
15606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15607   *) ac_try_echo=$ac_try;;
15608 esac
15609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15610   (eval "$ac_link") 2>conftest.er1
15611   ac_status=$?
15612   grep -v '^ *+' conftest.er1 >conftest.err
15613   rm -f conftest.er1
15614   cat conftest.err >&5
15615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616   (exit $ac_status); } &&
15617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15618   { (case "(($ac_try" in
15619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620   *) ac_try_echo=$ac_try;;
15621 esac
15622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15623   (eval "$ac_try") 2>&5
15624   ac_status=$?
15625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626   (exit $ac_status); }; } &&
15627          { ac_try='test -s conftest$ac_exeext'
15628   { (case "(($ac_try" in
15629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630   *) ac_try_echo=$ac_try;;
15631 esac
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633   (eval "$ac_try") 2>&5
15634   ac_status=$?
15635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636   (exit $ac_status); }; }; then
15637   ac_cv_lib_curses_tgetent=yes
15638 else
15639   echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15641
15642         ac_cv_lib_curses_tgetent=no
15643 fi
15644
15645 rm -f core conftest.err conftest.$ac_objext \
15646       conftest$ac_exeext conftest.$ac_ext
15647 LIBS=$ac_check_lib_save_LIBS
15648 fi
15649 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15650 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15651 if test $ac_cv_lib_curses_tgetent = yes; then
15652    CONS_LIBS="-lcurses"
15653                    CONS_OBJ="conio.o"
15654                    CONS_SRC="conio.c"
15655                    got_conio="yes"
15656                    support_readline=no
15657
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_CONIO 1
15660 _ACEOF
15661
15662
15663 fi
15664
15665
15666 else
15667    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15668 fi
15669
15670
15671
15672 fi
15673
15674
15675 fi
15676
15677
15678 # ---------------------------------------------------
15679 # Check for readline support/directory (default off)
15680 # ---------------------------------------------------
15681 # this allows you to turn it completely off
15682 # Check whether --enable-readline was given.
15683 if test "${enable_readline+set}" = set; then
15684   enableval=$enable_readline; if test x$enableval = xno; then
15685     support_readline=no
15686   fi
15687 fi
15688
15689
15690 got_readline="no"
15691 READLINE_SRC=
15692 if test x$support_readline = xyes; then
15693
15694 # Check whether --with-readline was given.
15695 if test "${with_readline+set}" = set; then
15696   withval=$with_readline;
15697         case "$with_readline" in
15698         no) : ;;
15699         yes|*)
15700           if test -f ${with_readline}/readline.h; then
15701              CONS_INC="-I${with_readline}"
15702              CONS_LDFLAGS="-L$with_readline"
15703           elif test -f ${with_readline}/include/readline/readline.h; then
15704              CONS_INC="-I${with_readline}/include/readline"
15705              CONS_LDFLAGS="-L${with_readline}/lib"
15706              with_readline="${with_readline}/include/readline"
15707           else
15708              with_readline="/usr/include/readline"
15709           fi
15710           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15712   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15713 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715   echo $ECHO_N "(cached) $ECHO_C" >&6
15716 fi
15717 ac_res=`eval echo '${'$as_ac_Header'}'`
15718                { echo "$as_me:$LINENO: result: $ac_res" >&5
15719 echo "${ECHO_T}$ac_res" >&6; }
15720 else
15721   # Is the header compilable?
15722 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15723 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15724 cat >conftest.$ac_ext <<_ACEOF
15725 /* confdefs.h.  */
15726 _ACEOF
15727 cat confdefs.h >>conftest.$ac_ext
15728 cat >>conftest.$ac_ext <<_ACEOF
15729 /* end confdefs.h.  */
15730 $ac_includes_default
15731 #include <${with_readline}/readline.h>
15732 _ACEOF
15733 rm -f conftest.$ac_objext
15734 if { (ac_try="$ac_compile"
15735 case "(($ac_try" in
15736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737   *) ac_try_echo=$ac_try;;
15738 esac
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740   (eval "$ac_compile") 2>conftest.er1
15741   ac_status=$?
15742   grep -v '^ *+' conftest.er1 >conftest.err
15743   rm -f conftest.er1
15744   cat conftest.err >&5
15745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746   (exit $ac_status); } &&
15747          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15748   { (case "(($ac_try" in
15749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750   *) ac_try_echo=$ac_try;;
15751 esac
15752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15753   (eval "$ac_try") 2>&5
15754   ac_status=$?
15755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15756   (exit $ac_status); }; } &&
15757          { ac_try='test -s conftest.$ac_objext'
15758   { (case "(($ac_try" in
15759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15760   *) ac_try_echo=$ac_try;;
15761 esac
15762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15763   (eval "$ac_try") 2>&5
15764   ac_status=$?
15765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766   (exit $ac_status); }; }; then
15767   ac_header_compiler=yes
15768 else
15769   echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15771
15772         ac_header_compiler=no
15773 fi
15774
15775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15777 echo "${ECHO_T}$ac_header_compiler" >&6; }
15778
15779 # Is the header present?
15780 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15781 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15782 cat >conftest.$ac_ext <<_ACEOF
15783 /* confdefs.h.  */
15784 _ACEOF
15785 cat confdefs.h >>conftest.$ac_ext
15786 cat >>conftest.$ac_ext <<_ACEOF
15787 /* end confdefs.h.  */
15788 #include <${with_readline}/readline.h>
15789 _ACEOF
15790 if { (ac_try="$ac_cpp conftest.$ac_ext"
15791 case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15797   ac_status=$?
15798   grep -v '^ *+' conftest.er1 >conftest.err
15799   rm -f conftest.er1
15800   cat conftest.err >&5
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); } >/dev/null; then
15803   if test -s conftest.err; then
15804     ac_cpp_err=$ac_c_preproc_warn_flag
15805     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15806   else
15807     ac_cpp_err=
15808   fi
15809 else
15810   ac_cpp_err=yes
15811 fi
15812 if test -z "$ac_cpp_err"; then
15813   ac_header_preproc=yes
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818   ac_header_preproc=no
15819 fi
15820
15821 rm -f conftest.err conftest.$ac_ext
15822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15823 echo "${ECHO_T}$ac_header_preproc" >&6; }
15824
15825 # So?  What about this header?
15826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15827   yes:no: )
15828     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15829 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15830     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15831 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15832     ac_header_preproc=yes
15833     ;;
15834   no:yes:* )
15835     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15836 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15837     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15838 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15839     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15840 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15841     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15842 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15843     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15844 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15845     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15846 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15847
15848     ;;
15849 esac
15850 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15851 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15853   echo $ECHO_N "(cached) $ECHO_C" >&6
15854 else
15855   eval "$as_ac_Header=\$ac_header_preproc"
15856 fi
15857 ac_res=`eval echo '${'$as_ac_Header'}'`
15858                { echo "$as_me:$LINENO: result: $ac_res" >&5
15859 echo "${ECHO_T}$ac_res" >&6; }
15860
15861 fi
15862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15863    cat >>confdefs.h <<\_ACEOF
15864 #define HAVE_READLINE 1
15865 _ACEOF
15866
15867                CONS_LIBS="-lreadline -lhistory -ltermcap"
15868                got_readline="yes"
15869
15870 else
15871    echo " "
15872                echo "readline.h not found. readline turned off ..."
15873                echo " "
15874
15875
15876 fi
15877
15878
15879           ;;
15880         esac
15881
15882 else
15883
15884        # check for standard readline library
15885        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15886   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15887 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15888 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15889   echo $ECHO_N "(cached) $ECHO_C" >&6
15890 fi
15891 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15892 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15893 else
15894   # Is the header compilable?
15895 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15896 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15897 cat >conftest.$ac_ext <<_ACEOF
15898 /* confdefs.h.  */
15899 _ACEOF
15900 cat confdefs.h >>conftest.$ac_ext
15901 cat >>conftest.$ac_ext <<_ACEOF
15902 /* end confdefs.h.  */
15903 $ac_includes_default
15904 #include </usr/include/readline/readline.h>
15905 _ACEOF
15906 rm -f conftest.$ac_objext
15907 if { (ac_try="$ac_compile"
15908 case "(($ac_try" in
15909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15910   *) ac_try_echo=$ac_try;;
15911 esac
15912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15913   (eval "$ac_compile") 2>conftest.er1
15914   ac_status=$?
15915   grep -v '^ *+' conftest.er1 >conftest.err
15916   rm -f conftest.er1
15917   cat conftest.err >&5
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } &&
15920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15921   { (case "(($ac_try" in
15922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923   *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926   (eval "$ac_try") 2>&5
15927   ac_status=$?
15928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15929   (exit $ac_status); }; } &&
15930          { ac_try='test -s conftest.$ac_objext'
15931   { (case "(($ac_try" in
15932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933   *) ac_try_echo=$ac_try;;
15934 esac
15935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15936   (eval "$ac_try") 2>&5
15937   ac_status=$?
15938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15939   (exit $ac_status); }; }; then
15940   ac_header_compiler=yes
15941 else
15942   echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.$ac_ext >&5
15944
15945         ac_header_compiler=no
15946 fi
15947
15948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15950 echo "${ECHO_T}$ac_header_compiler" >&6; }
15951
15952 # Is the header present?
15953 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15954 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h.  */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h.  */
15961 #include </usr/include/readline/readline.h>
15962 _ACEOF
15963 if { (ac_try="$ac_cpp conftest.$ac_ext"
15964 case "(($ac_try" in
15965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966   *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15970   ac_status=$?
15971   grep -v '^ *+' conftest.er1 >conftest.err
15972   rm -f conftest.er1
15973   cat conftest.err >&5
15974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975   (exit $ac_status); } >/dev/null; then
15976   if test -s conftest.err; then
15977     ac_cpp_err=$ac_c_preproc_warn_flag
15978     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15979   else
15980     ac_cpp_err=
15981   fi
15982 else
15983   ac_cpp_err=yes
15984 fi
15985 if test -z "$ac_cpp_err"; then
15986   ac_header_preproc=yes
15987 else
15988   echo "$as_me: failed program was:" >&5
15989 sed 's/^/| /' conftest.$ac_ext >&5
15990
15991   ac_header_preproc=no
15992 fi
15993
15994 rm -f conftest.err conftest.$ac_ext
15995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15996 echo "${ECHO_T}$ac_header_preproc" >&6; }
15997
15998 # So?  What about this header?
15999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16000   yes:no: )
16001     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16002 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16003     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16004 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16005     ac_header_preproc=yes
16006     ;;
16007   no:yes:* )
16008     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16009 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16010     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16011 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16012     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16013 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16014     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16015 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16016     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16017 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16018     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16019 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16020
16021     ;;
16022 esac
16023 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16024 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16025 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 else
16028   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16029 fi
16030 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16031 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16032
16033 fi
16034 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16035    cat >>confdefs.h <<\_ACEOF
16036 #define HAVE_READLINE 1
16037 _ACEOF
16038
16039            got_readline="yes"
16040            CONS_INC="-I/usr/include/readline"
16041            CONS_LIBS="-lreadline -ltermcap"
16042
16043 else
16044
16045            # Did not find standard library, so try Bacula's default
16046             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16048   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16049 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16051   echo $ECHO_N "(cached) $ECHO_C" >&6
16052 fi
16053 ac_res=`eval echo '${'$as_ac_Header'}'`
16054                { echo "$as_me:$LINENO: result: $ac_res" >&5
16055 echo "${ECHO_T}$ac_res" >&6; }
16056 else
16057   # Is the header compilable?
16058 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16059 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16060 cat >conftest.$ac_ext <<_ACEOF
16061 /* confdefs.h.  */
16062 _ACEOF
16063 cat confdefs.h >>conftest.$ac_ext
16064 cat >>conftest.$ac_ext <<_ACEOF
16065 /* end confdefs.h.  */
16066 $ac_includes_default
16067 #include <${TOP_DIR}/depkgs/readline/readline.h>
16068 _ACEOF
16069 rm -f conftest.$ac_objext
16070 if { (ac_try="$ac_compile"
16071 case "(($ac_try" in
16072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073   *) ac_try_echo=$ac_try;;
16074 esac
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076   (eval "$ac_compile") 2>conftest.er1
16077   ac_status=$?
16078   grep -v '^ *+' conftest.er1 >conftest.err
16079   rm -f conftest.er1
16080   cat conftest.err >&5
16081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082   (exit $ac_status); } &&
16083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16084   { (case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089   (eval "$ac_try") 2>&5
16090   ac_status=$?
16091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092   (exit $ac_status); }; } &&
16093          { ac_try='test -s conftest.$ac_objext'
16094   { (case "(($ac_try" in
16095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16096   *) ac_try_echo=$ac_try;;
16097 esac
16098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16099   (eval "$ac_try") 2>&5
16100   ac_status=$?
16101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16102   (exit $ac_status); }; }; then
16103   ac_header_compiler=yes
16104 else
16105   echo "$as_me: failed program was:" >&5
16106 sed 's/^/| /' conftest.$ac_ext >&5
16107
16108         ac_header_compiler=no
16109 fi
16110
16111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16113 echo "${ECHO_T}$ac_header_compiler" >&6; }
16114
16115 # Is the header present?
16116 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16117 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16118 cat >conftest.$ac_ext <<_ACEOF
16119 /* confdefs.h.  */
16120 _ACEOF
16121 cat confdefs.h >>conftest.$ac_ext
16122 cat >>conftest.$ac_ext <<_ACEOF
16123 /* end confdefs.h.  */
16124 #include <${TOP_DIR}/depkgs/readline/readline.h>
16125 _ACEOF
16126 if { (ac_try="$ac_cpp conftest.$ac_ext"
16127 case "(($ac_try" in
16128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129   *) ac_try_echo=$ac_try;;
16130 esac
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16133   ac_status=$?
16134   grep -v '^ *+' conftest.er1 >conftest.err
16135   rm -f conftest.er1
16136   cat conftest.err >&5
16137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138   (exit $ac_status); } >/dev/null; then
16139   if test -s conftest.err; then
16140     ac_cpp_err=$ac_c_preproc_warn_flag
16141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16142   else
16143     ac_cpp_err=
16144   fi
16145 else
16146   ac_cpp_err=yes
16147 fi
16148 if test -z "$ac_cpp_err"; then
16149   ac_header_preproc=yes
16150 else
16151   echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16153
16154   ac_header_preproc=no
16155 fi
16156
16157 rm -f conftest.err conftest.$ac_ext
16158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16159 echo "${ECHO_T}$ac_header_preproc" >&6; }
16160
16161 # So?  What about this header?
16162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16163   yes:no: )
16164     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16165 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16166     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16167 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16168     ac_header_preproc=yes
16169     ;;
16170   no:yes:* )
16171     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16172 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16173     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16174 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16175     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16176 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16177     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16178 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16179     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16180 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16181     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16182 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16183
16184     ;;
16185 esac
16186 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16187 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189   echo $ECHO_N "(cached) $ECHO_C" >&6
16190 else
16191   eval "$as_ac_Header=\$ac_header_preproc"
16192 fi
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194                { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16196
16197 fi
16198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16199    cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_READLINE 1
16201 _ACEOF
16202
16203                  got_readline="yes"
16204                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16205                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16206                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16207                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16208
16209 else
16210    echo " "
16211                 echo "readline.h not found. readline turned off ..."
16212                 echo " "
16213
16214
16215 fi
16216
16217
16218
16219
16220 fi
16221
16222
16223
16224
16225 fi
16226
16227 fi
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238 # Minimal stuff for readline Makefile configuration
16239 MAKE_SHELL=/bin/sh
16240
16241 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16242 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16243 if test "${ac_cv_header_stat_broken+set}" = set; then
16244   echo $ECHO_N "(cached) $ECHO_C" >&6
16245 else
16246   cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252 #include <sys/types.h>
16253 #include <sys/stat.h>
16254
16255 #if defined S_ISBLK && defined S_IFDIR
16256 # if S_ISBLK (S_IFDIR)
16257 You lose.
16258 # endif
16259 #endif
16260
16261 #if defined S_ISBLK && defined S_IFCHR
16262 # if S_ISBLK (S_IFCHR)
16263 You lose.
16264 # endif
16265 #endif
16266
16267 #if defined S_ISLNK && defined S_IFREG
16268 # if S_ISLNK (S_IFREG)
16269 You lose.
16270 # endif
16271 #endif
16272
16273 #if defined S_ISSOCK && defined S_IFREG
16274 # if S_ISSOCK (S_IFREG)
16275 You lose.
16276 # endif
16277 #endif
16278
16279 _ACEOF
16280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16281   $EGREP "You lose" >/dev/null 2>&1; then
16282   ac_cv_header_stat_broken=yes
16283 else
16284   ac_cv_header_stat_broken=no
16285 fi
16286 rm -f conftest*
16287
16288 fi
16289 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16290 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16291 if test $ac_cv_header_stat_broken = yes; then
16292
16293 cat >>confdefs.h <<\_ACEOF
16294 #define STAT_MACROS_BROKEN 1
16295 _ACEOF
16296
16297 fi
16298
16299
16300
16301
16302
16303
16304 ac_header_dirent=no
16305 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16306   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16307 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16308 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310   echo $ECHO_N "(cached) $ECHO_C" >&6
16311 else
16312   cat >conftest.$ac_ext <<_ACEOF
16313 /* confdefs.h.  */
16314 _ACEOF
16315 cat confdefs.h >>conftest.$ac_ext
16316 cat >>conftest.$ac_ext <<_ACEOF
16317 /* end confdefs.h.  */
16318 #include <sys/types.h>
16319 #include <$ac_hdr>
16320
16321 int
16322 main ()
16323 {
16324 if ((DIR *) 0)
16325 return 0;
16326   ;
16327   return 0;
16328 }
16329 _ACEOF
16330 rm -f conftest.$ac_objext
16331 if { (ac_try="$ac_compile"
16332 case "(($ac_try" in
16333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334   *) ac_try_echo=$ac_try;;
16335 esac
16336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16337   (eval "$ac_compile") 2>conftest.er1
16338   ac_status=$?
16339   grep -v '^ *+' conftest.er1 >conftest.err
16340   rm -f conftest.er1
16341   cat conftest.err >&5
16342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343   (exit $ac_status); } &&
16344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16345   { (case "(($ac_try" in
16346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347   *) ac_try_echo=$ac_try;;
16348 esac
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350   (eval "$ac_try") 2>&5
16351   ac_status=$?
16352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353   (exit $ac_status); }; } &&
16354          { ac_try='test -s conftest.$ac_objext'
16355   { (case "(($ac_try" in
16356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16357   *) ac_try_echo=$ac_try;;
16358 esac
16359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16360   (eval "$ac_try") 2>&5
16361   ac_status=$?
16362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363   (exit $ac_status); }; }; then
16364   eval "$as_ac_Header=yes"
16365 else
16366   echo "$as_me: failed program was:" >&5
16367 sed 's/^/| /' conftest.$ac_ext >&5
16368
16369         eval "$as_ac_Header=no"
16370 fi
16371
16372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16373 fi
16374 ac_res=`eval echo '${'$as_ac_Header'}'`
16375                { echo "$as_me:$LINENO: result: $ac_res" >&5
16376 echo "${ECHO_T}$ac_res" >&6; }
16377 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16378   cat >>confdefs.h <<_ACEOF
16379 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16380 _ACEOF
16381
16382 ac_header_dirent=$ac_hdr; break
16383 fi
16384
16385 done
16386 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16387 if test $ac_header_dirent = dirent.h; then
16388   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16389 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16390 if test "${ac_cv_search_opendir+set}" = set; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   ac_func_search_save_LIBS=$LIBS
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h.  */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h.  */
16400
16401 /* Override any GCC internal prototype to avoid an error.
16402    Use char because int might match the return type of a GCC
16403    builtin and then its argument prototype would still apply.  */
16404 #ifdef __cplusplus
16405 extern "C"
16406 #endif
16407 char opendir ();
16408 int
16409 main ()
16410 {
16411 return opendir ();
16412   ;
16413   return 0;
16414 }
16415 _ACEOF
16416 for ac_lib in '' dir; do
16417   if test -z "$ac_lib"; then
16418     ac_res="none required"
16419   else
16420     ac_res=-l$ac_lib
16421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16422   fi
16423   rm -f conftest.$ac_objext conftest$ac_exeext
16424 if { (ac_try="$ac_link"
16425 case "(($ac_try" in
16426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427   *) ac_try_echo=$ac_try;;
16428 esac
16429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16430   (eval "$ac_link") 2>conftest.er1
16431   ac_status=$?
16432   grep -v '^ *+' conftest.er1 >conftest.err
16433   rm -f conftest.er1
16434   cat conftest.err >&5
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); } &&
16437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16438   { (case "(($ac_try" in
16439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440   *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443   (eval "$ac_try") 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); }; } &&
16447          { ac_try='test -s conftest$ac_exeext'
16448   { (case "(($ac_try" in
16449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16450   *) ac_try_echo=$ac_try;;
16451 esac
16452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16453   (eval "$ac_try") 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }; then
16457   ac_cv_search_opendir=$ac_res
16458 else
16459   echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext \
16466       conftest$ac_exeext
16467   if test "${ac_cv_search_opendir+set}" = set; then
16468   break
16469 fi
16470 done
16471 if test "${ac_cv_search_opendir+set}" = set; then
16472   :
16473 else
16474   ac_cv_search_opendir=no
16475 fi
16476 rm conftest.$ac_ext
16477 LIBS=$ac_func_search_save_LIBS
16478 fi
16479 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16480 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16481 ac_res=$ac_cv_search_opendir
16482 if test "$ac_res" != no; then
16483   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16484
16485 fi
16486
16487 else
16488   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16489 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16490 if test "${ac_cv_search_opendir+set}" = set; then
16491   echo $ECHO_N "(cached) $ECHO_C" >&6
16492 else
16493   ac_func_search_save_LIBS=$LIBS
16494 cat >conftest.$ac_ext <<_ACEOF
16495 /* confdefs.h.  */
16496 _ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h.  */
16500
16501 /* Override any GCC internal prototype to avoid an error.
16502    Use char because int might match the return type of a GCC
16503    builtin and then its argument prototype would still apply.  */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 char opendir ();
16508 int
16509 main ()
16510 {
16511 return opendir ();
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 for ac_lib in '' x; do
16517   if test -z "$ac_lib"; then
16518     ac_res="none required"
16519   else
16520     ac_res=-l$ac_lib
16521     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16522   fi
16523   rm -f conftest.$ac_objext conftest$ac_exeext
16524 if { (ac_try="$ac_link"
16525 case "(($ac_try" in
16526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527   *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530   (eval "$ac_link") 2>conftest.er1
16531   ac_status=$?
16532   grep -v '^ *+' conftest.er1 >conftest.err
16533   rm -f conftest.er1
16534   cat conftest.err >&5
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } &&
16537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16538   { (case "(($ac_try" in
16539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540   *) ac_try_echo=$ac_try;;
16541 esac
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543   (eval "$ac_try") 2>&5
16544   ac_status=$?
16545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16546   (exit $ac_status); }; } &&
16547          { ac_try='test -s conftest$ac_exeext'
16548   { (case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_try") 2>&5
16554   ac_status=$?
16555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556   (exit $ac_status); }; }; then
16557   ac_cv_search_opendir=$ac_res
16558 else
16559   echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16561
16562
16563 fi
16564
16565 rm -f core conftest.err conftest.$ac_objext \
16566       conftest$ac_exeext
16567   if test "${ac_cv_search_opendir+set}" = set; then
16568   break
16569 fi
16570 done
16571 if test "${ac_cv_search_opendir+set}" = set; then
16572   :
16573 else
16574   ac_cv_search_opendir=no
16575 fi
16576 rm conftest.$ac_ext
16577 LIBS=$ac_func_search_save_LIBS
16578 fi
16579 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16580 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16581 ac_res=$ac_cv_search_opendir
16582 if test "$ac_res" != no; then
16583   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16584
16585 fi
16586
16587 fi
16588
16589
16590
16591
16592
16593
16594
16595
16596 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16597 do
16598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16602   echo $ECHO_N "(cached) $ECHO_C" >&6
16603 else
16604   cat >conftest.$ac_ext <<_ACEOF
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16611    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16612 #define $ac_func innocuous_$ac_func
16613
16614 /* System header to define __stub macros and hopefully few prototypes,
16615     which can conflict with char $ac_func (); below.
16616     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16617     <limits.h> exists even on freestanding compilers.  */
16618
16619 #ifdef __STDC__
16620 # include <limits.h>
16621 #else
16622 # include <assert.h>
16623 #endif
16624
16625 #undef $ac_func
16626
16627 /* Override any GCC internal prototype to avoid an error.
16628    Use char because int might match the return type of a GCC
16629    builtin and then its argument prototype would still apply.  */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 char $ac_func ();
16634 /* The GNU C library defines this for functions which it implements
16635     to always fail with ENOSYS.  Some functions are actually named
16636     something starting with __ and the normal name is an alias.  */
16637 #if defined __stub_$ac_func || defined __stub___$ac_func
16638 choke me
16639 #endif
16640
16641 int
16642 main ()
16643 {
16644 return $ac_func ();
16645   ;
16646   return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653   *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656   (eval "$ac_link") 2>conftest.er1
16657   ac_status=$?
16658   grep -v '^ *+' conftest.er1 >conftest.err
16659   rm -f conftest.er1
16660   cat conftest.err >&5
16661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662   (exit $ac_status); } &&
16663          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16664   { (case "(($ac_try" in
16665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666   *) ac_try_echo=$ac_try;;
16667 esac
16668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16669   (eval "$ac_try") 2>&5
16670   ac_status=$?
16671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672   (exit $ac_status); }; } &&
16673          { ac_try='test -s conftest$ac_exeext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   eval "$as_ac_var=yes"
16684 else
16685   echo "$as_me: failed program was:" >&5
16686 sed 's/^/| /' conftest.$ac_ext >&5
16687
16688         eval "$as_ac_var=no"
16689 fi
16690
16691 rm -f core conftest.err conftest.$ac_objext \
16692       conftest$ac_exeext conftest.$ac_ext
16693 fi
16694 ac_res=`eval echo '${'$as_ac_var'}'`
16695                { echo "$as_me:$LINENO: result: $ac_res" >&5
16696 echo "${ECHO_T}$ac_res" >&6; }
16697 if test `eval echo '${'$as_ac_var'}'` = yes; then
16698   cat >>confdefs.h <<_ACEOF
16699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16700 _ACEOF
16701
16702 fi
16703 done
16704
16705
16706
16707 for ac_func in nanosleep nl_langinfo
16708 do
16709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 else
16715   cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h.  */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h.  */
16721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16723 #define $ac_func innocuous_$ac_func
16724
16725 /* System header to define __stub macros and hopefully few prototypes,
16726     which can conflict with char $ac_func (); below.
16727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16728     <limits.h> exists even on freestanding compilers.  */
16729
16730 #ifdef __STDC__
16731 # include <limits.h>
16732 #else
16733 # include <assert.h>
16734 #endif
16735
16736 #undef $ac_func
16737
16738 /* Override any GCC internal prototype to avoid an error.
16739    Use char because int might match the return type of a GCC
16740    builtin and then its argument prototype would still apply.  */
16741 #ifdef __cplusplus
16742 extern "C"
16743 #endif
16744 char $ac_func ();
16745 /* The GNU C library defines this for functions which it implements
16746     to always fail with ENOSYS.  Some functions are actually named
16747     something starting with __ and the normal name is an alias.  */
16748 #if defined __stub_$ac_func || defined __stub___$ac_func
16749 choke me
16750 #endif
16751
16752 int
16753 main ()
16754 {
16755 return $ac_func ();
16756   ;
16757   return 0;
16758 }
16759 _ACEOF
16760 rm -f conftest.$ac_objext conftest$ac_exeext
16761 if { (ac_try="$ac_link"
16762 case "(($ac_try" in
16763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764   *) ac_try_echo=$ac_try;;
16765 esac
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767   (eval "$ac_link") 2>conftest.er1
16768   ac_status=$?
16769   grep -v '^ *+' conftest.er1 >conftest.err
16770   rm -f conftest.er1
16771   cat conftest.err >&5
16772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773   (exit $ac_status); } &&
16774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16775   { (case "(($ac_try" in
16776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777   *) ac_try_echo=$ac_try;;
16778 esac
16779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16780   (eval "$ac_try") 2>&5
16781   ac_status=$?
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); }; } &&
16784          { ac_try='test -s conftest$ac_exeext'
16785   { (case "(($ac_try" in
16786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787   *) ac_try_echo=$ac_try;;
16788 esac
16789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16790   (eval "$ac_try") 2>&5
16791   ac_status=$?
16792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793   (exit $ac_status); }; }; then
16794   eval "$as_ac_var=yes"
16795 else
16796   echo "$as_me: failed program was:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16798
16799         eval "$as_ac_var=no"
16800 fi
16801
16802 rm -f core conftest.err conftest.$ac_objext \
16803       conftest$ac_exeext conftest.$ac_ext
16804 fi
16805 ac_res=`eval echo '${'$as_ac_var'}'`
16806                { echo "$as_me:$LINENO: result: $ac_res" >&5
16807 echo "${ECHO_T}$ac_res" >&6; }
16808 if test `eval echo '${'$as_ac_var'}'` = yes; then
16809   cat >>confdefs.h <<_ACEOF
16810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16811 _ACEOF
16812
16813 fi
16814 done
16815
16816
16817 for ac_header in varargs.h
16818 do
16819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16821   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16824   echo $ECHO_N "(cached) $ECHO_C" >&6
16825 fi
16826 ac_res=`eval echo '${'$as_ac_Header'}'`
16827                { echo "$as_me:$LINENO: result: $ac_res" >&5
16828 echo "${ECHO_T}$ac_res" >&6; }
16829 else
16830   # Is the header compilable?
16831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h.  */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h.  */
16839 $ac_includes_default
16840 #include <$ac_header>
16841 _ACEOF
16842 rm -f conftest.$ac_objext
16843 if { (ac_try="$ac_compile"
16844 case "(($ac_try" in
16845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16846   *) ac_try_echo=$ac_try;;
16847 esac
16848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16849   (eval "$ac_compile") 2>conftest.er1
16850   ac_status=$?
16851   grep -v '^ *+' conftest.er1 >conftest.err
16852   rm -f conftest.er1
16853   cat conftest.err >&5
16854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855   (exit $ac_status); } &&
16856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16857   { (case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862   (eval "$ac_try") 2>&5
16863   ac_status=$?
16864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865   (exit $ac_status); }; } &&
16866          { ac_try='test -s conftest.$ac_objext'
16867   { (case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_try") 2>&5
16873   ac_status=$?
16874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875   (exit $ac_status); }; }; then
16876   ac_header_compiler=yes
16877 else
16878   echo "$as_me: failed program was:" >&5
16879 sed 's/^/| /' conftest.$ac_ext >&5
16880
16881         ac_header_compiler=no
16882 fi
16883
16884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886 echo "${ECHO_T}$ac_header_compiler" >&6; }
16887
16888 # Is the header present?
16889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16891 cat >conftest.$ac_ext <<_ACEOF
16892 /* confdefs.h.  */
16893 _ACEOF
16894 cat confdefs.h >>conftest.$ac_ext
16895 cat >>conftest.$ac_ext <<_ACEOF
16896 /* end confdefs.h.  */
16897 #include <$ac_header>
16898 _ACEOF
16899 if { (ac_try="$ac_cpp conftest.$ac_ext"
16900 case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16906   ac_status=$?
16907   grep -v '^ *+' conftest.er1 >conftest.err
16908   rm -f conftest.er1
16909   cat conftest.err >&5
16910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16911   (exit $ac_status); } >/dev/null; then
16912   if test -s conftest.err; then
16913     ac_cpp_err=$ac_c_preproc_warn_flag
16914     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16915   else
16916     ac_cpp_err=
16917   fi
16918 else
16919   ac_cpp_err=yes
16920 fi
16921 if test -z "$ac_cpp_err"; then
16922   ac_header_preproc=yes
16923 else
16924   echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16926
16927   ac_header_preproc=no
16928 fi
16929
16930 rm -f conftest.err conftest.$ac_ext
16931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16932 echo "${ECHO_T}$ac_header_preproc" >&6; }
16933
16934 # So?  What about this header?
16935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16936   yes:no: )
16937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16941     ac_header_preproc=yes
16942     ;;
16943   no:yes:* )
16944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16956
16957     ;;
16958 esac
16959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962   echo $ECHO_N "(cached) $ECHO_C" >&6
16963 else
16964   eval "$as_ac_Header=\$ac_header_preproc"
16965 fi
16966 ac_res=`eval echo '${'$as_ac_Header'}'`
16967                { echo "$as_me:$LINENO: result: $ac_res" >&5
16968 echo "${ECHO_T}$ac_res" >&6; }
16969
16970 fi
16971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16972   cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16974 _ACEOF
16975
16976 fi
16977
16978 done
16979
16980
16981 # End of readline/conio stuff
16982 # -----------------------------------------------------------------------
16983
16984 # -----------------------------------------------------------------------
16985 #  Check for Python support
16986 #
16987 { echo "$as_me:$LINENO: checking for Python support" >&5
16988 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
16989
16990 # Check whether --with-python was given.
16991 if test "${with_python+set}" = set; then
16992   withval=$with_python;
16993   PYTHON_INCDIR=
16994   PYTHON_LIBS=
16995   if test "$withval" != "no"; then
16996      if test "$withval" = "yes"; then
16997         for python_root in /usr /usr/local /usr/sfw; do
16998           for ver in python2.2 python2.3 python2.4 python2.5; do
16999              if test -f $python_root/include/${ver}/Python.h; then
17000                 PYTHON_INCDIR=-I$python_root/include/${ver}
17001                 if test -d $python_root/lib64/${ver}/config; then
17002                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17003                 else
17004                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17005                 fi
17006                 break
17007              fi
17008           done
17009         done
17010         if test x$PYTHON_INCDIR = x; then
17011           if test -f $prefix/include/Python.h; then
17012              PYTHON_INCDIR=-I$prefix/include
17013              if test -d $prefix/lib64/config; then
17014                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17015              else
17016                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17017              fi
17018           else
17019            { echo "$as_me:$LINENO: result: no" >&5
17020 echo "${ECHO_T}no" >&6; }
17021            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17022 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17023    { (exit 1); exit 1; }; }
17024           fi
17025         fi
17026      else
17027         if test -f $withval/Python.h; then
17028            PYTHON_INCDIR=-I$withval
17029            PYTHON_LIBS="-L$withval/config -lpython"
17030         elif test -f $withval/include/Python.h; then
17031            PYTHON_INCDIR=-I$withval/include
17032            if test -d $withval/lib64/config; then
17033               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17034            else
17035               PYTHON_LIBS="-L$withval/lib/config -lpython"
17036            fi
17037         elif test -f $withval/include/python/Python.h; then
17038            PYTHON_INCDIR=-I$withval/include/python
17039            if test -d $withval/lib64/python/config; then
17040               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17041            else
17042               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17043            fi
17044         else
17045            { echo "$as_me:$LINENO: result: no" >&5
17046 echo "${ECHO_T}no" >&6; }
17047            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17048 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17049    { (exit 1); exit 1; }; }
17050         fi
17051      fi
17052      cat >>confdefs.h <<\_ACEOF
17053 #define HAVE_PYTHON 1
17054 _ACEOF
17055
17056      { echo "$as_me:$LINENO: result: yes" >&5
17057 echo "${ECHO_T}yes" >&6; }
17058      support_python=yes
17059      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17060 echo "$as_me: checking for more Python libs" >&6;}
17061      saved_LIBS="$LIBS"; LIBS=
17062      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17063 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17064 if test "${ac_cv_search_shm_open+set}" = set; then
17065   echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067   ac_func_search_save_LIBS=$LIBS
17068 cat >conftest.$ac_ext <<_ACEOF
17069 /* confdefs.h.  */
17070 _ACEOF
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h.  */
17074
17075 /* Override any GCC internal prototype to avoid an error.
17076    Use char because int might match the return type of a GCC
17077    builtin and then its argument prototype would still apply.  */
17078 #ifdef __cplusplus
17079 extern "C"
17080 #endif
17081 char shm_open ();
17082 int
17083 main ()
17084 {
17085 return shm_open ();
17086   ;
17087   return 0;
17088 }
17089 _ACEOF
17090 for ac_lib in '' rt; do
17091   if test -z "$ac_lib"; then
17092     ac_res="none required"
17093   else
17094     ac_res=-l$ac_lib
17095     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17096   fi
17097   rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101   *) ac_try_echo=$ac_try;;
17102 esac
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104   (eval "$ac_link") 2>conftest.er1
17105   ac_status=$?
17106   grep -v '^ *+' conftest.er1 >conftest.err
17107   rm -f conftest.er1
17108   cat conftest.err >&5
17109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110   (exit $ac_status); } &&
17111          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17112   { (case "(($ac_try" in
17113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114   *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117   (eval "$ac_try") 2>&5
17118   ac_status=$?
17119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120   (exit $ac_status); }; } &&
17121          { ac_try='test -s conftest$ac_exeext'
17122   { (case "(($ac_try" in
17123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124   *) ac_try_echo=$ac_try;;
17125 esac
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127   (eval "$ac_try") 2>&5
17128   ac_status=$?
17129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130   (exit $ac_status); }; }; then
17131   ac_cv_search_shm_open=$ac_res
17132 else
17133   echo "$as_me: failed program was:" >&5
17134 sed 's/^/| /' conftest.$ac_ext >&5
17135
17136
17137 fi
17138
17139 rm -f core conftest.err conftest.$ac_objext \
17140       conftest$ac_exeext
17141   if test "${ac_cv_search_shm_open+set}" = set; then
17142   break
17143 fi
17144 done
17145 if test "${ac_cv_search_shm_open+set}" = set; then
17146   :
17147 else
17148   ac_cv_search_shm_open=no
17149 fi
17150 rm conftest.$ac_ext
17151 LIBS=$ac_func_search_save_LIBS
17152 fi
17153 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17154 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17155 ac_res=$ac_cv_search_shm_open
17156 if test "$ac_res" != no; then
17157   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17158
17159 fi
17160
17161
17162 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17163 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17164 if test "${ac_cv_lib_util_openpty+set}" = set; then
17165   echo $ECHO_N "(cached) $ECHO_C" >&6
17166 else
17167   ac_check_lib_save_LIBS=$LIBS
17168 LIBS="-lutil  $LIBS"
17169 cat >conftest.$ac_ext <<_ACEOF
17170 /* confdefs.h.  */
17171 _ACEOF
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h.  */
17175
17176 /* Override any GCC internal prototype to avoid an error.
17177    Use char because int might match the return type of a GCC
17178    builtin and then its argument prototype would still apply.  */
17179 #ifdef __cplusplus
17180 extern "C"
17181 #endif
17182 char openpty ();
17183 int
17184 main ()
17185 {
17186 return openpty ();
17187   ;
17188   return 0;
17189 }
17190 _ACEOF
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (ac_try="$ac_link"
17193 case "(($ac_try" in
17194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17195   *) ac_try_echo=$ac_try;;
17196 esac
17197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17198   (eval "$ac_link") 2>conftest.er1
17199   ac_status=$?
17200   grep -v '^ *+' conftest.er1 >conftest.err
17201   rm -f conftest.er1
17202   cat conftest.err >&5
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17206   { (case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_try") 2>&5
17212   ac_status=$?
17213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214   (exit $ac_status); }; } &&
17215          { ac_try='test -s conftest$ac_exeext'
17216   { (case "(($ac_try" in
17217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218   *) ac_try_echo=$ac_try;;
17219 esac
17220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17221   (eval "$ac_try") 2>&5
17222   ac_status=$?
17223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224   (exit $ac_status); }; }; then
17225   ac_cv_lib_util_openpty=yes
17226 else
17227   echo "$as_me: failed program was:" >&5
17228 sed 's/^/| /' conftest.$ac_ext >&5
17229
17230         ac_cv_lib_util_openpty=no
17231 fi
17232
17233 rm -f core conftest.err conftest.$ac_objext \
17234       conftest$ac_exeext conftest.$ac_ext
17235 LIBS=$ac_check_lib_save_LIBS
17236 fi
17237 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17238 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17239 if test $ac_cv_lib_util_openpty = yes; then
17240   cat >>confdefs.h <<_ACEOF
17241 #define HAVE_LIBUTIL 1
17242 _ACEOF
17243
17244   LIBS="-lutil $LIBS"
17245
17246 fi
17247
17248      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17249      LIBS="$saved_LIBS"
17250   else
17251      { echo "$as_me:$LINENO: result: no" >&5
17252 echo "${ECHO_T}no" >&6; }
17253   fi
17254
17255 else
17256
17257   { echo "$as_me:$LINENO: result: no" >&5
17258 echo "${ECHO_T}no" >&6; }
17259
17260 fi
17261
17262
17263
17264
17265 #
17266 # Find where sockets are (especially for Solaris)
17267 # Do this before the TCP Wrappers test since tcp wrappers
17268 # uses the socket library and some linkers are stupid.
17269 #
17270 { echo "$as_me:$LINENO: checking for socket" >&5
17271 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17272 if test "${ac_cv_func_socket+set}" = set; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275   cat >conftest.$ac_ext <<_ACEOF
17276 /* confdefs.h.  */
17277 _ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h.  */
17281 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17282    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17283 #define socket innocuous_socket
17284
17285 /* System header to define __stub macros and hopefully few prototypes,
17286     which can conflict with char socket (); below.
17287     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288     <limits.h> exists even on freestanding compilers.  */
17289
17290 #ifdef __STDC__
17291 # include <limits.h>
17292 #else
17293 # include <assert.h>
17294 #endif
17295
17296 #undef socket
17297
17298 /* Override any GCC internal prototype to avoid an error.
17299    Use char because int might match the return type of a GCC
17300    builtin and then its argument prototype would still apply.  */
17301 #ifdef __cplusplus
17302 extern "C"
17303 #endif
17304 char socket ();
17305 /* The GNU C library defines this for functions which it implements
17306     to always fail with ENOSYS.  Some functions are actually named
17307     something starting with __ and the normal name is an alias.  */
17308 #if defined __stub_socket || defined __stub___socket
17309 choke me
17310 #endif
17311
17312 int
17313 main ()
17314 {
17315 return socket ();
17316   ;
17317   return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324   *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327   (eval "$ac_link") 2>conftest.er1
17328   ac_status=$?
17329   grep -v '^ *+' conftest.er1 >conftest.err
17330   rm -f conftest.er1
17331   cat conftest.err >&5
17332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333   (exit $ac_status); } &&
17334          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335   { (case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_try") 2>&5
17341   ac_status=$?
17342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343   (exit $ac_status); }; } &&
17344          { ac_try='test -s conftest$ac_exeext'
17345   { (case "(($ac_try" in
17346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347   *) ac_try_echo=$ac_try;;
17348 esac
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350   (eval "$ac_try") 2>&5
17351   ac_status=$?
17352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353   (exit $ac_status); }; }; then
17354   ac_cv_func_socket=yes
17355 else
17356   echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17358
17359         ac_cv_func_socket=no
17360 fi
17361
17362 rm -f core conftest.err conftest.$ac_objext \
17363       conftest$ac_exeext conftest.$ac_ext
17364 fi
17365 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17366 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17367 if test $ac_cv_func_socket = yes; then
17368   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17369 echo "${ECHO_T}using libc's socket" >&6; }
17370 else
17371
17372 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17373 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17374 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17375   echo $ECHO_N "(cached) $ECHO_C" >&6
17376 else
17377   ac_check_lib_save_LIBS=$LIBS
17378 LIBS="-lxnet  $LIBS"
17379 cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385
17386 /* Override any GCC internal prototype to avoid an error.
17387    Use char because int might match the return type of a GCC
17388    builtin and then its argument prototype would still apply.  */
17389 #ifdef __cplusplus
17390 extern "C"
17391 #endif
17392 char socket ();
17393 int
17394 main ()
17395 {
17396 return socket ();
17397   ;
17398   return 0;
17399 }
17400 _ACEOF
17401 rm -f conftest.$ac_objext conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_link") 2>conftest.er1
17409   ac_status=$?
17410   grep -v '^ *+' conftest.er1 >conftest.err
17411   rm -f conftest.er1
17412   cat conftest.err >&5
17413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414   (exit $ac_status); } &&
17415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17416   { (case "(($ac_try" in
17417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418   *) ac_try_echo=$ac_try;;
17419 esac
17420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421   (eval "$ac_try") 2>&5
17422   ac_status=$?
17423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17424   (exit $ac_status); }; } &&
17425          { ac_try='test -s conftest$ac_exeext'
17426   { (case "(($ac_try" in
17427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17428   *) ac_try_echo=$ac_try;;
17429 esac
17430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17431   (eval "$ac_try") 2>&5
17432   ac_status=$?
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); }; }; then
17435   ac_cv_lib_xnet_socket=yes
17436 else
17437   echo "$as_me: failed program was:" >&5
17438 sed 's/^/| /' conftest.$ac_ext >&5
17439
17440         ac_cv_lib_xnet_socket=no
17441 fi
17442
17443 rm -f core conftest.err conftest.$ac_objext \
17444       conftest$ac_exeext conftest.$ac_ext
17445 LIBS=$ac_check_lib_save_LIBS
17446 fi
17447 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17448 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17449 if test $ac_cv_lib_xnet_socket = yes; then
17450   cat >>confdefs.h <<_ACEOF
17451 #define HAVE_LIBXNET 1
17452 _ACEOF
17453
17454   LIBS="-lxnet $LIBS"
17455
17456 fi
17457
17458
17459 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17460 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17461 if test "${ac_cv_lib_socket_socket+set}" = set; then
17462   echo $ECHO_N "(cached) $ECHO_C" >&6
17463 else
17464   ac_check_lib_save_LIBS=$LIBS
17465 LIBS="-lsocket  $LIBS"
17466 cat >conftest.$ac_ext <<_ACEOF
17467 /* confdefs.h.  */
17468 _ACEOF
17469 cat confdefs.h >>conftest.$ac_ext
17470 cat >>conftest.$ac_ext <<_ACEOF
17471 /* end confdefs.h.  */
17472
17473 /* Override any GCC internal prototype to avoid an error.
17474    Use char because int might match the return type of a GCC
17475    builtin and then its argument prototype would still apply.  */
17476 #ifdef __cplusplus
17477 extern "C"
17478 #endif
17479 char socket ();
17480 int
17481 main ()
17482 {
17483 return socket ();
17484   ;
17485   return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492   *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495   (eval "$ac_link") 2>conftest.er1
17496   ac_status=$?
17497   grep -v '^ *+' conftest.er1 >conftest.err
17498   rm -f conftest.er1
17499   cat conftest.err >&5
17500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501   (exit $ac_status); } &&
17502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17503   { (case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_try") 2>&5
17509   ac_status=$?
17510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511   (exit $ac_status); }; } &&
17512          { ac_try='test -s conftest$ac_exeext'
17513   { (case "(($ac_try" in
17514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515   *) ac_try_echo=$ac_try;;
17516 esac
17517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17518   (eval "$ac_try") 2>&5
17519   ac_status=$?
17520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17521   (exit $ac_status); }; }; then
17522   ac_cv_lib_socket_socket=yes
17523 else
17524   echo "$as_me: failed program was:" >&5
17525 sed 's/^/| /' conftest.$ac_ext >&5
17526
17527         ac_cv_lib_socket_socket=no
17528 fi
17529
17530 rm -f core conftest.err conftest.$ac_objext \
17531       conftest$ac_exeext conftest.$ac_ext
17532 LIBS=$ac_check_lib_save_LIBS
17533 fi
17534 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17535 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17536 if test $ac_cv_lib_socket_socket = yes; then
17537   cat >>confdefs.h <<_ACEOF
17538 #define HAVE_LIBSOCKET 1
17539 _ACEOF
17540
17541   LIBS="-lsocket $LIBS"
17542
17543 fi
17544
17545
17546 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17547 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17548 if test "${ac_cv_lib_inet_socket+set}" = set; then
17549   echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551   ac_check_lib_save_LIBS=$LIBS
17552 LIBS="-linet  $LIBS"
17553 cat >conftest.$ac_ext <<_ACEOF
17554 /* confdefs.h.  */
17555 _ACEOF
17556 cat confdefs.h >>conftest.$ac_ext
17557 cat >>conftest.$ac_ext <<_ACEOF
17558 /* end confdefs.h.  */
17559
17560 /* Override any GCC internal prototype to avoid an error.
17561    Use char because int might match the return type of a GCC
17562    builtin and then its argument prototype would still apply.  */
17563 #ifdef __cplusplus
17564 extern "C"
17565 #endif
17566 char socket ();
17567 int
17568 main ()
17569 {
17570 return socket ();
17571   ;
17572   return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579   *) ac_try_echo=$ac_try;;
17580 esac
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582   (eval "$ac_link") 2>conftest.er1
17583   ac_status=$?
17584   grep -v '^ *+' conftest.er1 >conftest.err
17585   rm -f conftest.er1
17586   cat conftest.err >&5
17587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588   (exit $ac_status); } &&
17589          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590   { (case "(($ac_try" in
17591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592   *) ac_try_echo=$ac_try;;
17593 esac
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595   (eval "$ac_try") 2>&5
17596   ac_status=$?
17597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598   (exit $ac_status); }; } &&
17599          { ac_try='test -s conftest$ac_exeext'
17600   { (case "(($ac_try" in
17601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602   *) ac_try_echo=$ac_try;;
17603 esac
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605   (eval "$ac_try") 2>&5
17606   ac_status=$?
17607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608   (exit $ac_status); }; }; then
17609   ac_cv_lib_inet_socket=yes
17610 else
17611   echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17613
17614         ac_cv_lib_inet_socket=no
17615 fi
17616
17617 rm -f core conftest.err conftest.$ac_objext \
17618       conftest$ac_exeext conftest.$ac_ext
17619 LIBS=$ac_check_lib_save_LIBS
17620 fi
17621 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17622 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17623 if test $ac_cv_lib_inet_socket = yes; then
17624   cat >>confdefs.h <<_ACEOF
17625 #define HAVE_LIBINET 1
17626 _ACEOF
17627
17628   LIBS="-linet $LIBS"
17629
17630 fi
17631
17632 fi
17633
17634
17635
17636 # -----------------------------------------------------------
17637 # Check whether user wants TCP wrappers support (default off)
17638 # -----------------------------------------------------------
17639 TCPW_MSG="no"
17640 WRAPLIBS=""
17641
17642 # Check whether --with-tcp-wrappers was given.
17643 if test "${with_tcp_wrappers+set}" = set; then
17644   withval=$with_tcp_wrappers;
17645     if test "x$withval" != "xno" ; then
17646        saved_LIBS="$LIBS"
17647        LIBS="$saved_LIBS -lwrap"
17648        { echo "$as_me:$LINENO: checking for libwrap" >&5
17649 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17650        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17651 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17652 if test "${ac_cv_search_nanosleep+set}" = set; then
17653   echo $ECHO_N "(cached) $ECHO_C" >&6
17654 else
17655   ac_func_search_save_LIBS=$LIBS
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662
17663 /* Override any GCC internal prototype to avoid an error.
17664    Use char because int might match the return type of a GCC
17665    builtin and then its argument prototype would still apply.  */
17666 #ifdef __cplusplus
17667 extern "C"
17668 #endif
17669 char nanosleep ();
17670 int
17671 main ()
17672 {
17673 return nanosleep ();
17674   ;
17675   return 0;
17676 }
17677 _ACEOF
17678 for ac_lib in '' rt; do
17679   if test -z "$ac_lib"; then
17680     ac_res="none required"
17681   else
17682     ac_res=-l$ac_lib
17683     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17684   fi
17685   rm -f conftest.$ac_objext conftest$ac_exeext
17686 if { (ac_try="$ac_link"
17687 case "(($ac_try" in
17688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689   *) ac_try_echo=$ac_try;;
17690 esac
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692   (eval "$ac_link") 2>conftest.er1
17693   ac_status=$?
17694   grep -v '^ *+' conftest.er1 >conftest.err
17695   rm -f conftest.er1
17696   cat conftest.err >&5
17697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698   (exit $ac_status); } &&
17699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17700   { (case "(($ac_try" in
17701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702   *) ac_try_echo=$ac_try;;
17703 esac
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705   (eval "$ac_try") 2>&5
17706   ac_status=$?
17707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708   (exit $ac_status); }; } &&
17709          { ac_try='test -s conftest$ac_exeext'
17710   { (case "(($ac_try" in
17711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712   *) ac_try_echo=$ac_try;;
17713 esac
17714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17715   (eval "$ac_try") 2>&5
17716   ac_status=$?
17717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718   (exit $ac_status); }; }; then
17719   ac_cv_search_nanosleep=$ac_res
17720 else
17721   echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724
17725 fi
17726
17727 rm -f core conftest.err conftest.$ac_objext \
17728       conftest$ac_exeext
17729   if test "${ac_cv_search_nanosleep+set}" = set; then
17730   break
17731 fi
17732 done
17733 if test "${ac_cv_search_nanosleep+set}" = set; then
17734   :
17735 else
17736   ac_cv_search_nanosleep=no
17737 fi
17738 rm conftest.$ac_ext
17739 LIBS=$ac_func_search_save_LIBS
17740 fi
17741 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17742 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17743 ac_res=$ac_cv_search_nanosleep
17744 if test "$ac_res" != no; then
17745   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17746
17747 fi
17748
17749        cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h.  */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h.  */
17755  #include <sys/types.h>
17756             #include <tcpd.h>
17757              int deny_severity = 0;
17758              int allow_severity = 0;
17759              struct request_info *req;
17760 int
17761 main ()
17762 {
17763  hosts_access(req);
17764   ;
17765   return 0;
17766 }
17767 _ACEOF
17768 rm -f conftest.$ac_objext conftest$ac_exeext
17769 if { (ac_try="$ac_link"
17770 case "(($ac_try" in
17771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17772   *) ac_try_echo=$ac_try;;
17773 esac
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775   (eval "$ac_link") 2>conftest.er1
17776   ac_status=$?
17777   grep -v '^ *+' conftest.er1 >conftest.err
17778   rm -f conftest.er1
17779   cat conftest.err >&5
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); } &&
17782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17783   { (case "(($ac_try" in
17784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785   *) ac_try_echo=$ac_try;;
17786 esac
17787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17788   (eval "$ac_try") 2>&5
17789   ac_status=$?
17790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791   (exit $ac_status); }; } &&
17792          { ac_try='test -s conftest$ac_exeext'
17793   { (case "(($ac_try" in
17794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17795   *) ac_try_echo=$ac_try;;
17796 esac
17797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17798   (eval "$ac_try") 2>&5
17799   ac_status=$?
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); }; }; then
17802
17803             { echo "$as_me:$LINENO: result: yes" >&5
17804 echo "${ECHO_T}yes" >&6; }
17805             cat >>confdefs.h <<\_ACEOF
17806 #define HAVE_LIBWRAP 1
17807 _ACEOF
17808
17809             TCPW_MSG="yes"
17810             LIBS="$saved_LIBS"
17811             WRAPLIBS="-lwrap"
17812
17813 else
17814   echo "$as_me: failed program was:" >&5
17815 sed 's/^/| /' conftest.$ac_ext >&5
17816
17817
17818             LIBS="$saved_LIBS -lwrap -lnsl"
17819             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17820             cat >conftest.$ac_ext <<_ACEOF
17821 /* confdefs.h.  */
17822 _ACEOF
17823 cat confdefs.h >>conftest.$ac_ext
17824 cat >>conftest.$ac_ext <<_ACEOF
17825 /* end confdefs.h.  */
17826  #include <sys/types.h>
17827                  #include <tcpd.h>
17828                  int deny_severity = 0;
17829                  int allow_severity = 0;
17830                  struct request_info *req;
17831 int
17832 main ()
17833 {
17834  hosts_access(req);
17835   ;
17836   return 0;
17837 }
17838 _ACEOF
17839 rm -f conftest.$ac_objext conftest$ac_exeext
17840 if { (ac_try="$ac_link"
17841 case "(($ac_try" in
17842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17843   *) ac_try_echo=$ac_try;;
17844 esac
17845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17846   (eval "$ac_link") 2>conftest.er1
17847   ac_status=$?
17848   grep -v '^ *+' conftest.er1 >conftest.err
17849   rm -f conftest.er1
17850   cat conftest.err >&5
17851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17852   (exit $ac_status); } &&
17853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17854   { (case "(($ac_try" in
17855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856   *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859   (eval "$ac_try") 2>&5
17860   ac_status=$?
17861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); }; } &&
17863          { ac_try='test -s conftest$ac_exeext'
17864   { (case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869   (eval "$ac_try") 2>&5
17870   ac_status=$?
17871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872   (exit $ac_status); }; }; then
17873
17874                  { echo "$as_me:$LINENO: result: yes" >&5
17875 echo "${ECHO_T}yes" >&6; }
17876                  cat >>confdefs.h <<\_ACEOF
17877 #define HAVE_LIBWRAP 1
17878 _ACEOF
17879
17880                  TCPW_MSG="yes"
17881                  LIBS="$saved_LIBS"
17882                  WRAPLIBS="-lwrap"
17883
17884 else
17885   echo "$as_me: failed program was:" >&5
17886 sed 's/^/| /' conftest.$ac_ext >&5
17887
17888         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17889 echo "$as_me: error: *** libwrap missing" >&2;}
17890    { (exit 1); exit 1; }; }
17891
17892 fi
17893
17894 rm -f core conftest.err conftest.$ac_objext \
17895       conftest$ac_exeext conftest.$ac_ext
17896
17897 fi
17898
17899 rm -f core conftest.err conftest.$ac_objext \
17900       conftest$ac_exeext conftest.$ac_ext
17901     fi
17902
17903
17904 fi
17905
17906
17907 # -----------------------------------------------------------
17908 # Check whether OpenSSL is available
17909 # -----------------------------------------------------------
17910 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17911 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17912
17913 # Check whether --with-openssl was given.
17914 if test "${with_openssl+set}" = set; then
17915   withval=$with_openssl; with_openssl_directory=${withval}
17916 fi
17917
17918
17919 if test "x$with_openssl_directory" != "x"; then
17920         OPENSSL_LIBS="-lssl -lcrypto"
17921         OPENSSL_INC=""
17922
17923         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17924                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17925                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17926         fi
17927
17928         saved_LIBS="${LIBS}"
17929         saved_CFLAGS="${CFLAGS}"
17930         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17931         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17932
17933         cat >conftest.$ac_ext <<_ACEOF
17934 /* confdefs.h.  */
17935 _ACEOF
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h.  */
17939  #include <openssl/ssl.h>
17940 int
17941 main ()
17942 {
17943  CRYPTO_set_id_callback(NULL);
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext conftest$ac_exeext
17949 if { (ac_try="$ac_link"
17950 case "(($ac_try" in
17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952   *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955   (eval "$ac_link") 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } &&
17962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17963   { (case "(($ac_try" in
17964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965   *) ac_try_echo=$ac_try;;
17966 esac
17967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17968   (eval "$ac_try") 2>&5
17969   ac_status=$?
17970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971   (exit $ac_status); }; } &&
17972          { ac_try='test -s conftest$ac_exeext'
17973   { (case "(($ac_try" in
17974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975   *) ac_try_echo=$ac_try;;
17976 esac
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978   (eval "$ac_try") 2>&5
17979   ac_status=$?
17980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981   (exit $ac_status); }; }; then
17982
17983                         support_tls="yes"
17984                         support_crypto="yes"
17985
17986 else
17987   echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17989
17990          support_tls="no"
17991
17992 fi
17993
17994 rm -f core conftest.err conftest.$ac_objext \
17995       conftest$ac_exeext conftest.$ac_ext
17996
17997         cat >conftest.$ac_ext <<_ACEOF
17998 /* confdefs.h.  */
17999 _ACEOF
18000 cat confdefs.h >>conftest.$ac_ext
18001 cat >>conftest.$ac_ext <<_ACEOF
18002 /* end confdefs.h.  */
18003  #include <openssl/evp.h>
18004 int
18005 main ()
18006 {
18007  EVP_sha512();
18008   ;
18009   return 0;
18010 }
18011 _ACEOF
18012 rm -f conftest.$ac_objext conftest$ac_exeext
18013 if { (ac_try="$ac_link"
18014 case "(($ac_try" in
18015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016   *) ac_try_echo=$ac_try;;
18017 esac
18018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18019   (eval "$ac_link") 2>conftest.er1
18020   ac_status=$?
18021   grep -v '^ *+' conftest.er1 >conftest.err
18022   rm -f conftest.er1
18023   cat conftest.err >&5
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); } &&
18026          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18027   { (case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_try") 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; } &&
18036          { ac_try='test -s conftest$ac_exeext'
18037   { (case "(($ac_try" in
18038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18039   *) ac_try_echo=$ac_try;;
18040 esac
18041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18042   (eval "$ac_try") 2>&5
18043   ac_status=$?
18044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045   (exit $ac_status); }; }; then
18046    ac_cv_openssl_sha2="yes"
18047 else
18048   echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18050
18051          ac_cv_openssl_sha2="no"
18052
18053 fi
18054
18055 rm -f core conftest.err conftest.$ac_objext \
18056       conftest$ac_exeext conftest.$ac_ext
18057
18058         LIBS="${saved_LIBS}"
18059         CFLAGS="${saved_CFLAGS}"
18060
18061         if test "$support_tls" = "yes"; then
18062
18063 cat >>confdefs.h <<\_ACEOF
18064 #define HAVE_OPENSSL 1
18065 _ACEOF
18066
18067
18068 cat >>confdefs.h <<\_ACEOF
18069 #define HAVE_TLS 1
18070 _ACEOF
18071
18072
18073 cat >>confdefs.h <<\_ACEOF
18074 #define HAVE_CRYPTO 1
18075 _ACEOF
18076
18077         fi
18078
18079         if test "$ac_cv_openssl_sha2" = "yes"; then
18080
18081 cat >>confdefs.h <<\_ACEOF
18082 #define HAVE_SHA2 1
18083 _ACEOF
18084
18085         fi
18086 else
18087         support_tls="no"
18088         support_crypto="no"
18089         OPENSSL_LIBS=""
18090         OPENSSL_INC=""
18091 fi
18092
18093 { echo "$as_me:$LINENO: result: $support_tls" >&5
18094 echo "${ECHO_T}$support_tls" >&6; }
18095
18096
18097
18098
18099 # -----------------------------------------------------------
18100 # Python and OpenSSL are using dlopen
18101 # -----------------------------------------------------------
18102
18103 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18104    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18105 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18106 if test "${ac_cv_search_dlopen+set}" = set; then
18107   echo $ECHO_N "(cached) $ECHO_C" >&6
18108 else
18109   ac_func_search_save_LIBS=$LIBS
18110 cat >conftest.$ac_ext <<_ACEOF
18111 /* confdefs.h.  */
18112 _ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h.  */
18116
18117 /* Override any GCC internal prototype to avoid an error.
18118    Use char because int might match the return type of a GCC
18119    builtin and then its argument prototype would still apply.  */
18120 #ifdef __cplusplus
18121 extern "C"
18122 #endif
18123 char dlopen ();
18124 int
18125 main ()
18126 {
18127 return dlopen ();
18128   ;
18129   return 0;
18130 }
18131 _ACEOF
18132 for ac_lib in '' dl; do
18133   if test -z "$ac_lib"; then
18134     ac_res="none required"
18135   else
18136     ac_res=-l$ac_lib
18137     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18138   fi
18139   rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143   *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146   (eval "$ac_link") 2>conftest.er1
18147   ac_status=$?
18148   grep -v '^ *+' conftest.er1 >conftest.err
18149   rm -f conftest.er1
18150   cat conftest.err >&5
18151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152   (exit $ac_status); } &&
18153          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154   { (case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_try") 2>&5
18160   ac_status=$?
18161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162   (exit $ac_status); }; } &&
18163          { ac_try='test -s conftest$ac_exeext'
18164   { (case "(($ac_try" in
18165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166   *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169   (eval "$ac_try") 2>&5
18170   ac_status=$?
18171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172   (exit $ac_status); }; }; then
18173   ac_cv_search_dlopen=$ac_res
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext \
18182       conftest$ac_exeext
18183   if test "${ac_cv_search_dlopen+set}" = set; then
18184   break
18185 fi
18186 done
18187 if test "${ac_cv_search_dlopen+set}" = set; then
18188   :
18189 else
18190   ac_cv_search_dlopen=no
18191 fi
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18194 fi
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18196 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18197 ac_res=$ac_cv_search_dlopen
18198 if test "$ac_res" != no; then
18199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18200
18201 fi
18202
18203 fi
18204
18205 # ------------------------------------------
18206 # Where to place working dir
18207 # ------------------------------------------
18208 working_dir=`eval echo ${prefix}/var/bacula/working`
18209
18210 # Check whether --with-working-dir was given.
18211 if test "${with_working_dir+set}" = set; then
18212   withval=$with_working_dir;
18213        if test "x$withval" != "xno" ; then
18214               working_dir=$withval
18215        fi
18216
18217
18218 fi
18219
18220
18221
18222
18223
18224 # ------------------------------------------
18225 # Where to place scriptdir (script files)
18226 # ------------------------------------------
18227 scriptdir=`eval echo ${sysconfdir}`
18228
18229 # Check whether --with-scriptdir was given.
18230 if test "${with_scriptdir+set}" = set; then
18231   withval=$with_scriptdir;
18232        if test "x$withval" != "xno" ; then
18233               scriptdir=$withval
18234        fi
18235
18236
18237 fi
18238
18239
18240
18241
18242
18243 # ------------------------------------------
18244 # Where to send dump email
18245 # ------------------------------------------
18246 dump_email=root@localhost
18247
18248 # Check whether --with-dump-email was given.
18249 if test "${with_dump_email+set}" = set; then
18250   withval=$with_dump_email;
18251        if test "x$withval" != "xno" ; then
18252               dump_email=$withval
18253        fi
18254
18255
18256 fi
18257
18258
18259
18260
18261 # ------------------------------------------
18262 # Where to send job email
18263 # ------------------------------------------
18264 job_email=root@localhost
18265
18266 # Check whether --with-job-email was given.
18267 if test "${with_job_email+set}" = set; then
18268   withval=$with_job_email;
18269        if test "x$withval" != "xno" ; then
18270               job_email=$withval
18271        fi
18272
18273
18274 fi
18275
18276
18277
18278
18279 # ------------------------------------------
18280 # Where to find smtp host
18281 # ------------------------------------------
18282 smtp_host=localhost
18283
18284 # Check whether --with-smtp_host was given.
18285 if test "${with_smtp_host+set}" = set; then
18286   withval=$with_smtp_host;
18287        if test "x$withval" != "xno" ; then
18288               smtp_host=$withval
18289        fi
18290
18291
18292 fi
18293
18294
18295
18296
18297
18298 # ------------------------------------
18299 # Where to place pid files
18300 # ------------------------------------
18301 piddir=/var/run
18302
18303 # Check whether --with-pid-dir was given.
18304 if test "${with_pid_dir+set}" = set; then
18305   withval=$with_pid_dir;
18306         if test "x$withval" != "xno" ; then
18307             piddir=$withval
18308         fi
18309
18310
18311 fi
18312
18313
18314 cat >>confdefs.h <<_ACEOF
18315 #define _PATH_BACULA_PIDDIR "$piddir"
18316 _ACEOF
18317
18318
18319
18320
18321 # ------------------------------------
18322 # Where to place subsys "lock file"
18323 # ------------------------------------
18324 subsysdir=/var/run/subsys
18325
18326 # Check whether --with-subsys-dir was given.
18327 if test "${with_subsys_dir+set}" = set; then
18328   withval=$with_subsys_dir;
18329         if test "x$withval" != "xno" ; then
18330             subsysdir=$withval
18331         fi
18332
18333
18334 fi
18335
18336
18337
18338
18339
18340
18341 # ------------------------------------
18342 # Where to start assigning ports
18343 # ------------------------------------
18344 baseport=9101
18345
18346 # Check whether --with-baseport was given.
18347 if test "${with_baseport+set}" = set; then
18348   withval=$with_baseport;
18349         if test "x$withval" != "xno" ; then
18350              baseport=$withval
18351         fi
18352
18353
18354 fi
18355
18356
18357
18358 dir_port=`expr $baseport`
18359 fd_port=`expr $baseport + 1`
18360 sd_port=`expr $fd_port + 1`
18361
18362
18363
18364
18365
18366
18367 # ------------------------------------------
18368 # Generate passwords
18369 # ------------------------------------------
18370 dir_password=
18371
18372 # Check whether --with-dir-password was given.
18373 if test "${with_dir_password+set}" = set; then
18374   withval=$with_dir_password;
18375        if test "x$withval" != "xno" ; then
18376            dir_password=$withval
18377        fi
18378
18379
18380 fi
18381
18382
18383 if test "x$dir_password" = "x" ; then
18384    if test "x$OPENSSL" = "xnone" ; then
18385       key=`autoconf/randpass 33`
18386    else
18387       key=`openssl rand -base64 33`
18388    fi
18389    dir_password=$key
18390 fi
18391
18392 fd_password=
18393
18394 # Check whether --with-fd-password was given.
18395 if test "${with_fd_password+set}" = set; then
18396   withval=$with_fd_password;
18397        if test "x$withval" != "xno" ; then
18398            fd_password=$withval
18399        fi
18400
18401
18402 fi
18403
18404
18405 if test "x$fd_password" = "x" ; then
18406    if test "x$OPENSSL" = "xnone" ; then
18407       key=`autoconf/randpass 37`
18408    else
18409       key=`openssl rand -base64 33`
18410    fi
18411    fd_password=$key
18412 fi
18413
18414 sd_password=
18415
18416 # Check whether --with-sd-password was given.
18417 if test "${with_sd_password+set}" = set; then
18418   withval=$with_sd_password;
18419        if test "x$withval" != "xno" ; then
18420            sd_password=$withval
18421        fi
18422
18423
18424 fi
18425
18426
18427 if test "x$sd_password" = "x" ; then
18428    if test "x$OPENSSL" = "xnone" ; then
18429       key=`autoconf/randpass 41`
18430    else
18431       key=`openssl rand -base64 33`
18432    fi
18433    sd_password=$key
18434 fi
18435
18436 mon_dir_password=
18437
18438 # Check whether --with-mon-dir-password was given.
18439 if test "${with_mon_dir_password+set}" = set; then
18440   withval=$with_mon_dir_password;
18441        if test "x$withval" != "xno" ; then
18442            mon_dir_password=$withval
18443        fi
18444
18445
18446 fi
18447
18448
18449 if test "x$mon_dir_password" = "x" ; then
18450    if test "x$OPENSSL" = "xnone" ; then
18451       key=`autoconf/randpass 33`
18452    else
18453       key=`openssl rand -base64 33`
18454    fi
18455    mon_dir_password=$key
18456 fi
18457
18458 mon_fd_password=
18459
18460 # Check whether --with-mon-fd-password was given.
18461 if test "${with_mon_fd_password+set}" = set; then
18462   withval=$with_mon_fd_password;
18463        if test "x$withval" != "xno" ; then
18464            mon_fd_password=$withval
18465        fi
18466
18467
18468 fi
18469
18470
18471 if test "x$mon_fd_password" = "x" ; then
18472    if test "x$OPENSSL" = "xnone" ; then
18473       key=`autoconf/randpass 37`
18474    else
18475       key=`openssl rand -base64 33`
18476    fi
18477    mon_fd_password=$key
18478 fi
18479
18480 mon_sd_password=
18481
18482 # Check whether --with-mon-sd-password was given.
18483 if test "${with_mon_sd_password+set}" = set; then
18484   withval=$with_mon_sd_password;
18485        if test "x$withval" != "xno" ; then
18486            mon_sd_password=$withval
18487        fi
18488
18489
18490 fi
18491
18492
18493 if test "x$mon_sd_password" = "x" ; then
18494    if test "x$OPENSSL" = "xnone" ; then
18495       key=`autoconf/randpass 41`
18496    else
18497       key=`openssl rand -base64 33`
18498    fi
18499    mon_sd_password=$key
18500 fi
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510 #
18511 # Handle users and groups for each daemon
18512 #
18513 dir_user=
18514
18515 # Check whether --with-dir_user was given.
18516 if test "${with_dir_user+set}" = set; then
18517   withval=$with_dir_user;
18518         if test "x$withval" != "x" ; then
18519              dir_user=$withval
18520         fi
18521
18522
18523 fi
18524
18525
18526 dir_group=
18527
18528 # Check whether --with-dir_group was given.
18529 if test "${with_dir_group+set}" = set; then
18530   withval=$with_dir_group;
18531         if test "x$withval" != "x" ; then
18532              dir_group=$withval
18533         fi
18534
18535
18536 fi
18537
18538
18539 sd_user=
18540
18541 # Check whether --with-sd_user was given.
18542 if test "${with_sd_user+set}" = set; then
18543   withval=$with_sd_user;
18544         if test "x$withval" != "x" ; then
18545              sd_user=$withval
18546         fi
18547
18548
18549 fi
18550
18551
18552 sd_group=
18553
18554 # Check whether --with-sd_group was given.
18555 if test "${with_sd_group+set}" = set; then
18556   withval=$with_sd_group;
18557         if test "x$withval" != "x" ; then
18558              sd_group=$withval
18559         fi
18560
18561
18562 fi
18563
18564
18565 fd_user=
18566
18567 # Check whether --with-fd_user was given.
18568 if test "${with_fd_user+set}" = set; then
18569   withval=$with_fd_user;
18570         if test "x$withval" != "x" ; then
18571              fd_user=$withval
18572         fi
18573
18574
18575 fi
18576
18577
18578 fd_group=
18579
18580 # Check whether --with-fd_group was given.
18581 if test "${with_fd_group+set}" = set; then
18582   withval=$with_fd_group;
18583         if test "x$withval" != "x" ; then
18584              fd_group=$withval
18585         fi
18586
18587
18588 fi
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601 #
18602 # allow setting default executable permissions
18603 #
18604 SBINPERM=0754
18605
18606 # Check whether --with-sbin-perm was given.
18607 if test "${with_sbin_perm+set}" = set; then
18608   withval=$with_sbin_perm;
18609         if test "x$withval" != "x" ; then
18610             SBINPERM=$withval
18611         fi
18612
18613
18614 fi
18615
18616
18617
18618
18619 # ------------------------------------------------
18620 # Bacula check for various SQL database engines
18621 # ------------------------------------------------
18622
18623 db_found=no
18624 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18625 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18626
18627 # Check whether --with-postgresql was given.
18628 if test "${with_postgresql+set}" = set; then
18629   withval=$with_postgresql;
18630   if test "$withval" != "no"; then
18631       if test "$db_found" = "yes"; then
18632           { echo "$as_me:$LINENO: result: error" >&5
18633 echo "${ECHO_T}error" >&6; }
18634           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18635 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18636    { (exit 1); exit 1; }; };
18637       fi
18638       if test "$withval" = "yes"; then
18639           PG_CONFIG=`which pg_config`
18640           if test -n "$PG_CONFIG";then
18641               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18642               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18643               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18644           elif test -f /usr/local/include/libpq-fe.h; then
18645               POSTGRESQL_INCDIR=/usr/local/include
18646               if test -d /usr/local/lib64; then
18647                  POSTGRESQL_LIBDIR=/usr/local/lib64
18648               else
18649                  POSTGRESQL_LIBDIR=/usr/local/lib
18650               fi
18651               POSTGRESQL_BINDIR=/usr/local/bin
18652           elif test -f /usr/include/libpq-fe.h; then
18653               POSTGRESQL_INCDIR=/usr/include
18654               if test -d /usr/lib64; then
18655                  POSTGRESQL_LIBDIR=/usr/lib64
18656               else
18657                  POSTGRESQL_LIBDIR=/usr/lib
18658               fi
18659               POSTGRESQL_BINDIR=/usr/bin
18660           elif test -f /usr/include/pgsql/libpq-fe.h; then
18661               POSTGRESQL_INCDIR=/usr/include/pgsql
18662               if test -d /usr/lib64/pgsql; then
18663                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18664               else
18665                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18666               fi
18667               POSTGRESQL_BINDIR=/usr/bin
18668           elif test -f /usr/include/postgresql/libpq-fe.h; then
18669               POSTGRESQL_INCDIR=/usr/include/postgresql
18670               if test -d /usr/lib64/postgresql; then
18671                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18672               else
18673                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18674               fi
18675               POSTGRESQL_BINDIR=/usr/bin
18676           else
18677               { echo "$as_me:$LINENO: result: no" >&5
18678 echo "${ECHO_T}no" >&6; }
18679               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18680 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18681    { (exit 1); exit 1; }; }
18682           fi
18683       elif test -f $withval/include/libpq-fe.h; then
18684           POSTGRESQL_INCDIR=$withval/include
18685           POSTGRESQL_LIBDIR=$withval/lib
18686           POSTGRESQL_BINDIR=$withval/bin
18687       elif test -f $withval/include/postgresql/libpq-fe.h; then
18688           POSTGRESQL_INCDIR=$withval/include/postgresql
18689      if test -d $withval/lib64; then
18690          POSTGRESQL_LIBDIR=$withval/lib64
18691      else
18692          POSTGRESQL_LIBDIR=$withval/lib
18693      fi
18694           POSTGRESQL_BINDIR=$withval/bin
18695       else
18696           { echo "$as_me:$LINENO: result: no" >&5
18697 echo "${ECHO_T}no" >&6; }
18698           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18699 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18700    { (exit 1); exit 1; }; }
18701       fi
18702       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18703       { echo "$as_me:$LINENO: checking for crypt" >&5
18704 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18705 if test "${ac_cv_func_crypt+set}" = set; then
18706   echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708   cat >conftest.$ac_ext <<_ACEOF
18709 /* confdefs.h.  */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h.  */
18714 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18716 #define crypt innocuous_crypt
18717
18718 /* System header to define __stub macros and hopefully few prototypes,
18719     which can conflict with char crypt (); below.
18720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18721     <limits.h> exists even on freestanding compilers.  */
18722
18723 #ifdef __STDC__
18724 # include <limits.h>
18725 #else
18726 # include <assert.h>
18727 #endif
18728
18729 #undef crypt
18730
18731 /* Override any GCC internal prototype to avoid an error.
18732    Use char because int might match the return type of a GCC
18733    builtin and then its argument prototype would still apply.  */
18734 #ifdef __cplusplus
18735 extern "C"
18736 #endif
18737 char crypt ();
18738 /* The GNU C library defines this for functions which it implements
18739     to always fail with ENOSYS.  Some functions are actually named
18740     something starting with __ and the normal name is an alias.  */
18741 #if defined __stub_crypt || defined __stub___crypt
18742 choke me
18743 #endif
18744
18745 int
18746 main ()
18747 {
18748 return crypt ();
18749   ;
18750   return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757   *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760   (eval "$ac_link") 2>conftest.er1
18761   ac_status=$?
18762   grep -v '^ *+' conftest.er1 >conftest.err
18763   rm -f conftest.er1
18764   cat conftest.err >&5
18765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766   (exit $ac_status); } &&
18767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18768   { (case "(($ac_try" in
18769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18770   *) ac_try_echo=$ac_try;;
18771 esac
18772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18773   (eval "$ac_try") 2>&5
18774   ac_status=$?
18775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776   (exit $ac_status); }; } &&
18777          { ac_try='test -s conftest$ac_exeext'
18778   { (case "(($ac_try" in
18779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18780   *) ac_try_echo=$ac_try;;
18781 esac
18782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18783   (eval "$ac_try") 2>&5
18784   ac_status=$?
18785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786   (exit $ac_status); }; }; then
18787   ac_cv_func_crypt=yes
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         ac_cv_func_crypt=no
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext \
18796       conftest$ac_exeext conftest.$ac_ext
18797 fi
18798 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18799 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18800 if test $ac_cv_func_crypt = yes; then
18801   :
18802 else
18803   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18804 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18805 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   ac_check_lib_save_LIBS=$LIBS
18809 LIBS="-lcrypt  $LIBS"
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816
18817 /* Override any GCC internal prototype to avoid an error.
18818    Use char because int might match the return type of a GCC
18819    builtin and then its argument prototype would still apply.  */
18820 #ifdef __cplusplus
18821 extern "C"
18822 #endif
18823 char crypt ();
18824 int
18825 main ()
18826 {
18827 return crypt ();
18828   ;
18829   return 0;
18830 }
18831 _ACEOF
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836   *) ac_try_echo=$ac_try;;
18837 esac
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839   (eval "$ac_link") 2>conftest.er1
18840   ac_status=$?
18841   grep -v '^ *+' conftest.er1 >conftest.err
18842   rm -f conftest.er1
18843   cat conftest.err >&5
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); } &&
18846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18847   { (case "(($ac_try" in
18848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18849   *) ac_try_echo=$ac_try;;
18850 esac
18851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18852   (eval "$ac_try") 2>&5
18853   ac_status=$?
18854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855   (exit $ac_status); }; } &&
18856          { ac_try='test -s conftest$ac_exeext'
18857   { (case "(($ac_try" in
18858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859   *) ac_try_echo=$ac_try;;
18860 esac
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862   (eval "$ac_try") 2>&5
18863   ac_status=$?
18864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865   (exit $ac_status); }; }; then
18866   ac_cv_lib_crypt_crypt=yes
18867 else
18868   echo "$as_me: failed program was:" >&5
18869 sed 's/^/| /' conftest.$ac_ext >&5
18870
18871         ac_cv_lib_crypt_crypt=no
18872 fi
18873
18874 rm -f core conftest.err conftest.$ac_objext \
18875       conftest$ac_exeext conftest.$ac_ext
18876 LIBS=$ac_check_lib_save_LIBS
18877 fi
18878 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18879 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18880 if test $ac_cv_lib_crypt_crypt = yes; then
18881   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18882 fi
18883
18884 fi
18885
18886       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18887       SQL_LFLAGS=$POSTGRESQL_LFLAGS
18888       SQL_BINDIR=$POSTGRESQL_BINDIR
18889       cat >>confdefs.h <<\_ACEOF
18890 #define HAVE_POSTGRESQL 1
18891 _ACEOF
18892
18893       { echo "$as_me:$LINENO: result: yes" >&5
18894 echo "${ECHO_T}yes" >&6; }
18895       db_found=yes
18896       support_postgresql=yes
18897       db_name=PostgreSQL
18898       DB_NAME=postgresql
18899   else
18900       { echo "$as_me:$LINENO: result: no" >&5
18901 echo "${ECHO_T}no" >&6; }
18902   fi
18903
18904 else
18905
18906   { echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6; }
18908
18909 fi
18910
18911
18912
18913
18914
18915
18916
18917
18918 db_found=no
18919 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18920 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18921
18922 # Check whether --with-mysql was given.
18923 if test "${with_mysql+set}" = set; then
18924   withval=$with_mysql;
18925   if test "$withval" != "no"; then
18926         if test "$withval" = "yes"; then
18927            if test -f /usr/local/mysql/include/mysql/mysql.h; then
18928                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
18929                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
18930                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
18931                    else
18932                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
18933                    fi
18934                    MYSQL_BINDIR=/usr/local/mysql/bin
18935            elif test -f /usr/include/mysql/mysql.h; then
18936                    MYSQL_INCDIR=/usr/include/mysql
18937                    if test -f /usr/lib64/mysql/libmysqlclient.a; then
18938                            MYSQL_LIBDIR=/usr/lib64/mysql
18939                    else
18940                            MYSQL_LIBDIR=/usr/lib/mysql
18941                    fi
18942                    MYSQL_BINDIR=/usr/bin
18943            elif test -f /usr/include/mysql.h; then
18944                    MYSQL_INCDIR=/usr/include
18945                    if test -f /usr/lib64/libmysqlclient.a; then
18946                            MYSQL_LIBDIR=/usr/lib64
18947                    else
18948                            MYSQL_LIBDIR=/usr/lib
18949                    fi
18950                    MYSQL_BINDIR=/usr/bin
18951            elif test -f /usr/local/include/mysql/mysql.h; then
18952                    MYSQL_INCDIR=/usr/local/include/mysql
18953                    if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
18954                            MYSQL_LIBDIR=/usr/local/lib64/mysql
18955                    else
18956                            MYSQL_LIBDIR=/usr/local/lib/mysql
18957                    fi
18958                    MYSQL_BINDIR=/usr/local/bin
18959            elif test -f /usr/local/include/mysql.h; then
18960                    MYSQL_INCDIR=/usr/local/include
18961                    if test -f /usr/local/lib64/libmysqlclient.a; then
18962                            MYSQL_LIBDIR=/usr/local/lib64
18963                    else
18964                            MYSQL_LIBDIR=/usr/local/lib
18965                    fi
18966                    MYSQL_BINDIR=/usr/local/bin
18967            else
18968               { echo "$as_me:$LINENO: result: no" >&5
18969 echo "${ECHO_T}no" >&6; }
18970               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
18971 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
18972    { (exit 1); exit 1; }; }
18973            fi
18974         else
18975            if test -f $withval/include/mysql/mysql.h; then
18976               MYSQL_INCDIR=$withval/include/mysql
18977               if test -f $withval/lib64/mysql/libmysqlclient.a; then
18978                  MYSQL_LIBDIR=$withval/lib64/mysql
18979               else
18980                  MYSQL_LIBDIR=$withval/lib/mysql
18981                  # Solaris ...
18982                  if test -f $withval/lib/libmysqlclient.so; then
18983                     MYSQL_LIBDIR=$withval/lib
18984                  fi
18985               fi
18986               MYSQL_BINDIR=$withval/bin
18987            elif test -f $withval/include/mysql.h; then
18988               MYSQL_INCDIR=$withval/include
18989               if test -f "$withval/lib64/libmysqlclient.a"; then
18990                  MYSQL_LIBDIR=$withval/lib64
18991               else
18992                  MYSQL_LIBDIR=$withval/lib
18993               fi
18994               MYSQL_BINDIR=$withval/bin
18995            else
18996               { echo "$as_me:$LINENO: result: no" >&5
18997 echo "${ECHO_T}no" >&6; }
18998               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
18999 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19000    { (exit 1); exit 1; }; }
19001            fi
19002         fi
19003     SQL_INCLUDE=-I$MYSQL_INCDIR
19004     if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
19005        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19006        cat >>confdefs.h <<\_ACEOF
19007 #define HAVE_THREAD_SAFE_MYSQL 1
19008 _ACEOF
19009
19010     else
19011        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
19012     fi
19013     SQL_BINDIR=$MYSQL_BINDIR
19014
19015     cat >>confdefs.h <<\_ACEOF
19016 #define HAVE_MYSQL 1
19017 _ACEOF
19018
19019     { echo "$as_me:$LINENO: result: yes" >&5
19020 echo "${ECHO_T}yes" >&6; }
19021     db_found=yes
19022     support_mysql=yes
19023     db_name=MySQL
19024     DB_NAME=mysql
19025
19026   else
19027         { echo "$as_me:$LINENO: result: no" >&5
19028 echo "${ECHO_T}no" >&6; }
19029   fi
19030
19031
19032 fi
19033
19034
19035
19036 # Check whether --with-embedded-mysql was given.
19037 if test "${with_embedded_mysql+set}" = set; then
19038   withval=$with_embedded_mysql;
19039   if test "$withval" != "no"; then
19040         if test "$withval" = "yes"; then
19041                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19042                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19043                         if test -d /usr/local/mysql/lib64/mysql; then
19044                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19045                         else
19046                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19047                         fi
19048                         MYSQL_BINDIR=/usr/local/mysql/bin
19049                 elif test -f /usr/include/mysql/mysql.h; then
19050                         MYSQL_INCDIR=/usr/include/mysql
19051                         if test -d /usr/lib64/mysql; then
19052                                 MYSQL_LIBDIR=/usr/lib64/mysql
19053                         else
19054                                 MYSQL_LIBDIR=/usr/lib/mysql
19055                         fi
19056                         MYSQL_BINDIR=/usr/bin
19057                 elif test -f /usr/include/mysql.h; then
19058                         MYSQL_INCDIR=/usr/include
19059                         if test -d /usr/lib64; then
19060                                 MYSQL_LIBDIR=/usr/lib64
19061                         else
19062                                 MYSQL_LIBDIR=/usr/lib
19063                         fi
19064                         MYSQL_BINDIR=/usr/bin
19065                 elif test -f /usr/local/include/mysql/mysql.h; then
19066                         MYSQL_INCDIR=/usr/local/include/mysql
19067                         if test -d /usr/local/lib64/mysql; then
19068                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19069                         else
19070                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19071                         fi
19072                         MYSQL_BINDIR=/usr/local/bin
19073                 elif test -f /usr/local/include/mysql.h; then
19074                         MYSQL_INCDIR=/usr/local/include
19075                         if test -d /usr/local/lib64; then
19076                                 MYSQL_LIBDIR=/usr/local/lib64
19077                         else
19078                                 MYSQL_LIBDIR=/usr/local/lib
19079                         fi
19080                         MYSQL_BINDIR=/usr/local/bin
19081                 else
19082                    { echo "$as_me:$LINENO: result: no" >&5
19083 echo "${ECHO_T}no" >&6; }
19084                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19085 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19086    { (exit 1); exit 1; }; }
19087                 fi
19088         else
19089                 if test -f $withval/include/mysql/mysql.h; then
19090                         MYSQL_INCDIR=$withval/include/mysql
19091                         if test -d $withval/lib64/mysql; then
19092                                 MYSQL_LIBDIR=$withval/lib64/mysql
19093                         else
19094                                 MYSQL_LIBDIR=$withval/lib/mysql
19095                         fi
19096                         MYSQL_BINDIR=$withval/bin
19097                 elif test -f $withval/include/mysql.h; then
19098                         MYSQL_INCDIR=$withval/include
19099                         if test -d $withval/lib64; then
19100                                 MYSQL_LIBDIR=$withval/lib64
19101                         else
19102                                 MYSQL_LIBDIR=$withval/lib
19103                         fi
19104                         MYSQL_BINDIR=$withval/bin
19105                 else
19106                    { echo "$as_me:$LINENO: result: no" >&5
19107 echo "${ECHO_T}no" >&6; }
19108                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19109 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19110    { (exit 1); exit 1; }; }
19111                 fi
19112         fi
19113     SQL_INCLUDE=-I$MYSQL_INCDIR
19114     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19115     SQL_BINDIR=$MYSQL_BINDIR
19116
19117     cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_MYSQL 1
19119 _ACEOF
19120
19121     cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_EMBEDDED_MYSQL 1
19123 _ACEOF
19124
19125     { echo "$as_me:$LINENO: result: yes" >&5
19126 echo "${ECHO_T}yes" >&6; }
19127     db_found=yes
19128     support_mysql=yes
19129     db_name=MySQL
19130     DB_NAME=mysql
19131
19132   else
19133         { echo "$as_me:$LINENO: result: no" >&5
19134 echo "${ECHO_T}no" >&6; }
19135   fi
19136
19137
19138 fi
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149 db_found=no
19150 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19151 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19152
19153 # Check whether --with-sqlite3 was given.
19154 if test "${with_sqlite3+set}" = set; then
19155   withval=$with_sqlite3;
19156   if test "$withval" != "no"; then
19157      if test "$withval" = "yes"; then
19158         if test -f /usr/local/include/sqlite3.h; then
19159            SQLITE_INCDIR=/usr/local/include
19160            if test -d /usr/local/lib64; then
19161               SQLITE_LIBDIR=/usr/local/lib64
19162            else
19163               SQLITE_LIBDIR=/usr/local/lib
19164            fi
19165            SQLITE_BINDIR=/usr/local/bin
19166         elif test -f /usr/include/sqlite3.h; then
19167            SQLITE_INCDIR=/usr/include
19168            if test -d /usr/lib64; then
19169               SQLITE_LIBDIR=/usr/lib64
19170            else
19171               SQLITE_LIBDIR=/usr/lib
19172            fi
19173            SQLITE_BINDIR=/usr/bin
19174         elif test -f $prefix/include/sqlite3.h; then
19175            SQLITE_INCDIR=$prefix/include
19176            if test -d $prefix/lib64; then
19177               SQLITE_LIBDIR=$prefix/lib64
19178            else
19179               SQLITE_LIBDIR=$prefix/lib
19180            fi
19181            SQLITE_BINDIR=$prefix/bin
19182         else
19183            { echo "$as_me:$LINENO: result: no" >&5
19184 echo "${ECHO_T}no" >&6; }
19185            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19186 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19187    { (exit 1); exit 1; }; }
19188         fi
19189      else
19190         if test -f $withval/sqlite3.h; then
19191            SQLITE_INCDIR=$withval
19192            SQLITE_LIBDIR=$withval
19193            SQLITE_BINDIR=$withval
19194         elif test -f $withval/include/sqlite3.h; then
19195            SQLITE_INCDIR=$withval/include
19196            if test -d $withval/lib64; then
19197               SQLITE_LIBDIR=$withval/lib64
19198            else
19199               SQLITE_LIBDIR=$withval/lib
19200            fi
19201            SQLITE_BINDIR=$withval/bin
19202         else
19203            { echo "$as_me:$LINENO: result: no" >&5
19204 echo "${ECHO_T}no" >&6; }
19205            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19206 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19207    { (exit 1); exit 1; }; }
19208         fi
19209      fi
19210      SQL_INCLUDE=-I$SQLITE_INCDIR
19211      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19212      SQL_BINDIR=$SQLITE_BINDIR
19213
19214      cat >>confdefs.h <<\_ACEOF
19215 #define HAVE_SQLITE3 1
19216 _ACEOF
19217
19218      { echo "$as_me:$LINENO: result: yes" >&5
19219 echo "${ECHO_T}yes" >&6; }
19220      db_found=yes
19221      support_sqlite3=yes
19222      db_name=SQLite3
19223      DB_NAME=sqlite3
19224
19225   else
19226      { echo "$as_me:$LINENO: result: no" >&5
19227 echo "${ECHO_T}no" >&6; }
19228   fi
19229
19230 else
19231
19232   { echo "$as_me:$LINENO: result: no" >&5
19233 echo "${ECHO_T}no" >&6; }
19234
19235 fi
19236
19237
19238
19239
19240
19241
19242
19243
19244 db_found=no
19245 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19246 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19247
19248 # Check whether --with-sqlite was given.
19249 if test "${with_sqlite+set}" = set; then
19250   withval=$with_sqlite;
19251   if test "$withval" != "no"; then
19252      if test "$withval" = "yes"; then
19253         if test -f /usr/local/include/sqlite.h; then
19254            SQLITE_INCDIR=/usr/local/include
19255            if test -d /usr/local/lib64; then
19256               SQLITE_LIBDIR=/usr/local/lib64
19257            else
19258               SQLITE_LIBDIR=/usr/local/lib
19259            fi
19260            SQLITE_BINDIR=/usr/local/bin
19261         elif test -f /usr/include/sqlite.h; then
19262            SQLITE_INCDIR=/usr/include
19263            if test -d /usr/lib64; then
19264               SQLITE_LIBDIR=/usr/lib64
19265            else
19266               SQLITE_LIBDIR=/usr/lib
19267            fi
19268            SQLITE_BINDIR=/usr/bin
19269         elif test -f $prefix/include/sqlite.h; then
19270            SQLITE_INCDIR=$prefix/include
19271            if test -d $prefix/lib64; then
19272               SQLITE_LIBDIR=$prefix/lib64
19273            else
19274               SQLITE_LIBDIR=$prefix/lib
19275            fi
19276            SQLITE_BINDIR=$prefix/bin
19277         else
19278            { echo "$as_me:$LINENO: result: no" >&5
19279 echo "${ECHO_T}no" >&6; }
19280            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19281 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19282    { (exit 1); exit 1; }; }
19283         fi
19284      else
19285         if test -f $withval/sqlite.h; then
19286            SQLITE_INCDIR=$withval
19287            SQLITE_LIBDIR=$withval
19288            SQLITE_BINDIR=$withval
19289         elif test -f $withval/include/sqlite.h; then
19290            SQLITE_INCDIR=$withval/include
19291            if test -d $withval/lib64; then
19292               SQLITE_LIBDIR=$withval/lib64
19293            else
19294               SQLITE_LIBDIR=$withval/lib
19295            fi
19296            SQLITE_BINDIR=$withval/bin
19297         else
19298            { echo "$as_me:$LINENO: result: no" >&5
19299 echo "${ECHO_T}no" >&6; }
19300            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19301 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19302    { (exit 1); exit 1; }; }
19303         fi
19304      fi
19305      SQL_INCLUDE=-I$SQLITE_INCDIR
19306      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19307      SQL_BINDIR=$SQLITE_BINDIR
19308
19309      cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_SQLITE 1
19311 _ACEOF
19312
19313      { echo "$as_me:$LINENO: result: yes" >&5
19314 echo "${ECHO_T}yes" >&6; }
19315      db_found=yes
19316      support_sqlite=yes
19317      db_name=SQLite
19318      DB_NAME=sqlite
19319
19320   else
19321      { echo "$as_me:$LINENO: result: no" >&5
19322 echo "${ECHO_T}no" >&6; }
19323   fi
19324
19325 else
19326
19327   { echo "$as_me:$LINENO: result: no" >&5
19328 echo "${ECHO_T}no" >&6; }
19329
19330 fi
19331
19332
19333
19334
19335
19336
19337
19338
19339
19340
19341 cat >>confdefs.h <<\_ACEOF
19342 #define PROTOTYPES 1
19343 _ACEOF
19344
19345
19346 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19347     if test -z "$CCOPTS"; then
19348         CCOPTS='-g -O2 -Wall'
19349     fi
19350     CFLAGS="$CCOPTS"
19351 fi
19352
19353
19354
19355
19356 largefile_support="no"
19357
19358    # Check whether --enable-largefile was given.
19359 if test "${enable_largefile+set}" = set; then
19360   enableval=$enable_largefile;
19361 fi
19362
19363    if test "$enable_largefile" != no; then
19364      if test -n "$ac_tool_prefix"; then
19365   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19366 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19369 if test "${ac_cv_prog_GETCONF+set}" = set; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   if test -n "$GETCONF"; then
19373   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19374 else
19375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19376 for as_dir in $PATH
19377 do
19378   IFS=$as_save_IFS
19379   test -z "$as_dir" && as_dir=.
19380   for ac_exec_ext in '' $ac_executable_extensions; do
19381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19382     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19384     break 2
19385   fi
19386 done
19387 done
19388 IFS=$as_save_IFS
19389
19390 fi
19391 fi
19392 GETCONF=$ac_cv_prog_GETCONF
19393 if test -n "$GETCONF"; then
19394   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19395 echo "${ECHO_T}$GETCONF" >&6; }
19396 else
19397   { echo "$as_me:$LINENO: result: no" >&5
19398 echo "${ECHO_T}no" >&6; }
19399 fi
19400
19401
19402 fi
19403 if test -z "$ac_cv_prog_GETCONF"; then
19404   ac_ct_GETCONF=$GETCONF
19405   # Extract the first word of "getconf", so it can be a program name with args.
19406 set dummy getconf; ac_word=$2
19407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19409 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19410   echo $ECHO_N "(cached) $ECHO_C" >&6
19411 else
19412   if test -n "$ac_ct_GETCONF"; then
19413   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19414 else
19415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19416 for as_dir in $PATH
19417 do
19418   IFS=$as_save_IFS
19419   test -z "$as_dir" && as_dir=.
19420   for ac_exec_ext in '' $ac_executable_extensions; do
19421   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19422     ac_cv_prog_ac_ct_GETCONF="getconf"
19423     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19424     break 2
19425   fi
19426 done
19427 done
19428 IFS=$as_save_IFS
19429
19430 fi
19431 fi
19432 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19433 if test -n "$ac_ct_GETCONF"; then
19434   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19435 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19436 else
19437   { echo "$as_me:$LINENO: result: no" >&5
19438 echo "${ECHO_T}no" >&6; }
19439 fi
19440
19441   if test "x$ac_ct_GETCONF" = x; then
19442     GETCONF=""
19443   else
19444     case $cross_compiling:$ac_tool_warned in
19445 yes:)
19446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19447 whose name does not start with the host triplet.  If you think this
19448 configuration is useful to you, please write to autoconf@gnu.org." >&5
19449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19450 whose name does not start with the host triplet.  If you think this
19451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19452 ac_tool_warned=yes ;;
19453 esac
19454     GETCONF=$ac_ct_GETCONF
19455   fi
19456 else
19457   GETCONF="$ac_cv_prog_GETCONF"
19458 fi
19459
19460      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19461 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19462 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19463   echo $ECHO_N "(cached) $ECHO_C" >&6
19464 else
19465   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19466         ac_cv_sys_largefile_CFLAGS=no
19467         case "$host_os" in
19468            # IRIX 6.2 and later require cc -n32.
19469            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19470              if test "$GCC" != yes; then
19471                ac_cv_sys_largefile_CFLAGS=-n32
19472              fi
19473              ac_save_CC="$CC"
19474              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19475              cat >conftest.$ac_ext <<_ACEOF
19476 /* confdefs.h.  */
19477 _ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h.  */
19481
19482 int
19483 main ()
19484 {
19485
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 rm -f conftest.$ac_objext conftest$ac_exeext
19491 if { (ac_try="$ac_link"
19492 case "(($ac_try" in
19493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494   *) ac_try_echo=$ac_try;;
19495 esac
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497   (eval "$ac_link") 2>conftest.er1
19498   ac_status=$?
19499   grep -v '^ *+' conftest.er1 >conftest.err
19500   rm -f conftest.er1
19501   cat conftest.err >&5
19502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503   (exit $ac_status); } &&
19504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19505   { (case "(($ac_try" in
19506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507   *) ac_try_echo=$ac_try;;
19508 esac
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510   (eval "$ac_try") 2>&5
19511   ac_status=$?
19512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513   (exit $ac_status); }; } &&
19514          { ac_try='test -s conftest$ac_exeext'
19515   { (case "(($ac_try" in
19516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19517   *) ac_try_echo=$ac_try;;
19518 esac
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520   (eval "$ac_try") 2>&5
19521   ac_status=$?
19522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523   (exit $ac_status); }; }; then
19524   :
19525 else
19526   echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19528
19529         ac_cv_sys_largefile_CFLAGS=no
19530 fi
19531
19532 rm -f core conftest.err conftest.$ac_objext \
19533       conftest$ac_exeext conftest.$ac_ext
19534              CC="$ac_save_CC"
19535            esac
19536       }
19537 fi
19538 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19539 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19540      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19541 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19542 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19543   echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19546         ac_cv_sys_largefile_LDFLAGS=no
19547
19548       }
19549 fi
19550 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19551 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19552      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19553 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19554 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19555   echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19558         ac_cv_sys_largefile_LIBS=no
19559
19560       }
19561 fi
19562 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19563 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19564
19565      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19566        case "$ac_flag" in
19567        no) ;;
19568        -D_FILE_OFFSET_BITS=*) ;;
19569        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19570        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19571        -D?* | -I?*)
19572          case "$ac_flag" in
19573    no) ;;
19574    ?*)
19575      case "$CPPFLAGS" in
19576      '') CPPFLAGS="$ac_flag" ;;
19577      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19578      esac ;;
19579    esac ;;
19580        *)
19581          case "$ac_flag" in
19582    no) ;;
19583    ?*)
19584      case "$CFLAGS" in
19585      '') CFLAGS="$ac_flag" ;;
19586      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19587      esac ;;
19588    esac ;;
19589        esac
19590      done
19591      case "$ac_cv_sys_largefile_LDFLAGS" in
19592    no) ;;
19593    ?*)
19594      case "$LDFLAGS" in
19595      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19596      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19597      esac ;;
19598    esac
19599      case "$ac_cv_sys_largefile_LIBS" in
19600    no) ;;
19601    ?*)
19602      case "$LIBS" in
19603      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19604      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19605      esac ;;
19606    esac
19607      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19608 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19609 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19610   echo $ECHO_N "(cached) $ECHO_C" >&6
19611 else
19612   ac_cv_sys_file_offset_bits=no
19613       ac_cv_sys_file_offset_bits=64
19614       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19615         case "$ac_flag" in
19616         -D_FILE_OFFSET_BITS)
19617           ac_cv_sys_file_offset_bits=1 ;;
19618         -D_FILE_OFFSET_BITS=*)
19619           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19620         esac
19621       done
19622
19623 fi
19624 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19625 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19626    if test "$ac_cv_sys_file_offset_bits" != no; then
19627
19628 cat >>confdefs.h <<_ACEOF
19629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19630 _ACEOF
19631
19632    fi
19633      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19634 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19635 if test "${ac_cv_sys_largefile_source+set}" = set; then
19636   echo $ECHO_N "(cached) $ECHO_C" >&6
19637 else
19638   ac_cv_sys_largefile_source=no
19639       ac_cv_sys_largefile_source=1
19640       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19641         case "$ac_flag" in
19642         -D_LARGEFILE_SOURCE)
19643           ac_cv_sys_largefile_source=1 ;;
19644         -D_LARGEFILE_SOURCE=*)
19645           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19646         esac
19647       done
19648
19649 fi
19650 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19651 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19652    if test "$ac_cv_sys_largefile_source" != no; then
19653
19654 cat >>confdefs.h <<_ACEOF
19655 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19656 _ACEOF
19657
19658    fi
19659      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19660 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19661 if test "${ac_cv_sys_large_files+set}" = set; then
19662   echo $ECHO_N "(cached) $ECHO_C" >&6
19663 else
19664   ac_cv_sys_large_files=no
19665       ac_cv_sys_large_files=1
19666       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19667         case "$ac_flag" in
19668         -D_LARGE_FILES)
19669           ac_cv_sys_large_files=1 ;;
19670         -D_LARGE_FILES=*)
19671           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19672         esac
19673       done
19674
19675 fi
19676 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19677 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19678    if test "$ac_cv_sys_large_files" != no; then
19679
19680 cat >>confdefs.h <<_ACEOF
19681 #define _LARGE_FILES $ac_cv_sys_large_files
19682 _ACEOF
19683
19684    fi
19685    fi
19686
19687
19688
19689 { echo "$as_me:$LINENO: checking for X" >&5
19690 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19691
19692
19693 # Check whether --with-x was given.
19694 if test "${with_x+set}" = set; then
19695   withval=$with_x;
19696 fi
19697
19698 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19699 if test "x$with_x" = xno; then
19700   # The user explicitly disabled X.
19701   have_x=disabled
19702 else
19703   case $x_includes,$x_libraries in #(
19704     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19705 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19706    { (exit 1); exit 1; }; };; #(
19707     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19708   echo $ECHO_N "(cached) $ECHO_C" >&6
19709 else
19710   # One or both of the vars are not set, and there is no cached value.
19711 ac_x_includes=no ac_x_libraries=no
19712 rm -f -r conftest.dir
19713 if mkdir conftest.dir; then
19714   cd conftest.dir
19715   cat >Imakefile <<'_ACEOF'
19716 incroot:
19717         @echo incroot='${INCROOT}'
19718 usrlibdir:
19719         @echo usrlibdir='${USRLIBDIR}'
19720 libdir:
19721         @echo libdir='${LIBDIR}'
19722 _ACEOF
19723   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19724     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19725     for ac_var in incroot usrlibdir libdir; do
19726       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19727     done
19728     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19729     for ac_extension in a so sl; do
19730       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19731          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19732         ac_im_usrlibdir=$ac_im_libdir; break
19733       fi
19734     done
19735     # Screen out bogus values from the imake configuration.  They are
19736     # bogus both because they are the default anyway, and because
19737     # using them would break gcc on systems where it needs fixed includes.
19738     case $ac_im_incroot in
19739         /usr/include) ac_x_includes= ;;
19740         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19741     esac
19742     case $ac_im_usrlibdir in
19743         /usr/lib | /lib) ;;
19744         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19745     esac
19746   fi
19747   cd ..
19748   rm -f -r conftest.dir
19749 fi
19750
19751 # Standard set of common directories for X headers.
19752 # Check X11 before X11Rn because it is often a symlink to the current release.
19753 ac_x_header_dirs='
19754 /usr/X11/include
19755 /usr/X11R6/include
19756 /usr/X11R5/include
19757 /usr/X11R4/include
19758
19759 /usr/include/X11
19760 /usr/include/X11R6
19761 /usr/include/X11R5
19762 /usr/include/X11R4
19763
19764 /usr/local/X11/include
19765 /usr/local/X11R6/include
19766 /usr/local/X11R5/include
19767 /usr/local/X11R4/include
19768
19769 /usr/local/include/X11
19770 /usr/local/include/X11R6
19771 /usr/local/include/X11R5
19772 /usr/local/include/X11R4
19773
19774 /usr/X386/include
19775 /usr/x386/include
19776 /usr/XFree86/include/X11
19777
19778 /usr/include
19779 /usr/local/include
19780 /usr/unsupported/include
19781 /usr/athena/include
19782 /usr/local/x11r5/include
19783 /usr/lpp/Xamples/include
19784
19785 /usr/openwin/include
19786 /usr/openwin/share/include'
19787
19788 if test "$ac_x_includes" = no; then
19789   # Guess where to find include files, by looking for Xlib.h.
19790   # First, try using that file with no special directory specified.
19791   cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 #include <X11/Xlib.h>
19798 _ACEOF
19799 if { (ac_try="$ac_cpp conftest.$ac_ext"
19800 case "(($ac_try" in
19801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802   *) ac_try_echo=$ac_try;;
19803 esac
19804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19806   ac_status=$?
19807   grep -v '^ *+' conftest.er1 >conftest.err
19808   rm -f conftest.er1
19809   cat conftest.err >&5
19810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811   (exit $ac_status); } >/dev/null; then
19812   if test -s conftest.err; then
19813     ac_cpp_err=$ac_c_preproc_warn_flag
19814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19815   else
19816     ac_cpp_err=
19817   fi
19818 else
19819   ac_cpp_err=yes
19820 fi
19821 if test -z "$ac_cpp_err"; then
19822   # We can compile using X headers with no special include directory.
19823 ac_x_includes=
19824 else
19825   echo "$as_me: failed program was:" >&5
19826 sed 's/^/| /' conftest.$ac_ext >&5
19827
19828   for ac_dir in $ac_x_header_dirs; do
19829   if test -r "$ac_dir/X11/Xlib.h"; then
19830     ac_x_includes=$ac_dir
19831     break
19832   fi
19833 done
19834 fi
19835
19836 rm -f conftest.err conftest.$ac_ext
19837 fi # $ac_x_includes = no
19838
19839 if test "$ac_x_libraries" = no; then
19840   # Check for the libraries.
19841   # See if we find them without any special options.
19842   # Don't add to $LIBS permanently.
19843   ac_save_LIBS=$LIBS
19844   LIBS="-lXt $LIBS"
19845   cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h.  */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h.  */
19851 #include <X11/Xlib.h>
19852 int
19853 main ()
19854 {
19855 XrmInitialize ()
19856   ;
19857   return 0;
19858 }
19859 _ACEOF
19860 rm -f conftest.$ac_objext conftest$ac_exeext
19861 if { (ac_try="$ac_link"
19862 case "(($ac_try" in
19863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19864   *) ac_try_echo=$ac_try;;
19865 esac
19866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19867   (eval "$ac_link") 2>conftest.er1
19868   ac_status=$?
19869   grep -v '^ *+' conftest.er1 >conftest.err
19870   rm -f conftest.er1
19871   cat conftest.err >&5
19872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873   (exit $ac_status); } &&
19874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19875   { (case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_try") 2>&5
19881   ac_status=$?
19882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883   (exit $ac_status); }; } &&
19884          { ac_try='test -s conftest$ac_exeext'
19885   { (case "(($ac_try" in
19886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887   *) ac_try_echo=$ac_try;;
19888 esac
19889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19890   (eval "$ac_try") 2>&5
19891   ac_status=$?
19892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893   (exit $ac_status); }; }; then
19894   LIBS=$ac_save_LIBS
19895 # We can link X programs with no special library path.
19896 ac_x_libraries=
19897 else
19898   echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19900
19901         LIBS=$ac_save_LIBS
19902 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19903 do
19904   # Don't even attempt the hair of trying to link an X program!
19905   for ac_extension in a so sl; do
19906     if test -r "$ac_dir/libXt.$ac_extension"; then
19907       ac_x_libraries=$ac_dir
19908       break 2
19909     fi
19910   done
19911 done
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext \
19915       conftest$ac_exeext conftest.$ac_ext
19916 fi # $ac_x_libraries = no
19917
19918 case $ac_x_includes,$ac_x_libraries in #(
19919   no,* | *,no | *\'*)
19920     # Didn't find X, or a directory has "'" in its name.
19921     ac_cv_have_x="have_x=no";; #(
19922   *)
19923     # Record where we found X for the cache.
19924     ac_cv_have_x="have_x=yes\
19925         ac_x_includes='$ac_x_includes'\
19926         ac_x_libraries='$ac_x_libraries'"
19927 esac
19928 fi
19929 ;; #(
19930     *) have_x=yes;;
19931   esac
19932   eval "$ac_cv_have_x"
19933 fi # $with_x != no
19934
19935 if test "$have_x" != yes; then
19936   { echo "$as_me:$LINENO: result: $have_x" >&5
19937 echo "${ECHO_T}$have_x" >&6; }
19938   no_x=yes
19939 else
19940   # If each of the values was on the command line, it overrides each guess.
19941   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19942   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19943   # Update the cache value to reflect the command line values.
19944   ac_cv_have_x="have_x=yes\
19945         ac_x_includes='$x_includes'\
19946         ac_x_libraries='$x_libraries'"
19947   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19948 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19949 fi
19950
19951 if test "$no_x" = yes; then
19952   # Not all programs may use this symbol, but it does not hurt to define it.
19953
19954 cat >>confdefs.h <<\_ACEOF
19955 #define X_DISPLAY_MISSING 1
19956 _ACEOF
19957
19958   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19959 else
19960   if test -n "$x_includes"; then
19961     X_CFLAGS="$X_CFLAGS -I$x_includes"
19962   fi
19963
19964   # It would also be nice to do this for all -L options, not just this one.
19965   if test -n "$x_libraries"; then
19966     X_LIBS="$X_LIBS -L$x_libraries"
19967     # For Solaris; some versions of Sun CC require a space after -R and
19968     # others require no space.  Words are not sufficient . . . .
19969     case `(uname -sr) 2>/dev/null` in
19970     "SunOS 5"*)
19971       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
19972 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
19973       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19974       cat >conftest.$ac_ext <<_ACEOF
19975 /* confdefs.h.  */
19976 _ACEOF
19977 cat confdefs.h >>conftest.$ac_ext
19978 cat >>conftest.$ac_ext <<_ACEOF
19979 /* end confdefs.h.  */
19980
19981 int
19982 main ()
19983 {
19984
19985   ;
19986   return 0;
19987 }
19988 _ACEOF
19989 rm -f conftest.$ac_objext conftest$ac_exeext
19990 if { (ac_try="$ac_link"
19991 case "(($ac_try" in
19992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19993   *) ac_try_echo=$ac_try;;
19994 esac
19995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19996   (eval "$ac_link") 2>conftest.er1
19997   ac_status=$?
19998   grep -v '^ *+' conftest.er1 >conftest.err
19999   rm -f conftest.er1
20000   cat conftest.err >&5
20001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); } &&
20003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20004   { (case "(($ac_try" in
20005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20006   *) ac_try_echo=$ac_try;;
20007 esac
20008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20009   (eval "$ac_try") 2>&5
20010   ac_status=$?
20011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012   (exit $ac_status); }; } &&
20013          { ac_try='test -s conftest$ac_exeext'
20014   { (case "(($ac_try" in
20015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20016   *) ac_try_echo=$ac_try;;
20017 esac
20018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20019   (eval "$ac_try") 2>&5
20020   ac_status=$?
20021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20022   (exit $ac_status); }; }; then
20023   ac_R_nospace=yes
20024 else
20025   echo "$as_me: failed program was:" >&5
20026 sed 's/^/| /' conftest.$ac_ext >&5
20027
20028         ac_R_nospace=no
20029 fi
20030
20031 rm -f core conftest.err conftest.$ac_objext \
20032       conftest$ac_exeext conftest.$ac_ext
20033       if test $ac_R_nospace = yes; then
20034         { echo "$as_me:$LINENO: result: no" >&5
20035 echo "${ECHO_T}no" >&6; }
20036         X_LIBS="$X_LIBS -R$x_libraries"
20037       else
20038         LIBS="$ac_xsave_LIBS -R $x_libraries"
20039         cat >conftest.$ac_ext <<_ACEOF
20040 /* confdefs.h.  */
20041 _ACEOF
20042 cat confdefs.h >>conftest.$ac_ext
20043 cat >>conftest.$ac_ext <<_ACEOF
20044 /* end confdefs.h.  */
20045
20046 int
20047 main ()
20048 {
20049
20050   ;
20051   return 0;
20052 }
20053 _ACEOF
20054 rm -f conftest.$ac_objext conftest$ac_exeext
20055 if { (ac_try="$ac_link"
20056 case "(($ac_try" in
20057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20058   *) ac_try_echo=$ac_try;;
20059 esac
20060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20061   (eval "$ac_link") 2>conftest.er1
20062   ac_status=$?
20063   grep -v '^ *+' conftest.er1 >conftest.err
20064   rm -f conftest.er1
20065   cat conftest.err >&5
20066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067   (exit $ac_status); } &&
20068          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20069   { (case "(($ac_try" in
20070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20071   *) ac_try_echo=$ac_try;;
20072 esac
20073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20074   (eval "$ac_try") 2>&5
20075   ac_status=$?
20076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077   (exit $ac_status); }; } &&
20078          { ac_try='test -s conftest$ac_exeext'
20079   { (case "(($ac_try" in
20080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081   *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084   (eval "$ac_try") 2>&5
20085   ac_status=$?
20086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087   (exit $ac_status); }; }; then
20088   ac_R_space=yes
20089 else
20090   echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20092
20093         ac_R_space=no
20094 fi
20095
20096 rm -f core conftest.err conftest.$ac_objext \
20097       conftest$ac_exeext conftest.$ac_ext
20098         if test $ac_R_space = yes; then
20099           { echo "$as_me:$LINENO: result: yes" >&5
20100 echo "${ECHO_T}yes" >&6; }
20101           X_LIBS="$X_LIBS -R $x_libraries"
20102         else
20103           { echo "$as_me:$LINENO: result: neither works" >&5
20104 echo "${ECHO_T}neither works" >&6; }
20105         fi
20106       fi
20107       LIBS=$ac_xsave_LIBS
20108     esac
20109   fi
20110
20111   # Check for system-dependent libraries X programs must link with.
20112   # Do this before checking for the system-independent R6 libraries
20113   # (-lICE), since we may need -lsocket or whatever for X linking.
20114
20115   if test "$ISC" = yes; then
20116     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20117   else
20118     # Martyn Johnson says this is needed for Ultrix, if the X
20119     # libraries were built with DECnet support.  And Karl Berry says
20120     # the Alpha needs dnet_stub (dnet does not exist).
20121     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20122     cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128
20129 /* Override any GCC internal prototype to avoid an error.
20130    Use char because int might match the return type of a GCC
20131    builtin and then its argument prototype would still apply.  */
20132 #ifdef __cplusplus
20133 extern "C"
20134 #endif
20135 char XOpenDisplay ();
20136 int
20137 main ()
20138 {
20139 return XOpenDisplay ();
20140   ;
20141   return 0;
20142 }
20143 _ACEOF
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148   *) ac_try_echo=$ac_try;;
20149 esac
20150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20151   (eval "$ac_link") 2>conftest.er1
20152   ac_status=$?
20153   grep -v '^ *+' conftest.er1 >conftest.err
20154   rm -f conftest.er1
20155   cat conftest.err >&5
20156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157   (exit $ac_status); } &&
20158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20159   { (case "(($ac_try" in
20160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161   *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164   (eval "$ac_try") 2>&5
20165   ac_status=$?
20166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167   (exit $ac_status); }; } &&
20168          { ac_try='test -s conftest$ac_exeext'
20169   { (case "(($ac_try" in
20170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20171   *) ac_try_echo=$ac_try;;
20172 esac
20173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20174   (eval "$ac_try") 2>&5
20175   ac_status=$?
20176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177   (exit $ac_status); }; }; then
20178   :
20179 else
20180   echo "$as_me: failed program was:" >&5
20181 sed 's/^/| /' conftest.$ac_ext >&5
20182
20183         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20184 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20185 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20186   echo $ECHO_N "(cached) $ECHO_C" >&6
20187 else
20188   ac_check_lib_save_LIBS=$LIBS
20189 LIBS="-ldnet  $LIBS"
20190 cat >conftest.$ac_ext <<_ACEOF
20191 /* confdefs.h.  */
20192 _ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h.  */
20196
20197 /* Override any GCC internal prototype to avoid an error.
20198    Use char because int might match the return type of a GCC
20199    builtin and then its argument prototype would still apply.  */
20200 #ifdef __cplusplus
20201 extern "C"
20202 #endif
20203 char dnet_ntoa ();
20204 int
20205 main ()
20206 {
20207 return dnet_ntoa ();
20208   ;
20209   return 0;
20210 }
20211 _ACEOF
20212 rm -f conftest.$ac_objext conftest$ac_exeext
20213 if { (ac_try="$ac_link"
20214 case "(($ac_try" in
20215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216   *) ac_try_echo=$ac_try;;
20217 esac
20218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20219   (eval "$ac_link") 2>conftest.er1
20220   ac_status=$?
20221   grep -v '^ *+' conftest.er1 >conftest.err
20222   rm -f conftest.er1
20223   cat conftest.err >&5
20224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225   (exit $ac_status); } &&
20226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20227   { (case "(($ac_try" in
20228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229   *) ac_try_echo=$ac_try;;
20230 esac
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232   (eval "$ac_try") 2>&5
20233   ac_status=$?
20234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235   (exit $ac_status); }; } &&
20236          { ac_try='test -s conftest$ac_exeext'
20237   { (case "(($ac_try" in
20238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20239   *) ac_try_echo=$ac_try;;
20240 esac
20241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20242   (eval "$ac_try") 2>&5
20243   ac_status=$?
20244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245   (exit $ac_status); }; }; then
20246   ac_cv_lib_dnet_dnet_ntoa=yes
20247 else
20248   echo "$as_me: failed program was:" >&5
20249 sed 's/^/| /' conftest.$ac_ext >&5
20250
20251         ac_cv_lib_dnet_dnet_ntoa=no
20252 fi
20253
20254 rm -f core conftest.err conftest.$ac_objext \
20255       conftest$ac_exeext conftest.$ac_ext
20256 LIBS=$ac_check_lib_save_LIBS
20257 fi
20258 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20259 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20260 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20261   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20262 fi
20263
20264     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20265       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20266 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20267 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20268   echo $ECHO_N "(cached) $ECHO_C" >&6
20269 else
20270   ac_check_lib_save_LIBS=$LIBS
20271 LIBS="-ldnet_stub  $LIBS"
20272 cat >conftest.$ac_ext <<_ACEOF
20273 /* confdefs.h.  */
20274 _ACEOF
20275 cat confdefs.h >>conftest.$ac_ext
20276 cat >>conftest.$ac_ext <<_ACEOF
20277 /* end confdefs.h.  */
20278
20279 /* Override any GCC internal prototype to avoid an error.
20280    Use char because int might match the return type of a GCC
20281    builtin and then its argument prototype would still apply.  */
20282 #ifdef __cplusplus
20283 extern "C"
20284 #endif
20285 char dnet_ntoa ();
20286 int
20287 main ()
20288 {
20289 return dnet_ntoa ();
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (ac_try="$ac_link"
20296 case "(($ac_try" in
20297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298   *) ac_try_echo=$ac_try;;
20299 esac
20300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20301   (eval "$ac_link") 2>conftest.er1
20302   ac_status=$?
20303   grep -v '^ *+' conftest.er1 >conftest.err
20304   rm -f conftest.er1
20305   cat conftest.err >&5
20306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20307   (exit $ac_status); } &&
20308          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20309   { (case "(($ac_try" in
20310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20311   *) ac_try_echo=$ac_try;;
20312 esac
20313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20314   (eval "$ac_try") 2>&5
20315   ac_status=$?
20316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317   (exit $ac_status); }; } &&
20318          { ac_try='test -s conftest$ac_exeext'
20319   { (case "(($ac_try" in
20320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321   *) ac_try_echo=$ac_try;;
20322 esac
20323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20324   (eval "$ac_try") 2>&5
20325   ac_status=$?
20326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20327   (exit $ac_status); }; }; then
20328   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20329 else
20330   echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20332
20333         ac_cv_lib_dnet_stub_dnet_ntoa=no
20334 fi
20335
20336 rm -f core conftest.err conftest.$ac_objext \
20337       conftest$ac_exeext conftest.$ac_ext
20338 LIBS=$ac_check_lib_save_LIBS
20339 fi
20340 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20341 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20342 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20343   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20344 fi
20345
20346     fi
20347 fi
20348
20349 rm -f core conftest.err conftest.$ac_objext \
20350       conftest$ac_exeext conftest.$ac_ext
20351     LIBS="$ac_xsave_LIBS"
20352
20353     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20354     # to get the SysV transport functions.
20355     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20356     # needs -lnsl.
20357     # The nsl library prevents programs from opening the X display
20358     # on Irix 5.2, according to T.E. Dickey.
20359     # The functions gethostbyname, getservbyname, and inet_addr are
20360     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20361     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20362 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20363 if test "${ac_cv_func_gethostbyname+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   cat >conftest.$ac_ext <<_ACEOF
20367 /* confdefs.h.  */
20368 _ACEOF
20369 cat confdefs.h >>conftest.$ac_ext
20370 cat >>conftest.$ac_ext <<_ACEOF
20371 /* end confdefs.h.  */
20372 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20374 #define gethostbyname innocuous_gethostbyname
20375
20376 /* System header to define __stub macros and hopefully few prototypes,
20377     which can conflict with char gethostbyname (); below.
20378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20379     <limits.h> exists even on freestanding compilers.  */
20380
20381 #ifdef __STDC__
20382 # include <limits.h>
20383 #else
20384 # include <assert.h>
20385 #endif
20386
20387 #undef gethostbyname
20388
20389 /* Override any GCC internal prototype to avoid an error.
20390    Use char because int might match the return type of a GCC
20391    builtin and then its argument prototype would still apply.  */
20392 #ifdef __cplusplus
20393 extern "C"
20394 #endif
20395 char gethostbyname ();
20396 /* The GNU C library defines this for functions which it implements
20397     to always fail with ENOSYS.  Some functions are actually named
20398     something starting with __ and the normal name is an alias.  */
20399 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20400 choke me
20401 #endif
20402
20403 int
20404 main ()
20405 {
20406 return gethostbyname ();
20407   ;
20408   return 0;
20409 }
20410 _ACEOF
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (ac_try="$ac_link"
20413 case "(($ac_try" in
20414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415   *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418   (eval "$ac_link") 2>conftest.er1
20419   ac_status=$?
20420   grep -v '^ *+' conftest.er1 >conftest.err
20421   rm -f conftest.er1
20422   cat conftest.err >&5
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); } &&
20425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20426   { (case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_try") 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; } &&
20435          { ac_try='test -s conftest$ac_exeext'
20436   { (case "(($ac_try" in
20437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438   *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441   (eval "$ac_try") 2>&5
20442   ac_status=$?
20443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444   (exit $ac_status); }; }; then
20445   ac_cv_func_gethostbyname=yes
20446 else
20447   echo "$as_me: failed program was:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20449
20450         ac_cv_func_gethostbyname=no
20451 fi
20452
20453 rm -f core conftest.err conftest.$ac_objext \
20454       conftest$ac_exeext conftest.$ac_ext
20455 fi
20456 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20457 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20458
20459     if test $ac_cv_func_gethostbyname = no; then
20460       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20461 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20462 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20463   echo $ECHO_N "(cached) $ECHO_C" >&6
20464 else
20465   ac_check_lib_save_LIBS=$LIBS
20466 LIBS="-lnsl  $LIBS"
20467 cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473
20474 /* Override any GCC internal prototype to avoid an error.
20475    Use char because int might match the return type of a GCC
20476    builtin and then its argument prototype would still apply.  */
20477 #ifdef __cplusplus
20478 extern "C"
20479 #endif
20480 char gethostbyname ();
20481 int
20482 main ()
20483 {
20484 return gethostbyname ();
20485   ;
20486   return 0;
20487 }
20488 _ACEOF
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (ac_try="$ac_link"
20491 case "(($ac_try" in
20492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20493   *) ac_try_echo=$ac_try;;
20494 esac
20495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20496   (eval "$ac_link") 2>conftest.er1
20497   ac_status=$?
20498   grep -v '^ *+' conftest.er1 >conftest.err
20499   rm -f conftest.er1
20500   cat conftest.err >&5
20501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502   (exit $ac_status); } &&
20503          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20504   { (case "(($ac_try" in
20505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20506   *) ac_try_echo=$ac_try;;
20507 esac
20508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20509   (eval "$ac_try") 2>&5
20510   ac_status=$?
20511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512   (exit $ac_status); }; } &&
20513          { ac_try='test -s conftest$ac_exeext'
20514   { (case "(($ac_try" in
20515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516   *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519   (eval "$ac_try") 2>&5
20520   ac_status=$?
20521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522   (exit $ac_status); }; }; then
20523   ac_cv_lib_nsl_gethostbyname=yes
20524 else
20525   echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528         ac_cv_lib_nsl_gethostbyname=no
20529 fi
20530
20531 rm -f core conftest.err conftest.$ac_objext \
20532       conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20534 fi
20535 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20536 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20537 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20538   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20539 fi
20540
20541       if test $ac_cv_lib_nsl_gethostbyname = no; then
20542         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20543 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20544 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   ac_check_lib_save_LIBS=$LIBS
20548 LIBS="-lbsd  $LIBS"
20549 cat >conftest.$ac_ext <<_ACEOF
20550 /* confdefs.h.  */
20551 _ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h.  */
20555
20556 /* Override any GCC internal prototype to avoid an error.
20557    Use char because int might match the return type of a GCC
20558    builtin and then its argument prototype would still apply.  */
20559 #ifdef __cplusplus
20560 extern "C"
20561 #endif
20562 char gethostbyname ();
20563 int
20564 main ()
20565 {
20566 return gethostbyname ();
20567   ;
20568   return 0;
20569 }
20570 _ACEOF
20571 rm -f conftest.$ac_objext conftest$ac_exeext
20572 if { (ac_try="$ac_link"
20573 case "(($ac_try" in
20574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20575   *) ac_try_echo=$ac_try;;
20576 esac
20577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20578   (eval "$ac_link") 2>conftest.er1
20579   ac_status=$?
20580   grep -v '^ *+' conftest.er1 >conftest.err
20581   rm -f conftest.er1
20582   cat conftest.err >&5
20583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584   (exit $ac_status); } &&
20585          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20586   { (case "(($ac_try" in
20587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588   *) ac_try_echo=$ac_try;;
20589 esac
20590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20591   (eval "$ac_try") 2>&5
20592   ac_status=$?
20593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594   (exit $ac_status); }; } &&
20595          { ac_try='test -s conftest$ac_exeext'
20596   { (case "(($ac_try" in
20597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20598   *) ac_try_echo=$ac_try;;
20599 esac
20600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20601   (eval "$ac_try") 2>&5
20602   ac_status=$?
20603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604   (exit $ac_status); }; }; then
20605   ac_cv_lib_bsd_gethostbyname=yes
20606 else
20607   echo "$as_me: failed program was:" >&5
20608 sed 's/^/| /' conftest.$ac_ext >&5
20609
20610         ac_cv_lib_bsd_gethostbyname=no
20611 fi
20612
20613 rm -f core conftest.err conftest.$ac_objext \
20614       conftest$ac_exeext conftest.$ac_ext
20615 LIBS=$ac_check_lib_save_LIBS
20616 fi
20617 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20618 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20619 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20620   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20621 fi
20622
20623       fi
20624     fi
20625
20626     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20627     # socket/setsockopt and other routines are undefined under SCO ODT
20628     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20629     # on later versions), says Simon Leinen: it contains gethostby*
20630     # variants that don't use the name server (or something).  -lsocket
20631     # must be given before -lnsl if both are needed.  We assume that
20632     # if connect needs -lnsl, so does gethostbyname.
20633     { echo "$as_me:$LINENO: checking for connect" >&5
20634 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20635 if test "${ac_cv_func_connect+set}" = set; then
20636   echo $ECHO_N "(cached) $ECHO_C" >&6
20637 else
20638   cat >conftest.$ac_ext <<_ACEOF
20639 /* confdefs.h.  */
20640 _ACEOF
20641 cat confdefs.h >>conftest.$ac_ext
20642 cat >>conftest.$ac_ext <<_ACEOF
20643 /* end confdefs.h.  */
20644 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20645    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20646 #define connect innocuous_connect
20647
20648 /* System header to define __stub macros and hopefully few prototypes,
20649     which can conflict with char connect (); below.
20650     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20651     <limits.h> exists even on freestanding compilers.  */
20652
20653 #ifdef __STDC__
20654 # include <limits.h>
20655 #else
20656 # include <assert.h>
20657 #endif
20658
20659 #undef connect
20660
20661 /* Override any GCC internal prototype to avoid an error.
20662    Use char because int might match the return type of a GCC
20663    builtin and then its argument prototype would still apply.  */
20664 #ifdef __cplusplus
20665 extern "C"
20666 #endif
20667 char connect ();
20668 /* The GNU C library defines this for functions which it implements
20669     to always fail with ENOSYS.  Some functions are actually named
20670     something starting with __ and the normal name is an alias.  */
20671 #if defined __stub_connect || defined __stub___connect
20672 choke me
20673 #endif
20674
20675 int
20676 main ()
20677 {
20678 return connect ();
20679   ;
20680   return 0;
20681 }
20682 _ACEOF
20683 rm -f conftest.$ac_objext conftest$ac_exeext
20684 if { (ac_try="$ac_link"
20685 case "(($ac_try" in
20686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687   *) ac_try_echo=$ac_try;;
20688 esac
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690   (eval "$ac_link") 2>conftest.er1
20691   ac_status=$?
20692   grep -v '^ *+' conftest.er1 >conftest.err
20693   rm -f conftest.er1
20694   cat conftest.err >&5
20695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696   (exit $ac_status); } &&
20697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20698   { (case "(($ac_try" in
20699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700   *) ac_try_echo=$ac_try;;
20701 esac
20702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20703   (eval "$ac_try") 2>&5
20704   ac_status=$?
20705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706   (exit $ac_status); }; } &&
20707          { ac_try='test -s conftest$ac_exeext'
20708   { (case "(($ac_try" in
20709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710   *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713   (eval "$ac_try") 2>&5
20714   ac_status=$?
20715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716   (exit $ac_status); }; }; then
20717   ac_cv_func_connect=yes
20718 else
20719   echo "$as_me: failed program was:" >&5
20720 sed 's/^/| /' conftest.$ac_ext >&5
20721
20722         ac_cv_func_connect=no
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext \
20726       conftest$ac_exeext conftest.$ac_ext
20727 fi
20728 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20729 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20730
20731     if test $ac_cv_func_connect = no; then
20732       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20733 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20734 if test "${ac_cv_lib_socket_connect+set}" = set; then
20735   echo $ECHO_N "(cached) $ECHO_C" >&6
20736 else
20737   ac_check_lib_save_LIBS=$LIBS
20738 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20739 cat >conftest.$ac_ext <<_ACEOF
20740 /* confdefs.h.  */
20741 _ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h.  */
20745
20746 /* Override any GCC internal prototype to avoid an error.
20747    Use char because int might match the return type of a GCC
20748    builtin and then its argument prototype would still apply.  */
20749 #ifdef __cplusplus
20750 extern "C"
20751 #endif
20752 char connect ();
20753 int
20754 main ()
20755 {
20756 return connect ();
20757   ;
20758   return 0;
20759 }
20760 _ACEOF
20761 rm -f conftest.$ac_objext conftest$ac_exeext
20762 if { (ac_try="$ac_link"
20763 case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768   (eval "$ac_link") 2>conftest.er1
20769   ac_status=$?
20770   grep -v '^ *+' conftest.er1 >conftest.err
20771   rm -f conftest.er1
20772   cat conftest.err >&5
20773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774   (exit $ac_status); } &&
20775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20776   { (case "(($ac_try" in
20777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778   *) ac_try_echo=$ac_try;;
20779 esac
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781   (eval "$ac_try") 2>&5
20782   ac_status=$?
20783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20784   (exit $ac_status); }; } &&
20785          { ac_try='test -s conftest$ac_exeext'
20786   { (case "(($ac_try" in
20787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20788   *) ac_try_echo=$ac_try;;
20789 esac
20790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20791   (eval "$ac_try") 2>&5
20792   ac_status=$?
20793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794   (exit $ac_status); }; }; then
20795   ac_cv_lib_socket_connect=yes
20796 else
20797   echo "$as_me: failed program was:" >&5
20798 sed 's/^/| /' conftest.$ac_ext >&5
20799
20800         ac_cv_lib_socket_connect=no
20801 fi
20802
20803 rm -f core conftest.err conftest.$ac_objext \
20804       conftest$ac_exeext conftest.$ac_ext
20805 LIBS=$ac_check_lib_save_LIBS
20806 fi
20807 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20808 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20809 if test $ac_cv_lib_socket_connect = yes; then
20810   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20811 fi
20812
20813     fi
20814
20815     # Guillermo Gomez says -lposix is necessary on A/UX.
20816     { echo "$as_me:$LINENO: checking for remove" >&5
20817 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20818 if test "${ac_cv_func_remove+set}" = set; then
20819   echo $ECHO_N "(cached) $ECHO_C" >&6
20820 else
20821   cat >conftest.$ac_ext <<_ACEOF
20822 /* confdefs.h.  */
20823 _ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h.  */
20827 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20829 #define remove innocuous_remove
20830
20831 /* System header to define __stub macros and hopefully few prototypes,
20832     which can conflict with char remove (); below.
20833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20834     <limits.h> exists even on freestanding compilers.  */
20835
20836 #ifdef __STDC__
20837 # include <limits.h>
20838 #else
20839 # include <assert.h>
20840 #endif
20841
20842 #undef remove
20843
20844 /* Override any GCC internal prototype to avoid an error.
20845    Use char because int might match the return type of a GCC
20846    builtin and then its argument prototype would still apply.  */
20847 #ifdef __cplusplus
20848 extern "C"
20849 #endif
20850 char remove ();
20851 /* The GNU C library defines this for functions which it implements
20852     to always fail with ENOSYS.  Some functions are actually named
20853     something starting with __ and the normal name is an alias.  */
20854 #if defined __stub_remove || defined __stub___remove
20855 choke me
20856 #endif
20857
20858 int
20859 main ()
20860 {
20861 return remove ();
20862   ;
20863   return 0;
20864 }
20865 _ACEOF
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870   *) ac_try_echo=$ac_try;;
20871 esac
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873   (eval "$ac_link") 2>conftest.er1
20874   ac_status=$?
20875   grep -v '^ *+' conftest.er1 >conftest.err
20876   rm -f conftest.er1
20877   cat conftest.err >&5
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } &&
20880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20881   { (case "(($ac_try" in
20882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20883   *) ac_try_echo=$ac_try;;
20884 esac
20885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20886   (eval "$ac_try") 2>&5
20887   ac_status=$?
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); }; } &&
20890          { ac_try='test -s conftest$ac_exeext'
20891   { (case "(($ac_try" in
20892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893   *) ac_try_echo=$ac_try;;
20894 esac
20895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20896   (eval "$ac_try") 2>&5
20897   ac_status=$?
20898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899   (exit $ac_status); }; }; then
20900   ac_cv_func_remove=yes
20901 else
20902   echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905         ac_cv_func_remove=no
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext \
20909       conftest$ac_exeext conftest.$ac_ext
20910 fi
20911 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20912 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20913
20914     if test $ac_cv_func_remove = no; then
20915       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20916 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20917 if test "${ac_cv_lib_posix_remove+set}" = set; then
20918   echo $ECHO_N "(cached) $ECHO_C" >&6
20919 else
20920   ac_check_lib_save_LIBS=$LIBS
20921 LIBS="-lposix  $LIBS"
20922 cat >conftest.$ac_ext <<_ACEOF
20923 /* confdefs.h.  */
20924 _ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h.  */
20928
20929 /* Override any GCC internal prototype to avoid an error.
20930    Use char because int might match the return type of a GCC
20931    builtin and then its argument prototype would still apply.  */
20932 #ifdef __cplusplus
20933 extern "C"
20934 #endif
20935 char remove ();
20936 int
20937 main ()
20938 {
20939 return remove ();
20940   ;
20941   return 0;
20942 }
20943 _ACEOF
20944 rm -f conftest.$ac_objext conftest$ac_exeext
20945 if { (ac_try="$ac_link"
20946 case "(($ac_try" in
20947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20948   *) ac_try_echo=$ac_try;;
20949 esac
20950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20951   (eval "$ac_link") 2>conftest.er1
20952   ac_status=$?
20953   grep -v '^ *+' conftest.er1 >conftest.err
20954   rm -f conftest.er1
20955   cat conftest.err >&5
20956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957   (exit $ac_status); } &&
20958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20959   { (case "(($ac_try" in
20960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961   *) ac_try_echo=$ac_try;;
20962 esac
20963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20964   (eval "$ac_try") 2>&5
20965   ac_status=$?
20966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); }; } &&
20968          { ac_try='test -s conftest$ac_exeext'
20969   { (case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_try") 2>&5
20975   ac_status=$?
20976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); }; }; then
20978   ac_cv_lib_posix_remove=yes
20979 else
20980   echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983         ac_cv_lib_posix_remove=no
20984 fi
20985
20986 rm -f core conftest.err conftest.$ac_objext \
20987       conftest$ac_exeext conftest.$ac_ext
20988 LIBS=$ac_check_lib_save_LIBS
20989 fi
20990 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20991 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
20992 if test $ac_cv_lib_posix_remove = yes; then
20993   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20994 fi
20995
20996     fi
20997
20998     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20999     { echo "$as_me:$LINENO: checking for shmat" >&5
21000 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21001 if test "${ac_cv_func_shmat+set}" = set; then
21002   echo $ECHO_N "(cached) $ECHO_C" >&6
21003 else
21004   cat >conftest.$ac_ext <<_ACEOF
21005 /* confdefs.h.  */
21006 _ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h.  */
21010 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21012 #define shmat innocuous_shmat
21013
21014 /* System header to define __stub macros and hopefully few prototypes,
21015     which can conflict with char shmat (); below.
21016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21017     <limits.h> exists even on freestanding compilers.  */
21018
21019 #ifdef __STDC__
21020 # include <limits.h>
21021 #else
21022 # include <assert.h>
21023 #endif
21024
21025 #undef shmat
21026
21027 /* Override any GCC internal prototype to avoid an error.
21028    Use char because int might match the return type of a GCC
21029    builtin and then its argument prototype would still apply.  */
21030 #ifdef __cplusplus
21031 extern "C"
21032 #endif
21033 char shmat ();
21034 /* The GNU C library defines this for functions which it implements
21035     to always fail with ENOSYS.  Some functions are actually named
21036     something starting with __ and the normal name is an alias.  */
21037 #if defined __stub_shmat || defined __stub___shmat
21038 choke me
21039 #endif
21040
21041 int
21042 main ()
21043 {
21044 return shmat ();
21045   ;
21046   return 0;
21047 }
21048 _ACEOF
21049 rm -f conftest.$ac_objext conftest$ac_exeext
21050 if { (ac_try="$ac_link"
21051 case "(($ac_try" in
21052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053   *) ac_try_echo=$ac_try;;
21054 esac
21055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21056   (eval "$ac_link") 2>conftest.er1
21057   ac_status=$?
21058   grep -v '^ *+' conftest.er1 >conftest.err
21059   rm -f conftest.er1
21060   cat conftest.err >&5
21061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062   (exit $ac_status); } &&
21063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21064   { (case "(($ac_try" in
21065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066   *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069   (eval "$ac_try") 2>&5
21070   ac_status=$?
21071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072   (exit $ac_status); }; } &&
21073          { ac_try='test -s conftest$ac_exeext'
21074   { (case "(($ac_try" in
21075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076   *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079   (eval "$ac_try") 2>&5
21080   ac_status=$?
21081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082   (exit $ac_status); }; }; then
21083   ac_cv_func_shmat=yes
21084 else
21085   echo "$as_me: failed program was:" >&5
21086 sed 's/^/| /' conftest.$ac_ext >&5
21087
21088         ac_cv_func_shmat=no
21089 fi
21090
21091 rm -f core conftest.err conftest.$ac_objext \
21092       conftest$ac_exeext conftest.$ac_ext
21093 fi
21094 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21095 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21096
21097     if test $ac_cv_func_shmat = no; then
21098       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21099 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21100 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21101   echo $ECHO_N "(cached) $ECHO_C" >&6
21102 else
21103   ac_check_lib_save_LIBS=$LIBS
21104 LIBS="-lipc  $LIBS"
21105 cat >conftest.$ac_ext <<_ACEOF
21106 /* confdefs.h.  */
21107 _ACEOF
21108 cat confdefs.h >>conftest.$ac_ext
21109 cat >>conftest.$ac_ext <<_ACEOF
21110 /* end confdefs.h.  */
21111
21112 /* Override any GCC internal prototype to avoid an error.
21113    Use char because int might match the return type of a GCC
21114    builtin and then its argument prototype would still apply.  */
21115 #ifdef __cplusplus
21116 extern "C"
21117 #endif
21118 char shmat ();
21119 int
21120 main ()
21121 {
21122 return shmat ();
21123   ;
21124   return 0;
21125 }
21126 _ACEOF
21127 rm -f conftest.$ac_objext conftest$ac_exeext
21128 if { (ac_try="$ac_link"
21129 case "(($ac_try" in
21130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21131   *) ac_try_echo=$ac_try;;
21132 esac
21133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21134   (eval "$ac_link") 2>conftest.er1
21135   ac_status=$?
21136   grep -v '^ *+' conftest.er1 >conftest.err
21137   rm -f conftest.er1
21138   cat conftest.err >&5
21139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140   (exit $ac_status); } &&
21141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21142   { (case "(($ac_try" in
21143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144   *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147   (eval "$ac_try") 2>&5
21148   ac_status=$?
21149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150   (exit $ac_status); }; } &&
21151          { ac_try='test -s conftest$ac_exeext'
21152   { (case "(($ac_try" in
21153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21154   *) ac_try_echo=$ac_try;;
21155 esac
21156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21157   (eval "$ac_try") 2>&5
21158   ac_status=$?
21159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21160   (exit $ac_status); }; }; then
21161   ac_cv_lib_ipc_shmat=yes
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166         ac_cv_lib_ipc_shmat=no
21167 fi
21168
21169 rm -f core conftest.err conftest.$ac_objext \
21170       conftest$ac_exeext conftest.$ac_ext
21171 LIBS=$ac_check_lib_save_LIBS
21172 fi
21173 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21174 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21175 if test $ac_cv_lib_ipc_shmat = yes; then
21176   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21177 fi
21178
21179     fi
21180   fi
21181
21182   # Check for libraries that X11R6 Xt/Xaw programs need.
21183   ac_save_LDFLAGS=$LDFLAGS
21184   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21185   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21186   # check for ICE first), but we must link in the order -lSM -lICE or
21187   # we get undefined symbols.  So assume we have SM if we have ICE.
21188   # These have to be linked with before -lX11, unlike the other
21189   # libraries we check for below, so use a different variable.
21190   # John Interrante, Karl Berry
21191   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21192 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21193 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21194   echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196   ac_check_lib_save_LIBS=$LIBS
21197 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21198 cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204
21205 /* Override any GCC internal prototype to avoid an error.
21206    Use char because int might match the return type of a GCC
21207    builtin and then its argument prototype would still apply.  */
21208 #ifdef __cplusplus
21209 extern "C"
21210 #endif
21211 char IceConnectionNumber ();
21212 int
21213 main ()
21214 {
21215 return IceConnectionNumber ();
21216   ;
21217   return 0;
21218 }
21219 _ACEOF
21220 rm -f conftest.$ac_objext conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224   *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227   (eval "$ac_link") 2>conftest.er1
21228   ac_status=$?
21229   grep -v '^ *+' conftest.er1 >conftest.err
21230   rm -f conftest.er1
21231   cat conftest.err >&5
21232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233   (exit $ac_status); } &&
21234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21235   { (case "(($ac_try" in
21236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237   *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240   (eval "$ac_try") 2>&5
21241   ac_status=$?
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); }; } &&
21244          { ac_try='test -s conftest$ac_exeext'
21245   { (case "(($ac_try" in
21246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21247   *) ac_try_echo=$ac_try;;
21248 esac
21249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21250   (eval "$ac_try") 2>&5
21251   ac_status=$?
21252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253   (exit $ac_status); }; }; then
21254   ac_cv_lib_ICE_IceConnectionNumber=yes
21255 else
21256   echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21258
21259         ac_cv_lib_ICE_IceConnectionNumber=no
21260 fi
21261
21262 rm -f core conftest.err conftest.$ac_objext \
21263       conftest$ac_exeext conftest.$ac_ext
21264 LIBS=$ac_check_lib_save_LIBS
21265 fi
21266 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21267 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21268 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21269   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21270 fi
21271
21272   LDFLAGS=$ac_save_LDFLAGS
21273
21274 fi
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304 for ac_header in \
21305         assert.h \
21306         fcntl.h \
21307         grp.h \
21308         pwd.h \
21309         libc.h \
21310         limits.h \
21311         stdarg.h \
21312         stdlib.h \
21313         stdint.h \
21314         string.h \
21315         termios.h \
21316         termcap.h \
21317         term.h \
21318         unistd.h \
21319         sys/bitypes.h \
21320         sys/byteorder.h \
21321         sys/ioctl.h \
21322         sys/select.h \
21323         sys/sockio.h \
21324         sys/time.h \
21325         sys/socket.h \
21326         arpa/nameser.h \
21327         resolv.h \
21328         mtio.h \
21329         sys/mtio.h \
21330         sys/tape.h \
21331         regex.h \
21332
21333 do
21334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21336   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21339   echo $ECHO_N "(cached) $ECHO_C" >&6
21340 fi
21341 ac_res=`eval echo '${'$as_ac_Header'}'`
21342                { echo "$as_me:$LINENO: result: $ac_res" >&5
21343 echo "${ECHO_T}$ac_res" >&6; }
21344 else
21345   # Is the header compilable?
21346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21348 cat >conftest.$ac_ext <<_ACEOF
21349 /* confdefs.h.  */
21350 _ACEOF
21351 cat confdefs.h >>conftest.$ac_ext
21352 cat >>conftest.$ac_ext <<_ACEOF
21353 /* end confdefs.h.  */
21354 $ac_includes_default
21355 #include <$ac_header>
21356 _ACEOF
21357 rm -f conftest.$ac_objext
21358 if { (ac_try="$ac_compile"
21359 case "(($ac_try" in
21360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21361   *) ac_try_echo=$ac_try;;
21362 esac
21363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21364   (eval "$ac_compile") 2>conftest.er1
21365   ac_status=$?
21366   grep -v '^ *+' conftest.er1 >conftest.err
21367   rm -f conftest.er1
21368   cat conftest.err >&5
21369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370   (exit $ac_status); } &&
21371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21372   { (case "(($ac_try" in
21373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21374   *) ac_try_echo=$ac_try;;
21375 esac
21376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21377   (eval "$ac_try") 2>&5
21378   ac_status=$?
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); }; } &&
21381          { ac_try='test -s conftest.$ac_objext'
21382   { (case "(($ac_try" in
21383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21384   *) ac_try_echo=$ac_try;;
21385 esac
21386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21387   (eval "$ac_try") 2>&5
21388   ac_status=$?
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); }; }; then
21391   ac_header_compiler=yes
21392 else
21393   echo "$as_me: failed program was:" >&5
21394 sed 's/^/| /' conftest.$ac_ext >&5
21395
21396         ac_header_compiler=no
21397 fi
21398
21399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21401 echo "${ECHO_T}$ac_header_compiler" >&6; }
21402
21403 # Is the header present?
21404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21406 cat >conftest.$ac_ext <<_ACEOF
21407 /* confdefs.h.  */
21408 _ACEOF
21409 cat confdefs.h >>conftest.$ac_ext
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h.  */
21412 #include <$ac_header>
21413 _ACEOF
21414 if { (ac_try="$ac_cpp conftest.$ac_ext"
21415 case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21421   ac_status=$?
21422   grep -v '^ *+' conftest.er1 >conftest.err
21423   rm -f conftest.er1
21424   cat conftest.err >&5
21425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21426   (exit $ac_status); } >/dev/null; then
21427   if test -s conftest.err; then
21428     ac_cpp_err=$ac_c_preproc_warn_flag
21429     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21430   else
21431     ac_cpp_err=
21432   fi
21433 else
21434   ac_cpp_err=yes
21435 fi
21436 if test -z "$ac_cpp_err"; then
21437   ac_header_preproc=yes
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442   ac_header_preproc=no
21443 fi
21444
21445 rm -f conftest.err conftest.$ac_ext
21446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21447 echo "${ECHO_T}$ac_header_preproc" >&6; }
21448
21449 # So?  What about this header?
21450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21451   yes:no: )
21452     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21454     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21456     ac_header_preproc=yes
21457     ;;
21458   no:yes:* )
21459     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21461     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21462 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21463     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21465     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21466 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21467     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21469     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21471
21472     ;;
21473 esac
21474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21477   echo $ECHO_N "(cached) $ECHO_C" >&6
21478 else
21479   eval "$as_ac_Header=\$ac_header_preproc"
21480 fi
21481 ac_res=`eval echo '${'$as_ac_Header'}'`
21482                { echo "$as_me:$LINENO: result: $ac_res" >&5
21483 echo "${ECHO_T}$ac_res" >&6; }
21484
21485 fi
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487   cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 fi
21492
21493 done
21494
21495 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21496 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21497 if test "${ac_cv_header_stdc+set}" = set; then
21498   echo $ECHO_N "(cached) $ECHO_C" >&6
21499 else
21500   cat >conftest.$ac_ext <<_ACEOF
21501 /* confdefs.h.  */
21502 _ACEOF
21503 cat confdefs.h >>conftest.$ac_ext
21504 cat >>conftest.$ac_ext <<_ACEOF
21505 /* end confdefs.h.  */
21506 #include <stdlib.h>
21507 #include <stdarg.h>
21508 #include <string.h>
21509 #include <float.h>
21510
21511 int
21512 main ()
21513 {
21514
21515   ;
21516   return 0;
21517 }
21518 _ACEOF
21519 rm -f conftest.$ac_objext
21520 if { (ac_try="$ac_compile"
21521 case "(($ac_try" in
21522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21523   *) ac_try_echo=$ac_try;;
21524 esac
21525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21526   (eval "$ac_compile") 2>conftest.er1
21527   ac_status=$?
21528   grep -v '^ *+' conftest.er1 >conftest.err
21529   rm -f conftest.er1
21530   cat conftest.err >&5
21531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21532   (exit $ac_status); } &&
21533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21534   { (case "(($ac_try" in
21535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536   *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539   (eval "$ac_try") 2>&5
21540   ac_status=$?
21541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542   (exit $ac_status); }; } &&
21543          { ac_try='test -s conftest.$ac_objext'
21544   { (case "(($ac_try" in
21545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21546   *) ac_try_echo=$ac_try;;
21547 esac
21548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21549   (eval "$ac_try") 2>&5
21550   ac_status=$?
21551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552   (exit $ac_status); }; }; then
21553   ac_cv_header_stdc=yes
21554 else
21555   echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21557
21558         ac_cv_header_stdc=no
21559 fi
21560
21561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21562
21563 if test $ac_cv_header_stdc = yes; then
21564   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21565   cat >conftest.$ac_ext <<_ACEOF
21566 /* confdefs.h.  */
21567 _ACEOF
21568 cat confdefs.h >>conftest.$ac_ext
21569 cat >>conftest.$ac_ext <<_ACEOF
21570 /* end confdefs.h.  */
21571 #include <string.h>
21572
21573 _ACEOF
21574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21575   $EGREP "memchr" >/dev/null 2>&1; then
21576   :
21577 else
21578   ac_cv_header_stdc=no
21579 fi
21580 rm -f conftest*
21581
21582 fi
21583
21584 if test $ac_cv_header_stdc = yes; then
21585   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592 #include <stdlib.h>
21593
21594 _ACEOF
21595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21596   $EGREP "free" >/dev/null 2>&1; then
21597   :
21598 else
21599   ac_cv_header_stdc=no
21600 fi
21601 rm -f conftest*
21602
21603 fi
21604
21605 if test $ac_cv_header_stdc = yes; then
21606   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21607   if test "$cross_compiling" = yes; then
21608   :
21609 else
21610   cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616 #include <ctype.h>
21617 #include <stdlib.h>
21618 #if ((' ' & 0x0FF) == 0x020)
21619 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21620 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21621 #else
21622 # define ISLOWER(c) \
21623                    (('a' <= (c) && (c) <= 'i') \
21624                      || ('j' <= (c) && (c) <= 'r') \
21625                      || ('s' <= (c) && (c) <= 'z'))
21626 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21627 #endif
21628
21629 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21630 int
21631 main ()
21632 {
21633   int i;
21634   for (i = 0; i < 256; i++)
21635     if (XOR (islower (i), ISLOWER (i))
21636         || toupper (i) != TOUPPER (i))
21637       return 2;
21638   return 0;
21639 }
21640 _ACEOF
21641 rm -f conftest$ac_exeext
21642 if { (ac_try="$ac_link"
21643 case "(($ac_try" in
21644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21645   *) ac_try_echo=$ac_try;;
21646 esac
21647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21648   (eval "$ac_link") 2>&5
21649   ac_status=$?
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21652   { (case "(($ac_try" in
21653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654   *) ac_try_echo=$ac_try;;
21655 esac
21656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21657   (eval "$ac_try") 2>&5
21658   ac_status=$?
21659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660   (exit $ac_status); }; }; then
21661   :
21662 else
21663   echo "$as_me: program exited with status $ac_status" >&5
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21666
21667 ( exit $ac_status )
21668 ac_cv_header_stdc=no
21669 fi
21670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21671 fi
21672
21673
21674 fi
21675 fi
21676 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21677 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21678 if test $ac_cv_header_stdc = yes; then
21679
21680 cat >>confdefs.h <<\_ACEOF
21681 #define STDC_HEADERS 1
21682 _ACEOF
21683
21684 fi
21685
21686 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21687 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21688 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21689   echo $ECHO_N "(cached) $ECHO_C" >&6
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697 #include <sys/types.h>
21698 int
21699 main ()
21700 {
21701 return makedev(0, 0);
21702   ;
21703   return 0;
21704 }
21705 _ACEOF
21706 rm -f conftest.$ac_objext conftest$ac_exeext
21707 if { (ac_try="$ac_link"
21708 case "(($ac_try" in
21709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710   *) ac_try_echo=$ac_try;;
21711 esac
21712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21713   (eval "$ac_link") 2>conftest.er1
21714   ac_status=$?
21715   grep -v '^ *+' conftest.er1 >conftest.err
21716   rm -f conftest.er1
21717   cat conftest.err >&5
21718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719   (exit $ac_status); } &&
21720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21721   { (case "(($ac_try" in
21722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21723   *) ac_try_echo=$ac_try;;
21724 esac
21725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21726   (eval "$ac_try") 2>&5
21727   ac_status=$?
21728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729   (exit $ac_status); }; } &&
21730          { ac_try='test -s conftest$ac_exeext'
21731   { (case "(($ac_try" in
21732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733   *) ac_try_echo=$ac_try;;
21734 esac
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736   (eval "$ac_try") 2>&5
21737   ac_status=$?
21738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739   (exit $ac_status); }; }; then
21740   ac_cv_header_sys_types_h_makedev=yes
21741 else
21742   echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745         ac_cv_header_sys_types_h_makedev=no
21746 fi
21747
21748 rm -f core conftest.err conftest.$ac_objext \
21749       conftest$ac_exeext conftest.$ac_ext
21750
21751 fi
21752 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21753 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21754
21755 if test $ac_cv_header_sys_types_h_makedev = no; then
21756 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21757   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21758 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21759 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21760   echo $ECHO_N "(cached) $ECHO_C" >&6
21761 fi
21762 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21763 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21764 else
21765   # Is the header compilable?
21766 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21767 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21768 cat >conftest.$ac_ext <<_ACEOF
21769 /* confdefs.h.  */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h.  */
21774 $ac_includes_default
21775 #include <sys/mkdev.h>
21776 _ACEOF
21777 rm -f conftest.$ac_objext
21778 if { (ac_try="$ac_compile"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_compile") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } &&
21791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21792   { (case "(($ac_try" in
21793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21794   *) ac_try_echo=$ac_try;;
21795 esac
21796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21797   (eval "$ac_try") 2>&5
21798   ac_status=$?
21799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800   (exit $ac_status); }; } &&
21801          { ac_try='test -s conftest.$ac_objext'
21802   { (case "(($ac_try" in
21803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21804   *) ac_try_echo=$ac_try;;
21805 esac
21806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21807   (eval "$ac_try") 2>&5
21808   ac_status=$?
21809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810   (exit $ac_status); }; }; then
21811   ac_header_compiler=yes
21812 else
21813   echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816         ac_header_compiler=no
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21821 echo "${ECHO_T}$ac_header_compiler" >&6; }
21822
21823 # Is the header present?
21824 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21825 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21826 cat >conftest.$ac_ext <<_ACEOF
21827 /* confdefs.h.  */
21828 _ACEOF
21829 cat confdefs.h >>conftest.$ac_ext
21830 cat >>conftest.$ac_ext <<_ACEOF
21831 /* end confdefs.h.  */
21832 #include <sys/mkdev.h>
21833 _ACEOF
21834 if { (ac_try="$ac_cpp conftest.$ac_ext"
21835 case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21841   ac_status=$?
21842   grep -v '^ *+' conftest.er1 >conftest.err
21843   rm -f conftest.er1
21844   cat conftest.err >&5
21845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846   (exit $ac_status); } >/dev/null; then
21847   if test -s conftest.err; then
21848     ac_cpp_err=$ac_c_preproc_warn_flag
21849     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21850   else
21851     ac_cpp_err=
21852   fi
21853 else
21854   ac_cpp_err=yes
21855 fi
21856 if test -z "$ac_cpp_err"; then
21857   ac_header_preproc=yes
21858 else
21859   echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862   ac_header_preproc=no
21863 fi
21864
21865 rm -f conftest.err conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 echo "${ECHO_T}$ac_header_preproc" >&6; }
21868
21869 # So?  What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21871   yes:no: )
21872     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21873 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21875 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21876     ac_header_preproc=yes
21877     ;;
21878   no:yes:* )
21879     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21880 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21881     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
21882 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
21883     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21884 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21885     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
21886 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21887     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21888 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21889     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21890 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21891
21892     ;;
21893 esac
21894 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21895 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21896 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21897   echo $ECHO_N "(cached) $ECHO_C" >&6
21898 else
21899   ac_cv_header_sys_mkdev_h=$ac_header_preproc
21900 fi
21901 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21902 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21903
21904 fi
21905 if test $ac_cv_header_sys_mkdev_h = yes; then
21906
21907 cat >>confdefs.h <<\_ACEOF
21908 #define MAJOR_IN_MKDEV 1
21909 _ACEOF
21910
21911 fi
21912
21913
21914
21915   if test $ac_cv_header_sys_mkdev_h = no; then
21916     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21917   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
21918 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
21919 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21920   echo $ECHO_N "(cached) $ECHO_C" >&6
21921 fi
21922 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
21923 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
21924 else
21925   # Is the header compilable?
21926 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
21927 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
21928 cat >conftest.$ac_ext <<_ACEOF
21929 /* confdefs.h.  */
21930 _ACEOF
21931 cat confdefs.h >>conftest.$ac_ext
21932 cat >>conftest.$ac_ext <<_ACEOF
21933 /* end confdefs.h.  */
21934 $ac_includes_default
21935 #include <sys/sysmacros.h>
21936 _ACEOF
21937 rm -f conftest.$ac_objext
21938 if { (ac_try="$ac_compile"
21939 case "(($ac_try" in
21940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941   *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944   (eval "$ac_compile") 2>conftest.er1
21945   ac_status=$?
21946   grep -v '^ *+' conftest.er1 >conftest.err
21947   rm -f conftest.er1
21948   cat conftest.err >&5
21949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950   (exit $ac_status); } &&
21951          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21952   { (case "(($ac_try" in
21953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954   *) ac_try_echo=$ac_try;;
21955 esac
21956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21957   (eval "$ac_try") 2>&5
21958   ac_status=$?
21959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960   (exit $ac_status); }; } &&
21961          { ac_try='test -s conftest.$ac_objext'
21962   { (case "(($ac_try" in
21963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964   *) ac_try_echo=$ac_try;;
21965 esac
21966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21967   (eval "$ac_try") 2>&5
21968   ac_status=$?
21969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970   (exit $ac_status); }; }; then
21971   ac_header_compiler=yes
21972 else
21973   echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21975
21976         ac_header_compiler=no
21977 fi
21978
21979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21980 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21981 echo "${ECHO_T}$ac_header_compiler" >&6; }
21982
21983 # Is the header present?
21984 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
21985 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
21986 cat >conftest.$ac_ext <<_ACEOF
21987 /* confdefs.h.  */
21988 _ACEOF
21989 cat confdefs.h >>conftest.$ac_ext
21990 cat >>conftest.$ac_ext <<_ACEOF
21991 /* end confdefs.h.  */
21992 #include <sys/sysmacros.h>
21993 _ACEOF
21994 if { (ac_try="$ac_cpp conftest.$ac_ext"
21995 case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22001   ac_status=$?
22002   grep -v '^ *+' conftest.er1 >conftest.err
22003   rm -f conftest.er1
22004   cat conftest.err >&5
22005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006   (exit $ac_status); } >/dev/null; then
22007   if test -s conftest.err; then
22008     ac_cpp_err=$ac_c_preproc_warn_flag
22009     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22010   else
22011     ac_cpp_err=
22012   fi
22013 else
22014   ac_cpp_err=yes
22015 fi
22016 if test -z "$ac_cpp_err"; then
22017   ac_header_preproc=yes
22018 else
22019   echo "$as_me: failed program was:" >&5
22020 sed 's/^/| /' conftest.$ac_ext >&5
22021
22022   ac_header_preproc=no
22023 fi
22024
22025 rm -f conftest.err conftest.$ac_ext
22026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22027 echo "${ECHO_T}$ac_header_preproc" >&6; }
22028
22029 # So?  What about this header?
22030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22031   yes:no: )
22032     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22033 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22034     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22035 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22036     ac_header_preproc=yes
22037     ;;
22038   no:yes:* )
22039     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22040 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22041     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22042 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22043     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22044 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22045     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22046 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22047     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22048 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22049     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22050 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22051
22052     ;;
22053 esac
22054 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22055 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22056 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22057   echo $ECHO_N "(cached) $ECHO_C" >&6
22058 else
22059   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22060 fi
22061 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22062 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22063
22064 fi
22065 if test $ac_cv_header_sys_sysmacros_h = yes; then
22066
22067 cat >>confdefs.h <<\_ACEOF
22068 #define MAJOR_IN_SYSMACROS 1
22069 _ACEOF
22070
22071 fi
22072
22073
22074   fi
22075 fi
22076
22077
22078
22079
22080
22081
22082 ac_header_dirent=no
22083 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22084   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22085 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22086 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22088   echo $ECHO_N "(cached) $ECHO_C" >&6
22089 else
22090   cat >conftest.$ac_ext <<_ACEOF
22091 /* confdefs.h.  */
22092 _ACEOF
22093 cat confdefs.h >>conftest.$ac_ext
22094 cat >>conftest.$ac_ext <<_ACEOF
22095 /* end confdefs.h.  */
22096 #include <sys/types.h>
22097 #include <$ac_hdr>
22098
22099 int
22100 main ()
22101 {
22102 if ((DIR *) 0)
22103 return 0;
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext
22109 if { (ac_try="$ac_compile"
22110 case "(($ac_try" in
22111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112   *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115   (eval "$ac_compile") 2>conftest.er1
22116   ac_status=$?
22117   grep -v '^ *+' conftest.er1 >conftest.err
22118   rm -f conftest.er1
22119   cat conftest.err >&5
22120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121   (exit $ac_status); } &&
22122          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22123   { (case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_try") 2>&5
22129   ac_status=$?
22130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131   (exit $ac_status); }; } &&
22132          { ac_try='test -s conftest.$ac_objext'
22133   { (case "(($ac_try" in
22134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135   *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138   (eval "$ac_try") 2>&5
22139   ac_status=$?
22140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141   (exit $ac_status); }; }; then
22142   eval "$as_ac_Header=yes"
22143 else
22144   echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147         eval "$as_ac_Header=no"
22148 fi
22149
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 fi
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153                { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22156   cat >>confdefs.h <<_ACEOF
22157 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22158 _ACEOF
22159
22160 ac_header_dirent=$ac_hdr; break
22161 fi
22162
22163 done
22164 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22165 if test $ac_header_dirent = dirent.h; then
22166   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22167 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22168 if test "${ac_cv_search_opendir+set}" = set; then
22169   echo $ECHO_N "(cached) $ECHO_C" >&6
22170 else
22171   ac_func_search_save_LIBS=$LIBS
22172 cat >conftest.$ac_ext <<_ACEOF
22173 /* confdefs.h.  */
22174 _ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h.  */
22178
22179 /* Override any GCC internal prototype to avoid an error.
22180    Use char because int might match the return type of a GCC
22181    builtin and then its argument prototype would still apply.  */
22182 #ifdef __cplusplus
22183 extern "C"
22184 #endif
22185 char opendir ();
22186 int
22187 main ()
22188 {
22189 return opendir ();
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 for ac_lib in '' dir; do
22195   if test -z "$ac_lib"; then
22196     ac_res="none required"
22197   else
22198     ac_res=-l$ac_lib
22199     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22200   fi
22201   rm -f conftest.$ac_objext conftest$ac_exeext
22202 if { (ac_try="$ac_link"
22203 case "(($ac_try" in
22204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22205   *) ac_try_echo=$ac_try;;
22206 esac
22207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22208   (eval "$ac_link") 2>conftest.er1
22209   ac_status=$?
22210   grep -v '^ *+' conftest.er1 >conftest.err
22211   rm -f conftest.er1
22212   cat conftest.err >&5
22213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214   (exit $ac_status); } &&
22215          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22216   { (case "(($ac_try" in
22217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22218   *) ac_try_echo=$ac_try;;
22219 esac
22220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22221   (eval "$ac_try") 2>&5
22222   ac_status=$?
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); }; } &&
22225          { ac_try='test -s conftest$ac_exeext'
22226   { (case "(($ac_try" in
22227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228   *) ac_try_echo=$ac_try;;
22229 esac
22230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22231   (eval "$ac_try") 2>&5
22232   ac_status=$?
22233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); }; }; then
22235   ac_cv_search_opendir=$ac_res
22236 else
22237   echo "$as_me: failed program was:" >&5
22238 sed 's/^/| /' conftest.$ac_ext >&5
22239
22240
22241 fi
22242
22243 rm -f core conftest.err conftest.$ac_objext \
22244       conftest$ac_exeext
22245   if test "${ac_cv_search_opendir+set}" = set; then
22246   break
22247 fi
22248 done
22249 if test "${ac_cv_search_opendir+set}" = set; then
22250   :
22251 else
22252   ac_cv_search_opendir=no
22253 fi
22254 rm conftest.$ac_ext
22255 LIBS=$ac_func_search_save_LIBS
22256 fi
22257 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22258 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22259 ac_res=$ac_cv_search_opendir
22260 if test "$ac_res" != no; then
22261   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22262
22263 fi
22264
22265 else
22266   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22267 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22268 if test "${ac_cv_search_opendir+set}" = set; then
22269   echo $ECHO_N "(cached) $ECHO_C" >&6
22270 else
22271   ac_func_search_save_LIBS=$LIBS
22272 cat >conftest.$ac_ext <<_ACEOF
22273 /* confdefs.h.  */
22274 _ACEOF
22275 cat confdefs.h >>conftest.$ac_ext
22276 cat >>conftest.$ac_ext <<_ACEOF
22277 /* end confdefs.h.  */
22278
22279 /* Override any GCC internal prototype to avoid an error.
22280    Use char because int might match the return type of a GCC
22281    builtin and then its argument prototype would still apply.  */
22282 #ifdef __cplusplus
22283 extern "C"
22284 #endif
22285 char opendir ();
22286 int
22287 main ()
22288 {
22289 return opendir ();
22290   ;
22291   return 0;
22292 }
22293 _ACEOF
22294 for ac_lib in '' x; do
22295   if test -z "$ac_lib"; then
22296     ac_res="none required"
22297   else
22298     ac_res=-l$ac_lib
22299     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22300   fi
22301   rm -f conftest.$ac_objext conftest$ac_exeext
22302 if { (ac_try="$ac_link"
22303 case "(($ac_try" in
22304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22305   *) ac_try_echo=$ac_try;;
22306 esac
22307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22308   (eval "$ac_link") 2>conftest.er1
22309   ac_status=$?
22310   grep -v '^ *+' conftest.er1 >conftest.err
22311   rm -f conftest.er1
22312   cat conftest.err >&5
22313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314   (exit $ac_status); } &&
22315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22316   { (case "(($ac_try" in
22317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22318   *) ac_try_echo=$ac_try;;
22319 esac
22320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22321   (eval "$ac_try") 2>&5
22322   ac_status=$?
22323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22324   (exit $ac_status); }; } &&
22325          { ac_try='test -s conftest$ac_exeext'
22326   { (case "(($ac_try" in
22327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22328   *) ac_try_echo=$ac_try;;
22329 esac
22330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22331   (eval "$ac_try") 2>&5
22332   ac_status=$?
22333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334   (exit $ac_status); }; }; then
22335   ac_cv_search_opendir=$ac_res
22336 else
22337   echo "$as_me: failed program was:" >&5
22338 sed 's/^/| /' conftest.$ac_ext >&5
22339
22340
22341 fi
22342
22343 rm -f core conftest.err conftest.$ac_objext \
22344       conftest$ac_exeext
22345   if test "${ac_cv_search_opendir+set}" = set; then
22346   break
22347 fi
22348 done
22349 if test "${ac_cv_search_opendir+set}" = set; then
22350   :
22351 else
22352   ac_cv_search_opendir=no
22353 fi
22354 rm conftest.$ac_ext
22355 LIBS=$ac_func_search_save_LIBS
22356 fi
22357 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22358 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22359 ac_res=$ac_cv_search_opendir
22360 if test "$ac_res" != no; then
22361   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22362
22363 fi
22364
22365 fi
22366
22367 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22368 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22369 if test "${ac_cv_header_stat_broken+set}" = set; then
22370   echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372   cat >conftest.$ac_ext <<_ACEOF
22373 /* confdefs.h.  */
22374 _ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h.  */
22378 #include <sys/types.h>
22379 #include <sys/stat.h>
22380
22381 #if defined S_ISBLK && defined S_IFDIR
22382 # if S_ISBLK (S_IFDIR)
22383 You lose.
22384 # endif
22385 #endif
22386
22387 #if defined S_ISBLK && defined S_IFCHR
22388 # if S_ISBLK (S_IFCHR)
22389 You lose.
22390 # endif
22391 #endif
22392
22393 #if defined S_ISLNK && defined S_IFREG
22394 # if S_ISLNK (S_IFREG)
22395 You lose.
22396 # endif
22397 #endif
22398
22399 #if defined S_ISSOCK && defined S_IFREG
22400 # if S_ISSOCK (S_IFREG)
22401 You lose.
22402 # endif
22403 #endif
22404
22405 _ACEOF
22406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22407   $EGREP "You lose" >/dev/null 2>&1; then
22408   ac_cv_header_stat_broken=yes
22409 else
22410   ac_cv_header_stat_broken=no
22411 fi
22412 rm -f conftest*
22413
22414 fi
22415 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22416 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22417 if test $ac_cv_header_stat_broken = yes; then
22418
22419 cat >>confdefs.h <<\_ACEOF
22420 #define STAT_MACROS_BROKEN 1
22421 _ACEOF
22422
22423 fi
22424
22425 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22426 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22427 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430   cat >conftest.$ac_ext <<_ACEOF
22431 /* confdefs.h.  */
22432 _ACEOF
22433 cat confdefs.h >>conftest.$ac_ext
22434 cat >>conftest.$ac_ext <<_ACEOF
22435 /* end confdefs.h.  */
22436 #include <sys/types.h>
22437 #include <sys/wait.h>
22438 #ifndef WEXITSTATUS
22439 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22440 #endif
22441 #ifndef WIFEXITED
22442 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22443 #endif
22444
22445 int
22446 main ()
22447 {
22448   int s;
22449   wait (&s);
22450   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22451   ;
22452   return 0;
22453 }
22454 _ACEOF
22455 rm -f conftest.$ac_objext
22456 if { (ac_try="$ac_compile"
22457 case "(($ac_try" in
22458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22459   *) ac_try_echo=$ac_try;;
22460 esac
22461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22462   (eval "$ac_compile") 2>conftest.er1
22463   ac_status=$?
22464   grep -v '^ *+' conftest.er1 >conftest.err
22465   rm -f conftest.er1
22466   cat conftest.err >&5
22467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468   (exit $ac_status); } &&
22469          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22470   { (case "(($ac_try" in
22471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472   *) ac_try_echo=$ac_try;;
22473 esac
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475   (eval "$ac_try") 2>&5
22476   ac_status=$?
22477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478   (exit $ac_status); }; } &&
22479          { ac_try='test -s conftest.$ac_objext'
22480   { (case "(($ac_try" in
22481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22482   *) ac_try_echo=$ac_try;;
22483 esac
22484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22485   (eval "$ac_try") 2>&5
22486   ac_status=$?
22487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22488   (exit $ac_status); }; }; then
22489   ac_cv_header_sys_wait_h=yes
22490 else
22491   echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.$ac_ext >&5
22493
22494         ac_cv_header_sys_wait_h=no
22495 fi
22496
22497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22498 fi
22499 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22500 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22501 if test $ac_cv_header_sys_wait_h = yes; then
22502
22503 cat >>confdefs.h <<\_ACEOF
22504 #define HAVE_SYS_WAIT_H 1
22505 _ACEOF
22506
22507 fi
22508
22509 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22510 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22511 if test "${ac_cv_header_time+set}" = set; then
22512   echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514   cat >conftest.$ac_ext <<_ACEOF
22515 /* confdefs.h.  */
22516 _ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h.  */
22520 #include <sys/types.h>
22521 #include <sys/time.h>
22522 #include <time.h>
22523
22524 int
22525 main ()
22526 {
22527 if ((struct tm *) 0)
22528 return 0;
22529   ;
22530   return 0;
22531 }
22532 _ACEOF
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537   *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540   (eval "$ac_compile") 2>conftest.er1
22541   ac_status=$?
22542   grep -v '^ *+' conftest.er1 >conftest.err
22543   rm -f conftest.er1
22544   cat conftest.err >&5
22545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546   (exit $ac_status); } &&
22547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22548   { (case "(($ac_try" in
22549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550   *) ac_try_echo=$ac_try;;
22551 esac
22552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22553   (eval "$ac_try") 2>&5
22554   ac_status=$?
22555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556   (exit $ac_status); }; } &&
22557          { ac_try='test -s conftest.$ac_objext'
22558   { (case "(($ac_try" in
22559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560   *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563   (eval "$ac_try") 2>&5
22564   ac_status=$?
22565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566   (exit $ac_status); }; }; then
22567   ac_cv_header_time=yes
22568 else
22569   echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572         ac_cv_header_time=no
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 fi
22577 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22578 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22579 if test $ac_cv_header_time = yes; then
22580
22581 cat >>confdefs.h <<\_ACEOF
22582 #define TIME_WITH_SYS_TIME 1
22583 _ACEOF
22584
22585 fi
22586
22587 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22588 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22589 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22590   echo $ECHO_N "(cached) $ECHO_C" >&6
22591 else
22592   cat >conftest.$ac_ext <<_ACEOF
22593 /* confdefs.h.  */
22594 _ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h.  */
22598 $ac_includes_default
22599 int
22600 main ()
22601 {
22602 static struct stat ac_aggr;
22603 if (ac_aggr.st_blksize)
22604 return 0;
22605   ;
22606   return 0;
22607 }
22608 _ACEOF
22609 rm -f conftest.$ac_objext
22610 if { (ac_try="$ac_compile"
22611 case "(($ac_try" in
22612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22613   *) ac_try_echo=$ac_try;;
22614 esac
22615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22616   (eval "$ac_compile") 2>conftest.er1
22617   ac_status=$?
22618   grep -v '^ *+' conftest.er1 >conftest.err
22619   rm -f conftest.er1
22620   cat conftest.err >&5
22621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622   (exit $ac_status); } &&
22623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22624   { (case "(($ac_try" in
22625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626   *) ac_try_echo=$ac_try;;
22627 esac
22628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22629   (eval "$ac_try") 2>&5
22630   ac_status=$?
22631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632   (exit $ac_status); }; } &&
22633          { ac_try='test -s conftest.$ac_objext'
22634   { (case "(($ac_try" in
22635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636   *) ac_try_echo=$ac_try;;
22637 esac
22638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22639   (eval "$ac_try") 2>&5
22640   ac_status=$?
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); }; }; then
22643   ac_cv_member_struct_stat_st_blksize=yes
22644 else
22645   echo "$as_me: failed program was:" >&5
22646 sed 's/^/| /' conftest.$ac_ext >&5
22647
22648         cat >conftest.$ac_ext <<_ACEOF
22649 /* confdefs.h.  */
22650 _ACEOF
22651 cat confdefs.h >>conftest.$ac_ext
22652 cat >>conftest.$ac_ext <<_ACEOF
22653 /* end confdefs.h.  */
22654 $ac_includes_default
22655 int
22656 main ()
22657 {
22658 static struct stat ac_aggr;
22659 if (sizeof ac_aggr.st_blksize)
22660 return 0;
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 rm -f conftest.$ac_objext
22666 if { (ac_try="$ac_compile"
22667 case "(($ac_try" in
22668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669   *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672   (eval "$ac_compile") 2>conftest.er1
22673   ac_status=$?
22674   grep -v '^ *+' conftest.er1 >conftest.err
22675   rm -f conftest.er1
22676   cat conftest.err >&5
22677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678   (exit $ac_status); } &&
22679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22680   { (case "(($ac_try" in
22681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682   *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685   (eval "$ac_try") 2>&5
22686   ac_status=$?
22687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688   (exit $ac_status); }; } &&
22689          { ac_try='test -s conftest.$ac_objext'
22690   { (case "(($ac_try" in
22691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692   *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695   (eval "$ac_try") 2>&5
22696   ac_status=$?
22697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698   (exit $ac_status); }; }; then
22699   ac_cv_member_struct_stat_st_blksize=yes
22700 else
22701   echo "$as_me: failed program was:" >&5
22702 sed 's/^/| /' conftest.$ac_ext >&5
22703
22704         ac_cv_member_struct_stat_st_blksize=no
22705 fi
22706
22707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22708 fi
22709
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 fi
22712 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22713 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22714 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22715
22716 cat >>confdefs.h <<_ACEOF
22717 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22718 _ACEOF
22719
22720
22721 cat >>confdefs.h <<\_ACEOF
22722 #define HAVE_ST_BLKSIZE 1
22723 _ACEOF
22724
22725 fi
22726
22727
22728 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22729 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22730 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22731   echo $ECHO_N "(cached) $ECHO_C" >&6
22732 else
22733   cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h.  */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h.  */
22739 $ac_includes_default
22740 int
22741 main ()
22742 {
22743 static struct stat ac_aggr;
22744 if (ac_aggr.st_blocks)
22745 return 0;
22746   ;
22747   return 0;
22748 }
22749 _ACEOF
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_compile") 2>conftest.er1
22758   ac_status=$?
22759   grep -v '^ *+' conftest.er1 >conftest.err
22760   rm -f conftest.er1
22761   cat conftest.err >&5
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); } &&
22764          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22765   { (case "(($ac_try" in
22766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767   *) ac_try_echo=$ac_try;;
22768 esac
22769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22770   (eval "$ac_try") 2>&5
22771   ac_status=$?
22772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773   (exit $ac_status); }; } &&
22774          { ac_try='test -s conftest.$ac_objext'
22775   { (case "(($ac_try" in
22776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777   *) ac_try_echo=$ac_try;;
22778 esac
22779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22780   (eval "$ac_try") 2>&5
22781   ac_status=$?
22782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783   (exit $ac_status); }; }; then
22784   ac_cv_member_struct_stat_st_blocks=yes
22785 else
22786   echo "$as_me: failed program was:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22788
22789         cat >conftest.$ac_ext <<_ACEOF
22790 /* confdefs.h.  */
22791 _ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h.  */
22795 $ac_includes_default
22796 int
22797 main ()
22798 {
22799 static struct stat ac_aggr;
22800 if (sizeof ac_aggr.st_blocks)
22801 return 0;
22802   ;
22803   return 0;
22804 }
22805 _ACEOF
22806 rm -f conftest.$ac_objext
22807 if { (ac_try="$ac_compile"
22808 case "(($ac_try" in
22809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810   *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813   (eval "$ac_compile") 2>conftest.er1
22814   ac_status=$?
22815   grep -v '^ *+' conftest.er1 >conftest.err
22816   rm -f conftest.er1
22817   cat conftest.err >&5
22818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } &&
22820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22821   { (case "(($ac_try" in
22822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823   *) ac_try_echo=$ac_try;;
22824 esac
22825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22826   (eval "$ac_try") 2>&5
22827   ac_status=$?
22828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); }; } &&
22830          { ac_try='test -s conftest.$ac_objext'
22831   { (case "(($ac_try" in
22832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833   *) ac_try_echo=$ac_try;;
22834 esac
22835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22836   (eval "$ac_try") 2>&5
22837   ac_status=$?
22838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22839   (exit $ac_status); }; }; then
22840   ac_cv_member_struct_stat_st_blocks=yes
22841 else
22842   echo "$as_me: failed program was:" >&5
22843 sed 's/^/| /' conftest.$ac_ext >&5
22844
22845         ac_cv_member_struct_stat_st_blocks=no
22846 fi
22847
22848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22849 fi
22850
22851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 fi
22853 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22854 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22855 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22856
22857 cat >>confdefs.h <<_ACEOF
22858 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22859 _ACEOF
22860
22861
22862 cat >>confdefs.h <<\_ACEOF
22863 #define HAVE_ST_BLOCKS 1
22864 _ACEOF
22865
22866 else
22867   case " $LIBOBJS " in
22868   *" fileblocks.$ac_objext "* ) ;;
22869   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22870  ;;
22871 esac
22872
22873 fi
22874
22875
22876 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22878 if test "${ac_cv_struct_tm+set}" = set; then
22879   echo $ECHO_N "(cached) $ECHO_C" >&6
22880 else
22881   cat >conftest.$ac_ext <<_ACEOF
22882 /* confdefs.h.  */
22883 _ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h.  */
22887 #include <sys/types.h>
22888 #include <time.h>
22889
22890 int
22891 main ()
22892 {
22893 struct tm *tp; tp->tm_sec;
22894   ;
22895   return 0;
22896 }
22897 _ACEOF
22898 rm -f conftest.$ac_objext
22899 if { (ac_try="$ac_compile"
22900 case "(($ac_try" in
22901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902   *) ac_try_echo=$ac_try;;
22903 esac
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905   (eval "$ac_compile") 2>conftest.er1
22906   ac_status=$?
22907   grep -v '^ *+' conftest.er1 >conftest.err
22908   rm -f conftest.er1
22909   cat conftest.err >&5
22910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911   (exit $ac_status); } &&
22912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22913   { (case "(($ac_try" in
22914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915   *) ac_try_echo=$ac_try;;
22916 esac
22917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22918   (eval "$ac_try") 2>&5
22919   ac_status=$?
22920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921   (exit $ac_status); }; } &&
22922          { ac_try='test -s conftest.$ac_objext'
22923   { (case "(($ac_try" in
22924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22925   *) ac_try_echo=$ac_try;;
22926 esac
22927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22928   (eval "$ac_try") 2>&5
22929   ac_status=$?
22930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931   (exit $ac_status); }; }; then
22932   ac_cv_struct_tm=time.h
22933 else
22934   echo "$as_me: failed program was:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22936
22937         ac_cv_struct_tm=sys/time.h
22938 fi
22939
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 fi
22942 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22943 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22944 if test $ac_cv_struct_tm = sys/time.h; then
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define TM_IN_SYS_TIME 1
22948 _ACEOF
22949
22950 fi
22951
22952 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22953 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22954 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22955   echo $ECHO_N "(cached) $ECHO_C" >&6
22956 else
22957   cat >conftest.$ac_ext <<_ACEOF
22958 /* confdefs.h.  */
22959 _ACEOF
22960 cat confdefs.h >>conftest.$ac_ext
22961 cat >>conftest.$ac_ext <<_ACEOF
22962 /* end confdefs.h.  */
22963 #include <sys/types.h>
22964 #include <$ac_cv_struct_tm>
22965
22966
22967 int
22968 main ()
22969 {
22970 static struct tm ac_aggr;
22971 if (ac_aggr.tm_zone)
22972 return 0;
22973   ;
22974   return 0;
22975 }
22976 _ACEOF
22977 rm -f conftest.$ac_objext
22978 if { (ac_try="$ac_compile"
22979 case "(($ac_try" in
22980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22981   *) ac_try_echo=$ac_try;;
22982 esac
22983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22984   (eval "$ac_compile") 2>conftest.er1
22985   ac_status=$?
22986   grep -v '^ *+' conftest.er1 >conftest.err
22987   rm -f conftest.er1
22988   cat conftest.err >&5
22989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22990   (exit $ac_status); } &&
22991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22992   { (case "(($ac_try" in
22993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22994   *) ac_try_echo=$ac_try;;
22995 esac
22996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22997   (eval "$ac_try") 2>&5
22998   ac_status=$?
22999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000   (exit $ac_status); }; } &&
23001          { ac_try='test -s conftest.$ac_objext'
23002   { (case "(($ac_try" in
23003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004   *) ac_try_echo=$ac_try;;
23005 esac
23006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007   (eval "$ac_try") 2>&5
23008   ac_status=$?
23009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010   (exit $ac_status); }; }; then
23011   ac_cv_member_struct_tm_tm_zone=yes
23012 else
23013   echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23015
23016         cat >conftest.$ac_ext <<_ACEOF
23017 /* confdefs.h.  */
23018 _ACEOF
23019 cat confdefs.h >>conftest.$ac_ext
23020 cat >>conftest.$ac_ext <<_ACEOF
23021 /* end confdefs.h.  */
23022 #include <sys/types.h>
23023 #include <$ac_cv_struct_tm>
23024
23025
23026 int
23027 main ()
23028 {
23029 static struct tm ac_aggr;
23030 if (sizeof ac_aggr.tm_zone)
23031 return 0;
23032   ;
23033   return 0;
23034 }
23035 _ACEOF
23036 rm -f conftest.$ac_objext
23037 if { (ac_try="$ac_compile"
23038 case "(($ac_try" in
23039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040   *) ac_try_echo=$ac_try;;
23041 esac
23042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23043   (eval "$ac_compile") 2>conftest.er1
23044   ac_status=$?
23045   grep -v '^ *+' conftest.er1 >conftest.err
23046   rm -f conftest.er1
23047   cat conftest.err >&5
23048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23049   (exit $ac_status); } &&
23050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23051   { (case "(($ac_try" in
23052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23053   *) ac_try_echo=$ac_try;;
23054 esac
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056   (eval "$ac_try") 2>&5
23057   ac_status=$?
23058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059   (exit $ac_status); }; } &&
23060          { ac_try='test -s conftest.$ac_objext'
23061   { (case "(($ac_try" in
23062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063   *) ac_try_echo=$ac_try;;
23064 esac
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066   (eval "$ac_try") 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); }; }; then
23070   ac_cv_member_struct_tm_tm_zone=yes
23071 else
23072   echo "$as_me: failed program was:" >&5
23073 sed 's/^/| /' conftest.$ac_ext >&5
23074
23075         ac_cv_member_struct_tm_tm_zone=no
23076 fi
23077
23078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23079 fi
23080
23081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23082 fi
23083 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23084 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23085 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23086
23087 cat >>confdefs.h <<_ACEOF
23088 #define HAVE_STRUCT_TM_TM_ZONE 1
23089 _ACEOF
23090
23091
23092 fi
23093
23094 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23095
23096 cat >>confdefs.h <<\_ACEOF
23097 #define HAVE_TM_ZONE 1
23098 _ACEOF
23099
23100 else
23101   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23102 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23103 if test "${ac_cv_have_decl_tzname+set}" = set; then
23104   echo $ECHO_N "(cached) $ECHO_C" >&6
23105 else
23106   cat >conftest.$ac_ext <<_ACEOF
23107 /* confdefs.h.  */
23108 _ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h.  */
23112 #include <time.h>
23113
23114 int
23115 main ()
23116 {
23117 #ifndef tzname
23118   char *p = (char *) tzname;
23119   return !p;
23120 #endif
23121
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest.$ac_objext
23127 if { (ac_try="$ac_compile"
23128 case "(($ac_try" in
23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130   *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133   (eval "$ac_compile") 2>conftest.er1
23134   ac_status=$?
23135   grep -v '^ *+' conftest.er1 >conftest.err
23136   rm -f conftest.er1
23137   cat conftest.err >&5
23138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139   (exit $ac_status); } &&
23140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23141   { (case "(($ac_try" in
23142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23143   *) ac_try_echo=$ac_try;;
23144 esac
23145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23146   (eval "$ac_try") 2>&5
23147   ac_status=$?
23148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149   (exit $ac_status); }; } &&
23150          { ac_try='test -s conftest.$ac_objext'
23151   { (case "(($ac_try" in
23152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23153   *) ac_try_echo=$ac_try;;
23154 esac
23155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23156   (eval "$ac_try") 2>&5
23157   ac_status=$?
23158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23159   (exit $ac_status); }; }; then
23160   ac_cv_have_decl_tzname=yes
23161 else
23162   echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165         ac_cv_have_decl_tzname=no
23166 fi
23167
23168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23169 fi
23170 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23171 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23172 if test $ac_cv_have_decl_tzname = yes; then
23173
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_DECL_TZNAME 1
23176 _ACEOF
23177
23178
23179 else
23180   cat >>confdefs.h <<_ACEOF
23181 #define HAVE_DECL_TZNAME 0
23182 _ACEOF
23183
23184
23185 fi
23186
23187
23188   { echo "$as_me:$LINENO: checking for tzname" >&5
23189 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23190 if test "${ac_cv_var_tzname+set}" = set; then
23191   echo $ECHO_N "(cached) $ECHO_C" >&6
23192 else
23193   cat >conftest.$ac_ext <<_ACEOF
23194 /* confdefs.h.  */
23195 _ACEOF
23196 cat confdefs.h >>conftest.$ac_ext
23197 cat >>conftest.$ac_ext <<_ACEOF
23198 /* end confdefs.h.  */
23199 #include <time.h>
23200 #if !HAVE_DECL_TZNAME
23201 extern char *tzname[];
23202 #endif
23203
23204 int
23205 main ()
23206 {
23207 return tzname[0][0];
23208   ;
23209   return 0;
23210 }
23211 _ACEOF
23212 rm -f conftest.$ac_objext conftest$ac_exeext
23213 if { (ac_try="$ac_link"
23214 case "(($ac_try" in
23215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23216   *) ac_try_echo=$ac_try;;
23217 esac
23218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23219   (eval "$ac_link") 2>conftest.er1
23220   ac_status=$?
23221   grep -v '^ *+' conftest.er1 >conftest.err
23222   rm -f conftest.er1
23223   cat conftest.err >&5
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); } &&
23226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23227   { (case "(($ac_try" in
23228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23229   *) ac_try_echo=$ac_try;;
23230 esac
23231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23232   (eval "$ac_try") 2>&5
23233   ac_status=$?
23234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235   (exit $ac_status); }; } &&
23236          { ac_try='test -s conftest$ac_exeext'
23237   { (case "(($ac_try" in
23238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23239   *) ac_try_echo=$ac_try;;
23240 esac
23241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23242   (eval "$ac_try") 2>&5
23243   ac_status=$?
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); }; }; then
23246   ac_cv_var_tzname=yes
23247 else
23248   echo "$as_me: failed program was:" >&5
23249 sed 's/^/| /' conftest.$ac_ext >&5
23250
23251         ac_cv_var_tzname=no
23252 fi
23253
23254 rm -f core conftest.err conftest.$ac_objext \
23255       conftest$ac_exeext conftest.$ac_ext
23256 fi
23257 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23258 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23259   if test $ac_cv_var_tzname = yes; then
23260
23261 cat >>confdefs.h <<\_ACEOF
23262 #define HAVE_TZNAME 1
23263 _ACEOF
23264
23265   fi
23266 fi
23267
23268
23269 { echo "$as_me:$LINENO: checking for utime.h" >&5
23270 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23271 if test "${ba_cv_header_utime_h+set}" = set; then
23272   echo $ECHO_N "(cached) $ECHO_C" >&6
23273 else
23274   cat >conftest.$ac_ext <<_ACEOF
23275 /* confdefs.h.  */
23276 _ACEOF
23277 cat confdefs.h >>conftest.$ac_ext
23278 cat >>conftest.$ac_ext <<_ACEOF
23279 /* end confdefs.h.  */
23280
23281 #include <sys/types.h>
23282 #include <utime.h>
23283 int
23284 main ()
23285 {
23286 struct utimbuf foo
23287   ;
23288   return 0;
23289 }
23290 _ACEOF
23291 rm -f conftest.$ac_objext
23292 if { (ac_try="$ac_compile"
23293 case "(($ac_try" in
23294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23295   *) ac_try_echo=$ac_try;;
23296 esac
23297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23298   (eval "$ac_compile") 2>conftest.er1
23299   ac_status=$?
23300   grep -v '^ *+' conftest.er1 >conftest.err
23301   rm -f conftest.er1
23302   cat conftest.err >&5
23303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23304   (exit $ac_status); } &&
23305          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23306   { (case "(($ac_try" in
23307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23308   *) ac_try_echo=$ac_try;;
23309 esac
23310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23311   (eval "$ac_try") 2>&5
23312   ac_status=$?
23313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23314   (exit $ac_status); }; } &&
23315          { ac_try='test -s conftest.$ac_objext'
23316   { (case "(($ac_try" in
23317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23318   *) ac_try_echo=$ac_try;;
23319 esac
23320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23321   (eval "$ac_try") 2>&5
23322   ac_status=$?
23323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23324   (exit $ac_status); }; }; then
23325   ba_cv_header_utime_h=yes
23326 else
23327   echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23329
23330         ba_cv_header_utime_h=no
23331 fi
23332
23333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23334 fi
23335 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23336 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23337 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23338 #define HAVE_UTIME_H 1
23339 _ACEOF
23340
23341
23342 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23343 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23344 if test "${ba_cv_header_socklen_t+set}" = set; then
23345   echo $ECHO_N "(cached) $ECHO_C" >&6
23346 else
23347   cat >conftest.$ac_ext <<_ACEOF
23348 /* confdefs.h.  */
23349 _ACEOF
23350 cat confdefs.h >>conftest.$ac_ext
23351 cat >>conftest.$ac_ext <<_ACEOF
23352 /* end confdefs.h.  */
23353
23354 #include <sys/types.h>
23355 #include <sys/socket.h>
23356 int
23357 main ()
23358 {
23359 socklen_t x
23360   ;
23361   return 0;
23362 }
23363 _ACEOF
23364 rm -f conftest.$ac_objext
23365 if { (ac_try="$ac_compile"
23366 case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23371   (eval "$ac_compile") 2>conftest.er1
23372   ac_status=$?
23373   grep -v '^ *+' conftest.er1 >conftest.err
23374   rm -f conftest.er1
23375   cat conftest.err >&5
23376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377   (exit $ac_status); } &&
23378          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379   { (case "(($ac_try" in
23380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23381   *) ac_try_echo=$ac_try;;
23382 esac
23383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23384   (eval "$ac_try") 2>&5
23385   ac_status=$?
23386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387   (exit $ac_status); }; } &&
23388          { ac_try='test -s conftest.$ac_objext'
23389   { (case "(($ac_try" in
23390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391   *) ac_try_echo=$ac_try;;
23392 esac
23393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23394   (eval "$ac_try") 2>&5
23395   ac_status=$?
23396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23397   (exit $ac_status); }; }; then
23398   ba_cv_header_socklen_t=yes
23399 else
23400   echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403         ba_cv_header_socklen_t=no
23404 fi
23405
23406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23407 fi
23408 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23409 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23410 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23411 #define HAVE_SOCKLEN_T 1
23412 _ACEOF
23413
23414
23415 { echo "$as_me:$LINENO: checking for bigendian" >&5
23416 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23417 if test "${ba_cv_bigendian+set}" = set; then
23418   echo $ECHO_N "(cached) $ECHO_C" >&6
23419 else
23420   if test "$cross_compiling" = yes; then
23421   ba_cv_bigendian=no
23422 else
23423   cat >conftest.$ac_ext <<_ACEOF
23424 /* confdefs.h.  */
23425 _ACEOF
23426 cat confdefs.h >>conftest.$ac_ext
23427 cat >>conftest.$ac_ext <<_ACEOF
23428 /* end confdefs.h.  */
23429 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23430 _ACEOF
23431 rm -f conftest$ac_exeext
23432 if { (ac_try="$ac_link"
23433 case "(($ac_try" in
23434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23435   *) ac_try_echo=$ac_try;;
23436 esac
23437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23438   (eval "$ac_link") 2>&5
23439   ac_status=$?
23440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23441   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23442   { (case "(($ac_try" in
23443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23444   *) ac_try_echo=$ac_try;;
23445 esac
23446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23447   (eval "$ac_try") 2>&5
23448   ac_status=$?
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); }; }; then
23451   ba_cv_bigendian=yes
23452 else
23453   echo "$as_me: program exited with status $ac_status" >&5
23454 echo "$as_me: failed program was:" >&5
23455 sed 's/^/| /' conftest.$ac_ext >&5
23456
23457 ( exit $ac_status )
23458 ba_cv_bigendian=no
23459 fi
23460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23461 fi
23462
23463
23464 fi
23465 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23466 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23467 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23468 #define HAVE_BIGENDIAN 1
23469 _ACEOF
23470
23471
23472 ac_ext=cpp
23473 ac_cpp='$CXXCPP $CPPFLAGS'
23474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23477
23478
23479 { echo "$as_me:$LINENO: checking for typeof" >&5
23480 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23481 if test "${ba_cv_have_typeof+set}" = set; then
23482   echo $ECHO_N "(cached) $ECHO_C" >&6
23483 else
23484   if test "$cross_compiling" = yes; then
23485   ba_cv_have_typeof=no
23486 else
23487   cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h.  */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h.  */
23493 main(){char *a = 0; a = (typeof a)a;}
23494 _ACEOF
23495 rm -f conftest$ac_exeext
23496 if { (ac_try="$ac_link"
23497 case "(($ac_try" in
23498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23499   *) ac_try_echo=$ac_try;;
23500 esac
23501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23502   (eval "$ac_link") 2>&5
23503   ac_status=$?
23504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23505   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23506   { (case "(($ac_try" in
23507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508   *) ac_try_echo=$ac_try;;
23509 esac
23510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23511   (eval "$ac_try") 2>&5
23512   ac_status=$?
23513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514   (exit $ac_status); }; }; then
23515   ba_cv_have_typeof=yes
23516 else
23517   echo "$as_me: program exited with status $ac_status" >&5
23518 echo "$as_me: failed program was:" >&5
23519 sed 's/^/| /' conftest.$ac_ext >&5
23520
23521 ( exit $ac_status )
23522 ba_cv_have_typeof=no
23523 fi
23524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23525 fi
23526
23527
23528 fi
23529 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23530 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23531 test $ba_cv_have_typeof = yes &&
23532 cat >>confdefs.h <<\_ACEOF
23533 #define HAVE_TYPEOF 1
23534 _ACEOF
23535
23536 ac_ext=c
23537 ac_cpp='$CPP $CPPFLAGS'
23538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23541
23542
23543 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23545 if test "${ac_cv_c_const+set}" = set; then
23546   echo $ECHO_N "(cached) $ECHO_C" >&6
23547 else
23548   cat >conftest.$ac_ext <<_ACEOF
23549 /* confdefs.h.  */
23550 _ACEOF
23551 cat confdefs.h >>conftest.$ac_ext
23552 cat >>conftest.$ac_ext <<_ACEOF
23553 /* end confdefs.h.  */
23554
23555 int
23556 main ()
23557 {
23558 /* FIXME: Include the comments suggested by Paul. */
23559 #ifndef __cplusplus
23560   /* Ultrix mips cc rejects this.  */
23561   typedef int charset[2];
23562   const charset x;
23563   /* SunOS 4.1.1 cc rejects this.  */
23564   char const *const *ccp;
23565   char **p;
23566   /* NEC SVR4.0.2 mips cc rejects this.  */
23567   struct point {int x, y;};
23568   static struct point const zero = {0,0};
23569   /* AIX XL C 1.02.0.0 rejects this.
23570      It does not let you subtract one const X* pointer from another in
23571      an arm of an if-expression whose if-part is not a constant
23572      expression */
23573   const char *g = "string";
23574   ccp = &g + (g ? g-g : 0);
23575   /* HPUX 7.0 cc rejects these. */
23576   ++ccp;
23577   p = (char**) ccp;
23578   ccp = (char const *const *) p;
23579   { /* SCO 3.2v4 cc rejects this.  */
23580     char *t;
23581     char const *s = 0 ? (char *) 0 : (char const *) 0;
23582
23583     *t++ = 0;
23584     if (s) return 0;
23585   }
23586   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23587     int x[] = {25, 17};
23588     const int *foo = &x[0];
23589     ++foo;
23590   }
23591   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23592     typedef const int *iptr;
23593     iptr p = 0;
23594     ++p;
23595   }
23596   { /* AIX XL C 1.02.0.0 rejects this saying
23597        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23598     struct s { int j; const int *ap[3]; };
23599     struct s *b; b->j = 5;
23600   }
23601   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23602     const int foo = 10;
23603     if (!foo) return 0;
23604   }
23605   return !x[0] && !zero.x;
23606 #endif
23607
23608   ;
23609   return 0;
23610 }
23611 _ACEOF
23612 rm -f conftest.$ac_objext
23613 if { (ac_try="$ac_compile"
23614 case "(($ac_try" in
23615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616   *) ac_try_echo=$ac_try;;
23617 esac
23618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23619   (eval "$ac_compile") 2>conftest.er1
23620   ac_status=$?
23621   grep -v '^ *+' conftest.er1 >conftest.err
23622   rm -f conftest.er1
23623   cat conftest.err >&5
23624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); } &&
23626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23627   { (case "(($ac_try" in
23628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23629   *) ac_try_echo=$ac_try;;
23630 esac
23631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23632   (eval "$ac_try") 2>&5
23633   ac_status=$?
23634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23635   (exit $ac_status); }; } &&
23636          { ac_try='test -s conftest.$ac_objext'
23637   { (case "(($ac_try" in
23638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639   *) ac_try_echo=$ac_try;;
23640 esac
23641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23642   (eval "$ac_try") 2>&5
23643   ac_status=$?
23644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23645   (exit $ac_status); }; }; then
23646   ac_cv_c_const=yes
23647 else
23648   echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23650
23651         ac_cv_c_const=no
23652 fi
23653
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23655 fi
23656 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23657 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23658 if test $ac_cv_c_const = no; then
23659
23660 cat >>confdefs.h <<\_ACEOF
23661 #define const
23662 _ACEOF
23663
23664 fi
23665
23666
23667
23668 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23669 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23670 fstype=no
23671 # The order of these tests is important.
23672 cat >conftest.$ac_ext <<_ACEOF
23673 /* confdefs.h.  */
23674 _ACEOF
23675 cat confdefs.h >>conftest.$ac_ext
23676 cat >>conftest.$ac_ext <<_ACEOF
23677 /* end confdefs.h.  */
23678 #include <sys/statvfs.h>
23679 #include <sys/fstyp.h>
23680 _ACEOF
23681 if { (ac_try="$ac_cpp conftest.$ac_ext"
23682 case "(($ac_try" in
23683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23684   *) ac_try_echo=$ac_try;;
23685 esac
23686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23688   ac_status=$?
23689   grep -v '^ *+' conftest.er1 >conftest.err
23690   rm -f conftest.er1
23691   cat conftest.err >&5
23692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23693   (exit $ac_status); } >/dev/null; then
23694   if test -s conftest.err; then
23695     ac_cpp_err=$ac_c_preproc_warn_flag
23696     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23697   else
23698     ac_cpp_err=
23699   fi
23700 else
23701   ac_cpp_err=yes
23702 fi
23703 if test -z "$ac_cpp_err"; then
23704   cat >>confdefs.h <<\_ACEOF
23705 #define FSTYPE_STATVFS 1
23706 _ACEOF
23707  fstype=SVR4
23708 else
23709   echo "$as_me: failed program was:" >&5
23710 sed 's/^/| /' conftest.$ac_ext >&5
23711
23712
23713 fi
23714
23715 rm -f conftest.err conftest.$ac_ext
23716 if test $fstype = no; then
23717 cat >conftest.$ac_ext <<_ACEOF
23718 /* confdefs.h.  */
23719 _ACEOF
23720 cat confdefs.h >>conftest.$ac_ext
23721 cat >>conftest.$ac_ext <<_ACEOF
23722 /* end confdefs.h.  */
23723 #include <sys/statfs.h>
23724 #include <sys/fstyp.h>
23725 _ACEOF
23726 if { (ac_try="$ac_cpp conftest.$ac_ext"
23727 case "(($ac_try" in
23728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729   *) ac_try_echo=$ac_try;;
23730 esac
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23733   ac_status=$?
23734   grep -v '^ *+' conftest.er1 >conftest.err
23735   rm -f conftest.er1
23736   cat conftest.err >&5
23737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738   (exit $ac_status); } >/dev/null; then
23739   if test -s conftest.err; then
23740     ac_cpp_err=$ac_c_preproc_warn_flag
23741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23742   else
23743     ac_cpp_err=
23744   fi
23745 else
23746   ac_cpp_err=yes
23747 fi
23748 if test -z "$ac_cpp_err"; then
23749   cat >>confdefs.h <<\_ACEOF
23750 #define FSTYPE_USG_STATFS 1
23751 _ACEOF
23752  fstype=SVR3
23753 else
23754   echo "$as_me: failed program was:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23756
23757
23758 fi
23759
23760 rm -f conftest.err conftest.$ac_ext
23761 fi
23762 if test $fstype = no; then
23763 cat >conftest.$ac_ext <<_ACEOF
23764 /* confdefs.h.  */
23765 _ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h.  */
23769 #include <sys/statfs.h>
23770 #include <sys/vmount.h>
23771 _ACEOF
23772 if { (ac_try="$ac_cpp conftest.$ac_ext"
23773 case "(($ac_try" in
23774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23775   *) ac_try_echo=$ac_try;;
23776 esac
23777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23778   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23779   ac_status=$?
23780   grep -v '^ *+' conftest.er1 >conftest.err
23781   rm -f conftest.er1
23782   cat conftest.err >&5
23783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784   (exit $ac_status); } >/dev/null; then
23785   if test -s conftest.err; then
23786     ac_cpp_err=$ac_c_preproc_warn_flag
23787     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23788   else
23789     ac_cpp_err=
23790   fi
23791 else
23792   ac_cpp_err=yes
23793 fi
23794 if test -z "$ac_cpp_err"; then
23795   cat >>confdefs.h <<\_ACEOF
23796 #define FSTYPE_AIX_STATFS 1
23797 _ACEOF
23798  fstype=AIX
23799 else
23800   echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23802
23803
23804 fi
23805
23806 rm -f conftest.err conftest.$ac_ext
23807 fi
23808 if test $fstype = no; then
23809 cat >conftest.$ac_ext <<_ACEOF
23810 /* confdefs.h.  */
23811 _ACEOF
23812 cat confdefs.h >>conftest.$ac_ext
23813 cat >>conftest.$ac_ext <<_ACEOF
23814 /* end confdefs.h.  */
23815 #include <mntent.h>
23816 _ACEOF
23817 if { (ac_try="$ac_cpp conftest.$ac_ext"
23818 case "(($ac_try" in
23819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23820   *) ac_try_echo=$ac_try;;
23821 esac
23822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23823   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23824   ac_status=$?
23825   grep -v '^ *+' conftest.er1 >conftest.err
23826   rm -f conftest.er1
23827   cat conftest.err >&5
23828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829   (exit $ac_status); } >/dev/null; then
23830   if test -s conftest.err; then
23831     ac_cpp_err=$ac_c_preproc_warn_flag
23832     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23833   else
23834     ac_cpp_err=
23835   fi
23836 else
23837   ac_cpp_err=yes
23838 fi
23839 if test -z "$ac_cpp_err"; then
23840   cat >>confdefs.h <<\_ACEOF
23841 #define FSTYPE_MNTENT 1
23842 _ACEOF
23843  fstype=4.3BSD
23844 else
23845   echo "$as_me: failed program was:" >&5
23846 sed 's/^/| /' conftest.$ac_ext >&5
23847
23848
23849 fi
23850
23851 rm -f conftest.err conftest.$ac_ext
23852 fi
23853 if test $fstype = no; then
23854 cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h.  */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h.  */
23860 #include <sys/mount.h>
23861
23862 _ACEOF
23863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23864   $EGREP "f_type;" >/dev/null 2>&1; then
23865   cat >>confdefs.h <<\_ACEOF
23866 #define FSTYPE_STATFS 1
23867 _ACEOF
23868  fstype=4.4BSD/OSF1
23869 fi
23870 rm -f conftest*
23871
23872 fi
23873 if test $fstype = no; then
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880 #include <sys/mount.h>
23881 #include <sys/fs_types.h>
23882 _ACEOF
23883 if { (ac_try="$ac_cpp conftest.$ac_ext"
23884 case "(($ac_try" in
23885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886   *) ac_try_echo=$ac_try;;
23887 esac
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23890   ac_status=$?
23891   grep -v '^ *+' conftest.er1 >conftest.err
23892   rm -f conftest.er1
23893   cat conftest.err >&5
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } >/dev/null; then
23896   if test -s conftest.err; then
23897     ac_cpp_err=$ac_c_preproc_warn_flag
23898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23899   else
23900     ac_cpp_err=
23901   fi
23902 else
23903   ac_cpp_err=yes
23904 fi
23905 if test -z "$ac_cpp_err"; then
23906   cat >>confdefs.h <<\_ACEOF
23907 #define FSTYPE_GETMNT 1
23908 _ACEOF
23909  fstype=Ultrix
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914
23915 fi
23916
23917 rm -f conftest.err conftest.$ac_ext
23918 fi
23919 { echo "$as_me:$LINENO: result: $fstype" >&5
23920 echo "${ECHO_T}$fstype" >&6; }
23921
23922 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23923   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
23924 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
23925 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23926   echo $ECHO_N "(cached) $ECHO_C" >&6
23927 fi
23928 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
23929 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
23930 else
23931   # Is the header compilable?
23932 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
23933 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
23934 cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940 $ac_includes_default
23941 #include <sys/statvfs.h>
23942 _ACEOF
23943 rm -f conftest.$ac_objext
23944 if { (ac_try="$ac_compile"
23945 case "(($ac_try" in
23946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23947   *) ac_try_echo=$ac_try;;
23948 esac
23949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23950   (eval "$ac_compile") 2>conftest.er1
23951   ac_status=$?
23952   grep -v '^ *+' conftest.er1 >conftest.err
23953   rm -f conftest.er1
23954   cat conftest.err >&5
23955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956   (exit $ac_status); } &&
23957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23958   { (case "(($ac_try" in
23959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960   *) ac_try_echo=$ac_try;;
23961 esac
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963   (eval "$ac_try") 2>&5
23964   ac_status=$?
23965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966   (exit $ac_status); }; } &&
23967          { ac_try='test -s conftest.$ac_objext'
23968   { (case "(($ac_try" in
23969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23970   *) ac_try_echo=$ac_try;;
23971 esac
23972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23973   (eval "$ac_try") 2>&5
23974   ac_status=$?
23975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23976   (exit $ac_status); }; }; then
23977   ac_header_compiler=yes
23978 else
23979   echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23981
23982         ac_header_compiler=no
23983 fi
23984
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23987 echo "${ECHO_T}$ac_header_compiler" >&6; }
23988
23989 # Is the header present?
23990 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
23991 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
23992 cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h.  */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h.  */
23998 #include <sys/statvfs.h>
23999 _ACEOF
24000 if { (ac_try="$ac_cpp conftest.$ac_ext"
24001 case "(($ac_try" in
24002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003   *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24007   ac_status=$?
24008   grep -v '^ *+' conftest.er1 >conftest.err
24009   rm -f conftest.er1
24010   cat conftest.err >&5
24011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24012   (exit $ac_status); } >/dev/null; then
24013   if test -s conftest.err; then
24014     ac_cpp_err=$ac_c_preproc_warn_flag
24015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24016   else
24017     ac_cpp_err=
24018   fi
24019 else
24020   ac_cpp_err=yes
24021 fi
24022 if test -z "$ac_cpp_err"; then
24023   ac_header_preproc=yes
24024 else
24025   echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24027
24028   ac_header_preproc=no
24029 fi
24030
24031 rm -f conftest.err conftest.$ac_ext
24032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24033 echo "${ECHO_T}$ac_header_preproc" >&6; }
24034
24035 # So?  What about this header?
24036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24037   yes:no: )
24038     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24039 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24040     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24041 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24042     ac_header_preproc=yes
24043     ;;
24044   no:yes:* )
24045     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24046 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24047     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24048 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24049     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24050 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24051     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24052 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24053     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24054 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24055     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24056 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24057
24058     ;;
24059 esac
24060 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24061 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24062 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24063   echo $ECHO_N "(cached) $ECHO_C" >&6
24064 else
24065   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24066 fi
24067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24068 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24069
24070 fi
24071 if test $ac_cv_header_sys_statvfs_h = yes; then
24072
24073 cat >>confdefs.h <<\_ACEOF
24074 #define HAVE_SYS_STATVFS_H 1
24075 _ACEOF
24076
24077 fi
24078
24079
24080
24081 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24082 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24083 if test "${ac_cv_type_signal+set}" = set; then
24084   echo $ECHO_N "(cached) $ECHO_C" >&6
24085 else
24086   cat >conftest.$ac_ext <<_ACEOF
24087 /* confdefs.h.  */
24088 _ACEOF
24089 cat confdefs.h >>conftest.$ac_ext
24090 cat >>conftest.$ac_ext <<_ACEOF
24091 /* end confdefs.h.  */
24092 #include <sys/types.h>
24093 #include <signal.h>
24094
24095 int
24096 main ()
24097 {
24098 return *(signal (0, 0)) (0) == 1;
24099   ;
24100   return 0;
24101 }
24102 _ACEOF
24103 rm -f conftest.$ac_objext
24104 if { (ac_try="$ac_compile"
24105 case "(($ac_try" in
24106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24107   *) ac_try_echo=$ac_try;;
24108 esac
24109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24110   (eval "$ac_compile") 2>conftest.er1
24111   ac_status=$?
24112   grep -v '^ *+' conftest.er1 >conftest.err
24113   rm -f conftest.er1
24114   cat conftest.err >&5
24115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24116   (exit $ac_status); } &&
24117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24118   { (case "(($ac_try" in
24119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24120   *) ac_try_echo=$ac_try;;
24121 esac
24122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24123   (eval "$ac_try") 2>&5
24124   ac_status=$?
24125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126   (exit $ac_status); }; } &&
24127          { ac_try='test -s conftest.$ac_objext'
24128   { (case "(($ac_try" in
24129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24130   *) ac_try_echo=$ac_try;;
24131 esac
24132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24133   (eval "$ac_try") 2>&5
24134   ac_status=$?
24135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24136   (exit $ac_status); }; }; then
24137   ac_cv_type_signal=int
24138 else
24139   echo "$as_me: failed program was:" >&5
24140 sed 's/^/| /' conftest.$ac_ext >&5
24141
24142         ac_cv_type_signal=void
24143 fi
24144
24145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24146 fi
24147 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24148 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24149
24150 cat >>confdefs.h <<_ACEOF
24151 #define RETSIGTYPE $ac_cv_type_signal
24152 _ACEOF
24153
24154
24155
24156   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24157 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24158   if test "${bash_cv_signal_vintage+set}" = set; then
24159   echo $ECHO_N "(cached) $ECHO_C" >&6
24160 else
24161
24162     cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168 #include <signal.h>
24169 int
24170 main ()
24171 {
24172
24173       sigset_t ss;
24174       struct sigaction sa;
24175       sigemptyset(&ss); sigsuspend(&ss);
24176       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24177       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24178
24179   ;
24180   return 0;
24181 }
24182 _ACEOF
24183 rm -f conftest.$ac_objext conftest$ac_exeext
24184 if { (ac_try="$ac_link"
24185 case "(($ac_try" in
24186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24187   *) ac_try_echo=$ac_try;;
24188 esac
24189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24190   (eval "$ac_link") 2>conftest.er1
24191   ac_status=$?
24192   grep -v '^ *+' conftest.er1 >conftest.err
24193   rm -f conftest.er1
24194   cat conftest.err >&5
24195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196   (exit $ac_status); } &&
24197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24198   { (case "(($ac_try" in
24199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24200   *) ac_try_echo=$ac_try;;
24201 esac
24202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24203   (eval "$ac_try") 2>&5
24204   ac_status=$?
24205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24206   (exit $ac_status); }; } &&
24207          { ac_try='test -s conftest$ac_exeext'
24208   { (case "(($ac_try" in
24209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24210   *) ac_try_echo=$ac_try;;
24211 esac
24212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24213   (eval "$ac_try") 2>&5
24214   ac_status=$?
24215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24216   (exit $ac_status); }; }; then
24217   bash_cv_signal_vintage="posix"
24218 else
24219   echo "$as_me: failed program was:" >&5
24220 sed 's/^/| /' conftest.$ac_ext >&5
24221
24222
24223       cat >conftest.$ac_ext <<_ACEOF
24224 /* confdefs.h.  */
24225 _ACEOF
24226 cat confdefs.h >>conftest.$ac_ext
24227 cat >>conftest.$ac_ext <<_ACEOF
24228 /* end confdefs.h.  */
24229 #include <signal.h>
24230 int
24231 main ()
24232 {
24233
24234           int mask = sigmask(SIGINT);
24235           sigsetmask(mask); sigblock(mask); sigpause(mask);
24236
24237   ;
24238   return 0;
24239 }
24240 _ACEOF
24241 rm -f conftest.$ac_objext conftest$ac_exeext
24242 if { (ac_try="$ac_link"
24243 case "(($ac_try" in
24244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24245   *) ac_try_echo=$ac_try;;
24246 esac
24247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24248   (eval "$ac_link") 2>conftest.er1
24249   ac_status=$?
24250   grep -v '^ *+' conftest.er1 >conftest.err
24251   rm -f conftest.er1
24252   cat conftest.err >&5
24253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24254   (exit $ac_status); } &&
24255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24256   { (case "(($ac_try" in
24257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24258   *) ac_try_echo=$ac_try;;
24259 esac
24260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24261   (eval "$ac_try") 2>&5
24262   ac_status=$?
24263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24264   (exit $ac_status); }; } &&
24265          { ac_try='test -s conftest$ac_exeext'
24266   { (case "(($ac_try" in
24267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24268   *) ac_try_echo=$ac_try;;
24269 esac
24270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24271   (eval "$ac_try") 2>&5
24272   ac_status=$?
24273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274   (exit $ac_status); }; }; then
24275   bash_cv_signal_vintage="4.2bsd"
24276 else
24277   echo "$as_me: failed program was:" >&5
24278 sed 's/^/| /' conftest.$ac_ext >&5
24279
24280
24281         cat >conftest.$ac_ext <<_ACEOF
24282 /* confdefs.h.  */
24283 _ACEOF
24284 cat confdefs.h >>conftest.$ac_ext
24285 cat >>conftest.$ac_ext <<_ACEOF
24286 /* end confdefs.h.  */
24287
24288           #include <signal.h>
24289           RETSIGTYPE foo() { }
24290 int
24291 main ()
24292 {
24293
24294                   int mask = sigmask(SIGINT);
24295                   sigset(SIGINT, foo); sigrelse(SIGINT);
24296                   sighold(SIGINT); sigpause(SIGINT);
24297
24298   ;
24299   return 0;
24300 }
24301 _ACEOF
24302 rm -f conftest.$ac_objext conftest$ac_exeext
24303 if { (ac_try="$ac_link"
24304 case "(($ac_try" in
24305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24306   *) ac_try_echo=$ac_try;;
24307 esac
24308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24309   (eval "$ac_link") 2>conftest.er1
24310   ac_status=$?
24311   grep -v '^ *+' conftest.er1 >conftest.err
24312   rm -f conftest.er1
24313   cat conftest.err >&5
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); } &&
24316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24317   { (case "(($ac_try" in
24318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319   *) ac_try_echo=$ac_try;;
24320 esac
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322   (eval "$ac_try") 2>&5
24323   ac_status=$?
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); }; } &&
24326          { ac_try='test -s conftest$ac_exeext'
24327   { (case "(($ac_try" in
24328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24329   *) ac_try_echo=$ac_try;;
24330 esac
24331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24332   (eval "$ac_try") 2>&5
24333   ac_status=$?
24334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335   (exit $ac_status); }; }; then
24336   bash_cv_signal_vintage="svr3"
24337 else
24338   echo "$as_me: failed program was:" >&5
24339 sed 's/^/| /' conftest.$ac_ext >&5
24340
24341         bash_cv_signal_vintage="v7"
24342
24343 fi
24344
24345 rm -f core conftest.err conftest.$ac_objext \
24346       conftest$ac_exeext conftest.$ac_ext
24347
24348 fi
24349
24350 rm -f core conftest.err conftest.$ac_objext \
24351       conftest$ac_exeext conftest.$ac_ext
24352
24353 fi
24354
24355 rm -f core conftest.err conftest.$ac_objext \
24356       conftest$ac_exeext conftest.$ac_ext
24357
24358 fi
24359
24360   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24361 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24362   if test "$bash_cv_signal_vintage" = "posix"; then
24363     cat >>confdefs.h <<\_ACEOF
24364 #define HAVE_POSIX_SIGNALS 1
24365 _ACEOF
24366
24367   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24368     cat >>confdefs.h <<\_ACEOF
24369 #define HAVE_BSD_SIGNALS 1
24370 _ACEOF
24371
24372   elif test "$bash_cv_signal_vintage" = "svr3"; then
24373     cat >>confdefs.h <<\_ACEOF
24374 #define HAVE_USG_SIGHOLD 1
24375 _ACEOF
24376
24377   fi
24378
24379 { echo "$as_me:$LINENO: checking for mode_t" >&5
24380 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24381 if test "${ac_cv_type_mode_t+set}" = set; then
24382   echo $ECHO_N "(cached) $ECHO_C" >&6
24383 else
24384   cat >conftest.$ac_ext <<_ACEOF
24385 /* confdefs.h.  */
24386 _ACEOF
24387 cat confdefs.h >>conftest.$ac_ext
24388 cat >>conftest.$ac_ext <<_ACEOF
24389 /* end confdefs.h.  */
24390 $ac_includes_default
24391 typedef mode_t ac__type_new_;
24392 int
24393 main ()
24394 {
24395 if ((ac__type_new_ *) 0)
24396   return 0;
24397 if (sizeof (ac__type_new_))
24398   return 0;
24399   ;
24400   return 0;
24401 }
24402 _ACEOF
24403 rm -f conftest.$ac_objext
24404 if { (ac_try="$ac_compile"
24405 case "(($ac_try" in
24406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24407   *) ac_try_echo=$ac_try;;
24408 esac
24409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24410   (eval "$ac_compile") 2>conftest.er1
24411   ac_status=$?
24412   grep -v '^ *+' conftest.er1 >conftest.err
24413   rm -f conftest.er1
24414   cat conftest.err >&5
24415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24416   (exit $ac_status); } &&
24417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24418   { (case "(($ac_try" in
24419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24420   *) ac_try_echo=$ac_try;;
24421 esac
24422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24423   (eval "$ac_try") 2>&5
24424   ac_status=$?
24425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); }; } &&
24427          { ac_try='test -s conftest.$ac_objext'
24428   { (case "(($ac_try" in
24429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24430   *) ac_try_echo=$ac_try;;
24431 esac
24432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24433   (eval "$ac_try") 2>&5
24434   ac_status=$?
24435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); }; }; then
24437   ac_cv_type_mode_t=yes
24438 else
24439   echo "$as_me: failed program was:" >&5
24440 sed 's/^/| /' conftest.$ac_ext >&5
24441
24442         ac_cv_type_mode_t=no
24443 fi
24444
24445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24446 fi
24447 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24448 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24449 if test $ac_cv_type_mode_t = yes; then
24450   :
24451 else
24452
24453 cat >>confdefs.h <<_ACEOF
24454 #define mode_t int
24455 _ACEOF
24456
24457 fi
24458
24459 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24460 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24461 if test "${ac_cv_type_uid_t+set}" = set; then
24462   echo $ECHO_N "(cached) $ECHO_C" >&6
24463 else
24464   cat >conftest.$ac_ext <<_ACEOF
24465 /* confdefs.h.  */
24466 _ACEOF
24467 cat confdefs.h >>conftest.$ac_ext
24468 cat >>conftest.$ac_ext <<_ACEOF
24469 /* end confdefs.h.  */
24470 #include <sys/types.h>
24471
24472 _ACEOF
24473 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24474   $EGREP "uid_t" >/dev/null 2>&1; then
24475   ac_cv_type_uid_t=yes
24476 else
24477   ac_cv_type_uid_t=no
24478 fi
24479 rm -f conftest*
24480
24481 fi
24482 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24483 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24484 if test $ac_cv_type_uid_t = no; then
24485
24486 cat >>confdefs.h <<\_ACEOF
24487 #define uid_t int
24488 _ACEOF
24489
24490
24491 cat >>confdefs.h <<\_ACEOF
24492 #define gid_t int
24493 _ACEOF
24494
24495 fi
24496
24497 { echo "$as_me:$LINENO: checking for size_t" >&5
24498 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24499 if test "${ac_cv_type_size_t+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502   cat >conftest.$ac_ext <<_ACEOF
24503 /* confdefs.h.  */
24504 _ACEOF
24505 cat confdefs.h >>conftest.$ac_ext
24506 cat >>conftest.$ac_ext <<_ACEOF
24507 /* end confdefs.h.  */
24508 $ac_includes_default
24509 typedef size_t ac__type_new_;
24510 int
24511 main ()
24512 {
24513 if ((ac__type_new_ *) 0)
24514   return 0;
24515 if (sizeof (ac__type_new_))
24516   return 0;
24517   ;
24518   return 0;
24519 }
24520 _ACEOF
24521 rm -f conftest.$ac_objext
24522 if { (ac_try="$ac_compile"
24523 case "(($ac_try" in
24524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24525   *) ac_try_echo=$ac_try;;
24526 esac
24527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24528   (eval "$ac_compile") 2>conftest.er1
24529   ac_status=$?
24530   grep -v '^ *+' conftest.er1 >conftest.err
24531   rm -f conftest.er1
24532   cat conftest.err >&5
24533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534   (exit $ac_status); } &&
24535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24536   { (case "(($ac_try" in
24537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24538   *) ac_try_echo=$ac_try;;
24539 esac
24540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24541   (eval "$ac_try") 2>&5
24542   ac_status=$?
24543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544   (exit $ac_status); }; } &&
24545          { ac_try='test -s conftest.$ac_objext'
24546   { (case "(($ac_try" in
24547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548   *) ac_try_echo=$ac_try;;
24549 esac
24550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24551   (eval "$ac_try") 2>&5
24552   ac_status=$?
24553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554   (exit $ac_status); }; }; then
24555   ac_cv_type_size_t=yes
24556 else
24557   echo "$as_me: failed program was:" >&5
24558 sed 's/^/| /' conftest.$ac_ext >&5
24559
24560         ac_cv_type_size_t=no
24561 fi
24562
24563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24564 fi
24565 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24566 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24567 if test $ac_cv_type_size_t = yes; then
24568   :
24569 else
24570
24571 cat >>confdefs.h <<_ACEOF
24572 #define size_t unsigned int
24573 _ACEOF
24574
24575 fi
24576
24577 { echo "$as_me:$LINENO: checking for pid_t" >&5
24578 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24579 if test "${ac_cv_type_pid_t+set}" = set; then
24580   echo $ECHO_N "(cached) $ECHO_C" >&6
24581 else
24582   cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588 $ac_includes_default
24589 typedef pid_t ac__type_new_;
24590 int
24591 main ()
24592 {
24593 if ((ac__type_new_ *) 0)
24594   return 0;
24595 if (sizeof (ac__type_new_))
24596   return 0;
24597   ;
24598   return 0;
24599 }
24600 _ACEOF
24601 rm -f conftest.$ac_objext
24602 if { (ac_try="$ac_compile"
24603 case "(($ac_try" in
24604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24605   *) ac_try_echo=$ac_try;;
24606 esac
24607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24608   (eval "$ac_compile") 2>conftest.er1
24609   ac_status=$?
24610   grep -v '^ *+' conftest.er1 >conftest.err
24611   rm -f conftest.er1
24612   cat conftest.err >&5
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); } &&
24615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24616   { (case "(($ac_try" in
24617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24618   *) ac_try_echo=$ac_try;;
24619 esac
24620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24621   (eval "$ac_try") 2>&5
24622   ac_status=$?
24623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624   (exit $ac_status); }; } &&
24625          { ac_try='test -s conftest.$ac_objext'
24626   { (case "(($ac_try" in
24627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24628   *) ac_try_echo=$ac_try;;
24629 esac
24630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24631   (eval "$ac_try") 2>&5
24632   ac_status=$?
24633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634   (exit $ac_status); }; }; then
24635   ac_cv_type_pid_t=yes
24636 else
24637   echo "$as_me: failed program was:" >&5
24638 sed 's/^/| /' conftest.$ac_ext >&5
24639
24640         ac_cv_type_pid_t=no
24641 fi
24642
24643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24644 fi
24645 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24646 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24647 if test $ac_cv_type_pid_t = yes; then
24648   :
24649 else
24650
24651 cat >>confdefs.h <<_ACEOF
24652 #define pid_t int
24653 _ACEOF
24654
24655 fi
24656
24657 { echo "$as_me:$LINENO: checking for off_t" >&5
24658 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24659 if test "${ac_cv_type_off_t+set}" = set; then
24660   echo $ECHO_N "(cached) $ECHO_C" >&6
24661 else
24662   cat >conftest.$ac_ext <<_ACEOF
24663 /* confdefs.h.  */
24664 _ACEOF
24665 cat confdefs.h >>conftest.$ac_ext
24666 cat >>conftest.$ac_ext <<_ACEOF
24667 /* end confdefs.h.  */
24668 $ac_includes_default
24669 typedef off_t ac__type_new_;
24670 int
24671 main ()
24672 {
24673 if ((ac__type_new_ *) 0)
24674   return 0;
24675 if (sizeof (ac__type_new_))
24676   return 0;
24677   ;
24678   return 0;
24679 }
24680 _ACEOF
24681 rm -f conftest.$ac_objext
24682 if { (ac_try="$ac_compile"
24683 case "(($ac_try" in
24684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24685   *) ac_try_echo=$ac_try;;
24686 esac
24687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24688   (eval "$ac_compile") 2>conftest.er1
24689   ac_status=$?
24690   grep -v '^ *+' conftest.er1 >conftest.err
24691   rm -f conftest.er1
24692   cat conftest.err >&5
24693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24694   (exit $ac_status); } &&
24695          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24696   { (case "(($ac_try" in
24697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24698   *) ac_try_echo=$ac_try;;
24699 esac
24700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24701   (eval "$ac_try") 2>&5
24702   ac_status=$?
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); }; } &&
24705          { ac_try='test -s conftest.$ac_objext'
24706   { (case "(($ac_try" in
24707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24708   *) ac_try_echo=$ac_try;;
24709 esac
24710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24711   (eval "$ac_try") 2>&5
24712   ac_status=$?
24713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24714   (exit $ac_status); }; }; then
24715   ac_cv_type_off_t=yes
24716 else
24717   echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720         ac_cv_type_off_t=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 fi
24725 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24726 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24727 if test $ac_cv_type_off_t = yes; then
24728   :
24729 else
24730
24731 cat >>confdefs.h <<_ACEOF
24732 #define off_t long int
24733 _ACEOF
24734
24735 fi
24736
24737 { echo "$as_me:$LINENO: checking for ino_t" >&5
24738 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24739 if test "${ac_cv_type_ino_t+set}" = set; then
24740   echo $ECHO_N "(cached) $ECHO_C" >&6
24741 else
24742   cat >conftest.$ac_ext <<_ACEOF
24743 /* confdefs.h.  */
24744 _ACEOF
24745 cat confdefs.h >>conftest.$ac_ext
24746 cat >>conftest.$ac_ext <<_ACEOF
24747 /* end confdefs.h.  */
24748 $ac_includes_default
24749 typedef ino_t ac__type_new_;
24750 int
24751 main ()
24752 {
24753 if ((ac__type_new_ *) 0)
24754   return 0;
24755 if (sizeof (ac__type_new_))
24756   return 0;
24757   ;
24758   return 0;
24759 }
24760 _ACEOF
24761 rm -f conftest.$ac_objext
24762 if { (ac_try="$ac_compile"
24763 case "(($ac_try" in
24764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765   *) ac_try_echo=$ac_try;;
24766 esac
24767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24768   (eval "$ac_compile") 2>conftest.er1
24769   ac_status=$?
24770   grep -v '^ *+' conftest.er1 >conftest.err
24771   rm -f conftest.er1
24772   cat conftest.err >&5
24773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774   (exit $ac_status); } &&
24775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24776   { (case "(($ac_try" in
24777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24778   *) ac_try_echo=$ac_try;;
24779 esac
24780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24781   (eval "$ac_try") 2>&5
24782   ac_status=$?
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); }; } &&
24785          { ac_try='test -s conftest.$ac_objext'
24786   { (case "(($ac_try" in
24787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788   *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791   (eval "$ac_try") 2>&5
24792   ac_status=$?
24793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794   (exit $ac_status); }; }; then
24795   ac_cv_type_ino_t=yes
24796 else
24797   echo "$as_me: failed program was:" >&5
24798 sed 's/^/| /' conftest.$ac_ext >&5
24799
24800         ac_cv_type_ino_t=no
24801 fi
24802
24803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24804 fi
24805 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24806 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24807 if test $ac_cv_type_ino_t = yes; then
24808   :
24809 else
24810
24811 cat >>confdefs.h <<_ACEOF
24812 #define ino_t unsigned long
24813 _ACEOF
24814
24815 fi
24816
24817 { echo "$as_me:$LINENO: checking for dev_t" >&5
24818 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24819 if test "${ac_cv_type_dev_t+set}" = set; then
24820   echo $ECHO_N "(cached) $ECHO_C" >&6
24821 else
24822   cat >conftest.$ac_ext <<_ACEOF
24823 /* confdefs.h.  */
24824 _ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h.  */
24828 $ac_includes_default
24829 typedef dev_t ac__type_new_;
24830 int
24831 main ()
24832 {
24833 if ((ac__type_new_ *) 0)
24834   return 0;
24835 if (sizeof (ac__type_new_))
24836   return 0;
24837   ;
24838   return 0;
24839 }
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (ac_try="$ac_compile"
24843 case "(($ac_try" in
24844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24845   *) ac_try_echo=$ac_try;;
24846 esac
24847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24848   (eval "$ac_compile") 2>conftest.er1
24849   ac_status=$?
24850   grep -v '^ *+' conftest.er1 >conftest.err
24851   rm -f conftest.er1
24852   cat conftest.err >&5
24853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24854   (exit $ac_status); } &&
24855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24856   { (case "(($ac_try" in
24857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24858   *) ac_try_echo=$ac_try;;
24859 esac
24860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24861   (eval "$ac_try") 2>&5
24862   ac_status=$?
24863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864   (exit $ac_status); }; } &&
24865          { ac_try='test -s conftest.$ac_objext'
24866   { (case "(($ac_try" in
24867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24868   *) ac_try_echo=$ac_try;;
24869 esac
24870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24871   (eval "$ac_try") 2>&5
24872   ac_status=$?
24873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24874   (exit $ac_status); }; }; then
24875   ac_cv_type_dev_t=yes
24876 else
24877   echo "$as_me: failed program was:" >&5
24878 sed 's/^/| /' conftest.$ac_ext >&5
24879
24880         ac_cv_type_dev_t=no
24881 fi
24882
24883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24884 fi
24885 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24886 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24887 if test $ac_cv_type_dev_t = yes; then
24888   :
24889 else
24890
24891 cat >>confdefs.h <<_ACEOF
24892 #define dev_t unsigned long
24893 _ACEOF
24894
24895 fi
24896
24897 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24898 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24899 if test "${ac_cv_type_daddr_t+set}" = set; then
24900   echo $ECHO_N "(cached) $ECHO_C" >&6
24901 else
24902   cat >conftest.$ac_ext <<_ACEOF
24903 /* confdefs.h.  */
24904 _ACEOF
24905 cat confdefs.h >>conftest.$ac_ext
24906 cat >>conftest.$ac_ext <<_ACEOF
24907 /* end confdefs.h.  */
24908 $ac_includes_default
24909 typedef daddr_t ac__type_new_;
24910 int
24911 main ()
24912 {
24913 if ((ac__type_new_ *) 0)
24914   return 0;
24915 if (sizeof (ac__type_new_))
24916   return 0;
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925   *) ac_try_echo=$ac_try;;
24926 esac
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928   (eval "$ac_compile") 2>conftest.er1
24929   ac_status=$?
24930   grep -v '^ *+' conftest.er1 >conftest.err
24931   rm -f conftest.er1
24932   cat conftest.err >&5
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); } &&
24935          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24936   { (case "(($ac_try" in
24937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24938   *) ac_try_echo=$ac_try;;
24939 esac
24940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24941   (eval "$ac_try") 2>&5
24942   ac_status=$?
24943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944   (exit $ac_status); }; } &&
24945          { ac_try='test -s conftest.$ac_objext'
24946   { (case "(($ac_try" in
24947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24948   *) ac_try_echo=$ac_try;;
24949 esac
24950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24951   (eval "$ac_try") 2>&5
24952   ac_status=$?
24953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24954   (exit $ac_status); }; }; then
24955   ac_cv_type_daddr_t=yes
24956 else
24957   echo "$as_me: failed program was:" >&5
24958 sed 's/^/| /' conftest.$ac_ext >&5
24959
24960         ac_cv_type_daddr_t=no
24961 fi
24962
24963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24964 fi
24965 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
24966 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
24967 if test $ac_cv_type_daddr_t = yes; then
24968   :
24969 else
24970
24971 cat >>confdefs.h <<_ACEOF
24972 #define daddr_t long
24973 _ACEOF
24974
24975 fi
24976
24977 { echo "$as_me:$LINENO: checking for major_t" >&5
24978 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
24979 if test "${ac_cv_type_major_t+set}" = set; then
24980   echo $ECHO_N "(cached) $ECHO_C" >&6
24981 else
24982   cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h.  */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h.  */
24988 $ac_includes_default
24989 typedef major_t ac__type_new_;
24990 int
24991 main ()
24992 {
24993 if ((ac__type_new_ *) 0)
24994   return 0;
24995 if (sizeof (ac__type_new_))
24996   return 0;
24997   ;
24998   return 0;
24999 }
25000 _ACEOF
25001 rm -f conftest.$ac_objext
25002 if { (ac_try="$ac_compile"
25003 case "(($ac_try" in
25004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005   *) ac_try_echo=$ac_try;;
25006 esac
25007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25008   (eval "$ac_compile") 2>conftest.er1
25009   ac_status=$?
25010   grep -v '^ *+' conftest.er1 >conftest.err
25011   rm -f conftest.er1
25012   cat conftest.err >&5
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); } &&
25015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25016   { (case "(($ac_try" in
25017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018   *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021   (eval "$ac_try") 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; } &&
25025          { ac_try='test -s conftest.$ac_objext'
25026   { (case "(($ac_try" in
25027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25028   *) ac_try_echo=$ac_try;;
25029 esac
25030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25031   (eval "$ac_try") 2>&5
25032   ac_status=$?
25033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25034   (exit $ac_status); }; }; then
25035   ac_cv_type_major_t=yes
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         ac_cv_type_major_t=no
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25044 fi
25045 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25046 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25047 if test $ac_cv_type_major_t = yes; then
25048   :
25049 else
25050
25051 cat >>confdefs.h <<_ACEOF
25052 #define major_t int
25053 _ACEOF
25054
25055 fi
25056
25057 { echo "$as_me:$LINENO: checking for minor_t" >&5
25058 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25059 if test "${ac_cv_type_minor_t+set}" = set; then
25060   echo $ECHO_N "(cached) $ECHO_C" >&6
25061 else
25062   cat >conftest.$ac_ext <<_ACEOF
25063 /* confdefs.h.  */
25064 _ACEOF
25065 cat confdefs.h >>conftest.$ac_ext
25066 cat >>conftest.$ac_ext <<_ACEOF
25067 /* end confdefs.h.  */
25068 $ac_includes_default
25069 typedef minor_t ac__type_new_;
25070 int
25071 main ()
25072 {
25073 if ((ac__type_new_ *) 0)
25074   return 0;
25075 if (sizeof (ac__type_new_))
25076   return 0;
25077   ;
25078   return 0;
25079 }
25080 _ACEOF
25081 rm -f conftest.$ac_objext
25082 if { (ac_try="$ac_compile"
25083 case "(($ac_try" in
25084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25085   *) ac_try_echo=$ac_try;;
25086 esac
25087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25088   (eval "$ac_compile") 2>conftest.er1
25089   ac_status=$?
25090   grep -v '^ *+' conftest.er1 >conftest.err
25091   rm -f conftest.er1
25092   cat conftest.err >&5
25093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094   (exit $ac_status); } &&
25095          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25096   { (case "(($ac_try" in
25097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25098   *) ac_try_echo=$ac_try;;
25099 esac
25100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25101   (eval "$ac_try") 2>&5
25102   ac_status=$?
25103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25104   (exit $ac_status); }; } &&
25105          { ac_try='test -s conftest.$ac_objext'
25106   { (case "(($ac_try" in
25107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25108   *) ac_try_echo=$ac_try;;
25109 esac
25110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25111   (eval "$ac_try") 2>&5
25112   ac_status=$?
25113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25114   (exit $ac_status); }; }; then
25115   ac_cv_type_minor_t=yes
25116 else
25117   echo "$as_me: failed program was:" >&5
25118 sed 's/^/| /' conftest.$ac_ext >&5
25119
25120         ac_cv_type_minor_t=no
25121 fi
25122
25123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25124 fi
25125 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25126 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25127 if test $ac_cv_type_minor_t = yes; then
25128   :
25129 else
25130
25131 cat >>confdefs.h <<_ACEOF
25132 #define minor_t int
25133 _ACEOF
25134
25135 fi
25136
25137 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25138 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25139 if test "${ac_cv_type_ssize_t+set}" = set; then
25140   echo $ECHO_N "(cached) $ECHO_C" >&6
25141 else
25142   cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148 $ac_includes_default
25149 typedef ssize_t ac__type_new_;
25150 int
25151 main ()
25152 {
25153 if ((ac__type_new_ *) 0)
25154   return 0;
25155 if (sizeof (ac__type_new_))
25156   return 0;
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest.$ac_objext
25162 if { (ac_try="$ac_compile"
25163 case "(($ac_try" in
25164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165   *) ac_try_echo=$ac_try;;
25166 esac
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168   (eval "$ac_compile") 2>conftest.er1
25169   ac_status=$?
25170   grep -v '^ *+' conftest.er1 >conftest.err
25171   rm -f conftest.er1
25172   cat conftest.err >&5
25173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25174   (exit $ac_status); } &&
25175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25176   { (case "(($ac_try" in
25177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25178   *) ac_try_echo=$ac_try;;
25179 esac
25180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25181   (eval "$ac_try") 2>&5
25182   ac_status=$?
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); }; } &&
25185          { ac_try='test -s conftest.$ac_objext'
25186   { (case "(($ac_try" in
25187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25188   *) ac_try_echo=$ac_try;;
25189 esac
25190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25191   (eval "$ac_try") 2>&5
25192   ac_status=$?
25193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25194   (exit $ac_status); }; }; then
25195   ac_cv_type_ssize_t=yes
25196 else
25197   echo "$as_me: failed program was:" >&5
25198 sed 's/^/| /' conftest.$ac_ext >&5
25199
25200         ac_cv_type_ssize_t=no
25201 fi
25202
25203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25204 fi
25205 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25206 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25207 if test $ac_cv_type_ssize_t = yes; then
25208   :
25209 else
25210
25211 cat >>confdefs.h <<_ACEOF
25212 #define ssize_t int
25213 _ACEOF
25214
25215 fi
25216
25217 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25218 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25219 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25220   echo $ECHO_N "(cached) $ECHO_C" >&6
25221 else
25222   cat >conftest.$ac_ext <<_ACEOF
25223 /* confdefs.h.  */
25224 _ACEOF
25225 cat confdefs.h >>conftest.$ac_ext
25226 cat >>conftest.$ac_ext <<_ACEOF
25227 /* end confdefs.h.  */
25228 $ac_includes_default
25229 int
25230 main ()
25231 {
25232 static struct stat ac_aggr;
25233 if (ac_aggr.st_blocks)
25234 return 0;
25235   ;
25236   return 0;
25237 }
25238 _ACEOF
25239 rm -f conftest.$ac_objext
25240 if { (ac_try="$ac_compile"
25241 case "(($ac_try" in
25242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243   *) ac_try_echo=$ac_try;;
25244 esac
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246   (eval "$ac_compile") 2>conftest.er1
25247   ac_status=$?
25248   grep -v '^ *+' conftest.er1 >conftest.err
25249   rm -f conftest.er1
25250   cat conftest.err >&5
25251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25252   (exit $ac_status); } &&
25253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25254   { (case "(($ac_try" in
25255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25256   *) ac_try_echo=$ac_try;;
25257 esac
25258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25259   (eval "$ac_try") 2>&5
25260   ac_status=$?
25261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25262   (exit $ac_status); }; } &&
25263          { ac_try='test -s conftest.$ac_objext'
25264   { (case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269   (eval "$ac_try") 2>&5
25270   ac_status=$?
25271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272   (exit $ac_status); }; }; then
25273   ac_cv_member_struct_stat_st_blocks=yes
25274 else
25275   echo "$as_me: failed program was:" >&5
25276 sed 's/^/| /' conftest.$ac_ext >&5
25277
25278         cat >conftest.$ac_ext <<_ACEOF
25279 /* confdefs.h.  */
25280 _ACEOF
25281 cat confdefs.h >>conftest.$ac_ext
25282 cat >>conftest.$ac_ext <<_ACEOF
25283 /* end confdefs.h.  */
25284 $ac_includes_default
25285 int
25286 main ()
25287 {
25288 static struct stat ac_aggr;
25289 if (sizeof ac_aggr.st_blocks)
25290 return 0;
25291   ;
25292   return 0;
25293 }
25294 _ACEOF
25295 rm -f conftest.$ac_objext
25296 if { (ac_try="$ac_compile"
25297 case "(($ac_try" in
25298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299   *) ac_try_echo=$ac_try;;
25300 esac
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302   (eval "$ac_compile") 2>conftest.er1
25303   ac_status=$?
25304   grep -v '^ *+' conftest.er1 >conftest.err
25305   rm -f conftest.er1
25306   cat conftest.err >&5
25307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308   (exit $ac_status); } &&
25309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25310   { (case "(($ac_try" in
25311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312   *) ac_try_echo=$ac_try;;
25313 esac
25314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25315   (eval "$ac_try") 2>&5
25316   ac_status=$?
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); }; } &&
25319          { ac_try='test -s conftest.$ac_objext'
25320   { (case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_try") 2>&5
25326   ac_status=$?
25327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328   (exit $ac_status); }; }; then
25329   ac_cv_member_struct_stat_st_blocks=yes
25330 else
25331   echo "$as_me: failed program was:" >&5
25332 sed 's/^/| /' conftest.$ac_ext >&5
25333
25334         ac_cv_member_struct_stat_st_blocks=no
25335 fi
25336
25337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25338 fi
25339
25340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25341 fi
25342 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25343 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25344 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25345
25346 cat >>confdefs.h <<_ACEOF
25347 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25348 _ACEOF
25349
25350
25351 cat >>confdefs.h <<\_ACEOF
25352 #define HAVE_ST_BLOCKS 1
25353 _ACEOF
25354
25355 else
25356   case " $LIBOBJS " in
25357   *" fileblocks.$ac_objext "* ) ;;
25358   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25359  ;;
25360 esac
25361
25362 fi
25363
25364
25365 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25366 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25367 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25368   echo $ECHO_N "(cached) $ECHO_C" >&6
25369 else
25370   cat >conftest.$ac_ext <<_ACEOF
25371 /* confdefs.h.  */
25372 _ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h.  */
25376 $ac_includes_default
25377 int
25378 main ()
25379 {
25380 static struct stat ac_aggr;
25381 if (ac_aggr.st_rdev)
25382 return 0;
25383   ;
25384   return 0;
25385 }
25386 _ACEOF
25387 rm -f conftest.$ac_objext
25388 if { (ac_try="$ac_compile"
25389 case "(($ac_try" in
25390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391   *) ac_try_echo=$ac_try;;
25392 esac
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394   (eval "$ac_compile") 2>conftest.er1
25395   ac_status=$?
25396   grep -v '^ *+' conftest.er1 >conftest.err
25397   rm -f conftest.er1
25398   cat conftest.err >&5
25399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400   (exit $ac_status); } &&
25401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25402   { (case "(($ac_try" in
25403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25404   *) ac_try_echo=$ac_try;;
25405 esac
25406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25407   (eval "$ac_try") 2>&5
25408   ac_status=$?
25409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25410   (exit $ac_status); }; } &&
25411          { ac_try='test -s conftest.$ac_objext'
25412   { (case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417   (eval "$ac_try") 2>&5
25418   ac_status=$?
25419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420   (exit $ac_status); }; }; then
25421   ac_cv_member_struct_stat_st_rdev=yes
25422 else
25423   echo "$as_me: failed program was:" >&5
25424 sed 's/^/| /' conftest.$ac_ext >&5
25425
25426         cat >conftest.$ac_ext <<_ACEOF
25427 /* confdefs.h.  */
25428 _ACEOF
25429 cat confdefs.h >>conftest.$ac_ext
25430 cat >>conftest.$ac_ext <<_ACEOF
25431 /* end confdefs.h.  */
25432 $ac_includes_default
25433 int
25434 main ()
25435 {
25436 static struct stat ac_aggr;
25437 if (sizeof ac_aggr.st_rdev)
25438 return 0;
25439   ;
25440   return 0;
25441 }
25442 _ACEOF
25443 rm -f conftest.$ac_objext
25444 if { (ac_try="$ac_compile"
25445 case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_compile") 2>conftest.er1
25451   ac_status=$?
25452   grep -v '^ *+' conftest.er1 >conftest.err
25453   rm -f conftest.er1
25454   cat conftest.err >&5
25455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456   (exit $ac_status); } &&
25457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25458   { (case "(($ac_try" in
25459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460   *) ac_try_echo=$ac_try;;
25461 esac
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463   (eval "$ac_try") 2>&5
25464   ac_status=$?
25465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466   (exit $ac_status); }; } &&
25467          { ac_try='test -s conftest.$ac_objext'
25468   { (case "(($ac_try" in
25469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25470   *) ac_try_echo=$ac_try;;
25471 esac
25472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25473   (eval "$ac_try") 2>&5
25474   ac_status=$?
25475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476   (exit $ac_status); }; }; then
25477   ac_cv_member_struct_stat_st_rdev=yes
25478 else
25479   echo "$as_me: failed program was:" >&5
25480 sed 's/^/| /' conftest.$ac_ext >&5
25481
25482         ac_cv_member_struct_stat_st_rdev=no
25483 fi
25484
25485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25486 fi
25487
25488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25489 fi
25490 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25491 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25492 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25493
25494 cat >>confdefs.h <<_ACEOF
25495 #define HAVE_STRUCT_STAT_ST_RDEV 1
25496 _ACEOF
25497
25498
25499 cat >>confdefs.h <<\_ACEOF
25500 #define HAVE_ST_RDEV 1
25501 _ACEOF
25502
25503 fi
25504
25505
25506 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25507 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25508 if test "${ac_cv_struct_tm+set}" = set; then
25509   echo $ECHO_N "(cached) $ECHO_C" >&6
25510 else
25511   cat >conftest.$ac_ext <<_ACEOF
25512 /* confdefs.h.  */
25513 _ACEOF
25514 cat confdefs.h >>conftest.$ac_ext
25515 cat >>conftest.$ac_ext <<_ACEOF
25516 /* end confdefs.h.  */
25517 #include <sys/types.h>
25518 #include <time.h>
25519
25520 int
25521 main ()
25522 {
25523 struct tm *tp; tp->tm_sec;
25524   ;
25525   return 0;
25526 }
25527 _ACEOF
25528 rm -f conftest.$ac_objext
25529 if { (ac_try="$ac_compile"
25530 case "(($ac_try" in
25531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25532   *) ac_try_echo=$ac_try;;
25533 esac
25534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25535   (eval "$ac_compile") 2>conftest.er1
25536   ac_status=$?
25537   grep -v '^ *+' conftest.er1 >conftest.err
25538   rm -f conftest.er1
25539   cat conftest.err >&5
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); } &&
25542          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25543   { (case "(($ac_try" in
25544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25545   *) ac_try_echo=$ac_try;;
25546 esac
25547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25548   (eval "$ac_try") 2>&5
25549   ac_status=$?
25550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25551   (exit $ac_status); }; } &&
25552          { ac_try='test -s conftest.$ac_objext'
25553   { (case "(($ac_try" in
25554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25555   *) ac_try_echo=$ac_try;;
25556 esac
25557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25558   (eval "$ac_try") 2>&5
25559   ac_status=$?
25560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561   (exit $ac_status); }; }; then
25562   ac_cv_struct_tm=time.h
25563 else
25564   echo "$as_me: failed program was:" >&5
25565 sed 's/^/| /' conftest.$ac_ext >&5
25566
25567         ac_cv_struct_tm=sys/time.h
25568 fi
25569
25570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25571 fi
25572 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25573 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25574 if test $ac_cv_struct_tm = sys/time.h; then
25575
25576 cat >>confdefs.h <<\_ACEOF
25577 #define TM_IN_SYS_TIME 1
25578 _ACEOF
25579
25580 fi
25581
25582 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25583 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25584 if test "${ac_cv_c_const+set}" = set; then
25585   echo $ECHO_N "(cached) $ECHO_C" >&6
25586 else
25587   cat >conftest.$ac_ext <<_ACEOF
25588 /* confdefs.h.  */
25589 _ACEOF
25590 cat confdefs.h >>conftest.$ac_ext
25591 cat >>conftest.$ac_ext <<_ACEOF
25592 /* end confdefs.h.  */
25593
25594 int
25595 main ()
25596 {
25597 /* FIXME: Include the comments suggested by Paul. */
25598 #ifndef __cplusplus
25599   /* Ultrix mips cc rejects this.  */
25600   typedef int charset[2];
25601   const charset x;
25602   /* SunOS 4.1.1 cc rejects this.  */
25603   char const *const *ccp;
25604   char **p;
25605   /* NEC SVR4.0.2 mips cc rejects this.  */
25606   struct point {int x, y;};
25607   static struct point const zero = {0,0};
25608   /* AIX XL C 1.02.0.0 rejects this.
25609      It does not let you subtract one const X* pointer from another in
25610      an arm of an if-expression whose if-part is not a constant
25611      expression */
25612   const char *g = "string";
25613   ccp = &g + (g ? g-g : 0);
25614   /* HPUX 7.0 cc rejects these. */
25615   ++ccp;
25616   p = (char**) ccp;
25617   ccp = (char const *const *) p;
25618   { /* SCO 3.2v4 cc rejects this.  */
25619     char *t;
25620     char const *s = 0 ? (char *) 0 : (char const *) 0;
25621
25622     *t++ = 0;
25623     if (s) return 0;
25624   }
25625   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25626     int x[] = {25, 17};
25627     const int *foo = &x[0];
25628     ++foo;
25629   }
25630   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25631     typedef const int *iptr;
25632     iptr p = 0;
25633     ++p;
25634   }
25635   { /* AIX XL C 1.02.0.0 rejects this saying
25636        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25637     struct s { int j; const int *ap[3]; };
25638     struct s *b; b->j = 5;
25639   }
25640   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25641     const int foo = 10;
25642     if (!foo) return 0;
25643   }
25644   return !x[0] && !zero.x;
25645 #endif
25646
25647   ;
25648   return 0;
25649 }
25650 _ACEOF
25651 rm -f conftest.$ac_objext
25652 if { (ac_try="$ac_compile"
25653 case "(($ac_try" in
25654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25655   *) ac_try_echo=$ac_try;;
25656 esac
25657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25658   (eval "$ac_compile") 2>conftest.er1
25659   ac_status=$?
25660   grep -v '^ *+' conftest.er1 >conftest.err
25661   rm -f conftest.er1
25662   cat conftest.err >&5
25663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25664   (exit $ac_status); } &&
25665          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25666   { (case "(($ac_try" in
25667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25668   *) ac_try_echo=$ac_try;;
25669 esac
25670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25671   (eval "$ac_try") 2>&5
25672   ac_status=$?
25673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674   (exit $ac_status); }; } &&
25675          { ac_try='test -s conftest.$ac_objext'
25676   { (case "(($ac_try" in
25677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25678   *) ac_try_echo=$ac_try;;
25679 esac
25680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25681   (eval "$ac_try") 2>&5
25682   ac_status=$?
25683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684   (exit $ac_status); }; }; then
25685   ac_cv_c_const=yes
25686 else
25687   echo "$as_me: failed program was:" >&5
25688 sed 's/^/| /' conftest.$ac_ext >&5
25689
25690         ac_cv_c_const=no
25691 fi
25692
25693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 fi
25695 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25696 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25697 if test $ac_cv_c_const = no; then
25698
25699 cat >>confdefs.h <<\_ACEOF
25700 #define const
25701 _ACEOF
25702
25703 fi
25704
25705
25706
25707 { echo "$as_me:$LINENO: checking for char" >&5
25708 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25709 if test "${ac_cv_type_char+set}" = set; then
25710   echo $ECHO_N "(cached) $ECHO_C" >&6
25711 else
25712   cat >conftest.$ac_ext <<_ACEOF
25713 /* confdefs.h.  */
25714 _ACEOF
25715 cat confdefs.h >>conftest.$ac_ext
25716 cat >>conftest.$ac_ext <<_ACEOF
25717 /* end confdefs.h.  */
25718 $ac_includes_default
25719 typedef char ac__type_new_;
25720 int
25721 main ()
25722 {
25723 if ((ac__type_new_ *) 0)
25724   return 0;
25725 if (sizeof (ac__type_new_))
25726   return 0;
25727   ;
25728   return 0;
25729 }
25730 _ACEOF
25731 rm -f conftest.$ac_objext
25732 if { (ac_try="$ac_compile"
25733 case "(($ac_try" in
25734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735   *) ac_try_echo=$ac_try;;
25736 esac
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738   (eval "$ac_compile") 2>conftest.er1
25739   ac_status=$?
25740   grep -v '^ *+' conftest.er1 >conftest.err
25741   rm -f conftest.er1
25742   cat conftest.err >&5
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); } &&
25745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25746   { (case "(($ac_try" in
25747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25748   *) ac_try_echo=$ac_try;;
25749 esac
25750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25751   (eval "$ac_try") 2>&5
25752   ac_status=$?
25753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25754   (exit $ac_status); }; } &&
25755          { ac_try='test -s conftest.$ac_objext'
25756   { (case "(($ac_try" in
25757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25758   *) ac_try_echo=$ac_try;;
25759 esac
25760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25761   (eval "$ac_try") 2>&5
25762   ac_status=$?
25763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764   (exit $ac_status); }; }; then
25765   ac_cv_type_char=yes
25766 else
25767   echo "$as_me: failed program was:" >&5
25768 sed 's/^/| /' conftest.$ac_ext >&5
25769
25770         ac_cv_type_char=no
25771 fi
25772
25773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25774 fi
25775 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25776 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25777
25778 { echo "$as_me:$LINENO: checking size of char" >&5
25779 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25780 if test "${ac_cv_sizeof_char+set}" = set; then
25781   echo $ECHO_N "(cached) $ECHO_C" >&6
25782 else
25783   if test "$ac_cv_type_char" = yes; then
25784   # The cast to long int works around a bug in the HP C Compiler
25785   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25786   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25787   # This bug is HP SR number 8606223364.
25788   if test "$cross_compiling" = yes; then
25789   # Depending upon the size, compute the lo and hi bounds.
25790 cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h.  */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h.  */
25796 $ac_includes_default
25797                    typedef char ac__type_sizeof_;
25798 int
25799 main ()
25800 {
25801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25802 test_array [0] = 0
25803
25804   ;
25805   return 0;
25806 }
25807 _ACEOF
25808 rm -f conftest.$ac_objext
25809 if { (ac_try="$ac_compile"
25810 case "(($ac_try" in
25811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812   *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815   (eval "$ac_compile") 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } &&
25822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25823   { (case "(($ac_try" in
25824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825   *) ac_try_echo=$ac_try;;
25826 esac
25827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828   (eval "$ac_try") 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (case "(($ac_try" in
25834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835   *) ac_try_echo=$ac_try;;
25836 esac
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838   (eval "$ac_try") 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; }; then
25842   ac_lo=0 ac_mid=0
25843   while :; do
25844     cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850 $ac_includes_default
25851                    typedef char ac__type_sizeof_;
25852 int
25853 main ()
25854 {
25855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25856 test_array [0] = 0
25857
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_compile") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } &&
25876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25877   { (case "(($ac_try" in
25878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25879   *) ac_try_echo=$ac_try;;
25880 esac
25881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25882   (eval "$ac_try") 2>&5
25883   ac_status=$?
25884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); }; } &&
25886          { ac_try='test -s conftest.$ac_objext'
25887   { (case "(($ac_try" in
25888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25889   *) ac_try_echo=$ac_try;;
25890 esac
25891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25892   (eval "$ac_try") 2>&5
25893   ac_status=$?
25894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25895   (exit $ac_status); }; }; then
25896   ac_hi=$ac_mid; break
25897 else
25898   echo "$as_me: failed program was:" >&5
25899 sed 's/^/| /' conftest.$ac_ext >&5
25900
25901         ac_lo=`expr $ac_mid + 1`
25902                         if test $ac_lo -le $ac_mid; then
25903                           ac_lo= ac_hi=
25904                           break
25905                         fi
25906                         ac_mid=`expr 2 '*' $ac_mid + 1`
25907 fi
25908
25909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25910   done
25911 else
25912   echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25914
25915         cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h.  */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h.  */
25921 $ac_includes_default
25922                    typedef char ac__type_sizeof_;
25923 int
25924 main ()
25925 {
25926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25927 test_array [0] = 0
25928
25929   ;
25930   return 0;
25931 }
25932 _ACEOF
25933 rm -f conftest.$ac_objext
25934 if { (ac_try="$ac_compile"
25935 case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940   (eval "$ac_compile") 2>conftest.er1
25941   ac_status=$?
25942   grep -v '^ *+' conftest.er1 >conftest.err
25943   rm -f conftest.er1
25944   cat conftest.err >&5
25945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946   (exit $ac_status); } &&
25947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25948   { (case "(($ac_try" in
25949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950   *) ac_try_echo=$ac_try;;
25951 esac
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953   (eval "$ac_try") 2>&5
25954   ac_status=$?
25955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956   (exit $ac_status); }; } &&
25957          { ac_try='test -s conftest.$ac_objext'
25958   { (case "(($ac_try" in
25959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25960   *) ac_try_echo=$ac_try;;
25961 esac
25962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25963   (eval "$ac_try") 2>&5
25964   ac_status=$?
25965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25966   (exit $ac_status); }; }; then
25967   ac_hi=-1 ac_mid=-1
25968   while :; do
25969     cat >conftest.$ac_ext <<_ACEOF
25970 /* confdefs.h.  */
25971 _ACEOF
25972 cat confdefs.h >>conftest.$ac_ext
25973 cat >>conftest.$ac_ext <<_ACEOF
25974 /* end confdefs.h.  */
25975 $ac_includes_default
25976                    typedef char ac__type_sizeof_;
25977 int
25978 main ()
25979 {
25980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25981 test_array [0] = 0
25982
25983   ;
25984   return 0;
25985 }
25986 _ACEOF
25987 rm -f conftest.$ac_objext
25988 if { (ac_try="$ac_compile"
25989 case "(($ac_try" in
25990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25991   *) ac_try_echo=$ac_try;;
25992 esac
25993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25994   (eval "$ac_compile") 2>conftest.er1
25995   ac_status=$?
25996   grep -v '^ *+' conftest.er1 >conftest.err
25997   rm -f conftest.er1
25998   cat conftest.err >&5
25999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000   (exit $ac_status); } &&
26001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26002   { (case "(($ac_try" in
26003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004   *) ac_try_echo=$ac_try;;
26005 esac
26006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26007   (eval "$ac_try") 2>&5
26008   ac_status=$?
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); }; } &&
26011          { ac_try='test -s conftest.$ac_objext'
26012   { (case "(($ac_try" in
26013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014   *) ac_try_echo=$ac_try;;
26015 esac
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017   (eval "$ac_try") 2>&5
26018   ac_status=$?
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); }; }; then
26021   ac_lo=$ac_mid; break
26022 else
26023   echo "$as_me: failed program was:" >&5
26024 sed 's/^/| /' conftest.$ac_ext >&5
26025
26026         ac_hi=`expr '(' $ac_mid ')' - 1`
26027                         if test $ac_mid -le $ac_hi; then
26028                           ac_lo= ac_hi=
26029                           break
26030                         fi
26031                         ac_mid=`expr 2 '*' $ac_mid`
26032 fi
26033
26034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26035   done
26036 else
26037   echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.$ac_ext >&5
26039
26040         ac_lo= ac_hi=
26041 fi
26042
26043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26044 fi
26045
26046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26047 # Binary search between lo and hi bounds.
26048 while test "x$ac_lo" != "x$ac_hi"; do
26049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26050   cat >conftest.$ac_ext <<_ACEOF
26051 /* confdefs.h.  */
26052 _ACEOF
26053 cat confdefs.h >>conftest.$ac_ext
26054 cat >>conftest.$ac_ext <<_ACEOF
26055 /* end confdefs.h.  */
26056 $ac_includes_default
26057                    typedef char ac__type_sizeof_;
26058 int
26059 main ()
26060 {
26061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26062 test_array [0] = 0
26063
26064   ;
26065   return 0;
26066 }
26067 _ACEOF
26068 rm -f conftest.$ac_objext
26069 if { (ac_try="$ac_compile"
26070 case "(($ac_try" in
26071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26072   *) ac_try_echo=$ac_try;;
26073 esac
26074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26075   (eval "$ac_compile") 2>conftest.er1
26076   ac_status=$?
26077   grep -v '^ *+' conftest.er1 >conftest.err
26078   rm -f conftest.er1
26079   cat conftest.err >&5
26080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26081   (exit $ac_status); } &&
26082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26083   { (case "(($ac_try" in
26084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085   *) ac_try_echo=$ac_try;;
26086 esac
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088   (eval "$ac_try") 2>&5
26089   ac_status=$?
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); }; } &&
26092          { ac_try='test -s conftest.$ac_objext'
26093   { (case "(($ac_try" in
26094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26095   *) ac_try_echo=$ac_try;;
26096 esac
26097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26098   (eval "$ac_try") 2>&5
26099   ac_status=$?
26100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26101   (exit $ac_status); }; }; then
26102   ac_hi=$ac_mid
26103 else
26104   echo "$as_me: failed program was:" >&5
26105 sed 's/^/| /' conftest.$ac_ext >&5
26106
26107         ac_lo=`expr '(' $ac_mid ')' + 1`
26108 fi
26109
26110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26111 done
26112 case $ac_lo in
26113 ?*) ac_cv_sizeof_char=$ac_lo;;
26114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26115 See \`config.log' for more details." >&5
26116 echo "$as_me: error: cannot compute sizeof (char)
26117 See \`config.log' for more details." >&2;}
26118    { (exit 77); exit 77; }; } ;;
26119 esac
26120 else
26121   cat >conftest.$ac_ext <<_ACEOF
26122 /* confdefs.h.  */
26123 _ACEOF
26124 cat confdefs.h >>conftest.$ac_ext
26125 cat >>conftest.$ac_ext <<_ACEOF
26126 /* end confdefs.h.  */
26127 $ac_includes_default
26128                    typedef char ac__type_sizeof_;
26129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26131 #include <stdio.h>
26132 #include <stdlib.h>
26133 int
26134 main ()
26135 {
26136
26137   FILE *f = fopen ("conftest.val", "w");
26138   if (! f)
26139     return 1;
26140   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26141     {
26142       long int i = longval ();
26143       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26144         return 1;
26145       fprintf (f, "%ld\n", i);
26146     }
26147   else
26148     {
26149       unsigned long int i = ulongval ();
26150       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26151         return 1;
26152       fprintf (f, "%lu\n", i);
26153     }
26154   return ferror (f) || fclose (f) != 0;
26155
26156   ;
26157   return 0;
26158 }
26159 _ACEOF
26160 rm -f conftest$ac_exeext
26161 if { (ac_try="$ac_link"
26162 case "(($ac_try" in
26163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26164   *) ac_try_echo=$ac_try;;
26165 esac
26166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26167   (eval "$ac_link") 2>&5
26168   ac_status=$?
26169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26171   { (case "(($ac_try" in
26172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173   *) ac_try_echo=$ac_try;;
26174 esac
26175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176   (eval "$ac_try") 2>&5
26177   ac_status=$?
26178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179   (exit $ac_status); }; }; then
26180   ac_cv_sizeof_char=`cat conftest.val`
26181 else
26182   echo "$as_me: program exited with status $ac_status" >&5
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26185
26186 ( exit $ac_status )
26187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26188 See \`config.log' for more details." >&5
26189 echo "$as_me: error: cannot compute sizeof (char)
26190 See \`config.log' for more details." >&2;}
26191    { (exit 77); exit 77; }; }
26192 fi
26193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26194 fi
26195 rm -f conftest.val
26196 else
26197   ac_cv_sizeof_char=0
26198 fi
26199 fi
26200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26201 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26202 cat >>confdefs.h <<_ACEOF
26203 #define SIZEOF_CHAR $ac_cv_sizeof_char
26204 _ACEOF
26205
26206
26207 { echo "$as_me:$LINENO: checking for short int" >&5
26208 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26209 if test "${ac_cv_type_short_int+set}" = set; then
26210   echo $ECHO_N "(cached) $ECHO_C" >&6
26211 else
26212   cat >conftest.$ac_ext <<_ACEOF
26213 /* confdefs.h.  */
26214 _ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h.  */
26218 $ac_includes_default
26219 typedef short int ac__type_new_;
26220 int
26221 main ()
26222 {
26223 if ((ac__type_new_ *) 0)
26224   return 0;
26225 if (sizeof (ac__type_new_))
26226   return 0;
26227   ;
26228   return 0;
26229 }
26230 _ACEOF
26231 rm -f conftest.$ac_objext
26232 if { (ac_try="$ac_compile"
26233 case "(($ac_try" in
26234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26235   *) ac_try_echo=$ac_try;;
26236 esac
26237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26238   (eval "$ac_compile") 2>conftest.er1
26239   ac_status=$?
26240   grep -v '^ *+' conftest.er1 >conftest.err
26241   rm -f conftest.er1
26242   cat conftest.err >&5
26243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244   (exit $ac_status); } &&
26245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26246   { (case "(($ac_try" in
26247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26248   *) ac_try_echo=$ac_try;;
26249 esac
26250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26251   (eval "$ac_try") 2>&5
26252   ac_status=$?
26253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254   (exit $ac_status); }; } &&
26255          { ac_try='test -s conftest.$ac_objext'
26256   { (case "(($ac_try" in
26257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26258   *) ac_try_echo=$ac_try;;
26259 esac
26260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26261   (eval "$ac_try") 2>&5
26262   ac_status=$?
26263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264   (exit $ac_status); }; }; then
26265   ac_cv_type_short_int=yes
26266 else
26267   echo "$as_me: failed program was:" >&5
26268 sed 's/^/| /' conftest.$ac_ext >&5
26269
26270         ac_cv_type_short_int=no
26271 fi
26272
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274 fi
26275 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26276 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26277
26278 { echo "$as_me:$LINENO: checking size of short int" >&5
26279 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26280 if test "${ac_cv_sizeof_short_int+set}" = set; then
26281   echo $ECHO_N "(cached) $ECHO_C" >&6
26282 else
26283   if test "$ac_cv_type_short_int" = yes; then
26284   # The cast to long int works around a bug in the HP C Compiler
26285   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26286   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26287   # This bug is HP SR number 8606223364.
26288   if test "$cross_compiling" = yes; then
26289   # Depending upon the size, compute the lo and hi bounds.
26290 cat >conftest.$ac_ext <<_ACEOF
26291 /* confdefs.h.  */
26292 _ACEOF
26293 cat confdefs.h >>conftest.$ac_ext
26294 cat >>conftest.$ac_ext <<_ACEOF
26295 /* end confdefs.h.  */
26296 $ac_includes_default
26297                    typedef short int ac__type_sizeof_;
26298 int
26299 main ()
26300 {
26301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26302 test_array [0] = 0
26303
26304   ;
26305   return 0;
26306 }
26307 _ACEOF
26308 rm -f conftest.$ac_objext
26309 if { (ac_try="$ac_compile"
26310 case "(($ac_try" in
26311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26312   *) ac_try_echo=$ac_try;;
26313 esac
26314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26315   (eval "$ac_compile") 2>conftest.er1
26316   ac_status=$?
26317   grep -v '^ *+' conftest.er1 >conftest.err
26318   rm -f conftest.er1
26319   cat conftest.err >&5
26320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26321   (exit $ac_status); } &&
26322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26323   { (case "(($ac_try" in
26324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325   *) ac_try_echo=$ac_try;;
26326 esac
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328   (eval "$ac_try") 2>&5
26329   ac_status=$?
26330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26331   (exit $ac_status); }; } &&
26332          { ac_try='test -s conftest.$ac_objext'
26333   { (case "(($ac_try" in
26334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26335   *) ac_try_echo=$ac_try;;
26336 esac
26337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26338   (eval "$ac_try") 2>&5
26339   ac_status=$?
26340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341   (exit $ac_status); }; }; then
26342   ac_lo=0 ac_mid=0
26343   while :; do
26344     cat >conftest.$ac_ext <<_ACEOF
26345 /* confdefs.h.  */
26346 _ACEOF
26347 cat confdefs.h >>conftest.$ac_ext
26348 cat >>conftest.$ac_ext <<_ACEOF
26349 /* end confdefs.h.  */
26350 $ac_includes_default
26351                    typedef short int ac__type_sizeof_;
26352 int
26353 main ()
26354 {
26355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26356 test_array [0] = 0
26357
26358   ;
26359   return 0;
26360 }
26361 _ACEOF
26362 rm -f conftest.$ac_objext
26363 if { (ac_try="$ac_compile"
26364 case "(($ac_try" in
26365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26366   *) ac_try_echo=$ac_try;;
26367 esac
26368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26369   (eval "$ac_compile") 2>conftest.er1
26370   ac_status=$?
26371   grep -v '^ *+' conftest.er1 >conftest.err
26372   rm -f conftest.er1
26373   cat conftest.err >&5
26374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375   (exit $ac_status); } &&
26376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26377   { (case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26382   (eval "$ac_try") 2>&5
26383   ac_status=$?
26384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26385   (exit $ac_status); }; } &&
26386          { ac_try='test -s conftest.$ac_objext'
26387   { (case "(($ac_try" in
26388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389   *) ac_try_echo=$ac_try;;
26390 esac
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392   (eval "$ac_try") 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); }; }; then
26396   ac_hi=$ac_mid; break
26397 else
26398   echo "$as_me: failed program was:" >&5
26399 sed 's/^/| /' conftest.$ac_ext >&5
26400
26401         ac_lo=`expr $ac_mid + 1`
26402                         if test $ac_lo -le $ac_mid; then
26403                           ac_lo= ac_hi=
26404                           break
26405                         fi
26406                         ac_mid=`expr 2 '*' $ac_mid + 1`
26407 fi
26408
26409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26410   done
26411 else
26412   echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.$ac_ext >&5
26414
26415         cat >conftest.$ac_ext <<_ACEOF
26416 /* confdefs.h.  */
26417 _ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h.  */
26421 $ac_includes_default
26422                    typedef short int ac__type_sizeof_;
26423 int
26424 main ()
26425 {
26426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26427 test_array [0] = 0
26428
26429   ;
26430   return 0;
26431 }
26432 _ACEOF
26433 rm -f conftest.$ac_objext
26434 if { (ac_try="$ac_compile"
26435 case "(($ac_try" in
26436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437   *) ac_try_echo=$ac_try;;
26438 esac
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440   (eval "$ac_compile") 2>conftest.er1
26441   ac_status=$?
26442   grep -v '^ *+' conftest.er1 >conftest.err
26443   rm -f conftest.er1
26444   cat conftest.err >&5
26445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26446   (exit $ac_status); } &&
26447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26448   { (case "(($ac_try" in
26449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26450   *) ac_try_echo=$ac_try;;
26451 esac
26452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26453   (eval "$ac_try") 2>&5
26454   ac_status=$?
26455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456   (exit $ac_status); }; } &&
26457          { ac_try='test -s conftest.$ac_objext'
26458   { (case "(($ac_try" in
26459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26460   *) ac_try_echo=$ac_try;;
26461 esac
26462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26463   (eval "$ac_try") 2>&5
26464   ac_status=$?
26465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26466   (exit $ac_status); }; }; then
26467   ac_hi=-1 ac_mid=-1
26468   while :; do
26469     cat >conftest.$ac_ext <<_ACEOF
26470 /* confdefs.h.  */
26471 _ACEOF
26472 cat confdefs.h >>conftest.$ac_ext
26473 cat >>conftest.$ac_ext <<_ACEOF
26474 /* end confdefs.h.  */
26475 $ac_includes_default
26476                    typedef short int ac__type_sizeof_;
26477 int
26478 main ()
26479 {
26480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26481 test_array [0] = 0
26482
26483   ;
26484   return 0;
26485 }
26486 _ACEOF
26487 rm -f conftest.$ac_objext
26488 if { (ac_try="$ac_compile"
26489 case "(($ac_try" in
26490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26491   *) ac_try_echo=$ac_try;;
26492 esac
26493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26494   (eval "$ac_compile") 2>conftest.er1
26495   ac_status=$?
26496   grep -v '^ *+' conftest.er1 >conftest.err
26497   rm -f conftest.er1
26498   cat conftest.err >&5
26499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500   (exit $ac_status); } &&
26501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26502   { (case "(($ac_try" in
26503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504   *) ac_try_echo=$ac_try;;
26505 esac
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507   (eval "$ac_try") 2>&5
26508   ac_status=$?
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); }; } &&
26511          { ac_try='test -s conftest.$ac_objext'
26512   { (case "(($ac_try" in
26513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514   *) ac_try_echo=$ac_try;;
26515 esac
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517   (eval "$ac_try") 2>&5
26518   ac_status=$?
26519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520   (exit $ac_status); }; }; then
26521   ac_lo=$ac_mid; break
26522 else
26523   echo "$as_me: failed program was:" >&5
26524 sed 's/^/| /' conftest.$ac_ext >&5
26525
26526         ac_hi=`expr '(' $ac_mid ')' - 1`
26527                         if test $ac_mid -le $ac_hi; then
26528                           ac_lo= ac_hi=
26529                           break
26530                         fi
26531                         ac_mid=`expr 2 '*' $ac_mid`
26532 fi
26533
26534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26535   done
26536 else
26537   echo "$as_me: failed program was:" >&5
26538 sed 's/^/| /' conftest.$ac_ext >&5
26539
26540         ac_lo= ac_hi=
26541 fi
26542
26543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26544 fi
26545
26546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26547 # Binary search between lo and hi bounds.
26548 while test "x$ac_lo" != "x$ac_hi"; do
26549   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26550   cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556 $ac_includes_default
26557                    typedef short int ac__type_sizeof_;
26558 int
26559 main ()
26560 {
26561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26562 test_array [0] = 0
26563
26564   ;
26565   return 0;
26566 }
26567 _ACEOF
26568 rm -f conftest.$ac_objext
26569 if { (ac_try="$ac_compile"
26570 case "(($ac_try" in
26571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26572   *) ac_try_echo=$ac_try;;
26573 esac
26574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26575   (eval "$ac_compile") 2>conftest.er1
26576   ac_status=$?
26577   grep -v '^ *+' conftest.er1 >conftest.err
26578   rm -f conftest.er1
26579   cat conftest.err >&5
26580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581   (exit $ac_status); } &&
26582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26583   { (case "(($ac_try" in
26584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585   *) ac_try_echo=$ac_try;;
26586 esac
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588   (eval "$ac_try") 2>&5
26589   ac_status=$?
26590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591   (exit $ac_status); }; } &&
26592          { ac_try='test -s conftest.$ac_objext'
26593   { (case "(($ac_try" in
26594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26595   *) ac_try_echo=$ac_try;;
26596 esac
26597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26598   (eval "$ac_try") 2>&5
26599   ac_status=$?
26600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601   (exit $ac_status); }; }; then
26602   ac_hi=$ac_mid
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607         ac_lo=`expr '(' $ac_mid ')' + 1`
26608 fi
26609
26610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26611 done
26612 case $ac_lo in
26613 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26615 See \`config.log' for more details." >&5
26616 echo "$as_me: error: cannot compute sizeof (short int)
26617 See \`config.log' for more details." >&2;}
26618    { (exit 77); exit 77; }; } ;;
26619 esac
26620 else
26621   cat >conftest.$ac_ext <<_ACEOF
26622 /* confdefs.h.  */
26623 _ACEOF
26624 cat confdefs.h >>conftest.$ac_ext
26625 cat >>conftest.$ac_ext <<_ACEOF
26626 /* end confdefs.h.  */
26627 $ac_includes_default
26628                    typedef short int ac__type_sizeof_;
26629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26631 #include <stdio.h>
26632 #include <stdlib.h>
26633 int
26634 main ()
26635 {
26636
26637   FILE *f = fopen ("conftest.val", "w");
26638   if (! f)
26639     return 1;
26640   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26641     {
26642       long int i = longval ();
26643       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26644         return 1;
26645       fprintf (f, "%ld\n", i);
26646     }
26647   else
26648     {
26649       unsigned long int i = ulongval ();
26650       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26651         return 1;
26652       fprintf (f, "%lu\n", i);
26653     }
26654   return ferror (f) || fclose (f) != 0;
26655
26656   ;
26657   return 0;
26658 }
26659 _ACEOF
26660 rm -f conftest$ac_exeext
26661 if { (ac_try="$ac_link"
26662 case "(($ac_try" in
26663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26664   *) ac_try_echo=$ac_try;;
26665 esac
26666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26667   (eval "$ac_link") 2>&5
26668   ac_status=$?
26669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26671   { (case "(($ac_try" in
26672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26673   *) ac_try_echo=$ac_try;;
26674 esac
26675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26676   (eval "$ac_try") 2>&5
26677   ac_status=$?
26678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679   (exit $ac_status); }; }; then
26680   ac_cv_sizeof_short_int=`cat conftest.val`
26681 else
26682   echo "$as_me: program exited with status $ac_status" >&5
26683 echo "$as_me: failed program was:" >&5
26684 sed 's/^/| /' conftest.$ac_ext >&5
26685
26686 ( exit $ac_status )
26687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26688 See \`config.log' for more details." >&5
26689 echo "$as_me: error: cannot compute sizeof (short int)
26690 See \`config.log' for more details." >&2;}
26691    { (exit 77); exit 77; }; }
26692 fi
26693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26694 fi
26695 rm -f conftest.val
26696 else
26697   ac_cv_sizeof_short_int=0
26698 fi
26699 fi
26700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26701 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26702 cat >>confdefs.h <<_ACEOF
26703 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26704 _ACEOF
26705
26706
26707 { echo "$as_me:$LINENO: checking for int" >&5
26708 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26709 if test "${ac_cv_type_int+set}" = set; then
26710   echo $ECHO_N "(cached) $ECHO_C" >&6
26711 else
26712   cat >conftest.$ac_ext <<_ACEOF
26713 /* confdefs.h.  */
26714 _ACEOF
26715 cat confdefs.h >>conftest.$ac_ext
26716 cat >>conftest.$ac_ext <<_ACEOF
26717 /* end confdefs.h.  */
26718 $ac_includes_default
26719 typedef int ac__type_new_;
26720 int
26721 main ()
26722 {
26723 if ((ac__type_new_ *) 0)
26724   return 0;
26725 if (sizeof (ac__type_new_))
26726   return 0;
26727   ;
26728   return 0;
26729 }
26730 _ACEOF
26731 rm -f conftest.$ac_objext
26732 if { (ac_try="$ac_compile"
26733 case "(($ac_try" in
26734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26735   *) ac_try_echo=$ac_try;;
26736 esac
26737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26738   (eval "$ac_compile") 2>conftest.er1
26739   ac_status=$?
26740   grep -v '^ *+' conftest.er1 >conftest.err
26741   rm -f conftest.er1
26742   cat conftest.err >&5
26743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744   (exit $ac_status); } &&
26745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26746   { (case "(($ac_try" in
26747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26748   *) ac_try_echo=$ac_try;;
26749 esac
26750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26751   (eval "$ac_try") 2>&5
26752   ac_status=$?
26753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26754   (exit $ac_status); }; } &&
26755          { ac_try='test -s conftest.$ac_objext'
26756   { (case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_try") 2>&5
26762   ac_status=$?
26763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26764   (exit $ac_status); }; }; then
26765   ac_cv_type_int=yes
26766 else
26767   echo "$as_me: failed program was:" >&5
26768 sed 's/^/| /' conftest.$ac_ext >&5
26769
26770         ac_cv_type_int=no
26771 fi
26772
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774 fi
26775 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26776 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26777
26778 { echo "$as_me:$LINENO: checking size of int" >&5
26779 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26780 if test "${ac_cv_sizeof_int+set}" = set; then
26781   echo $ECHO_N "(cached) $ECHO_C" >&6
26782 else
26783   if test "$ac_cv_type_int" = yes; then
26784   # The cast to long int works around a bug in the HP C Compiler
26785   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26786   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26787   # This bug is HP SR number 8606223364.
26788   if test "$cross_compiling" = yes; then
26789   # Depending upon the size, compute the lo and hi bounds.
26790 cat >conftest.$ac_ext <<_ACEOF
26791 /* confdefs.h.  */
26792 _ACEOF
26793 cat confdefs.h >>conftest.$ac_ext
26794 cat >>conftest.$ac_ext <<_ACEOF
26795 /* end confdefs.h.  */
26796 $ac_includes_default
26797                    typedef int ac__type_sizeof_;
26798 int
26799 main ()
26800 {
26801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26802 test_array [0] = 0
26803
26804   ;
26805   return 0;
26806 }
26807 _ACEOF
26808 rm -f conftest.$ac_objext
26809 if { (ac_try="$ac_compile"
26810 case "(($ac_try" in
26811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26812   *) ac_try_echo=$ac_try;;
26813 esac
26814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26815   (eval "$ac_compile") 2>conftest.er1
26816   ac_status=$?
26817   grep -v '^ *+' conftest.er1 >conftest.err
26818   rm -f conftest.er1
26819   cat conftest.err >&5
26820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821   (exit $ac_status); } &&
26822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26823   { (case "(($ac_try" in
26824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26825   *) ac_try_echo=$ac_try;;
26826 esac
26827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26828   (eval "$ac_try") 2>&5
26829   ac_status=$?
26830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26831   (exit $ac_status); }; } &&
26832          { ac_try='test -s conftest.$ac_objext'
26833   { (case "(($ac_try" in
26834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26835   *) ac_try_echo=$ac_try;;
26836 esac
26837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26838   (eval "$ac_try") 2>&5
26839   ac_status=$?
26840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26841   (exit $ac_status); }; }; then
26842   ac_lo=0 ac_mid=0
26843   while :; do
26844     cat >conftest.$ac_ext <<_ACEOF
26845 /* confdefs.h.  */
26846 _ACEOF
26847 cat confdefs.h >>conftest.$ac_ext
26848 cat >>conftest.$ac_ext <<_ACEOF
26849 /* end confdefs.h.  */
26850 $ac_includes_default
26851                    typedef int ac__type_sizeof_;
26852 int
26853 main ()
26854 {
26855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26856 test_array [0] = 0
26857
26858   ;
26859   return 0;
26860 }
26861 _ACEOF
26862 rm -f conftest.$ac_objext
26863 if { (ac_try="$ac_compile"
26864 case "(($ac_try" in
26865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26866   *) ac_try_echo=$ac_try;;
26867 esac
26868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26869   (eval "$ac_compile") 2>conftest.er1
26870   ac_status=$?
26871   grep -v '^ *+' conftest.er1 >conftest.err
26872   rm -f conftest.er1
26873   cat conftest.err >&5
26874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875   (exit $ac_status); } &&
26876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26877   { (case "(($ac_try" in
26878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26879   *) ac_try_echo=$ac_try;;
26880 esac
26881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26882   (eval "$ac_try") 2>&5
26883   ac_status=$?
26884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885   (exit $ac_status); }; } &&
26886          { ac_try='test -s conftest.$ac_objext'
26887   { (case "(($ac_try" in
26888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26889   *) ac_try_echo=$ac_try;;
26890 esac
26891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26892   (eval "$ac_try") 2>&5
26893   ac_status=$?
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); }; }; then
26896   ac_hi=$ac_mid; break
26897 else
26898   echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.$ac_ext >&5
26900
26901         ac_lo=`expr $ac_mid + 1`
26902                         if test $ac_lo -le $ac_mid; then
26903                           ac_lo= ac_hi=
26904                           break
26905                         fi
26906                         ac_mid=`expr 2 '*' $ac_mid + 1`
26907 fi
26908
26909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26910   done
26911 else
26912   echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26914
26915         cat >conftest.$ac_ext <<_ACEOF
26916 /* confdefs.h.  */
26917 _ACEOF
26918 cat confdefs.h >>conftest.$ac_ext
26919 cat >>conftest.$ac_ext <<_ACEOF
26920 /* end confdefs.h.  */
26921 $ac_includes_default
26922                    typedef int ac__type_sizeof_;
26923 int
26924 main ()
26925 {
26926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26927 test_array [0] = 0
26928
26929   ;
26930   return 0;
26931 }
26932 _ACEOF
26933 rm -f conftest.$ac_objext
26934 if { (ac_try="$ac_compile"
26935 case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940   (eval "$ac_compile") 2>conftest.er1
26941   ac_status=$?
26942   grep -v '^ *+' conftest.er1 >conftest.err
26943   rm -f conftest.er1
26944   cat conftest.err >&5
26945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26946   (exit $ac_status); } &&
26947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26948   { (case "(($ac_try" in
26949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26950   *) ac_try_echo=$ac_try;;
26951 esac
26952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26953   (eval "$ac_try") 2>&5
26954   ac_status=$?
26955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26956   (exit $ac_status); }; } &&
26957          { ac_try='test -s conftest.$ac_objext'
26958   { (case "(($ac_try" in
26959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26960   *) ac_try_echo=$ac_try;;
26961 esac
26962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26963   (eval "$ac_try") 2>&5
26964   ac_status=$?
26965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966   (exit $ac_status); }; }; then
26967   ac_hi=-1 ac_mid=-1
26968   while :; do
26969     cat >conftest.$ac_ext <<_ACEOF
26970 /* confdefs.h.  */
26971 _ACEOF
26972 cat confdefs.h >>conftest.$ac_ext
26973 cat >>conftest.$ac_ext <<_ACEOF
26974 /* end confdefs.h.  */
26975 $ac_includes_default
26976                    typedef int ac__type_sizeof_;
26977 int
26978 main ()
26979 {
26980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26981 test_array [0] = 0
26982
26983   ;
26984   return 0;
26985 }
26986 _ACEOF
26987 rm -f conftest.$ac_objext
26988 if { (ac_try="$ac_compile"
26989 case "(($ac_try" in
26990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26991   *) ac_try_echo=$ac_try;;
26992 esac
26993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26994   (eval "$ac_compile") 2>conftest.er1
26995   ac_status=$?
26996   grep -v '^ *+' conftest.er1 >conftest.err
26997   rm -f conftest.er1
26998   cat conftest.err >&5
26999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27000   (exit $ac_status); } &&
27001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27002   { (case "(($ac_try" in
27003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27004   *) ac_try_echo=$ac_try;;
27005 esac
27006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27007   (eval "$ac_try") 2>&5
27008   ac_status=$?
27009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010   (exit $ac_status); }; } &&
27011          { ac_try='test -s conftest.$ac_objext'
27012   { (case "(($ac_try" in
27013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014   *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017   (eval "$ac_try") 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); }; }; then
27021   ac_lo=$ac_mid; break
27022 else
27023   echo "$as_me: failed program was:" >&5
27024 sed 's/^/| /' conftest.$ac_ext >&5
27025
27026         ac_hi=`expr '(' $ac_mid ')' - 1`
27027                         if test $ac_mid -le $ac_hi; then
27028                           ac_lo= ac_hi=
27029                           break
27030                         fi
27031                         ac_mid=`expr 2 '*' $ac_mid`
27032 fi
27033
27034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27035   done
27036 else
27037   echo "$as_me: failed program was:" >&5
27038 sed 's/^/| /' conftest.$ac_ext >&5
27039
27040         ac_lo= ac_hi=
27041 fi
27042
27043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27044 fi
27045
27046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27047 # Binary search between lo and hi bounds.
27048 while test "x$ac_lo" != "x$ac_hi"; do
27049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27050   cat >conftest.$ac_ext <<_ACEOF
27051 /* confdefs.h.  */
27052 _ACEOF
27053 cat confdefs.h >>conftest.$ac_ext
27054 cat >>conftest.$ac_ext <<_ACEOF
27055 /* end confdefs.h.  */
27056 $ac_includes_default
27057                    typedef int ac__type_sizeof_;
27058 int
27059 main ()
27060 {
27061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27062 test_array [0] = 0
27063
27064   ;
27065   return 0;
27066 }
27067 _ACEOF
27068 rm -f conftest.$ac_objext
27069 if { (ac_try="$ac_compile"
27070 case "(($ac_try" in
27071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27072   *) ac_try_echo=$ac_try;;
27073 esac
27074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27075   (eval "$ac_compile") 2>conftest.er1
27076   ac_status=$?
27077   grep -v '^ *+' conftest.er1 >conftest.err
27078   rm -f conftest.er1
27079   cat conftest.err >&5
27080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27081   (exit $ac_status); } &&
27082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27083   { (case "(($ac_try" in
27084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27085   *) ac_try_echo=$ac_try;;
27086 esac
27087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27088   (eval "$ac_try") 2>&5
27089   ac_status=$?
27090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27091   (exit $ac_status); }; } &&
27092          { ac_try='test -s conftest.$ac_objext'
27093   { (case "(($ac_try" in
27094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27095   *) ac_try_echo=$ac_try;;
27096 esac
27097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27098   (eval "$ac_try") 2>&5
27099   ac_status=$?
27100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27101   (exit $ac_status); }; }; then
27102   ac_hi=$ac_mid
27103 else
27104   echo "$as_me: failed program was:" >&5
27105 sed 's/^/| /' conftest.$ac_ext >&5
27106
27107         ac_lo=`expr '(' $ac_mid ')' + 1`
27108 fi
27109
27110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27111 done
27112 case $ac_lo in
27113 ?*) ac_cv_sizeof_int=$ac_lo;;
27114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27115 See \`config.log' for more details." >&5
27116 echo "$as_me: error: cannot compute sizeof (int)
27117 See \`config.log' for more details." >&2;}
27118    { (exit 77); exit 77; }; } ;;
27119 esac
27120 else
27121   cat >conftest.$ac_ext <<_ACEOF
27122 /* confdefs.h.  */
27123 _ACEOF
27124 cat confdefs.h >>conftest.$ac_ext
27125 cat >>conftest.$ac_ext <<_ACEOF
27126 /* end confdefs.h.  */
27127 $ac_includes_default
27128                    typedef int ac__type_sizeof_;
27129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27131 #include <stdio.h>
27132 #include <stdlib.h>
27133 int
27134 main ()
27135 {
27136
27137   FILE *f = fopen ("conftest.val", "w");
27138   if (! f)
27139     return 1;
27140   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27141     {
27142       long int i = longval ();
27143       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27144         return 1;
27145       fprintf (f, "%ld\n", i);
27146     }
27147   else
27148     {
27149       unsigned long int i = ulongval ();
27150       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27151         return 1;
27152       fprintf (f, "%lu\n", i);
27153     }
27154   return ferror (f) || fclose (f) != 0;
27155
27156   ;
27157   return 0;
27158 }
27159 _ACEOF
27160 rm -f conftest$ac_exeext
27161 if { (ac_try="$ac_link"
27162 case "(($ac_try" in
27163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27164   *) ac_try_echo=$ac_try;;
27165 esac
27166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27167   (eval "$ac_link") 2>&5
27168   ac_status=$?
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27171   { (case "(($ac_try" in
27172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27173   *) ac_try_echo=$ac_try;;
27174 esac
27175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27176   (eval "$ac_try") 2>&5
27177   ac_status=$?
27178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27179   (exit $ac_status); }; }; then
27180   ac_cv_sizeof_int=`cat conftest.val`
27181 else
27182   echo "$as_me: program exited with status $ac_status" >&5
27183 echo "$as_me: failed program was:" >&5
27184 sed 's/^/| /' conftest.$ac_ext >&5
27185
27186 ( exit $ac_status )
27187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27188 See \`config.log' for more details." >&5
27189 echo "$as_me: error: cannot compute sizeof (int)
27190 See \`config.log' for more details." >&2;}
27191    { (exit 77); exit 77; }; }
27192 fi
27193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27194 fi
27195 rm -f conftest.val
27196 else
27197   ac_cv_sizeof_int=0
27198 fi
27199 fi
27200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27201 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27202 cat >>confdefs.h <<_ACEOF
27203 #define SIZEOF_INT $ac_cv_sizeof_int
27204 _ACEOF
27205
27206
27207 { echo "$as_me:$LINENO: checking for long int" >&5
27208 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27209 if test "${ac_cv_type_long_int+set}" = set; then
27210   echo $ECHO_N "(cached) $ECHO_C" >&6
27211 else
27212   cat >conftest.$ac_ext <<_ACEOF
27213 /* confdefs.h.  */
27214 _ACEOF
27215 cat confdefs.h >>conftest.$ac_ext
27216 cat >>conftest.$ac_ext <<_ACEOF
27217 /* end confdefs.h.  */
27218 $ac_includes_default
27219 typedef long int ac__type_new_;
27220 int
27221 main ()
27222 {
27223 if ((ac__type_new_ *) 0)
27224   return 0;
27225 if (sizeof (ac__type_new_))
27226   return 0;
27227   ;
27228   return 0;
27229 }
27230 _ACEOF
27231 rm -f conftest.$ac_objext
27232 if { (ac_try="$ac_compile"
27233 case "(($ac_try" in
27234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27235   *) ac_try_echo=$ac_try;;
27236 esac
27237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27238   (eval "$ac_compile") 2>conftest.er1
27239   ac_status=$?
27240   grep -v '^ *+' conftest.er1 >conftest.err
27241   rm -f conftest.er1
27242   cat conftest.err >&5
27243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244   (exit $ac_status); } &&
27245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27246   { (case "(($ac_try" in
27247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27248   *) ac_try_echo=$ac_try;;
27249 esac
27250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27251   (eval "$ac_try") 2>&5
27252   ac_status=$?
27253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27254   (exit $ac_status); }; } &&
27255          { ac_try='test -s conftest.$ac_objext'
27256   { (case "(($ac_try" in
27257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27258   *) ac_try_echo=$ac_try;;
27259 esac
27260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27261   (eval "$ac_try") 2>&5
27262   ac_status=$?
27263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27264   (exit $ac_status); }; }; then
27265   ac_cv_type_long_int=yes
27266 else
27267   echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27269
27270         ac_cv_type_long_int=no
27271 fi
27272
27273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27274 fi
27275 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27276 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27277
27278 { echo "$as_me:$LINENO: checking size of long int" >&5
27279 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27280 if test "${ac_cv_sizeof_long_int+set}" = set; then
27281   echo $ECHO_N "(cached) $ECHO_C" >&6
27282 else
27283   if test "$ac_cv_type_long_int" = yes; then
27284   # The cast to long int works around a bug in the HP C Compiler
27285   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27286   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27287   # This bug is HP SR number 8606223364.
27288   if test "$cross_compiling" = yes; then
27289   # Depending upon the size, compute the lo and hi bounds.
27290 cat >conftest.$ac_ext <<_ACEOF
27291 /* confdefs.h.  */
27292 _ACEOF
27293 cat confdefs.h >>conftest.$ac_ext
27294 cat >>conftest.$ac_ext <<_ACEOF
27295 /* end confdefs.h.  */
27296 $ac_includes_default
27297                    typedef long int ac__type_sizeof_;
27298 int
27299 main ()
27300 {
27301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27302 test_array [0] = 0
27303
27304   ;
27305   return 0;
27306 }
27307 _ACEOF
27308 rm -f conftest.$ac_objext
27309 if { (ac_try="$ac_compile"
27310 case "(($ac_try" in
27311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27312   *) ac_try_echo=$ac_try;;
27313 esac
27314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27315   (eval "$ac_compile") 2>conftest.er1
27316   ac_status=$?
27317   grep -v '^ *+' conftest.er1 >conftest.err
27318   rm -f conftest.er1
27319   cat conftest.err >&5
27320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321   (exit $ac_status); } &&
27322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27323   { (case "(($ac_try" in
27324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27325   *) ac_try_echo=$ac_try;;
27326 esac
27327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27328   (eval "$ac_try") 2>&5
27329   ac_status=$?
27330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27331   (exit $ac_status); }; } &&
27332          { ac_try='test -s conftest.$ac_objext'
27333   { (case "(($ac_try" in
27334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335   *) ac_try_echo=$ac_try;;
27336 esac
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338   (eval "$ac_try") 2>&5
27339   ac_status=$?
27340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27341   (exit $ac_status); }; }; then
27342   ac_lo=0 ac_mid=0
27343   while :; do
27344     cat >conftest.$ac_ext <<_ACEOF
27345 /* confdefs.h.  */
27346 _ACEOF
27347 cat confdefs.h >>conftest.$ac_ext
27348 cat >>conftest.$ac_ext <<_ACEOF
27349 /* end confdefs.h.  */
27350 $ac_includes_default
27351                    typedef long int ac__type_sizeof_;
27352 int
27353 main ()
27354 {
27355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27356 test_array [0] = 0
27357
27358   ;
27359   return 0;
27360 }
27361 _ACEOF
27362 rm -f conftest.$ac_objext
27363 if { (ac_try="$ac_compile"
27364 case "(($ac_try" in
27365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27366   *) ac_try_echo=$ac_try;;
27367 esac
27368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27369   (eval "$ac_compile") 2>conftest.er1
27370   ac_status=$?
27371   grep -v '^ *+' conftest.er1 >conftest.err
27372   rm -f conftest.er1
27373   cat conftest.err >&5
27374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375   (exit $ac_status); } &&
27376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27377   { (case "(($ac_try" in
27378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27379   *) ac_try_echo=$ac_try;;
27380 esac
27381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27382   (eval "$ac_try") 2>&5
27383   ac_status=$?
27384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385   (exit $ac_status); }; } &&
27386          { ac_try='test -s conftest.$ac_objext'
27387   { (case "(($ac_try" in
27388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27389   *) ac_try_echo=$ac_try;;
27390 esac
27391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27392   (eval "$ac_try") 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); }; }; then
27396   ac_hi=$ac_mid; break
27397 else
27398   echo "$as_me: failed program was:" >&5
27399 sed 's/^/| /' conftest.$ac_ext >&5
27400
27401         ac_lo=`expr $ac_mid + 1`
27402                         if test $ac_lo -le $ac_mid; then
27403                           ac_lo= ac_hi=
27404                           break
27405                         fi
27406                         ac_mid=`expr 2 '*' $ac_mid + 1`
27407 fi
27408
27409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27410   done
27411 else
27412   echo "$as_me: failed program was:" >&5
27413 sed 's/^/| /' conftest.$ac_ext >&5
27414
27415         cat >conftest.$ac_ext <<_ACEOF
27416 /* confdefs.h.  */
27417 _ACEOF
27418 cat confdefs.h >>conftest.$ac_ext
27419 cat >>conftest.$ac_ext <<_ACEOF
27420 /* end confdefs.h.  */
27421 $ac_includes_default
27422                    typedef long int ac__type_sizeof_;
27423 int
27424 main ()
27425 {
27426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27427 test_array [0] = 0
27428
27429   ;
27430   return 0;
27431 }
27432 _ACEOF
27433 rm -f conftest.$ac_objext
27434 if { (ac_try="$ac_compile"
27435 case "(($ac_try" in
27436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437   *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440   (eval "$ac_compile") 2>conftest.er1
27441   ac_status=$?
27442   grep -v '^ *+' conftest.er1 >conftest.err
27443   rm -f conftest.er1
27444   cat conftest.err >&5
27445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27446   (exit $ac_status); } &&
27447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27448   { (case "(($ac_try" in
27449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450   *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453   (eval "$ac_try") 2>&5
27454   ac_status=$?
27455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27456   (exit $ac_status); }; } &&
27457          { ac_try='test -s conftest.$ac_objext'
27458   { (case "(($ac_try" in
27459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460   *) ac_try_echo=$ac_try;;
27461 esac
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463   (eval "$ac_try") 2>&5
27464   ac_status=$?
27465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27466   (exit $ac_status); }; }; then
27467   ac_hi=-1 ac_mid=-1
27468   while :; do
27469     cat >conftest.$ac_ext <<_ACEOF
27470 /* confdefs.h.  */
27471 _ACEOF
27472 cat confdefs.h >>conftest.$ac_ext
27473 cat >>conftest.$ac_ext <<_ACEOF
27474 /* end confdefs.h.  */
27475 $ac_includes_default
27476                    typedef long int ac__type_sizeof_;
27477 int
27478 main ()
27479 {
27480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27481 test_array [0] = 0
27482
27483   ;
27484   return 0;
27485 }
27486 _ACEOF
27487 rm -f conftest.$ac_objext
27488 if { (ac_try="$ac_compile"
27489 case "(($ac_try" in
27490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27491   *) ac_try_echo=$ac_try;;
27492 esac
27493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27494   (eval "$ac_compile") 2>conftest.er1
27495   ac_status=$?
27496   grep -v '^ *+' conftest.er1 >conftest.err
27497   rm -f conftest.er1
27498   cat conftest.err >&5
27499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27500   (exit $ac_status); } &&
27501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27502   { (case "(($ac_try" in
27503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27504   *) ac_try_echo=$ac_try;;
27505 esac
27506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27507   (eval "$ac_try") 2>&5
27508   ac_status=$?
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); }; } &&
27511          { ac_try='test -s conftest.$ac_objext'
27512   { (case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_try") 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; }; then
27521   ac_lo=$ac_mid; break
27522 else
27523   echo "$as_me: failed program was:" >&5
27524 sed 's/^/| /' conftest.$ac_ext >&5
27525
27526         ac_hi=`expr '(' $ac_mid ')' - 1`
27527                         if test $ac_mid -le $ac_hi; then
27528                           ac_lo= ac_hi=
27529                           break
27530                         fi
27531                         ac_mid=`expr 2 '*' $ac_mid`
27532 fi
27533
27534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27535   done
27536 else
27537   echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540         ac_lo= ac_hi=
27541 fi
27542
27543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27544 fi
27545
27546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27547 # Binary search between lo and hi bounds.
27548 while test "x$ac_lo" != "x$ac_hi"; do
27549   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27550   cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h.  */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h.  */
27556 $ac_includes_default
27557                    typedef long int ac__type_sizeof_;
27558 int
27559 main ()
27560 {
27561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27562 test_array [0] = 0
27563
27564   ;
27565   return 0;
27566 }
27567 _ACEOF
27568 rm -f conftest.$ac_objext
27569 if { (ac_try="$ac_compile"
27570 case "(($ac_try" in
27571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572   *) ac_try_echo=$ac_try;;
27573 esac
27574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27575   (eval "$ac_compile") 2>conftest.er1
27576   ac_status=$?
27577   grep -v '^ *+' conftest.er1 >conftest.err
27578   rm -f conftest.er1
27579   cat conftest.err >&5
27580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27581   (exit $ac_status); } &&
27582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27583   { (case "(($ac_try" in
27584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27585   *) ac_try_echo=$ac_try;;
27586 esac
27587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27588   (eval "$ac_try") 2>&5
27589   ac_status=$?
27590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27591   (exit $ac_status); }; } &&
27592          { ac_try='test -s conftest.$ac_objext'
27593   { (case "(($ac_try" in
27594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595   *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598   (eval "$ac_try") 2>&5
27599   ac_status=$?
27600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27601   (exit $ac_status); }; }; then
27602   ac_hi=$ac_mid
27603 else
27604   echo "$as_me: failed program was:" >&5
27605 sed 's/^/| /' conftest.$ac_ext >&5
27606
27607         ac_lo=`expr '(' $ac_mid ')' + 1`
27608 fi
27609
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27611 done
27612 case $ac_lo in
27613 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27615 See \`config.log' for more details." >&5
27616 echo "$as_me: error: cannot compute sizeof (long int)
27617 See \`config.log' for more details." >&2;}
27618    { (exit 77); exit 77; }; } ;;
27619 esac
27620 else
27621   cat >conftest.$ac_ext <<_ACEOF
27622 /* confdefs.h.  */
27623 _ACEOF
27624 cat confdefs.h >>conftest.$ac_ext
27625 cat >>conftest.$ac_ext <<_ACEOF
27626 /* end confdefs.h.  */
27627 $ac_includes_default
27628                    typedef long int ac__type_sizeof_;
27629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27631 #include <stdio.h>
27632 #include <stdlib.h>
27633 int
27634 main ()
27635 {
27636
27637   FILE *f = fopen ("conftest.val", "w");
27638   if (! f)
27639     return 1;
27640   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27641     {
27642       long int i = longval ();
27643       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27644         return 1;
27645       fprintf (f, "%ld\n", i);
27646     }
27647   else
27648     {
27649       unsigned long int i = ulongval ();
27650       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27651         return 1;
27652       fprintf (f, "%lu\n", i);
27653     }
27654   return ferror (f) || fclose (f) != 0;
27655
27656   ;
27657   return 0;
27658 }
27659 _ACEOF
27660 rm -f conftest$ac_exeext
27661 if { (ac_try="$ac_link"
27662 case "(($ac_try" in
27663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27664   *) ac_try_echo=$ac_try;;
27665 esac
27666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27667   (eval "$ac_link") 2>&5
27668   ac_status=$?
27669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27671   { (case "(($ac_try" in
27672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27673   *) ac_try_echo=$ac_try;;
27674 esac
27675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27676   (eval "$ac_try") 2>&5
27677   ac_status=$?
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); }; }; then
27680   ac_cv_sizeof_long_int=`cat conftest.val`
27681 else
27682   echo "$as_me: program exited with status $ac_status" >&5
27683 echo "$as_me: failed program was:" >&5
27684 sed 's/^/| /' conftest.$ac_ext >&5
27685
27686 ( exit $ac_status )
27687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27688 See \`config.log' for more details." >&5
27689 echo "$as_me: error: cannot compute sizeof (long int)
27690 See \`config.log' for more details." >&2;}
27691    { (exit 77); exit 77; }; }
27692 fi
27693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27694 fi
27695 rm -f conftest.val
27696 else
27697   ac_cv_sizeof_long_int=0
27698 fi
27699 fi
27700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27701 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27702 cat >>confdefs.h <<_ACEOF
27703 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27704 _ACEOF
27705
27706
27707 { echo "$as_me:$LINENO: checking for long long int" >&5
27708 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27709 if test "${ac_cv_type_long_long_int+set}" = set; then
27710   echo $ECHO_N "(cached) $ECHO_C" >&6
27711 else
27712   cat >conftest.$ac_ext <<_ACEOF
27713 /* confdefs.h.  */
27714 _ACEOF
27715 cat confdefs.h >>conftest.$ac_ext
27716 cat >>conftest.$ac_ext <<_ACEOF
27717 /* end confdefs.h.  */
27718 $ac_includes_default
27719 typedef long long int ac__type_new_;
27720 int
27721 main ()
27722 {
27723 if ((ac__type_new_ *) 0)
27724   return 0;
27725 if (sizeof (ac__type_new_))
27726   return 0;
27727   ;
27728   return 0;
27729 }
27730 _ACEOF
27731 rm -f conftest.$ac_objext
27732 if { (ac_try="$ac_compile"
27733 case "(($ac_try" in
27734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735   *) ac_try_echo=$ac_try;;
27736 esac
27737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27738   (eval "$ac_compile") 2>conftest.er1
27739   ac_status=$?
27740   grep -v '^ *+' conftest.er1 >conftest.err
27741   rm -f conftest.er1
27742   cat conftest.err >&5
27743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27744   (exit $ac_status); } &&
27745          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27746   { (case "(($ac_try" in
27747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27748   *) ac_try_echo=$ac_try;;
27749 esac
27750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27751   (eval "$ac_try") 2>&5
27752   ac_status=$?
27753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27754   (exit $ac_status); }; } &&
27755          { ac_try='test -s conftest.$ac_objext'
27756   { (case "(($ac_try" in
27757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27758   *) ac_try_echo=$ac_try;;
27759 esac
27760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27761   (eval "$ac_try") 2>&5
27762   ac_status=$?
27763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27764   (exit $ac_status); }; }; then
27765   ac_cv_type_long_long_int=yes
27766 else
27767   echo "$as_me: failed program was:" >&5
27768 sed 's/^/| /' conftest.$ac_ext >&5
27769
27770         ac_cv_type_long_long_int=no
27771 fi
27772
27773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27774 fi
27775 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27776 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27777
27778 { echo "$as_me:$LINENO: checking size of long long int" >&5
27779 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27780 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27781   echo $ECHO_N "(cached) $ECHO_C" >&6
27782 else
27783   if test "$ac_cv_type_long_long_int" = yes; then
27784   # The cast to long int works around a bug in the HP C Compiler
27785   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27786   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27787   # This bug is HP SR number 8606223364.
27788   if test "$cross_compiling" = yes; then
27789   # Depending upon the size, compute the lo and hi bounds.
27790 cat >conftest.$ac_ext <<_ACEOF
27791 /* confdefs.h.  */
27792 _ACEOF
27793 cat confdefs.h >>conftest.$ac_ext
27794 cat >>conftest.$ac_ext <<_ACEOF
27795 /* end confdefs.h.  */
27796 $ac_includes_default
27797                    typedef long long int ac__type_sizeof_;
27798 int
27799 main ()
27800 {
27801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27802 test_array [0] = 0
27803
27804   ;
27805   return 0;
27806 }
27807 _ACEOF
27808 rm -f conftest.$ac_objext
27809 if { (ac_try="$ac_compile"
27810 case "(($ac_try" in
27811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27812   *) ac_try_echo=$ac_try;;
27813 esac
27814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27815   (eval "$ac_compile") 2>conftest.er1
27816   ac_status=$?
27817   grep -v '^ *+' conftest.er1 >conftest.err
27818   rm -f conftest.er1
27819   cat conftest.err >&5
27820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27821   (exit $ac_status); } &&
27822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27823   { (case "(($ac_try" in
27824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27825   *) ac_try_echo=$ac_try;;
27826 esac
27827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27828   (eval "$ac_try") 2>&5
27829   ac_status=$?
27830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831   (exit $ac_status); }; } &&
27832          { ac_try='test -s conftest.$ac_objext'
27833   { (case "(($ac_try" in
27834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27835   *) ac_try_echo=$ac_try;;
27836 esac
27837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27838   (eval "$ac_try") 2>&5
27839   ac_status=$?
27840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27841   (exit $ac_status); }; }; then
27842   ac_lo=0 ac_mid=0
27843   while :; do
27844     cat >conftest.$ac_ext <<_ACEOF
27845 /* confdefs.h.  */
27846 _ACEOF
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h.  */
27850 $ac_includes_default
27851                    typedef long long int ac__type_sizeof_;
27852 int
27853 main ()
27854 {
27855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27856 test_array [0] = 0
27857
27858   ;
27859   return 0;
27860 }
27861 _ACEOF
27862 rm -f conftest.$ac_objext
27863 if { (ac_try="$ac_compile"
27864 case "(($ac_try" in
27865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27866   *) ac_try_echo=$ac_try;;
27867 esac
27868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27869   (eval "$ac_compile") 2>conftest.er1
27870   ac_status=$?
27871   grep -v '^ *+' conftest.er1 >conftest.err
27872   rm -f conftest.er1
27873   cat conftest.err >&5
27874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875   (exit $ac_status); } &&
27876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27877   { (case "(($ac_try" in
27878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27879   *) ac_try_echo=$ac_try;;
27880 esac
27881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27882   (eval "$ac_try") 2>&5
27883   ac_status=$?
27884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27885   (exit $ac_status); }; } &&
27886          { ac_try='test -s conftest.$ac_objext'
27887   { (case "(($ac_try" in
27888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889   *) ac_try_echo=$ac_try;;
27890 esac
27891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27892   (eval "$ac_try") 2>&5
27893   ac_status=$?
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); }; }; then
27896   ac_hi=$ac_mid; break
27897 else
27898   echo "$as_me: failed program was:" >&5
27899 sed 's/^/| /' conftest.$ac_ext >&5
27900
27901         ac_lo=`expr $ac_mid + 1`
27902                         if test $ac_lo -le $ac_mid; then
27903                           ac_lo= ac_hi=
27904                           break
27905                         fi
27906                         ac_mid=`expr 2 '*' $ac_mid + 1`
27907 fi
27908
27909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27910   done
27911 else
27912   echo "$as_me: failed program was:" >&5
27913 sed 's/^/| /' conftest.$ac_ext >&5
27914
27915         cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27921 $ac_includes_default
27922                    typedef long long int ac__type_sizeof_;
27923 int
27924 main ()
27925 {
27926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27927 test_array [0] = 0
27928
27929   ;
27930   return 0;
27931 }
27932 _ACEOF
27933 rm -f conftest.$ac_objext
27934 if { (ac_try="$ac_compile"
27935 case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940   (eval "$ac_compile") 2>conftest.er1
27941   ac_status=$?
27942   grep -v '^ *+' conftest.er1 >conftest.err
27943   rm -f conftest.er1
27944   cat conftest.err >&5
27945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27946   (exit $ac_status); } &&
27947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27948   { (case "(($ac_try" in
27949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27950   *) ac_try_echo=$ac_try;;
27951 esac
27952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27953   (eval "$ac_try") 2>&5
27954   ac_status=$?
27955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956   (exit $ac_status); }; } &&
27957          { ac_try='test -s conftest.$ac_objext'
27958   { (case "(($ac_try" in
27959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27960   *) ac_try_echo=$ac_try;;
27961 esac
27962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27963   (eval "$ac_try") 2>&5
27964   ac_status=$?
27965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966   (exit $ac_status); }; }; then
27967   ac_hi=-1 ac_mid=-1
27968   while :; do
27969     cat >conftest.$ac_ext <<_ACEOF
27970 /* confdefs.h.  */
27971 _ACEOF
27972 cat confdefs.h >>conftest.$ac_ext
27973 cat >>conftest.$ac_ext <<_ACEOF
27974 /* end confdefs.h.  */
27975 $ac_includes_default
27976                    typedef long long int ac__type_sizeof_;
27977 int
27978 main ()
27979 {
27980 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27981 test_array [0] = 0
27982
27983   ;
27984   return 0;
27985 }
27986 _ACEOF
27987 rm -f conftest.$ac_objext
27988 if { (ac_try="$ac_compile"
27989 case "(($ac_try" in
27990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27991   *) ac_try_echo=$ac_try;;
27992 esac
27993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27994   (eval "$ac_compile") 2>conftest.er1
27995   ac_status=$?
27996   grep -v '^ *+' conftest.er1 >conftest.err
27997   rm -f conftest.er1
27998   cat conftest.err >&5
27999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000   (exit $ac_status); } &&
28001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28002   { (case "(($ac_try" in
28003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28004   *) ac_try_echo=$ac_try;;
28005 esac
28006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28007   (eval "$ac_try") 2>&5
28008   ac_status=$?
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); }; } &&
28011          { ac_try='test -s conftest.$ac_objext'
28012   { (case "(($ac_try" in
28013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014   *) ac_try_echo=$ac_try;;
28015 esac
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017   (eval "$ac_try") 2>&5
28018   ac_status=$?
28019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); }; }; then
28021   ac_lo=$ac_mid; break
28022 else
28023   echo "$as_me: failed program was:" >&5
28024 sed 's/^/| /' conftest.$ac_ext >&5
28025
28026         ac_hi=`expr '(' $ac_mid ')' - 1`
28027                         if test $ac_mid -le $ac_hi; then
28028                           ac_lo= ac_hi=
28029                           break
28030                         fi
28031                         ac_mid=`expr 2 '*' $ac_mid`
28032 fi
28033
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035   done
28036 else
28037   echo "$as_me: failed program was:" >&5
28038 sed 's/^/| /' conftest.$ac_ext >&5
28039
28040         ac_lo= ac_hi=
28041 fi
28042
28043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28044 fi
28045
28046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28047 # Binary search between lo and hi bounds.
28048 while test "x$ac_lo" != "x$ac_hi"; do
28049   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28050   cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056 $ac_includes_default
28057                    typedef long long int ac__type_sizeof_;
28058 int
28059 main ()
28060 {
28061 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28062 test_array [0] = 0
28063
28064   ;
28065   return 0;
28066 }
28067 _ACEOF
28068 rm -f conftest.$ac_objext
28069 if { (ac_try="$ac_compile"
28070 case "(($ac_try" in
28071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28072   *) ac_try_echo=$ac_try;;
28073 esac
28074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28075   (eval "$ac_compile") 2>conftest.er1
28076   ac_status=$?
28077   grep -v '^ *+' conftest.er1 >conftest.err
28078   rm -f conftest.er1
28079   cat conftest.err >&5
28080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28081   (exit $ac_status); } &&
28082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28083   { (case "(($ac_try" in
28084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28085   *) ac_try_echo=$ac_try;;
28086 esac
28087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28088   (eval "$ac_try") 2>&5
28089   ac_status=$?
28090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091   (exit $ac_status); }; } &&
28092          { ac_try='test -s conftest.$ac_objext'
28093   { (case "(($ac_try" in
28094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28095   *) ac_try_echo=$ac_try;;
28096 esac
28097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28098   (eval "$ac_try") 2>&5
28099   ac_status=$?
28100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101   (exit $ac_status); }; }; then
28102   ac_hi=$ac_mid
28103 else
28104   echo "$as_me: failed program was:" >&5
28105 sed 's/^/| /' conftest.$ac_ext >&5
28106
28107         ac_lo=`expr '(' $ac_mid ')' + 1`
28108 fi
28109
28110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28111 done
28112 case $ac_lo in
28113 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28114 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28115 See \`config.log' for more details." >&5
28116 echo "$as_me: error: cannot compute sizeof (long long int)
28117 See \`config.log' for more details." >&2;}
28118    { (exit 77); exit 77; }; } ;;
28119 esac
28120 else
28121   cat >conftest.$ac_ext <<_ACEOF
28122 /* confdefs.h.  */
28123 _ACEOF
28124 cat confdefs.h >>conftest.$ac_ext
28125 cat >>conftest.$ac_ext <<_ACEOF
28126 /* end confdefs.h.  */
28127 $ac_includes_default
28128                    typedef long long int ac__type_sizeof_;
28129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28131 #include <stdio.h>
28132 #include <stdlib.h>
28133 int
28134 main ()
28135 {
28136
28137   FILE *f = fopen ("conftest.val", "w");
28138   if (! f)
28139     return 1;
28140   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28141     {
28142       long int i = longval ();
28143       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28144         return 1;
28145       fprintf (f, "%ld\n", i);
28146     }
28147   else
28148     {
28149       unsigned long int i = ulongval ();
28150       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28151         return 1;
28152       fprintf (f, "%lu\n", i);
28153     }
28154   return ferror (f) || fclose (f) != 0;
28155
28156   ;
28157   return 0;
28158 }
28159 _ACEOF
28160 rm -f conftest$ac_exeext
28161 if { (ac_try="$ac_link"
28162 case "(($ac_try" in
28163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164   *) ac_try_echo=$ac_try;;
28165 esac
28166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28167   (eval "$ac_link") 2>&5
28168   ac_status=$?
28169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28171   { (case "(($ac_try" in
28172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28173   *) ac_try_echo=$ac_try;;
28174 esac
28175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28176   (eval "$ac_try") 2>&5
28177   ac_status=$?
28178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28179   (exit $ac_status); }; }; then
28180   ac_cv_sizeof_long_long_int=`cat conftest.val`
28181 else
28182   echo "$as_me: program exited with status $ac_status" >&5
28183 echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28185
28186 ( exit $ac_status )
28187 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28188 See \`config.log' for more details." >&5
28189 echo "$as_me: error: cannot compute sizeof (long long int)
28190 See \`config.log' for more details." >&2;}
28191    { (exit 77); exit 77; }; }
28192 fi
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28194 fi
28195 rm -f conftest.val
28196 else
28197   ac_cv_sizeof_long_long_int=0
28198 fi
28199 fi
28200 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28201 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28202 cat >>confdefs.h <<_ACEOF
28203 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28204 _ACEOF
28205
28206
28207 { echo "$as_me:$LINENO: checking for int *" >&5
28208 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28209 if test "${ac_cv_type_int_p+set}" = set; then
28210   echo $ECHO_N "(cached) $ECHO_C" >&6
28211 else
28212   cat >conftest.$ac_ext <<_ACEOF
28213 /* confdefs.h.  */
28214 _ACEOF
28215 cat confdefs.h >>conftest.$ac_ext
28216 cat >>conftest.$ac_ext <<_ACEOF
28217 /* end confdefs.h.  */
28218 $ac_includes_default
28219 typedef int * ac__type_new_;
28220 int
28221 main ()
28222 {
28223 if ((ac__type_new_ *) 0)
28224   return 0;
28225 if (sizeof (ac__type_new_))
28226   return 0;
28227   ;
28228   return 0;
28229 }
28230 _ACEOF
28231 rm -f conftest.$ac_objext
28232 if { (ac_try="$ac_compile"
28233 case "(($ac_try" in
28234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28235   *) ac_try_echo=$ac_try;;
28236 esac
28237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28238   (eval "$ac_compile") 2>conftest.er1
28239   ac_status=$?
28240   grep -v '^ *+' conftest.er1 >conftest.err
28241   rm -f conftest.er1
28242   cat conftest.err >&5
28243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28244   (exit $ac_status); } &&
28245          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28246   { (case "(($ac_try" in
28247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28248   *) ac_try_echo=$ac_try;;
28249 esac
28250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28251   (eval "$ac_try") 2>&5
28252   ac_status=$?
28253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28254   (exit $ac_status); }; } &&
28255          { ac_try='test -s conftest.$ac_objext'
28256   { (case "(($ac_try" in
28257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28258   *) ac_try_echo=$ac_try;;
28259 esac
28260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28261   (eval "$ac_try") 2>&5
28262   ac_status=$?
28263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264   (exit $ac_status); }; }; then
28265   ac_cv_type_int_p=yes
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270         ac_cv_type_int_p=no
28271 fi
28272
28273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28274 fi
28275 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28276 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28277
28278 { echo "$as_me:$LINENO: checking size of int *" >&5
28279 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28280 if test "${ac_cv_sizeof_int_p+set}" = set; then
28281   echo $ECHO_N "(cached) $ECHO_C" >&6
28282 else
28283   if test "$ac_cv_type_int_p" = yes; then
28284   # The cast to long int works around a bug in the HP C Compiler
28285   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28286   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28287   # This bug is HP SR number 8606223364.
28288   if test "$cross_compiling" = yes; then
28289   # Depending upon the size, compute the lo and hi bounds.
28290 cat >conftest.$ac_ext <<_ACEOF
28291 /* confdefs.h.  */
28292 _ACEOF
28293 cat confdefs.h >>conftest.$ac_ext
28294 cat >>conftest.$ac_ext <<_ACEOF
28295 /* end confdefs.h.  */
28296 $ac_includes_default
28297                    typedef int * ac__type_sizeof_;
28298 int
28299 main ()
28300 {
28301 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28302 test_array [0] = 0
28303
28304   ;
28305   return 0;
28306 }
28307 _ACEOF
28308 rm -f conftest.$ac_objext
28309 if { (ac_try="$ac_compile"
28310 case "(($ac_try" in
28311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28312   *) ac_try_echo=$ac_try;;
28313 esac
28314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28315   (eval "$ac_compile") 2>conftest.er1
28316   ac_status=$?
28317   grep -v '^ *+' conftest.er1 >conftest.err
28318   rm -f conftest.er1
28319   cat conftest.err >&5
28320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28321   (exit $ac_status); } &&
28322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28323   { (case "(($ac_try" in
28324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28325   *) ac_try_echo=$ac_try;;
28326 esac
28327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28328   (eval "$ac_try") 2>&5
28329   ac_status=$?
28330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331   (exit $ac_status); }; } &&
28332          { ac_try='test -s conftest.$ac_objext'
28333   { (case "(($ac_try" in
28334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28335   *) ac_try_echo=$ac_try;;
28336 esac
28337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28338   (eval "$ac_try") 2>&5
28339   ac_status=$?
28340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28341   (exit $ac_status); }; }; then
28342   ac_lo=0 ac_mid=0
28343   while :; do
28344     cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350 $ac_includes_default
28351                    typedef int * ac__type_sizeof_;
28352 int
28353 main ()
28354 {
28355 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28356 test_array [0] = 0
28357
28358   ;
28359   return 0;
28360 }
28361 _ACEOF
28362 rm -f conftest.$ac_objext
28363 if { (ac_try="$ac_compile"
28364 case "(($ac_try" in
28365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28366   *) ac_try_echo=$ac_try;;
28367 esac
28368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28369   (eval "$ac_compile") 2>conftest.er1
28370   ac_status=$?
28371   grep -v '^ *+' conftest.er1 >conftest.err
28372   rm -f conftest.er1
28373   cat conftest.err >&5
28374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28375   (exit $ac_status); } &&
28376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28377   { (case "(($ac_try" in
28378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28379   *) ac_try_echo=$ac_try;;
28380 esac
28381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28382   (eval "$ac_try") 2>&5
28383   ac_status=$?
28384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28385   (exit $ac_status); }; } &&
28386          { ac_try='test -s conftest.$ac_objext'
28387   { (case "(($ac_try" in
28388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28389   *) ac_try_echo=$ac_try;;
28390 esac
28391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28392   (eval "$ac_try") 2>&5
28393   ac_status=$?
28394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); }; }; then
28396   ac_hi=$ac_mid; break
28397 else
28398   echo "$as_me: failed program was:" >&5
28399 sed 's/^/| /' conftest.$ac_ext >&5
28400
28401         ac_lo=`expr $ac_mid + 1`
28402                         if test $ac_lo -le $ac_mid; then
28403                           ac_lo= ac_hi=
28404                           break
28405                         fi
28406                         ac_mid=`expr 2 '*' $ac_mid + 1`
28407 fi
28408
28409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28410   done
28411 else
28412   echo "$as_me: failed program was:" >&5
28413 sed 's/^/| /' conftest.$ac_ext >&5
28414
28415         cat >conftest.$ac_ext <<_ACEOF
28416 /* confdefs.h.  */
28417 _ACEOF
28418 cat confdefs.h >>conftest.$ac_ext
28419 cat >>conftest.$ac_ext <<_ACEOF
28420 /* end confdefs.h.  */
28421 $ac_includes_default
28422                    typedef int * ac__type_sizeof_;
28423 int
28424 main ()
28425 {
28426 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28427 test_array [0] = 0
28428
28429   ;
28430   return 0;
28431 }
28432 _ACEOF
28433 rm -f conftest.$ac_objext
28434 if { (ac_try="$ac_compile"
28435 case "(($ac_try" in
28436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437   *) ac_try_echo=$ac_try;;
28438 esac
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440   (eval "$ac_compile") 2>conftest.er1
28441   ac_status=$?
28442   grep -v '^ *+' conftest.er1 >conftest.err
28443   rm -f conftest.er1
28444   cat conftest.err >&5
28445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28446   (exit $ac_status); } &&
28447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28448   { (case "(($ac_try" in
28449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28450   *) ac_try_echo=$ac_try;;
28451 esac
28452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28453   (eval "$ac_try") 2>&5
28454   ac_status=$?
28455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28456   (exit $ac_status); }; } &&
28457          { ac_try='test -s conftest.$ac_objext'
28458   { (case "(($ac_try" in
28459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28460   *) ac_try_echo=$ac_try;;
28461 esac
28462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28463   (eval "$ac_try") 2>&5
28464   ac_status=$?
28465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28466   (exit $ac_status); }; }; then
28467   ac_hi=-1 ac_mid=-1
28468   while :; do
28469     cat >conftest.$ac_ext <<_ACEOF
28470 /* confdefs.h.  */
28471 _ACEOF
28472 cat confdefs.h >>conftest.$ac_ext
28473 cat >>conftest.$ac_ext <<_ACEOF
28474 /* end confdefs.h.  */
28475 $ac_includes_default
28476                    typedef int * ac__type_sizeof_;
28477 int
28478 main ()
28479 {
28480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28481 test_array [0] = 0
28482
28483   ;
28484   return 0;
28485 }
28486 _ACEOF
28487 rm -f conftest.$ac_objext
28488 if { (ac_try="$ac_compile"
28489 case "(($ac_try" in
28490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28491   *) ac_try_echo=$ac_try;;
28492 esac
28493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28494   (eval "$ac_compile") 2>conftest.er1
28495   ac_status=$?
28496   grep -v '^ *+' conftest.er1 >conftest.err
28497   rm -f conftest.er1
28498   cat conftest.err >&5
28499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28500   (exit $ac_status); } &&
28501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28502   { (case "(($ac_try" in
28503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28504   *) ac_try_echo=$ac_try;;
28505 esac
28506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28507   (eval "$ac_try") 2>&5
28508   ac_status=$?
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); }; } &&
28511          { ac_try='test -s conftest.$ac_objext'
28512   { (case "(($ac_try" in
28513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514   *) ac_try_echo=$ac_try;;
28515 esac
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517   (eval "$ac_try") 2>&5
28518   ac_status=$?
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); }; }; then
28521   ac_lo=$ac_mid; break
28522 else
28523   echo "$as_me: failed program was:" >&5
28524 sed 's/^/| /' conftest.$ac_ext >&5
28525
28526         ac_hi=`expr '(' $ac_mid ')' - 1`
28527                         if test $ac_mid -le $ac_hi; then
28528                           ac_lo= ac_hi=
28529                           break
28530                         fi
28531                         ac_mid=`expr 2 '*' $ac_mid`
28532 fi
28533
28534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28535   done
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540         ac_lo= ac_hi=
28541 fi
28542
28543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28544 fi
28545
28546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28547 # Binary search between lo and hi bounds.
28548 while test "x$ac_lo" != "x$ac_hi"; do
28549   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28550   cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 $ac_includes_default
28557                    typedef int * ac__type_sizeof_;
28558 int
28559 main ()
28560 {
28561 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28562 test_array [0] = 0
28563
28564   ;
28565   return 0;
28566 }
28567 _ACEOF
28568 rm -f conftest.$ac_objext
28569 if { (ac_try="$ac_compile"
28570 case "(($ac_try" in
28571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28572   *) ac_try_echo=$ac_try;;
28573 esac
28574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28575   (eval "$ac_compile") 2>conftest.er1
28576   ac_status=$?
28577   grep -v '^ *+' conftest.er1 >conftest.err
28578   rm -f conftest.er1
28579   cat conftest.err >&5
28580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28581   (exit $ac_status); } &&
28582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28583   { (case "(($ac_try" in
28584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28585   *) ac_try_echo=$ac_try;;
28586 esac
28587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28588   (eval "$ac_try") 2>&5
28589   ac_status=$?
28590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28591   (exit $ac_status); }; } &&
28592          { ac_try='test -s conftest.$ac_objext'
28593   { (case "(($ac_try" in
28594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28595   *) ac_try_echo=$ac_try;;
28596 esac
28597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28598   (eval "$ac_try") 2>&5
28599   ac_status=$?
28600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28601   (exit $ac_status); }; }; then
28602   ac_hi=$ac_mid
28603 else
28604   echo "$as_me: failed program was:" >&5
28605 sed 's/^/| /' conftest.$ac_ext >&5
28606
28607         ac_lo=`expr '(' $ac_mid ')' + 1`
28608 fi
28609
28610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28611 done
28612 case $ac_lo in
28613 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28614 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28615 See \`config.log' for more details." >&5
28616 echo "$as_me: error: cannot compute sizeof (int *)
28617 See \`config.log' for more details." >&2;}
28618    { (exit 77); exit 77; }; } ;;
28619 esac
28620 else
28621   cat >conftest.$ac_ext <<_ACEOF
28622 /* confdefs.h.  */
28623 _ACEOF
28624 cat confdefs.h >>conftest.$ac_ext
28625 cat >>conftest.$ac_ext <<_ACEOF
28626 /* end confdefs.h.  */
28627 $ac_includes_default
28628                    typedef int * ac__type_sizeof_;
28629 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28630 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28631 #include <stdio.h>
28632 #include <stdlib.h>
28633 int
28634 main ()
28635 {
28636
28637   FILE *f = fopen ("conftest.val", "w");
28638   if (! f)
28639     return 1;
28640   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28641     {
28642       long int i = longval ();
28643       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28644         return 1;
28645       fprintf (f, "%ld\n", i);
28646     }
28647   else
28648     {
28649       unsigned long int i = ulongval ();
28650       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28651         return 1;
28652       fprintf (f, "%lu\n", i);
28653     }
28654   return ferror (f) || fclose (f) != 0;
28655
28656   ;
28657   return 0;
28658 }
28659 _ACEOF
28660 rm -f conftest$ac_exeext
28661 if { (ac_try="$ac_link"
28662 case "(($ac_try" in
28663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28664   *) ac_try_echo=$ac_try;;
28665 esac
28666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28667   (eval "$ac_link") 2>&5
28668   ac_status=$?
28669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28671   { (case "(($ac_try" in
28672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673   *) ac_try_echo=$ac_try;;
28674 esac
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676   (eval "$ac_try") 2>&5
28677   ac_status=$?
28678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679   (exit $ac_status); }; }; then
28680   ac_cv_sizeof_int_p=`cat conftest.val`
28681 else
28682   echo "$as_me: program exited with status $ac_status" >&5
28683 echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28685
28686 ( exit $ac_status )
28687 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28688 See \`config.log' for more details." >&5
28689 echo "$as_me: error: cannot compute sizeof (int *)
28690 See \`config.log' for more details." >&2;}
28691    { (exit 77); exit 77; }; }
28692 fi
28693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28694 fi
28695 rm -f conftest.val
28696 else
28697   ac_cv_sizeof_int_p=0
28698 fi
28699 fi
28700 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28701 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28702 cat >>confdefs.h <<_ACEOF
28703 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28704 _ACEOF
28705
28706
28707
28708 # Check for sys/types.h types
28709 { echo "$as_me:$LINENO: checking for u_int type" >&5
28710 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28711 if test "${ac_cv_have_u_int+set}" = set; then
28712   echo $ECHO_N "(cached) $ECHO_C" >&6
28713 else
28714
28715     cat >conftest.$ac_ext <<_ACEOF
28716 /* confdefs.h.  */
28717 _ACEOF
28718 cat confdefs.h >>conftest.$ac_ext
28719 cat >>conftest.$ac_ext <<_ACEOF
28720 /* end confdefs.h.  */
28721  #include <sys/types.h>
28722 int
28723 main ()
28724 {
28725  u_int a; a = 1;
28726   ;
28727   return 0;
28728 }
28729 _ACEOF
28730 rm -f conftest.$ac_objext
28731 if { (ac_try="$ac_compile"
28732 case "(($ac_try" in
28733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28734   *) ac_try_echo=$ac_try;;
28735 esac
28736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28737   (eval "$ac_compile") 2>conftest.er1
28738   ac_status=$?
28739   grep -v '^ *+' conftest.er1 >conftest.err
28740   rm -f conftest.er1
28741   cat conftest.err >&5
28742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28743   (exit $ac_status); } &&
28744          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28745   { (case "(($ac_try" in
28746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28747   *) ac_try_echo=$ac_try;;
28748 esac
28749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28750   (eval "$ac_try") 2>&5
28751   ac_status=$?
28752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28753   (exit $ac_status); }; } &&
28754          { ac_try='test -s conftest.$ac_objext'
28755   { (case "(($ac_try" in
28756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28757   *) ac_try_echo=$ac_try;;
28758 esac
28759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28760   (eval "$ac_try") 2>&5
28761   ac_status=$?
28762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28763   (exit $ac_status); }; }; then
28764    ac_cv_have_u_int="yes"
28765 else
28766   echo "$as_me: failed program was:" >&5
28767 sed 's/^/| /' conftest.$ac_ext >&5
28768
28769          ac_cv_have_u_int="no"
28770
28771 fi
28772
28773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28774
28775 fi
28776 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28777 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28778 if test "x$ac_cv_have_u_int" = "xyes" ; then
28779    cat >>confdefs.h <<\_ACEOF
28780 #define HAVE_U_INT 1
28781 _ACEOF
28782
28783    have_u_int=1
28784 fi
28785
28786 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28787 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28788 if test "${ac_cv_have_intmax_t+set}" = set; then
28789   echo $ECHO_N "(cached) $ECHO_C" >&6
28790 else
28791
28792    cat >conftest.$ac_ext <<_ACEOF
28793 /* confdefs.h.  */
28794 _ACEOF
28795 cat confdefs.h >>conftest.$ac_ext
28796 cat >>conftest.$ac_ext <<_ACEOF
28797 /* end confdefs.h.  */
28798  #include <sys/types.h>
28799 int
28800 main ()
28801 {
28802  intmax_t a; a = 1;
28803   ;
28804   return 0;
28805 }
28806 _ACEOF
28807 rm -f conftest.$ac_objext
28808 if { (ac_try="$ac_compile"
28809 case "(($ac_try" in
28810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28811   *) ac_try_echo=$ac_try;;
28812 esac
28813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28814   (eval "$ac_compile") 2>conftest.er1
28815   ac_status=$?
28816   grep -v '^ *+' conftest.er1 >conftest.err
28817   rm -f conftest.er1
28818   cat conftest.err >&5
28819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820   (exit $ac_status); } &&
28821          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28822   { (case "(($ac_try" in
28823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28824   *) ac_try_echo=$ac_try;;
28825 esac
28826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28827   (eval "$ac_try") 2>&5
28828   ac_status=$?
28829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28830   (exit $ac_status); }; } &&
28831          { ac_try='test -s conftest.$ac_objext'
28832   { (case "(($ac_try" in
28833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28834   *) ac_try_echo=$ac_try;;
28835 esac
28836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28837   (eval "$ac_try") 2>&5
28838   ac_status=$?
28839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28840   (exit $ac_status); }; }; then
28841    ac_cv_have_intmax_t="yes"
28842 else
28843   echo "$as_me: failed program was:" >&5
28844 sed 's/^/| /' conftest.$ac_ext >&5
28845
28846
28847          cat >conftest.$ac_ext <<_ACEOF
28848 /* confdefs.h.  */
28849 _ACEOF
28850 cat confdefs.h >>conftest.$ac_ext
28851 cat >>conftest.$ac_ext <<_ACEOF
28852 /* end confdefs.h.  */
28853  #include <stdint.h>
28854 int
28855 main ()
28856 {
28857  intmax_t a; a = 1;
28858   ;
28859   return 0;
28860 }
28861 _ACEOF
28862 rm -f conftest.$ac_objext
28863 if { (ac_try="$ac_compile"
28864 case "(($ac_try" in
28865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28866   *) ac_try_echo=$ac_try;;
28867 esac
28868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28869   (eval "$ac_compile") 2>conftest.er1
28870   ac_status=$?
28871   grep -v '^ *+' conftest.er1 >conftest.err
28872   rm -f conftest.er1
28873   cat conftest.err >&5
28874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); } &&
28876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28877   { (case "(($ac_try" in
28878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28879   *) ac_try_echo=$ac_try;;
28880 esac
28881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28882   (eval "$ac_try") 2>&5
28883   ac_status=$?
28884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28885   (exit $ac_status); }; } &&
28886          { ac_try='test -s conftest.$ac_objext'
28887   { (case "(($ac_try" in
28888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28889   *) ac_try_echo=$ac_try;;
28890 esac
28891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28892   (eval "$ac_try") 2>&5
28893   ac_status=$?
28894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); }; }; then
28896    ac_cv_have_intmax_t="yes"
28897 else
28898   echo "$as_me: failed program was:" >&5
28899 sed 's/^/| /' conftest.$ac_ext >&5
28900
28901          ac_cv_have_intmax_t="no"
28902
28903 fi
28904
28905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28906
28907
28908 fi
28909
28910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28911
28912
28913 fi
28914 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28915 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
28916 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28917    cat >>confdefs.h <<\_ACEOF
28918 #define HAVE_INTMAX_T 1
28919 _ACEOF
28920
28921    have_intmax_t=1
28922 fi
28923
28924
28925 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
28926 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
28927 if test "${ac_cv_have_u_intmax_t+set}" = set; then
28928   echo $ECHO_N "(cached) $ECHO_C" >&6
28929 else
28930
28931    cat >conftest.$ac_ext <<_ACEOF
28932 /* confdefs.h.  */
28933 _ACEOF
28934 cat confdefs.h >>conftest.$ac_ext
28935 cat >>conftest.$ac_ext <<_ACEOF
28936 /* end confdefs.h.  */
28937  #include <sys/types.h>
28938 int
28939 main ()
28940 {
28941  u_intmax_t a; a = 1;
28942   ;
28943   return 0;
28944 }
28945 _ACEOF
28946 rm -f conftest.$ac_objext
28947 if { (ac_try="$ac_compile"
28948 case "(($ac_try" in
28949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28950   *) ac_try_echo=$ac_try;;
28951 esac
28952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28953   (eval "$ac_compile") 2>conftest.er1
28954   ac_status=$?
28955   grep -v '^ *+' conftest.er1 >conftest.err
28956   rm -f conftest.er1
28957   cat conftest.err >&5
28958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28959   (exit $ac_status); } &&
28960          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28961   { (case "(($ac_try" in
28962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28963   *) ac_try_echo=$ac_try;;
28964 esac
28965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28966   (eval "$ac_try") 2>&5
28967   ac_status=$?
28968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28969   (exit $ac_status); }; } &&
28970          { ac_try='test -s conftest.$ac_objext'
28971   { (case "(($ac_try" in
28972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28973   *) ac_try_echo=$ac_try;;
28974 esac
28975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28976   (eval "$ac_try") 2>&5
28977   ac_status=$?
28978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); }; }; then
28980    ac_cv_have_u_intmax_t="yes"
28981 else
28982   echo "$as_me: failed program was:" >&5
28983 sed 's/^/| /' conftest.$ac_ext >&5
28984
28985
28986          cat >conftest.$ac_ext <<_ACEOF
28987 /* confdefs.h.  */
28988 _ACEOF
28989 cat confdefs.h >>conftest.$ac_ext
28990 cat >>conftest.$ac_ext <<_ACEOF
28991 /* end confdefs.h.  */
28992  #include <stdint.h>
28993 int
28994 main ()
28995 {
28996  u_intmax_t a; a = 1;
28997   ;
28998   return 0;
28999 }
29000 _ACEOF
29001 rm -f conftest.$ac_objext
29002 if { (ac_try="$ac_compile"
29003 case "(($ac_try" in
29004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29005   *) ac_try_echo=$ac_try;;
29006 esac
29007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29008   (eval "$ac_compile") 2>conftest.er1
29009   ac_status=$?
29010   grep -v '^ *+' conftest.er1 >conftest.err
29011   rm -f conftest.er1
29012   cat conftest.err >&5
29013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29014   (exit $ac_status); } &&
29015          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29016   { (case "(($ac_try" in
29017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29018   *) ac_try_echo=$ac_try;;
29019 esac
29020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29021   (eval "$ac_try") 2>&5
29022   ac_status=$?
29023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); }; } &&
29025          { ac_try='test -s conftest.$ac_objext'
29026   { (case "(($ac_try" in
29027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29028   *) ac_try_echo=$ac_try;;
29029 esac
29030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29031   (eval "$ac_try") 2>&5
29032   ac_status=$?
29033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29034   (exit $ac_status); }; }; then
29035    ac_cv_have_u_intmax_t="yes"
29036 else
29037   echo "$as_me: failed program was:" >&5
29038 sed 's/^/| /' conftest.$ac_ext >&5
29039
29040          ac_cv_have_u_intmax_t="no"
29041
29042 fi
29043
29044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29045
29046
29047 fi
29048
29049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29050
29051 fi
29052 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29053 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29054 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29055    cat >>confdefs.h <<\_ACEOF
29056 #define HAVE_U_INTMAX_T 1
29057 _ACEOF
29058
29059    have_u_intmax_t=1
29060 fi
29061
29062
29063 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29064 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29065 if test "${ac_cv_have_intxx_t+set}" = set; then
29066   echo $ECHO_N "(cached) $ECHO_C" >&6
29067 else
29068
29069    cat >conftest.$ac_ext <<_ACEOF
29070 /* confdefs.h.  */
29071 _ACEOF
29072 cat confdefs.h >>conftest.$ac_ext
29073 cat >>conftest.$ac_ext <<_ACEOF
29074 /* end confdefs.h.  */
29075  #include <sys/types.h>
29076 int
29077 main ()
29078 {
29079  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29080   ;
29081   return 0;
29082 }
29083 _ACEOF
29084 rm -f conftest.$ac_objext
29085 if { (ac_try="$ac_compile"
29086 case "(($ac_try" in
29087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29088   *) ac_try_echo=$ac_try;;
29089 esac
29090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29091   (eval "$ac_compile") 2>conftest.er1
29092   ac_status=$?
29093   grep -v '^ *+' conftest.er1 >conftest.err
29094   rm -f conftest.er1
29095   cat conftest.err >&5
29096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097   (exit $ac_status); } &&
29098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29099   { (case "(($ac_try" in
29100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29101   *) ac_try_echo=$ac_try;;
29102 esac
29103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29104   (eval "$ac_try") 2>&5
29105   ac_status=$?
29106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29107   (exit $ac_status); }; } &&
29108          { ac_try='test -s conftest.$ac_objext'
29109   { (case "(($ac_try" in
29110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29111   *) ac_try_echo=$ac_try;;
29112 esac
29113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29114   (eval "$ac_try") 2>&5
29115   ac_status=$?
29116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); }; }; then
29118    ac_cv_have_intxx_t="yes"
29119 else
29120   echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.$ac_ext >&5
29122
29123          ac_cv_have_intxx_t="no"
29124
29125 fi
29126
29127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29128
29129 fi
29130 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29131 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29132 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29133    cat >>confdefs.h <<\_ACEOF
29134 #define HAVE_INTXX_T 1
29135 _ACEOF
29136
29137    have_intxx_t=1
29138 fi
29139
29140 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29141 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29142 if test "${ac_cv_have_int64_t+set}" = set; then
29143   echo $ECHO_N "(cached) $ECHO_C" >&6
29144 else
29145
29146    cat >conftest.$ac_ext <<_ACEOF
29147 /* confdefs.h.  */
29148 _ACEOF
29149 cat confdefs.h >>conftest.$ac_ext
29150 cat >>conftest.$ac_ext <<_ACEOF
29151 /* end confdefs.h.  */
29152  #include <sys/types.h>
29153 int
29154 main ()
29155 {
29156  int64_t a; a = 1;
29157   ;
29158   return 0;
29159 }
29160 _ACEOF
29161 rm -f conftest.$ac_objext
29162 if { (ac_try="$ac_compile"
29163 case "(($ac_try" in
29164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29165   *) ac_try_echo=$ac_try;;
29166 esac
29167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29168   (eval "$ac_compile") 2>conftest.er1
29169   ac_status=$?
29170   grep -v '^ *+' conftest.er1 >conftest.err
29171   rm -f conftest.er1
29172   cat conftest.err >&5
29173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29174   (exit $ac_status); } &&
29175          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29176   { (case "(($ac_try" in
29177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178   *) ac_try_echo=$ac_try;;
29179 esac
29180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29181   (eval "$ac_try") 2>&5
29182   ac_status=$?
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); }; } &&
29185          { ac_try='test -s conftest.$ac_objext'
29186   { (case "(($ac_try" in
29187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188   *) ac_try_echo=$ac_try;;
29189 esac
29190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29191   (eval "$ac_try") 2>&5
29192   ac_status=$?
29193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29194   (exit $ac_status); }; }; then
29195    ac_cv_have_int64_t="yes"
29196 else
29197   echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29199
29200          ac_cv_have_int64_t="no"
29201
29202 fi
29203
29204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29205
29206 fi
29207 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29208 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29209 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29210    cat >>confdefs.h <<\_ACEOF
29211 #define HAVE_INT64_T 1
29212 _ACEOF
29213
29214    have_int64_t=1
29215 fi
29216
29217 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29218 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29219 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29220   echo $ECHO_N "(cached) $ECHO_C" >&6
29221 else
29222
29223    cat >conftest.$ac_ext <<_ACEOF
29224 /* confdefs.h.  */
29225 _ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h.  */
29229  #include <sys/types.h>
29230 int
29231 main ()
29232 {
29233  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29234   ;
29235   return 0;
29236 }
29237 _ACEOF
29238 rm -f conftest.$ac_objext
29239 if { (ac_try="$ac_compile"
29240 case "(($ac_try" in
29241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29242   *) ac_try_echo=$ac_try;;
29243 esac
29244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29245   (eval "$ac_compile") 2>conftest.er1
29246   ac_status=$?
29247   grep -v '^ *+' conftest.er1 >conftest.err
29248   rm -f conftest.er1
29249   cat conftest.err >&5
29250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29251   (exit $ac_status); } &&
29252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29253   { (case "(($ac_try" in
29254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29255   *) ac_try_echo=$ac_try;;
29256 esac
29257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29258   (eval "$ac_try") 2>&5
29259   ac_status=$?
29260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29261   (exit $ac_status); }; } &&
29262          { ac_try='test -s conftest.$ac_objext'
29263   { (case "(($ac_try" in
29264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29265   *) ac_try_echo=$ac_try;;
29266 esac
29267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29268   (eval "$ac_try") 2>&5
29269   ac_status=$?
29270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29271   (exit $ac_status); }; }; then
29272    ac_cv_have_u_intxx_t="yes"
29273 else
29274   echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.$ac_ext >&5
29276
29277          ac_cv_have_u_intxx_t="no"
29278
29279 fi
29280
29281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29282
29283 fi
29284 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29285 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29286 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29287    cat >>confdefs.h <<\_ACEOF
29288 #define HAVE_U_INTXX_T 1
29289 _ACEOF
29290
29291    have_u_intxx_t=1
29292 fi
29293
29294 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29295 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29296 if test "${ac_cv_have_u_int64_t+set}" = set; then
29297   echo $ECHO_N "(cached) $ECHO_C" >&6
29298 else
29299
29300    cat >conftest.$ac_ext <<_ACEOF
29301 /* confdefs.h.  */
29302 _ACEOF
29303 cat confdefs.h >>conftest.$ac_ext
29304 cat >>conftest.$ac_ext <<_ACEOF
29305 /* end confdefs.h.  */
29306  #include <sys/types.h>
29307 int
29308 main ()
29309 {
29310  u_int64_t a; a = 1;
29311   ;
29312   return 0;
29313 }
29314 _ACEOF
29315 rm -f conftest.$ac_objext
29316 if { (ac_try="$ac_compile"
29317 case "(($ac_try" in
29318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29319   *) ac_try_echo=$ac_try;;
29320 esac
29321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29322   (eval "$ac_compile") 2>conftest.er1
29323   ac_status=$?
29324   grep -v '^ *+' conftest.er1 >conftest.err
29325   rm -f conftest.er1
29326   cat conftest.err >&5
29327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29328   (exit $ac_status); } &&
29329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29330   { (case "(($ac_try" in
29331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29332   *) ac_try_echo=$ac_try;;
29333 esac
29334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29335   (eval "$ac_try") 2>&5
29336   ac_status=$?
29337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29338   (exit $ac_status); }; } &&
29339          { ac_try='test -s conftest.$ac_objext'
29340   { (case "(($ac_try" in
29341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29342   *) ac_try_echo=$ac_try;;
29343 esac
29344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29345   (eval "$ac_try") 2>&5
29346   ac_status=$?
29347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29348   (exit $ac_status); }; }; then
29349    ac_cv_have_u_int64_t="yes"
29350 else
29351   echo "$as_me: failed program was:" >&5
29352 sed 's/^/| /' conftest.$ac_ext >&5
29353
29354          ac_cv_have_u_int64_t="no"
29355
29356 fi
29357
29358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29359
29360 fi
29361 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29362 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29363 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29364    cat >>confdefs.h <<\_ACEOF
29365 #define HAVE_U_INT64_T 1
29366 _ACEOF
29367
29368    have_u_int64_t=1
29369 fi
29370
29371 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29372            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29373 then
29374    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29375 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29376    cat >conftest.$ac_ext <<_ACEOF
29377 /* confdefs.h.  */
29378 _ACEOF
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h.  */
29382  #include <sys/bitypes.h>
29383 int
29384 main ()
29385 {
29386  int8_t a; int16_t b; int32_t c;
29387         u_int8_t e; u_int16_t f; u_int32_t g;
29388         a = b = c = e = f = g = 1;
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext
29394 if { (ac_try="$ac_compile"
29395 case "(($ac_try" in
29396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397   *) ac_try_echo=$ac_try;;
29398 esac
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400   (eval "$ac_compile") 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } &&
29407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29408   { (case "(($ac_try" in
29409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29410   *) ac_try_echo=$ac_try;;
29411 esac
29412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29413   (eval "$ac_try") 2>&5
29414   ac_status=$?
29415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29416   (exit $ac_status); }; } &&
29417          { ac_try='test -s conftest.$ac_objext'
29418   { (case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_try") 2>&5
29424   ac_status=$?
29425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29426   (exit $ac_status); }; }; then
29427    cat >>confdefs.h <<\_ACEOF
29428 #define HAVE_U_INTXX_T 1
29429 _ACEOF
29430
29431         cat >>confdefs.h <<\_ACEOF
29432 #define HAVE_INTXX_T 1
29433 _ACEOF
29434
29435         cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_SYS_BITYPES_H 1
29437 _ACEOF
29438
29439         { echo "$as_me:$LINENO: result: yes" >&5
29440 echo "${ECHO_T}yes" >&6; }
29441 else
29442   echo "$as_me: failed program was:" >&5
29443 sed 's/^/| /' conftest.$ac_ext >&5
29444
29445          { echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6; }
29447
29448 fi
29449
29450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29451 fi
29452
29453 if test -z "$have_u_intxx_t" ; then
29454    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29455 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29456 if test "${ac_cv_have_uintxx_t+set}" = set; then
29457   echo $ECHO_N "(cached) $ECHO_C" >&6
29458 else
29459
29460       cat >conftest.$ac_ext <<_ACEOF
29461 /* confdefs.h.  */
29462 _ACEOF
29463 cat confdefs.h >>conftest.$ac_ext
29464 cat >>conftest.$ac_ext <<_ACEOF
29465 /* end confdefs.h.  */
29466  #include <sys/types.h>
29467 int
29468 main ()
29469 {
29470  uint8_t a; uint16_t b;
29471            uint32_t c; a = b = c = 1;
29472   ;
29473   return 0;
29474 }
29475 _ACEOF
29476 rm -f conftest.$ac_objext
29477 if { (ac_try="$ac_compile"
29478 case "(($ac_try" in
29479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29480   *) ac_try_echo=$ac_try;;
29481 esac
29482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29483   (eval "$ac_compile") 2>conftest.er1
29484   ac_status=$?
29485   grep -v '^ *+' conftest.er1 >conftest.err
29486   rm -f conftest.er1
29487   cat conftest.err >&5
29488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29489   (exit $ac_status); } &&
29490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29491   { (case "(($ac_try" in
29492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29493   *) ac_try_echo=$ac_try;;
29494 esac
29495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29496   (eval "$ac_try") 2>&5
29497   ac_status=$?
29498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29499   (exit $ac_status); }; } &&
29500          { ac_try='test -s conftest.$ac_objext'
29501   { (case "(($ac_try" in
29502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29503   *) ac_try_echo=$ac_try;;
29504 esac
29505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29506   (eval "$ac_try") 2>&5
29507   ac_status=$?
29508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29509   (exit $ac_status); }; }; then
29510    ac_cv_have_uintxx_t="yes"
29511 else
29512   echo "$as_me: failed program was:" >&5
29513 sed 's/^/| /' conftest.$ac_ext >&5
29514
29515          ac_cv_have_uintxx_t="no"
29516
29517 fi
29518
29519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29520
29521 fi
29522 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29523 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29524    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29525       cat >>confdefs.h <<\_ACEOF
29526 #define HAVE_UINTXX_T 1
29527 _ACEOF
29528
29529    fi
29530 fi
29531
29532 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29533           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29534 then
29535    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29536 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29537    cat >conftest.$ac_ext <<_ACEOF
29538 /* confdefs.h.  */
29539 _ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h.  */
29543  #include <sys/bitypes.h>
29544 int
29545 main ()
29546 {
29547  int64_t a; u_int64_t b;
29548        a = b = 1;
29549   ;
29550   return 0;
29551 }
29552 _ACEOF
29553 rm -f conftest.$ac_objext
29554 if { (ac_try="$ac_compile"
29555 case "(($ac_try" in
29556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557   *) ac_try_echo=$ac_try;;
29558 esac
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560   (eval "$ac_compile") 2>conftest.er1
29561   ac_status=$?
29562   grep -v '^ *+' conftest.er1 >conftest.err
29563   rm -f conftest.er1
29564   cat conftest.err >&5
29565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566   (exit $ac_status); } &&
29567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29568   { (case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573   (eval "$ac_try") 2>&5
29574   ac_status=$?
29575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29576   (exit $ac_status); }; } &&
29577          { ac_try='test -s conftest.$ac_objext'
29578   { (case "(($ac_try" in
29579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29580   *) ac_try_echo=$ac_try;;
29581 esac
29582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29583   (eval "$ac_try") 2>&5
29584   ac_status=$?
29585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586   (exit $ac_status); }; }; then
29587    cat >>confdefs.h <<\_ACEOF
29588 #define HAVE_U_INT64_T 1
29589 _ACEOF
29590
29591        cat >>confdefs.h <<\_ACEOF
29592 #define HAVE_INT64_T 1
29593 _ACEOF
29594
29595        { echo "$as_me:$LINENO: result: yes" >&5
29596 echo "${ECHO_T}yes" >&6; }
29597 else
29598   echo "$as_me: failed program was:" >&5
29599 sed 's/^/| /' conftest.$ac_ext >&5
29600
29601          { echo "$as_me:$LINENO: result: no" >&5
29602 echo "${ECHO_T}no" >&6; }
29603
29604 fi
29605
29606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29607 fi
29608
29609 if (test -z "$have_uintxx_t" && \
29610           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29611 then
29612    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29613 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29614    cat >conftest.$ac_ext <<_ACEOF
29615 /* confdefs.h.  */
29616 _ACEOF
29617 cat confdefs.h >>conftest.$ac_ext
29618 cat >>conftest.$ac_ext <<_ACEOF
29619 /* end confdefs.h.  */
29620  #include <sys/bitypes.h>
29621 int
29622 main ()
29623 {
29624  uint8_t a; uint16_t b;
29625           uint32_t c; a = b = c = 1;
29626   ;
29627   return 0;
29628 }
29629 _ACEOF
29630 rm -f conftest.$ac_objext
29631 if { (ac_try="$ac_compile"
29632 case "(($ac_try" in
29633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634   *) ac_try_echo=$ac_try;;
29635 esac
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637   (eval "$ac_compile") 2>conftest.er1
29638   ac_status=$?
29639   grep -v '^ *+' conftest.er1 >conftest.err
29640   rm -f conftest.er1
29641   cat conftest.err >&5
29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); } &&
29644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29645   { (case "(($ac_try" in
29646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29647   *) ac_try_echo=$ac_try;;
29648 esac
29649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29650   (eval "$ac_try") 2>&5
29651   ac_status=$?
29652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29653   (exit $ac_status); }; } &&
29654          { ac_try='test -s conftest.$ac_objext'
29655   { (case "(($ac_try" in
29656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29657   *) ac_try_echo=$ac_try;;
29658 esac
29659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29660   (eval "$ac_try") 2>&5
29661   ac_status=$?
29662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663   (exit $ac_status); }; }; then
29664    cat >>confdefs.h <<\_ACEOF
29665 #define HAVE_UINTXX_T 1
29666 _ACEOF
29667
29668        { echo "$as_me:$LINENO: result: yes" >&5
29669 echo "${ECHO_T}yes" >&6; }
29670 else
29671   echo "$as_me: failed program was:" >&5
29672 sed 's/^/| /' conftest.$ac_ext >&5
29673
29674          { echo "$as_me:$LINENO: result: no" >&5
29675 echo "${ECHO_T}no" >&6; }
29676
29677 fi
29678
29679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29680
29681 fi
29682
29683
29684
29685
29686
29687
29688
29689
29690
29691
29692
29693
29694
29695
29696
29697
29698
29699 for ac_func in \
29700         fork \
29701         getcwd \
29702         gethostname \
29703         getpid \
29704         gettimeofday \
29705         setpgid \
29706         setpgrp \
29707         setsid \
29708         signal \
29709         strerror \
29710         strncmp \
29711         strncpy \
29712         vfprintf \
29713
29714 do
29715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29719   echo $ECHO_N "(cached) $ECHO_C" >&6
29720 else
29721   cat >conftest.$ac_ext <<_ACEOF
29722 /* confdefs.h.  */
29723 _ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h.  */
29727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29729 #define $ac_func innocuous_$ac_func
29730
29731 /* System header to define __stub macros and hopefully few prototypes,
29732     which can conflict with char $ac_func (); below.
29733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29734     <limits.h> exists even on freestanding compilers.  */
29735
29736 #ifdef __STDC__
29737 # include <limits.h>
29738 #else
29739 # include <assert.h>
29740 #endif
29741
29742 #undef $ac_func
29743
29744 /* Override any GCC internal prototype to avoid an error.
29745    Use char because int might match the return type of a GCC
29746    builtin and then its argument prototype would still apply.  */
29747 #ifdef __cplusplus
29748 extern "C"
29749 #endif
29750 char $ac_func ();
29751 /* The GNU C library defines this for functions which it implements
29752     to always fail with ENOSYS.  Some functions are actually named
29753     something starting with __ and the normal name is an alias.  */
29754 #if defined __stub_$ac_func || defined __stub___$ac_func
29755 choke me
29756 #endif
29757
29758 int
29759 main ()
29760 {
29761 return $ac_func ();
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (ac_try="$ac_link"
29768 case "(($ac_try" in
29769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770   *) ac_try_echo=$ac_try;;
29771 esac
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773   (eval "$ac_link") 2>conftest.er1
29774   ac_status=$?
29775   grep -v '^ *+' conftest.er1 >conftest.err
29776   rm -f conftest.er1
29777   cat conftest.err >&5
29778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779   (exit $ac_status); } &&
29780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29781   { (case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_try") 2>&5
29787   ac_status=$?
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); }; } &&
29790          { ac_try='test -s conftest$ac_exeext'
29791   { (case "(($ac_try" in
29792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29793   *) ac_try_echo=$ac_try;;
29794 esac
29795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29796   (eval "$ac_try") 2>&5
29797   ac_status=$?
29798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29799   (exit $ac_status); }; }; then
29800   eval "$as_ac_var=yes"
29801 else
29802   echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805         eval "$as_ac_var=no"
29806 fi
29807
29808 rm -f core conftest.err conftest.$ac_objext \
29809       conftest$ac_exeext conftest.$ac_ext
29810 fi
29811 ac_res=`eval echo '${'$as_ac_var'}'`
29812                { echo "$as_me:$LINENO: result: $ac_res" >&5
29813 echo "${ECHO_T}$ac_res" >&6; }
29814 if test `eval echo '${'$as_ac_var'}'` = yes; then
29815   cat >>confdefs.h <<_ACEOF
29816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29817 _ACEOF
29818
29819 else
29820   echo 'configure: cannot find needed function.'; exit 1
29821
29822 fi
29823 done
29824
29825
29826
29827 for ac_func in fchdir
29828 do
29829 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29830 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29831 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29832 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29833   echo $ECHO_N "(cached) $ECHO_C" >&6
29834 else
29835   cat >conftest.$ac_ext <<_ACEOF
29836 /* confdefs.h.  */
29837 _ACEOF
29838 cat confdefs.h >>conftest.$ac_ext
29839 cat >>conftest.$ac_ext <<_ACEOF
29840 /* end confdefs.h.  */
29841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29842    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29843 #define $ac_func innocuous_$ac_func
29844
29845 /* System header to define __stub macros and hopefully few prototypes,
29846     which can conflict with char $ac_func (); below.
29847     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29848     <limits.h> exists even on freestanding compilers.  */
29849
29850 #ifdef __STDC__
29851 # include <limits.h>
29852 #else
29853 # include <assert.h>
29854 #endif
29855
29856 #undef $ac_func
29857
29858 /* Override any GCC internal prototype to avoid an error.
29859    Use char because int might match the return type of a GCC
29860    builtin and then its argument prototype would still apply.  */
29861 #ifdef __cplusplus
29862 extern "C"
29863 #endif
29864 char $ac_func ();
29865 /* The GNU C library defines this for functions which it implements
29866     to always fail with ENOSYS.  Some functions are actually named
29867     something starting with __ and the normal name is an alias.  */
29868 #if defined __stub_$ac_func || defined __stub___$ac_func
29869 choke me
29870 #endif
29871
29872 int
29873 main ()
29874 {
29875 return $ac_func ();
29876   ;
29877   return 0;
29878 }
29879 _ACEOF
29880 rm -f conftest.$ac_objext conftest$ac_exeext
29881 if { (ac_try="$ac_link"
29882 case "(($ac_try" in
29883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884   *) ac_try_echo=$ac_try;;
29885 esac
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887   (eval "$ac_link") 2>conftest.er1
29888   ac_status=$?
29889   grep -v '^ *+' conftest.er1 >conftest.err
29890   rm -f conftest.er1
29891   cat conftest.err >&5
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); } &&
29894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29895   { (case "(($ac_try" in
29896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29897   *) ac_try_echo=$ac_try;;
29898 esac
29899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29900   (eval "$ac_try") 2>&5
29901   ac_status=$?
29902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29903   (exit $ac_status); }; } &&
29904          { ac_try='test -s conftest$ac_exeext'
29905   { (case "(($ac_try" in
29906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29907   *) ac_try_echo=$ac_try;;
29908 esac
29909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29910   (eval "$ac_try") 2>&5
29911   ac_status=$?
29912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29913   (exit $ac_status); }; }; then
29914   eval "$as_ac_var=yes"
29915 else
29916   echo "$as_me: failed program was:" >&5
29917 sed 's/^/| /' conftest.$ac_ext >&5
29918
29919         eval "$as_ac_var=no"
29920 fi
29921
29922 rm -f core conftest.err conftest.$ac_objext \
29923       conftest$ac_exeext conftest.$ac_ext
29924 fi
29925 ac_res=`eval echo '${'$as_ac_var'}'`
29926                { echo "$as_me:$LINENO: result: $ac_res" >&5
29927 echo "${ECHO_T}$ac_res" >&6; }
29928 if test `eval echo '${'$as_ac_var'}'` = yes; then
29929   cat >>confdefs.h <<_ACEOF
29930 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29931 _ACEOF
29932  cat >>confdefs.h <<\_ACEOF
29933 #define HAVE_FCHDIR 1
29934 _ACEOF
29935
29936 fi
29937 done
29938
29939
29940 for ac_func in strtoll
29941 do
29942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29945 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29946   echo $ECHO_N "(cached) $ECHO_C" >&6
29947 else
29948   cat >conftest.$ac_ext <<_ACEOF
29949 /* confdefs.h.  */
29950 _ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h.  */
29954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29955    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29956 #define $ac_func innocuous_$ac_func
29957
29958 /* System header to define __stub macros and hopefully few prototypes,
29959     which can conflict with char $ac_func (); below.
29960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29961     <limits.h> exists even on freestanding compilers.  */
29962
29963 #ifdef __STDC__
29964 # include <limits.h>
29965 #else
29966 # include <assert.h>
29967 #endif
29968
29969 #undef $ac_func
29970
29971 /* Override any GCC internal prototype to avoid an error.
29972    Use char because int might match the return type of a GCC
29973    builtin and then its argument prototype would still apply.  */
29974 #ifdef __cplusplus
29975 extern "C"
29976 #endif
29977 char $ac_func ();
29978 /* The GNU C library defines this for functions which it implements
29979     to always fail with ENOSYS.  Some functions are actually named
29980     something starting with __ and the normal name is an alias.  */
29981 #if defined __stub_$ac_func || defined __stub___$ac_func
29982 choke me
29983 #endif
29984
29985 int
29986 main ()
29987 {
29988 return $ac_func ();
29989   ;
29990   return 0;
29991 }
29992 _ACEOF
29993 rm -f conftest.$ac_objext conftest$ac_exeext
29994 if { (ac_try="$ac_link"
29995 case "(($ac_try" in
29996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29997   *) ac_try_echo=$ac_try;;
29998 esac
29999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30000   (eval "$ac_link") 2>conftest.er1
30001   ac_status=$?
30002   grep -v '^ *+' conftest.er1 >conftest.err
30003   rm -f conftest.er1
30004   cat conftest.err >&5
30005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30006   (exit $ac_status); } &&
30007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30008   { (case "(($ac_try" in
30009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30010   *) ac_try_echo=$ac_try;;
30011 esac
30012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30013   (eval "$ac_try") 2>&5
30014   ac_status=$?
30015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30016   (exit $ac_status); }; } &&
30017          { ac_try='test -s conftest$ac_exeext'
30018   { (case "(($ac_try" in
30019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30020   *) ac_try_echo=$ac_try;;
30021 esac
30022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30023   (eval "$ac_try") 2>&5
30024   ac_status=$?
30025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026   (exit $ac_status); }; }; then
30027   eval "$as_ac_var=yes"
30028 else
30029   echo "$as_me: failed program was:" >&5
30030 sed 's/^/| /' conftest.$ac_ext >&5
30031
30032         eval "$as_ac_var=no"
30033 fi
30034
30035 rm -f core conftest.err conftest.$ac_objext \
30036       conftest$ac_exeext conftest.$ac_ext
30037 fi
30038 ac_res=`eval echo '${'$as_ac_var'}'`
30039                { echo "$as_me:$LINENO: result: $ac_res" >&5
30040 echo "${ECHO_T}$ac_res" >&6; }
30041 if test `eval echo '${'$as_ac_var'}'` = yes; then
30042   cat >>confdefs.h <<_ACEOF
30043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30044 _ACEOF
30045  cat >>confdefs.h <<\_ACEOF
30046 #define HAVE_STRTOLL 1
30047 _ACEOF
30048
30049 fi
30050 done
30051
30052
30053
30054 for ac_func in chflags
30055 do
30056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30060   echo $ECHO_N "(cached) $ECHO_C" >&6
30061 else
30062   cat >conftest.$ac_ext <<_ACEOF
30063 /* confdefs.h.  */
30064 _ACEOF
30065 cat confdefs.h >>conftest.$ac_ext
30066 cat >>conftest.$ac_ext <<_ACEOF
30067 /* end confdefs.h.  */
30068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30069    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30070 #define $ac_func innocuous_$ac_func
30071
30072 /* System header to define __stub macros and hopefully few prototypes,
30073     which can conflict with char $ac_func (); below.
30074     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30075     <limits.h> exists even on freestanding compilers.  */
30076
30077 #ifdef __STDC__
30078 # include <limits.h>
30079 #else
30080 # include <assert.h>
30081 #endif
30082
30083 #undef $ac_func
30084
30085 /* Override any GCC internal prototype to avoid an error.
30086    Use char because int might match the return type of a GCC
30087    builtin and then its argument prototype would still apply.  */
30088 #ifdef __cplusplus
30089 extern "C"
30090 #endif
30091 char $ac_func ();
30092 /* The GNU C library defines this for functions which it implements
30093     to always fail with ENOSYS.  Some functions are actually named
30094     something starting with __ and the normal name is an alias.  */
30095 #if defined __stub_$ac_func || defined __stub___$ac_func
30096 choke me
30097 #endif
30098
30099 int
30100 main ()
30101 {
30102 return $ac_func ();
30103   ;
30104   return 0;
30105 }
30106 _ACEOF
30107 rm -f conftest.$ac_objext conftest$ac_exeext
30108 if { (ac_try="$ac_link"
30109 case "(($ac_try" in
30110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30111   *) ac_try_echo=$ac_try;;
30112 esac
30113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30114   (eval "$ac_link") 2>conftest.er1
30115   ac_status=$?
30116   grep -v '^ *+' conftest.er1 >conftest.err
30117   rm -f conftest.er1
30118   cat conftest.err >&5
30119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30120   (exit $ac_status); } &&
30121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30122   { (case "(($ac_try" in
30123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30124   *) ac_try_echo=$ac_try;;
30125 esac
30126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30127   (eval "$ac_try") 2>&5
30128   ac_status=$?
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); }; } &&
30131          { ac_try='test -s conftest$ac_exeext'
30132   { (case "(($ac_try" in
30133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30134   *) ac_try_echo=$ac_try;;
30135 esac
30136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30137   (eval "$ac_try") 2>&5
30138   ac_status=$?
30139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30140   (exit $ac_status); }; }; then
30141   eval "$as_ac_var=yes"
30142 else
30143   echo "$as_me: failed program was:" >&5
30144 sed 's/^/| /' conftest.$ac_ext >&5
30145
30146         eval "$as_ac_var=no"
30147 fi
30148
30149 rm -f core conftest.err conftest.$ac_objext \
30150       conftest$ac_exeext conftest.$ac_ext
30151 fi
30152 ac_res=`eval echo '${'$as_ac_var'}'`
30153                { echo "$as_me:$LINENO: result: $ac_res" >&5
30154 echo "${ECHO_T}$ac_res" >&6; }
30155 if test `eval echo '${'$as_ac_var'}'` = yes; then
30156   cat >>confdefs.h <<_ACEOF
30157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30158 _ACEOF
30159
30160 fi
30161 done
30162
30163
30164
30165
30166
30167
30168 for ac_func in snprintf vsnprintf gethostid fseeko
30169 do
30170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30174   echo $ECHO_N "(cached) $ECHO_C" >&6
30175 else
30176   cat >conftest.$ac_ext <<_ACEOF
30177 /* confdefs.h.  */
30178 _ACEOF
30179 cat confdefs.h >>conftest.$ac_ext
30180 cat >>conftest.$ac_ext <<_ACEOF
30181 /* end confdefs.h.  */
30182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30183    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30184 #define $ac_func innocuous_$ac_func
30185
30186 /* System header to define __stub macros and hopefully few prototypes,
30187     which can conflict with char $ac_func (); below.
30188     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30189     <limits.h> exists even on freestanding compilers.  */
30190
30191 #ifdef __STDC__
30192 # include <limits.h>
30193 #else
30194 # include <assert.h>
30195 #endif
30196
30197 #undef $ac_func
30198
30199 /* Override any GCC internal prototype to avoid an error.
30200    Use char because int might match the return type of a GCC
30201    builtin and then its argument prototype would still apply.  */
30202 #ifdef __cplusplus
30203 extern "C"
30204 #endif
30205 char $ac_func ();
30206 /* The GNU C library defines this for functions which it implements
30207     to always fail with ENOSYS.  Some functions are actually named
30208     something starting with __ and the normal name is an alias.  */
30209 #if defined __stub_$ac_func || defined __stub___$ac_func
30210 choke me
30211 #endif
30212
30213 int
30214 main ()
30215 {
30216 return $ac_func ();
30217   ;
30218   return 0;
30219 }
30220 _ACEOF
30221 rm -f conftest.$ac_objext conftest$ac_exeext
30222 if { (ac_try="$ac_link"
30223 case "(($ac_try" in
30224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30225   *) ac_try_echo=$ac_try;;
30226 esac
30227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30228   (eval "$ac_link") 2>conftest.er1
30229   ac_status=$?
30230   grep -v '^ *+' conftest.er1 >conftest.err
30231   rm -f conftest.er1
30232   cat conftest.err >&5
30233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30234   (exit $ac_status); } &&
30235          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30236   { (case "(($ac_try" in
30237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30238   *) ac_try_echo=$ac_try;;
30239 esac
30240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30241   (eval "$ac_try") 2>&5
30242   ac_status=$?
30243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30244   (exit $ac_status); }; } &&
30245          { ac_try='test -s conftest$ac_exeext'
30246   { (case "(($ac_try" in
30247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30248   *) ac_try_echo=$ac_try;;
30249 esac
30250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30251   (eval "$ac_try") 2>&5
30252   ac_status=$?
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); }; }; then
30255   eval "$as_ac_var=yes"
30256 else
30257   echo "$as_me: failed program was:" >&5
30258 sed 's/^/| /' conftest.$ac_ext >&5
30259
30260         eval "$as_ac_var=no"
30261 fi
30262
30263 rm -f core conftest.err conftest.$ac_objext \
30264       conftest$ac_exeext conftest.$ac_ext
30265 fi
30266 ac_res=`eval echo '${'$as_ac_var'}'`
30267                { echo "$as_me:$LINENO: result: $ac_res" >&5
30268 echo "${ECHO_T}$ac_res" >&6; }
30269 if test `eval echo '${'$as_ac_var'}'` = yes; then
30270   cat >>confdefs.h <<_ACEOF
30271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30272 _ACEOF
30273
30274 fi
30275 done
30276
30277
30278
30279
30280
30281
30282 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30283 do
30284 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30285 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30286 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30287 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30288   echo $ECHO_N "(cached) $ECHO_C" >&6
30289 else
30290   cat >conftest.$ac_ext <<_ACEOF
30291 /* confdefs.h.  */
30292 _ACEOF
30293 cat confdefs.h >>conftest.$ac_ext
30294 cat >>conftest.$ac_ext <<_ACEOF
30295 /* end confdefs.h.  */
30296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30297    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30298 #define $ac_func innocuous_$ac_func
30299
30300 /* System header to define __stub macros and hopefully few prototypes,
30301     which can conflict with char $ac_func (); below.
30302     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30303     <limits.h> exists even on freestanding compilers.  */
30304
30305 #ifdef __STDC__
30306 # include <limits.h>
30307 #else
30308 # include <assert.h>
30309 #endif
30310
30311 #undef $ac_func
30312
30313 /* Override any GCC internal prototype to avoid an error.
30314    Use char because int might match the return type of a GCC
30315    builtin and then its argument prototype would still apply.  */
30316 #ifdef __cplusplus
30317 extern "C"
30318 #endif
30319 char $ac_func ();
30320 /* The GNU C library defines this for functions which it implements
30321     to always fail with ENOSYS.  Some functions are actually named
30322     something starting with __ and the normal name is an alias.  */
30323 #if defined __stub_$ac_func || defined __stub___$ac_func
30324 choke me
30325 #endif
30326
30327 int
30328 main ()
30329 {
30330 return $ac_func ();
30331   ;
30332   return 0;
30333 }
30334 _ACEOF
30335 rm -f conftest.$ac_objext conftest$ac_exeext
30336 if { (ac_try="$ac_link"
30337 case "(($ac_try" in
30338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30339   *) ac_try_echo=$ac_try;;
30340 esac
30341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30342   (eval "$ac_link") 2>conftest.er1
30343   ac_status=$?
30344   grep -v '^ *+' conftest.er1 >conftest.err
30345   rm -f conftest.er1
30346   cat conftest.err >&5
30347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348   (exit $ac_status); } &&
30349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30350   { (case "(($ac_try" in
30351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352   *) ac_try_echo=$ac_try;;
30353 esac
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355   (eval "$ac_try") 2>&5
30356   ac_status=$?
30357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358   (exit $ac_status); }; } &&
30359          { ac_try='test -s conftest$ac_exeext'
30360   { (case "(($ac_try" in
30361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30362   *) ac_try_echo=$ac_try;;
30363 esac
30364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30365   (eval "$ac_try") 2>&5
30366   ac_status=$?
30367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368   (exit $ac_status); }; }; then
30369   eval "$as_ac_var=yes"
30370 else
30371   echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30373
30374         eval "$as_ac_var=no"
30375 fi
30376
30377 rm -f core conftest.err conftest.$ac_objext \
30378       conftest$ac_exeext conftest.$ac_ext
30379 fi
30380 ac_res=`eval echo '${'$as_ac_var'}'`
30381                { echo "$as_me:$LINENO: result: $ac_res" >&5
30382 echo "${ECHO_T}$ac_res" >&6; }
30383 if test `eval echo '${'$as_ac_var'}'` = yes; then
30384   cat >>confdefs.h <<_ACEOF
30385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30386 _ACEOF
30387
30388 fi
30389 done
30390
30391
30392 # If resolver functions are not in libc check for -lnsl or -lresolv.
30393 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30394 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30395 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30396   echo $ECHO_N "(cached) $ECHO_C" >&6
30397 else
30398   cat >conftest.$ac_ext <<_ACEOF
30399 /* confdefs.h.  */
30400 _ACEOF
30401 cat confdefs.h >>conftest.$ac_ext
30402 cat >>conftest.$ac_ext <<_ACEOF
30403 /* end confdefs.h.  */
30404 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30406 #define gethostbyname_r innocuous_gethostbyname_r
30407
30408 /* System header to define __stub macros and hopefully few prototypes,
30409     which can conflict with char gethostbyname_r (); below.
30410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30411     <limits.h> exists even on freestanding compilers.  */
30412
30413 #ifdef __STDC__
30414 # include <limits.h>
30415 #else
30416 # include <assert.h>
30417 #endif
30418
30419 #undef gethostbyname_r
30420
30421 /* Override any GCC internal prototype to avoid an error.
30422    Use char because int might match the return type of a GCC
30423    builtin and then its argument prototype would still apply.  */
30424 #ifdef __cplusplus
30425 extern "C"
30426 #endif
30427 char gethostbyname_r ();
30428 /* The GNU C library defines this for functions which it implements
30429     to always fail with ENOSYS.  Some functions are actually named
30430     something starting with __ and the normal name is an alias.  */
30431 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30432 choke me
30433 #endif
30434
30435 int
30436 main ()
30437 {
30438 return gethostbyname_r ();
30439   ;
30440   return 0;
30441 }
30442 _ACEOF
30443 rm -f conftest.$ac_objext conftest$ac_exeext
30444 if { (ac_try="$ac_link"
30445 case "(($ac_try" in
30446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30447   *) ac_try_echo=$ac_try;;
30448 esac
30449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30450   (eval "$ac_link") 2>conftest.er1
30451   ac_status=$?
30452   grep -v '^ *+' conftest.er1 >conftest.err
30453   rm -f conftest.er1
30454   cat conftest.err >&5
30455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30456   (exit $ac_status); } &&
30457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30458   { (case "(($ac_try" in
30459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30460   *) ac_try_echo=$ac_try;;
30461 esac
30462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30463   (eval "$ac_try") 2>&5
30464   ac_status=$?
30465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466   (exit $ac_status); }; } &&
30467          { ac_try='test -s conftest$ac_exeext'
30468   { (case "(($ac_try" in
30469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30470   *) ac_try_echo=$ac_try;;
30471 esac
30472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30473   (eval "$ac_try") 2>&5
30474   ac_status=$?
30475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476   (exit $ac_status); }; }; then
30477   ac_cv_func_gethostbyname_r=yes
30478 else
30479   echo "$as_me: failed program was:" >&5
30480 sed 's/^/| /' conftest.$ac_ext >&5
30481
30482         ac_cv_func_gethostbyname_r=no
30483 fi
30484
30485 rm -f core conftest.err conftest.$ac_objext \
30486       conftest$ac_exeext conftest.$ac_ext
30487 fi
30488 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30489 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30490 if test $ac_cv_func_gethostbyname_r = yes; then
30491   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30492 echo "${ECHO_T}using libc's resolver" >&6; }
30493 else
30494
30495 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30496 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30497 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30498   echo $ECHO_N "(cached) $ECHO_C" >&6
30499 else
30500   ac_check_lib_save_LIBS=$LIBS
30501 LIBS="-lnsl  $LIBS"
30502 cat >conftest.$ac_ext <<_ACEOF
30503 /* confdefs.h.  */
30504 _ACEOF
30505 cat confdefs.h >>conftest.$ac_ext
30506 cat >>conftest.$ac_ext <<_ACEOF
30507 /* end confdefs.h.  */
30508
30509 /* Override any GCC internal prototype to avoid an error.
30510    Use char because int might match the return type of a GCC
30511    builtin and then its argument prototype would still apply.  */
30512 #ifdef __cplusplus
30513 extern "C"
30514 #endif
30515 char gethostbyname_r ();
30516 int
30517 main ()
30518 {
30519 return gethostbyname_r ();
30520   ;
30521   return 0;
30522 }
30523 _ACEOF
30524 rm -f conftest.$ac_objext conftest$ac_exeext
30525 if { (ac_try="$ac_link"
30526 case "(($ac_try" in
30527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30528   *) ac_try_echo=$ac_try;;
30529 esac
30530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30531   (eval "$ac_link") 2>conftest.er1
30532   ac_status=$?
30533   grep -v '^ *+' conftest.er1 >conftest.err
30534   rm -f conftest.er1
30535   cat conftest.err >&5
30536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30537   (exit $ac_status); } &&
30538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30539   { (case "(($ac_try" in
30540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30541   *) ac_try_echo=$ac_try;;
30542 esac
30543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30544   (eval "$ac_try") 2>&5
30545   ac_status=$?
30546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30547   (exit $ac_status); }; } &&
30548          { ac_try='test -s conftest$ac_exeext'
30549   { (case "(($ac_try" in
30550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30551   *) ac_try_echo=$ac_try;;
30552 esac
30553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30554   (eval "$ac_try") 2>&5
30555   ac_status=$?
30556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557   (exit $ac_status); }; }; then
30558   ac_cv_lib_nsl_gethostbyname_r=yes
30559 else
30560   echo "$as_me: failed program was:" >&5
30561 sed 's/^/| /' conftest.$ac_ext >&5
30562
30563         ac_cv_lib_nsl_gethostbyname_r=no
30564 fi
30565
30566 rm -f core conftest.err conftest.$ac_objext \
30567       conftest$ac_exeext conftest.$ac_ext
30568 LIBS=$ac_check_lib_save_LIBS
30569 fi
30570 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30571 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30572 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30573   cat >>confdefs.h <<_ACEOF
30574 #define HAVE_LIBNSL 1
30575 _ACEOF
30576
30577   LIBS="-lnsl $LIBS"
30578
30579 fi
30580
30581
30582 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30583 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30584 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30585   echo $ECHO_N "(cached) $ECHO_C" >&6
30586 else
30587   ac_check_lib_save_LIBS=$LIBS
30588 LIBS="-lresolv  $LIBS"
30589 cat >conftest.$ac_ext <<_ACEOF
30590 /* confdefs.h.  */
30591 _ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h.  */
30595
30596 /* Override any GCC internal prototype to avoid an error.
30597    Use char because int might match the return type of a GCC
30598    builtin and then its argument prototype would still apply.  */
30599 #ifdef __cplusplus
30600 extern "C"
30601 #endif
30602 char gethostbyname_r ();
30603 int
30604 main ()
30605 {
30606 return gethostbyname_r ();
30607   ;
30608   return 0;
30609 }
30610 _ACEOF
30611 rm -f conftest.$ac_objext conftest$ac_exeext
30612 if { (ac_try="$ac_link"
30613 case "(($ac_try" in
30614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615   *) ac_try_echo=$ac_try;;
30616 esac
30617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618   (eval "$ac_link") 2>conftest.er1
30619   ac_status=$?
30620   grep -v '^ *+' conftest.er1 >conftest.err
30621   rm -f conftest.er1
30622   cat conftest.err >&5
30623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30624   (exit $ac_status); } &&
30625          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30626   { (case "(($ac_try" in
30627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628   *) ac_try_echo=$ac_try;;
30629 esac
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631   (eval "$ac_try") 2>&5
30632   ac_status=$?
30633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634   (exit $ac_status); }; } &&
30635          { ac_try='test -s conftest$ac_exeext'
30636   { (case "(($ac_try" in
30637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30638   *) ac_try_echo=$ac_try;;
30639 esac
30640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30641   (eval "$ac_try") 2>&5
30642   ac_status=$?
30643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30644   (exit $ac_status); }; }; then
30645   ac_cv_lib_resolv_gethostbyname_r=yes
30646 else
30647   echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.$ac_ext >&5
30649
30650         ac_cv_lib_resolv_gethostbyname_r=no
30651 fi
30652
30653 rm -f core conftest.err conftest.$ac_objext \
30654       conftest$ac_exeext conftest.$ac_ext
30655 LIBS=$ac_check_lib_save_LIBS
30656 fi
30657 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30658 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30659 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30660   cat >>confdefs.h <<_ACEOF
30661 #define HAVE_LIBRESOLV 1
30662 _ACEOF
30663
30664   LIBS="-lresolv $LIBS"
30665
30666 fi
30667
30668 fi
30669
30670
30671
30672
30673
30674 for ac_func in inet_pton
30675 do
30676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30680   echo $ECHO_N "(cached) $ECHO_C" >&6
30681 else
30682   cat >conftest.$ac_ext <<_ACEOF
30683 /* confdefs.h.  */
30684 _ACEOF
30685 cat confdefs.h >>conftest.$ac_ext
30686 cat >>conftest.$ac_ext <<_ACEOF
30687 /* end confdefs.h.  */
30688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30689    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30690 #define $ac_func innocuous_$ac_func
30691
30692 /* System header to define __stub macros and hopefully few prototypes,
30693     which can conflict with char $ac_func (); below.
30694     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30695     <limits.h> exists even on freestanding compilers.  */
30696
30697 #ifdef __STDC__
30698 # include <limits.h>
30699 #else
30700 # include <assert.h>
30701 #endif
30702
30703 #undef $ac_func
30704
30705 /* Override any GCC internal prototype to avoid an error.
30706    Use char because int might match the return type of a GCC
30707    builtin and then its argument prototype would still apply.  */
30708 #ifdef __cplusplus
30709 extern "C"
30710 #endif
30711 char $ac_func ();
30712 /* The GNU C library defines this for functions which it implements
30713     to always fail with ENOSYS.  Some functions are actually named
30714     something starting with __ and the normal name is an alias.  */
30715 #if defined __stub_$ac_func || defined __stub___$ac_func
30716 choke me
30717 #endif
30718
30719 int
30720 main ()
30721 {
30722 return $ac_func ();
30723   ;
30724   return 0;
30725 }
30726 _ACEOF
30727 rm -f conftest.$ac_objext conftest$ac_exeext
30728 if { (ac_try="$ac_link"
30729 case "(($ac_try" in
30730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30731   *) ac_try_echo=$ac_try;;
30732 esac
30733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30734   (eval "$ac_link") 2>conftest.er1
30735   ac_status=$?
30736   grep -v '^ *+' conftest.er1 >conftest.err
30737   rm -f conftest.er1
30738   cat conftest.err >&5
30739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30740   (exit $ac_status); } &&
30741          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30742   { (case "(($ac_try" in
30743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30744   *) ac_try_echo=$ac_try;;
30745 esac
30746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30747   (eval "$ac_try") 2>&5
30748   ac_status=$?
30749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30750   (exit $ac_status); }; } &&
30751          { ac_try='test -s conftest$ac_exeext'
30752   { (case "(($ac_try" in
30753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30754   *) ac_try_echo=$ac_try;;
30755 esac
30756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30757   (eval "$ac_try") 2>&5
30758   ac_status=$?
30759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760   (exit $ac_status); }; }; then
30761   eval "$as_ac_var=yes"
30762 else
30763   echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.$ac_ext >&5
30765
30766         eval "$as_ac_var=no"
30767 fi
30768
30769 rm -f core conftest.err conftest.$ac_objext \
30770       conftest$ac_exeext conftest.$ac_ext
30771 fi
30772 ac_res=`eval echo '${'$as_ac_var'}'`
30773                { echo "$as_me:$LINENO: result: $ac_res" >&5
30774 echo "${ECHO_T}$ac_res" >&6; }
30775 if test `eval echo '${'$as_ac_var'}'` = yes; then
30776   cat >>confdefs.h <<_ACEOF
30777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30778 _ACEOF
30779  cat >>confdefs.h <<\_ACEOF
30780 #define HAVE_INET_PTON 1
30781 _ACEOF
30782
30783 fi
30784 done
30785
30786
30787 for ac_func in inet_ntop
30788 do
30789 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30790 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30791 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30792 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30793   echo $ECHO_N "(cached) $ECHO_C" >&6
30794 else
30795   cat >conftest.$ac_ext <<_ACEOF
30796 /* confdefs.h.  */
30797 _ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h.  */
30801 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30803 #define $ac_func innocuous_$ac_func
30804
30805 /* System header to define __stub macros and hopefully few prototypes,
30806     which can conflict with char $ac_func (); below.
30807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30808     <limits.h> exists even on freestanding compilers.  */
30809
30810 #ifdef __STDC__
30811 # include <limits.h>
30812 #else
30813 # include <assert.h>
30814 #endif
30815
30816 #undef $ac_func
30817
30818 /* Override any GCC internal prototype to avoid an error.
30819    Use char because int might match the return type of a GCC
30820    builtin and then its argument prototype would still apply.  */
30821 #ifdef __cplusplus
30822 extern "C"
30823 #endif
30824 char $ac_func ();
30825 /* The GNU C library defines this for functions which it implements
30826     to always fail with ENOSYS.  Some functions are actually named
30827     something starting with __ and the normal name is an alias.  */
30828 #if defined __stub_$ac_func || defined __stub___$ac_func
30829 choke me
30830 #endif
30831
30832 int
30833 main ()
30834 {
30835 return $ac_func ();
30836   ;
30837   return 0;
30838 }
30839 _ACEOF
30840 rm -f conftest.$ac_objext conftest$ac_exeext
30841 if { (ac_try="$ac_link"
30842 case "(($ac_try" in
30843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30844   *) ac_try_echo=$ac_try;;
30845 esac
30846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30847   (eval "$ac_link") 2>conftest.er1
30848   ac_status=$?
30849   grep -v '^ *+' conftest.er1 >conftest.err
30850   rm -f conftest.er1
30851   cat conftest.err >&5
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); } &&
30854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30855   { (case "(($ac_try" in
30856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30857   *) ac_try_echo=$ac_try;;
30858 esac
30859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30860   (eval "$ac_try") 2>&5
30861   ac_status=$?
30862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30863   (exit $ac_status); }; } &&
30864          { ac_try='test -s conftest$ac_exeext'
30865   { (case "(($ac_try" in
30866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30867   *) ac_try_echo=$ac_try;;
30868 esac
30869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30870   (eval "$ac_try") 2>&5
30871   ac_status=$?
30872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30873   (exit $ac_status); }; }; then
30874   eval "$as_ac_var=yes"
30875 else
30876   echo "$as_me: failed program was:" >&5
30877 sed 's/^/| /' conftest.$ac_ext >&5
30878
30879         eval "$as_ac_var=no"
30880 fi
30881
30882 rm -f core conftest.err conftest.$ac_objext \
30883       conftest$ac_exeext conftest.$ac_ext
30884 fi
30885 ac_res=`eval echo '${'$as_ac_var'}'`
30886                { echo "$as_me:$LINENO: result: $ac_res" >&5
30887 echo "${ECHO_T}$ac_res" >&6; }
30888 if test `eval echo '${'$as_ac_var'}'` = yes; then
30889   cat >>confdefs.h <<_ACEOF
30890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30891 _ACEOF
30892  cat >>confdefs.h <<\_ACEOF
30893 #define HAVE_INET_NTOP 1
30894 _ACEOF
30895
30896 fi
30897 done
30898
30899
30900 for ac_func in gethostbyname2
30901 do
30902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30906   echo $ECHO_N "(cached) $ECHO_C" >&6
30907 else
30908   cat >conftest.$ac_ext <<_ACEOF
30909 /* confdefs.h.  */
30910 _ACEOF
30911 cat confdefs.h >>conftest.$ac_ext
30912 cat >>conftest.$ac_ext <<_ACEOF
30913 /* end confdefs.h.  */
30914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30916 #define $ac_func innocuous_$ac_func
30917
30918 /* System header to define __stub macros and hopefully few prototypes,
30919     which can conflict with char $ac_func (); below.
30920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30921     <limits.h> exists even on freestanding compilers.  */
30922
30923 #ifdef __STDC__
30924 # include <limits.h>
30925 #else
30926 # include <assert.h>
30927 #endif
30928
30929 #undef $ac_func
30930
30931 /* Override any GCC internal prototype to avoid an error.
30932    Use char because int might match the return type of a GCC
30933    builtin and then its argument prototype would still apply.  */
30934 #ifdef __cplusplus
30935 extern "C"
30936 #endif
30937 char $ac_func ();
30938 /* The GNU C library defines this for functions which it implements
30939     to always fail with ENOSYS.  Some functions are actually named
30940     something starting with __ and the normal name is an alias.  */
30941 #if defined __stub_$ac_func || defined __stub___$ac_func
30942 choke me
30943 #endif
30944
30945 int
30946 main ()
30947 {
30948 return $ac_func ();
30949   ;
30950   return 0;
30951 }
30952 _ACEOF
30953 rm -f conftest.$ac_objext conftest$ac_exeext
30954 if { (ac_try="$ac_link"
30955 case "(($ac_try" in
30956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30957   *) ac_try_echo=$ac_try;;
30958 esac
30959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30960   (eval "$ac_link") 2>conftest.er1
30961   ac_status=$?
30962   grep -v '^ *+' conftest.er1 >conftest.err
30963   rm -f conftest.er1
30964   cat conftest.err >&5
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); } &&
30967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30968   { (case "(($ac_try" in
30969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30970   *) ac_try_echo=$ac_try;;
30971 esac
30972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30973   (eval "$ac_try") 2>&5
30974   ac_status=$?
30975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30976   (exit $ac_status); }; } &&
30977          { ac_try='test -s conftest$ac_exeext'
30978   { (case "(($ac_try" in
30979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30980   *) ac_try_echo=$ac_try;;
30981 esac
30982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30983   (eval "$ac_try") 2>&5
30984   ac_status=$?
30985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986   (exit $ac_status); }; }; then
30987   eval "$as_ac_var=yes"
30988 else
30989   echo "$as_me: failed program was:" >&5
30990 sed 's/^/| /' conftest.$ac_ext >&5
30991
30992         eval "$as_ac_var=no"
30993 fi
30994
30995 rm -f core conftest.err conftest.$ac_objext \
30996       conftest$ac_exeext conftest.$ac_ext
30997 fi
30998 ac_res=`eval echo '${'$as_ac_var'}'`
30999                { echo "$as_me:$LINENO: result: $ac_res" >&5
31000 echo "${ECHO_T}$ac_res" >&6; }
31001 if test `eval echo '${'$as_ac_var'}'` = yes; then
31002   cat >>confdefs.h <<_ACEOF
31003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31004 _ACEOF
31005  cat >>confdefs.h <<\_ACEOF
31006 #define HAVE_GETHOSTBYNAME2 1
31007 _ACEOF
31008
31009 fi
31010 done
31011
31012
31013 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31014 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31015 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31016   echo $ECHO_N "(cached) $ECHO_C" >&6
31017 else
31018   cat >conftest.$ac_ext <<_ACEOF
31019 /* confdefs.h.  */
31020 _ACEOF
31021 cat confdefs.h >>conftest.$ac_ext
31022 cat >>conftest.$ac_ext <<_ACEOF
31023 /* end confdefs.h.  */
31024 #include <sys/socket.h>
31025 int
31026 main ()
31027 {
31028 struct sockaddr s; s.sa_len;
31029   ;
31030   return 0;
31031 }
31032 _ACEOF
31033 rm -f conftest.$ac_objext
31034 if { (ac_try="$ac_compile"
31035 case "(($ac_try" in
31036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037   *) ac_try_echo=$ac_try;;
31038 esac
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040   (eval "$ac_compile") 2>conftest.er1
31041   ac_status=$?
31042   grep -v '^ *+' conftest.er1 >conftest.err
31043   rm -f conftest.er1
31044   cat conftest.err >&5
31045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31046   (exit $ac_status); } &&
31047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31048   { (case "(($ac_try" in
31049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31050   *) ac_try_echo=$ac_try;;
31051 esac
31052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31053   (eval "$ac_try") 2>&5
31054   ac_status=$?
31055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31056   (exit $ac_status); }; } &&
31057          { ac_try='test -s conftest.$ac_objext'
31058   { (case "(($ac_try" in
31059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31060   *) ac_try_echo=$ac_try;;
31061 esac
31062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31063   (eval "$ac_try") 2>&5
31064   ac_status=$?
31065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31066   (exit $ac_status); }; }; then
31067   ac_cv_struct_sockaddr_sa_len=yes
31068 else
31069   echo "$as_me: failed program was:" >&5
31070 sed 's/^/| /' conftest.$ac_ext >&5
31071
31072         ac_cv_struct_sockaddr_sa_len=no
31073 fi
31074
31075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31076 fi
31077 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31078 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31079
31080  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31081
31082 cat >>confdefs.h <<\_ACEOF
31083 #define HAVE_SA_LEN 1
31084 _ACEOF
31085
31086  fi
31087
31088
31089
31090
31091
31092 for ac_func in strftime
31093 do
31094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31098   echo $ECHO_N "(cached) $ECHO_C" >&6
31099 else
31100   cat >conftest.$ac_ext <<_ACEOF
31101 /* confdefs.h.  */
31102 _ACEOF
31103 cat confdefs.h >>conftest.$ac_ext
31104 cat >>conftest.$ac_ext <<_ACEOF
31105 /* end confdefs.h.  */
31106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31107    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31108 #define $ac_func innocuous_$ac_func
31109
31110 /* System header to define __stub macros and hopefully few prototypes,
31111     which can conflict with char $ac_func (); below.
31112     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31113     <limits.h> exists even on freestanding compilers.  */
31114
31115 #ifdef __STDC__
31116 # include <limits.h>
31117 #else
31118 # include <assert.h>
31119 #endif
31120
31121 #undef $ac_func
31122
31123 /* Override any GCC internal prototype to avoid an error.
31124    Use char because int might match the return type of a GCC
31125    builtin and then its argument prototype would still apply.  */
31126 #ifdef __cplusplus
31127 extern "C"
31128 #endif
31129 char $ac_func ();
31130 /* The GNU C library defines this for functions which it implements
31131     to always fail with ENOSYS.  Some functions are actually named
31132     something starting with __ and the normal name is an alias.  */
31133 #if defined __stub_$ac_func || defined __stub___$ac_func
31134 choke me
31135 #endif
31136
31137 int
31138 main ()
31139 {
31140 return $ac_func ();
31141   ;
31142   return 0;
31143 }
31144 _ACEOF
31145 rm -f conftest.$ac_objext conftest$ac_exeext
31146 if { (ac_try="$ac_link"
31147 case "(($ac_try" in
31148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31149   *) ac_try_echo=$ac_try;;
31150 esac
31151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31152   (eval "$ac_link") 2>conftest.er1
31153   ac_status=$?
31154   grep -v '^ *+' conftest.er1 >conftest.err
31155   rm -f conftest.er1
31156   cat conftest.err >&5
31157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31158   (exit $ac_status); } &&
31159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31160   { (case "(($ac_try" in
31161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31162   *) ac_try_echo=$ac_try;;
31163 esac
31164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31165   (eval "$ac_try") 2>&5
31166   ac_status=$?
31167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31168   (exit $ac_status); }; } &&
31169          { ac_try='test -s conftest$ac_exeext'
31170   { (case "(($ac_try" in
31171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31172   *) ac_try_echo=$ac_try;;
31173 esac
31174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31175   (eval "$ac_try") 2>&5
31176   ac_status=$?
31177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178   (exit $ac_status); }; }; then
31179   eval "$as_ac_var=yes"
31180 else
31181   echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31183
31184         eval "$as_ac_var=no"
31185 fi
31186
31187 rm -f core conftest.err conftest.$ac_objext \
31188       conftest$ac_exeext conftest.$ac_ext
31189 fi
31190 ac_res=`eval echo '${'$as_ac_var'}'`
31191                { echo "$as_me:$LINENO: result: $ac_res" >&5
31192 echo "${ECHO_T}$ac_res" >&6; }
31193 if test `eval echo '${'$as_ac_var'}'` = yes; then
31194   cat >>confdefs.h <<_ACEOF
31195 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31196 _ACEOF
31197
31198 else
31199   # strftime is in -lintl on SCO UNIX.
31200 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31201 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31202 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31203   echo $ECHO_N "(cached) $ECHO_C" >&6
31204 else
31205   ac_check_lib_save_LIBS=$LIBS
31206 LIBS="-lintl  $LIBS"
31207 cat >conftest.$ac_ext <<_ACEOF
31208 /* confdefs.h.  */
31209 _ACEOF
31210 cat confdefs.h >>conftest.$ac_ext
31211 cat >>conftest.$ac_ext <<_ACEOF
31212 /* end confdefs.h.  */
31213
31214 /* Override any GCC internal prototype to avoid an error.
31215    Use char because int might match the return type of a GCC
31216    builtin and then its argument prototype would still apply.  */
31217 #ifdef __cplusplus
31218 extern "C"
31219 #endif
31220 char strftime ();
31221 int
31222 main ()
31223 {
31224 return strftime ();
31225   ;
31226   return 0;
31227 }
31228 _ACEOF
31229 rm -f conftest.$ac_objext conftest$ac_exeext
31230 if { (ac_try="$ac_link"
31231 case "(($ac_try" in
31232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31233   *) ac_try_echo=$ac_try;;
31234 esac
31235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31236   (eval "$ac_link") 2>conftest.er1
31237   ac_status=$?
31238   grep -v '^ *+' conftest.er1 >conftest.err
31239   rm -f conftest.er1
31240   cat conftest.err >&5
31241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242   (exit $ac_status); } &&
31243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31244   { (case "(($ac_try" in
31245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31246   *) ac_try_echo=$ac_try;;
31247 esac
31248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31249   (eval "$ac_try") 2>&5
31250   ac_status=$?
31251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31252   (exit $ac_status); }; } &&
31253          { ac_try='test -s conftest$ac_exeext'
31254   { (case "(($ac_try" in
31255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31256   *) ac_try_echo=$ac_try;;
31257 esac
31258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31259   (eval "$ac_try") 2>&5
31260   ac_status=$?
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); }; }; then
31263   ac_cv_lib_intl_strftime=yes
31264 else
31265   echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31267
31268         ac_cv_lib_intl_strftime=no
31269 fi
31270
31271 rm -f core conftest.err conftest.$ac_objext \
31272       conftest$ac_exeext conftest.$ac_ext
31273 LIBS=$ac_check_lib_save_LIBS
31274 fi
31275 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31276 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31277 if test $ac_cv_lib_intl_strftime = yes; then
31278   cat >>confdefs.h <<\_ACEOF
31279 #define HAVE_STRFTIME 1
31280 _ACEOF
31281
31282 LIBS="-lintl $LIBS"
31283 fi
31284
31285 fi
31286 done
31287
31288
31289 for ac_func in vprintf
31290 do
31291 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31292 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31293 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31294 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31295   echo $ECHO_N "(cached) $ECHO_C" >&6
31296 else
31297   cat >conftest.$ac_ext <<_ACEOF
31298 /* confdefs.h.  */
31299 _ACEOF
31300 cat confdefs.h >>conftest.$ac_ext
31301 cat >>conftest.$ac_ext <<_ACEOF
31302 /* end confdefs.h.  */
31303 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31304    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31305 #define $ac_func innocuous_$ac_func
31306
31307 /* System header to define __stub macros and hopefully few prototypes,
31308     which can conflict with char $ac_func (); below.
31309     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31310     <limits.h> exists even on freestanding compilers.  */
31311
31312 #ifdef __STDC__
31313 # include <limits.h>
31314 #else
31315 # include <assert.h>
31316 #endif
31317
31318 #undef $ac_func
31319
31320 /* Override any GCC internal prototype to avoid an error.
31321    Use char because int might match the return type of a GCC
31322    builtin and then its argument prototype would still apply.  */
31323 #ifdef __cplusplus
31324 extern "C"
31325 #endif
31326 char $ac_func ();
31327 /* The GNU C library defines this for functions which it implements
31328     to always fail with ENOSYS.  Some functions are actually named
31329     something starting with __ and the normal name is an alias.  */
31330 #if defined __stub_$ac_func || defined __stub___$ac_func
31331 choke me
31332 #endif
31333
31334 int
31335 main ()
31336 {
31337 return $ac_func ();
31338   ;
31339   return 0;
31340 }
31341 _ACEOF
31342 rm -f conftest.$ac_objext conftest$ac_exeext
31343 if { (ac_try="$ac_link"
31344 case "(($ac_try" in
31345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31346   *) ac_try_echo=$ac_try;;
31347 esac
31348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31349   (eval "$ac_link") 2>conftest.er1
31350   ac_status=$?
31351   grep -v '^ *+' conftest.er1 >conftest.err
31352   rm -f conftest.er1
31353   cat conftest.err >&5
31354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31355   (exit $ac_status); } &&
31356          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31357   { (case "(($ac_try" in
31358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31359   *) ac_try_echo=$ac_try;;
31360 esac
31361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31362   (eval "$ac_try") 2>&5
31363   ac_status=$?
31364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31365   (exit $ac_status); }; } &&
31366          { ac_try='test -s conftest$ac_exeext'
31367   { (case "(($ac_try" in
31368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31369   *) ac_try_echo=$ac_try;;
31370 esac
31371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31372   (eval "$ac_try") 2>&5
31373   ac_status=$?
31374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375   (exit $ac_status); }; }; then
31376   eval "$as_ac_var=yes"
31377 else
31378   echo "$as_me: failed program was:" >&5
31379 sed 's/^/| /' conftest.$ac_ext >&5
31380
31381         eval "$as_ac_var=no"
31382 fi
31383
31384 rm -f core conftest.err conftest.$ac_objext \
31385       conftest$ac_exeext conftest.$ac_ext
31386 fi
31387 ac_res=`eval echo '${'$as_ac_var'}'`
31388                { echo "$as_me:$LINENO: result: $ac_res" >&5
31389 echo "${ECHO_T}$ac_res" >&6; }
31390 if test `eval echo '${'$as_ac_var'}'` = yes; then
31391   cat >>confdefs.h <<_ACEOF
31392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31393 _ACEOF
31394
31395 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31396 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31397 if test "${ac_cv_func__doprnt+set}" = set; then
31398   echo $ECHO_N "(cached) $ECHO_C" >&6
31399 else
31400   cat >conftest.$ac_ext <<_ACEOF
31401 /* confdefs.h.  */
31402 _ACEOF
31403 cat confdefs.h >>conftest.$ac_ext
31404 cat >>conftest.$ac_ext <<_ACEOF
31405 /* end confdefs.h.  */
31406 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31408 #define _doprnt innocuous__doprnt
31409
31410 /* System header to define __stub macros and hopefully few prototypes,
31411     which can conflict with char _doprnt (); below.
31412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31413     <limits.h> exists even on freestanding compilers.  */
31414
31415 #ifdef __STDC__
31416 # include <limits.h>
31417 #else
31418 # include <assert.h>
31419 #endif
31420
31421 #undef _doprnt
31422
31423 /* Override any GCC internal prototype to avoid an error.
31424    Use char because int might match the return type of a GCC
31425    builtin and then its argument prototype would still apply.  */
31426 #ifdef __cplusplus
31427 extern "C"
31428 #endif
31429 char _doprnt ();
31430 /* The GNU C library defines this for functions which it implements
31431     to always fail with ENOSYS.  Some functions are actually named
31432     something starting with __ and the normal name is an alias.  */
31433 #if defined __stub__doprnt || defined __stub____doprnt
31434 choke me
31435 #endif
31436
31437 int
31438 main ()
31439 {
31440 return _doprnt ();
31441   ;
31442   return 0;
31443 }
31444 _ACEOF
31445 rm -f conftest.$ac_objext conftest$ac_exeext
31446 if { (ac_try="$ac_link"
31447 case "(($ac_try" in
31448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31449   *) ac_try_echo=$ac_try;;
31450 esac
31451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31452   (eval "$ac_link") 2>conftest.er1
31453   ac_status=$?
31454   grep -v '^ *+' conftest.er1 >conftest.err
31455   rm -f conftest.er1
31456   cat conftest.err >&5
31457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458   (exit $ac_status); } &&
31459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31460   { (case "(($ac_try" in
31461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31462   *) ac_try_echo=$ac_try;;
31463 esac
31464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31465   (eval "$ac_try") 2>&5
31466   ac_status=$?
31467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31468   (exit $ac_status); }; } &&
31469          { ac_try='test -s conftest$ac_exeext'
31470   { (case "(($ac_try" in
31471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31472   *) ac_try_echo=$ac_try;;
31473 esac
31474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31475   (eval "$ac_try") 2>&5
31476   ac_status=$?
31477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478   (exit $ac_status); }; }; then
31479   ac_cv_func__doprnt=yes
31480 else
31481   echo "$as_me: failed program was:" >&5
31482 sed 's/^/| /' conftest.$ac_ext >&5
31483
31484         ac_cv_func__doprnt=no
31485 fi
31486
31487 rm -f core conftest.err conftest.$ac_objext \
31488       conftest$ac_exeext conftest.$ac_ext
31489 fi
31490 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31491 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31492 if test $ac_cv_func__doprnt = yes; then
31493
31494 cat >>confdefs.h <<\_ACEOF
31495 #define HAVE_DOPRNT 1
31496 _ACEOF
31497
31498 fi
31499
31500 fi
31501 done
31502
31503
31504 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31505 # for constant arguments.  Useless!
31506 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31507 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31508 if test "${ac_cv_working_alloca_h+set}" = set; then
31509   echo $ECHO_N "(cached) $ECHO_C" >&6
31510 else
31511   cat >conftest.$ac_ext <<_ACEOF
31512 /* confdefs.h.  */
31513 _ACEOF
31514 cat confdefs.h >>conftest.$ac_ext
31515 cat >>conftest.$ac_ext <<_ACEOF
31516 /* end confdefs.h.  */
31517 #include <alloca.h>
31518 int
31519 main ()
31520 {
31521 char *p = (char *) alloca (2 * sizeof (int));
31522                           if (p) return 0;
31523   ;
31524   return 0;
31525 }
31526 _ACEOF
31527 rm -f conftest.$ac_objext conftest$ac_exeext
31528 if { (ac_try="$ac_link"
31529 case "(($ac_try" in
31530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31531   *) ac_try_echo=$ac_try;;
31532 esac
31533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31534   (eval "$ac_link") 2>conftest.er1
31535   ac_status=$?
31536   grep -v '^ *+' conftest.er1 >conftest.err
31537   rm -f conftest.er1
31538   cat conftest.err >&5
31539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540   (exit $ac_status); } &&
31541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31542   { (case "(($ac_try" in
31543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31544   *) ac_try_echo=$ac_try;;
31545 esac
31546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31547   (eval "$ac_try") 2>&5
31548   ac_status=$?
31549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31550   (exit $ac_status); }; } &&
31551          { ac_try='test -s conftest$ac_exeext'
31552   { (case "(($ac_try" in
31553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31554   *) ac_try_echo=$ac_try;;
31555 esac
31556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31557   (eval "$ac_try") 2>&5
31558   ac_status=$?
31559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31560   (exit $ac_status); }; }; then
31561   ac_cv_working_alloca_h=yes
31562 else
31563   echo "$as_me: failed program was:" >&5
31564 sed 's/^/| /' conftest.$ac_ext >&5
31565
31566         ac_cv_working_alloca_h=no
31567 fi
31568
31569 rm -f core conftest.err conftest.$ac_objext \
31570       conftest$ac_exeext conftest.$ac_ext
31571 fi
31572 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31573 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31574 if test $ac_cv_working_alloca_h = yes; then
31575
31576 cat >>confdefs.h <<\_ACEOF
31577 #define HAVE_ALLOCA_H 1
31578 _ACEOF
31579
31580 fi
31581
31582 { echo "$as_me:$LINENO: checking for alloca" >&5
31583 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31584 if test "${ac_cv_func_alloca_works+set}" = set; then
31585   echo $ECHO_N "(cached) $ECHO_C" >&6
31586 else
31587   cat >conftest.$ac_ext <<_ACEOF
31588 /* confdefs.h.  */
31589 _ACEOF
31590 cat confdefs.h >>conftest.$ac_ext
31591 cat >>conftest.$ac_ext <<_ACEOF
31592 /* end confdefs.h.  */
31593 #ifdef __GNUC__
31594 # define alloca __builtin_alloca
31595 #else
31596 # ifdef _MSC_VER
31597 #  include <malloc.h>
31598 #  define alloca _alloca
31599 # else
31600 #  if HAVE_ALLOCA_H
31601 #   include <alloca.h>
31602 #  else
31603 #   ifdef _AIX
31604  #pragma alloca
31605 #   else
31606 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31607 char *alloca ();
31608 #    endif
31609 #   endif
31610 #  endif
31611 # endif
31612 #endif
31613
31614 int
31615 main ()
31616 {
31617 char *p = (char *) alloca (1);
31618                                     if (p) return 0;
31619   ;
31620   return 0;
31621 }
31622 _ACEOF
31623 rm -f conftest.$ac_objext conftest$ac_exeext
31624 if { (ac_try="$ac_link"
31625 case "(($ac_try" in
31626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627   *) ac_try_echo=$ac_try;;
31628 esac
31629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31630   (eval "$ac_link") 2>conftest.er1
31631   ac_status=$?
31632   grep -v '^ *+' conftest.er1 >conftest.err
31633   rm -f conftest.er1
31634   cat conftest.err >&5
31635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31636   (exit $ac_status); } &&
31637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31638   { (case "(($ac_try" in
31639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31640   *) ac_try_echo=$ac_try;;
31641 esac
31642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31643   (eval "$ac_try") 2>&5
31644   ac_status=$?
31645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31646   (exit $ac_status); }; } &&
31647          { ac_try='test -s conftest$ac_exeext'
31648   { (case "(($ac_try" in
31649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31650   *) ac_try_echo=$ac_try;;
31651 esac
31652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31653   (eval "$ac_try") 2>&5
31654   ac_status=$?
31655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31656   (exit $ac_status); }; }; then
31657   ac_cv_func_alloca_works=yes
31658 else
31659   echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31661
31662         ac_cv_func_alloca_works=no
31663 fi
31664
31665 rm -f core conftest.err conftest.$ac_objext \
31666       conftest$ac_exeext conftest.$ac_ext
31667 fi
31668 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31669 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31670
31671 if test $ac_cv_func_alloca_works = yes; then
31672
31673 cat >>confdefs.h <<\_ACEOF
31674 #define HAVE_ALLOCA 1
31675 _ACEOF
31676
31677 else
31678   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31679 # that cause trouble.  Some versions do not even contain alloca or
31680 # contain a buggy version.  If you still want to use their alloca,
31681 # use ar to extract alloca.o from them instead of compiling alloca.c.
31682
31683 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31684
31685 cat >>confdefs.h <<\_ACEOF
31686 #define C_ALLOCA 1
31687 _ACEOF
31688
31689
31690 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31691 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31692 if test "${ac_cv_os_cray+set}" = set; then
31693   echo $ECHO_N "(cached) $ECHO_C" >&6
31694 else
31695   cat >conftest.$ac_ext <<_ACEOF
31696 /* confdefs.h.  */
31697 _ACEOF
31698 cat confdefs.h >>conftest.$ac_ext
31699 cat >>conftest.$ac_ext <<_ACEOF
31700 /* end confdefs.h.  */
31701 #if defined CRAY && ! defined CRAY2
31702 webecray
31703 #else
31704 wenotbecray
31705 #endif
31706
31707 _ACEOF
31708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31709   $EGREP "webecray" >/dev/null 2>&1; then
31710   ac_cv_os_cray=yes
31711 else
31712   ac_cv_os_cray=no
31713 fi
31714 rm -f conftest*
31715
31716 fi
31717 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31718 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31719 if test $ac_cv_os_cray = yes; then
31720   for ac_func in _getb67 GETB67 getb67; do
31721     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31725   echo $ECHO_N "(cached) $ECHO_C" >&6
31726 else
31727   cat >conftest.$ac_ext <<_ACEOF
31728 /* confdefs.h.  */
31729 _ACEOF
31730 cat confdefs.h >>conftest.$ac_ext
31731 cat >>conftest.$ac_ext <<_ACEOF
31732 /* end confdefs.h.  */
31733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31735 #define $ac_func innocuous_$ac_func
31736
31737 /* System header to define __stub macros and hopefully few prototypes,
31738     which can conflict with char $ac_func (); below.
31739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31740     <limits.h> exists even on freestanding compilers.  */
31741
31742 #ifdef __STDC__
31743 # include <limits.h>
31744 #else
31745 # include <assert.h>
31746 #endif
31747
31748 #undef $ac_func
31749
31750 /* Override any GCC internal prototype to avoid an error.
31751    Use char because int might match the return type of a GCC
31752    builtin and then its argument prototype would still apply.  */
31753 #ifdef __cplusplus
31754 extern "C"
31755 #endif
31756 char $ac_func ();
31757 /* The GNU C library defines this for functions which it implements
31758     to always fail with ENOSYS.  Some functions are actually named
31759     something starting with __ and the normal name is an alias.  */
31760 #if defined __stub_$ac_func || defined __stub___$ac_func
31761 choke me
31762 #endif
31763
31764 int
31765 main ()
31766 {
31767 return $ac_func ();
31768   ;
31769   return 0;
31770 }
31771 _ACEOF
31772 rm -f conftest.$ac_objext conftest$ac_exeext
31773 if { (ac_try="$ac_link"
31774 case "(($ac_try" in
31775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31776   *) ac_try_echo=$ac_try;;
31777 esac
31778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31779   (eval "$ac_link") 2>conftest.er1
31780   ac_status=$?
31781   grep -v '^ *+' conftest.er1 >conftest.err
31782   rm -f conftest.er1
31783   cat conftest.err >&5
31784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785   (exit $ac_status); } &&
31786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31787   { (case "(($ac_try" in
31788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31789   *) ac_try_echo=$ac_try;;
31790 esac
31791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31792   (eval "$ac_try") 2>&5
31793   ac_status=$?
31794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31795   (exit $ac_status); }; } &&
31796          { ac_try='test -s conftest$ac_exeext'
31797   { (case "(($ac_try" in
31798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31799   *) ac_try_echo=$ac_try;;
31800 esac
31801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31802   (eval "$ac_try") 2>&5
31803   ac_status=$?
31804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31805   (exit $ac_status); }; }; then
31806   eval "$as_ac_var=yes"
31807 else
31808   echo "$as_me: failed program was:" >&5
31809 sed 's/^/| /' conftest.$ac_ext >&5
31810
31811         eval "$as_ac_var=no"
31812 fi
31813
31814 rm -f core conftest.err conftest.$ac_objext \
31815       conftest$ac_exeext conftest.$ac_ext
31816 fi
31817 ac_res=`eval echo '${'$as_ac_var'}'`
31818                { echo "$as_me:$LINENO: result: $ac_res" >&5
31819 echo "${ECHO_T}$ac_res" >&6; }
31820 if test `eval echo '${'$as_ac_var'}'` = yes; then
31821
31822 cat >>confdefs.h <<_ACEOF
31823 #define CRAY_STACKSEG_END $ac_func
31824 _ACEOF
31825
31826     break
31827 fi
31828
31829   done
31830 fi
31831
31832 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31833 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31834 if test "${ac_cv_c_stack_direction+set}" = set; then
31835   echo $ECHO_N "(cached) $ECHO_C" >&6
31836 else
31837   if test "$cross_compiling" = yes; then
31838   ac_cv_c_stack_direction=0
31839 else
31840   cat >conftest.$ac_ext <<_ACEOF
31841 /* confdefs.h.  */
31842 _ACEOF
31843 cat confdefs.h >>conftest.$ac_ext
31844 cat >>conftest.$ac_ext <<_ACEOF
31845 /* end confdefs.h.  */
31846 $ac_includes_default
31847 int
31848 find_stack_direction ()
31849 {
31850   static char *addr = 0;
31851   auto char dummy;
31852   if (addr == 0)
31853     {
31854       addr = &dummy;
31855       return find_stack_direction ();
31856     }
31857   else
31858     return (&dummy > addr) ? 1 : -1;
31859 }
31860
31861 int
31862 main ()
31863 {
31864   return find_stack_direction () < 0;
31865 }
31866 _ACEOF
31867 rm -f conftest$ac_exeext
31868 if { (ac_try="$ac_link"
31869 case "(($ac_try" in
31870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871   *) ac_try_echo=$ac_try;;
31872 esac
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874   (eval "$ac_link") 2>&5
31875   ac_status=$?
31876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31878   { (case "(($ac_try" in
31879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880   *) ac_try_echo=$ac_try;;
31881 esac
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883   (eval "$ac_try") 2>&5
31884   ac_status=$?
31885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886   (exit $ac_status); }; }; then
31887   ac_cv_c_stack_direction=1
31888 else
31889   echo "$as_me: program exited with status $ac_status" >&5
31890 echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31892
31893 ( exit $ac_status )
31894 ac_cv_c_stack_direction=-1
31895 fi
31896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31897 fi
31898
31899
31900 fi
31901 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31902 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31903
31904 cat >>confdefs.h <<_ACEOF
31905 #define STACK_DIRECTION $ac_cv_c_stack_direction
31906 _ACEOF
31907
31908
31909 fi
31910
31911 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31912 # -lseq on Dynix/PTX, -lgen on Unixware.
31913 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31914 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
31915 if test "${ac_cv_search_getmntent+set}" = set; then
31916   echo $ECHO_N "(cached) $ECHO_C" >&6
31917 else
31918   ac_func_search_save_LIBS=$LIBS
31919 cat >conftest.$ac_ext <<_ACEOF
31920 /* confdefs.h.  */
31921 _ACEOF
31922 cat confdefs.h >>conftest.$ac_ext
31923 cat >>conftest.$ac_ext <<_ACEOF
31924 /* end confdefs.h.  */
31925
31926 /* Override any GCC internal prototype to avoid an error.
31927    Use char because int might match the return type of a GCC
31928    builtin and then its argument prototype would still apply.  */
31929 #ifdef __cplusplus
31930 extern "C"
31931 #endif
31932 char getmntent ();
31933 int
31934 main ()
31935 {
31936 return getmntent ();
31937   ;
31938   return 0;
31939 }
31940 _ACEOF
31941 for ac_lib in '' sun seq gen; do
31942   if test -z "$ac_lib"; then
31943     ac_res="none required"
31944   else
31945     ac_res=-l$ac_lib
31946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31947   fi
31948   rm -f conftest.$ac_objext conftest$ac_exeext
31949 if { (ac_try="$ac_link"
31950 case "(($ac_try" in
31951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31952   *) ac_try_echo=$ac_try;;
31953 esac
31954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31955   (eval "$ac_link") 2>conftest.er1
31956   ac_status=$?
31957   grep -v '^ *+' conftest.er1 >conftest.err
31958   rm -f conftest.er1
31959   cat conftest.err >&5
31960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31961   (exit $ac_status); } &&
31962          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31963   { (case "(($ac_try" in
31964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31965   *) ac_try_echo=$ac_try;;
31966 esac
31967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31968   (eval "$ac_try") 2>&5
31969   ac_status=$?
31970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31971   (exit $ac_status); }; } &&
31972          { ac_try='test -s conftest$ac_exeext'
31973   { (case "(($ac_try" in
31974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31975   *) ac_try_echo=$ac_try;;
31976 esac
31977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31978   (eval "$ac_try") 2>&5
31979   ac_status=$?
31980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31981   (exit $ac_status); }; }; then
31982   ac_cv_search_getmntent=$ac_res
31983 else
31984   echo "$as_me: failed program was:" >&5
31985 sed 's/^/| /' conftest.$ac_ext >&5
31986
31987
31988 fi
31989
31990 rm -f core conftest.err conftest.$ac_objext \
31991       conftest$ac_exeext
31992   if test "${ac_cv_search_getmntent+set}" = set; then
31993   break
31994 fi
31995 done
31996 if test "${ac_cv_search_getmntent+set}" = set; then
31997   :
31998 else
31999   ac_cv_search_getmntent=no
32000 fi
32001 rm conftest.$ac_ext
32002 LIBS=$ac_func_search_save_LIBS
32003 fi
32004 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32005 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32006 ac_res=$ac_cv_search_getmntent
32007 if test "$ac_res" != no; then
32008   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32009
32010 fi
32011
32012
32013 for ac_func in getmntent
32014 do
32015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32019   echo $ECHO_N "(cached) $ECHO_C" >&6
32020 else
32021   cat >conftest.$ac_ext <<_ACEOF
32022 /* confdefs.h.  */
32023 _ACEOF
32024 cat confdefs.h >>conftest.$ac_ext
32025 cat >>conftest.$ac_ext <<_ACEOF
32026 /* end confdefs.h.  */
32027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32028    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32029 #define $ac_func innocuous_$ac_func
32030
32031 /* System header to define __stub macros and hopefully few prototypes,
32032     which can conflict with char $ac_func (); below.
32033     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32034     <limits.h> exists even on freestanding compilers.  */
32035
32036 #ifdef __STDC__
32037 # include <limits.h>
32038 #else
32039 # include <assert.h>
32040 #endif
32041
32042 #undef $ac_func
32043
32044 /* Override any GCC internal prototype to avoid an error.
32045    Use char because int might match the return type of a GCC
32046    builtin and then its argument prototype would still apply.  */
32047 #ifdef __cplusplus
32048 extern "C"
32049 #endif
32050 char $ac_func ();
32051 /* The GNU C library defines this for functions which it implements
32052     to always fail with ENOSYS.  Some functions are actually named
32053     something starting with __ and the normal name is an alias.  */
32054 #if defined __stub_$ac_func || defined __stub___$ac_func
32055 choke me
32056 #endif
32057
32058 int
32059 main ()
32060 {
32061 return $ac_func ();
32062   ;
32063   return 0;
32064 }
32065 _ACEOF
32066 rm -f conftest.$ac_objext conftest$ac_exeext
32067 if { (ac_try="$ac_link"
32068 case "(($ac_try" in
32069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32070   *) ac_try_echo=$ac_try;;
32071 esac
32072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32073   (eval "$ac_link") 2>conftest.er1
32074   ac_status=$?
32075   grep -v '^ *+' conftest.er1 >conftest.err
32076   rm -f conftest.er1
32077   cat conftest.err >&5
32078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32079   (exit $ac_status); } &&
32080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32081   { (case "(($ac_try" in
32082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32083   *) ac_try_echo=$ac_try;;
32084 esac
32085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32086   (eval "$ac_try") 2>&5
32087   ac_status=$?
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); }; } &&
32090          { ac_try='test -s conftest$ac_exeext'
32091   { (case "(($ac_try" in
32092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32093   *) ac_try_echo=$ac_try;;
32094 esac
32095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32096   (eval "$ac_try") 2>&5
32097   ac_status=$?
32098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32099   (exit $ac_status); }; }; then
32100   eval "$as_ac_var=yes"
32101 else
32102   echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32104
32105         eval "$as_ac_var=no"
32106 fi
32107
32108 rm -f core conftest.err conftest.$ac_objext \
32109       conftest$ac_exeext conftest.$ac_ext
32110 fi
32111 ac_res=`eval echo '${'$as_ac_var'}'`
32112                { echo "$as_me:$LINENO: result: $ac_res" >&5
32113 echo "${ECHO_T}$ac_res" >&6; }
32114 if test `eval echo '${'$as_ac_var'}'` = yes; then
32115   cat >>confdefs.h <<_ACEOF
32116 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32117 _ACEOF
32118
32119 fi
32120 done
32121
32122
32123 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32124 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32125 if test "${ac_cv_func_closedir_void+set}" = set; then
32126   echo $ECHO_N "(cached) $ECHO_C" >&6
32127 else
32128   if test "$cross_compiling" = yes; then
32129   ac_cv_func_closedir_void=yes
32130 else
32131   cat >conftest.$ac_ext <<_ACEOF
32132 /* confdefs.h.  */
32133 _ACEOF
32134 cat confdefs.h >>conftest.$ac_ext
32135 cat >>conftest.$ac_ext <<_ACEOF
32136 /* end confdefs.h.  */
32137 $ac_includes_default
32138 #include <$ac_header_dirent>
32139 #ifndef __cplusplus
32140 int closedir ();
32141 #endif
32142
32143 int
32144 main ()
32145 {
32146 return closedir (opendir (".")) != 0;
32147   ;
32148   return 0;
32149 }
32150 _ACEOF
32151 rm -f conftest$ac_exeext
32152 if { (ac_try="$ac_link"
32153 case "(($ac_try" in
32154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32155   *) ac_try_echo=$ac_try;;
32156 esac
32157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32158   (eval "$ac_link") 2>&5
32159   ac_status=$?
32160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32162   { (case "(($ac_try" in
32163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32164   *) ac_try_echo=$ac_try;;
32165 esac
32166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32167   (eval "$ac_try") 2>&5
32168   ac_status=$?
32169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32170   (exit $ac_status); }; }; then
32171   ac_cv_func_closedir_void=no
32172 else
32173   echo "$as_me: program exited with status $ac_status" >&5
32174 echo "$as_me: failed program was:" >&5
32175 sed 's/^/| /' conftest.$ac_ext >&5
32176
32177 ( exit $ac_status )
32178 ac_cv_func_closedir_void=yes
32179 fi
32180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32181 fi
32182
32183
32184 fi
32185 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32186 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32187 if test $ac_cv_func_closedir_void = yes; then
32188
32189 cat >>confdefs.h <<\_ACEOF
32190 #define CLOSEDIR_VOID 1
32191 _ACEOF
32192
32193 fi
32194
32195 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32196 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32197 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32198   echo $ECHO_N "(cached) $ECHO_C" >&6
32199 else
32200   if test "$cross_compiling" = yes; then
32201   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32202 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32203    { (exit 1); exit 1; }; }
32204 else
32205   cat >conftest.$ac_ext <<_ACEOF
32206 /* confdefs.h.  */
32207 _ACEOF
32208 cat confdefs.h >>conftest.$ac_ext
32209 cat >>conftest.$ac_ext <<_ACEOF
32210 /* end confdefs.h.  */
32211 $ac_includes_default
32212 int
32213 main ()
32214 {
32215 /* If this system has a BSD-style setpgrp which takes arguments,
32216   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32217   exit successfully. */
32218   return setpgrp (1,1) != -1;
32219   ;
32220   return 0;
32221 }
32222 _ACEOF
32223 rm -f conftest$ac_exeext
32224 if { (ac_try="$ac_link"
32225 case "(($ac_try" in
32226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32227   *) ac_try_echo=$ac_try;;
32228 esac
32229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32230   (eval "$ac_link") 2>&5
32231   ac_status=$?
32232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32234   { (case "(($ac_try" in
32235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32236   *) ac_try_echo=$ac_try;;
32237 esac
32238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32239   (eval "$ac_try") 2>&5
32240   ac_status=$?
32241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32242   (exit $ac_status); }; }; then
32243   ac_cv_func_setpgrp_void=no
32244 else
32245   echo "$as_me: program exited with status $ac_status" >&5
32246 echo "$as_me: failed program was:" >&5
32247 sed 's/^/| /' conftest.$ac_ext >&5
32248
32249 ( exit $ac_status )
32250 ac_cv_func_setpgrp_void=yes
32251 fi
32252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32253 fi
32254
32255
32256 fi
32257 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32258 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32259 if test $ac_cv_func_setpgrp_void = yes; then
32260
32261 cat >>confdefs.h <<\_ACEOF
32262 #define SETPGRP_VOID 1
32263 _ACEOF
32264
32265 fi
32266                       # AC_FUNC_FNMATCH    dnl use local version
32267
32268
32269 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32270 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32271 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32272   echo $ECHO_N "(cached) $ECHO_C" >&6
32273 else
32274   ac_check_lib_save_LIBS=$LIBS
32275 LIBS="-lintl  $LIBS"
32276 cat >conftest.$ac_ext <<_ACEOF
32277 /* confdefs.h.  */
32278 _ACEOF
32279 cat confdefs.h >>conftest.$ac_ext
32280 cat >>conftest.$ac_ext <<_ACEOF
32281 /* end confdefs.h.  */
32282
32283 /* Override any GCC internal prototype to avoid an error.
32284    Use char because int might match the return type of a GCC
32285    builtin and then its argument prototype would still apply.  */
32286 #ifdef __cplusplus
32287 extern "C"
32288 #endif
32289 char gettext ();
32290 int
32291 main ()
32292 {
32293 return gettext ();
32294   ;
32295   return 0;
32296 }
32297 _ACEOF
32298 rm -f conftest.$ac_objext conftest$ac_exeext
32299 if { (ac_try="$ac_link"
32300 case "(($ac_try" in
32301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32302   *) ac_try_echo=$ac_try;;
32303 esac
32304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32305   (eval "$ac_link") 2>conftest.er1
32306   ac_status=$?
32307   grep -v '^ *+' conftest.er1 >conftest.err
32308   rm -f conftest.er1
32309   cat conftest.err >&5
32310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32311   (exit $ac_status); } &&
32312          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32313   { (case "(($ac_try" in
32314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32315   *) ac_try_echo=$ac_try;;
32316 esac
32317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32318   (eval "$ac_try") 2>&5
32319   ac_status=$?
32320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32321   (exit $ac_status); }; } &&
32322          { ac_try='test -s conftest$ac_exeext'
32323   { (case "(($ac_try" in
32324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32325   *) ac_try_echo=$ac_try;;
32326 esac
32327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32328   (eval "$ac_try") 2>&5
32329   ac_status=$?
32330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331   (exit $ac_status); }; }; then
32332   ac_cv_lib_intl_gettext=yes
32333 else
32334   echo "$as_me: failed program was:" >&5
32335 sed 's/^/| /' conftest.$ac_ext >&5
32336
32337         ac_cv_lib_intl_gettext=no
32338 fi
32339
32340 rm -f core conftest.err conftest.$ac_objext \
32341       conftest$ac_exeext conftest.$ac_ext
32342 LIBS=$ac_check_lib_save_LIBS
32343 fi
32344 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32345 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32346 if test $ac_cv_lib_intl_gettext = yes; then
32347   LIBS="$LIBS -lintl"
32348 fi
32349
32350
32351
32352
32353 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32354 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32355 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32356   echo $ECHO_N "(cached) $ECHO_C" >&6
32357 else
32358   ac_check_lib_save_LIBS=$LIBS
32359 LIBS="-lsun  $LIBS"
32360 cat >conftest.$ac_ext <<_ACEOF
32361 /* confdefs.h.  */
32362 _ACEOF
32363 cat confdefs.h >>conftest.$ac_ext
32364 cat >>conftest.$ac_ext <<_ACEOF
32365 /* end confdefs.h.  */
32366
32367 /* Override any GCC internal prototype to avoid an error.
32368    Use char because int might match the return type of a GCC
32369    builtin and then its argument prototype would still apply.  */
32370 #ifdef __cplusplus
32371 extern "C"
32372 #endif
32373 char getpwnam ();
32374 int
32375 main ()
32376 {
32377 return getpwnam ();
32378   ;
32379   return 0;
32380 }
32381 _ACEOF
32382 rm -f conftest.$ac_objext conftest$ac_exeext
32383 if { (ac_try="$ac_link"
32384 case "(($ac_try" in
32385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32386   *) ac_try_echo=$ac_try;;
32387 esac
32388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32389   (eval "$ac_link") 2>conftest.er1
32390   ac_status=$?
32391   grep -v '^ *+' conftest.er1 >conftest.err
32392   rm -f conftest.er1
32393   cat conftest.err >&5
32394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32395   (exit $ac_status); } &&
32396          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32397   { (case "(($ac_try" in
32398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32399   *) ac_try_echo=$ac_try;;
32400 esac
32401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32402   (eval "$ac_try") 2>&5
32403   ac_status=$?
32404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32405   (exit $ac_status); }; } &&
32406          { ac_try='test -s conftest$ac_exeext'
32407   { (case "(($ac_try" in
32408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409   *) ac_try_echo=$ac_try;;
32410 esac
32411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32412   (eval "$ac_try") 2>&5
32413   ac_status=$?
32414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415   (exit $ac_status); }; }; then
32416   ac_cv_lib_sun_getpwnam=yes
32417 else
32418   echo "$as_me: failed program was:" >&5
32419 sed 's/^/| /' conftest.$ac_ext >&5
32420
32421         ac_cv_lib_sun_getpwnam=no
32422 fi
32423
32424 rm -f core conftest.err conftest.$ac_objext \
32425       conftest$ac_exeext conftest.$ac_ext
32426 LIBS=$ac_check_lib_save_LIBS
32427 fi
32428 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32429 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32430 if test $ac_cv_lib_sun_getpwnam = yes; then
32431   cat >>confdefs.h <<_ACEOF
32432 #define HAVE_LIBSUN 1
32433 _ACEOF
32434
32435   LIBS="-lsun $LIBS"
32436
32437 fi
32438
32439
32440
32441 for ac_header in zlib.h
32442 do
32443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32448   echo $ECHO_N "(cached) $ECHO_C" >&6
32449 fi
32450 ac_res=`eval echo '${'$as_ac_Header'}'`
32451                { echo "$as_me:$LINENO: result: $ac_res" >&5
32452 echo "${ECHO_T}$ac_res" >&6; }
32453 else
32454   # Is the header compilable?
32455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32457 cat >conftest.$ac_ext <<_ACEOF
32458 /* confdefs.h.  */
32459 _ACEOF
32460 cat confdefs.h >>conftest.$ac_ext
32461 cat >>conftest.$ac_ext <<_ACEOF
32462 /* end confdefs.h.  */
32463 $ac_includes_default
32464 #include <$ac_header>
32465 _ACEOF
32466 rm -f conftest.$ac_objext
32467 if { (ac_try="$ac_compile"
32468 case "(($ac_try" in
32469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470   *) ac_try_echo=$ac_try;;
32471 esac
32472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473   (eval "$ac_compile") 2>conftest.er1
32474   ac_status=$?
32475   grep -v '^ *+' conftest.er1 >conftest.err
32476   rm -f conftest.er1
32477   cat conftest.err >&5
32478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32479   (exit $ac_status); } &&
32480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32481   { (case "(($ac_try" in
32482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32483   *) ac_try_echo=$ac_try;;
32484 esac
32485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32486   (eval "$ac_try") 2>&5
32487   ac_status=$?
32488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489   (exit $ac_status); }; } &&
32490          { ac_try='test -s conftest.$ac_objext'
32491   { (case "(($ac_try" in
32492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32493   *) ac_try_echo=$ac_try;;
32494 esac
32495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32496   (eval "$ac_try") 2>&5
32497   ac_status=$?
32498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32499   (exit $ac_status); }; }; then
32500   ac_header_compiler=yes
32501 else
32502   echo "$as_me: failed program was:" >&5
32503 sed 's/^/| /' conftest.$ac_ext >&5
32504
32505         ac_header_compiler=no
32506 fi
32507
32508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32510 echo "${ECHO_T}$ac_header_compiler" >&6; }
32511
32512 # Is the header present?
32513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32515 cat >conftest.$ac_ext <<_ACEOF
32516 /* confdefs.h.  */
32517 _ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h.  */
32521 #include <$ac_header>
32522 _ACEOF
32523 if { (ac_try="$ac_cpp conftest.$ac_ext"
32524 case "(($ac_try" in
32525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526   *) ac_try_echo=$ac_try;;
32527 esac
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32530   ac_status=$?
32531   grep -v '^ *+' conftest.er1 >conftest.err
32532   rm -f conftest.er1
32533   cat conftest.err >&5
32534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); } >/dev/null; then
32536   if test -s conftest.err; then
32537     ac_cpp_err=$ac_c_preproc_warn_flag
32538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32539   else
32540     ac_cpp_err=
32541   fi
32542 else
32543   ac_cpp_err=yes
32544 fi
32545 if test -z "$ac_cpp_err"; then
32546   ac_header_preproc=yes
32547 else
32548   echo "$as_me: failed program was:" >&5
32549 sed 's/^/| /' conftest.$ac_ext >&5
32550
32551   ac_header_preproc=no
32552 fi
32553
32554 rm -f conftest.err conftest.$ac_ext
32555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32556 echo "${ECHO_T}$ac_header_preproc" >&6; }
32557
32558 # So?  What about this header?
32559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32560   yes:no: )
32561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32565     ac_header_preproc=yes
32566     ;;
32567   no:yes:* )
32568     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32570     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32571 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32572     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32574     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32575 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32578     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32580
32581     ;;
32582 esac
32583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32586   echo $ECHO_N "(cached) $ECHO_C" >&6
32587 else
32588   eval "$as_ac_Header=\$ac_header_preproc"
32589 fi
32590 ac_res=`eval echo '${'$as_ac_Header'}'`
32591                { echo "$as_me:$LINENO: result: $ac_res" >&5
32592 echo "${ECHO_T}$ac_res" >&6; }
32593
32594 fi
32595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32596   cat >>confdefs.h <<_ACEOF
32597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32598 _ACEOF
32599
32600 fi
32601
32602 done
32603
32604 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32605 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32606 if test "${ac_cv_lib_z_deflate+set}" = set; then
32607   echo $ECHO_N "(cached) $ECHO_C" >&6
32608 else
32609   ac_check_lib_save_LIBS=$LIBS
32610 LIBS="-lz  $LIBS"
32611 cat >conftest.$ac_ext <<_ACEOF
32612 /* confdefs.h.  */
32613 _ACEOF
32614 cat confdefs.h >>conftest.$ac_ext
32615 cat >>conftest.$ac_ext <<_ACEOF
32616 /* end confdefs.h.  */
32617
32618 /* Override any GCC internal prototype to avoid an error.
32619    Use char because int might match the return type of a GCC
32620    builtin and then its argument prototype would still apply.  */
32621 #ifdef __cplusplus
32622 extern "C"
32623 #endif
32624 char deflate ();
32625 int
32626 main ()
32627 {
32628 return deflate ();
32629   ;
32630   return 0;
32631 }
32632 _ACEOF
32633 rm -f conftest.$ac_objext conftest$ac_exeext
32634 if { (ac_try="$ac_link"
32635 case "(($ac_try" in
32636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32637   *) ac_try_echo=$ac_try;;
32638 esac
32639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32640   (eval "$ac_link") 2>conftest.er1
32641   ac_status=$?
32642   grep -v '^ *+' conftest.er1 >conftest.err
32643   rm -f conftest.er1
32644   cat conftest.err >&5
32645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32646   (exit $ac_status); } &&
32647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32648   { (case "(($ac_try" in
32649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32650   *) ac_try_echo=$ac_try;;
32651 esac
32652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32653   (eval "$ac_try") 2>&5
32654   ac_status=$?
32655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32656   (exit $ac_status); }; } &&
32657          { ac_try='test -s conftest$ac_exeext'
32658   { (case "(($ac_try" in
32659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32660   *) ac_try_echo=$ac_try;;
32661 esac
32662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32663   (eval "$ac_try") 2>&5
32664   ac_status=$?
32665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32666   (exit $ac_status); }; }; then
32667   ac_cv_lib_z_deflate=yes
32668 else
32669   echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32671
32672         ac_cv_lib_z_deflate=no
32673 fi
32674
32675 rm -f core conftest.err conftest.$ac_objext \
32676       conftest$ac_exeext conftest.$ac_ext
32677 LIBS=$ac_check_lib_save_LIBS
32678 fi
32679 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32680 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32681 if test $ac_cv_lib_z_deflate = yes; then
32682   FDLIBS="-lz"
32683 fi
32684
32685 have_zlib=no
32686 if test x$FDLIBS = x-lz; then
32687   cat >>confdefs.h <<\_ACEOF
32688 #define HAVE_LIBZ 1
32689 _ACEOF
32690
32691   have_zlib=yes
32692 fi
32693
32694 #
32695 # Check for ACL libraries
32696 #
32697 have_acl=no
32698 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32699   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32700 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32701 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32702   echo $ECHO_N "(cached) $ECHO_C" >&6
32703 fi
32704 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32705 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32706 else
32707   # Is the header compilable?
32708 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32709 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32710 cat >conftest.$ac_ext <<_ACEOF
32711 /* confdefs.h.  */
32712 _ACEOF
32713 cat confdefs.h >>conftest.$ac_ext
32714 cat >>conftest.$ac_ext <<_ACEOF
32715 /* end confdefs.h.  */
32716 $ac_includes_default
32717 #include <sys/acl.h>
32718 _ACEOF
32719 rm -f conftest.$ac_objext
32720 if { (ac_try="$ac_compile"
32721 case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_compile") 2>conftest.er1
32727   ac_status=$?
32728   grep -v '^ *+' conftest.er1 >conftest.err
32729   rm -f conftest.er1
32730   cat conftest.err >&5
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); } &&
32733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32734   { (case "(($ac_try" in
32735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32736   *) ac_try_echo=$ac_try;;
32737 esac
32738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32739   (eval "$ac_try") 2>&5
32740   ac_status=$?
32741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32742   (exit $ac_status); }; } &&
32743          { ac_try='test -s conftest.$ac_objext'
32744   { (case "(($ac_try" in
32745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32746   *) ac_try_echo=$ac_try;;
32747 esac
32748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32749   (eval "$ac_try") 2>&5
32750   ac_status=$?
32751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752   (exit $ac_status); }; }; then
32753   ac_header_compiler=yes
32754 else
32755   echo "$as_me: failed program was:" >&5
32756 sed 's/^/| /' conftest.$ac_ext >&5
32757
32758         ac_header_compiler=no
32759 fi
32760
32761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32763 echo "${ECHO_T}$ac_header_compiler" >&6; }
32764
32765 # Is the header present?
32766 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32767 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32768 cat >conftest.$ac_ext <<_ACEOF
32769 /* confdefs.h.  */
32770 _ACEOF
32771 cat confdefs.h >>conftest.$ac_ext
32772 cat >>conftest.$ac_ext <<_ACEOF
32773 /* end confdefs.h.  */
32774 #include <sys/acl.h>
32775 _ACEOF
32776 if { (ac_try="$ac_cpp conftest.$ac_ext"
32777 case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } >/dev/null; then
32789   if test -s conftest.err; then
32790     ac_cpp_err=$ac_c_preproc_warn_flag
32791     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32792   else
32793     ac_cpp_err=
32794   fi
32795 else
32796   ac_cpp_err=yes
32797 fi
32798 if test -z "$ac_cpp_err"; then
32799   ac_header_preproc=yes
32800 else
32801   echo "$as_me: failed program was:" >&5
32802 sed 's/^/| /' conftest.$ac_ext >&5
32803
32804   ac_header_preproc=no
32805 fi
32806
32807 rm -f conftest.err conftest.$ac_ext
32808 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32809 echo "${ECHO_T}$ac_header_preproc" >&6; }
32810
32811 # So?  What about this header?
32812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32813   yes:no: )
32814     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32815 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32816     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32817 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32818     ac_header_preproc=yes
32819     ;;
32820   no:yes:* )
32821     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32822 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32823     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
32824 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
32825     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32826 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32827     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
32828 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32829     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32830 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32831     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32832 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32833
32834     ;;
32835 esac
32836 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32837 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32838 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32839   echo $ECHO_N "(cached) $ECHO_C" >&6
32840 else
32841   ac_cv_header_sys_acl_h=$ac_header_preproc
32842 fi
32843 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32844 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32845
32846 fi
32847
32848
32849 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
32850 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
32851 if test "${ac_cv_func_acl_get_file+set}" = set; then
32852   echo $ECHO_N "(cached) $ECHO_C" >&6
32853 else
32854   cat >conftest.$ac_ext <<_ACEOF
32855 /* confdefs.h.  */
32856 _ACEOF
32857 cat confdefs.h >>conftest.$ac_ext
32858 cat >>conftest.$ac_ext <<_ACEOF
32859 /* end confdefs.h.  */
32860 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
32861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32862 #define acl_get_file innocuous_acl_get_file
32863
32864 /* System header to define __stub macros and hopefully few prototypes,
32865     which can conflict with char acl_get_file (); below.
32866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32867     <limits.h> exists even on freestanding compilers.  */
32868
32869 #ifdef __STDC__
32870 # include <limits.h>
32871 #else
32872 # include <assert.h>
32873 #endif
32874
32875 #undef acl_get_file
32876
32877 /* Override any GCC internal prototype to avoid an error.
32878    Use char because int might match the return type of a GCC
32879    builtin and then its argument prototype would still apply.  */
32880 #ifdef __cplusplus
32881 extern "C"
32882 #endif
32883 char acl_get_file ();
32884 /* The GNU C library defines this for functions which it implements
32885     to always fail with ENOSYS.  Some functions are actually named
32886     something starting with __ and the normal name is an alias.  */
32887 #if defined __stub_acl_get_file || defined __stub___acl_get_file
32888 choke me
32889 #endif
32890
32891 int
32892 main ()
32893 {
32894 return acl_get_file ();
32895   ;
32896   return 0;
32897 }
32898 _ACEOF
32899 rm -f conftest.$ac_objext conftest$ac_exeext
32900 if { (ac_try="$ac_link"
32901 case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906   (eval "$ac_link") 2>conftest.er1
32907   ac_status=$?
32908   grep -v '^ *+' conftest.er1 >conftest.err
32909   rm -f conftest.er1
32910   cat conftest.err >&5
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); } &&
32913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32914   { (case "(($ac_try" in
32915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32916   *) ac_try_echo=$ac_try;;
32917 esac
32918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32919   (eval "$ac_try") 2>&5
32920   ac_status=$?
32921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922   (exit $ac_status); }; } &&
32923          { ac_try='test -s conftest$ac_exeext'
32924   { (case "(($ac_try" in
32925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32926   *) ac_try_echo=$ac_try;;
32927 esac
32928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32929   (eval "$ac_try") 2>&5
32930   ac_status=$?
32931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32932   (exit $ac_status); }; }; then
32933   ac_cv_func_acl_get_file=yes
32934 else
32935   echo "$as_me: failed program was:" >&5
32936 sed 's/^/| /' conftest.$ac_ext >&5
32937
32938         ac_cv_func_acl_get_file=no
32939 fi
32940
32941 rm -f core conftest.err conftest.$ac_objext \
32942       conftest$ac_exeext conftest.$ac_ext
32943 fi
32944 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
32945 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
32946 if test $ac_cv_func_acl_get_file = yes; then
32947   have_acl=yes
32948 else
32949   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
32950 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
32951 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
32952   echo $ECHO_N "(cached) $ECHO_C" >&6
32953 else
32954   ac_check_lib_save_LIBS=$LIBS
32955 LIBS="-lacl  $LIBS"
32956 cat >conftest.$ac_ext <<_ACEOF
32957 /* confdefs.h.  */
32958 _ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h.  */
32962
32963 /* Override any GCC internal prototype to avoid an error.
32964    Use char because int might match the return type of a GCC
32965    builtin and then its argument prototype would still apply.  */
32966 #ifdef __cplusplus
32967 extern "C"
32968 #endif
32969 char acl_get_file ();
32970 int
32971 main ()
32972 {
32973 return acl_get_file ();
32974   ;
32975   return 0;
32976 }
32977 _ACEOF
32978 rm -f conftest.$ac_objext conftest$ac_exeext
32979 if { (ac_try="$ac_link"
32980 case "(($ac_try" in
32981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32982   *) ac_try_echo=$ac_try;;
32983 esac
32984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32985   (eval "$ac_link") 2>conftest.er1
32986   ac_status=$?
32987   grep -v '^ *+' conftest.er1 >conftest.err
32988   rm -f conftest.er1
32989   cat conftest.err >&5
32990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32991   (exit $ac_status); } &&
32992          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32993   { (case "(($ac_try" in
32994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995   *) ac_try_echo=$ac_try;;
32996 esac
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998   (eval "$ac_try") 2>&5
32999   ac_status=$?
33000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33001   (exit $ac_status); }; } &&
33002          { ac_try='test -s conftest$ac_exeext'
33003   { (case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_try") 2>&5
33009   ac_status=$?
33010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011   (exit $ac_status); }; }; then
33012   ac_cv_lib_acl_acl_get_file=yes
33013 else
33014   echo "$as_me: failed program was:" >&5
33015 sed 's/^/| /' conftest.$ac_ext >&5
33016
33017         ac_cv_lib_acl_acl_get_file=no
33018 fi
33019
33020 rm -f core conftest.err conftest.$ac_objext \
33021       conftest$ac_exeext conftest.$ac_ext
33022 LIBS=$ac_check_lib_save_LIBS
33023 fi
33024 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33025 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33026 if test $ac_cv_lib_acl_acl_get_file = yes; then
33027   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33028 else
33029   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33030 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33031 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33032   echo $ECHO_N "(cached) $ECHO_C" >&6
33033 else
33034   ac_check_lib_save_LIBS=$LIBS
33035 LIBS="-lsec  $LIBS"
33036 cat >conftest.$ac_ext <<_ACEOF
33037 /* confdefs.h.  */
33038 _ACEOF
33039 cat confdefs.h >>conftest.$ac_ext
33040 cat >>conftest.$ac_ext <<_ACEOF
33041 /* end confdefs.h.  */
33042
33043 /* Override any GCC internal prototype to avoid an error.
33044    Use char because int might match the return type of a GCC
33045    builtin and then its argument prototype would still apply.  */
33046 #ifdef __cplusplus
33047 extern "C"
33048 #endif
33049 char acltotext ();
33050 int
33051 main ()
33052 {
33053 return acltotext ();
33054   ;
33055   return 0;
33056 }
33057 _ACEOF
33058 rm -f conftest.$ac_objext conftest$ac_exeext
33059 if { (ac_try="$ac_link"
33060 case "(($ac_try" in
33061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33062   *) ac_try_echo=$ac_try;;
33063 esac
33064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33065   (eval "$ac_link") 2>conftest.er1
33066   ac_status=$?
33067   grep -v '^ *+' conftest.er1 >conftest.err
33068   rm -f conftest.er1
33069   cat conftest.err >&5
33070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071   (exit $ac_status); } &&
33072          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33073   { (case "(($ac_try" in
33074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33075   *) ac_try_echo=$ac_try;;
33076 esac
33077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33078   (eval "$ac_try") 2>&5
33079   ac_status=$?
33080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33081   (exit $ac_status); }; } &&
33082          { ac_try='test -s conftest$ac_exeext'
33083   { (case "(($ac_try" in
33084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33085   *) ac_try_echo=$ac_try;;
33086 esac
33087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33088   (eval "$ac_try") 2>&5
33089   ac_status=$?
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); }; }; then
33092   ac_cv_lib_sec_acltotext=yes
33093 else
33094   echo "$as_me: failed program was:" >&5
33095 sed 's/^/| /' conftest.$ac_ext >&5
33096
33097         ac_cv_lib_sec_acltotext=no
33098 fi
33099
33100 rm -f core conftest.err conftest.$ac_objext \
33101       conftest$ac_exeext conftest.$ac_ext
33102 LIBS=$ac_check_lib_save_LIBS
33103 fi
33104 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33105 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33106 if test $ac_cv_lib_sec_acltotext = yes; then
33107   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33108 fi
33109
33110
33111 fi
33112
33113
33114 fi
33115
33116 if test $have_acl = yes; then
33117    cat >>confdefs.h <<\_ACEOF
33118 #define HAVE_ACL 1
33119 _ACEOF
33120
33121 fi
33122
33123 PTHREAD_LIB=""
33124 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33125 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33126 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33127   echo $ECHO_N "(cached) $ECHO_C" >&6
33128 else
33129   ac_check_lib_save_LIBS=$LIBS
33130 LIBS="-lpthread  $LIBS"
33131 cat >conftest.$ac_ext <<_ACEOF
33132 /* confdefs.h.  */
33133 _ACEOF
33134 cat confdefs.h >>conftest.$ac_ext
33135 cat >>conftest.$ac_ext <<_ACEOF
33136 /* end confdefs.h.  */
33137
33138 /* Override any GCC internal prototype to avoid an error.
33139    Use char because int might match the return type of a GCC
33140    builtin and then its argument prototype would still apply.  */
33141 #ifdef __cplusplus
33142 extern "C"
33143 #endif
33144 char pthread_create ();
33145 int
33146 main ()
33147 {
33148 return pthread_create ();
33149   ;
33150   return 0;
33151 }
33152 _ACEOF
33153 rm -f conftest.$ac_objext conftest$ac_exeext
33154 if { (ac_try="$ac_link"
33155 case "(($ac_try" in
33156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157   *) ac_try_echo=$ac_try;;
33158 esac
33159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33160   (eval "$ac_link") 2>conftest.er1
33161   ac_status=$?
33162   grep -v '^ *+' conftest.er1 >conftest.err
33163   rm -f conftest.er1
33164   cat conftest.err >&5
33165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33166   (exit $ac_status); } &&
33167          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33168   { (case "(($ac_try" in
33169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170   *) ac_try_echo=$ac_try;;
33171 esac
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173   (eval "$ac_try") 2>&5
33174   ac_status=$?
33175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176   (exit $ac_status); }; } &&
33177          { ac_try='test -s conftest$ac_exeext'
33178   { (case "(($ac_try" in
33179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33180   *) ac_try_echo=$ac_try;;
33181 esac
33182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33183   (eval "$ac_try") 2>&5
33184   ac_status=$?
33185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33186   (exit $ac_status); }; }; then
33187   ac_cv_lib_pthread_pthread_create=yes
33188 else
33189   echo "$as_me: failed program was:" >&5
33190 sed 's/^/| /' conftest.$ac_ext >&5
33191
33192         ac_cv_lib_pthread_pthread_create=no
33193 fi
33194
33195 rm -f core conftest.err conftest.$ac_objext \
33196       conftest$ac_exeext conftest.$ac_ext
33197 LIBS=$ac_check_lib_save_LIBS
33198 fi
33199 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33200 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33201 if test $ac_cv_lib_pthread_pthread_create = yes; then
33202   PTHREAD_LIB="-lpthread"
33203 else
33204   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33205 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33206 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33207   echo $ECHO_N "(cached) $ECHO_C" >&6
33208 else
33209   ac_check_lib_save_LIBS=$LIBS
33210 LIBS="-lpthreads  $LIBS"
33211 cat >conftest.$ac_ext <<_ACEOF
33212 /* confdefs.h.  */
33213 _ACEOF
33214 cat confdefs.h >>conftest.$ac_ext
33215 cat >>conftest.$ac_ext <<_ACEOF
33216 /* end confdefs.h.  */
33217
33218 /* Override any GCC internal prototype to avoid an error.
33219    Use char because int might match the return type of a GCC
33220    builtin and then its argument prototype would still apply.  */
33221 #ifdef __cplusplus
33222 extern "C"
33223 #endif
33224 char pthread_create ();
33225 int
33226 main ()
33227 {
33228 return pthread_create ();
33229   ;
33230   return 0;
33231 }
33232 _ACEOF
33233 rm -f conftest.$ac_objext conftest$ac_exeext
33234 if { (ac_try="$ac_link"
33235 case "(($ac_try" in
33236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33237   *) ac_try_echo=$ac_try;;
33238 esac
33239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33240   (eval "$ac_link") 2>conftest.er1
33241   ac_status=$?
33242   grep -v '^ *+' conftest.er1 >conftest.err
33243   rm -f conftest.er1
33244   cat conftest.err >&5
33245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33246   (exit $ac_status); } &&
33247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33248   { (case "(($ac_try" in
33249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33250   *) ac_try_echo=$ac_try;;
33251 esac
33252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33253   (eval "$ac_try") 2>&5
33254   ac_status=$?
33255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33256   (exit $ac_status); }; } &&
33257          { ac_try='test -s conftest$ac_exeext'
33258   { (case "(($ac_try" in
33259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33260   *) ac_try_echo=$ac_try;;
33261 esac
33262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33263   (eval "$ac_try") 2>&5
33264   ac_status=$?
33265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33266   (exit $ac_status); }; }; then
33267   ac_cv_lib_pthreads_pthread_create=yes
33268 else
33269   echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.$ac_ext >&5
33271
33272         ac_cv_lib_pthreads_pthread_create=no
33273 fi
33274
33275 rm -f core conftest.err conftest.$ac_objext \
33276       conftest$ac_exeext conftest.$ac_ext
33277 LIBS=$ac_check_lib_save_LIBS
33278 fi
33279 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33280 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33281 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33282   PTHREAD_LIB="-lpthreads"
33283 else
33284   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33285 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33286 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33287   echo $ECHO_N "(cached) $ECHO_C" >&6
33288 else
33289   ac_check_lib_save_LIBS=$LIBS
33290 LIBS="-lc_r  $LIBS"
33291 cat >conftest.$ac_ext <<_ACEOF
33292 /* confdefs.h.  */
33293 _ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h.  */
33297
33298 /* Override any GCC internal prototype to avoid an error.
33299    Use char because int might match the return type of a GCC
33300    builtin and then its argument prototype would still apply.  */
33301 #ifdef __cplusplus
33302 extern "C"
33303 #endif
33304 char pthread_create ();
33305 int
33306 main ()
33307 {
33308 return pthread_create ();
33309   ;
33310   return 0;
33311 }
33312 _ACEOF
33313 rm -f conftest.$ac_objext conftest$ac_exeext
33314 if { (ac_try="$ac_link"
33315 case "(($ac_try" in
33316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33317   *) ac_try_echo=$ac_try;;
33318 esac
33319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33320   (eval "$ac_link") 2>conftest.er1
33321   ac_status=$?
33322   grep -v '^ *+' conftest.er1 >conftest.err
33323   rm -f conftest.er1
33324   cat conftest.err >&5
33325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33326   (exit $ac_status); } &&
33327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33328   { (case "(($ac_try" in
33329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33330   *) ac_try_echo=$ac_try;;
33331 esac
33332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33333   (eval "$ac_try") 2>&5
33334   ac_status=$?
33335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33336   (exit $ac_status); }; } &&
33337          { ac_try='test -s conftest$ac_exeext'
33338   { (case "(($ac_try" in
33339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33340   *) ac_try_echo=$ac_try;;
33341 esac
33342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33343   (eval "$ac_try") 2>&5
33344   ac_status=$?
33345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33346   (exit $ac_status); }; }; then
33347   ac_cv_lib_c_r_pthread_create=yes
33348 else
33349   echo "$as_me: failed program was:" >&5
33350 sed 's/^/| /' conftest.$ac_ext >&5
33351
33352         ac_cv_lib_c_r_pthread_create=no
33353 fi
33354
33355 rm -f core conftest.err conftest.$ac_objext \
33356       conftest$ac_exeext conftest.$ac_ext
33357 LIBS=$ac_check_lib_save_LIBS
33358 fi
33359 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33360 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33361 if test $ac_cv_lib_c_r_pthread_create = yes; then
33362   PTHREAD_LIB="-lc_r"
33363 else
33364   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33365 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33366 if test "${ac_cv_func_pthread_create+set}" = set; then
33367   echo $ECHO_N "(cached) $ECHO_C" >&6
33368 else
33369   cat >conftest.$ac_ext <<_ACEOF
33370 /* confdefs.h.  */
33371 _ACEOF
33372 cat confdefs.h >>conftest.$ac_ext
33373 cat >>conftest.$ac_ext <<_ACEOF
33374 /* end confdefs.h.  */
33375 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33376    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33377 #define pthread_create innocuous_pthread_create
33378
33379 /* System header to define __stub macros and hopefully few prototypes,
33380     which can conflict with char pthread_create (); below.
33381     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33382     <limits.h> exists even on freestanding compilers.  */
33383
33384 #ifdef __STDC__
33385 # include <limits.h>
33386 #else
33387 # include <assert.h>
33388 #endif
33389
33390 #undef pthread_create
33391
33392 /* Override any GCC internal prototype to avoid an error.
33393    Use char because int might match the return type of a GCC
33394    builtin and then its argument prototype would still apply.  */
33395 #ifdef __cplusplus
33396 extern "C"
33397 #endif
33398 char pthread_create ();
33399 /* The GNU C library defines this for functions which it implements
33400     to always fail with ENOSYS.  Some functions are actually named
33401     something starting with __ and the normal name is an alias.  */
33402 #if defined __stub_pthread_create || defined __stub___pthread_create
33403 choke me
33404 #endif
33405
33406 int
33407 main ()
33408 {
33409 return pthread_create ();
33410   ;
33411   return 0;
33412 }
33413 _ACEOF
33414 rm -f conftest.$ac_objext conftest$ac_exeext
33415 if { (ac_try="$ac_link"
33416 case "(($ac_try" in
33417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33418   *) ac_try_echo=$ac_try;;
33419 esac
33420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33421   (eval "$ac_link") 2>conftest.er1
33422   ac_status=$?
33423   grep -v '^ *+' conftest.er1 >conftest.err
33424   rm -f conftest.er1
33425   cat conftest.err >&5
33426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33427   (exit $ac_status); } &&
33428          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33429   { (case "(($ac_try" in
33430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33431   *) ac_try_echo=$ac_try;;
33432 esac
33433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33434   (eval "$ac_try") 2>&5
33435   ac_status=$?
33436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437   (exit $ac_status); }; } &&
33438          { ac_try='test -s conftest$ac_exeext'
33439   { (case "(($ac_try" in
33440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33441   *) ac_try_echo=$ac_try;;
33442 esac
33443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33444   (eval "$ac_try") 2>&5
33445   ac_status=$?
33446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); }; }; then
33448   ac_cv_func_pthread_create=yes
33449 else
33450   echo "$as_me: failed program was:" >&5
33451 sed 's/^/| /' conftest.$ac_ext >&5
33452
33453         ac_cv_func_pthread_create=no
33454 fi
33455
33456 rm -f core conftest.err conftest.$ac_objext \
33457       conftest$ac_exeext conftest.$ac_ext
33458 fi
33459 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33460 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33461
33462
33463 fi
33464
33465
33466 fi
33467
33468
33469 fi
33470
33471
33472
33473 cat >>confdefs.h <<\_ACEOF
33474 #define FDLIBS 1
33475 _ACEOF
33476
33477
33478
33479 CFLAGS=${CFLAGS--O}
33480
33481 if test x$have_gcc = xyes ; then
33482    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33483    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33484 fi
33485 LDFLAGS=${LDFLAGS--O}
33486 DB_LIBS="${SQL_LFLAGS}"
33487 CPPFLAGS="$CPPFLAGS"
33488 CFLAGS="$CFLAGS"
33489
33490
33491
33492
33493
33494
33495
33496
33497
33498
33499
33500
33501
33502
33503
33504
33505 OBJLIST=
33506
33507
33508 lld="lld"
33509 llu="llu"
33510
33511 WCFLAGS=
33512 WLDFLAGS=
33513
33514 #
33515 # Finally we set appropriate distribution specific
33516 #  variables and defaults
33517 #
33518 # PFILES are platform specific files
33519 PFILES="platforms/Makefile"
33520 PSCMD="ps -e"
33521 WIN32=
33522 MACOSX=
33523 hostname=`uname -n | cut -d '.' -f 1`
33524 if test x${hostname} = x ; then
33525   hostname="localhost"
33526 fi
33527 case "$DISTNAME" in
33528 aix)
33529         DISTVER=`uname -r`
33530         PSCMD="ps -e -o pid,comm"
33531         PFILES="${PFILES} \
33532            platforms/aix/Makefile"
33533         TAPEDRIVE="/dev/rmt0.1"
33534   ;;
33535 alpha)
33536         DISTVER=`uname -r`
33537         PTHREAD_LIB="-lpthread -lexc"
33538         if test "${CC}" = "gcc" ; then
33539            lld="lld"
33540            llu="llu"
33541         else
33542            lld="ld"
33543            llu="lu"
33544         fi
33545         TAPEDRIVE="/dev/nrmt0"
33546   ;;
33547 bsdi)
33548         DISTVER=`uname -a |awk '{print $3}'`
33549         TAPEDRIVE="/dev/nrmt0"
33550         PTHREAD_LIB="-pthread"
33551         CFLAGS="${CFLAGS} -pthread"
33552         PSCMD="ps -ax -o pid,command"
33553         lld="qd"
33554         llu="qu"
33555         PFILES="${PFILES} \
33556             platforms/bsdi/Makefile \
33557             platforms/bsdi/bacula-fd \
33558             platforms/bsdi/bacula-sd \
33559             platforms/bsdi/bacula-dir"
33560         largefile_support="yes"
33561   ;;
33562 cygwin)
33563         DISTVER=`uname -a |awk '{print $3}'`
33564         TAPEDRIVE="/dev/nrst0"
33565         WIN32=win32
33566         WCFLAGS="-mwindows"
33567         WLDFLAGS="-mwindows"
33568   ;;
33569 darwin)
33570         DISTVER=`uname -r`
33571         TAPEDRIVE="/dev/nst0"
33572         PSCMD="ps -e -o pid,command"
33573         MACOSX=macosx
33574         PFILES="${PFILES} \
33575            platforms/darwin/Makefile"
33576   ;;
33577 debian)
33578         DISTVER=`cat /etc/debian_version`
33579         TAPEDRIVE="/dev/nrst0"
33580         PSCMD="ps -e -o pid,command"
33581   ;;
33582 freebsd)
33583         DISTVER=`uname -a |awk '{print $3}'`
33584         VER=`echo $DISTVER | cut -c 1`
33585         if test x$VER = x4 ; then
33586            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33587            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33588         fi
33589         lld="qd"
33590         llu="qu"
33591         TAPEDRIVE="/dev/nrsa0"
33592         PSCMD="ps -ax -o pid,command"
33593         PFILES="${PFILES} \
33594             platforms/freebsd/Makefile \
33595             platforms/freebsd/bacula-fd \
33596             platforms/freebsd/bacula-sd \
33597             platforms/freebsd/bacula-dir"
33598         largefile_support="yes"
33599   ;;
33600 hpux)
33601         PSCMD="UNIX95=1 ps -e -o pid,comm"
33602         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33603         DISTVER=`uname -r`
33604         TAPEDRIVE="/dev/rmt/0hnb"
33605         PTHREAD_LIB="-lpthread"
33606         cat >>confdefs.h <<\_ACEOF
33607 #define _INCLUDE_LONGLONG 1
33608 _ACEOF
33609
33610   ;;
33611 irix)
33612         DISTVER=`uname -r`
33613         TAPEDRIVE="/dev/rmt/0cbn"
33614         PSCMD="ps -e -o pid,comm"
33615         PFILES="${PFILES} \
33616             platforms/irix/Makefile \
33617             platforms/irix/bacula-fd \
33618             platforms/irix/bacula-sd \
33619             platforms/irix/bacula-dir"
33620   ;;
33621 netbsd)
33622         DISTVER=`uname -a |awk '{print $3}'`
33623         lld="qd"
33624         llu="qu"
33625         TAPEDRIVE="/dev/nrst0"
33626         PSCMD="ps -ax -o pid,command"
33627         PTHREAD_LIB="-pthread"
33628         CFLAGS="${CFLAGS} -pthread"
33629   ;;
33630 openbsd)
33631         DISTVER=`uname -a |awk '{print $3}'`
33632         lld="qd"
33633         llu="qu"
33634         TAPEDRIVE="/dev/nrst0"
33635         PSCMD="ps -ax -o pid,command"
33636         PTHREAD_LIB="-pthread"
33637         CFLAGS="${CFLAGS} -pthread"
33638         PFILES="${PFILES} \
33639             platforms/openbsd/Makefile \
33640             platforms/openbsd/bacula-fd \
33641             platforms/openbsd/bacula-sd \
33642             platforms/openbsd/bacula-dir"
33643   ;;
33644 redhat)
33645         if test -f /etc/whitebox-release ; then
33646            f=/etc/whitebox-release
33647         else
33648            f=/etc/redhat-release
33649         fi
33650         if test `cat $f | grep release |\
33651                    cut -f 3 -d ' '`x = "Enterprise"x ; then
33652            DISTVER="Enterprise "`cat $f | grep release |\
33653                     cut -f 6 -d ' '`
33654         else
33655             DISTVER=`cat /etc/redhat-release | grep release |\
33656                      cut -f 5 -d ' '`
33657         fi
33658         TAPEDRIVE="/dev/nst0"
33659         PSCMD="ps -e -o pid,command"
33660         PFILES="${PFILES} \
33661             platforms/redhat/Makefile \
33662             platforms/redhat/bacula-fd \
33663             platforms/redhat/bacula-sd \
33664             platforms/redhat/bacula-dir \
33665             platforms/redhat/bacula.spec \
33666             "
33667   ;;
33668 mandrake)
33669         DISTVER=`cat /etc/mandrake-release | grep release |\
33670            cut -f 5 -d ' '`
33671         TAPEDRIVE="/dev/nst0"
33672         PSCMD="ps -e -o pid,command"
33673         PFILES="${PFILES} \
33674             platforms/mandrake/Makefile \
33675             platforms/mandrake/bacula-fd \
33676             platforms/mandrake/bacula-sd \
33677             platforms/mandrake/bacula-dir \
33678             platforms/mandrake/bacula.spec \
33679             "
33680   ;;
33681 gentoo)
33682         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33683         TAPEDRIVE="/dev/nst0"
33684         PSCMD="ps -e -o pid,command"
33685         PFILES="${PFILES} \
33686             platforms/gentoo/Makefile \
33687          platforms/gentoo/bacula-init \
33688             platforms/gentoo/bacula-fd \
33689             platforms/gentoo/bacula-sd \
33690             platforms/gentoo/bacula-dir"
33691   ;;
33692 slackware)
33693         DISTVER=`cat /etc/slackware-version`
33694         TAPEDRIVE="/dev/nst0"
33695         PSCMD="ps -e -o pid,command"
33696         PFILES="${PFILES} \
33697             platforms/slackware/Makefile \
33698             platforms/slackware/rc.bacula-fd \
33699             platforms/slackware/rc.bacula-sd \
33700             platforms/slackware/rc.bacula-dir\
33701             platforms/slackware/functions.bacula"
33702   ;;
33703 solaris)
33704         DISTVER=`uname -r`
33705         TAPEDRIVE="/dev/rmt/0cbn"
33706         PSCMD="ps -e -o pid,comm"
33707         PFILES="${PFILES} \
33708             platforms/solaris/Makefile \
33709             platforms/solaris/bacula-fd \
33710             platforms/solaris/bacula-sd \
33711             platforms/solaris/bacula-dir"
33712         if test x$DISTVER = x5.6 ; then
33713             cat >>confdefs.h <<\_ACEOF
33714 #define HAVE_OLD_SOCKOPT 1
33715 _ACEOF
33716
33717         fi
33718         LIBS="$LIBS -lresolv"
33719   ;;
33720 suse)
33721         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33722             cut -f 3 -d ' '`
33723         TAPEDRIVE="/dev/nst0"
33724         PSCMD="ps -e -o pid,command"
33725         PFILES="${PFILES} \
33726             platforms/suse/Makefile \
33727             platforms/suse/bacula-fd \
33728             platforms/suse/bacula-sd \
33729             platforms/suse/bacula-dir \
33730             platforms/suse/bacula \
33731             platforms/suse/bacula.spec"
33732   ;;
33733 suse5)
33734         DISTNAME=suse
33735         DISTVER=5.x
33736         TAPEDRIVE="/dev/nst0"
33737         PSCMD="ps -e -o pid,command"
33738         PFILES="${PFILES} \
33739             platforms/suse/Makefile \
33740             platforms/suse/bacula-fd \
33741             platforms/suse/bacula-sd \
33742             platforms/suse/bacula-dir"
33743   ;;
33744 unknown)
33745         DISTVER=unknown
33746         TAPEDRIVE="/dev/nst0"
33747   ;;
33748 *)
33749   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33750   ;;
33751 esac
33752
33753
33754
33755 LIBS="$PTHREAD_LIB $LIBS"
33756
33757 cat >>confdefs.h <<_ACEOF
33758 #define lld "$lld"
33759 _ACEOF
33760
33761 cat >>confdefs.h <<_ACEOF
33762 #define llu "$llu"
33763 _ACEOF
33764
33765
33766
33767
33768
33769
33770
33771
33772 MCOMMON=./autoconf/Make.common
33773
33774
33775 if test "x${subsysdir}" = "x${sbindir}" ; then
33776    echo " "
33777    echo " "
33778    echo "You have set both --sbindir and --with-subsys-dir"
33779    echo "  equal to: ${subsysdir} "
33780    echo "This is not permitted. Please reconfigure."
33781    echo " "
33782    echo "Aborting configuration ..."
33783    echo " "
33784    echo " "
33785    exit 1
33786 fi
33787
33788 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
33789
33790 ac_config_commands="$ac_config_commands default"
33791
33792 cat >confcache <<\_ACEOF
33793 # This file is a shell script that caches the results of configure
33794 # tests run on this system so they can be shared between configure
33795 # scripts and configure runs, see configure's option --config-cache.
33796 # It is not useful on other systems.  If it contains results you don't
33797 # want to keep, you may remove or edit it.
33798 #
33799 # config.status only pays attention to the cache file if you give it
33800 # the --recheck option to rerun configure.
33801 #
33802 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33803 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33804 # following values.
33805
33806 _ACEOF
33807
33808 # The following way of writing the cache mishandles newlines in values,
33809 # but we know of no workaround that is simple, portable, and efficient.
33810 # So, we kill variables containing newlines.
33811 # Ultrix sh set writes to stderr and can't be redirected directly,
33812 # and sets the high bit in the cache file unless we assign to the vars.
33813 (
33814   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33815     eval ac_val=\$$ac_var
33816     case $ac_val in #(
33817     *${as_nl}*)
33818       case $ac_var in #(
33819       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33820 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33821       esac
33822       case $ac_var in #(
33823       _ | IFS | as_nl) ;; #(
33824       *) $as_unset $ac_var ;;
33825       esac ;;
33826     esac
33827   done
33828
33829   (set) 2>&1 |
33830     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33831     *${as_nl}ac_space=\ *)
33832       # `set' does not quote correctly, so add quotes (double-quote
33833       # substitution turns \\\\ into \\, and sed turns \\ into \).
33834       sed -n \
33835         "s/'/'\\\\''/g;
33836           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33837       ;; #(
33838     *)
33839       # `set' quotes correctly as required by POSIX, so do not add quotes.
33840       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33841       ;;
33842     esac |
33843     sort
33844 ) |
33845   sed '
33846      /^ac_cv_env_/b end
33847      t clear
33848      :clear
33849      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33850      t end
33851      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33852      :end' >>confcache
33853 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33854   if test -w "$cache_file"; then
33855     test "x$cache_file" != "x/dev/null" &&
33856       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33857 echo "$as_me: updating cache $cache_file" >&6;}
33858     cat confcache >$cache_file
33859   else
33860     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33861 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33862   fi
33863 fi
33864 rm -f confcache
33865
33866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33867 # Let make expand exec_prefix.
33868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33869
33870 DEFS=-DHAVE_CONFIG_H
33871
33872 ac_libobjs=
33873 ac_ltlibobjs=
33874 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33875   # 1. Remove the extension, and $U if already installed.
33876   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33877   ac_i=`echo "$ac_i" | sed "$ac_script"`
33878   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33879   #    will be set to the directory where LIBOBJS objects are built.
33880   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33881   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33882 done
33883 LIBOBJS=$ac_libobjs
33884
33885 LTLIBOBJS=$ac_ltlibobjs
33886
33887
33888
33889 : ${CONFIG_STATUS=./config.status}
33890 ac_clean_files_save=$ac_clean_files
33891 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33892 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33893 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33894 cat >$CONFIG_STATUS <<_ACEOF
33895 #! $SHELL
33896 # Generated by $as_me.
33897 # Run this file to recreate the current configuration.
33898 # Compiler output produced by configure, useful for debugging
33899 # configure, is in config.log if it exists.
33900
33901 debug=false
33902 ac_cs_recheck=false
33903 ac_cs_silent=false
33904 SHELL=\${CONFIG_SHELL-$SHELL}
33905 _ACEOF
33906
33907 cat >>$CONFIG_STATUS <<\_ACEOF
33908 ## --------------------- ##
33909 ## M4sh Initialization.  ##
33910 ## --------------------- ##
33911
33912 # Be Bourne compatible
33913 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33914   emulate sh
33915   NULLCMD=:
33916   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33917   # is contrary to our usage.  Disable this feature.
33918   alias -g '${1+"$@"}'='"$@"'
33919   setopt NO_GLOB_SUBST
33920 else
33921   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33922 fi
33923 BIN_SH=xpg4; export BIN_SH # for Tru64
33924 DUALCASE=1; export DUALCASE # for MKS sh
33925
33926
33927 # PATH needs CR
33928 # Avoid depending upon Character Ranges.
33929 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33930 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33931 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33932 as_cr_digits='0123456789'
33933 as_cr_alnum=$as_cr_Letters$as_cr_digits
33934
33935 # The user is always right.
33936 if test "${PATH_SEPARATOR+set}" != set; then
33937   echo "#! /bin/sh" >conf$$.sh
33938   echo  "exit 0"   >>conf$$.sh
33939   chmod +x conf$$.sh
33940   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33941     PATH_SEPARATOR=';'
33942   else
33943     PATH_SEPARATOR=:
33944   fi
33945   rm -f conf$$.sh
33946 fi
33947
33948 # Support unset when possible.
33949 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33950   as_unset=unset
33951 else
33952   as_unset=false
33953 fi
33954
33955
33956 # IFS
33957 # We need space, tab and new line, in precisely that order.  Quoting is
33958 # there to prevent editors from complaining about space-tab.
33959 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33960 # splitting by setting IFS to empty value.)
33961 as_nl='
33962 '
33963 IFS=" ""        $as_nl"
33964
33965 # Find who we are.  Look in the path if we contain no directory separator.
33966 case $0 in
33967   *[\\/]* ) as_myself=$0 ;;
33968   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33969 for as_dir in $PATH
33970 do
33971   IFS=$as_save_IFS
33972   test -z "$as_dir" && as_dir=.
33973   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33974 done
33975 IFS=$as_save_IFS
33976
33977      ;;
33978 esac
33979 # We did not find ourselves, most probably we were run as `sh COMMAND'
33980 # in which case we are not to be found in the path.
33981 if test "x$as_myself" = x; then
33982   as_myself=$0
33983 fi
33984 if test ! -f "$as_myself"; then
33985   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33986   { (exit 1); exit 1; }
33987 fi
33988
33989 # Work around bugs in pre-3.0 UWIN ksh.
33990 for as_var in ENV MAIL MAILPATH
33991 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33992 done
33993 PS1='$ '
33994 PS2='> '
33995 PS4='+ '
33996
33997 # NLS nuisances.
33998 for as_var in \
33999   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34000   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34001   LC_TELEPHONE LC_TIME
34002 do
34003   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34004     eval $as_var=C; export $as_var
34005   else
34006     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34007   fi
34008 done
34009
34010 # Required to use basename.
34011 if expr a : '\(a\)' >/dev/null 2>&1 &&
34012    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34013   as_expr=expr
34014 else
34015   as_expr=false
34016 fi
34017
34018 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34019   as_basename=basename
34020 else
34021   as_basename=false
34022 fi
34023
34024
34025 # Name of the executable.
34026 as_me=`$as_basename -- "$0" ||
34027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34028          X"$0" : 'X\(//\)$' \| \
34029          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34030 echo X/"$0" |
34031     sed '/^.*\/\([^/][^/]*\)\/*$/{
34032             s//\1/
34033             q
34034           }
34035           /^X\/\(\/\/\)$/{
34036             s//\1/
34037             q
34038           }
34039           /^X\/\(\/\).*/{
34040             s//\1/
34041             q
34042           }
34043           s/.*/./; q'`
34044
34045 # CDPATH.
34046 $as_unset CDPATH
34047
34048
34049
34050   as_lineno_1=$LINENO
34051   as_lineno_2=$LINENO
34052   test "x$as_lineno_1" != "x$as_lineno_2" &&
34053   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34054
34055   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34056   # uniformly replaced by the line number.  The first 'sed' inserts a
34057   # line-number line after each line using $LINENO; the second 'sed'
34058   # does the real work.  The second script uses 'N' to pair each
34059   # line-number line with the line containing $LINENO, and appends
34060   # trailing '-' during substitution so that $LINENO is not a special
34061   # case at line end.
34062   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34063   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34064   # E. McMahon (1931-1989) for sed's syntax.  :-)
34065   sed -n '
34066     p
34067     /[$]LINENO/=
34068   ' <$as_myself |
34069     sed '
34070       s/[$]LINENO.*/&-/
34071       t lineno
34072       b
34073       :lineno
34074       N
34075       :loop
34076       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34077       t loop
34078       s/-\n.*//
34079     ' >$as_me.lineno &&
34080   chmod +x "$as_me.lineno" ||
34081     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34082    { (exit 1); exit 1; }; }
34083
34084   # Don't try to exec as it changes $[0], causing all sort of problems
34085   # (the dirname of $[0] is not the place where we might find the
34086   # original and so on.  Autoconf is especially sensitive to this).
34087   . "./$as_me.lineno"
34088   # Exit status is that of the last command.
34089   exit
34090 }
34091
34092
34093 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34094   as_dirname=dirname
34095 else
34096   as_dirname=false
34097 fi
34098
34099 ECHO_C= ECHO_N= ECHO_T=
34100 case `echo -n x` in
34101 -n*)
34102   case `echo 'x\c'` in
34103   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34104   *)   ECHO_C='\c';;
34105   esac;;
34106 *)
34107   ECHO_N='-n';;
34108 esac
34109
34110 if expr a : '\(a\)' >/dev/null 2>&1 &&
34111    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34112   as_expr=expr
34113 else
34114   as_expr=false
34115 fi
34116
34117 rm -f conf$$ conf$$.exe conf$$.file
34118 if test -d conf$$.dir; then
34119   rm -f conf$$.dir/conf$$.file
34120 else
34121   rm -f conf$$.dir
34122   mkdir conf$$.dir
34123 fi
34124 echo >conf$$.file
34125 if ln -s conf$$.file conf$$ 2>/dev/null; then
34126   as_ln_s='ln -s'
34127   # ... but there are two gotchas:
34128   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34129   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34130   # In both cases, we have to default to `cp -p'.
34131   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34132     as_ln_s='cp -p'
34133 elif ln conf$$.file conf$$ 2>/dev/null; then
34134   as_ln_s=ln
34135 else
34136   as_ln_s='cp -p'
34137 fi
34138 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34139 rmdir conf$$.dir 2>/dev/null
34140
34141 if mkdir -p . 2>/dev/null; then
34142   as_mkdir_p=:
34143 else
34144   test -d ./-p && rmdir ./-p
34145   as_mkdir_p=false
34146 fi
34147
34148 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34149 # systems may use methods other than mode bits to determine executability.
34150 cat >conf$$.file <<_ASEOF
34151 #! /bin/sh
34152 exit 0
34153 _ASEOF
34154 chmod +x conf$$.file
34155 if test -x conf$$.file >/dev/null 2>&1; then
34156   as_executable_p="test -x"
34157 else
34158   as_executable_p=:
34159 fi
34160 rm -f conf$$.file
34161
34162 # Sed expression to map a string onto a valid CPP name.
34163 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34164
34165 # Sed expression to map a string onto a valid variable name.
34166 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34167
34168
34169 exec 6>&1
34170
34171 # Save the log message, to keep $[0] and so on meaningful, and to
34172 # report actual input values of CONFIG_FILES etc. instead of their
34173 # values after options handling.
34174 ac_log="
34175 This file was extended by $as_me, which was
34176 generated by GNU Autoconf 2.60.  Invocation command line was
34177
34178   CONFIG_FILES    = $CONFIG_FILES
34179   CONFIG_HEADERS  = $CONFIG_HEADERS
34180   CONFIG_LINKS    = $CONFIG_LINKS
34181   CONFIG_COMMANDS = $CONFIG_COMMANDS
34182   $ $0 $@
34183
34184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34185 "
34186
34187 _ACEOF
34188
34189 cat >>$CONFIG_STATUS <<_ACEOF
34190 # Files that config.status was made for.
34191 config_files="$ac_config_files"
34192 config_headers="$ac_config_headers"
34193 config_commands="$ac_config_commands"
34194
34195 _ACEOF
34196
34197 cat >>$CONFIG_STATUS <<\_ACEOF
34198 ac_cs_usage="\
34199 \`$as_me' instantiates files from templates according to the
34200 current configuration.
34201
34202 Usage: $0 [OPTIONS] [FILE]...
34203
34204   -h, --help       print this help, then exit
34205   -V, --version    print version number, then exit
34206   -q, --quiet      do not print progress messages
34207   -d, --debug      don't remove temporary files
34208       --recheck    update $as_me by reconfiguring in the same conditions
34209   --file=FILE[:TEMPLATE]
34210                    instantiate the configuration file FILE
34211   --header=FILE[:TEMPLATE]
34212                    instantiate the configuration header FILE
34213
34214 Configuration files:
34215 $config_files
34216
34217 Configuration headers:
34218 $config_headers
34219
34220 Configuration commands:
34221 $config_commands
34222
34223 Report bugs to <bug-autoconf@gnu.org>."
34224
34225 _ACEOF
34226 cat >>$CONFIG_STATUS <<_ACEOF
34227 ac_cs_version="\\
34228 config.status
34229 configured by $0, generated by GNU Autoconf 2.60,
34230   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34231
34232 Copyright (C) 2006 Free Software Foundation, Inc.
34233 This config.status script is free software; the Free Software Foundation
34234 gives unlimited permission to copy, distribute and modify it."
34235
34236 ac_pwd='$ac_pwd'
34237 srcdir='$srcdir'
34238 INSTALL='$INSTALL'
34239 _ACEOF
34240
34241 cat >>$CONFIG_STATUS <<\_ACEOF
34242 # If no file are specified by the user, then we need to provide default
34243 # value.  By we need to know if files were specified by the user.
34244 ac_need_defaults=:
34245 while test $# != 0
34246 do
34247   case $1 in
34248   --*=*)
34249     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34250     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34251     ac_shift=:
34252     ;;
34253   *)
34254     ac_option=$1
34255     ac_optarg=$2
34256     ac_shift=shift
34257     ;;
34258   esac
34259
34260   case $ac_option in
34261   # Handling of the options.
34262   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34263     ac_cs_recheck=: ;;
34264   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34265     echo "$ac_cs_version"; exit ;;
34266   --debug | --debu | --deb | --de | --d | -d )
34267     debug=: ;;
34268   --file | --fil | --fi | --f )
34269     $ac_shift
34270     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34271     ac_need_defaults=false;;
34272   --header | --heade | --head | --hea )
34273     $ac_shift
34274     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34275     ac_need_defaults=false;;
34276   --he | --h)
34277     # Conflict between --help and --header
34278     { echo "$as_me: error: ambiguous option: $1
34279 Try \`$0 --help' for more information." >&2
34280    { (exit 1); exit 1; }; };;
34281   --help | --hel | -h )
34282     echo "$ac_cs_usage"; exit ;;
34283   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34284   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34285     ac_cs_silent=: ;;
34286
34287   # This is an error.
34288   -*) { echo "$as_me: error: unrecognized option: $1
34289 Try \`$0 --help' for more information." >&2
34290    { (exit 1); exit 1; }; } ;;
34291
34292   *) ac_config_targets="$ac_config_targets $1"
34293      ac_need_defaults=false ;;
34294
34295   esac
34296   shift
34297 done
34298
34299 ac_configure_extra_args=
34300
34301 if $ac_cs_silent; then
34302   exec 6>/dev/null
34303   ac_configure_extra_args="$ac_configure_extra_args --silent"
34304 fi
34305
34306 _ACEOF
34307 cat >>$CONFIG_STATUS <<_ACEOF
34308 if \$ac_cs_recheck; then
34309   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34310   CONFIG_SHELL=$SHELL
34311   export CONFIG_SHELL
34312   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34313 fi
34314
34315 _ACEOF
34316 cat >>$CONFIG_STATUS <<\_ACEOF
34317 exec 5>>config.log
34318 {
34319   echo
34320   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34321 ## Running $as_me. ##
34322 _ASBOX
34323   echo "$ac_log"
34324 } >&5
34325
34326 _ACEOF
34327 cat >>$CONFIG_STATUS <<_ACEOF
34328 #
34329 # INIT-COMMANDS
34330 #
34331 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34332     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34333     # from automake.
34334     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34335     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34336     LINGUAS="${LINGUAS-%UNSET%}"
34337
34338
34339 _ACEOF
34340
34341 cat >>$CONFIG_STATUS <<\_ACEOF
34342
34343 # Handling of arguments.
34344 for ac_config_target in $ac_config_targets
34345 do
34346   case $ac_config_target in
34347     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34348     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34349     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34350     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34351     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34352     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34353     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34354     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34355     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34356     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34357     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34358     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34359     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34360     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34361     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34362     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34363     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34364     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34365     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34366     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34367     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34368     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34369     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34370     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34371     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34372     "scripts/gnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
34373     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34374     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34375     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34376     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34377     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34378     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34379     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34380     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34381     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34382     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34383     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34384     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34385     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34386     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34387     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34388     "src/gnome2-console/gnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
34389     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34390     "src/wx-console/wx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
34391     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34392     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34393     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34394     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34395     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34396     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34397     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34398     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34399     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34400     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34401     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34402     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34403     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34404     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34405     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34406     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34407     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34408     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34409     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34410     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34411     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34412     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34413     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34414     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34415     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34416     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34417     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34418     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34419     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34420     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34421     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34422     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34423     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34424     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34425     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34426     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34427     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34428     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34429     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34430     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34431     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34432     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34433     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34434     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34435     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34436     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34437     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34438     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34439     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34440     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34441     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34442     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34443     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34444     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34445     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34446
34447   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34448 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34449    { (exit 1); exit 1; }; };;
34450   esac
34451 done
34452
34453
34454 # If the user did not use the arguments to specify the items to instantiate,
34455 # then the envvar interface is used.  Set only those that are not.
34456 # We use the long form for the default assignment because of an extremely
34457 # bizarre bug on SunOS 4.1.3.
34458 if $ac_need_defaults; then
34459   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34460   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34461   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34462 fi
34463
34464 # Have a temporary directory for convenience.  Make it in the build tree
34465 # simply because there is no reason against having it here, and in addition,
34466 # creating and moving files from /tmp can sometimes cause problems.
34467 # Hook for its removal unless debugging.
34468 # Note that there is a small window in which the directory will not be cleaned:
34469 # after its creation but before its name has been assigned to `$tmp'.
34470 $debug ||
34471 {
34472   tmp=
34473   trap 'exit_status=$?
34474   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34475 ' 0
34476   trap '{ (exit 1); exit 1; }' 1 2 13 15
34477 }
34478 # Create a (secure) tmp directory for tmp files.
34479
34480 {
34481   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34482   test -n "$tmp" && test -d "$tmp"
34483 }  ||
34484 {
34485   tmp=./conf$$-$RANDOM
34486   (umask 077 && mkdir "$tmp")
34487 } ||
34488 {
34489    echo "$me: cannot create a temporary directory in ." >&2
34490    { (exit 1); exit 1; }
34491 }
34492
34493 #
34494 # Set up the sed scripts for CONFIG_FILES section.
34495 #
34496
34497 # No need to generate the scripts if there are no CONFIG_FILES.
34498 # This happens for instance when ./config.status config.h
34499 if test -n "$CONFIG_FILES"; then
34500
34501 _ACEOF
34502
34503 # Create sed commands to just substitute file output variables.
34504
34505 # Remaining file output variables are in a fragment that also has non-file
34506 # output varibles.
34507
34508
34509
34510 ac_delim='%!_!# '
34511 for ac_last_try in false false false false false :; do
34512   cat >conf$$subs.sed <<_ACEOF
34513 SHELL!$SHELL$ac_delim
34514 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34515 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34516 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34517 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34518 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34519 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34520 exec_prefix!$exec_prefix$ac_delim
34521 prefix!$prefix$ac_delim
34522 program_transform_name!$program_transform_name$ac_delim
34523 bindir!$bindir$ac_delim
34524 sbindir!$sbindir$ac_delim
34525 libexecdir!$libexecdir$ac_delim
34526 datarootdir!$datarootdir$ac_delim
34527 datadir!$datadir$ac_delim
34528 sysconfdir!$sysconfdir$ac_delim
34529 sharedstatedir!$sharedstatedir$ac_delim
34530 localstatedir!$localstatedir$ac_delim
34531 includedir!$includedir$ac_delim
34532 oldincludedir!$oldincludedir$ac_delim
34533 docdir!$docdir$ac_delim
34534 infodir!$infodir$ac_delim
34535 htmldir!$htmldir$ac_delim
34536 dvidir!$dvidir$ac_delim
34537 pdfdir!$pdfdir$ac_delim
34538 psdir!$psdir$ac_delim
34539 libdir!$libdir$ac_delim
34540 localedir!$localedir$ac_delim
34541 mandir!$mandir$ac_delim
34542 DEFS!$DEFS$ac_delim
34543 ECHO_C!$ECHO_C$ac_delim
34544 ECHO_N!$ECHO_N$ac_delim
34545 ECHO_T!$ECHO_T$ac_delim
34546 LIBS!$LIBS$ac_delim
34547 build_alias!$build_alias$ac_delim
34548 host_alias!$host_alias$ac_delim
34549 target_alias!$target_alias$ac_delim
34550 BUILD_DIR!$BUILD_DIR$ac_delim
34551 TOP_DIR!$TOP_DIR$ac_delim
34552 TRUEPRG!$TRUEPRG$ac_delim
34553 FALSEPRG!$FALSEPRG$ac_delim
34554 VERSION!$VERSION$ac_delim
34555 DATE!$DATE$ac_delim
34556 LSMDATE!$LSMDATE$ac_delim
34557 CC!$CC$ac_delim
34558 CFLAGS!$CFLAGS$ac_delim
34559 LDFLAGS!$LDFLAGS$ac_delim
34560 CPPFLAGS!$CPPFLAGS$ac_delim
34561 ac_ct_CC!$ac_ct_CC$ac_delim
34562 EXEEXT!$EXEEXT$ac_delim
34563 OBJEXT!$OBJEXT$ac_delim
34564 CXX!$CXX$ac_delim
34565 CXXFLAGS!$CXXFLAGS$ac_delim
34566 ac_ct_CXX!$ac_ct_CXX$ac_delim
34567 CPP!$CPP$ac_delim
34568 GREP!$GREP$ac_delim
34569 EGREP!$EGREP$ac_delim
34570 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34571 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34572 INSTALL_DATA!$INSTALL_DATA$ac_delim
34573 RANLIB!$RANLIB$ac_delim
34574 MV!$MV$ac_delim
34575 RM!$RM$ac_delim
34576 CP!$CP$ac_delim
34577 SED!$SED$ac_delim
34578 ECHO!$ECHO$ac_delim
34579 CMP!$CMP$ac_delim
34580 TBL!$TBL$ac_delim
34581 AR!$AR$ac_delim
34582 OPENSSL!$OPENSSL$ac_delim
34583 MTX!$MTX$ac_delim
34584 DD!$DD$ac_delim
34585 MKISOFS!$MKISOFS$ac_delim
34586 PYTHON!$PYTHON$ac_delim
34587 GROWISOFS!$GROWISOFS$ac_delim
34588 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34589 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34590 PKGCONFIG!$PKGCONFIG$ac_delim
34591 WXCONFIG!$WXCONFIG$ac_delim
34592 WXFLAGS!$WXFLAGS$ac_delim
34593 CDRECORD!$CDRECORD$ac_delim
34594 PIDOF!$PIDOF$ac_delim
34595 AWK!$AWK$ac_delim
34596 ARFLAGS!$ARFLAGS$ac_delim
34597 MAKE_SHELL!$MAKE_SHELL$ac_delim
34598 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34599 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34600 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34601 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34602 build!$build$ac_delim
34603 build_cpu!$build_cpu$ac_delim
34604 build_vendor!$build_vendor$ac_delim
34605 build_os!$build_os$ac_delim
34606 host!$host$ac_delim
34607 _ACEOF
34608
34609   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34610     break
34611   elif $ac_last_try; then
34612     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34613 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34614    { (exit 1); exit 1; }; }
34615   else
34616     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34617   fi
34618 done
34619
34620 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34621 if test -n "$ac_eof"; then
34622   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34623   ac_eof=`expr $ac_eof + 1`
34624 fi
34625
34626 cat >>$CONFIG_STATUS <<_ACEOF
34627 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34628 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34629 /^[      ]*@MCOMMON@[    ]*$/{
34630 r $MCOMMON
34631 d
34632 }
34633 _ACEOF
34634 sed '
34635 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34636 s/^/s,@/; s/!/@,|#_!!_#|/
34637 :n
34638 t n
34639 s/'"$ac_delim"'$/,g/; t
34640 s/$/\\/; p
34641 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34642 ' >>$CONFIG_STATUS <conf$$subs.sed
34643 rm -f conf$$subs.sed
34644 cat >>$CONFIG_STATUS <<_ACEOF
34645 CEOF$ac_eof
34646 _ACEOF
34647
34648
34649 ac_delim='%!_!# '
34650 for ac_last_try in false false false false false :; do
34651   cat >conf$$subs.sed <<_ACEOF
34652 host_cpu!$host_cpu$ac_delim
34653 host_vendor!$host_vendor$ac_delim
34654 host_os!$host_os$ac_delim
34655 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34656 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34657 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34658 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34659 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34660 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34661 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34662 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34663 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34664 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34665 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34666 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34667 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34668 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34669 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34670 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34671 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34672 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34673 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34674 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34675 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34676 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34677 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34678 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34679 SET_MAKE!$SET_MAKE$ac_delim
34680 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34681 USE_NLS!$USE_NLS$ac_delim
34682 MSGFMT!$MSGFMT$ac_delim
34683 GMSGFMT!$GMSGFMT$ac_delim
34684 XGETTEXT!$XGETTEXT$ac_delim
34685 MSGMERGE!$MSGMERGE$ac_delim
34686 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34687 LIBICONV!$LIBICONV$ac_delim
34688 LTLIBICONV!$LTLIBICONV$ac_delim
34689 INTLLIBS!$INTLLIBS$ac_delim
34690 LIBINTL!$LIBINTL$ac_delim
34691 LTLIBINTL!$LTLIBINTL$ac_delim
34692 POSUB!$POSUB$ac_delim
34693 GLIBC2!$GLIBC2$ac_delim
34694 ALLOCA!$ALLOCA$ac_delim
34695 GLIBC21!$GLIBC21$ac_delim
34696 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34697 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34698 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34699 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34700 INTLBISON!$INTLBISON$ac_delim
34701 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34702 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34703 CATOBJEXT!$CATOBJEXT$ac_delim
34704 DATADIRNAME!$DATADIRNAME$ac_delim
34705 INSTOBJEXT!$INSTOBJEXT$ac_delim
34706 GENCAT!$GENCAT$ac_delim
34707 INTLOBJS!$INTLOBJS$ac_delim
34708 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34709 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34710 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34711 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34712 GNOME_LIBS!$GNOME_LIBS$ac_delim
34713 GNOME_DIR!$GNOME_DIR$ac_delim
34714 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34715 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34716 WX_DIR!$WX_DIR$ac_delim
34717 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34718 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34719 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34720 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34721 STATIC_FD!$STATIC_FD$ac_delim
34722 STATIC_SD!$STATIC_SD$ac_delim
34723 STATIC_DIR!$STATIC_DIR$ac_delim
34724 STATIC_CONS!$STATIC_CONS$ac_delim
34725 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34726 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34727 ALL_DIRS!$ALL_DIRS$ac_delim
34728 DIRD_DIR!$DIRD_DIR$ac_delim
34729 DIR_TOOLS!$DIR_TOOLS$ac_delim
34730 STORED_DIR!$STORED_DIR$ac_delim
34731 CONS_INC!$CONS_INC$ac_delim
34732 CONS_OBJ!$CONS_OBJ$ac_delim
34733 CONS_SRC!$CONS_SRC$ac_delim
34734 CONS_LIBS!$CONS_LIBS$ac_delim
34735 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34736 READLINE_SRC!$READLINE_SRC$ac_delim
34737 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34738 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34739 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34740 OPENSSL_INC!$OPENSSL_INC$ac_delim
34741 working_dir!$working_dir$ac_delim
34742 scriptdir!$scriptdir$ac_delim
34743 dump_email!$dump_email$ac_delim
34744 job_email!$job_email$ac_delim
34745 smtp_host!$smtp_host$ac_delim
34746 piddir!$piddir$ac_delim
34747 subsysdir!$subsysdir$ac_delim
34748 baseport!$baseport$ac_delim
34749 _ACEOF
34750
34751   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34752     break
34753   elif $ac_last_try; then
34754     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34755 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34756    { (exit 1); exit 1; }; }
34757   else
34758     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34759   fi
34760 done
34761
34762 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34763 if test -n "$ac_eof"; then
34764   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34765   ac_eof=`expr $ac_eof + 1`
34766 fi
34767
34768 cat >>$CONFIG_STATUS <<_ACEOF
34769 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34770 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34771 _ACEOF
34772 sed '
34773 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34774 s/^/s,@/; s/!/@,|#_!!_#|/
34775 :n
34776 t n
34777 s/'"$ac_delim"'$/,g/; t
34778 s/$/\\/; p
34779 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34780 ' >>$CONFIG_STATUS <conf$$subs.sed
34781 rm -f conf$$subs.sed
34782 cat >>$CONFIG_STATUS <<_ACEOF
34783 CEOF$ac_eof
34784 _ACEOF
34785
34786
34787 ac_delim='%!_!# '
34788 for ac_last_try in false false false false false :; do
34789   cat >conf$$subs.sed <<_ACEOF
34790 dir_port!$dir_port$ac_delim
34791 fd_port!$fd_port$ac_delim
34792 sd_port!$sd_port$ac_delim
34793 dir_password!$dir_password$ac_delim
34794 fd_password!$fd_password$ac_delim
34795 sd_password!$sd_password$ac_delim
34796 mon_dir_password!$mon_dir_password$ac_delim
34797 mon_fd_password!$mon_fd_password$ac_delim
34798 mon_sd_password!$mon_sd_password$ac_delim
34799 dir_user!$dir_user$ac_delim
34800 dir_group!$dir_group$ac_delim
34801 sd_user!$sd_user$ac_delim
34802 sd_group!$sd_group$ac_delim
34803 fd_user!$fd_user$ac_delim
34804 fd_group!$fd_group$ac_delim
34805 SBINPERM!$SBINPERM$ac_delim
34806 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
34807 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
34808 SQL_BINDIR!$SQL_BINDIR$ac_delim
34809 cats!$cats$ac_delim
34810 DB_NAME!$DB_NAME$ac_delim
34811 GETCONF!$GETCONF$ac_delim
34812 XMKMF!$XMKMF$ac_delim
34813 X_CFLAGS!$X_CFLAGS$ac_delim
34814 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34815 X_LIBS!$X_LIBS$ac_delim
34816 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34817 LIBOBJS!$LIBOBJS$ac_delim
34818 FDLIBS!$FDLIBS$ac_delim
34819 DEBUG!$DEBUG$ac_delim
34820 DINCLUDE!$DINCLUDE$ac_delim
34821 DLIB!$DLIB$ac_delim
34822 DB_LIBS!$DB_LIBS$ac_delim
34823 WCFLAGS!$WCFLAGS$ac_delim
34824 WLDFLAGS!$WLDFLAGS$ac_delim
34825 WRAPLIBS!$WRAPLIBS$ac_delim
34826 OBJLIST!$OBJLIST$ac_delim
34827 hostname!$hostname$ac_delim
34828 TAPEDRIVE!$TAPEDRIVE$ac_delim
34829 PSCMD!$PSCMD$ac_delim
34830 WIN32!$WIN32$ac_delim
34831 MACOSX!$MACOSX$ac_delim
34832 DISTNAME!$DISTNAME$ac_delim
34833 DISTVER!$DISTVER$ac_delim
34834 LTLIBOBJS!$LTLIBOBJS$ac_delim
34835 _ACEOF
34836
34837   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 45; then
34838     break
34839   elif $ac_last_try; then
34840     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34841 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34842    { (exit 1); exit 1; }; }
34843   else
34844     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34845   fi
34846 done
34847
34848 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34849 if test -n "$ac_eof"; then
34850   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34851   ac_eof=`expr $ac_eof + 1`
34852 fi
34853
34854 cat >>$CONFIG_STATUS <<_ACEOF
34855 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34857 _ACEOF
34858 sed '
34859 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34860 s/^/s,@/; s/!/@,|#_!!_#|/
34861 :n
34862 t n
34863 s/'"$ac_delim"'$/,g/; t
34864 s/$/\\/; p
34865 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34866 ' >>$CONFIG_STATUS <conf$$subs.sed
34867 rm -f conf$$subs.sed
34868 cat >>$CONFIG_STATUS <<_ACEOF
34869 :end
34870 s/|#_!!_#|//g
34871 CEOF$ac_eof
34872 _ACEOF
34873
34874
34875 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34876 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34877 # trailing colons and then remove the whole line if VPATH becomes empty
34878 # (actually we leave an empty line to preserve line numbers).
34879 if test "x$srcdir" = x.; then
34880   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34881 s/:*\$(srcdir):*/:/
34882 s/:*\${srcdir}:*/:/
34883 s/:*@srcdir@:*/:/
34884 s/^\([^=]*=[     ]*\):*/\1/
34885 s/:*$//
34886 s/^[^=]*=[       ]*$//
34887 }'
34888 fi
34889
34890 cat >>$CONFIG_STATUS <<\_ACEOF
34891 fi # test -n "$CONFIG_FILES"
34892
34893
34894 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34895 do
34896   case $ac_tag in
34897   :[FHLC]) ac_mode=$ac_tag; continue;;
34898   esac
34899   case $ac_mode$ac_tag in
34900   :[FHL]*:*);;
34901   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34902 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34903    { (exit 1); exit 1; }; };;
34904   :[FH]-) ac_tag=-:-;;
34905   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34906   esac
34907   ac_save_IFS=$IFS
34908   IFS=:
34909   set x $ac_tag
34910   IFS=$ac_save_IFS
34911   shift
34912   ac_file=$1
34913   shift
34914
34915   case $ac_mode in
34916   :L) ac_source=$1;;
34917   :[FH])
34918     ac_file_inputs=
34919     for ac_f
34920     do
34921       case $ac_f in
34922       -) ac_f="$tmp/stdin";;
34923       *) # Look for the file first in the build tree, then in the source tree
34924          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34925          # because $ac_f cannot contain `:'.
34926          test -f "$ac_f" ||
34927            case $ac_f in
34928            [\\/$]*) false;;
34929            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34930            esac ||
34931            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34932 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34933    { (exit 1); exit 1; }; };;
34934       esac
34935       ac_file_inputs="$ac_file_inputs $ac_f"
34936     done
34937
34938     # Let's still pretend it is `configure' which instantiates (i.e., don't
34939     # use $as_me), people would be surprised to read:
34940     #    /* config.h.  Generated by config.status.  */
34941     configure_input="Generated from "`IFS=:
34942           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34943     if test x"$ac_file" != x-; then
34944       configure_input="$ac_file.  $configure_input"
34945       { echo "$as_me:$LINENO: creating $ac_file" >&5
34946 echo "$as_me: creating $ac_file" >&6;}
34947     fi
34948
34949     case $ac_tag in
34950     *:-:* | *:-) cat >"$tmp/stdin";;
34951     esac
34952     ;;
34953   esac
34954
34955   ac_dir=`$as_dirname -- "$ac_file" ||
34956 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34957          X"$ac_file" : 'X\(//\)[^/]' \| \
34958          X"$ac_file" : 'X\(//\)$' \| \
34959          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34960 echo X"$ac_file" |
34961     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34962             s//\1/
34963             q
34964           }
34965           /^X\(\/\/\)[^/].*/{
34966             s//\1/
34967             q
34968           }
34969           /^X\(\/\/\)$/{
34970             s//\1/
34971             q
34972           }
34973           /^X\(\/\).*/{
34974             s//\1/
34975             q
34976           }
34977           s/.*/./; q'`
34978   { as_dir="$ac_dir"
34979   case $as_dir in #(
34980   -*) as_dir=./$as_dir;;
34981   esac
34982   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34983     as_dirs=
34984     while :; do
34985       case $as_dir in #(
34986       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34987       *) as_qdir=$as_dir;;
34988       esac
34989       as_dirs="'$as_qdir' $as_dirs"
34990       as_dir=`$as_dirname -- "$as_dir" ||
34991 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34992          X"$as_dir" : 'X\(//\)[^/]' \| \
34993          X"$as_dir" : 'X\(//\)$' \| \
34994          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34995 echo X"$as_dir" |
34996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34997             s//\1/
34998             q
34999           }
35000           /^X\(\/\/\)[^/].*/{
35001             s//\1/
35002             q
35003           }
35004           /^X\(\/\/\)$/{
35005             s//\1/
35006             q
35007           }
35008           /^X\(\/\).*/{
35009             s//\1/
35010             q
35011           }
35012           s/.*/./; q'`
35013       test -d "$as_dir" && break
35014     done
35015     test -z "$as_dirs" || eval "mkdir $as_dirs"
35016   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35017 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35018    { (exit 1); exit 1; }; }; }
35019   ac_builddir=.
35020
35021 case "$ac_dir" in
35022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35023 *)
35024   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35025   # A ".." for each directory in $ac_dir_suffix.
35026   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35027   case $ac_top_builddir_sub in
35028   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35029   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35030   esac ;;
35031 esac
35032 ac_abs_top_builddir=$ac_pwd
35033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35034 # for backward compatibility:
35035 ac_top_builddir=$ac_top_build_prefix
35036
35037 case $srcdir in
35038   .)  # We are building in place.
35039     ac_srcdir=.
35040     ac_top_srcdir=$ac_top_builddir_sub
35041     ac_abs_top_srcdir=$ac_pwd ;;
35042   [\\/]* | ?:[\\/]* )  # Absolute name.
35043     ac_srcdir=$srcdir$ac_dir_suffix;
35044     ac_top_srcdir=$srcdir
35045     ac_abs_top_srcdir=$srcdir ;;
35046   *) # Relative name.
35047     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35048     ac_top_srcdir=$ac_top_build_prefix$srcdir
35049     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35050 esac
35051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35052
35053
35054   case $ac_mode in
35055   :F)
35056   #
35057   # CONFIG_FILE
35058   #
35059
35060   case $INSTALL in
35061   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35062   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35063   esac
35064 _ACEOF
35065
35066 cat >>$CONFIG_STATUS <<\_ACEOF
35067 # If the template does not know about datarootdir, expand it.
35068 # FIXME: This hack should be removed a few years after 2.60.
35069 ac_datarootdir_hack=; ac_datarootdir_seen=
35070
35071 case `sed -n '/datarootdir/ {
35072   p
35073   q
35074 }
35075 /@datadir@/p
35076 /@docdir@/p
35077 /@infodir@/p
35078 /@localedir@/p
35079 /@mandir@/p
35080 ' $ac_file_inputs` in
35081 *datarootdir*) ac_datarootdir_seen=yes;;
35082 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35083   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35084 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35085 _ACEOF
35086 cat >>$CONFIG_STATUS <<_ACEOF
35087   ac_datarootdir_hack='
35088   s&@datadir@&$datadir&g
35089   s&@docdir@&$docdir&g
35090   s&@infodir@&$infodir&g
35091   s&@localedir@&$localedir&g
35092   s&@mandir@&$mandir&g
35093     s&\\\${datarootdir}&$datarootdir&g' ;;
35094 esac
35095 _ACEOF
35096
35097 # Neutralize VPATH when `$srcdir' = `.'.
35098 # Shell code in configure.ac might set extrasub.
35099 # FIXME: do we really want to maintain this feature?
35100 cat >>$CONFIG_STATUS <<_ACEOF
35101   sed "$ac_vpsub
35102 $extrasub
35103 _ACEOF
35104 cat >>$CONFIG_STATUS <<\_ACEOF
35105 :t
35106 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35107 s&@configure_input@&$configure_input&;t t
35108 s&@top_builddir@&$ac_top_builddir_sub&;t t
35109 s&@srcdir@&$ac_srcdir&;t t
35110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35111 s&@top_srcdir@&$ac_top_srcdir&;t t
35112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35113 s&@builddir@&$ac_builddir&;t t
35114 s&@abs_builddir@&$ac_abs_builddir&;t t
35115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35116 s&@INSTALL@&$ac_INSTALL&;t t
35117 $ac_datarootdir_hack
35118 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35119
35120 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35121   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35122   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35123   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35124 which seems to be undefined.  Please make sure it is defined." >&5
35125 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35126 which seems to be undefined.  Please make sure it is defined." >&2;}
35127
35128   rm -f "$tmp/stdin"
35129   case $ac_file in
35130   -) cat "$tmp/out"; rm -f "$tmp/out";;
35131   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35132   esac
35133  ;;
35134   :H)
35135   #
35136   # CONFIG_HEADER
35137   #
35138 _ACEOF
35139
35140 # Transform confdefs.h into a sed script `conftest.defines', that
35141 # substitutes the proper values into config.h.in to produce config.h.
35142 rm -f conftest.defines conftest.tail
35143 # First, append a space to every undef/define line, to ease matching.
35144 echo 's/$/ /' >conftest.defines
35145 # Then, protect against being on the right side of a sed subst, or in
35146 # an unquoted here document, in config.status.  If some macros were
35147 # called several times there might be several #defines for the same
35148 # symbol, which is useless.  But do not sort them, since the last
35149 # AC_DEFINE must be honored.
35150 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35151 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35152 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35153 # PARAMS is the parameter list in the macro definition--in most cases, it's
35154 # just an empty string.
35155 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35156 ac_dB='\\)[      (].*,\\1define\\2'
35157 ac_dC=' '
35158 ac_dD=' ,'
35159
35160 uniq confdefs.h |
35161   sed -n '
35162         t rset
35163         :rset
35164         s/^[     ]*#[    ]*define[       ][      ]*//
35165         t ok
35166         d
35167         :ok
35168         s/[\\&,]/\\&/g
35169         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35170         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35171   ' >>conftest.defines
35172
35173 # Remove the space that was appended to ease matching.
35174 # Then replace #undef with comments.  This is necessary, for
35175 # example, in the case of _POSIX_SOURCE, which is predefined and required
35176 # on some systems where configure will not decide to define it.
35177 # (The regexp can be short, since the line contains either #define or #undef.)
35178 echo 's/ $//
35179 s,^[     #]*u.*,/* & */,' >>conftest.defines
35180
35181 # Break up conftest.defines:
35182 ac_max_sed_lines=50
35183
35184 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35185 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35186 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35187 # et cetera.
35188 ac_in='$ac_file_inputs'
35189 ac_out='"$tmp/out1"'
35190 ac_nxt='"$tmp/out2"'
35191
35192 while :
35193 do
35194   # Write a here document:
35195     cat >>$CONFIG_STATUS <<_ACEOF
35196     # First, check the format of the line:
35197     cat >"\$tmp/defines.sed" <<\\CEOF
35198 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35199 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35200 b
35201 :def
35202 _ACEOF
35203   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35204   echo 'CEOF
35205     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35206   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35207   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35208   grep . conftest.tail >/dev/null || break
35209   rm -f conftest.defines
35210   mv conftest.tail conftest.defines
35211 done
35212 rm -f conftest.defines conftest.tail
35213
35214 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35215 cat >>$CONFIG_STATUS <<\_ACEOF
35216   if test x"$ac_file" != x-; then
35217     echo "/* $configure_input  */" >"$tmp/config.h"
35218     cat "$ac_result" >>"$tmp/config.h"
35219     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35220       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35221 echo "$as_me: $ac_file is unchanged" >&6;}
35222     else
35223       rm -f $ac_file
35224       mv "$tmp/config.h" $ac_file
35225     fi
35226   else
35227     echo "/* $configure_input  */"
35228     cat "$ac_result"
35229   fi
35230   rm -f "$tmp/out12"
35231  ;;
35232
35233   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35234 echo "$as_me: executing $ac_file commands" >&6;}
35235  ;;
35236   esac
35237
35238
35239   case $ac_file$ac_mode in
35240     "default-1":C)
35241     for ac_file in $CONFIG_FILES; do
35242       # Support "outfile[:infile[:infile...]]"
35243       case "$ac_file" in
35244         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35245       esac
35246       # PO directories have a Makefile.in generated from Makefile.in.in.
35247       case "$ac_file" in */Makefile.in)
35248         # Adjust a relative srcdir.
35249         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35250         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35251         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35252         # In autoconf-2.13 it is called $ac_given_srcdir.
35253         # In autoconf-2.50 it is called $srcdir.
35254         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35255         case "$ac_given_srcdir" in
35256           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35257           /*) top_srcdir="$ac_given_srcdir" ;;
35258           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35259         esac
35260         # Treat a directory as a PO directory if and only if it has a
35261         # POTFILES.in file. This allows packages to have multiple PO
35262         # directories under different names or in different locations.
35263         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35264           rm -f "$ac_dir/POTFILES"
35265           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35266           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35267           POMAKEFILEDEPS="POTFILES.in"
35268           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35269           # on $ac_dir but don't depend on user-specified configuration
35270           # parameters.
35271           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35272             # The LINGUAS file contains the set of available languages.
35273             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35274               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35275             fi
35276             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35277             # Hide the ALL_LINGUAS assigment from automake.
35278             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35279             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35280           else
35281             # The set of available languages was given in configure.in.
35282             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35283           fi
35284           # Compute POFILES
35285           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35286           # Compute UPDATEPOFILES
35287           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35288           # Compute DUMMYPOFILES
35289           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35290           # Compute GMOFILES
35291           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35292           case "$ac_given_srcdir" in
35293             .) srcdirpre= ;;
35294             *) srcdirpre='$(srcdir)/' ;;
35295           esac
35296           POFILES=
35297           UPDATEPOFILES=
35298           DUMMYPOFILES=
35299           GMOFILES=
35300           for lang in $ALL_LINGUAS; do
35301             POFILES="$POFILES $srcdirpre$lang.po"
35302             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35303             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35304             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35305           done
35306           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35307           # environment variable.
35308           INST_LINGUAS=
35309           if test -n "$ALL_LINGUAS"; then
35310             for presentlang in $ALL_LINGUAS; do
35311               useit=no
35312               if test "%UNSET%" != "$LINGUAS"; then
35313                 desiredlanguages="$LINGUAS"
35314               else
35315                 desiredlanguages="$ALL_LINGUAS"
35316               fi
35317               for desiredlang in $desiredlanguages; do
35318                 # Use the presentlang catalog if desiredlang is
35319                 #   a. equal to presentlang, or
35320                 #   b. a variant of presentlang (because in this case,
35321                 #      presentlang can be used as a fallback for messages
35322                 #      which are not translated in the desiredlang catalog).
35323                 case "$desiredlang" in
35324                   "$presentlang"*) useit=yes;;
35325                 esac
35326               done
35327               if test $useit = yes; then
35328                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35329               fi
35330             done
35331           fi
35332           CATALOGS=
35333           if test -n "$INST_LINGUAS"; then
35334             for lang in $INST_LINGUAS; do
35335               CATALOGS="$CATALOGS $lang.gmo"
35336             done
35337           fi
35338           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35339           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
35340           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35341             if test -f "$f"; then
35342               case "$f" in
35343                 *.orig | *.bak | *~) ;;
35344                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35345               esac
35346             fi
35347           done
35348         fi
35349         ;;
35350       esac
35351     done ;;
35352     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35353  ;;
35354
35355   esac
35356 done # for ac_tag
35357
35358
35359 { (exit 0); exit 0; }
35360 _ACEOF
35361 chmod +x $CONFIG_STATUS
35362 ac_clean_files=$ac_clean_files_save
35363
35364
35365 # configure is writing to config.log, and then calls config.status.
35366 # config.status does its own redirection, appending to config.log.
35367 # Unfortunately, on DOS this fails, as config.log is still kept open
35368 # by configure, so config.status won't be able to write to it; its
35369 # output is simply discarded.  So we exec the FD to /dev/null,
35370 # effectively closing config.log, so it can be properly (re)opened and
35371 # appended to by config.status.  When coming back to configure, we
35372 # need to make the FD available again.
35373 if test "$no_create" != yes; then
35374   ac_cs_success=:
35375   ac_config_status_args=
35376   test "$silent" = yes &&
35377     ac_config_status_args="$ac_config_status_args --quiet"
35378   exec 5>/dev/null
35379   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35380   exec 5>>config.log
35381   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35382   # would make configure fail if this is the last instruction.
35383   $ac_cs_success || { (exit 1); exit 1; }
35384 fi
35385
35386
35387 cd scripts
35388 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35389 chmod 755 dvd-handler dvd-simulator
35390 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35391 cd ..
35392
35393 c=src/cats
35394
35395 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35396 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35397
35398 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35399 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35400
35401 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35402 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35403
35404 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35405 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35406
35407 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35408 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35409
35410 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35411 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35412
35413 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35414 chmod 755 $c/sqlite
35415 chmod 755 $c/mysql
35416
35417 chmod 755 src/win32/build-depkgs-mingw32
35418
35419 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35420    largefile_support="yes"
35421 fi
35422
35423 #
35424 # A whole lot of hand springs to get the compiler version.
35425 #  This is because gcc changed the output in version 3.0
35426 #
35427 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35428 if test "x${CCVERSION}" = "x" ; then
35429   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35430 fi
35431 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35432 if test x"${CXXVERSION}" = x ; then
35433   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35434 fi
35435
35436 if test "x${subsysdir}" = "x${sbindir}" ; then
35437    echo " "
35438    echo " "
35439    echo "You have set --sbindir and --with-subsys-dir"
35440    echo "  both equal to: ${subsysdir} "
35441    echo "  This is not permitted. Please reconfigure."
35442    echo " "
35443    echo "Aborting configuration ..."
35444    echo " "
35445    echo " "
35446    exit 1
35447 fi
35448
35449 if test "x${db_name}" = "xInternal" ; then
35450    echo " "
35451    echo " "
35452    echo "You have not specified either --enable-client-only or one of the"
35453    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35454    echo "  This is not permitted. Please reconfigure."
35455    echo " "
35456    echo "Aborting the configuration ..."
35457    echo " "
35458    echo " "
35459    exit 1
35460 fi
35461
35462 echo "
35463 Configuration on `date`:
35464
35465   Host:                       $host -- ${DISTNAME} ${DISTVER}
35466   Bacula version:             ${VERSION} (${DATE})
35467   Source code location:       ${srcdir}
35468   Install binaries:           ${sbindir}
35469   Install config files:       ${sysconfdir}
35470   Scripts directory:          ${scriptdir}
35471   Working directory:          ${working_dir}
35472   PID directory:              ${piddir}
35473   Subsys directory:           ${subsysdir}
35474   Man directory:              ${mandir}
35475   Data directory:             ${datadir}
35476   C Compiler:                 ${CC} ${CCVERSION}
35477   C++ Compiler:               ${CXX} ${CXXVERSION}
35478   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35479   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35480   Libraries:                  ${LIBS}
35481   Statically Linked Tools:    ${support_static_tools}
35482   Statically Linked FD:       ${support_static_fd}
35483   Statically Linked SD:       ${support_static_sd}
35484   Statically Linked DIR:      ${support_static_dir}
35485   Statically Linked CONS:     ${support_static_cons}
35486   Database type:              ${db_name}
35487   Database lib:               ${DB_LIBS}
35488
35489   Job Output Email:           ${job_email}
35490   Traceback Email:            ${dump_email}
35491   SMTP Host Address:          ${smtp_host}
35492
35493   Director Port:              ${dir_port}
35494   File daemon Port:           ${fd_port}
35495   Storage daemon Port:        ${sd_port}
35496
35497   Director User:              ${dir_user}
35498   Director Group:             ${dir_group}
35499   Storage Daemon User:        ${sd_user}
35500   Storage DaemonGroup:        ${sd_group}
35501   File Daemon User:           ${fd_user}
35502   File Daemon Group:          ${fd_group}
35503
35504   SQL binaries Directory      ${SQL_BINDIR}
35505
35506   Large file support:         $largefile_support
35507   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35508   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35509   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35510   TLS support:                ${support_tls}
35511   Encryption support:         ${support_crypto}
35512   ZLIB support:               ${have_zlib}
35513   enable-smartalloc:          ${support_smartalloc}
35514   enable-gnome:               ${support_gnome} ${gnome_version}
35515   enable-wx-console:          ${support_wx_console} ${wx_version}
35516   enable-tray-monitor:        ${support_tray_monitor}
35517   client-only:                ${build_client_only}
35518   build-dird:                 ${build_dird}
35519   build-stored:               ${build_stored}
35520   ACL support:                ${have_acl}
35521   Python support:             ${support_python} ${PYTHON_LIBS}
35522
35523   " > config.out
35524
35525 cat config.out