]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
fb139b2f61d5ea2d14a0c4fefe47a015147e677b
[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 BAT_DIR
758 QWT_INC
759 QWT_LDFLAGS
760 WXCONS_CPPFLAGS
761 WXCONS_LDFLAGS
762 WX_DIR
763 TRAY_MONITOR_CPPFLAGS
764 TRAY_MONITOR_LDFLAGS
765 TRAY_MONITOR_DIR
766 TTOOL_LDFLAGS
767 STATIC_FD
768 STATIC_SD
769 STATIC_DIR
770 STATIC_CONS
771 STATIC_GNOME_CONS
772 STATIC_WX_CONS
773 ALL_DIRS
774 DIRD_DIR
775 DIR_TOOLS
776 STORED_DIR
777 CONS_INC
778 CONS_OBJ
779 CONS_SRC
780 CONS_LIBS
781 CONS_LDFLAGS
782 READLINE_SRC
783 PYTHON_LIBS
784 PYTHON_INCDIR
785 OPENSSL_LIBS
786 OPENSSL_INC
787 working_dir
788 scriptdir
789 dump_email
790 job_email
791 smtp_host
792 piddir
793 subsysdir
794 baseport
795 dir_port
796 fd_port
797 sd_port
798 dir_password
799 fd_password
800 sd_password
801 mon_dir_password
802 mon_fd_password
803 mon_sd_password
804 db_name
805 db_user
806 dir_user
807 dir_group
808 sd_user
809 sd_group
810 fd_user
811 fd_group
812 SBINPERM
813 SQL_LFLAGS
814 SQL_INCLUDE
815 SQL_BINDIR
816 cats
817 DB_TYPE
818 GETCONF
819 XMKMF
820 X_CFLAGS
821 X_PRE_LIBS
822 X_LIBS
823 X_EXTRA_LIBS
824 LIBOBJS
825 FDLIBS
826 DEBUG
827 DINCLUDE
828 DLIB
829 DB_LIBS
830 WCFLAGS
831 WLDFLAGS
832 WRAPLIBS
833 OBJLIST
834 hostname
835 TAPEDRIVE
836 PSCMD
837 WIN32
838 MACOSX
839 DISTNAME
840 DISTVER
841 LTLIBOBJS'
842 ac_subst_files='MCOMMON'
843       ac_precious_vars='build_alias
844 host_alias
845 target_alias
846 CC
847 CFLAGS
848 LDFLAGS
849 CPPFLAGS
850 CXX
851 CXXFLAGS
852 CCC
853 CPP
854 WXCONFIG
855 WXFLAGS
856 XMKMF'
857
858
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 # The variables have the same names as the options, with
863 # dashes changed to underlines.
864 cache_file=/dev/null
865 exec_prefix=NONE
866 no_create=
867 no_recursion=
868 prefix=NONE
869 program_prefix=NONE
870 program_suffix=NONE
871 program_transform_name=s,x,x,
872 silent=
873 site=
874 srcdir=
875 verbose=
876 x_includes=NONE
877 x_libraries=NONE
878
879 # Installation directory options.
880 # These are left unexpanded so users can "make install exec_prefix=/foo"
881 # and all the variables that are supposed to be based on exec_prefix
882 # by default will actually change.
883 # Use braces instead of parens because sh, perl, etc. also accept them.
884 # (The list follows the same order as the GNU Coding Standards.)
885 bindir='${exec_prefix}/bin'
886 sbindir='${exec_prefix}/sbin'
887 libexecdir='${exec_prefix}/libexec'
888 datarootdir='${prefix}/share'
889 datadir='${datarootdir}'
890 sysconfdir='${prefix}/etc'
891 sharedstatedir='${prefix}/com'
892 localstatedir='${prefix}/var'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909   # If the previous option needs an argument, assign it.
910   if test -n "$ac_prev"; then
911     eval $ac_prev=\$ac_option
912     ac_prev=
913     continue
914   fi
915
916   case $ac_option in
917   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918   *)    ac_optarg=yes ;;
919   esac
920
921   # Accept the important Cygnus configure options, so we can diagnose typos.
922
923   case $ac_dashdash$ac_option in
924   --)
925     ac_dashdash=yes ;;
926
927   -bindir | --bindir | --bindi | --bind | --bin | --bi)
928     ac_prev=bindir ;;
929   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
930     bindir=$ac_optarg ;;
931
932   -build | --build | --buil | --bui | --bu)
933     ac_prev=build_alias ;;
934   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
935     build_alias=$ac_optarg ;;
936
937   -cache-file | --cache-file | --cache-fil | --cache-fi \
938   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
939     ac_prev=cache_file ;;
940   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
941   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
942     cache_file=$ac_optarg ;;
943
944   --config-cache | -C)
945     cache_file=config.cache ;;
946
947   -datadir | --datadir | --datadi | --datad)
948     ac_prev=datadir ;;
949   -datadir=* | --datadir=* | --datadi=* | --datad=*)
950     datadir=$ac_optarg ;;
951
952   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
953   | --dataroo | --dataro | --datar)
954     ac_prev=datarootdir ;;
955   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
956   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
957     datarootdir=$ac_optarg ;;
958
959   -disable-* | --disable-*)
960     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
961     # Reject names that are not valid shell variable names.
962     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
963       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
964    { (exit 1); exit 1; }; }
965     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
966     eval enable_$ac_feature=no ;;
967
968   -docdir | --docdir | --docdi | --doc | --do)
969     ac_prev=docdir ;;
970   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
971     docdir=$ac_optarg ;;
972
973   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
974     ac_prev=dvidir ;;
975   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
976     dvidir=$ac_optarg ;;
977
978   -enable-* | --enable-*)
979     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
980     # Reject names that are not valid shell variable names.
981     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
982       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983    { (exit 1); exit 1; }; }
984     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
985     eval enable_$ac_feature=\$ac_optarg ;;
986
987   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989   | --exec | --exe | --ex)
990     ac_prev=exec_prefix ;;
991   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993   | --exec=* | --exe=* | --ex=*)
994     exec_prefix=$ac_optarg ;;
995
996   -gas | --gas | --ga | --g)
997     # Obsolete; use --with-gas.
998     with_gas=yes ;;
999
1000   -help | --help | --hel | --he | -h)
1001     ac_init_help=long ;;
1002   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003     ac_init_help=recursive ;;
1004   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005     ac_init_help=short ;;
1006
1007   -host | --host | --hos | --ho)
1008     ac_prev=host_alias ;;
1009   -host=* | --host=* | --hos=* | --ho=*)
1010     host_alias=$ac_optarg ;;
1011
1012   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013     ac_prev=htmldir ;;
1014   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015   | --ht=*)
1016     htmldir=$ac_optarg ;;
1017
1018   -includedir | --includedir | --includedi | --included | --include \
1019   | --includ | --inclu | --incl | --inc)
1020     ac_prev=includedir ;;
1021   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022   | --includ=* | --inclu=* | --incl=* | --inc=*)
1023     includedir=$ac_optarg ;;
1024
1025   -infodir | --infodir | --infodi | --infod | --info | --inf)
1026     ac_prev=infodir ;;
1027   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1028     infodir=$ac_optarg ;;
1029
1030   -libdir | --libdir | --libdi | --libd)
1031     ac_prev=libdir ;;
1032   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1033     libdir=$ac_optarg ;;
1034
1035   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036   | --libexe | --libex | --libe)
1037     ac_prev=libexecdir ;;
1038   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039   | --libexe=* | --libex=* | --libe=*)
1040     libexecdir=$ac_optarg ;;
1041
1042   -localedir | --localedir | --localedi | --localed | --locale)
1043     ac_prev=localedir ;;
1044   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045     localedir=$ac_optarg ;;
1046
1047   -localstatedir | --localstatedir | --localstatedi | --localstated \
1048   | --localstate | --localstat | --localsta | --localst | --locals)
1049     ac_prev=localstatedir ;;
1050   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1051   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1052     localstatedir=$ac_optarg ;;
1053
1054   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055     ac_prev=mandir ;;
1056   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1057     mandir=$ac_optarg ;;
1058
1059   -nfp | --nfp | --nf)
1060     # Obsolete; use --without-fp.
1061     with_fp=no ;;
1062
1063   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1064   | --no-cr | --no-c | -n)
1065     no_create=yes ;;
1066
1067   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069     no_recursion=yes ;;
1070
1071   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073   | --oldin | --oldi | --old | --ol | --o)
1074     ac_prev=oldincludedir ;;
1075   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1078     oldincludedir=$ac_optarg ;;
1079
1080   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081     ac_prev=prefix ;;
1082   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1083     prefix=$ac_optarg ;;
1084
1085   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086   | --program-pre | --program-pr | --program-p)
1087     ac_prev=program_prefix ;;
1088   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1090     program_prefix=$ac_optarg ;;
1091
1092   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093   | --program-suf | --program-su | --program-s)
1094     ac_prev=program_suffix ;;
1095   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1097     program_suffix=$ac_optarg ;;
1098
1099   -program-transform-name | --program-transform-name \
1100   | --program-transform-nam | --program-transform-na \
1101   | --program-transform-n | --program-transform- \
1102   | --program-transform | --program-transfor \
1103   | --program-transfo | --program-transf \
1104   | --program-trans | --program-tran \
1105   | --progr-tra | --program-tr | --program-t)
1106     ac_prev=program_transform_name ;;
1107   -program-transform-name=* | --program-transform-name=* \
1108   | --program-transform-nam=* | --program-transform-na=* \
1109   | --program-transform-n=* | --program-transform-=* \
1110   | --program-transform=* | --program-transfor=* \
1111   | --program-transfo=* | --program-transf=* \
1112   | --program-trans=* | --program-tran=* \
1113   | --progr-tra=* | --program-tr=* | --program-t=*)
1114     program_transform_name=$ac_optarg ;;
1115
1116   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117     ac_prev=pdfdir ;;
1118   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119     pdfdir=$ac_optarg ;;
1120
1121   -psdir | --psdir | --psdi | --psd | --ps)
1122     ac_prev=psdir ;;
1123   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124     psdir=$ac_optarg ;;
1125
1126   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127   | -silent | --silent | --silen | --sile | --sil)
1128     silent=yes ;;
1129
1130   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131     ac_prev=sbindir ;;
1132   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133   | --sbi=* | --sb=*)
1134     sbindir=$ac_optarg ;;
1135
1136   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138   | --sharedst | --shareds | --shared | --share | --shar \
1139   | --sha | --sh)
1140     ac_prev=sharedstatedir ;;
1141   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144   | --sha=* | --sh=*)
1145     sharedstatedir=$ac_optarg ;;
1146
1147   -site | --site | --sit)
1148     ac_prev=site ;;
1149   -site=* | --site=* | --sit=*)
1150     site=$ac_optarg ;;
1151
1152   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153     ac_prev=srcdir ;;
1154   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1155     srcdir=$ac_optarg ;;
1156
1157   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158   | --syscon | --sysco | --sysc | --sys | --sy)
1159     ac_prev=sysconfdir ;;
1160   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1162     sysconfdir=$ac_optarg ;;
1163
1164   -target | --target | --targe | --targ | --tar | --ta | --t)
1165     ac_prev=target_alias ;;
1166   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1167     target_alias=$ac_optarg ;;
1168
1169   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170     verbose=yes ;;
1171
1172   -version | --version | --versio | --versi | --vers | -V)
1173     ac_init_version=: ;;
1174
1175   -with-* | --with-*)
1176     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1177     # Reject names that are not valid shell variable names.
1178     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1179       { echo "$as_me: error: invalid package name: $ac_package" >&2
1180    { (exit 1); exit 1; }; }
1181     ac_package=`echo $ac_package| sed 's/-/_/g'`
1182     eval with_$ac_package=\$ac_optarg ;;
1183
1184   -without-* | --without-*)
1185     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1186     # Reject names that are not valid shell variable names.
1187     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1188       { echo "$as_me: error: invalid package name: $ac_package" >&2
1189    { (exit 1); exit 1; }; }
1190     ac_package=`echo $ac_package | sed 's/-/_/g'`
1191     eval with_$ac_package=no ;;
1192
1193   --x)
1194     # Obsolete; use --with-x.
1195     with_x=yes ;;
1196
1197   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198   | --x-incl | --x-inc | --x-in | --x-i)
1199     ac_prev=x_includes ;;
1200   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1202     x_includes=$ac_optarg ;;
1203
1204   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206     ac_prev=x_libraries ;;
1207   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1209     x_libraries=$ac_optarg ;;
1210
1211   -*) { echo "$as_me: error: unrecognized option: $ac_option
1212 Try \`$0 --help' for more information." >&2
1213    { (exit 1); exit 1; }; }
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221    { (exit 1); exit 1; }; }
1222     eval $ac_envvar=\$ac_optarg
1223     export $ac_envvar ;;
1224
1225   *)
1226     # FIXME: should be removed in autoconf 3.0.
1227     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1228     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1230     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231     ;;
1232
1233   esac
1234 done
1235
1236 if test -n "$ac_prev"; then
1237   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1238   { echo "$as_me: error: missing argument to $ac_option" >&2
1239    { (exit 1); exit 1; }; }
1240 fi
1241
1242 # Be sure to have absolute directory names.
1243 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1244                 datadir sysconfdir sharedstatedir localstatedir includedir \
1245                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1246                 libdir localedir mandir
1247 do
1248   eval ac_val=\$$ac_var
1249   case $ac_val in
1250     [\\/$]* | ?:[\\/]* )  continue;;
1251     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252   esac
1253   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1254    { (exit 1); exit 1; }; }
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266   if test "x$build_alias" = x; then
1267     cross_compiling=maybe
1268     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1269     If a cross compiler is detected then cross compile mode will be used." >&2
1270   elif test "x$build_alias" != "x$host_alias"; then
1271     cross_compiling=yes
1272   fi
1273 fi
1274
1275 ac_tool_prefix=
1276 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1277
1278 test "$silent" = yes && exec 6>/dev/null
1279
1280
1281 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1282 ac_ls_di=`ls -di .` &&
1283 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1284   { echo "$as_me: error: Working directory cannot be determined" >&2
1285    { (exit 1); exit 1; }; }
1286 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1287   { echo "$as_me: error: pwd does not report name of working directory" >&2
1288    { (exit 1); exit 1; }; }
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293   ac_srcdir_defaulted=yes
1294   # Try the directory containing this script, then the parent directory.
1295   ac_confdir=`$as_dirname -- "$0" ||
1296 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297          X"$0" : 'X\(//\)[^/]' \| \
1298          X"$0" : 'X\(//\)$' \| \
1299          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1300 echo X"$0" |
1301     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302             s//\1/
1303             q
1304           }
1305           /^X\(\/\/\)[^/].*/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\/\)$/{
1310             s//\1/
1311             q
1312           }
1313           /^X\(\/\).*/{
1314             s//\1/
1315             q
1316           }
1317           s/.*/./; q'`
1318   srcdir=$ac_confdir
1319   if test ! -r "$srcdir/$ac_unique_file"; then
1320     srcdir=..
1321   fi
1322 else
1323   ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1328    { (exit 1); exit 1; }; }
1329 fi
1330 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1331 ac_abs_confdir=`(
1332         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1333    { (exit 1); exit 1; }; }
1334         pwd)`
1335 # When building in place, set srcdir=.
1336 if test "$ac_abs_confdir" = "$ac_pwd"; then
1337   srcdir=.
1338 fi
1339 # Remove unnecessary trailing slashes from srcdir.
1340 # Double slashes in file names in object file debugging info
1341 # mess up M-x gdb in Emacs.
1342 case $srcdir in
1343 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1344 esac
1345 for ac_var in $ac_precious_vars; do
1346   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_env_${ac_var}_value=\$${ac_var}
1348   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1349   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1350 done
1351
1352 #
1353 # Report the --help message.
1354 #
1355 if test "$ac_init_help" = "long"; then
1356   # Omit some internal or obsolete options to make the list less imposing.
1357   # This message is too long to be a string in the A/UX 3.1 sh.
1358   cat <<_ACEOF
1359 \`configure' configures this package to adapt to many kinds of systems.
1360
1361 Usage: $0 [OPTION]... [VAR=VALUE]...
1362
1363 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1364 VAR=VALUE.  See below for descriptions of some of the useful variables.
1365
1366 Defaults for the options are specified in brackets.
1367
1368 Configuration:
1369   -h, --help              display this help and exit
1370       --help=short        display options specific to this package
1371       --help=recursive    display the short help of all the included packages
1372   -V, --version           display version information and exit
1373   -q, --quiet, --silent   do not print \`checking...' messages
1374       --cache-file=FILE   cache test results in FILE [disabled]
1375   -C, --config-cache      alias for \`--cache-file=config.cache'
1376   -n, --no-create         do not create output files
1377       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1378
1379 Installation directories:
1380   --prefix=PREFIX         install architecture-independent files in PREFIX
1381                           [$ac_default_prefix]
1382   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1383                           [PREFIX]
1384
1385 By default, \`make install' will install all the files in
1386 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1387 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1388 for instance \`--prefix=\$HOME'.
1389
1390 For better control, use the options below.
1391
1392 Fine tuning of the installation directories:
1393   --bindir=DIR           user executables [EPREFIX/bin]
1394   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1395   --libexecdir=DIR       program executables [EPREFIX/libexec]
1396   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1397   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1398   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1399   --libdir=DIR           object code libraries [EPREFIX/lib]
1400   --includedir=DIR       C header files [PREFIX/include]
1401   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1402   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1403   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1404   --infodir=DIR          info documentation [DATAROOTDIR/info]
1405   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1406   --mandir=DIR           man documentation [DATAROOTDIR/man]
1407   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1408   --htmldir=DIR          html documentation [DOCDIR]
1409   --dvidir=DIR           dvi documentation [DOCDIR]
1410   --pdfdir=DIR           pdf documentation [DOCDIR]
1411   --psdir=DIR            ps documentation [DOCDIR]
1412 _ACEOF
1413
1414   cat <<\_ACEOF
1415
1416 X features:
1417   --x-includes=DIR    X include files are in DIR
1418   --x-libraries=DIR   X library files are in DIR
1419
1420 System types:
1421   --build=BUILD     configure for building on BUILD [guessed]
1422   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427
1428   cat <<\_ACEOF
1429
1430 Optional Features:
1431   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1432   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1433   --disable-nls           do not use Native Language Support
1434   --disable-rpath         do not hardcode runtime library paths
1435   --enable-gnome          enable build of bgnome-console GUI disabled
1436   --enable-bat  enable build of bat Qt4 GUI disabled
1437   --enable-bwx-console     enable build of wxWidgets console disabled
1438   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1439   --enable-smartalloc     enable smartalloc debugging support disabled
1440   --enable-static-tools   enable static tape tools disabled
1441   --enable-static-fd      enable static File daemon disabled
1442   --enable-static-sd      enable static Storage daemon disabled
1443   --enable-static-dir     enable static Director disabled
1444   --enable-static-cons    enable static Console disabled
1445   --enable-client-only    build client (File daemon) only disabled
1446   --enable-build-dird     enable building of dird (Director) enabled
1447   --enable-build-stored   enable building of stored (Storage daemon) enabled
1448  --disable-conio disable conio support enabled
1449
1450   --enable-ipv6             enable ipv6 support enabled
1451
1452   --disable-readline      disable readline support disable
1453
1454         --enable-batch-insert       enable the DB batch insert code disabled
1455   --disable-largefile     omit support for large files
1456
1457 Optional Packages:
1458   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1459   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1460   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1461   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1462   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1463   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1464   --without-libintl-prefix     don't search for libintl in includedir and libdir
1465   --with-included-gettext use the GNU gettext library included here
1466  --with-qwt[=DIR]                 specify qwt library directory
1467  --with-readline[=DIR]         specify readline library directory
1468
1469   --with-python[=DIR]   Include Python support.  DIR is the Python base
1470                           install directory, default is to search through
1471                           a number of common places for the Python files.
1472   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1473   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1474   --with-working-dir=PATH        specify path of Bacula working directory
1475   --with-scriptdir=PATH    specify path of Bacula scripts directory
1476   --with-dump-email=EMAIL        dump email address
1477   --with-job-email=EMAIL         job output email address
1478   --with-smtp-host=HOST          SMTP mail host address
1479   --with-pid-dir=PATH            specify location of Bacula pid files
1480   --with-subsys-dir=PATH         specify location of Bacula subsys file
1481   --with-baseport=PORT           specify base port address for daemons
1482   --with-dir-password=PASSWORD   specify Director's password
1483   --with-fd-password=PASSWORD    specify Client's password
1484   --with-sd-password=PASSWORD    specify Storage daemon's password
1485   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1486   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1487   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1488   --with-db-name=DBNAME        specify database name (default bacula)
1489   --with-db-user=UNAME         specify database user (default bacula)
1490   --with-dir-user=USER           specify user for Director daemon
1491   --with-dir-group=GROUP                 specify group for Director daemon
1492   --with-sd-user=USER            specify user for Storage daemon
1493   --with-sd-group=GROUP          specify group for Storage daemon
1494   --with-fd-user=USER            specify user for File daemon
1495   --with-fd-group=GROUP          specify group for File daemon
1496   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1497   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1498                           base install directory, defaults to /usr/local/pgsql
1499
1500   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1501                           install directory, default is to search through
1502                           a number of common places for the MySQL files.
1503
1504   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1505                           install directory, default is to search through
1506                           a number of common places for the MySQL files.
1507
1508   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1509                           install directory, default is to search through
1510                           a number of common places for the SQLite3 files.
1511
1512   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1513                           install directory, default is to search through
1514                           a number of common places for the SQLite files.
1515   --with-x                use the X Window System
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523               you have headers in a nonstandard directory <include dir>
1524   CXX         C++ compiler command
1525   CXXFLAGS    C++ compiler flags
1526   CPP         C preprocessor
1527   WXCONFIG    wx-config command. On some systems, you must set it to
1528               wx-config-2.6 to use wxWidgets 2.6.
1529   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1530   XMKMF       Path to xmkmf, Makefile generator for X Window System
1531
1532 Use these variables to override the choices made by `configure' or to help
1533 it to find libraries and programs with nonstandard names/locations.
1534
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540   # If there are subdirs, report their specific --help.
1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542     test -d "$ac_dir" || continue
1543     ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1549   # A ".." for each directory in $ac_dir_suffix.
1550   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1551   case $ac_top_builddir_sub in
1552   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554   esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562   .)  # We are building in place.
1563     ac_srcdir=.
1564     ac_top_srcdir=$ac_top_builddir_sub
1565     ac_abs_top_srcdir=$ac_pwd ;;
1566   [\\/]* | ?:[\\/]* )  # Absolute name.
1567     ac_srcdir=$srcdir$ac_dir_suffix;
1568     ac_top_srcdir=$srcdir
1569     ac_abs_top_srcdir=$srcdir ;;
1570   *) # Relative name.
1571     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572     ac_top_srcdir=$ac_top_build_prefix$srcdir
1573     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577     cd "$ac_dir" || { ac_status=$?; continue; }
1578     # Check for guested configure.
1579     if test -f "$ac_srcdir/configure.gnu"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582     elif test -f "$ac_srcdir/configure"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure" --help=recursive
1585     else
1586       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587     fi || ac_status=$?
1588     cd "$ac_pwd" || { ac_status=$?; break; }
1589   done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594   cat <<\_ACEOF
1595 configure
1596 generated by GNU Autoconf 2.60
1597
1598 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1599 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1600 This configure script is free software; the Free Software Foundation
1601 gives unlimited permission to copy, distribute and modify it.
1602 _ACEOF
1603   exit
1604 fi
1605 cat >config.log <<_ACEOF
1606 This file contains any messages produced by compilers while
1607 running configure, to aid debugging if configure makes a mistake.
1608
1609 It was created by $as_me, which was
1610 generated by GNU Autoconf 2.60.  Invocation command line was
1611
1612   $ $0 $@
1613
1614 _ACEOF
1615 exec 5>>config.log
1616 {
1617 cat <<_ASUNAME
1618 ## --------- ##
1619 ## Platform. ##
1620 ## --------- ##
1621
1622 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1623 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1624 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1625 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1626 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627
1628 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1629 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1630
1631 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1632 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1633 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1634 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1635 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1636 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1637 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1638
1639 _ASUNAME
1640
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644   IFS=$as_save_IFS
1645   test -z "$as_dir" && as_dir=.
1646   echo "PATH: $as_dir"
1647 done
1648 IFS=$as_save_IFS
1649
1650 } >&5
1651
1652 cat >&5 <<_ACEOF
1653
1654
1655 ## ----------- ##
1656 ## Core tests. ##
1657 ## ----------- ##
1658
1659 _ACEOF
1660
1661
1662 # Keep a trace of the command line.
1663 # Strip out --no-create and --no-recursion so they do not pile up.
1664 # Strip out --silent because we don't want to record it for future runs.
1665 # Also quote any args containing shell meta-characters.
1666 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_configure_args=
1668 ac_configure_args0=
1669 ac_configure_args1=
1670 ac_must_keep_next=false
1671 for ac_pass in 1 2
1672 do
1673   for ac_arg
1674   do
1675     case $ac_arg in
1676     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1677     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1678     | -silent | --silent | --silen | --sile | --sil)
1679       continue ;;
1680     *\'*)
1681       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1682     esac
1683     case $ac_pass in
1684     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685     2)
1686       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1687       if test $ac_must_keep_next = true; then
1688         ac_must_keep_next=false # Got value, back to normal.
1689       else
1690         case $ac_arg in
1691           *=* | --config-cache | -C | -disable-* | --disable-* \
1692           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1693           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1694           | -with-* | --with-* | -without-* | --without-* | --x)
1695             case "$ac_configure_args0 " in
1696               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1697             esac
1698             ;;
1699           -* ) ac_must_keep_next=true ;;
1700         esac
1701       fi
1702       ac_configure_args="$ac_configure_args '$ac_arg'"
1703       ;;
1704     esac
1705   done
1706 done
1707 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1708 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709
1710 # When interrupted or exit'd, cleanup temporary files, and complete
1711 # config.log.  We remove comments because anyway the quotes in there
1712 # would cause problems or look ugly.
1713 # WARNING: Use '\'' to represent an apostrophe within the trap.
1714 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1715 trap 'exit_status=$?
1716   # Save into config.log some information that might help in debugging.
1717   {
1718     echo
1719
1720     cat <<\_ASBOX
1721 ## ---------------- ##
1722 ## Cache variables. ##
1723 ## ---------------- ##
1724 _ASBOX
1725     echo
1726     # The following way of writing the cache mishandles newlines in values,
1727 (
1728   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1729     eval ac_val=\$$ac_var
1730     case $ac_val in #(
1731     *${as_nl}*)
1732       case $ac_var in #(
1733       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1734 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1735       esac
1736       case $ac_var in #(
1737       _ | IFS | as_nl) ;; #(
1738       *) $as_unset $ac_var ;;
1739       esac ;;
1740     esac
1741   done
1742   (set) 2>&1 |
1743     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1744     *${as_nl}ac_space=\ *)
1745       sed -n \
1746         "s/'\''/'\''\\\\'\'''\''/g;
1747           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1748       ;; #(
1749     *)
1750       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1751       ;;
1752     esac |
1753     sort
1754 )
1755     echo
1756
1757     cat <<\_ASBOX
1758 ## ----------------- ##
1759 ## Output variables. ##
1760 ## ----------------- ##
1761 _ASBOX
1762     echo
1763     for ac_var in $ac_subst_vars
1764     do
1765       eval ac_val=\$$ac_var
1766       case $ac_val in
1767       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768       esac
1769       echo "$ac_var='\''$ac_val'\''"
1770     done | sort
1771     echo
1772
1773     if test -n "$ac_subst_files"; then
1774       cat <<\_ASBOX
1775 ## ------------------- ##
1776 ## File substitutions. ##
1777 ## ------------------- ##
1778 _ASBOX
1779       echo
1780       for ac_var in $ac_subst_files
1781       do
1782         eval ac_val=\$$ac_var
1783         case $ac_val in
1784         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785         esac
1786         echo "$ac_var='\''$ac_val'\''"
1787       done | sort
1788       echo
1789     fi
1790
1791     if test -s confdefs.h; then
1792       cat <<\_ASBOX
1793 ## ----------- ##
1794 ## confdefs.h. ##
1795 ## ----------- ##
1796 _ASBOX
1797       echo
1798       cat confdefs.h
1799       echo
1800     fi
1801     test "$ac_signal" != 0 &&
1802       echo "$as_me: caught signal $ac_signal"
1803     echo "$as_me: exit $exit_status"
1804   } >&5
1805   rm -f core *.core core.conftest.* &&
1806     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1807     exit $exit_status
1808 ' 0
1809 for ac_signal in 1 2 13 15; do
1810   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 done
1812 ac_signal=0
1813
1814 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1815 rm -f -r conftest* confdefs.h
1816
1817 # Predefined preprocessor variables.
1818
1819 cat >>confdefs.h <<_ACEOF
1820 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 _ACEOF
1822
1823
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 _ACEOF
1827
1828
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 _ACEOF
1832
1833
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 _ACEOF
1837
1838
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 _ACEOF
1842
1843
1844 # Let the site file select an alternate cache file if it wants to.
1845 # Prefer explicitly selected file to automatically selected ones.
1846 if test -n "$CONFIG_SITE"; then
1847   set x "$CONFIG_SITE"
1848 elif test "x$prefix" != xNONE; then
1849   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850 else
1851   set x "$ac_default_prefix/share/config.site" \
1852         "$ac_default_prefix/etc/config.site"
1853 fi
1854 shift
1855 for ac_site_file
1856 do
1857   if test -r "$ac_site_file"; then
1858     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 echo "$as_me: loading site script $ac_site_file" >&6;}
1860     sed 's/^/| /' "$ac_site_file" >&5
1861     . "$ac_site_file"
1862   fi
1863 done
1864
1865 if test -r "$cache_file"; then
1866   # Some versions of bash will fail to source /dev/null (special
1867   # files actually), so we avoid doing that.
1868   if test -f "$cache_file"; then
1869     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 echo "$as_me: loading cache $cache_file" >&6;}
1871     case $cache_file in
1872       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873       *)                      . "./$cache_file";;
1874     esac
1875   fi
1876 else
1877   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 echo "$as_me: creating cache $cache_file" >&6;}
1879   >$cache_file
1880 fi
1881
1882 # Check that the precious variables saved in the cache have kept the same
1883 # value.
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887   eval ac_new_set=\$ac_env_${ac_var}_set
1888   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889   eval ac_new_val=\$ac_env_${ac_var}_value
1890   case $ac_old_set,$ac_new_set in
1891     set,)
1892       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894       ac_cache_corrupted=: ;;
1895     ,set)
1896       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1897 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1898       ac_cache_corrupted=: ;;
1899     ,);;
1900     *)
1901       if test "x$ac_old_val" != "x$ac_new_val"; then
1902         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1903 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1904         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1905 echo "$as_me:   former value:  $ac_old_val" >&2;}
1906         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1907 echo "$as_me:   current value: $ac_new_val" >&2;}
1908         ac_cache_corrupted=:
1909       fi;;
1910   esac
1911   # Pass precious variables to config.status.
1912   if test "$ac_new_set" = set; then
1913     case $ac_new_val in
1914     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1915     *) ac_arg=$ac_var=$ac_new_val ;;
1916     esac
1917     case " $ac_configure_args " in
1918       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1919       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920     esac
1921   fi
1922 done
1923 if $ac_cache_corrupted; then
1924   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1925 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1926   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1927 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1928    { (exit 1); exit 1; }; }
1929 fi
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947 ac_ext=c
1948 ac_cpp='$CPP $CPPFLAGS'
1949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952
1953
1954 BUILD_DIR=`pwd`
1955 cd ..
1956 TOP_DIR=`pwd`
1957 cd ${BUILD_DIR}
1958
1959
1960 ac_aux_dir=
1961 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1962   if test -f "$ac_dir/install-sh"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/install-sh -c"
1965     break
1966   elif test -f "$ac_dir/install.sh"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/install.sh -c"
1969     break
1970   elif test -f "$ac_dir/shtool"; then
1971     ac_aux_dir=$ac_dir
1972     ac_install_sh="$ac_aux_dir/shtool install -c"
1973     break
1974   fi
1975 done
1976 if test -z "$ac_aux_dir"; then
1977   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1978 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1979    { (exit 1); exit 1; }; }
1980 fi
1981
1982 # These three variables are undocumented and unsupported,
1983 # and are intended to be withdrawn in a future Autoconf release.
1984 # They can cause serious problems if a builder's source tree is in a directory
1985 # whose full name contains unusual characters.
1986 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1987 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1988 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1989
1990
1991 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1992
1993
1994
1995
1996
1997 for ac_prog in true
1998 do
1999   # Extract the first word of "$ac_prog", so it can be a program name with args.
2000 set dummy $ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2004   echo $ECHO_N "(cached) $ECHO_C" >&6
2005 else
2006   case $TRUEPRG in
2007   [\\/]* | ?:[\\/]*)
2008   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2009   ;;
2010   *)
2011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 for as_dir in $PATH
2013 do
2014   IFS=$as_save_IFS
2015   test -z "$as_dir" && as_dir=.
2016   for ac_exec_ext in '' $ac_executable_extensions; do
2017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2018     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020     break 2
2021   fi
2022 done
2023 done
2024 IFS=$as_save_IFS
2025
2026   ;;
2027 esac
2028 fi
2029 TRUEPRG=$ac_cv_path_TRUEPRG
2030 if test -n "$TRUEPRG"; then
2031   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2032 echo "${ECHO_T}$TRUEPRG" >&6; }
2033 else
2034   { echo "$as_me:$LINENO: result: no" >&5
2035 echo "${ECHO_T}no" >&6; }
2036 fi
2037
2038
2039   test -n "$TRUEPRG" && break
2040 done
2041 test -n "$TRUEPRG" || TRUEPRG=":"
2042
2043 for ac_prog in false
2044 do
2045   # Extract the first word of "$ac_prog", so it can be a program name with args.
2046 set dummy $ac_prog; ac_word=$2
2047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2049 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2050   echo $ECHO_N "(cached) $ECHO_C" >&6
2051 else
2052   case $FALSEPRG in
2053   [\\/]* | ?:[\\/]*)
2054   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2055   ;;
2056   *)
2057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060   IFS=$as_save_IFS
2061   test -z "$as_dir" && as_dir=.
2062   for ac_exec_ext in '' $ac_executable_extensions; do
2063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2064     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066     break 2
2067   fi
2068 done
2069 done
2070 IFS=$as_save_IFS
2071
2072   ;;
2073 esac
2074 fi
2075 FALSEPRG=$ac_cv_path_FALSEPRG
2076 if test -n "$FALSEPRG"; then
2077   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2078 echo "${ECHO_T}$FALSEPRG" >&6; }
2079 else
2080   { echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6; }
2082 fi
2083
2084
2085   test -n "$FALSEPRG" && break
2086 done
2087 test -n "$FALSEPRG" || FALSEPRG=":"
2088
2089
2090 #AC_CANONICAL_HOST
2091
2092 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2093 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2094 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2095 echo "configuring for bacula $VERSION ($DATE)"
2096
2097
2098
2099 ac_ext=c
2100 ac_cpp='$CPP $CPPFLAGS'
2101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2104 if test -n "$ac_tool_prefix"; then
2105   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2106 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2109 if test "${ac_cv_prog_CC+set}" = set; then
2110   echo $ECHO_N "(cached) $ECHO_C" >&6
2111 else
2112   if test -n "$CC"; then
2113   ac_cv_prog_CC="$CC" # Let the user override the test.
2114 else
2115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2116 for as_dir in $PATH
2117 do
2118   IFS=$as_save_IFS
2119   test -z "$as_dir" && as_dir=.
2120   for ac_exec_ext in '' $ac_executable_extensions; do
2121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2122     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124     break 2
2125   fi
2126 done
2127 done
2128 IFS=$as_save_IFS
2129
2130 fi
2131 fi
2132 CC=$ac_cv_prog_CC
2133 if test -n "$CC"; then
2134   { echo "$as_me:$LINENO: result: $CC" >&5
2135 echo "${ECHO_T}$CC" >&6; }
2136 else
2137   { echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6; }
2139 fi
2140
2141
2142 fi
2143 if test -z "$ac_cv_prog_CC"; then
2144   ac_ct_CC=$CC
2145   # Extract the first word of "gcc", so it can be a program name with args.
2146 set dummy gcc; ac_word=$2
2147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2149 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2150   echo $ECHO_N "(cached) $ECHO_C" >&6
2151 else
2152   if test -n "$ac_ct_CC"; then
2153   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2154 else
2155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156 for as_dir in $PATH
2157 do
2158   IFS=$as_save_IFS
2159   test -z "$as_dir" && as_dir=.
2160   for ac_exec_ext in '' $ac_executable_extensions; do
2161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2162     ac_cv_prog_ac_ct_CC="gcc"
2163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2164     break 2
2165   fi
2166 done
2167 done
2168 IFS=$as_save_IFS
2169
2170 fi
2171 fi
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6; }
2176 else
2177   { echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6; }
2179 fi
2180
2181   if test "x$ac_ct_CC" = x; then
2182     CC=""
2183   else
2184     case $cross_compiling:$ac_tool_warned in
2185 yes:)
2186 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2187 whose name does not start with the host triplet.  If you think this
2188 configuration is useful to you, please write to autoconf@gnu.org." >&5
2189 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2190 whose name does not start with the host triplet.  If you think this
2191 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2192 ac_tool_warned=yes ;;
2193 esac
2194     CC=$ac_ct_CC
2195   fi
2196 else
2197   CC="$ac_cv_prog_CC"
2198 fi
2199
2200 if test -z "$CC"; then
2201           if test -n "$ac_tool_prefix"; then
2202     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2203 set dummy ${ac_tool_prefix}cc; ac_word=$2
2204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2206 if test "${ac_cv_prog_CC+set}" = set; then
2207   echo $ECHO_N "(cached) $ECHO_C" >&6
2208 else
2209   if test -n "$CC"; then
2210   ac_cv_prog_CC="$CC" # Let the user override the test.
2211 else
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2214 do
2215   IFS=$as_save_IFS
2216   test -z "$as_dir" && as_dir=.
2217   for ac_exec_ext in '' $ac_executable_extensions; do
2218   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2219     ac_cv_prog_CC="${ac_tool_prefix}cc"
2220     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2221     break 2
2222   fi
2223 done
2224 done
2225 IFS=$as_save_IFS
2226
2227 fi
2228 fi
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231   { echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6; }
2233 else
2234   { echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6; }
2236 fi
2237
2238
2239   fi
2240 fi
2241 if test -z "$CC"; then
2242   # Extract the first word of "cc", so it can be a program name with args.
2243 set dummy cc; ac_word=$2
2244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2246 if test "${ac_cv_prog_CC+set}" = set; then
2247   echo $ECHO_N "(cached) $ECHO_C" >&6
2248 else
2249   if test -n "$CC"; then
2250   ac_cv_prog_CC="$CC" # Let the user override the test.
2251 else
2252   ac_prog_rejected=no
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2260     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2261        ac_prog_rejected=yes
2262        continue
2263      fi
2264     ac_cv_prog_CC="cc"
2265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266     break 2
2267   fi
2268 done
2269 done
2270 IFS=$as_save_IFS
2271
2272 if test $ac_prog_rejected = yes; then
2273   # We found a bogon in the path, so make sure we never use it.
2274   set dummy $ac_cv_prog_CC
2275   shift
2276   if test $# != 0; then
2277     # We chose a different compiler from the bogus one.
2278     # However, it has the same basename, so the bogon will be chosen
2279     # first if we set CC to just the basename; use the full file name.
2280     shift
2281     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2282   fi
2283 fi
2284 fi
2285 fi
2286 CC=$ac_cv_prog_CC
2287 if test -n "$CC"; then
2288   { echo "$as_me:$LINENO: result: $CC" >&5
2289 echo "${ECHO_T}$CC" >&6; }
2290 else
2291   { echo "$as_me:$LINENO: result: no" >&5
2292 echo "${ECHO_T}no" >&6; }
2293 fi
2294
2295
2296 fi
2297 if test -z "$CC"; then
2298   if test -n "$ac_tool_prefix"; then
2299   for ac_prog in cl.exe
2300   do
2301     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2305 if test "${ac_cv_prog_CC+set}" = set; then
2306   echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308   if test -n "$CC"; then
2309   ac_cv_prog_CC="$CC" # Let the user override the test.
2310 else
2311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2312 for as_dir in $PATH
2313 do
2314   IFS=$as_save_IFS
2315   test -z "$as_dir" && as_dir=.
2316   for ac_exec_ext in '' $ac_executable_extensions; do
2317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2318     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2320     break 2
2321   fi
2322 done
2323 done
2324 IFS=$as_save_IFS
2325
2326 fi
2327 fi
2328 CC=$ac_cv_prog_CC
2329 if test -n "$CC"; then
2330   { echo "$as_me:$LINENO: result: $CC" >&5
2331 echo "${ECHO_T}$CC" >&6; }
2332 else
2333   { echo "$as_me:$LINENO: result: no" >&5
2334 echo "${ECHO_T}no" >&6; }
2335 fi
2336
2337
2338     test -n "$CC" && break
2339   done
2340 fi
2341 if test -z "$CC"; then
2342   ac_ct_CC=$CC
2343   for ac_prog in cl.exe
2344 do
2345   # Extract the first word of "$ac_prog", so it can be a program name with args.
2346 set dummy $ac_prog; ac_word=$2
2347 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2349 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350   echo $ECHO_N "(cached) $ECHO_C" >&6
2351 else
2352   if test -n "$ac_ct_CC"; then
2353   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2354 else
2355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356 for as_dir in $PATH
2357 do
2358   IFS=$as_save_IFS
2359   test -z "$as_dir" && as_dir=.
2360   for ac_exec_ext in '' $ac_executable_extensions; do
2361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2362     ac_cv_prog_ac_ct_CC="$ac_prog"
2363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364     break 2
2365   fi
2366 done
2367 done
2368 IFS=$as_save_IFS
2369
2370 fi
2371 fi
2372 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2373 if test -n "$ac_ct_CC"; then
2374   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2375 echo "${ECHO_T}$ac_ct_CC" >&6; }
2376 else
2377   { echo "$as_me:$LINENO: result: no" >&5
2378 echo "${ECHO_T}no" >&6; }
2379 fi
2380
2381
2382   test -n "$ac_ct_CC" && break
2383 done
2384
2385   if test "x$ac_ct_CC" = x; then
2386     CC=""
2387   else
2388     case $cross_compiling:$ac_tool_warned in
2389 yes:)
2390 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2391 whose name does not start with the host triplet.  If you think this
2392 configuration is useful to you, please write to autoconf@gnu.org." >&5
2393 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2394 whose name does not start with the host triplet.  If you think this
2395 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2396 ac_tool_warned=yes ;;
2397 esac
2398     CC=$ac_ct_CC
2399   fi
2400 fi
2401
2402 fi
2403
2404
2405 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&2;}
2409    { (exit 1); exit 1; }; }
2410
2411 # Provide some information about the compiler.
2412 echo "$as_me:$LINENO: checking for C compiler version" >&5
2413 ac_compiler=`set X $ac_compile; echo $2`
2414 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
2435 case "(($ac_try" in
2436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437   *) ac_try_echo=$ac_try;;
2438 esac
2439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2440   (eval "$ac_compiler -V >&5") 2>&5
2441   ac_status=$?
2442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2443   (exit $ac_status); }
2444
2445 cat >conftest.$ac_ext <<_ACEOF
2446 /* confdefs.h.  */
2447 _ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h.  */
2451
2452 int
2453 main ()
2454 {
2455
2456   ;
2457   return 0;
2458 }
2459 _ACEOF
2460 ac_clean_files_save=$ac_clean_files
2461 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2462 # Try to create an executable without -o first, disregard a.out.
2463 # It will help us diagnose broken compilers, and finding out an intuition
2464 # of exeext.
2465 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2466 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2467 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2468 #
2469 # List of possible output files, starting from the most likely.
2470 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2471 # only as a last resort.  b.out is created by i960 compilers.
2472 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2473 #
2474 # The IRIX 6 linker writes into existing files which may not be
2475 # executable, retaining their permissions.  Remove them first so a
2476 # subsequent execution test works.
2477 ac_rmfiles=
2478 for ac_file in $ac_files
2479 do
2480   case $ac_file in
2481     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2482     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2483   esac
2484 done
2485 rm -f $ac_rmfiles
2486
2487 if { (ac_try="$ac_link_default"
2488 case "(($ac_try" in
2489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490   *) ac_try_echo=$ac_try;;
2491 esac
2492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2493   (eval "$ac_link_default") 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; then
2497   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2498 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2499 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2500 # so that the user can short-circuit this test for compilers unknown to
2501 # Autoconf.
2502 for ac_file in $ac_files
2503 do
2504   test -f "$ac_file" || continue
2505   case $ac_file in
2506     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2507         ;;
2508     [ab].out )
2509         # We found the default executable, but exeext='' is most
2510         # certainly right.
2511         break;;
2512     *.* )
2513         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2514         then :; else
2515            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2516         fi
2517         # We set ac_cv_exeext here because the later test for it is not
2518         # safe: cross compilers may not add the suffix if given an `-o'
2519         # argument, so we may need to know it at that point already.
2520         # Even if this section looks crufty: it has the advantage of
2521         # actually working.
2522         break;;
2523     * )
2524         break;;
2525   esac
2526 done
2527 test "$ac_cv_exeext" = no && ac_cv_exeext=
2528
2529 else
2530   echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2532
2533 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: C compiler cannot create executables
2536 See \`config.log' for more details." >&2;}
2537    { (exit 77); exit 77; }; }
2538 fi
2539
2540 ac_exeext=$ac_cv_exeext
2541 { echo "$as_me:$LINENO: result: $ac_file" >&5
2542 echo "${ECHO_T}$ac_file" >&6; }
2543
2544 # Check that the compiler produces executables we can run.  If not, either
2545 # the compiler is broken, or we cross compile.
2546 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2547 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2548 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2549 # If not cross compiling, check that we can run a simple program.
2550 if test "$cross_compiling" != yes; then
2551   if { ac_try='./$ac_file'
2552   { (case "(($ac_try" in
2553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554   *) ac_try_echo=$ac_try;;
2555 esac
2556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2557   (eval "$ac_try") 2>&5
2558   ac_status=$?
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); }; }; then
2561     cross_compiling=no
2562   else
2563     if test "$cross_compiling" = maybe; then
2564         cross_compiling=yes
2565     else
2566         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&5
2569 echo "$as_me: error: cannot run C compiled programs.
2570 If you meant to cross compile, use \`--host'.
2571 See \`config.log' for more details." >&2;}
2572    { (exit 1); exit 1; }; }
2573     fi
2574   fi
2575 fi
2576 { echo "$as_me:$LINENO: result: yes" >&5
2577 echo "${ECHO_T}yes" >&6; }
2578
2579 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2580 ac_clean_files=$ac_clean_files_save
2581 # Check that the compiler produces executables we can run.  If not, either
2582 # the compiler is broken, or we cross compile.
2583 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2584 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2585 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2586 echo "${ECHO_T}$cross_compiling" >&6; }
2587
2588 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2589 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2590 if { (ac_try="$ac_link"
2591 case "(($ac_try" in
2592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593   *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596   (eval "$ac_link") 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; then
2600   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2603 # `rm'.
2604 for ac_file in conftest.exe conftest conftest.*; do
2605   test -f "$ac_file" || continue
2606   case $ac_file in
2607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609           break;;
2610     * ) break;;
2611   esac
2612 done
2613 else
2614   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&2;}
2618    { (exit 1); exit 1; }; }
2619 fi
2620
2621 rm -f conftest$ac_cv_exeext
2622 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2623 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2624
2625 rm -f conftest.$ac_ext
2626 EXEEXT=$ac_cv_exeext
2627 ac_exeext=$EXEEXT
2628 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2629 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2630 if test "${ac_cv_objext+set}" = set; then
2631   echo $ECHO_N "(cached) $ECHO_C" >&6
2632 else
2633   cat >conftest.$ac_ext <<_ACEOF
2634 /* confdefs.h.  */
2635 _ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h.  */
2639
2640 int
2641 main ()
2642 {
2643
2644   ;
2645   return 0;
2646 }
2647 _ACEOF
2648 rm -f conftest.o conftest.obj
2649 if { (ac_try="$ac_compile"
2650 case "(($ac_try" in
2651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652   *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655   (eval "$ac_compile") 2>&5
2656   ac_status=$?
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); }; then
2659   for ac_file in conftest.o conftest.obj conftest.*; do
2660   test -f "$ac_file" || continue;
2661   case $ac_file in
2662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2663     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2664        break;;
2665   esac
2666 done
2667 else
2668   echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2670
2671 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675    { (exit 1); exit 1; }; }
2676 fi
2677
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2679 fi
2680 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 echo "${ECHO_T}$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2683 ac_objext=$OBJEXT
2684 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687   echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695
2696 int
2697 main ()
2698 {
2699 #ifndef __GNUC__
2700        choke me
2701 #endif
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compile") 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2731          { ac_try='test -s conftest.$ac_objext'
2732   { (case "(($ac_try" in
2733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734   *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737   (eval "$ac_try") 2>&5
2738   ac_status=$?
2739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740   (exit $ac_status); }; }; then
2741   ac_compiler_gnu=yes
2742 else
2743   echo "$as_me: failed program was:" >&5
2744 sed 's/^/| /' conftest.$ac_ext >&5
2745
2746         ac_compiler_gnu=no
2747 fi
2748
2749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2751
2752 fi
2753 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2754 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2755 GCC=`test $ac_compiler_gnu = yes && echo yes`
2756 ac_test_CFLAGS=${CFLAGS+set}
2757 ac_save_CFLAGS=$CFLAGS
2758 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2759 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_g+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   ac_save_c_werror_flag=$ac_c_werror_flag
2764    ac_c_werror_flag=yes
2765    ac_cv_prog_cc_g=no
2766    CFLAGS="-g"
2767    cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h.  */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h.  */
2773
2774 int
2775 main ()
2776 {
2777
2778   ;
2779   return 0;
2780 }
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786   *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789   (eval "$ac_compile") 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2806          { ac_try='test -s conftest.$ac_objext'
2807   { (case "(($ac_try" in
2808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809   *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812   (eval "$ac_try") 2>&5
2813   ac_status=$?
2814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815   (exit $ac_status); }; }; then
2816   ac_cv_prog_cc_g=yes
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821         CFLAGS=""
2822       cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_compile") 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } &&
2851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2861          { ac_try='test -s conftest.$ac_objext'
2862   { (case "(($ac_try" in
2863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864   *) ac_try_echo=$ac_try;;
2865 esac
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867   (eval "$ac_try") 2>&5
2868   ac_status=$?
2869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870   (exit $ac_status); }; }; then
2871   :
2872 else
2873   echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876         ac_c_werror_flag=$ac_save_c_werror_flag
2877          CFLAGS="-g"
2878          cat >conftest.$ac_ext <<_ACEOF
2879 /* confdefs.h.  */
2880 _ACEOF
2881 cat confdefs.h >>conftest.$ac_ext
2882 cat >>conftest.$ac_ext <<_ACEOF
2883 /* end confdefs.h.  */
2884
2885 int
2886 main ()
2887 {
2888
2889   ;
2890   return 0;
2891 }
2892 _ACEOF
2893 rm -f conftest.$ac_objext
2894 if { (ac_try="$ac_compile"
2895 case "(($ac_try" in
2896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897   *) ac_try_echo=$ac_try;;
2898 esac
2899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2900   (eval "$ac_compile") 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
2917          { ac_try='test -s conftest.$ac_objext'
2918   { (case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_try") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }; }; then
2927   ac_cv_prog_cc_g=yes
2928 else
2929   echo "$as_me: failed program was:" >&5
2930 sed 's/^/| /' conftest.$ac_ext >&5
2931
2932
2933 fi
2934
2935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 fi
2937
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2939 fi
2940
2941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942    ac_c_werror_flag=$ac_save_c_werror_flag
2943 fi
2944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2946 if test "$ac_test_CFLAGS" = set; then
2947   CFLAGS=$ac_save_CFLAGS
2948 elif test $ac_cv_prog_cc_g = yes; then
2949   if test "$GCC" = yes; then
2950     CFLAGS="-g -O2"
2951   else
2952     CFLAGS="-g"
2953   fi
2954 else
2955   if test "$GCC" = yes; then
2956     CFLAGS="-O2"
2957   else
2958     CFLAGS=
2959   fi
2960 fi
2961 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2962 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_cc_c89+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   ac_cv_prog_cc_c89=no
2967 ac_save_CC=$CC
2968 cat >conftest.$ac_ext <<_ACEOF
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 #include <stdarg.h>
2975 #include <stdio.h>
2976 #include <sys/types.h>
2977 #include <sys/stat.h>
2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2979 struct buf { int x; };
2980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981 static char *e (p, i)
2982      char **p;
2983      int i;
2984 {
2985   return p[i];
2986 }
2987 static char *f (char * (*g) (char **, int), char **p, ...)
2988 {
2989   char *s;
2990   va_list v;
2991   va_start (v,p);
2992   s = g (p, va_arg (v,int));
2993   va_end (v);
2994   return s;
2995 }
2996
2997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2998    function prototypes and stuff, but not '\xHH' hex character constants.
2999    These don't provoke an error unfortunately, instead are silently treated
3000    as 'x'.  The following induces an error, until -std is added to get
3001    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3002    array size at least.  It's necessary to write '\x00'==0 to get something
3003    that's true only with -std.  */
3004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3005
3006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3007    inside strings and character constants.  */
3008 #define FOO(x) 'x'
3009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3010
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3015 int argc;
3016 char **argv;
3017 int
3018 main ()
3019 {
3020 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3021   ;
3022   return 0;
3023 }
3024 _ACEOF
3025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3026         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3027 do
3028   CC="$ac_save_CC $ac_arg"
3029   rm -f conftest.$ac_objext
3030 if { (ac_try="$ac_compile"
3031 case "(($ac_try" in
3032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033   *) ac_try_echo=$ac_try;;
3034 esac
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036   (eval "$ac_compile") 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } &&
3043          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
3053          { ac_try='test -s conftest.$ac_objext'
3054   { (case "(($ac_try" in
3055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056   *) ac_try_echo=$ac_try;;
3057 esac
3058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3059   (eval "$ac_try") 2>&5
3060   ac_status=$?
3061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062   (exit $ac_status); }; }; then
3063   ac_cv_prog_cc_c89=$ac_arg
3064 else
3065   echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3067
3068
3069 fi
3070
3071 rm -f core conftest.err conftest.$ac_objext
3072   test "x$ac_cv_prog_cc_c89" != "xno" && break
3073 done
3074 rm -f conftest.$ac_ext
3075 CC=$ac_save_CC
3076
3077 fi
3078 # AC_CACHE_VAL
3079 case "x$ac_cv_prog_cc_c89" in
3080   x)
3081     { echo "$as_me:$LINENO: result: none needed" >&5
3082 echo "${ECHO_T}none needed" >&6; } ;;
3083   xno)
3084     { echo "$as_me:$LINENO: result: unsupported" >&5
3085 echo "${ECHO_T}unsupported" >&6; } ;;
3086   *)
3087     CC="$CC $ac_cv_prog_cc_c89"
3088     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3089 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3090 esac
3091
3092
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098
3099 ac_ext=cpp
3100 ac_cpp='$CXXCPP $CPPFLAGS'
3101 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3104 if test -z "$CXX"; then
3105   if test -n "$CCC"; then
3106     CXX=$CCC
3107   else
3108     if test -n "$ac_tool_prefix"; then
3109   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3110   do
3111     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3115 if test "${ac_cv_prog_CXX+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   if test -n "$CXX"; then
3119   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3123 do
3124   IFS=$as_save_IFS
3125   test -z "$as_dir" && as_dir=.
3126   for ac_exec_ext in '' $ac_executable_extensions; do
3127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3128     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3130     break 2
3131   fi
3132 done
3133 done
3134 IFS=$as_save_IFS
3135
3136 fi
3137 fi
3138 CXX=$ac_cv_prog_CXX
3139 if test -n "$CXX"; then
3140   { echo "$as_me:$LINENO: result: $CXX" >&5
3141 echo "${ECHO_T}$CXX" >&6; }
3142 else
3143   { echo "$as_me:$LINENO: result: no" >&5
3144 echo "${ECHO_T}no" >&6; }
3145 fi
3146
3147
3148     test -n "$CXX" && break
3149   done
3150 fi
3151 if test -z "$CXX"; then
3152   ac_ct_CXX=$CXX
3153   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3154 do
3155   # Extract the first word of "$ac_prog", so it can be a program name with args.
3156 set dummy $ac_prog; ac_word=$2
3157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3160   echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162   if test -n "$ac_ct_CXX"; then
3163   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3164 else
3165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166 for as_dir in $PATH
3167 do
3168   IFS=$as_save_IFS
3169   test -z "$as_dir" && as_dir=.
3170   for ac_exec_ext in '' $ac_executable_extensions; do
3171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3172     ac_cv_prog_ac_ct_CXX="$ac_prog"
3173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3174     break 2
3175   fi
3176 done
3177 done
3178 IFS=$as_save_IFS
3179
3180 fi
3181 fi
3182 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3183 if test -n "$ac_ct_CXX"; then
3184   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3185 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3186 else
3187   { echo "$as_me:$LINENO: result: no" >&5
3188 echo "${ECHO_T}no" >&6; }
3189 fi
3190
3191
3192   test -n "$ac_ct_CXX" && break
3193 done
3194
3195   if test "x$ac_ct_CXX" = x; then
3196     CXX="g++"
3197   else
3198     case $cross_compiling:$ac_tool_warned in
3199 yes:)
3200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3201 whose name does not start with the host triplet.  If you think this
3202 configuration is useful to you, please write to autoconf@gnu.org." >&5
3203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3204 whose name does not start with the host triplet.  If you think this
3205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3206 ac_tool_warned=yes ;;
3207 esac
3208     CXX=$ac_ct_CXX
3209   fi
3210 fi
3211
3212   fi
3213 fi
3214 # Provide some information about the compiler.
3215 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3216 ac_compiler=`set X $ac_compile; echo $2`
3217 { (ac_try="$ac_compiler --version >&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 --version >&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 { (ac_try="$ac_compiler -V >&5"
3238 case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243   (eval "$ac_compiler -V >&5") 2>&5
3244   ac_status=$?
3245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246   (exit $ac_status); }
3247
3248 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3249 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3250 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259
3260 int
3261 main ()
3262 {
3263 #ifndef __GNUC__
3264        choke me
3265 #endif
3266
3267   ;
3268   return 0;
3269 }
3270 _ACEOF
3271 rm -f conftest.$ac_objext
3272 if { (ac_try="$ac_compile"
3273 case "(($ac_try" in
3274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275   *) ac_try_echo=$ac_try;;
3276 esac
3277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3278   (eval "$ac_compile") 2>conftest.er1
3279   ac_status=$?
3280   grep -v '^ *+' conftest.er1 >conftest.err
3281   rm -f conftest.er1
3282   cat conftest.err >&5
3283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284   (exit $ac_status); } &&
3285          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3295          { ac_try='test -s conftest.$ac_objext'
3296   { (case "(($ac_try" in
3297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298   *) ac_try_echo=$ac_try;;
3299 esac
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301   (eval "$ac_try") 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   ac_compiler_gnu=yes
3306 else
3307   echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3309
3310         ac_compiler_gnu=no
3311 fi
3312
3313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3315
3316 fi
3317 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3318 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3319 GXX=`test $ac_compiler_gnu = yes && echo yes`
3320 ac_test_CXXFLAGS=${CXXFLAGS+set}
3321 ac_save_CXXFLAGS=$CXXFLAGS
3322 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3323 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3324 if test "${ac_cv_prog_cxx_g+set}" = set; then
3325   echo $ECHO_N "(cached) $ECHO_C" >&6
3326 else
3327   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3328    ac_cxx_werror_flag=yes
3329    ac_cv_prog_cxx_g=no
3330    CXXFLAGS="-g"
3331    cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337
3338 int
3339 main ()
3340 {
3341
3342   ;
3343   return 0;
3344 }
3345 _ACEOF
3346 rm -f conftest.$ac_objext
3347 if { (ac_try="$ac_compile"
3348 case "(($ac_try" in
3349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350   *) ac_try_echo=$ac_try;;
3351 esac
3352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353   (eval "$ac_compile") 2>conftest.er1
3354   ac_status=$?
3355   grep -v '^ *+' conftest.er1 >conftest.err
3356   rm -f conftest.er1
3357   cat conftest.err >&5
3358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359   (exit $ac_status); } &&
3360          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3370          { ac_try='test -s conftest.$ac_objext'
3371   { (case "(($ac_try" in
3372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373   *) ac_try_echo=$ac_try;;
3374 esac
3375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376   (eval "$ac_try") 2>&5
3377   ac_status=$?
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); }; }; then
3380   ac_cv_prog_cxx_g=yes
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385         CXXFLAGS=""
3386       cat >conftest.$ac_ext <<_ACEOF
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392
3393 int
3394 main ()
3395 {
3396
3397   ;
3398   return 0;
3399 }
3400 _ACEOF
3401 rm -f conftest.$ac_objext
3402 if { (ac_try="$ac_compile"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3408   (eval "$ac_compile") 2>conftest.er1
3409   ac_status=$?
3410   grep -v '^ *+' conftest.er1 >conftest.err
3411   rm -f conftest.er1
3412   cat conftest.err >&5
3413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3414   (exit $ac_status); } &&
3415          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3425          { ac_try='test -s conftest.$ac_objext'
3426   { (case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_try") 2>&5
3432   ac_status=$?
3433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434   (exit $ac_status); }; }; then
3435   :
3436 else
3437   echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3441          CXXFLAGS="-g"
3442          cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 rm -f conftest.$ac_objext
3458 if { (ac_try="$ac_compile"
3459 case "(($ac_try" in
3460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461   *) ac_try_echo=$ac_try;;
3462 esac
3463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3464   (eval "$ac_compile") 2>conftest.er1
3465   ac_status=$?
3466   grep -v '^ *+' conftest.er1 >conftest.err
3467   rm -f conftest.er1
3468   cat conftest.err >&5
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
3481          { ac_try='test -s conftest.$ac_objext'
3482   { (case "(($ac_try" in
3483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484   *) ac_try_echo=$ac_try;;
3485 esac
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487   (eval "$ac_try") 2>&5
3488   ac_status=$?
3489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3490   (exit $ac_status); }; }; then
3491   ac_cv_prog_cxx_g=yes
3492 else
3493   echo "$as_me: failed program was:" >&5
3494 sed 's/^/| /' conftest.$ac_ext >&5
3495
3496
3497 fi
3498
3499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500 fi
3501
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3506    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3507 fi
3508 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3509 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3510 if test "$ac_test_CXXFLAGS" = set; then
3511   CXXFLAGS=$ac_save_CXXFLAGS
3512 elif test $ac_cv_prog_cxx_g = yes; then
3513   if test "$GXX" = yes; then
3514     CXXFLAGS="-g -O2"
3515   else
3516     CXXFLAGS="-g"
3517   fi
3518 else
3519   if test "$GXX" = yes; then
3520     CXXFLAGS="-O2"
3521   else
3522     CXXFLAGS=
3523   fi
3524 fi
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530
3531 if test "x$CC" != xcc; then
3532   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3533 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3534 else
3535   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3536 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3537 fi
3538 set dummy $CC; ac_cc=`echo $2 |
3539                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3540 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h.  */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h.  */
3549
3550 int
3551 main ()
3552 {
3553
3554   ;
3555   return 0;
3556 }
3557 _ACEOF
3558 # Make sure it works both with $CC and with simple cc.
3559 # We do the test twice because some compilers refuse to overwrite an
3560 # existing .o file with -o, though they will create one.
3561 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3562 rm -f conftest2.*
3563 if { (case "(($ac_try" in
3564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565   *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568   (eval "$ac_try") 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); } &&
3572    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574   *) ac_try_echo=$ac_try;;
3575 esac
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577   (eval "$ac_try") 2>&5
3578   ac_status=$?
3579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580   (exit $ac_status); };
3581 then
3582   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3583   if test "x$CC" != xcc; then
3584     # Test first that cc exists at all.
3585     if { ac_try='cc -c conftest.$ac_ext >&5'
3586   { (case "(($ac_try" in
3587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588   *) ac_try_echo=$ac_try;;
3589 esac
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591   (eval "$ac_try") 2>&5
3592   ac_status=$?
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); }; }; then
3595       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3596       rm -f conftest2.*
3597       if { (case "(($ac_try" in
3598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3599   *) ac_try_echo=$ac_try;;
3600 esac
3601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3602   (eval "$ac_try") 2>&5
3603   ac_status=$?
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } &&
3606          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3608   *) ac_try_echo=$ac_try;;
3609 esac
3610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3611   (eval "$ac_try") 2>&5
3612   ac_status=$?
3613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3614   (exit $ac_status); };
3615       then
3616         # cc works too.
3617         :
3618       else
3619         # cc exists but doesn't like -o.
3620         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3621       fi
3622     fi
3623   fi
3624 else
3625   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3626 fi
3627 rm -f core conftest*
3628
3629 fi
3630 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3631   { echo "$as_me:$LINENO: result: yes" >&5
3632 echo "${ECHO_T}yes" >&6; }
3633 else
3634   { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3636
3637 cat >>confdefs.h <<\_ACEOF
3638 #define NO_MINUS_C_MINUS_O 1
3639 _ACEOF
3640
3641 fi
3642
3643 ac_ext=c
3644 ac_cpp='$CPP $CPPFLAGS'
3645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3648 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3649 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3650 # On Suns, sometimes $CPP names a directory.
3651 if test -n "$CPP" && test -d "$CPP"; then
3652   CPP=
3653 fi
3654 if test -z "$CPP"; then
3655   if test "${ac_cv_prog_CPP+set}" = set; then
3656   echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658       # Double quotes because CPP needs to be expanded
3659     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3660     do
3661       ac_preproc_ok=false
3662 for ac_c_preproc_warn_flag in '' yes
3663 do
3664   # Use a header file that comes with gcc, so configuring glibc
3665   # with a fresh cross-compiler works.
3666   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3667   # <limits.h> exists even on freestanding compilers.
3668   # On the NeXT, cc -E runs the code through the compiler's parser,
3669   # not just through cpp. "Syntax error" is here to catch this case.
3670   cat >conftest.$ac_ext <<_ACEOF
3671 /* confdefs.h.  */
3672 _ACEOF
3673 cat confdefs.h >>conftest.$ac_ext
3674 cat >>conftest.$ac_ext <<_ACEOF
3675 /* end confdefs.h.  */
3676 #ifdef __STDC__
3677 # include <limits.h>
3678 #else
3679 # include <assert.h>
3680 #endif
3681                      Syntax error
3682 _ACEOF
3683 if { (ac_try="$ac_cpp conftest.$ac_ext"
3684 case "(($ac_try" in
3685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686   *) ac_try_echo=$ac_try;;
3687 esac
3688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3689   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3690   ac_status=$?
3691   grep -v '^ *+' conftest.er1 >conftest.err
3692   rm -f conftest.er1
3693   cat conftest.err >&5
3694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695   (exit $ac_status); } >/dev/null; then
3696   if test -s conftest.err; then
3697     ac_cpp_err=$ac_c_preproc_warn_flag
3698     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3699   else
3700     ac_cpp_err=
3701   fi
3702 else
3703   ac_cpp_err=yes
3704 fi
3705 if test -z "$ac_cpp_err"; then
3706   :
3707 else
3708   echo "$as_me: failed program was:" >&5
3709 sed 's/^/| /' conftest.$ac_ext >&5
3710
3711   # Broken: fails on valid input.
3712 continue
3713 fi
3714
3715 rm -f conftest.err conftest.$ac_ext
3716
3717   # OK, works on sane cases.  Now check whether nonexistent headers
3718   # can be detected and how.
3719   cat >conftest.$ac_ext <<_ACEOF
3720 /* confdefs.h.  */
3721 _ACEOF
3722 cat confdefs.h >>conftest.$ac_ext
3723 cat >>conftest.$ac_ext <<_ACEOF
3724 /* end confdefs.h.  */
3725 #include <ac_nonexistent.h>
3726 _ACEOF
3727 if { (ac_try="$ac_cpp conftest.$ac_ext"
3728 case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3734   ac_status=$?
3735   grep -v '^ *+' conftest.er1 >conftest.err
3736   rm -f conftest.er1
3737   cat conftest.err >&5
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); } >/dev/null; then
3740   if test -s conftest.err; then
3741     ac_cpp_err=$ac_c_preproc_warn_flag
3742     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3743   else
3744     ac_cpp_err=
3745   fi
3746 else
3747   ac_cpp_err=yes
3748 fi
3749 if test -z "$ac_cpp_err"; then
3750   # Broken: success on invalid input.
3751 continue
3752 else
3753   echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756   # Passes both tests.
3757 ac_preproc_ok=:
3758 break
3759 fi
3760
3761 rm -f conftest.err conftest.$ac_ext
3762
3763 done
3764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3765 rm -f conftest.err conftest.$ac_ext
3766 if $ac_preproc_ok; then
3767   break
3768 fi
3769
3770     done
3771     ac_cv_prog_CPP=$CPP
3772
3773 fi
3774   CPP=$ac_cv_prog_CPP
3775 else
3776   ac_cv_prog_CPP=$CPP
3777 fi
3778 { echo "$as_me:$LINENO: result: $CPP" >&5
3779 echo "${ECHO_T}$CPP" >&6; }
3780 ac_preproc_ok=false
3781 for ac_c_preproc_warn_flag in '' yes
3782 do
3783   # Use a header file that comes with gcc, so configuring glibc
3784   # with a fresh cross-compiler works.
3785   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3786   # <limits.h> exists even on freestanding compilers.
3787   # On the NeXT, cc -E runs the code through the compiler's parser,
3788   # not just through cpp. "Syntax error" is here to catch this case.
3789   cat >conftest.$ac_ext <<_ACEOF
3790 /* confdefs.h.  */
3791 _ACEOF
3792 cat confdefs.h >>conftest.$ac_ext
3793 cat >>conftest.$ac_ext <<_ACEOF
3794 /* end confdefs.h.  */
3795 #ifdef __STDC__
3796 # include <limits.h>
3797 #else
3798 # include <assert.h>
3799 #endif
3800                      Syntax error
3801 _ACEOF
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3803 case "(($ac_try" in
3804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805   *) ac_try_echo=$ac_try;;
3806 esac
3807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3809   ac_status=$?
3810   grep -v '^ *+' conftest.er1 >conftest.err
3811   rm -f conftest.er1
3812   cat conftest.err >&5
3813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3814   (exit $ac_status); } >/dev/null; then
3815   if test -s conftest.err; then
3816     ac_cpp_err=$ac_c_preproc_warn_flag
3817     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3818   else
3819     ac_cpp_err=
3820   fi
3821 else
3822   ac_cpp_err=yes
3823 fi
3824 if test -z "$ac_cpp_err"; then
3825   :
3826 else
3827   echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3829
3830   # Broken: fails on valid input.
3831 continue
3832 fi
3833
3834 rm -f conftest.err conftest.$ac_ext
3835
3836   # OK, works on sane cases.  Now check whether nonexistent headers
3837   # can be detected and how.
3838   cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h.  */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h.  */
3844 #include <ac_nonexistent.h>
3845 _ACEOF
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3847 case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3853   ac_status=$?
3854   grep -v '^ *+' conftest.er1 >conftest.err
3855   rm -f conftest.er1
3856   cat conftest.err >&5
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); } >/dev/null; then
3859   if test -s conftest.err; then
3860     ac_cpp_err=$ac_c_preproc_warn_flag
3861     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3862   else
3863     ac_cpp_err=
3864   fi
3865 else
3866   ac_cpp_err=yes
3867 fi
3868 if test -z "$ac_cpp_err"; then
3869   # Broken: success on invalid input.
3870 continue
3871 else
3872   echo "$as_me: failed program was:" >&5
3873 sed 's/^/| /' conftest.$ac_ext >&5
3874
3875   # Passes both tests.
3876 ac_preproc_ok=:
3877 break
3878 fi
3879
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 done
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then
3886   :
3887 else
3888   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3889 See \`config.log' for more details." >&5
3890 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3891 See \`config.log' for more details." >&2;}
3892    { (exit 1); exit 1; }; }
3893 fi
3894
3895 ac_ext=c
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900
3901
3902 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3903 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3904 if test "${ac_cv_path_GREP+set}" = set; then
3905   echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907   # Extract the first word of "grep ggrep" to use in msg output
3908 if test -z "$GREP"; then
3909 set dummy grep ggrep; ac_prog_name=$2
3910 if test "${ac_cv_path_GREP+set}" = set; then
3911   echo $ECHO_N "(cached) $ECHO_C" >&6
3912 else
3913   ac_path_GREP_found=false
3914 # Loop through the user's path and test for each of PROGNAME-LIST
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_prog in grep ggrep; do
3921   for ac_exec_ext in '' $ac_executable_extensions; do
3922     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3923     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3924     # Check for GNU ac_path_GREP and select it if it is found.
3925   # Check for GNU $ac_path_GREP
3926 case `"$ac_path_GREP" --version 2>&1` in
3927 *GNU*)
3928   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3929 *)
3930   ac_count=0
3931   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3932   while :
3933   do
3934     cat "conftest.in" "conftest.in" >"conftest.tmp"
3935     mv "conftest.tmp" "conftest.in"
3936     cp "conftest.in" "conftest.nl"
3937     echo 'GREP' >> "conftest.nl"
3938     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3939     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3940     ac_count=`expr $ac_count + 1`
3941     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3942       # Best one so far, save it but keep looking for a better one
3943       ac_cv_path_GREP="$ac_path_GREP"
3944       ac_path_GREP_max=$ac_count
3945     fi
3946     # 10*(2^10) chars as input seems more than enough
3947     test $ac_count -gt 10 && break
3948   done
3949   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3950 esac
3951
3952
3953     $ac_path_GREP_found && break 3
3954   done
3955 done
3956
3957 done
3958 IFS=$as_save_IFS
3959
3960
3961 fi
3962
3963 GREP="$ac_cv_path_GREP"
3964 if test -z "$GREP"; then
3965   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3966 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3967    { (exit 1); exit 1; }; }
3968 fi
3969
3970 else
3971   ac_cv_path_GREP=$GREP
3972 fi
3973
3974
3975 fi
3976 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3977 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3978  GREP="$ac_cv_path_GREP"
3979
3980
3981 { echo "$as_me:$LINENO: checking for egrep" >&5
3982 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3983 if test "${ac_cv_path_EGREP+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3987    then ac_cv_path_EGREP="$GREP -E"
3988    else
3989      # Extract the first word of "egrep" to use in msg output
3990 if test -z "$EGREP"; then
3991 set dummy egrep; ac_prog_name=$2
3992 if test "${ac_cv_path_EGREP+set}" = set; then
3993   echo $ECHO_N "(cached) $ECHO_C" >&6
3994 else
3995   ac_path_EGREP_found=false
3996 # Loop through the user's path and test for each of PROGNAME-LIST
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3999 do
4000   IFS=$as_save_IFS
4001   test -z "$as_dir" && as_dir=.
4002   for ac_prog in egrep; do
4003   for ac_exec_ext in '' $ac_executable_extensions; do
4004     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4005     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4006     # Check for GNU ac_path_EGREP and select it if it is found.
4007   # Check for GNU $ac_path_EGREP
4008 case `"$ac_path_EGREP" --version 2>&1` in
4009 *GNU*)
4010   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4011 *)
4012   ac_count=0
4013   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4014   while :
4015   do
4016     cat "conftest.in" "conftest.in" >"conftest.tmp"
4017     mv "conftest.tmp" "conftest.in"
4018     cp "conftest.in" "conftest.nl"
4019     echo 'EGREP' >> "conftest.nl"
4020     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4021     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4022     ac_count=`expr $ac_count + 1`
4023     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4024       # Best one so far, save it but keep looking for a better one
4025       ac_cv_path_EGREP="$ac_path_EGREP"
4026       ac_path_EGREP_max=$ac_count
4027     fi
4028     # 10*(2^10) chars as input seems more than enough
4029     test $ac_count -gt 10 && break
4030   done
4031   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4032 esac
4033
4034
4035     $ac_path_EGREP_found && break 3
4036   done
4037 done
4038
4039 done
4040 IFS=$as_save_IFS
4041
4042
4043 fi
4044
4045 EGREP="$ac_cv_path_EGREP"
4046 if test -z "$EGREP"; then
4047   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4048 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4049    { (exit 1); exit 1; }; }
4050 fi
4051
4052 else
4053   ac_cv_path_EGREP=$EGREP
4054 fi
4055
4056
4057    fi
4058 fi
4059 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4060 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4061  EGREP="$ac_cv_path_EGREP"
4062
4063
4064 if test $ac_cv_c_compiler_gnu = yes; then
4065     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4066 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4067 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4068   echo $ECHO_N "(cached) $ECHO_C" >&6
4069 else
4070     ac_pattern="Autoconf.*'x'"
4071   cat >conftest.$ac_ext <<_ACEOF
4072 /* confdefs.h.  */
4073 _ACEOF
4074 cat confdefs.h >>conftest.$ac_ext
4075 cat >>conftest.$ac_ext <<_ACEOF
4076 /* end confdefs.h.  */
4077 #include <sgtty.h>
4078 Autoconf TIOCGETP
4079 _ACEOF
4080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4081   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4082   ac_cv_prog_gcc_traditional=yes
4083 else
4084   ac_cv_prog_gcc_traditional=no
4085 fi
4086 rm -f conftest*
4087
4088
4089   if test $ac_cv_prog_gcc_traditional = no; then
4090     cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h.  */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h.  */
4096 #include <termio.h>
4097 Autoconf TCGETA
4098 _ACEOF
4099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4100   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4101   ac_cv_prog_gcc_traditional=yes
4102 fi
4103 rm -f conftest*
4104
4105   fi
4106 fi
4107 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4108 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4109   if test $ac_cv_prog_gcc_traditional = yes; then
4110     CC="$CC -traditional"
4111   fi
4112 fi
4113
4114 BASECC=`basename $CC`
4115 have_gcc=no
4116 if test "x$BASECC" = xgcc; then
4117    cat >>confdefs.h <<\_ACEOF
4118 #define HAVE_GCC 1
4119 _ACEOF
4120
4121    have_gcc=yes
4122 fi
4123 # Extract the first word of "$CXX", so it can be a program name with args.
4124 set dummy $CXX; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_CXX+set}" = set; then
4128   echo $ECHO_N "(cached) $ECHO_C" >&6
4129 else
4130   case $CXX in
4131   [\\/]* | ?:[\\/]*)
4132   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4133   ;;
4134   *)
4135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   test -z "$as_dir" && as_dir=.
4140   for ac_exec_ext in '' $ac_executable_extensions; do
4141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4142     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144     break 2
4145   fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4151   ;;
4152 esac
4153 fi
4154 CXX=$ac_cv_path_CXX
4155 if test -n "$CXX"; then
4156   { echo "$as_me:$LINENO: result: $CXX" >&5
4157 echo "${ECHO_T}$CXX" >&6; }
4158 else
4159   { echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6; }
4161 fi
4162
4163
4164 if test ! -e $CXX; then
4165    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4166 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4167    { (exit 1); exit 1; }; }
4168 fi
4169
4170 # Find a good install program.  We prefer a C program (faster),
4171 # so one script is as good as another.  But avoid the broken or
4172 # incompatible versions:
4173 # SysV /etc/install, /usr/sbin/install
4174 # SunOS /usr/etc/install
4175 # IRIX /sbin/install
4176 # AIX /bin/install
4177 # AmigaOS /C/install, which installs bootblocks on floppy discs
4178 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4179 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4180 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4181 # OS/2's system install, which has a completely different semantic
4182 # ./install, which can be erroneously created by make from ./install.sh.
4183 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4184 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4185 if test -z "$INSTALL"; then
4186 if test "${ac_cv_path_install+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 for as_dir in $PATH
4191 do
4192   IFS=$as_save_IFS
4193   test -z "$as_dir" && as_dir=.
4194   # Account for people who put trailing slashes in PATH elements.
4195 case $as_dir/ in
4196   ./ | .// | /cC/* | \
4197   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4198   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4199   /usr/ucb/* ) ;;
4200   *)
4201     # OSF1 and SCO ODT 3.0 have their own names for install.
4202     # Don't use installbsd from OSF since it installs stuff as root
4203     # by default.
4204     for ac_prog in ginstall scoinst install; do
4205       for ac_exec_ext in '' $ac_executable_extensions; do
4206         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4207           if test $ac_prog = install &&
4208             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209             # AIX install.  It has an incompatible calling convention.
4210             :
4211           elif test $ac_prog = install &&
4212             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4213             # program-specific install script used by HP pwplus--don't use.
4214             :
4215           else
4216             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4217             break 3
4218           fi
4219         fi
4220       done
4221     done
4222     ;;
4223 esac
4224 done
4225 IFS=$as_save_IFS
4226
4227
4228 fi
4229   if test "${ac_cv_path_install+set}" = set; then
4230     INSTALL=$ac_cv_path_install
4231   else
4232     # As a last resort, use the slow shell script.  Don't cache a
4233     # value for INSTALL within a source directory, because that will
4234     # break other packages using the cache if that directory is
4235     # removed, or if the value is a relative name.
4236     INSTALL=$ac_install_sh
4237   fi
4238 fi
4239 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4240 echo "${ECHO_T}$INSTALL" >&6; }
4241
4242 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4243 # It thinks the first close brace ends the variable substitution.
4244 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4245
4246 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4247
4248 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4249
4250 if test -n "$ac_tool_prefix"; then
4251   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4252 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_RANLIB+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   if test -n "$RANLIB"; then
4259   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4263 do
4264   IFS=$as_save_IFS
4265   test -z "$as_dir" && as_dir=.
4266   for ac_exec_ext in '' $ac_executable_extensions; do
4267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4268     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4269     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270     break 2
4271   fi
4272 done
4273 done
4274 IFS=$as_save_IFS
4275
4276 fi
4277 fi
4278 RANLIB=$ac_cv_prog_RANLIB
4279 if test -n "$RANLIB"; then
4280   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4281 echo "${ECHO_T}$RANLIB" >&6; }
4282 else
4283   { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4285 fi
4286
4287
4288 fi
4289 if test -z "$ac_cv_prog_RANLIB"; then
4290   ac_ct_RANLIB=$RANLIB
4291   # Extract the first word of "ranlib", so it can be a program name with args.
4292 set dummy ranlib; ac_word=$2
4293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4295 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   if test -n "$ac_ct_RANLIB"; then
4299   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4300 else
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 for as_dir in $PATH
4303 do
4304   IFS=$as_save_IFS
4305   test -z "$as_dir" && as_dir=.
4306   for ac_exec_ext in '' $ac_executable_extensions; do
4307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4308     ac_cv_prog_ac_ct_RANLIB="ranlib"
4309     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4310     break 2
4311   fi
4312 done
4313 done
4314 IFS=$as_save_IFS
4315
4316 fi
4317 fi
4318 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4319 if test -n "$ac_ct_RANLIB"; then
4320   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4321 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4322 else
4323   { echo "$as_me:$LINENO: result: no" >&5
4324 echo "${ECHO_T}no" >&6; }
4325 fi
4326
4327   if test "x$ac_ct_RANLIB" = x; then
4328     RANLIB=":"
4329   else
4330     case $cross_compiling:$ac_tool_warned in
4331 yes:)
4332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4333 whose name does not start with the host triplet.  If you think this
4334 configuration is useful to you, please write to autoconf@gnu.org." >&5
4335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4336 whose name does not start with the host triplet.  If you think this
4337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4338 ac_tool_warned=yes ;;
4339 esac
4340     RANLIB=$ac_ct_RANLIB
4341   fi
4342 else
4343   RANLIB="$ac_cv_prog_RANLIB"
4344 fi
4345
4346 # Extract the first word of "mv", so it can be a program name with args.
4347 set dummy mv; ac_word=$2
4348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4350 if test "${ac_cv_path_MV+set}" = set; then
4351   echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353   case $MV in
4354   [\\/]* | ?:[\\/]*)
4355   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4356   ;;
4357   *)
4358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4360 do
4361   IFS=$as_save_IFS
4362   test -z "$as_dir" && as_dir=.
4363   for ac_exec_ext in '' $ac_executable_extensions; do
4364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4365     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4366     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367     break 2
4368   fi
4369 done
4370 done
4371 IFS=$as_save_IFS
4372
4373   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4374   ;;
4375 esac
4376 fi
4377 MV=$ac_cv_path_MV
4378 if test -n "$MV"; then
4379   { echo "$as_me:$LINENO: result: $MV" >&5
4380 echo "${ECHO_T}$MV" >&6; }
4381 else
4382   { echo "$as_me:$LINENO: result: no" >&5
4383 echo "${ECHO_T}no" >&6; }
4384 fi
4385
4386
4387 # Extract the first word of "rm", so it can be a program name with args.
4388 set dummy rm; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_path_RM+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   case $RM in
4395   [\\/]* | ?:[\\/]*)
4396   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4397   ;;
4398   *)
4399   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4400 for as_dir in $PATH
4401 do
4402   IFS=$as_save_IFS
4403   test -z "$as_dir" && as_dir=.
4404   for ac_exec_ext in '' $ac_executable_extensions; do
4405   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4406     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4407     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4408     break 2
4409   fi
4410 done
4411 done
4412 IFS=$as_save_IFS
4413
4414   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4415   ;;
4416 esac
4417 fi
4418 RM=$ac_cv_path_RM
4419 if test -n "$RM"; then
4420   { echo "$as_me:$LINENO: result: $RM" >&5
4421 echo "${ECHO_T}$RM" >&6; }
4422 else
4423   { echo "$as_me:$LINENO: result: no" >&5
4424 echo "${ECHO_T}no" >&6; }
4425 fi
4426
4427
4428 # Extract the first word of "cp", so it can be a program name with args.
4429 set dummy cp; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_path_CP+set}" = set; then
4433   echo $ECHO_N "(cached) $ECHO_C" >&6
4434 else
4435   case $CP in
4436   [\\/]* | ?:[\\/]*)
4437   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4438   ;;
4439   *)
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   for ac_exec_ext in '' $ac_executable_extensions; do
4446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4447     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449     break 2
4450   fi
4451 done
4452 done
4453 IFS=$as_save_IFS
4454
4455   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4456   ;;
4457 esac
4458 fi
4459 CP=$ac_cv_path_CP
4460 if test -n "$CP"; then
4461   { echo "$as_me:$LINENO: result: $CP" >&5
4462 echo "${ECHO_T}$CP" >&6; }
4463 else
4464   { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4466 fi
4467
4468
4469 # Extract the first word of "sed", so it can be a program name with args.
4470 set dummy sed; ac_word=$2
4471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4473 if test "${ac_cv_path_SED+set}" = set; then
4474   echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476   case $SED in
4477   [\\/]* | ?:[\\/]*)
4478   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4479   ;;
4480   *)
4481   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4483 do
4484   IFS=$as_save_IFS
4485   test -z "$as_dir" && as_dir=.
4486   for ac_exec_ext in '' $ac_executable_extensions; do
4487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4488     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490     break 2
4491   fi
4492 done
4493 done
4494 IFS=$as_save_IFS
4495
4496   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4497   ;;
4498 esac
4499 fi
4500 SED=$ac_cv_path_SED
4501 if test -n "$SED"; then
4502   { echo "$as_me:$LINENO: result: $SED" >&5
4503 echo "${ECHO_T}$SED" >&6; }
4504 else
4505   { echo "$as_me:$LINENO: result: no" >&5
4506 echo "${ECHO_T}no" >&6; }
4507 fi
4508
4509
4510 # Extract the first word of "echo", so it can be a program name with args.
4511 set dummy echo; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_ECHO+set}" = set; then
4515   echo $ECHO_N "(cached) $ECHO_C" >&6
4516 else
4517   case $ECHO in
4518   [\\/]* | ?:[\\/]*)
4519   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4520   ;;
4521   *)
4522   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4524 do
4525   IFS=$as_save_IFS
4526   test -z "$as_dir" && as_dir=.
4527   for ac_exec_ext in '' $ac_executable_extensions; do
4528   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4529     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4530     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4531     break 2
4532   fi
4533 done
4534 done
4535 IFS=$as_save_IFS
4536
4537   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4538   ;;
4539 esac
4540 fi
4541 ECHO=$ac_cv_path_ECHO
4542 if test -n "$ECHO"; then
4543   { echo "$as_me:$LINENO: result: $ECHO" >&5
4544 echo "${ECHO_T}$ECHO" >&6; }
4545 else
4546   { echo "$as_me:$LINENO: result: no" >&5
4547 echo "${ECHO_T}no" >&6; }
4548 fi
4549
4550
4551 # Extract the first word of "cmp", so it can be a program name with args.
4552 set dummy cmp; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_path_CMP+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   case $CMP in
4559   [\\/]* | ?:[\\/]*)
4560   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4561   ;;
4562   *)
4563   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566   IFS=$as_save_IFS
4567   test -z "$as_dir" && as_dir=.
4568   for ac_exec_ext in '' $ac_executable_extensions; do
4569   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4570     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572     break 2
4573   fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4579   ;;
4580 esac
4581 fi
4582 CMP=$ac_cv_path_CMP
4583 if test -n "$CMP"; then
4584   { echo "$as_me:$LINENO: result: $CMP" >&5
4585 echo "${ECHO_T}$CMP" >&6; }
4586 else
4587   { echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6; }
4589 fi
4590
4591
4592 # Extract the first word of "tbl", so it can be a program name with args.
4593 set dummy tbl; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_path_TBL+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   case $TBL in
4600   [\\/]* | ?:[\\/]*)
4601   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4602   ;;
4603   *)
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609   for ac_exec_ext in '' $ac_executable_extensions; do
4610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4611     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4613     break 2
4614   fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4620   ;;
4621 esac
4622 fi
4623 TBL=$ac_cv_path_TBL
4624 if test -n "$TBL"; then
4625   { echo "$as_me:$LINENO: result: $TBL" >&5
4626 echo "${ECHO_T}$TBL" >&6; }
4627 else
4628   { echo "$as_me:$LINENO: result: no" >&5
4629 echo "${ECHO_T}no" >&6; }
4630 fi
4631
4632
4633 # Extract the first word of "ar", so it can be a program name with args.
4634 set dummy ar; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_path_AR+set}" = set; then
4638   echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4640   case $AR in
4641   [\\/]* | ?:[\\/]*)
4642   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4643   ;;
4644   *)
4645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648   IFS=$as_save_IFS
4649   test -z "$as_dir" && as_dir=.
4650   for ac_exec_ext in '' $ac_executable_extensions; do
4651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4652     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4661   ;;
4662 esac
4663 fi
4664 AR=$ac_cv_path_AR
4665 if test -n "$AR"; then
4666   { echo "$as_me:$LINENO: result: $AR" >&5
4667 echo "${ECHO_T}$AR" >&6; }
4668 else
4669   { echo "$as_me:$LINENO: result: no" >&5
4670 echo "${ECHO_T}no" >&6; }
4671 fi
4672
4673
4674 # Extract the first word of "openssl", so it can be a program name with args.
4675 set dummy openssl; ac_word=$2
4676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4678 if test "${ac_cv_path_OPENSSL+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   case $OPENSSL in
4682   [\\/]* | ?:[\\/]*)
4683   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4684   ;;
4685   *)
4686   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689   IFS=$as_save_IFS
4690   test -z "$as_dir" && as_dir=.
4691   for ac_exec_ext in '' $ac_executable_extensions; do
4692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4693     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4695     break 2
4696   fi
4697 done
4698 done
4699 IFS=$as_save_IFS
4700
4701   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4702   ;;
4703 esac
4704 fi
4705 OPENSSL=$ac_cv_path_OPENSSL
4706 if test -n "$OPENSSL"; then
4707   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4708 echo "${ECHO_T}$OPENSSL" >&6; }
4709 else
4710   { echo "$as_me:$LINENO: result: no" >&5
4711 echo "${ECHO_T}no" >&6; }
4712 fi
4713
4714
4715 # Extract the first word of "mtx", so it can be a program name with args.
4716 set dummy mtx; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_MTX+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   case $MTX in
4723   [\\/]* | ?:[\\/]*)
4724   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4725   ;;
4726   *)
4727   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4728 for as_dir in $PATH
4729 do
4730   IFS=$as_save_IFS
4731   test -z "$as_dir" && as_dir=.
4732   for ac_exec_ext in '' $ac_executable_extensions; do
4733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4734     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4735     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4736     break 2
4737   fi
4738 done
4739 done
4740 IFS=$as_save_IFS
4741
4742   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4743   ;;
4744 esac
4745 fi
4746 MTX=$ac_cv_path_MTX
4747 if test -n "$MTX"; then
4748   { echo "$as_me:$LINENO: result: $MTX" >&5
4749 echo "${ECHO_T}$MTX" >&6; }
4750 else
4751   { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4753 fi
4754
4755
4756 # Extract the first word of "dd", so it can be a program name with args.
4757 set dummy dd; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_DD+set}" = set; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   case $DD in
4764   [\\/]* | ?:[\\/]*)
4765   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4766   ;;
4767   *)
4768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769 for as_dir in $PATH
4770 do
4771   IFS=$as_save_IFS
4772   test -z "$as_dir" && as_dir=.
4773   for ac_exec_ext in '' $ac_executable_extensions; do
4774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4775     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4777     break 2
4778   fi
4779 done
4780 done
4781 IFS=$as_save_IFS
4782
4783   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4784   ;;
4785 esac
4786 fi
4787 DD=$ac_cv_path_DD
4788 if test -n "$DD"; then
4789   { echo "$as_me:$LINENO: result: $DD" >&5
4790 echo "${ECHO_T}$DD" >&6; }
4791 else
4792   { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4794 fi
4795
4796
4797 # Extract the first word of "mkisofs", so it can be a program name with args.
4798 set dummy mkisofs; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_path_MKISOFS+set}" = set; then
4802   echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804   case $MKISOFS in
4805   [\\/]* | ?:[\\/]*)
4806   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4807   ;;
4808   *)
4809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4811 do
4812   IFS=$as_save_IFS
4813   test -z "$as_dir" && as_dir=.
4814   for ac_exec_ext in '' $ac_executable_extensions; do
4815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4816     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4817     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818     break 2
4819   fi
4820 done
4821 done
4822 IFS=$as_save_IFS
4823
4824   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4825   ;;
4826 esac
4827 fi
4828 MKISOFS=$ac_cv_path_MKISOFS
4829 if test -n "$MKISOFS"; then
4830   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4831 echo "${ECHO_T}$MKISOFS" >&6; }
4832 else
4833   { echo "$as_me:$LINENO: result: no" >&5
4834 echo "${ECHO_T}no" >&6; }
4835 fi
4836
4837
4838 # Extract the first word of "python", so it can be a program name with args.
4839 set dummy python; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_path_PYTHON+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   case $PYTHON in
4846   [\\/]* | ?:[\\/]*)
4847   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4848   ;;
4849   *)
4850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853   IFS=$as_save_IFS
4854   test -z "$as_dir" && as_dir=.
4855   for ac_exec_ext in '' $ac_executable_extensions; do
4856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4857     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859     break 2
4860   fi
4861 done
4862 done
4863 IFS=$as_save_IFS
4864
4865   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4866   ;;
4867 esac
4868 fi
4869 PYTHON=$ac_cv_path_PYTHON
4870 if test -n "$PYTHON"; then
4871   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4872 echo "${ECHO_T}$PYTHON" >&6; }
4873 else
4874   { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4876 fi
4877
4878
4879 # Extract the first word of "growisofs", so it can be a program name with args.
4880 set dummy growisofs; ac_word=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4884   echo $ECHO_N "(cached) $ECHO_C" >&6
4885 else
4886   case $GROWISOFS in
4887   [\\/]* | ?:[\\/]*)
4888   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4889   ;;
4890   *)
4891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4893 do
4894   IFS=$as_save_IFS
4895   test -z "$as_dir" && as_dir=.
4896   for ac_exec_ext in '' $ac_executable_extensions; do
4897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4898     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900     break 2
4901   fi
4902 done
4903 done
4904 IFS=$as_save_IFS
4905
4906   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4907   ;;
4908 esac
4909 fi
4910 GROWISOFS=$ac_cv_path_GROWISOFS
4911 if test -n "$GROWISOFS"; then
4912   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4913 echo "${ECHO_T}$GROWISOFS" >&6; }
4914 else
4915   { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4917 fi
4918
4919
4920 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4921 set dummy dvd+rw-mediainfo; ac_word=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4925   echo $ECHO_N "(cached) $ECHO_C" >&6
4926 else
4927   case $DVDRWMEDIAINFO in
4928   [\\/]* | ?:[\\/]*)
4929   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4930   ;;
4931   *)
4932   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4933 for as_dir in $PATH
4934 do
4935   IFS=$as_save_IFS
4936   test -z "$as_dir" && as_dir=.
4937   for ac_exec_ext in '' $ac_executable_extensions; do
4938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4939     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4941     break 2
4942   fi
4943 done
4944 done
4945 IFS=$as_save_IFS
4946
4947   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4948   ;;
4949 esac
4950 fi
4951 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4952 if test -n "$DVDRWMEDIAINFO"; then
4953   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4954 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4955 else
4956   { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4958 fi
4959
4960
4961 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4962 set dummy dvd+rw-format; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4966   echo $ECHO_N "(cached) $ECHO_C" >&6
4967 else
4968   case $DVDRWFORMAT in
4969   [\\/]* | ?:[\\/]*)
4970   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4971   ;;
4972   *)
4973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974 for as_dir in $PATH
4975 do
4976   IFS=$as_save_IFS
4977   test -z "$as_dir" && as_dir=.
4978   for ac_exec_ext in '' $ac_executable_extensions; do
4979   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4980     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4981     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982     break 2
4983   fi
4984 done
4985 done
4986 IFS=$as_save_IFS
4987
4988   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4989   ;;
4990 esac
4991 fi
4992 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4993 if test -n "$DVDRWFORMAT"; then
4994   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4995 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4996 else
4997   { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 # Extract the first word of "pkg-config", so it can be a program name with args.
5003 set dummy pkg-config; ac_word=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5007   echo $ECHO_N "(cached) $ECHO_C" >&6
5008 else
5009   case $PKGCONFIG in
5010   [\\/]* | ?:[\\/]*)
5011   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5012   ;;
5013   *)
5014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5030   ;;
5031 esac
5032 fi
5033 PKGCONFIG=$ac_cv_path_PKGCONFIG
5034 if test -n "$PKGCONFIG"; then
5035   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5036 echo "${ECHO_T}$PKGCONFIG" >&6; }
5037 else
5038   { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043
5044 if test "x$WXCONFIG" = x; then
5045   WXCONFIG=wx-config
5046 fi
5047 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5048 set dummy ${WXCONFIG}; ac_word=$2
5049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5051 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   case $WXCONFIG in
5055   [\\/]* | ?:[\\/]*)
5056   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5057   ;;
5058   *)
5059   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 for as_dir in $PATH
5061 do
5062   IFS=$as_save_IFS
5063   test -z "$as_dir" && as_dir=.
5064   for ac_exec_ext in '' $ac_executable_extensions; do
5065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5068     break 2
5069   fi
5070 done
5071 done
5072 IFS=$as_save_IFS
5073
5074   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5075   ;;
5076 esac
5077 fi
5078 WXCONFIG=$ac_cv_path_WXCONFIG
5079 if test -n "$WXCONFIG"; then
5080   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5081 echo "${ECHO_T}$WXCONFIG" >&6; }
5082 else
5083   { echo "$as_me:$LINENO: result: no" >&5
5084 echo "${ECHO_T}no" >&6; }
5085 fi
5086
5087
5088
5089 # Extract the first word of "cdrecord", so it can be a program name with args.
5090 set dummy cdrecord; ac_word=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_CDRECORD+set}" = set; then
5094   echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096   case $CDRECORD in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_exec_ext in '' $ac_executable_extensions; do
5107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5108     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113 done
5114 IFS=$as_save_IFS
5115
5116   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5117   ;;
5118 esac
5119 fi
5120 CDRECORD=$ac_cv_path_CDRECORD
5121 if test -n "$CDRECORD"; then
5122   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5123 echo "${ECHO_T}$CDRECORD" >&6; }
5124 else
5125   { echo "$as_me:$LINENO: result: no" >&5
5126 echo "${ECHO_T}no" >&6; }
5127 fi
5128
5129
5130 # Extract the first word of "pidof", so it can be a program name with args.
5131 set dummy pidof; ac_word=$2
5132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5134 if test "${ac_cv_path_PIDOF+set}" = set; then
5135   echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137   case $PIDOF in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147   for ac_exec_ext in '' $ac_executable_extensions; do
5148   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5149     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154 done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5158   ;;
5159 esac
5160 fi
5161 PIDOF=$ac_cv_path_PIDOF
5162 if test -n "$PIDOF"; then
5163   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5164 echo "${ECHO_T}$PIDOF" >&6; }
5165 else
5166   { echo "$as_me:$LINENO: result: no" >&5
5167 echo "${ECHO_T}no" >&6; }
5168 fi
5169
5170
5171 for ac_prog in gawk mawk nawk awk
5172 do
5173   # Extract the first word of "$ac_prog", so it can be a program name with args.
5174 set dummy $ac_prog; ac_word=$2
5175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5177 if test "${ac_cv_prog_AWK+set}" = set; then
5178   echo $ECHO_N "(cached) $ECHO_C" >&6
5179 else
5180   if test -n "$AWK"; then
5181   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188   for ac_exec_ext in '' $ac_executable_extensions; do
5189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5190     ac_cv_prog_AWK="$ac_prog"
5191     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195 done
5196 IFS=$as_save_IFS
5197
5198 fi
5199 fi
5200 AWK=$ac_cv_prog_AWK
5201 if test -n "$AWK"; then
5202   { echo "$as_me:$LINENO: result: $AWK" >&5
5203 echo "${ECHO_T}$AWK" >&6; }
5204 else
5205   { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5207 fi
5208
5209
5210   test -n "$AWK" && break
5211 done
5212
5213 # Some AWK programs fail, so test it and warn the user
5214 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5215       { if ((prog == $2) || (("(" prog ")") == $2) ||
5216            (("" prog "") == $2) ||
5217            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5218 else
5219   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5220    The regex engine of $AWK is too broken to be used you
5221    might want to install GNU AWK.
5222    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5223 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5224    The regex engine of $AWK is too broken to be used you
5225    might want to install GNU AWK.
5226    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5227    { (exit 1); exit 1; }; }
5228 fi
5229 THE_AWK=$AWK
5230 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5231 set dummy $THE_AWK; ac_word=$2
5232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5234 if test "${ac_cv_path_AWK+set}" = set; then
5235   echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237   case $AWK in
5238   [\\/]* | ?:[\\/]*)
5239   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5240   ;;
5241   *)
5242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH
5244 do
5245   IFS=$as_save_IFS
5246   test -z "$as_dir" && as_dir=.
5247   for ac_exec_ext in '' $ac_executable_extensions; do
5248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5249     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5251     break 2
5252   fi
5253 done
5254 done
5255 IFS=$as_save_IFS
5256
5257   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5258   ;;
5259 esac
5260 fi
5261 AWK=$ac_cv_path_AWK
5262 if test -n "$AWK"; then
5263   { echo "$as_me:$LINENO: result: $AWK" >&5
5264 echo "${ECHO_T}$AWK" >&6; }
5265 else
5266   { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5268 fi
5269
5270
5271
5272 test -n "$ARFLAG" || ARFLAGS="cr"
5273
5274
5275 MAKE_SHELL=/bin/sh
5276
5277
5278
5279
5280
5281
5282
5283 # Make sure we can run config.sub.
5284 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5285   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5286 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5287    { (exit 1); exit 1; }; }
5288
5289 { echo "$as_me:$LINENO: checking build system type" >&5
5290 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5291 if test "${ac_cv_build+set}" = set; then
5292   echo $ECHO_N "(cached) $ECHO_C" >&6
5293 else
5294   ac_build_alias=$build_alias
5295 test "x$ac_build_alias" = x &&
5296   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5297 test "x$ac_build_alias" = x &&
5298   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5300    { (exit 1); exit 1; }; }
5301 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5302   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5304    { (exit 1); exit 1; }; }
5305
5306 fi
5307 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5308 echo "${ECHO_T}$ac_cv_build" >&6; }
5309 case $ac_cv_build in
5310 *-*-*) ;;
5311 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5312 echo "$as_me: error: invalid value of canonical build" >&2;}
5313    { (exit 1); exit 1; }; };;
5314 esac
5315 build=$ac_cv_build
5316 ac_save_IFS=$IFS; IFS='-'
5317 set x $ac_cv_build
5318 shift
5319 build_cpu=$1
5320 build_vendor=$2
5321 shift; shift
5322 # Remember, the first character of IFS is used to create $*,
5323 # except with old shells:
5324 build_os=$*
5325 IFS=$ac_save_IFS
5326 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5327
5328
5329
5330 { echo "$as_me:$LINENO: checking host system type" >&5
5331 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5332 if test "${ac_cv_host+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   if test "x$host_alias" = x; then
5336   ac_cv_host=$ac_cv_build
5337 else
5338   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5339     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5340 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5341    { (exit 1); exit 1; }; }
5342 fi
5343
5344 fi
5345 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5346 echo "${ECHO_T}$ac_cv_host" >&6; }
5347 case $ac_cv_host in
5348 *-*-*) ;;
5349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5350 echo "$as_me: error: invalid value of canonical host" >&2;}
5351    { (exit 1); exit 1; }; };;
5352 esac
5353 host=$ac_cv_host
5354 ac_save_IFS=$IFS; IFS='-'
5355 set x $ac_cv_host
5356 shift
5357 host_cpu=$1
5358 host_vendor=$2
5359 shift; shift
5360 # Remember, the first character of IFS is used to create $*,
5361 # except with old shells:
5362 host_os=$*
5363 IFS=$ac_save_IFS
5364 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5365
5366
5367 case $host_os in
5368   *cygwin* ) CYGWIN=yes;;
5369          * ) CYGWIN=no;;
5370 esac
5371
5372 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5373 then
5374
5375
5376 if $TRUEPRG; then
5377   HAVE_SUN_OS_TRUE=
5378   HAVE_SUN_OS_FALSE='#'
5379 else
5380   HAVE_SUN_OS_TRUE='#'
5381   HAVE_SUN_OS_FALSE=
5382 fi
5383         cat >>confdefs.h <<\_ACEOF
5384 #define HAVE_SUN_OS 1
5385 _ACEOF
5386
5387 else
5388
5389
5390 if $FALSEPRG; then
5391   HAVE_SUN_OS_TRUE=
5392   HAVE_SUN_OS_FALSE='#'
5393 else
5394   HAVE_SUN_OS_TRUE='#'
5395   HAVE_SUN_OS_FALSE=
5396 fi
5397 fi
5398
5399 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5400 then
5401
5402
5403 if $TRUEPRG; then
5404   HAVE_OSF1_OS_TRUE=
5405   HAVE_OSF1_OS_FALSE='#'
5406 else
5407   HAVE_OSF1_OS_TRUE='#'
5408   HAVE_OSF1_OS_FALSE=
5409 fi
5410         cat >>confdefs.h <<\_ACEOF
5411 #define HAVE_OSF1_OS 1
5412 _ACEOF
5413
5414 else
5415
5416
5417 if $FALSEPRG; then
5418   HAVE_OSF1_OS_TRUE=
5419   HAVE_OSF1_OS_FALSE='#'
5420 else
5421   HAVE_OSF1_OS_TRUE='#'
5422   HAVE_OSF1_OS_FALSE=
5423 fi
5424 fi
5425
5426 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5427 then
5428
5429
5430 if $TRUEPRG; then
5431   HAVE_AIX_OS_TRUE=
5432   HAVE_AIX_OS_FALSE='#'
5433 else
5434   HAVE_AIX_OS_TRUE='#'
5435   HAVE_AIX_OS_FALSE=
5436 fi
5437         cat >>confdefs.h <<\_ACEOF
5438 #define HAVE_AIX_OS 1
5439 _ACEOF
5440
5441 else
5442
5443
5444 if $FALSEPRG; then
5445   HAVE_AIX_OS_TRUE=
5446   HAVE_AIX_OS_FALSE='#'
5447 else
5448   HAVE_AIX_OS_TRUE='#'
5449   HAVE_AIX_OS_FALSE=
5450 fi
5451 fi
5452
5453 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5454 then
5455
5456
5457 if $TRUEPRG; then
5458   HAVE_HPUX_OS_TRUE=
5459   HAVE_HPUX_OS_FALSE='#'
5460 else
5461   HAVE_HPUX_OS_TRUE='#'
5462   HAVE_HPUX_OS_FALSE=
5463 fi
5464         cat >>confdefs.h <<\_ACEOF
5465 #define HAVE_HPUX_OS 1
5466 _ACEOF
5467
5468 else
5469
5470
5471 if $FALSEPRG; then
5472   HAVE_HPUX_OS_TRUE=
5473   HAVE_HPUX_OS_FALSE='#'
5474 else
5475   HAVE_HPUX_OS_TRUE='#'
5476   HAVE_HPUX_OS_FALSE=
5477 fi
5478 fi
5479
5480 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5481 then
5482
5483
5484 if $TRUEPRG; then
5485   HAVE_LINUX_OS_TRUE=
5486   HAVE_LINUX_OS_FALSE='#'
5487 else
5488   HAVE_LINUX_OS_TRUE='#'
5489   HAVE_LINUX_OS_FALSE=
5490 fi
5491         cat >>confdefs.h <<\_ACEOF
5492 #define HAVE_LINUX_OS 1
5493 _ACEOF
5494
5495 else
5496
5497
5498 if $FALSEPRG; then
5499   HAVE_LINUX_OS_TRUE=
5500   HAVE_LINUX_OS_FALSE='#'
5501 else
5502   HAVE_LINUX_OS_TRUE='#'
5503   HAVE_LINUX_OS_FALSE=
5504 fi
5505 fi
5506
5507 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5508 then
5509
5510
5511 if $TRUEPRG; then
5512   HAVE_FREEBSD_OS_TRUE=
5513   HAVE_FREEBSD_OS_FALSE='#'
5514 else
5515   HAVE_FREEBSD_OS_TRUE='#'
5516   HAVE_FREEBSD_OS_FALSE=
5517 fi
5518         cat >>confdefs.h <<\_ACEOF
5519 #define HAVE_FREEBSD_OS 1
5520 _ACEOF
5521
5522 else
5523
5524
5525 if $FALSEPRG; then
5526   HAVE_FREEBSD_OS_TRUE=
5527   HAVE_FREEBSD_OS_FALSE='#'
5528 else
5529   HAVE_FREEBSD_OS_TRUE='#'
5530   HAVE_FREEBSD_OS_FALSE=
5531 fi
5532 fi
5533
5534 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5535 then
5536
5537
5538 if $TRUEPRG; then
5539   HAVE_NETBSD_OS_TRUE=
5540   HAVE_NETBSD_OS_FALSE='#'
5541 else
5542   HAVE_NETBSD_OS_TRUE='#'
5543   HAVE_NETBSD_OS_FALSE=
5544 fi
5545         cat >>confdefs.h <<\_ACEOF
5546 #define HAVE_NETBSD_OS 1
5547 _ACEOF
5548
5549 else
5550
5551
5552 if $FALSEPRG; then
5553   HAVE_NETBSD_OS_TRUE=
5554   HAVE_NETBSD_OS_FALSE='#'
5555 else
5556   HAVE_NETBSD_OS_TRUE='#'
5557   HAVE_NETBSD_OS_FALSE=
5558 fi
5559 fi
5560
5561 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5562 then
5563
5564
5565 if $TRUEPRG; then
5566   HAVE_OPENBSD_OS_TRUE=
5567   HAVE_OPENBSD_OS_FALSE='#'
5568 else
5569   HAVE_OPENBSD_OS_TRUE='#'
5570   HAVE_OPENBSD_OS_FALSE=
5571 fi
5572         cat >>confdefs.h <<\_ACEOF
5573 #define HAVE_OPENBSD_OS 1
5574 _ACEOF
5575
5576 else
5577
5578
5579 if $FALSEPRG; then
5580   HAVE_OPENBSD_OS_TRUE=
5581   HAVE_OPENBSD_OS_FALSE='#'
5582 else
5583   HAVE_OPENBSD_OS_TRUE='#'
5584   HAVE_OPENBSD_OS_FALSE=
5585 fi
5586 fi
5587
5588 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5589 then
5590
5591
5592 if $TRUEPRG; then
5593   HAVE_BSDI_OS_TRUE=
5594   HAVE_BSDI_OS_FALSE='#'
5595 else
5596   HAVE_BSDI_OS_TRUE='#'
5597   HAVE_BSDI_OS_FALSE=
5598 fi
5599         cat >>confdefs.h <<\_ACEOF
5600 #define HAVE_BSDI_OS 1
5601 _ACEOF
5602
5603 else
5604
5605
5606 if $FALSEPRG; then
5607   HAVE_BSDI_OS_TRUE=
5608   HAVE_BSDI_OS_FALSE='#'
5609 else
5610   HAVE_BSDI_OS_TRUE='#'
5611   HAVE_BSDI_OS_FALSE=
5612 fi
5613 fi
5614
5615 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5616 then
5617
5618
5619 if $TRUEPRG; then
5620   HAVE_SGI_OS_TRUE=
5621   HAVE_SGI_OS_FALSE='#'
5622 else
5623   HAVE_SGI_OS_TRUE='#'
5624   HAVE_SGI_OS_FALSE=
5625 fi
5626         cat >>confdefs.h <<\_ACEOF
5627 #define HAVE_SGI_OS 1
5628 _ACEOF
5629
5630 else
5631
5632
5633 if $FALSEPRG; then
5634   HAVE_SGI_OS_TRUE=
5635   HAVE_SGI_OS_FALSE='#'
5636 else
5637   HAVE_SGI_OS_TRUE='#'
5638   HAVE_SGI_OS_FALSE=
5639 fi
5640 fi
5641
5642 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5643 then
5644
5645
5646 if $TRUEPRG; then
5647   HAVE_IRIX_OS_TRUE=
5648   HAVE_IRIX_OS_FALSE='#'
5649 else
5650   HAVE_IRIX_OS_TRUE='#'
5651   HAVE_IRIX_OS_FALSE=
5652 fi
5653         cat >>confdefs.h <<\_ACEOF
5654 #define HAVE_IRIX_OS 1
5655 _ACEOF
5656
5657 else
5658
5659
5660 if $FALSEPRG; then
5661   HAVE_IRIX_OS_TRUE=
5662   HAVE_IRIX_OS_FALSE='#'
5663 else
5664   HAVE_IRIX_OS_TRUE='#'
5665   HAVE_IRIX_OS_FALSE=
5666 fi
5667 fi
5668
5669 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5670 then
5671
5672
5673 if $TRUEPRG; then
5674   HAVE_DARWIN_OS_TRUE=
5675   HAVE_DARWIN_OS_FALSE='#'
5676 else
5677   HAVE_DARWIN_OS_TRUE='#'
5678   HAVE_DARWIN_OS_FALSE=
5679 fi
5680     cat >>confdefs.h <<\_ACEOF
5681 #define HAVE_DARWIN_OS 1
5682 _ACEOF
5683
5684 else
5685
5686
5687 if $FALSEPRG; then
5688   HAVE_DARWIN_OS_TRUE=
5689   HAVE_DARWIN_OS_FALSE='#'
5690 else
5691   HAVE_DARWIN_OS_TRUE='#'
5692   HAVE_DARWIN_OS_FALSE=
5693 fi
5694 fi
5695
5696
5697 # -----------------------------------------------------------
5698 # ----------------------------------------------------------
5699 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5700 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5701 if test "x$DISTNAME" != "x"
5702 then
5703         echo "distname set to $DISTNAME"
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5705 then
5706         DISTNAME=alpha
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5708 then
5709         DISTNAME=aix
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5711 then
5712         DISTNAME=hpux
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5714 then
5715         DISTNAME=solaris
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5717 then
5718         DISTNAME=freebsd
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5720 then
5721         DISTNAME=netbsd
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5723 then
5724         DISTNAME=openbsd
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5726 then
5727         DISTNAME=irix
5728 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5729 then
5730         DISTNAME=bsdi
5731 elif test -f /etc/SuSE-release
5732 then
5733         DISTNAME=suse
5734 elif test -d /etc/SuSEconfig
5735 then
5736         DISTNAME=suse5
5737 elif test -f /etc/mandrake-release
5738 then
5739         DISTNAME=mandrake
5740 elif test -f /etc/whitebox-release
5741 then
5742        DISTNAME=redhat
5743 elif test -f /etc/redhat-release
5744 then
5745         DISTNAME=redhat
5746 elif test -f /etc/gentoo-release
5747 then
5748         DISTNAME=gentoo
5749 elif test -f /etc/debian_version
5750 then
5751         DISTNAME=debian
5752 elif test -f /etc/slackware-version
5753 then
5754         DISTNAME=slackware
5755 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5756 then
5757     DISTNAME=darwin
5758 elif test -f /etc/engarde-version
5759 then
5760         DISTNAME=engarde
5761 elif test "$CYGWIN" = yes
5762 then
5763         DISTNAME=cygwin
5764         cat >>confdefs.h <<\_ACEOF
5765 #define HAVE_CYGWIN 1
5766 _ACEOF
5767
5768 else
5769         DISTNAME=unknown
5770 fi
5771 { echo "$as_me:$LINENO: result: done" >&5
5772 echo "${ECHO_T}done" >&6; }
5773
5774
5775 # --------------------------------------------------
5776 # Suppport for gettext (translations)
5777 # By default, $datadir is ${prefix}/share
5778 # --------------------------------------------------
5779 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5780 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5781 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5782 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5783   echo $ECHO_N "(cached) $ECHO_C" >&6
5784 else
5785   cat >conftest.make <<\_ACEOF
5786 SHELL = /bin/sh
5787 all:
5788         @echo '@@@%%%=$(MAKE)=@@@%%%'
5789 _ACEOF
5790 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5792   *@@@%%%=?*=@@@%%%*)
5793     eval ac_cv_prog_make_${ac_make}_set=yes;;
5794   *)
5795     eval ac_cv_prog_make_${ac_make}_set=no;;
5796 esac
5797 rm -f conftest.make
5798 fi
5799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5800   { echo "$as_me:$LINENO: result: yes" >&5
5801 echo "${ECHO_T}yes" >&6; }
5802   SET_MAKE=
5803 else
5804   { echo "$as_me:$LINENO: result: no" >&5
5805 echo "${ECHO_T}no" >&6; }
5806   SET_MAKE="MAKE=${MAKE-make}"
5807 fi
5808
5809
5810
5811         MKINSTALLDIRS=
5812   if test -n "$ac_aux_dir"; then
5813     case "$ac_aux_dir" in
5814       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5815       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5816     esac
5817   fi
5818   if test -z "$MKINSTALLDIRS"; then
5819     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5820   fi
5821
5822
5823
5824   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5825 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5826     # Check whether --enable-nls was given.
5827 if test "${enable_nls+set}" = set; then
5828   enableval=$enable_nls; USE_NLS=$enableval
5829 else
5830   USE_NLS=yes
5831 fi
5832
5833   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5834 echo "${ECHO_T}$USE_NLS" >&6; }
5835
5836
5837
5838
5839
5840
5841 # Prepare PATH_SEPARATOR.
5842 # The user is always right.
5843 if test "${PATH_SEPARATOR+set}" != set; then
5844   echo "#! /bin/sh" >conf$$.sh
5845   echo  "exit 0"   >>conf$$.sh
5846   chmod +x conf$$.sh
5847   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5848     PATH_SEPARATOR=';'
5849   else
5850     PATH_SEPARATOR=:
5851   fi
5852   rm -f conf$$.sh
5853 fi
5854
5855 # Find out how to test for executable files. Don't use a zero-byte file,
5856 # as systems may use methods other than mode bits to determine executability.
5857 cat >conf$$.file <<_ASEOF
5858 #! /bin/sh
5859 exit 0
5860 _ASEOF
5861 chmod +x conf$$.file
5862 if test -x conf$$.file >/dev/null 2>&1; then
5863   ac_executable_p="test -x"
5864 else
5865   ac_executable_p="test -f"
5866 fi
5867 rm -f conf$$.file
5868
5869 # Extract the first word of "msgfmt", so it can be a program name with args.
5870 set dummy msgfmt; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_path_MSGFMT+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   case "$MSGFMT" in
5877   [\\/]* | ?:[\\/]*)
5878     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5879     ;;
5880   *)
5881     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5882     for ac_dir in $PATH; do
5883       IFS="$ac_save_IFS"
5884       test -z "$ac_dir" && ac_dir=.
5885       for ac_exec_ext in '' $ac_executable_extensions; do
5886         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5887           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5888           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5889      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5890             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5891             break 2
5892           fi
5893         fi
5894       done
5895     done
5896     IFS="$ac_save_IFS"
5897   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5898     ;;
5899 esac
5900 fi
5901 MSGFMT="$ac_cv_path_MSGFMT"
5902 if test "$MSGFMT" != ":"; then
5903   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5904 echo "${ECHO_T}$MSGFMT" >&6; }
5905 else
5906   { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5908 fi
5909
5910   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5911 set dummy gmsgfmt; ac_word=$2
5912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5914 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   case $GMSGFMT in
5918   [\\/]* | ?:[\\/]*)
5919   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5920   ;;
5921   *)
5922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927   for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5938   ;;
5939 esac
5940 fi
5941 GMSGFMT=$ac_cv_path_GMSGFMT
5942 if test -n "$GMSGFMT"; then
5943   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5944 echo "${ECHO_T}$GMSGFMT" >&6; }
5945 else
5946   { echo "$as_me:$LINENO: result: no" >&5
5947 echo "${ECHO_T}no" >&6; }
5948 fi
5949
5950
5951
5952
5953 # Prepare PATH_SEPARATOR.
5954 # The user is always right.
5955 if test "${PATH_SEPARATOR+set}" != set; then
5956   echo "#! /bin/sh" >conf$$.sh
5957   echo  "exit 0"   >>conf$$.sh
5958   chmod +x conf$$.sh
5959   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5960     PATH_SEPARATOR=';'
5961   else
5962     PATH_SEPARATOR=:
5963   fi
5964   rm -f conf$$.sh
5965 fi
5966
5967 # Find out how to test for executable files. Don't use a zero-byte file,
5968 # as systems may use methods other than mode bits to determine executability.
5969 cat >conf$$.file <<_ASEOF
5970 #! /bin/sh
5971 exit 0
5972 _ASEOF
5973 chmod +x conf$$.file
5974 if test -x conf$$.file >/dev/null 2>&1; then
5975   ac_executable_p="test -x"
5976 else
5977   ac_executable_p="test -f"
5978 fi
5979 rm -f conf$$.file
5980
5981 # Extract the first word of "xgettext", so it can be a program name with args.
5982 set dummy xgettext; ac_word=$2
5983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5985 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   case "$XGETTEXT" in
5989   [\\/]* | ?:[\\/]*)
5990     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5991     ;;
5992   *)
5993     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5994     for ac_dir in $PATH; do
5995       IFS="$ac_save_IFS"
5996       test -z "$ac_dir" && ac_dir=.
5997       for ac_exec_ext in '' $ac_executable_extensions; do
5998         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5999           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6000           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6001      (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
6002             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6003             break 2
6004           fi
6005         fi
6006       done
6007     done
6008     IFS="$ac_save_IFS"
6009   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6010     ;;
6011 esac
6012 fi
6013 XGETTEXT="$ac_cv_path_XGETTEXT"
6014 if test "$XGETTEXT" != ":"; then
6015   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6016 echo "${ECHO_T}$XGETTEXT" >&6; }
6017 else
6018   { echo "$as_me:$LINENO: result: no" >&5
6019 echo "${ECHO_T}no" >&6; }
6020 fi
6021
6022     rm -f messages.po
6023
6024
6025 # Prepare PATH_SEPARATOR.
6026 # The user is always right.
6027 if test "${PATH_SEPARATOR+set}" != set; then
6028   echo "#! /bin/sh" >conf$$.sh
6029   echo  "exit 0"   >>conf$$.sh
6030   chmod +x conf$$.sh
6031   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6032     PATH_SEPARATOR=';'
6033   else
6034     PATH_SEPARATOR=:
6035   fi
6036   rm -f conf$$.sh
6037 fi
6038
6039 # Find out how to test for executable files. Don't use a zero-byte file,
6040 # as systems may use methods other than mode bits to determine executability.
6041 cat >conf$$.file <<_ASEOF
6042 #! /bin/sh
6043 exit 0
6044 _ASEOF
6045 chmod +x conf$$.file
6046 if test -x conf$$.file >/dev/null 2>&1; then
6047   ac_executable_p="test -x"
6048 else
6049   ac_executable_p="test -f"
6050 fi
6051 rm -f conf$$.file
6052
6053 # Extract the first word of "msgmerge", so it can be a program name with args.
6054 set dummy msgmerge; ac_word=$2
6055 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6057 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6058   echo $ECHO_N "(cached) $ECHO_C" >&6
6059 else
6060   case "$MSGMERGE" in
6061   [\\/]* | ?:[\\/]*)
6062     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6063     ;;
6064   *)
6065     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6066     for ac_dir in $PATH; do
6067       IFS="$ac_save_IFS"
6068       test -z "$ac_dir" && ac_dir=.
6069       for ac_exec_ext in '' $ac_executable_extensions; do
6070         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6071           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6072           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6073             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6074             break 2
6075           fi
6076         fi
6077       done
6078     done
6079     IFS="$ac_save_IFS"
6080   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6081     ;;
6082 esac
6083 fi
6084 MSGMERGE="$ac_cv_path_MSGMERGE"
6085 if test "$MSGMERGE" != ":"; then
6086   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6087 echo "${ECHO_T}$MSGMERGE" >&6; }
6088 else
6089   { echo "$as_me:$LINENO: result: no" >&5
6090 echo "${ECHO_T}no" >&6; }
6091 fi
6092
6093
6094       if test "$GMSGFMT" != ":"; then
6095             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6096        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6097       : ;
6098     else
6099       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6100       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6101 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6102       GMSGFMT=":"
6103     fi
6104   fi
6105
6106       if test "$XGETTEXT" != ":"; then
6107             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6108        (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
6109       : ;
6110     else
6111       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6112 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6113       XGETTEXT=":"
6114     fi
6115         rm -f messages.po
6116   fi
6117
6118   ac_config_commands="$ac_config_commands default-1"
6119
6120
6121
6122       if test "X$prefix" = "XNONE"; then
6123     acl_final_prefix="$ac_default_prefix"
6124   else
6125     acl_final_prefix="$prefix"
6126   fi
6127   if test "X$exec_prefix" = "XNONE"; then
6128     acl_final_exec_prefix='${prefix}'
6129   else
6130     acl_final_exec_prefix="$exec_prefix"
6131   fi
6132   acl_save_prefix="$prefix"
6133   prefix="$acl_final_prefix"
6134   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6135   prefix="$acl_save_prefix"
6136
6137
6138 # Check whether --with-gnu-ld was given.
6139 if test "${with_gnu_ld+set}" = set; then
6140   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6141 else
6142   with_gnu_ld=no
6143 fi
6144
6145 # Prepare PATH_SEPARATOR.
6146 # The user is always right.
6147 if test "${PATH_SEPARATOR+set}" != set; then
6148   echo "#! /bin/sh" >conf$$.sh
6149   echo  "exit 0"   >>conf$$.sh
6150   chmod +x conf$$.sh
6151   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6152     PATH_SEPARATOR=';'
6153   else
6154     PATH_SEPARATOR=:
6155   fi
6156   rm -f conf$$.sh
6157 fi
6158 ac_prog=ld
6159 if test "$GCC" = yes; then
6160   # Check if gcc -print-prog-name=ld gives a path.
6161   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6162 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6163   case $host in
6164   *-*-mingw*)
6165     # gcc leaves a trailing carriage return which upsets mingw
6166     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6167   *)
6168     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6169   esac
6170   case $ac_prog in
6171     # Accept absolute paths.
6172     [\\/]* | [A-Za-z]:[\\/]*)
6173       re_direlt='/[^/][^/]*/\.\./'
6174       # Canonicalize the path of ld
6175       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6176       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6177         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6178       done
6179       test -z "$LD" && LD="$ac_prog"
6180       ;;
6181   "")
6182     # If it fails, then pretend we aren't using GCC.
6183     ac_prog=ld
6184     ;;
6185   *)
6186     # If it is relative, then search for the first ld in PATH.
6187     with_gnu_ld=unknown
6188     ;;
6189   esac
6190 elif test "$with_gnu_ld" = yes; then
6191   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6192 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6193 else
6194   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6195 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6196 fi
6197 if test "${acl_cv_path_LD+set}" = set; then
6198   echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200   if test -z "$LD"; then
6201   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6202   for ac_dir in $PATH; do
6203     test -z "$ac_dir" && ac_dir=.
6204     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6205       acl_cv_path_LD="$ac_dir/$ac_prog"
6206       # Check to see if the program is GNU ld.  I'd rather use --version,
6207       # but apparently some GNU ld's only accept -v.
6208       # Break only if it was the GNU/non-GNU ld that we prefer.
6209       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6210       *GNU* | *'with BFD'*)
6211         test "$with_gnu_ld" != no && break ;;
6212       *)
6213         test "$with_gnu_ld" != yes && break ;;
6214       esac
6215     fi
6216   done
6217   IFS="$ac_save_ifs"
6218 else
6219   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6220 fi
6221 fi
6222
6223 LD="$acl_cv_path_LD"
6224 if test -n "$LD"; then
6225   { echo "$as_me:$LINENO: result: $LD" >&5
6226 echo "${ECHO_T}$LD" >&6; }
6227 else
6228   { echo "$as_me:$LINENO: result: no" >&5
6229 echo "${ECHO_T}no" >&6; }
6230 fi
6231 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6232 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6233    { (exit 1); exit 1; }; }
6234 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6235 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6236 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6237   echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6240 case `$LD -v 2>&1 </dev/null` in
6241 *GNU* | *'with BFD'*)
6242   acl_cv_prog_gnu_ld=yes ;;
6243 *)
6244   acl_cv_prog_gnu_ld=no ;;
6245 esac
6246 fi
6247 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6248 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6249 with_gnu_ld=$acl_cv_prog_gnu_ld
6250
6251
6252
6253
6254                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6255 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6256 if test "${acl_cv_rpath+set}" = set; then
6257   echo $ECHO_N "(cached) $ECHO_C" >&6
6258 else
6259
6260     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6261     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6262     . ./conftest.sh
6263     rm -f ./conftest.sh
6264     acl_cv_rpath=done
6265
6266 fi
6267 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6268 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6269   wl="$acl_cv_wl"
6270   libext="$acl_cv_libext"
6271   shlibext="$acl_cv_shlibext"
6272   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6273   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6274   hardcode_direct="$acl_cv_hardcode_direct"
6275   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6276     # Check whether --enable-rpath was given.
6277 if test "${enable_rpath+set}" = set; then
6278   enableval=$enable_rpath; :
6279 else
6280   enable_rpath=yes
6281 fi
6282
6283
6284
6285
6286
6287
6288
6289
6290     use_additional=yes
6291
6292   acl_save_prefix="$prefix"
6293   prefix="$acl_final_prefix"
6294   acl_save_exec_prefix="$exec_prefix"
6295   exec_prefix="$acl_final_exec_prefix"
6296
6297     eval additional_includedir=\"$includedir\"
6298     eval additional_libdir=\"$libdir\"
6299
6300   exec_prefix="$acl_save_exec_prefix"
6301   prefix="$acl_save_prefix"
6302
6303
6304 # Check whether --with-libiconv-prefix was given.
6305 if test "${with_libiconv_prefix+set}" = set; then
6306   withval=$with_libiconv_prefix;
6307     if test "X$withval" = "Xno"; then
6308       use_additional=no
6309     else
6310       if test "X$withval" = "X"; then
6311
6312   acl_save_prefix="$prefix"
6313   prefix="$acl_final_prefix"
6314   acl_save_exec_prefix="$exec_prefix"
6315   exec_prefix="$acl_final_exec_prefix"
6316
6317           eval additional_includedir=\"$includedir\"
6318           eval additional_libdir=\"$libdir\"
6319
6320   exec_prefix="$acl_save_exec_prefix"
6321   prefix="$acl_save_prefix"
6322
6323       else
6324         additional_includedir="$withval/include"
6325         additional_libdir="$withval/lib"
6326       fi
6327     fi
6328
6329 fi
6330
6331       LIBICONV=
6332   LTLIBICONV=
6333   INCICONV=
6334   rpathdirs=
6335   ltrpathdirs=
6336   names_already_handled=
6337   names_next_round='iconv '
6338   while test -n "$names_next_round"; do
6339     names_this_round="$names_next_round"
6340     names_next_round=
6341     for name in $names_this_round; do
6342       already_handled=
6343       for n in $names_already_handled; do
6344         if test "$n" = "$name"; then
6345           already_handled=yes
6346           break
6347         fi
6348       done
6349       if test -z "$already_handled"; then
6350         names_already_handled="$names_already_handled $name"
6351                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6352         eval value=\"\$HAVE_LIB$uppername\"
6353         if test -n "$value"; then
6354           if test "$value" = yes; then
6355             eval value=\"\$LIB$uppername\"
6356             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6357             eval value=\"\$LTLIB$uppername\"
6358             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6359           else
6360                                     :
6361           fi
6362         else
6363                               found_dir=
6364           found_la=
6365           found_so=
6366           found_a=
6367           if test $use_additional = yes; then
6368             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6369               found_dir="$additional_libdir"
6370               found_so="$additional_libdir/lib$name.$shlibext"
6371               if test -f "$additional_libdir/lib$name.la"; then
6372                 found_la="$additional_libdir/lib$name.la"
6373               fi
6374             else
6375               if test -f "$additional_libdir/lib$name.$libext"; then
6376                 found_dir="$additional_libdir"
6377                 found_a="$additional_libdir/lib$name.$libext"
6378                 if test -f "$additional_libdir/lib$name.la"; then
6379                   found_la="$additional_libdir/lib$name.la"
6380                 fi
6381               fi
6382             fi
6383           fi
6384           if test "X$found_dir" = "X"; then
6385             for x in $LDFLAGS $LTLIBICONV; do
6386
6387   acl_save_prefix="$prefix"
6388   prefix="$acl_final_prefix"
6389   acl_save_exec_prefix="$exec_prefix"
6390   exec_prefix="$acl_final_exec_prefix"
6391   eval x=\"$x\"
6392   exec_prefix="$acl_save_exec_prefix"
6393   prefix="$acl_save_prefix"
6394
6395               case "$x" in
6396                 -L*)
6397                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6398                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6399                     found_dir="$dir"
6400                     found_so="$dir/lib$name.$shlibext"
6401                     if test -f "$dir/lib$name.la"; then
6402                       found_la="$dir/lib$name.la"
6403                     fi
6404                   else
6405                     if test -f "$dir/lib$name.$libext"; then
6406                       found_dir="$dir"
6407                       found_a="$dir/lib$name.$libext"
6408                       if test -f "$dir/lib$name.la"; then
6409                         found_la="$dir/lib$name.la"
6410                       fi
6411                     fi
6412                   fi
6413                   ;;
6414               esac
6415               if test "X$found_dir" != "X"; then
6416                 break
6417               fi
6418             done
6419           fi
6420           if test "X$found_dir" != "X"; then
6421                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6422             if test "X$found_so" != "X"; then
6423                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6424                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6425               else
6426                                                                                 haveit=
6427                 for x in $ltrpathdirs; do
6428                   if test "X$x" = "X$found_dir"; then
6429                     haveit=yes
6430                     break
6431                   fi
6432                 done
6433                 if test -z "$haveit"; then
6434                   ltrpathdirs="$ltrpathdirs $found_dir"
6435                 fi
6436                                 if test "$hardcode_direct" = yes; then
6437                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6438                 else
6439                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6440                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6441                                                             haveit=
6442                     for x in $rpathdirs; do
6443                       if test "X$x" = "X$found_dir"; then
6444                         haveit=yes
6445                         break
6446                       fi
6447                     done
6448                     if test -z "$haveit"; then
6449                       rpathdirs="$rpathdirs $found_dir"
6450                     fi
6451                   else
6452                                                                                 haveit=
6453                     for x in $LDFLAGS $LIBICONV; do
6454
6455   acl_save_prefix="$prefix"
6456   prefix="$acl_final_prefix"
6457   acl_save_exec_prefix="$exec_prefix"
6458   exec_prefix="$acl_final_exec_prefix"
6459   eval x=\"$x\"
6460   exec_prefix="$acl_save_exec_prefix"
6461   prefix="$acl_save_prefix"
6462
6463                       if test "X$x" = "X-L$found_dir"; then
6464                         haveit=yes
6465                         break
6466                       fi
6467                     done
6468                     if test -z "$haveit"; then
6469                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6470                     fi
6471                     if test "$hardcode_minus_L" != no; then
6472                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6473                     else
6474                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6475                     fi
6476                   fi
6477                 fi
6478               fi
6479             else
6480               if test "X$found_a" != "X"; then
6481                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6482               else
6483                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6484               fi
6485             fi
6486                         additional_includedir=
6487             case "$found_dir" in
6488               */lib | */lib/)
6489                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6490                 additional_includedir="$basedir/include"
6491                 ;;
6492             esac
6493             if test "X$additional_includedir" != "X"; then
6494                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6495                 haveit=
6496                 if test "X$additional_includedir" = "X/usr/local/include"; then
6497                   if test -n "$GCC"; then
6498                     case $host_os in
6499                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6500                     esac
6501                   fi
6502                 fi
6503                 if test -z "$haveit"; then
6504                   for x in $CPPFLAGS $INCICONV; do
6505
6506   acl_save_prefix="$prefix"
6507   prefix="$acl_final_prefix"
6508   acl_save_exec_prefix="$exec_prefix"
6509   exec_prefix="$acl_final_exec_prefix"
6510   eval x=\"$x\"
6511   exec_prefix="$acl_save_exec_prefix"
6512   prefix="$acl_save_prefix"
6513
6514                     if test "X$x" = "X-I$additional_includedir"; then
6515                       haveit=yes
6516                       break
6517                     fi
6518                   done
6519                   if test -z "$haveit"; then
6520                     if test -d "$additional_includedir"; then
6521                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6522                     fi
6523                   fi
6524                 fi
6525               fi
6526             fi
6527                         if test -n "$found_la"; then
6528                                                         save_libdir="$libdir"
6529               case "$found_la" in
6530                 */* | *\\*) . "$found_la" ;;
6531                 *) . "./$found_la" ;;
6532               esac
6533               libdir="$save_libdir"
6534                             for dep in $dependency_libs; do
6535                 case "$dep" in
6536                   -L*)
6537                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6538                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6539                       haveit=
6540                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6541                         if test -n "$GCC"; then
6542                           case $host_os in
6543                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6544                           esac
6545                         fi
6546                       fi
6547                       if test -z "$haveit"; then
6548                         haveit=
6549                         for x in $LDFLAGS $LIBICONV; do
6550
6551   acl_save_prefix="$prefix"
6552   prefix="$acl_final_prefix"
6553   acl_save_exec_prefix="$exec_prefix"
6554   exec_prefix="$acl_final_exec_prefix"
6555   eval x=\"$x\"
6556   exec_prefix="$acl_save_exec_prefix"
6557   prefix="$acl_save_prefix"
6558
6559                           if test "X$x" = "X-L$additional_libdir"; then
6560                             haveit=yes
6561                             break
6562                           fi
6563                         done
6564                         if test -z "$haveit"; then
6565                           if test -d "$additional_libdir"; then
6566                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6567                           fi
6568                         fi
6569                         haveit=
6570                         for x in $LDFLAGS $LTLIBICONV; do
6571
6572   acl_save_prefix="$prefix"
6573   prefix="$acl_final_prefix"
6574   acl_save_exec_prefix="$exec_prefix"
6575   exec_prefix="$acl_final_exec_prefix"
6576   eval x=\"$x\"
6577   exec_prefix="$acl_save_exec_prefix"
6578   prefix="$acl_save_prefix"
6579
6580                           if test "X$x" = "X-L$additional_libdir"; then
6581                             haveit=yes
6582                             break
6583                           fi
6584                         done
6585                         if test -z "$haveit"; then
6586                           if test -d "$additional_libdir"; then
6587                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6588                           fi
6589                         fi
6590                       fi
6591                     fi
6592                     ;;
6593                   -R*)
6594                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6595                     if test "$enable_rpath" != no; then
6596                                                                   haveit=
6597                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
6605                       fi
6606                                                                   haveit=
6607                       for x in $ltrpathdirs; do
6608                         if test "X$x" = "X$dir"; then
6609                           haveit=yes
6610                           break
6611                         fi
6612                       done
6613                       if test -z "$haveit"; then
6614                         ltrpathdirs="$ltrpathdirs $dir"
6615                       fi
6616                     fi
6617                     ;;
6618                   -l*)
6619                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6620                     ;;
6621                   *.la)
6622                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6623                     ;;
6624                   *)
6625                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6626                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6627                     ;;
6628                 esac
6629               done
6630             fi
6631           else
6632                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6633             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6634           fi
6635         fi
6636       fi
6637     done
6638   done
6639   if test "X$rpathdirs" != "X"; then
6640     if test -n "$hardcode_libdir_separator"; then
6641                         alldirs=
6642       for found_dir in $rpathdirs; do
6643         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6644       done
6645             acl_save_libdir="$libdir"
6646       libdir="$alldirs"
6647       eval flag=\"$hardcode_libdir_flag_spec\"
6648       libdir="$acl_save_libdir"
6649       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6650     else
6651             for found_dir in $rpathdirs; do
6652         acl_save_libdir="$libdir"
6653         libdir="$found_dir"
6654         eval flag=\"$hardcode_libdir_flag_spec\"
6655         libdir="$acl_save_libdir"
6656         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6657       done
6658     fi
6659   fi
6660   if test "X$ltrpathdirs" != "X"; then
6661             for found_dir in $ltrpathdirs; do
6662       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6663     done
6664   fi
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6684 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   gt_save_CPPFLAGS="$CPPFLAGS"
6689      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6690      gt_save_LIBS="$LIBS"
6691      LIBS="$LIBS -framework CoreFoundation"
6692      cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h.  */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h.  */
6698 #include <CFPreferences.h>
6699 int
6700 main ()
6701 {
6702 CFPreferencesCopyAppValue(NULL, NULL)
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711   *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714   (eval "$ac_link") 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } &&
6721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6731          { ac_try='test -s conftest$ac_exeext'
6732   { (case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737   (eval "$ac_try") 2>&5
6738   ac_status=$?
6739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740   (exit $ac_status); }; }; then
6741   gt_cv_func_CFPreferencesCopyAppValue=yes
6742 else
6743   echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746         gt_cv_func_CFPreferencesCopyAppValue=no
6747 fi
6748
6749 rm -f core conftest.err conftest.$ac_objext \
6750       conftest$ac_exeext conftest.$ac_ext
6751      CPPFLAGS="$gt_save_CPPFLAGS"
6752      LIBS="$gt_save_LIBS"
6753 fi
6754 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6755 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6756   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6757
6758 cat >>confdefs.h <<\_ACEOF
6759 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6760 _ACEOF
6761
6762   fi
6763     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6764 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6765 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6766   echo $ECHO_N "(cached) $ECHO_C" >&6
6767 else
6768   gt_save_CPPFLAGS="$CPPFLAGS"
6769      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6770      gt_save_LIBS="$LIBS"
6771      LIBS="$LIBS -framework CoreFoundation"
6772      cat >conftest.$ac_ext <<_ACEOF
6773 /* confdefs.h.  */
6774 _ACEOF
6775 cat confdefs.h >>conftest.$ac_ext
6776 cat >>conftest.$ac_ext <<_ACEOF
6777 /* end confdefs.h.  */
6778 #include <CFLocale.h>
6779 int
6780 main ()
6781 {
6782 CFLocaleCopyCurrent();
6783   ;
6784   return 0;
6785 }
6786 _ACEOF
6787 rm -f conftest.$ac_objext conftest$ac_exeext
6788 if { (ac_try="$ac_link"
6789 case "(($ac_try" in
6790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791   *) ac_try_echo=$ac_try;;
6792 esac
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794   (eval "$ac_link") 2>conftest.er1
6795   ac_status=$?
6796   grep -v '^ *+' conftest.er1 >conftest.err
6797   rm -f conftest.er1
6798   cat conftest.err >&5
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); } &&
6801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6811          { ac_try='test -s conftest$ac_exeext'
6812   { (case "(($ac_try" in
6813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6814   *) ac_try_echo=$ac_try;;
6815 esac
6816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6817   (eval "$ac_try") 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   gt_cv_func_CFLocaleCopyCurrent=yes
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826         gt_cv_func_CFLocaleCopyCurrent=no
6827 fi
6828
6829 rm -f core conftest.err conftest.$ac_objext \
6830       conftest$ac_exeext conftest.$ac_ext
6831      CPPFLAGS="$gt_save_CPPFLAGS"
6832      LIBS="$gt_save_LIBS"
6833 fi
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6835 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6836   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6837
6838 cat >>confdefs.h <<\_ACEOF
6839 #define HAVE_CFLOCALECOPYCURRENT 1
6840 _ACEOF
6841
6842   fi
6843   INTL_MACOSX_LIBS=
6844   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6845     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6846   fi
6847
6848
6849
6850
6851   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6852 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6853     # Check whether --enable-nls was given.
6854 if test "${enable_nls+set}" = set; then
6855   enableval=$enable_nls; USE_NLS=$enableval
6856 else
6857   USE_NLS=yes
6858 fi
6859
6860   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6861 echo "${ECHO_T}$USE_NLS" >&6; }
6862
6863
6864
6865
6866   LIBINTL=
6867   LTLIBINTL=
6868   POSUB=
6869
6870     if test "$USE_NLS" = "yes"; then
6871     gt_use_preinstalled_gnugettext=no
6872
6873
6874
6875
6876
6877
6878         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6879 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6880 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6881   echo $ECHO_N "(cached) $ECHO_C" >&6
6882 else
6883   cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h.  */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h.  */
6889 #include <libintl.h>
6890 extern int _nl_msg_cat_cntr;
6891 extern int *_nl_domain_bindings;
6892 int
6893 main ()
6894 {
6895 bindtextdomain ("", "");
6896 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6897   ;
6898   return 0;
6899 }
6900 _ACEOF
6901 rm -f conftest.$ac_objext conftest$ac_exeext
6902 if { (ac_try="$ac_link"
6903 case "(($ac_try" in
6904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905   *) ac_try_echo=$ac_try;;
6906 esac
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908   (eval "$ac_link") 2>conftest.er1
6909   ac_status=$?
6910   grep -v '^ *+' conftest.er1 >conftest.err
6911   rm -f conftest.er1
6912   cat conftest.err >&5
6913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914   (exit $ac_status); } &&
6915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
6925          { ac_try='test -s conftest$ac_exeext'
6926   { (case "(($ac_try" in
6927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928   *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931   (eval "$ac_try") 2>&5
6932   ac_status=$?
6933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934   (exit $ac_status); }; }; then
6935   gt_cv_func_gnugettext1_libc=yes
6936 else
6937   echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940         gt_cv_func_gnugettext1_libc=no
6941 fi
6942
6943 rm -f core conftest.err conftest.$ac_objext \
6944       conftest$ac_exeext conftest.$ac_ext
6945 fi
6946 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6947 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6948
6949         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6950
6951
6952
6953
6954
6955           am_save_CPPFLAGS="$CPPFLAGS"
6956
6957   for element in $INCICONV; do
6958     haveit=
6959     for x in $CPPFLAGS; do
6960
6961   acl_save_prefix="$prefix"
6962   prefix="$acl_final_prefix"
6963   acl_save_exec_prefix="$exec_prefix"
6964   exec_prefix="$acl_final_exec_prefix"
6965   eval x=\"$x\"
6966   exec_prefix="$acl_save_exec_prefix"
6967   prefix="$acl_save_prefix"
6968
6969       if test "X$x" = "X$element"; then
6970         haveit=yes
6971         break
6972       fi
6973     done
6974     if test -z "$haveit"; then
6975       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6976     fi
6977   done
6978
6979
6980   { echo "$as_me:$LINENO: checking for iconv" >&5
6981 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6982 if test "${am_cv_func_iconv+set}" = set; then
6983   echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985
6986     am_cv_func_iconv="no, consider installing GNU libiconv"
6987     am_cv_lib_iconv=no
6988     cat >conftest.$ac_ext <<_ACEOF
6989 /* confdefs.h.  */
6990 _ACEOF
6991 cat confdefs.h >>conftest.$ac_ext
6992 cat >>conftest.$ac_ext <<_ACEOF
6993 /* end confdefs.h.  */
6994 #include <stdlib.h>
6995 #include <iconv.h>
6996 int
6997 main ()
6998 {
6999 iconv_t cd = iconv_open("","");
7000        iconv(cd,NULL,NULL,NULL,NULL);
7001        iconv_close(cd);
7002   ;
7003   return 0;
7004 }
7005 _ACEOF
7006 rm -f conftest.$ac_objext conftest$ac_exeext
7007 if { (ac_try="$ac_link"
7008 case "(($ac_try" in
7009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010   *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013   (eval "$ac_link") 2>conftest.er1
7014   ac_status=$?
7015   grep -v '^ *+' conftest.er1 >conftest.err
7016   rm -f conftest.er1
7017   cat conftest.err >&5
7018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019   (exit $ac_status); } &&
7020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7030          { ac_try='test -s conftest$ac_exeext'
7031   { (case "(($ac_try" in
7032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033   *) ac_try_echo=$ac_try;;
7034 esac
7035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7036   (eval "$ac_try") 2>&5
7037   ac_status=$?
7038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7039   (exit $ac_status); }; }; then
7040   am_cv_func_iconv=yes
7041 else
7042   echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7044
7045
7046 fi
7047
7048 rm -f core conftest.err conftest.$ac_objext \
7049       conftest$ac_exeext conftest.$ac_ext
7050     if test "$am_cv_func_iconv" != yes; then
7051       am_save_LIBS="$LIBS"
7052       LIBS="$LIBS $LIBICONV"
7053       cat >conftest.$ac_ext <<_ACEOF
7054 /* confdefs.h.  */
7055 _ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h.  */
7059 #include <stdlib.h>
7060 #include <iconv.h>
7061 int
7062 main ()
7063 {
7064 iconv_t cd = iconv_open("","");
7065          iconv(cd,NULL,NULL,NULL,NULL);
7066          iconv_close(cd);
7067   ;
7068   return 0;
7069 }
7070 _ACEOF
7071 rm -f conftest.$ac_objext conftest$ac_exeext
7072 if { (ac_try="$ac_link"
7073 case "(($ac_try" in
7074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075   *) ac_try_echo=$ac_try;;
7076 esac
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078   (eval "$ac_link") 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7095          { ac_try='test -s conftest$ac_exeext'
7096   { (case "(($ac_try" in
7097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7098   *) ac_try_echo=$ac_try;;
7099 esac
7100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7101   (eval "$ac_try") 2>&5
7102   ac_status=$?
7103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104   (exit $ac_status); }; }; then
7105   am_cv_lib_iconv=yes
7106         am_cv_func_iconv=yes
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111
7112 fi
7113
7114 rm -f core conftest.err conftest.$ac_objext \
7115       conftest$ac_exeext conftest.$ac_ext
7116       LIBS="$am_save_LIBS"
7117     fi
7118
7119 fi
7120 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7121 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7122   if test "$am_cv_func_iconv" = yes; then
7123
7124 cat >>confdefs.h <<\_ACEOF
7125 #define HAVE_ICONV 1
7126 _ACEOF
7127
7128   fi
7129   if test "$am_cv_lib_iconv" = yes; then
7130     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7131 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7132     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7133 echo "${ECHO_T}$LIBICONV" >&6; }
7134   else
7135             CPPFLAGS="$am_save_CPPFLAGS"
7136     LIBICONV=
7137     LTLIBICONV=
7138   fi
7139
7140
7141
7142
7143
7144
7145     use_additional=yes
7146
7147   acl_save_prefix="$prefix"
7148   prefix="$acl_final_prefix"
7149   acl_save_exec_prefix="$exec_prefix"
7150   exec_prefix="$acl_final_exec_prefix"
7151
7152     eval additional_includedir=\"$includedir\"
7153     eval additional_libdir=\"$libdir\"
7154
7155   exec_prefix="$acl_save_exec_prefix"
7156   prefix="$acl_save_prefix"
7157
7158
7159 # Check whether --with-libintl-prefix was given.
7160 if test "${with_libintl_prefix+set}" = set; then
7161   withval=$with_libintl_prefix;
7162     if test "X$withval" = "Xno"; then
7163       use_additional=no
7164     else
7165       if test "X$withval" = "X"; then
7166
7167   acl_save_prefix="$prefix"
7168   prefix="$acl_final_prefix"
7169   acl_save_exec_prefix="$exec_prefix"
7170   exec_prefix="$acl_final_exec_prefix"
7171
7172           eval additional_includedir=\"$includedir\"
7173           eval additional_libdir=\"$libdir\"
7174
7175   exec_prefix="$acl_save_exec_prefix"
7176   prefix="$acl_save_prefix"
7177
7178       else
7179         additional_includedir="$withval/include"
7180         additional_libdir="$withval/lib"
7181       fi
7182     fi
7183
7184 fi
7185
7186       LIBINTL=
7187   LTLIBINTL=
7188   INCINTL=
7189   rpathdirs=
7190   ltrpathdirs=
7191   names_already_handled=
7192   names_next_round='intl '
7193   while test -n "$names_next_round"; do
7194     names_this_round="$names_next_round"
7195     names_next_round=
7196     for name in $names_this_round; do
7197       already_handled=
7198       for n in $names_already_handled; do
7199         if test "$n" = "$name"; then
7200           already_handled=yes
7201           break
7202         fi
7203       done
7204       if test -z "$already_handled"; then
7205         names_already_handled="$names_already_handled $name"
7206                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7207         eval value=\"\$HAVE_LIB$uppername\"
7208         if test -n "$value"; then
7209           if test "$value" = yes; then
7210             eval value=\"\$LIB$uppername\"
7211             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7212             eval value=\"\$LTLIB$uppername\"
7213             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7214           else
7215                                     :
7216           fi
7217         else
7218                               found_dir=
7219           found_la=
7220           found_so=
7221           found_a=
7222           if test $use_additional = yes; then
7223             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7224               found_dir="$additional_libdir"
7225               found_so="$additional_libdir/lib$name.$shlibext"
7226               if test -f "$additional_libdir/lib$name.la"; then
7227                 found_la="$additional_libdir/lib$name.la"
7228               fi
7229             else
7230               if test -f "$additional_libdir/lib$name.$libext"; then
7231                 found_dir="$additional_libdir"
7232                 found_a="$additional_libdir/lib$name.$libext"
7233                 if test -f "$additional_libdir/lib$name.la"; then
7234                   found_la="$additional_libdir/lib$name.la"
7235                 fi
7236               fi
7237             fi
7238           fi
7239           if test "X$found_dir" = "X"; then
7240             for x in $LDFLAGS $LTLIBINTL; do
7241
7242   acl_save_prefix="$prefix"
7243   prefix="$acl_final_prefix"
7244   acl_save_exec_prefix="$exec_prefix"
7245   exec_prefix="$acl_final_exec_prefix"
7246   eval x=\"$x\"
7247   exec_prefix="$acl_save_exec_prefix"
7248   prefix="$acl_save_prefix"
7249
7250               case "$x" in
7251                 -L*)
7252                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7253                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7254                     found_dir="$dir"
7255                     found_so="$dir/lib$name.$shlibext"
7256                     if test -f "$dir/lib$name.la"; then
7257                       found_la="$dir/lib$name.la"
7258                     fi
7259                   else
7260                     if test -f "$dir/lib$name.$libext"; then
7261                       found_dir="$dir"
7262                       found_a="$dir/lib$name.$libext"
7263                       if test -f "$dir/lib$name.la"; then
7264                         found_la="$dir/lib$name.la"
7265                       fi
7266                     fi
7267                   fi
7268                   ;;
7269               esac
7270               if test "X$found_dir" != "X"; then
7271                 break
7272               fi
7273             done
7274           fi
7275           if test "X$found_dir" != "X"; then
7276                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7277             if test "X$found_so" != "X"; then
7278                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7279                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7280               else
7281                                                                                 haveit=
7282                 for x in $ltrpathdirs; do
7283                   if test "X$x" = "X$found_dir"; then
7284                     haveit=yes
7285                     break
7286                   fi
7287                 done
7288                 if test -z "$haveit"; then
7289                   ltrpathdirs="$ltrpathdirs $found_dir"
7290                 fi
7291                                 if test "$hardcode_direct" = yes; then
7292                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7293                 else
7294                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7295                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7296                                                             haveit=
7297                     for x in $rpathdirs; do
7298                       if test "X$x" = "X$found_dir"; then
7299                         haveit=yes
7300                         break
7301                       fi
7302                     done
7303                     if test -z "$haveit"; then
7304                       rpathdirs="$rpathdirs $found_dir"
7305                     fi
7306                   else
7307                                                                                 haveit=
7308                     for x in $LDFLAGS $LIBINTL; do
7309
7310   acl_save_prefix="$prefix"
7311   prefix="$acl_final_prefix"
7312   acl_save_exec_prefix="$exec_prefix"
7313   exec_prefix="$acl_final_exec_prefix"
7314   eval x=\"$x\"
7315   exec_prefix="$acl_save_exec_prefix"
7316   prefix="$acl_save_prefix"
7317
7318                       if test "X$x" = "X-L$found_dir"; then
7319                         haveit=yes
7320                         break
7321                       fi
7322                     done
7323                     if test -z "$haveit"; then
7324                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7325                     fi
7326                     if test "$hardcode_minus_L" != no; then
7327                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7328                     else
7329                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7330                     fi
7331                   fi
7332                 fi
7333               fi
7334             else
7335               if test "X$found_a" != "X"; then
7336                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7337               else
7338                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7339               fi
7340             fi
7341                         additional_includedir=
7342             case "$found_dir" in
7343               */lib | */lib/)
7344                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7345                 additional_includedir="$basedir/include"
7346                 ;;
7347             esac
7348             if test "X$additional_includedir" != "X"; then
7349                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7350                 haveit=
7351                 if test "X$additional_includedir" = "X/usr/local/include"; then
7352                   if test -n "$GCC"; then
7353                     case $host_os in
7354                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7355                     esac
7356                   fi
7357                 fi
7358                 if test -z "$haveit"; then
7359                   for x in $CPPFLAGS $INCINTL; do
7360
7361   acl_save_prefix="$prefix"
7362   prefix="$acl_final_prefix"
7363   acl_save_exec_prefix="$exec_prefix"
7364   exec_prefix="$acl_final_exec_prefix"
7365   eval x=\"$x\"
7366   exec_prefix="$acl_save_exec_prefix"
7367   prefix="$acl_save_prefix"
7368
7369                     if test "X$x" = "X-I$additional_includedir"; then
7370                       haveit=yes
7371                       break
7372                     fi
7373                   done
7374                   if test -z "$haveit"; then
7375                     if test -d "$additional_includedir"; then
7376                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7377                     fi
7378                   fi
7379                 fi
7380               fi
7381             fi
7382                         if test -n "$found_la"; then
7383                                                         save_libdir="$libdir"
7384               case "$found_la" in
7385                 */* | *\\*) . "$found_la" ;;
7386                 *) . "./$found_la" ;;
7387               esac
7388               libdir="$save_libdir"
7389                             for dep in $dependency_libs; do
7390                 case "$dep" in
7391                   -L*)
7392                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7393                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7394                       haveit=
7395                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7396                         if test -n "$GCC"; then
7397                           case $host_os in
7398                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7399                           esac
7400                         fi
7401                       fi
7402                       if test -z "$haveit"; then
7403                         haveit=
7404                         for x in $LDFLAGS $LIBINTL; do
7405
7406   acl_save_prefix="$prefix"
7407   prefix="$acl_final_prefix"
7408   acl_save_exec_prefix="$exec_prefix"
7409   exec_prefix="$acl_final_exec_prefix"
7410   eval x=\"$x\"
7411   exec_prefix="$acl_save_exec_prefix"
7412   prefix="$acl_save_prefix"
7413
7414                           if test "X$x" = "X-L$additional_libdir"; then
7415                             haveit=yes
7416                             break
7417                           fi
7418                         done
7419                         if test -z "$haveit"; then
7420                           if test -d "$additional_libdir"; then
7421                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7422                           fi
7423                         fi
7424                         haveit=
7425                         for x in $LDFLAGS $LTLIBINTL; do
7426
7427   acl_save_prefix="$prefix"
7428   prefix="$acl_final_prefix"
7429   acl_save_exec_prefix="$exec_prefix"
7430   exec_prefix="$acl_final_exec_prefix"
7431   eval x=\"$x\"
7432   exec_prefix="$acl_save_exec_prefix"
7433   prefix="$acl_save_prefix"
7434
7435                           if test "X$x" = "X-L$additional_libdir"; then
7436                             haveit=yes
7437                             break
7438                           fi
7439                         done
7440                         if test -z "$haveit"; then
7441                           if test -d "$additional_libdir"; then
7442                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7443                           fi
7444                         fi
7445                       fi
7446                     fi
7447                     ;;
7448                   -R*)
7449                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7450                     if test "$enable_rpath" != no; then
7451                                                                   haveit=
7452                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
7460                       fi
7461                                                                   haveit=
7462                       for x in $ltrpathdirs; do
7463                         if test "X$x" = "X$dir"; then
7464                           haveit=yes
7465                           break
7466                         fi
7467                       done
7468                       if test -z "$haveit"; then
7469                         ltrpathdirs="$ltrpathdirs $dir"
7470                       fi
7471                     fi
7472                     ;;
7473                   -l*)
7474                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7475                     ;;
7476                   *.la)
7477                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7478                     ;;
7479                   *)
7480                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7481                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7482                     ;;
7483                 esac
7484               done
7485             fi
7486           else
7487                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7488             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7489           fi
7490         fi
7491       fi
7492     done
7493   done
7494   if test "X$rpathdirs" != "X"; then
7495     if test -n "$hardcode_libdir_separator"; then
7496                         alldirs=
7497       for found_dir in $rpathdirs; do
7498         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7499       done
7500             acl_save_libdir="$libdir"
7501       libdir="$alldirs"
7502       eval flag=\"$hardcode_libdir_flag_spec\"
7503       libdir="$acl_save_libdir"
7504       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7505     else
7506             for found_dir in $rpathdirs; do
7507         acl_save_libdir="$libdir"
7508         libdir="$found_dir"
7509         eval flag=\"$hardcode_libdir_flag_spec\"
7510         libdir="$acl_save_libdir"
7511         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7512       done
7513     fi
7514   fi
7515   if test "X$ltrpathdirs" != "X"; then
7516             for found_dir in $ltrpathdirs; do
7517       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7518     done
7519   fi
7520
7521           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7522 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7523 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7524   echo $ECHO_N "(cached) $ECHO_C" >&6
7525 else
7526   gt_save_CPPFLAGS="$CPPFLAGS"
7527             CPPFLAGS="$CPPFLAGS $INCINTL"
7528             gt_save_LIBS="$LIBS"
7529             LIBS="$LIBS $LIBINTL"
7530                         cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h.  */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h.  */
7536 #include <libintl.h>
7537 extern int _nl_msg_cat_cntr;
7538 extern
7539 #ifdef __cplusplus
7540 "C"
7541 #endif
7542 const char *_nl_expand_alias (const char *);
7543 int
7544 main ()
7545 {
7546 bindtextdomain ("", "");
7547 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7548   ;
7549   return 0;
7550 }
7551 _ACEOF
7552 rm -f conftest.$ac_objext conftest$ac_exeext
7553 if { (ac_try="$ac_link"
7554 case "(($ac_try" in
7555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7556   *) ac_try_echo=$ac_try;;
7557 esac
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559   (eval "$ac_link") 2>conftest.er1
7560   ac_status=$?
7561   grep -v '^ *+' conftest.er1 >conftest.err
7562   rm -f conftest.er1
7563   cat conftest.err >&5
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); } &&
7566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7576          { ac_try='test -s conftest$ac_exeext'
7577   { (case "(($ac_try" in
7578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579   *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582   (eval "$ac_try") 2>&5
7583   ac_status=$?
7584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585   (exit $ac_status); }; }; then
7586   gt_cv_func_gnugettext1_libintl=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591         gt_cv_func_gnugettext1_libintl=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext \
7595       conftest$ac_exeext conftest.$ac_ext
7596                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7597               LIBS="$LIBS $LIBICONV"
7598               cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h.  */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h.  */
7604 #include <libintl.h>
7605 extern int _nl_msg_cat_cntr;
7606 extern
7607 #ifdef __cplusplus
7608 "C"
7609 #endif
7610 const char *_nl_expand_alias (const char *);
7611 int
7612 main ()
7613 {
7614 bindtextdomain ("", "");
7615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7616   ;
7617   return 0;
7618 }
7619 _ACEOF
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7622 case "(($ac_try" in
7623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624   *) ac_try_echo=$ac_try;;
7625 esac
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627   (eval "$ac_link") 2>conftest.er1
7628   ac_status=$?
7629   grep -v '^ *+' conftest.er1 >conftest.err
7630   rm -f conftest.er1
7631   cat conftest.err >&5
7632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633   (exit $ac_status); } &&
7634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7644          { ac_try='test -s conftest$ac_exeext'
7645   { (case "(($ac_try" in
7646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647   *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650   (eval "$ac_try") 2>&5
7651   ac_status=$?
7652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653   (exit $ac_status); }; }; then
7654   LIBINTL="$LIBINTL $LIBICONV"
7655                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7656                 gt_cv_func_gnugettext1_libintl=yes
7657
7658 else
7659   echo "$as_me: failed program was:" >&5
7660 sed 's/^/| /' conftest.$ac_ext >&5
7661
7662
7663 fi
7664
7665 rm -f core conftest.err conftest.$ac_objext \
7666       conftest$ac_exeext conftest.$ac_ext
7667             fi
7668             CPPFLAGS="$gt_save_CPPFLAGS"
7669             LIBS="$gt_save_LIBS"
7670 fi
7671 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7672 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7673         fi
7674
7675                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7676            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7677                 && test "$PACKAGE" != gettext-runtime \
7678                 && test "$PACKAGE" != gettext-tools; }; then
7679           gt_use_preinstalled_gnugettext=yes
7680         else
7681                     LIBINTL=
7682           LTLIBINTL=
7683           INCINTL=
7684         fi
7685
7686
7687
7688     if test -n "$INTL_MACOSX_LIBS"; then
7689       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7690          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7691                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7692         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7693       fi
7694     fi
7695
7696     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7697        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7698
7699 cat >>confdefs.h <<\_ACEOF
7700 #define ENABLE_NLS 1
7701 _ACEOF
7702
7703     else
7704       USE_NLS=no
7705     fi
7706   fi
7707
7708   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7709 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7710   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7711 echo "${ECHO_T}$USE_NLS" >&6; }
7712   if test "$USE_NLS" = "yes"; then
7713     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7714 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7715     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7716       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7717         gt_source="external libintl"
7718       else
7719         gt_source="libc"
7720       fi
7721     else
7722       gt_source="included intl directory"
7723     fi
7724     { echo "$as_me:$LINENO: result: $gt_source" >&5
7725 echo "${ECHO_T}$gt_source" >&6; }
7726   fi
7727
7728   if test "$USE_NLS" = "yes"; then
7729
7730     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7731       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7732         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7733 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7734         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7735 echo "${ECHO_T}$LIBINTL" >&6; }
7736
7737   for element in $INCINTL; do
7738     haveit=
7739     for x in $CPPFLAGS; do
7740
7741   acl_save_prefix="$prefix"
7742   prefix="$acl_final_prefix"
7743   acl_save_exec_prefix="$exec_prefix"
7744   exec_prefix="$acl_final_exec_prefix"
7745   eval x=\"$x\"
7746   exec_prefix="$acl_save_exec_prefix"
7747   prefix="$acl_save_prefix"
7748
7749       if test "X$x" = "X$element"; then
7750         haveit=yes
7751         break
7752       fi
7753     done
7754     if test -z "$haveit"; then
7755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7756     fi
7757   done
7758
7759       fi
7760
7761
7762 cat >>confdefs.h <<\_ACEOF
7763 #define HAVE_GETTEXT 1
7764 _ACEOF
7765
7766
7767 cat >>confdefs.h <<\_ACEOF
7768 #define HAVE_DCGETTEXT 1
7769 _ACEOF
7770
7771     fi
7772
7773         POSUB=po
7774   fi
7775
7776
7777
7778     INTLLIBS="$LIBINTL"
7779
7780
7781
7782
7783
7784
7785 if test x${prefix} = xNONE ; then
7786    if test `eval echo ${datadir}` = NONE/share ; then
7787       datadir=/usr/share
7788    fi
7789 fi
7790
7791 # ------------------------------------------------------------------
7792 #  If the user has not set --prefix, we set our default to nothing.
7793 #  In this case, if the user has not set --sysconfdir, we set it
7794 #  to the package default of /etc/bacula.  If either --prefix or
7795 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7796 # ------------------------------------------------------------------
7797 if test x${prefix} = xNONE ; then
7798     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7799         sysconfdir=/etc/bacula
7800     fi
7801     prefix=
7802 fi
7803 sysconfdir=`eval echo ${sysconfdir}`
7804 datadir=`eval echo ${datadir}`
7805 localedir=`eval echo ${datadir}/locale`
7806 cat >>confdefs.h <<_ACEOF
7807 #define LOCALEDIR "$localedir"
7808 _ACEOF
7809
7810 cat >>confdefs.h <<_ACEOF
7811 #define SYSCONFDIR "$sysconfdir"
7812 _ACEOF
7813
7814
7815 # -------------------------------------------------------------------------
7816 #  If the user has not set --exec-prefix, we default to ${prefix}
7817 # -------------------------------------------------------------------------
7818 if test x${exec_prefix} = xNONE ; then
7819     exec_prefix=${prefix}
7820 fi
7821
7822 # ------------------------------------------------------------------
7823 # If the user has not set --sbindir, we set our default as /sbin
7824 # ------------------------------------------------------------------
7825 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7826     sbindir=${exec_prefix}/sbin
7827 fi
7828 sbindir=`eval echo ${sbindir}`
7829
7830 # -------------------------------------------------------------------------
7831 #  If the user has not set --mandir, we default to /usr/share/man
7832 # -------------------------------------------------------------------------
7833 if test x$mandir = x'${prefix}/man' ; then
7834    mandir=/usr/share/man
7835 fi
7836
7837
7838 # ------------------------------------------------------------------
7839 # All list of languages for which a translation exist. Each
7840 #  language is separated by a space.
7841 # ------------------------------------------------------------------
7842 ALL_LINGUAS=""
7843
7844 for ac_prog in msgfmt
7845 do
7846   # Extract the first word of "$ac_prog", so it can be a program name with args.
7847 set dummy $ac_prog; ac_word=$2
7848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7850 if test "${ac_cv_path_MSGFMT+set}" = set; then
7851   echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853   case $MSGFMT in
7854   [\\/]* | ?:[\\/]*)
7855   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7856   ;;
7857   *)
7858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7859 for as_dir in $PATH
7860 do
7861   IFS=$as_save_IFS
7862   test -z "$as_dir" && as_dir=.
7863   for ac_exec_ext in '' $ac_executable_extensions; do
7864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7865     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867     break 2
7868   fi
7869 done
7870 done
7871 IFS=$as_save_IFS
7872
7873   ;;
7874 esac
7875 fi
7876 MSGFMT=$ac_cv_path_MSGFMT
7877 if test -n "$MSGFMT"; then
7878   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7879 echo "${ECHO_T}$MSGFMT" >&6; }
7880 else
7881   { echo "$as_me:$LINENO: result: no" >&5
7882 echo "${ECHO_T}no" >&6; }
7883 fi
7884
7885
7886   test -n "$MSGFMT" && break
7887 done
7888 test -n "$MSGFMT" || MSGFMT="no"
7889
7890 if test "$MSGFMT" = "no"
7891 then
7892    echo 'msgfmt program not found, disabling NLS !'
7893    USE_NLS=no
7894    USE_INCLUDED_LIBINTL=no
7895 #else
7896
7897     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7898 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7899 if test "${ac_cv_gnu_library_2+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908
7909 #include <features.h>
7910 #ifdef __GNU_LIBRARY__
7911  #if (__GLIBC__ >= 2)
7912   Lucky GNU user
7913  #endif
7914 #endif
7915
7916 _ACEOF
7917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7918   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7919   ac_cv_gnu_library_2=yes
7920 else
7921   ac_cv_gnu_library_2=no
7922 fi
7923 rm -f conftest*
7924
7925
7926
7927 fi
7928 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7929 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7930
7931     GLIBC2="$ac_cv_gnu_library_2"
7932
7933
7934
7935         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7936 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7937 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7938   echo $ECHO_N "(cached) $ECHO_C" >&6
7939 else
7940   ac_check_lib_save_LIBS=$LIBS
7941 LIBS="-lcposix  $LIBS"
7942 cat >conftest.$ac_ext <<_ACEOF
7943 /* confdefs.h.  */
7944 _ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h.  */
7948
7949 /* Override any GCC internal prototype to avoid an error.
7950    Use char because int might match the return type of a GCC
7951    builtin and then its argument prototype would still apply.  */
7952 #ifdef __cplusplus
7953 extern "C"
7954 #endif
7955 char strerror ();
7956 int
7957 main ()
7958 {
7959 return strerror ();
7960   ;
7961   return 0;
7962 }
7963 _ACEOF
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7966 case "(($ac_try" in
7967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968   *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971   (eval "$ac_link") 2>conftest.er1
7972   ac_status=$?
7973   grep -v '^ *+' conftest.er1 >conftest.err
7974   rm -f conftest.er1
7975   cat conftest.err >&5
7976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7977   (exit $ac_status); } &&
7978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
7988          { ac_try='test -s conftest$ac_exeext'
7989   { (case "(($ac_try" in
7990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991   *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994   (eval "$ac_try") 2>&5
7995   ac_status=$?
7996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7997   (exit $ac_status); }; }; then
7998   ac_cv_lib_cposix_strerror=yes
7999 else
8000   echo "$as_me: failed program was:" >&5
8001 sed 's/^/| /' conftest.$ac_ext >&5
8002
8003         ac_cv_lib_cposix_strerror=no
8004 fi
8005
8006 rm -f core conftest.err conftest.$ac_objext \
8007       conftest$ac_exeext conftest.$ac_ext
8008 LIBS=$ac_check_lib_save_LIBS
8009 fi
8010 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8011 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8012 if test $ac_cv_lib_cposix_strerror = yes; then
8013   LIBS="$LIBS -lcposix"
8014 fi
8015
8016
8017
8018 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8019 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8020 if test "${ac_cv_header_stdc+set}" = set; then
8021   echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023   cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029 #include <stdlib.h>
8030 #include <stdarg.h>
8031 #include <string.h>
8032 #include <float.h>
8033
8034 int
8035 main ()
8036 {
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_compile") 2>conftest.er1
8050   ac_status=$?
8051   grep -v '^ *+' conftest.er1 >conftest.err
8052   rm -f conftest.er1
8053   cat conftest.err >&5
8054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055   (exit $ac_status); } &&
8056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8066          { ac_try='test -s conftest.$ac_objext'
8067   { (case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_try") 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; }; then
8076   ac_cv_header_stdc=yes
8077 else
8078   echo "$as_me: failed program was:" >&5
8079 sed 's/^/| /' conftest.$ac_ext >&5
8080
8081         ac_cv_header_stdc=no
8082 fi
8083
8084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085
8086 if test $ac_cv_header_stdc = yes; then
8087   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8088   cat >conftest.$ac_ext <<_ACEOF
8089 /* confdefs.h.  */
8090 _ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h.  */
8094 #include <string.h>
8095
8096 _ACEOF
8097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8098   $EGREP "memchr" >/dev/null 2>&1; then
8099   :
8100 else
8101   ac_cv_header_stdc=no
8102 fi
8103 rm -f conftest*
8104
8105 fi
8106
8107 if test $ac_cv_header_stdc = yes; then
8108   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8109   cat >conftest.$ac_ext <<_ACEOF
8110 /* confdefs.h.  */
8111 _ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h.  */
8115 #include <stdlib.h>
8116
8117 _ACEOF
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8119   $EGREP "free" >/dev/null 2>&1; then
8120   :
8121 else
8122   ac_cv_header_stdc=no
8123 fi
8124 rm -f conftest*
8125
8126 fi
8127
8128 if test $ac_cv_header_stdc = yes; then
8129   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8130   if test "$cross_compiling" = yes; then
8131   :
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 #include <ctype.h>
8140 #include <stdlib.h>
8141 #if ((' ' & 0x0FF) == 0x020)
8142 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8143 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8144 #else
8145 # define ISLOWER(c) \
8146                    (('a' <= (c) && (c) <= 'i') \
8147                      || ('j' <= (c) && (c) <= 'r') \
8148                      || ('s' <= (c) && (c) <= 'z'))
8149 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #endif
8151
8152 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8153 int
8154 main ()
8155 {
8156   int i;
8157   for (i = 0; i < 256; i++)
8158     if (XOR (islower (i), ISLOWER (i))
8159         || toupper (i) != TOUPPER (i))
8160       return 2;
8161   return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest$ac_exeext
8165 if { (ac_try="$ac_link"
8166 case "(($ac_try" in
8167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168   *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171   (eval "$ac_link") 2>&5
8172   ac_status=$?
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8175   { (case "(($ac_try" in
8176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177   *) ac_try_echo=$ac_try;;
8178 esac
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180   (eval "$ac_try") 2>&5
8181   ac_status=$?
8182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); }; }; then
8184   :
8185 else
8186   echo "$as_me: program exited with status $ac_status" >&5
8187 echo "$as_me: failed program was:" >&5
8188 sed 's/^/| /' conftest.$ac_ext >&5
8189
8190 ( exit $ac_status )
8191 ac_cv_header_stdc=no
8192 fi
8193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8194 fi
8195
8196
8197 fi
8198 fi
8199 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8200 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8201 if test $ac_cv_header_stdc = yes; then
8202
8203 cat >>confdefs.h <<\_ACEOF
8204 #define STDC_HEADERS 1
8205 _ACEOF
8206
8207 fi
8208
8209 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8210 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8211 if test "${ac_cv_c_const+set}" = set; then
8212   echo $ECHO_N "(cached) $ECHO_C" >&6
8213 else
8214   cat >conftest.$ac_ext <<_ACEOF
8215 /* confdefs.h.  */
8216 _ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h.  */
8220
8221 int
8222 main ()
8223 {
8224 /* FIXME: Include the comments suggested by Paul. */
8225 #ifndef __cplusplus
8226   /* Ultrix mips cc rejects this.  */
8227   typedef int charset[2];
8228   const charset x;
8229   /* SunOS 4.1.1 cc rejects this.  */
8230   char const *const *ccp;
8231   char **p;
8232   /* NEC SVR4.0.2 mips cc rejects this.  */
8233   struct point {int x, y;};
8234   static struct point const zero = {0,0};
8235   /* AIX XL C 1.02.0.0 rejects this.
8236      It does not let you subtract one const X* pointer from another in
8237      an arm of an if-expression whose if-part is not a constant
8238      expression */
8239   const char *g = "string";
8240   ccp = &g + (g ? g-g : 0);
8241   /* HPUX 7.0 cc rejects these. */
8242   ++ccp;
8243   p = (char**) ccp;
8244   ccp = (char const *const *) p;
8245   { /* SCO 3.2v4 cc rejects this.  */
8246     char *t;
8247     char const *s = 0 ? (char *) 0 : (char const *) 0;
8248
8249     *t++ = 0;
8250     if (s) return 0;
8251   }
8252   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8253     int x[] = {25, 17};
8254     const int *foo = &x[0];
8255     ++foo;
8256   }
8257   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8258     typedef const int *iptr;
8259     iptr p = 0;
8260     ++p;
8261   }
8262   { /* AIX XL C 1.02.0.0 rejects this saying
8263        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8264     struct s { int j; const int *ap[3]; };
8265     struct s *b; b->j = 5;
8266   }
8267   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8268     const int foo = 10;
8269     if (!foo) return 0;
8270   }
8271   return !x[0] && !zero.x;
8272 #endif
8273
8274   ;
8275   return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282   *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285   (eval "$ac_compile") 2>conftest.er1
8286   ac_status=$?
8287   grep -v '^ *+' conftest.er1 >conftest.err
8288   rm -f conftest.er1
8289   cat conftest.err >&5
8290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291   (exit $ac_status); } &&
8292          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8302          { ac_try='test -s conftest.$ac_objext'
8303   { (case "(($ac_try" in
8304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305   *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308   (eval "$ac_try") 2>&5
8309   ac_status=$?
8310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311   (exit $ac_status); }; }; then
8312   ac_cv_c_const=yes
8313 else
8314   echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8316
8317         ac_cv_c_const=no
8318 fi
8319
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8321 fi
8322 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8323 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8324 if test $ac_cv_c_const = no; then
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define const
8328 _ACEOF
8329
8330 fi
8331
8332
8333   { echo "$as_me:$LINENO: checking for signed" >&5
8334 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8335 if test "${bh_cv_c_signed+set}" = set; then
8336   echo $ECHO_N "(cached) $ECHO_C" >&6
8337 else
8338   cat >conftest.$ac_ext <<_ACEOF
8339 /* confdefs.h.  */
8340 _ACEOF
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h.  */
8344
8345 int
8346 main ()
8347 {
8348 signed char x;
8349   ;
8350   return 0;
8351 }
8352 _ACEOF
8353 rm -f conftest.$ac_objext
8354 if { (ac_try="$ac_compile"
8355 case "(($ac_try" in
8356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357   *) ac_try_echo=$ac_try;;
8358 esac
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360   (eval "$ac_compile") 2>conftest.er1
8361   ac_status=$?
8362   grep -v '^ *+' conftest.er1 >conftest.err
8363   rm -f conftest.er1
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); } &&
8367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8377          { ac_try='test -s conftest.$ac_objext'
8378   { (case "(($ac_try" in
8379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380   *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383   (eval "$ac_try") 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; }; then
8387   bh_cv_c_signed=yes
8388 else
8389   echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.$ac_ext >&5
8391
8392         bh_cv_c_signed=no
8393 fi
8394
8395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 fi
8397 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8398 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8399   if test $bh_cv_c_signed = no; then
8400
8401 cat >>confdefs.h <<\_ACEOF
8402 #define signed
8403 _ACEOF
8404
8405   fi
8406
8407 { echo "$as_me:$LINENO: checking for inline" >&5
8408 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8409 if test "${ac_cv_c_inline+set}" = set; then
8410   echo $ECHO_N "(cached) $ECHO_C" >&6
8411 else
8412   ac_cv_c_inline=no
8413 for ac_kw in inline __inline__ __inline; do
8414   cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h.  */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h.  */
8420 #ifndef __cplusplus
8421 typedef int foo_t;
8422 static $ac_kw foo_t static_foo () {return 0; }
8423 $ac_kw foo_t foo () {return 0; }
8424 #endif
8425
8426 _ACEOF
8427 rm -f conftest.$ac_objext
8428 if { (ac_try="$ac_compile"
8429 case "(($ac_try" in
8430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8431   *) ac_try_echo=$ac_try;;
8432 esac
8433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8434   (eval "$ac_compile") 2>conftest.er1
8435   ac_status=$?
8436   grep -v '^ *+' conftest.er1 >conftest.err
8437   rm -f conftest.er1
8438   cat conftest.err >&5
8439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440   (exit $ac_status); } &&
8441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8451          { ac_try='test -s conftest.$ac_objext'
8452   { (case "(($ac_try" in
8453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8454   *) ac_try_echo=$ac_try;;
8455 esac
8456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8457   (eval "$ac_try") 2>&5
8458   ac_status=$?
8459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460   (exit $ac_status); }; }; then
8461   ac_cv_c_inline=$ac_kw
8462 else
8463   echo "$as_me: failed program was:" >&5
8464 sed 's/^/| /' conftest.$ac_ext >&5
8465
8466
8467 fi
8468
8469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8470   test "$ac_cv_c_inline" != no && break
8471 done
8472
8473 fi
8474 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8475 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8476
8477
8478 case $ac_cv_c_inline in
8479   inline | yes) ;;
8480   *)
8481     case $ac_cv_c_inline in
8482       no) ac_val=;;
8483       *) ac_val=$ac_cv_c_inline;;
8484     esac
8485     cat >>confdefs.h <<_ACEOF
8486 #ifndef __cplusplus
8487 #define inline $ac_val
8488 #endif
8489 _ACEOF
8490     ;;
8491 esac
8492
8493 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8504                   inttypes.h stdint.h unistd.h
8505 do
8506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510   echo $ECHO_N "(cached) $ECHO_C" >&6
8511 else
8512   cat >conftest.$ac_ext <<_ACEOF
8513 /* confdefs.h.  */
8514 _ACEOF
8515 cat confdefs.h >>conftest.$ac_ext
8516 cat >>conftest.$ac_ext <<_ACEOF
8517 /* end confdefs.h.  */
8518 $ac_includes_default
8519
8520 #include <$ac_header>
8521 _ACEOF
8522 rm -f conftest.$ac_objext
8523 if { (ac_try="$ac_compile"
8524 case "(($ac_try" in
8525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8526   *) ac_try_echo=$ac_try;;
8527 esac
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529   (eval "$ac_compile") 2>conftest.er1
8530   ac_status=$?
8531   grep -v '^ *+' conftest.er1 >conftest.err
8532   rm -f conftest.er1
8533   cat conftest.err >&5
8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535   (exit $ac_status); } &&
8536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8546          { ac_try='test -s conftest.$ac_objext'
8547   { (case "(($ac_try" in
8548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8549   *) ac_try_echo=$ac_try;;
8550 esac
8551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8552   (eval "$ac_try") 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   eval "$as_ac_Header=yes"
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561         eval "$as_ac_Header=no"
8562 fi
8563
8564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8565 fi
8566 ac_res=`eval echo '${'$as_ac_Header'}'`
8567                { echo "$as_me:$LINENO: result: $ac_res" >&5
8568 echo "${ECHO_T}$ac_res" >&6; }
8569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8570   cat >>confdefs.h <<_ACEOF
8571 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8572 _ACEOF
8573
8574 fi
8575
8576 done
8577
8578
8579 { echo "$as_me:$LINENO: checking for off_t" >&5
8580 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8581 if test "${ac_cv_type_off_t+set}" = set; then
8582   echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8584   cat >conftest.$ac_ext <<_ACEOF
8585 /* confdefs.h.  */
8586 _ACEOF
8587 cat confdefs.h >>conftest.$ac_ext
8588 cat >>conftest.$ac_ext <<_ACEOF
8589 /* end confdefs.h.  */
8590 $ac_includes_default
8591 typedef off_t ac__type_new_;
8592 int
8593 main ()
8594 {
8595 if ((ac__type_new_ *) 0)
8596   return 0;
8597 if (sizeof (ac__type_new_))
8598   return 0;
8599   ;
8600   return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8605 case "(($ac_try" in
8606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607   *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610   (eval "$ac_compile") 2>conftest.er1
8611   ac_status=$?
8612   grep -v '^ *+' conftest.er1 >conftest.err
8613   rm -f conftest.er1
8614   cat conftest.err >&5
8615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616   (exit $ac_status); } &&
8617          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8627          { ac_try='test -s conftest.$ac_objext'
8628   { (case "(($ac_try" in
8629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630   *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633   (eval "$ac_try") 2>&5
8634   ac_status=$?
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); }; }; then
8637   ac_cv_type_off_t=yes
8638 else
8639   echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642         ac_cv_type_off_t=no
8643 fi
8644
8645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8646 fi
8647 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8648 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8649 if test $ac_cv_type_off_t = yes; then
8650   :
8651 else
8652
8653 cat >>confdefs.h <<_ACEOF
8654 #define off_t long int
8655 _ACEOF
8656
8657 fi
8658
8659 { echo "$as_me:$LINENO: checking for size_t" >&5
8660 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8661 if test "${ac_cv_type_size_t+set}" = set; then
8662   echo $ECHO_N "(cached) $ECHO_C" >&6
8663 else
8664   cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8670 $ac_includes_default
8671 typedef size_t ac__type_new_;
8672 int
8673 main ()
8674 {
8675 if ((ac__type_new_ *) 0)
8676   return 0;
8677 if (sizeof (ac__type_new_))
8678   return 0;
8679   ;
8680   return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8685 case "(($ac_try" in
8686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687   *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690   (eval "$ac_compile") 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } &&
8697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8707          { ac_try='test -s conftest.$ac_objext'
8708   { (case "(($ac_try" in
8709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710   *) ac_try_echo=$ac_try;;
8711 esac
8712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713   (eval "$ac_try") 2>&5
8714   ac_status=$?
8715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716   (exit $ac_status); }; }; then
8717   ac_cv_type_size_t=yes
8718 else
8719   echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8721
8722         ac_cv_type_size_t=no
8723 fi
8724
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 fi
8727 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8728 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8729 if test $ac_cv_type_size_t = yes; then
8730   :
8731 else
8732
8733 cat >>confdefs.h <<_ACEOF
8734 #define size_t unsigned int
8735 _ACEOF
8736
8737 fi
8738
8739
8740   { echo "$as_me:$LINENO: checking for long long" >&5
8741 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8742 if test "${ac_cv_type_long_long+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 long long ll = 1LL; int i = 63;
8752 int
8753 main ()
8754 {
8755 long long llmax = (long long) -1;
8756      return ll << i | ll >> i | llmax / ll | llmax % ll;
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext conftest$ac_exeext
8762 if { (ac_try="$ac_link"
8763 case "(($ac_try" in
8764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765   *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768   (eval "$ac_link") 2>conftest.er1
8769   ac_status=$?
8770   grep -v '^ *+' conftest.er1 >conftest.err
8771   rm -f conftest.er1
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } &&
8775          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8785          { ac_try='test -s conftest$ac_exeext'
8786   { (case "(($ac_try" in
8787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788   *) ac_try_echo=$ac_try;;
8789 esac
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791   (eval "$ac_try") 2>&5
8792   ac_status=$?
8793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794   (exit $ac_status); }; }; then
8795   ac_cv_type_long_long=yes
8796 else
8797   echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800         ac_cv_type_long_long=no
8801 fi
8802
8803 rm -f core conftest.err conftest.$ac_objext \
8804       conftest$ac_exeext conftest.$ac_ext
8805 fi
8806 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8807 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8808   if test $ac_cv_type_long_long = yes; then
8809
8810 cat >>confdefs.h <<\_ACEOF
8811 #define HAVE_LONG_LONG 1
8812 _ACEOF
8813
8814   fi
8815
8816
8817   { echo "$as_me:$LINENO: checking for long double" >&5
8818 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8819 if test "${gt_cv_c_long_double+set}" = set; then
8820   echo $ECHO_N "(cached) $ECHO_C" >&6
8821 else
8822   if test "$GCC" = yes; then
8823        gt_cv_c_long_double=yes
8824      else
8825        cat >conftest.$ac_ext <<_ACEOF
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831
8832          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8833          long double foo = 0.0;
8834          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8835          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8836
8837 int
8838 main ()
8839 {
8840
8841   ;
8842   return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8847 case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_compile") 2>conftest.er1
8853   ac_status=$?
8854   grep -v '^ *+' conftest.er1 >conftest.err
8855   rm -f conftest.er1
8856   cat conftest.err >&5
8857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858   (exit $ac_status); } &&
8859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8869          { ac_try='test -s conftest.$ac_objext'
8870   { (case "(($ac_try" in
8871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872   *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875   (eval "$ac_try") 2>&5
8876   ac_status=$?
8877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878   (exit $ac_status); }; }; then
8879   gt_cv_c_long_double=yes
8880 else
8881   echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8883
8884         gt_cv_c_long_double=no
8885 fi
8886
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888      fi
8889 fi
8890 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8891 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8892   if test $gt_cv_c_long_double = yes; then
8893
8894 cat >>confdefs.h <<\_ACEOF
8895 #define HAVE_LONG_DOUBLE 1
8896 _ACEOF
8897
8898   fi
8899
8900
8901   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8902 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8903 if test "${gt_cv_c_wchar_t+set}" = set; then
8904   echo $ECHO_N "(cached) $ECHO_C" >&6
8905 else
8906   cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912 #include <stddef.h>
8913        wchar_t foo = (wchar_t)'\0';
8914 int
8915 main ()
8916 {
8917
8918   ;
8919   return 0;
8920 }
8921 _ACEOF
8922 rm -f conftest.$ac_objext
8923 if { (ac_try="$ac_compile"
8924 case "(($ac_try" in
8925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8926   *) ac_try_echo=$ac_try;;
8927 esac
8928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8929   (eval "$ac_compile") 2>conftest.er1
8930   ac_status=$?
8931   grep -v '^ *+' conftest.er1 >conftest.err
8932   rm -f conftest.er1
8933   cat conftest.err >&5
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } &&
8936          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8946          { ac_try='test -s conftest.$ac_objext'
8947   { (case "(($ac_try" in
8948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949   *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952   (eval "$ac_try") 2>&5
8953   ac_status=$?
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); }; }; then
8956   gt_cv_c_wchar_t=yes
8957 else
8958   echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961         gt_cv_c_wchar_t=no
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8967 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8968   if test $gt_cv_c_wchar_t = yes; then
8969
8970 cat >>confdefs.h <<\_ACEOF
8971 #define HAVE_WCHAR_T 1
8972 _ACEOF
8973
8974   fi
8975
8976
8977   { echo "$as_me:$LINENO: checking for wint_t" >&5
8978 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8979 if test "${gt_cv_c_wint_t+set}" = set; then
8980   echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982   cat >conftest.$ac_ext <<_ACEOF
8983 /* confdefs.h.  */
8984 _ACEOF
8985 cat confdefs.h >>conftest.$ac_ext
8986 cat >>conftest.$ac_ext <<_ACEOF
8987 /* end confdefs.h.  */
8988 #include <wchar.h>
8989        wint_t foo = (wchar_t)'\0';
8990 int
8991 main ()
8992 {
8993
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 rm -f conftest.$ac_objext
8999 if { (ac_try="$ac_compile"
9000 case "(($ac_try" in
9001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002   *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005   (eval "$ac_compile") 2>conftest.er1
9006   ac_status=$?
9007   grep -v '^ *+' conftest.er1 >conftest.err
9008   rm -f conftest.er1
9009   cat conftest.err >&5
9010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011   (exit $ac_status); } &&
9012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9022          { ac_try='test -s conftest.$ac_objext'
9023   { (case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028   (eval "$ac_try") 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); }; }; then
9032   gt_cv_c_wint_t=yes
9033 else
9034   echo "$as_me: failed program was:" >&5
9035 sed 's/^/| /' conftest.$ac_ext >&5
9036
9037         gt_cv_c_wint_t=no
9038 fi
9039
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 fi
9042 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9043 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9044   if test $gt_cv_c_wint_t = yes; then
9045
9046 cat >>confdefs.h <<\_ACEOF
9047 #define HAVE_WINT_T 1
9048 _ACEOF
9049
9050   fi
9051
9052
9053   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9054 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9055 if test "${gl_cv_header_inttypes_h+set}" = set; then
9056   echo $ECHO_N "(cached) $ECHO_C" >&6
9057 else
9058   cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064 #include <sys/types.h>
9065 #include <inttypes.h>
9066 int
9067 main ()
9068 {
9069 uintmax_t i = (uintmax_t) -1;
9070   ;
9071   return 0;
9072 }
9073 _ACEOF
9074 rm -f conftest.$ac_objext
9075 if { (ac_try="$ac_compile"
9076 case "(($ac_try" in
9077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078   *) ac_try_echo=$ac_try;;
9079 esac
9080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081   (eval "$ac_compile") 2>conftest.er1
9082   ac_status=$?
9083   grep -v '^ *+' conftest.er1 >conftest.err
9084   rm -f conftest.er1
9085   cat conftest.err >&5
9086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087   (exit $ac_status); } &&
9088          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9098          { ac_try='test -s conftest.$ac_objext'
9099   { (case "(($ac_try" in
9100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101   *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104   (eval "$ac_try") 2>&5
9105   ac_status=$?
9106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); }; }; then
9108   gl_cv_header_inttypes_h=yes
9109 else
9110   echo "$as_me: failed program was:" >&5
9111 sed 's/^/| /' conftest.$ac_ext >&5
9112
9113         gl_cv_header_inttypes_h=no
9114 fi
9115
9116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9117 fi
9118 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9119 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9120   if test $gl_cv_header_inttypes_h = yes; then
9121
9122 cat >>confdefs.h <<_ACEOF
9123 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9124 _ACEOF
9125
9126   fi
9127
9128
9129   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9130 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9131 if test "${gl_cv_header_stdint_h+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   cat >conftest.$ac_ext <<_ACEOF
9135 /* confdefs.h.  */
9136 _ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h.  */
9140 #include <sys/types.h>
9141 #include <stdint.h>
9142 int
9143 main ()
9144 {
9145 uintmax_t i = (uintmax_t) -1;
9146   ;
9147   return 0;
9148 }
9149 _ACEOF
9150 rm -f conftest.$ac_objext
9151 if { (ac_try="$ac_compile"
9152 case "(($ac_try" in
9153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154   *) ac_try_echo=$ac_try;;
9155 esac
9156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9157   (eval "$ac_compile") 2>conftest.er1
9158   ac_status=$?
9159   grep -v '^ *+' conftest.er1 >conftest.err
9160   rm -f conftest.er1
9161   cat conftest.err >&5
9162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9163   (exit $ac_status); } &&
9164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9174          { ac_try='test -s conftest.$ac_objext'
9175   { (case "(($ac_try" in
9176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177   *) ac_try_echo=$ac_try;;
9178 esac
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180   (eval "$ac_try") 2>&5
9181   ac_status=$?
9182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183   (exit $ac_status); }; }; then
9184   gl_cv_header_stdint_h=yes
9185 else
9186   echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9188
9189         gl_cv_header_stdint_h=no
9190 fi
9191
9192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9193 fi
9194 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9195 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9196   if test $gl_cv_header_stdint_h = yes; then
9197
9198 cat >>confdefs.h <<_ACEOF
9199 #define HAVE_STDINT_H_WITH_UINTMAX 1
9200 _ACEOF
9201
9202   fi
9203
9204
9205
9206
9207   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9208 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9209 if test "${gt_cv_c_intmax_t+set}" = set; then
9210   echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212   cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218
9219 #include <stddef.h>
9220 #include <stdlib.h>
9221 #if HAVE_STDINT_H_WITH_UINTMAX
9222 #include <stdint.h>
9223 #endif
9224 #if HAVE_INTTYPES_H_WITH_UINTMAX
9225 #include <inttypes.h>
9226 #endif
9227
9228 int
9229 main ()
9230 {
9231 intmax_t x = -1;
9232   ;
9233   return 0;
9234 }
9235 _ACEOF
9236 rm -f conftest.$ac_objext
9237 if { (ac_try="$ac_compile"
9238 case "(($ac_try" in
9239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240   *) ac_try_echo=$ac_try;;
9241 esac
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243   (eval "$ac_compile") 2>conftest.er1
9244   ac_status=$?
9245   grep -v '^ *+' conftest.er1 >conftest.err
9246   rm -f conftest.er1
9247   cat conftest.err >&5
9248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249   (exit $ac_status); } &&
9250          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9260          { ac_try='test -s conftest.$ac_objext'
9261   { (case "(($ac_try" in
9262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263   *) ac_try_echo=$ac_try;;
9264 esac
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266   (eval "$ac_try") 2>&5
9267   ac_status=$?
9268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269   (exit $ac_status); }; }; then
9270   gt_cv_c_intmax_t=yes
9271 else
9272   echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9274
9275         gt_cv_c_intmax_t=no
9276 fi
9277
9278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9279 fi
9280 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9281 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9282   if test $gt_cv_c_intmax_t = yes; then
9283
9284 cat >>confdefs.h <<\_ACEOF
9285 #define HAVE_INTMAX_T 1
9286 _ACEOF
9287
9288   fi
9289
9290
9291
9292   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9293 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9294 if test "${gt_cv_func_printf_posix+set}" = set; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297
9298       if test "$cross_compiling" = yes; then
9299
9300         cat >conftest.$ac_ext <<_ACEOF
9301 /* confdefs.h.  */
9302 _ACEOF
9303 cat confdefs.h >>conftest.$ac_ext
9304 cat >>conftest.$ac_ext <<_ACEOF
9305 /* end confdefs.h.  */
9306
9307 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9308   notposix
9309 #endif
9310
9311 _ACEOF
9312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9313   $EGREP "notposix" >/dev/null 2>&1; then
9314   gt_cv_func_printf_posix="guessing no"
9315 else
9316   gt_cv_func_printf_posix="guessing yes"
9317 fi
9318 rm -f conftest*
9319
9320
9321 else
9322   cat >conftest.$ac_ext <<_ACEOF
9323 /* confdefs.h.  */
9324 _ACEOF
9325 cat confdefs.h >>conftest.$ac_ext
9326 cat >>conftest.$ac_ext <<_ACEOF
9327 /* end confdefs.h.  */
9328
9329 #include <stdio.h>
9330 #include <string.h>
9331 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9332    dollar expansion (possibly an autoconf bug).  */
9333 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9334 static char buf[100];
9335 int main ()
9336 {
9337   sprintf (buf, format, 33, 55);
9338   return (strcmp (buf, "55 33") != 0);
9339 }
9340 _ACEOF
9341 rm -f conftest$ac_exeext
9342 if { (ac_try="$ac_link"
9343 case "(($ac_try" in
9344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9345   *) ac_try_echo=$ac_try;;
9346 esac
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348   (eval "$ac_link") 2>&5
9349   ac_status=$?
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9352   { (case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_try") 2>&5
9358   ac_status=$?
9359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360   (exit $ac_status); }; }; then
9361   gt_cv_func_printf_posix=yes
9362 else
9363   echo "$as_me: program exited with status $ac_status" >&5
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ( exit $ac_status )
9368 gt_cv_func_printf_posix=no
9369 fi
9370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9371 fi
9372
9373
9374
9375 fi
9376 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9377 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9378   case $gt_cv_func_printf_posix in
9379     *yes)
9380
9381 cat >>confdefs.h <<\_ACEOF
9382 #define HAVE_POSIX_PRINTF 1
9383 _ACEOF
9384
9385       ;;
9386   esac
9387
9388 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9389 # for constant arguments.  Useless!
9390 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9391 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9392 if test "${ac_cv_working_alloca_h+set}" = set; then
9393   echo $ECHO_N "(cached) $ECHO_C" >&6
9394 else
9395   cat >conftest.$ac_ext <<_ACEOF
9396 /* confdefs.h.  */
9397 _ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h.  */
9401 #include <alloca.h>
9402 int
9403 main ()
9404 {
9405 char *p = (char *) alloca (2 * sizeof (int));
9406                           if (p) return 0;
9407   ;
9408   return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext conftest$ac_exeext
9412 if { (ac_try="$ac_link"
9413 case "(($ac_try" in
9414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9415   *) ac_try_echo=$ac_try;;
9416 esac
9417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9418   (eval "$ac_link") 2>conftest.er1
9419   ac_status=$?
9420   grep -v '^ *+' conftest.er1 >conftest.err
9421   rm -f conftest.er1
9422   cat conftest.err >&5
9423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9424   (exit $ac_status); } &&
9425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9435          { ac_try='test -s conftest$ac_exeext'
9436   { (case "(($ac_try" in
9437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9438   *) ac_try_echo=$ac_try;;
9439 esac
9440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9441   (eval "$ac_try") 2>&5
9442   ac_status=$?
9443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9444   (exit $ac_status); }; }; then
9445   ac_cv_working_alloca_h=yes
9446 else
9447   echo "$as_me: failed program was:" >&5
9448 sed 's/^/| /' conftest.$ac_ext >&5
9449
9450         ac_cv_working_alloca_h=no
9451 fi
9452
9453 rm -f core conftest.err conftest.$ac_objext \
9454       conftest$ac_exeext conftest.$ac_ext
9455 fi
9456 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9457 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9458 if test $ac_cv_working_alloca_h = yes; then
9459
9460 cat >>confdefs.h <<\_ACEOF
9461 #define HAVE_ALLOCA_H 1
9462 _ACEOF
9463
9464 fi
9465
9466 { echo "$as_me:$LINENO: checking for alloca" >&5
9467 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9468 if test "${ac_cv_func_alloca_works+set}" = set; then
9469   echo $ECHO_N "(cached) $ECHO_C" >&6
9470 else
9471   cat >conftest.$ac_ext <<_ACEOF
9472 /* confdefs.h.  */
9473 _ACEOF
9474 cat confdefs.h >>conftest.$ac_ext
9475 cat >>conftest.$ac_ext <<_ACEOF
9476 /* end confdefs.h.  */
9477 #ifdef __GNUC__
9478 # define alloca __builtin_alloca
9479 #else
9480 # ifdef _MSC_VER
9481 #  include <malloc.h>
9482 #  define alloca _alloca
9483 # else
9484 #  if HAVE_ALLOCA_H
9485 #   include <alloca.h>
9486 #  else
9487 #   ifdef _AIX
9488  #pragma alloca
9489 #   else
9490 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9491 char *alloca ();
9492 #    endif
9493 #   endif
9494 #  endif
9495 # endif
9496 #endif
9497
9498 int
9499 main ()
9500 {
9501 char *p = (char *) alloca (1);
9502                                     if (p) return 0;
9503   ;
9504   return 0;
9505 }
9506 _ACEOF
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9509 case "(($ac_try" in
9510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511   *) ac_try_echo=$ac_try;;
9512 esac
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514   (eval "$ac_link") 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } &&
9521          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9531          { ac_try='test -s conftest$ac_exeext'
9532   { (case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537   (eval "$ac_try") 2>&5
9538   ac_status=$?
9539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540   (exit $ac_status); }; }; then
9541   ac_cv_func_alloca_works=yes
9542 else
9543   echo "$as_me: failed program was:" >&5
9544 sed 's/^/| /' conftest.$ac_ext >&5
9545
9546         ac_cv_func_alloca_works=no
9547 fi
9548
9549 rm -f core conftest.err conftest.$ac_objext \
9550       conftest$ac_exeext conftest.$ac_ext
9551 fi
9552 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9553 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9554
9555 if test $ac_cv_func_alloca_works = yes; then
9556
9557 cat >>confdefs.h <<\_ACEOF
9558 #define HAVE_ALLOCA 1
9559 _ACEOF
9560
9561 else
9562   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9563 # that cause trouble.  Some versions do not even contain alloca or
9564 # contain a buggy version.  If you still want to use their alloca,
9565 # use ar to extract alloca.o from them instead of compiling alloca.c.
9566
9567 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9568
9569 cat >>confdefs.h <<\_ACEOF
9570 #define C_ALLOCA 1
9571 _ACEOF
9572
9573
9574 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9575 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9576 if test "${ac_cv_os_cray+set}" = set; then
9577   echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579   cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h.  */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h.  */
9585 #if defined CRAY && ! defined CRAY2
9586 webecray
9587 #else
9588 wenotbecray
9589 #endif
9590
9591 _ACEOF
9592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9593   $EGREP "webecray" >/dev/null 2>&1; then
9594   ac_cv_os_cray=yes
9595 else
9596   ac_cv_os_cray=no
9597 fi
9598 rm -f conftest*
9599
9600 fi
9601 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9602 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9603 if test $ac_cv_os_cray = yes; then
9604   for ac_func in _getb67 GETB67 getb67; do
9605     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9609   echo $ECHO_N "(cached) $ECHO_C" >&6
9610 else
9611   cat >conftest.$ac_ext <<_ACEOF
9612 /* confdefs.h.  */
9613 _ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h.  */
9617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9618    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9619 #define $ac_func innocuous_$ac_func
9620
9621 /* System header to define __stub macros and hopefully few prototypes,
9622     which can conflict with char $ac_func (); below.
9623     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9624     <limits.h> exists even on freestanding compilers.  */
9625
9626 #ifdef __STDC__
9627 # include <limits.h>
9628 #else
9629 # include <assert.h>
9630 #endif
9631
9632 #undef $ac_func
9633
9634 /* Override any GCC internal prototype to avoid an error.
9635    Use char because int might match the return type of a GCC
9636    builtin and then its argument prototype would still apply.  */
9637 #ifdef __cplusplus
9638 extern "C"
9639 #endif
9640 char $ac_func ();
9641 /* The GNU C library defines this for functions which it implements
9642     to always fail with ENOSYS.  Some functions are actually named
9643     something starting with __ and the normal name is an alias.  */
9644 #if defined __stub_$ac_func || defined __stub___$ac_func
9645 choke me
9646 #endif
9647
9648 int
9649 main ()
9650 {
9651 return $ac_func ();
9652   ;
9653   return 0;
9654 }
9655 _ACEOF
9656 rm -f conftest.$ac_objext conftest$ac_exeext
9657 if { (ac_try="$ac_link"
9658 case "(($ac_try" in
9659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9660   *) ac_try_echo=$ac_try;;
9661 esac
9662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9663   (eval "$ac_link") 2>conftest.er1
9664   ac_status=$?
9665   grep -v '^ *+' conftest.er1 >conftest.err
9666   rm -f conftest.er1
9667   cat conftest.err >&5
9668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669   (exit $ac_status); } &&
9670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9680          { ac_try='test -s conftest$ac_exeext'
9681   { (case "(($ac_try" in
9682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683   *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686   (eval "$ac_try") 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; }; then
9690   eval "$as_ac_var=yes"
9691 else
9692   echo "$as_me: failed program was:" >&5
9693 sed 's/^/| /' conftest.$ac_ext >&5
9694
9695         eval "$as_ac_var=no"
9696 fi
9697
9698 rm -f core conftest.err conftest.$ac_objext \
9699       conftest$ac_exeext conftest.$ac_ext
9700 fi
9701 ac_res=`eval echo '${'$as_ac_var'}'`
9702                { echo "$as_me:$LINENO: result: $ac_res" >&5
9703 echo "${ECHO_T}$ac_res" >&6; }
9704 if test `eval echo '${'$as_ac_var'}'` = yes; then
9705
9706 cat >>confdefs.h <<_ACEOF
9707 #define CRAY_STACKSEG_END $ac_func
9708 _ACEOF
9709
9710     break
9711 fi
9712
9713   done
9714 fi
9715
9716 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9717 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9718 if test "${ac_cv_c_stack_direction+set}" = set; then
9719   echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721   if test "$cross_compiling" = yes; then
9722   ac_cv_c_stack_direction=0
9723 else
9724   cat >conftest.$ac_ext <<_ACEOF
9725 /* confdefs.h.  */
9726 _ACEOF
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h.  */
9730 $ac_includes_default
9731 int
9732 find_stack_direction ()
9733 {
9734   static char *addr = 0;
9735   auto char dummy;
9736   if (addr == 0)
9737     {
9738       addr = &dummy;
9739       return find_stack_direction ();
9740     }
9741   else
9742     return (&dummy > addr) ? 1 : -1;
9743 }
9744
9745 int
9746 main ()
9747 {
9748   return find_stack_direction () < 0;
9749 }
9750 _ACEOF
9751 rm -f conftest$ac_exeext
9752 if { (ac_try="$ac_link"
9753 case "(($ac_try" in
9754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9755   *) ac_try_echo=$ac_try;;
9756 esac
9757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9758   (eval "$ac_link") 2>&5
9759   ac_status=$?
9760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9762   { (case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767   (eval "$ac_try") 2>&5
9768   ac_status=$?
9769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770   (exit $ac_status); }; }; then
9771   ac_cv_c_stack_direction=1
9772 else
9773   echo "$as_me: program exited with status $ac_status" >&5
9774 echo "$as_me: failed program was:" >&5
9775 sed 's/^/| /' conftest.$ac_ext >&5
9776
9777 ( exit $ac_status )
9778 ac_cv_c_stack_direction=-1
9779 fi
9780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9781 fi
9782
9783
9784 fi
9785 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9786 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9787
9788 cat >>confdefs.h <<_ACEOF
9789 #define STACK_DIRECTION $ac_cv_c_stack_direction
9790 _ACEOF
9791
9792
9793 fi
9794
9795
9796
9797 for ac_header in stdlib.h unistd.h
9798 do
9799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804   echo $ECHO_N "(cached) $ECHO_C" >&6
9805 fi
9806 ac_res=`eval echo '${'$as_ac_Header'}'`
9807                { echo "$as_me:$LINENO: result: $ac_res" >&5
9808 echo "${ECHO_T}$ac_res" >&6; }
9809 else
9810   # Is the header compilable?
9811 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9812 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9813 cat >conftest.$ac_ext <<_ACEOF
9814 /* confdefs.h.  */
9815 _ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h.  */
9819 $ac_includes_default
9820 #include <$ac_header>
9821 _ACEOF
9822 rm -f conftest.$ac_objext
9823 if { (ac_try="$ac_compile"
9824 case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_compile") 2>conftest.er1
9830   ac_status=$?
9831   grep -v '^ *+' conftest.er1 >conftest.err
9832   rm -f conftest.er1
9833   cat conftest.err >&5
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } &&
9836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9846          { ac_try='test -s conftest.$ac_objext'
9847   { (case "(($ac_try" in
9848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9849   *) ac_try_echo=$ac_try;;
9850 esac
9851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9852   (eval "$ac_try") 2>&5
9853   ac_status=$?
9854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855   (exit $ac_status); }; }; then
9856   ac_header_compiler=yes
9857 else
9858   echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861         ac_header_compiler=no
9862 fi
9863
9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9865 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9866 echo "${ECHO_T}$ac_header_compiler" >&6; }
9867
9868 # Is the header present?
9869 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9871 cat >conftest.$ac_ext <<_ACEOF
9872 /* confdefs.h.  */
9873 _ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h.  */
9877 #include <$ac_header>
9878 _ACEOF
9879 if { (ac_try="$ac_cpp conftest.$ac_ext"
9880 case "(($ac_try" in
9881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9882   *) ac_try_echo=$ac_try;;
9883 esac
9884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9886   ac_status=$?
9887   grep -v '^ *+' conftest.er1 >conftest.err
9888   rm -f conftest.er1
9889   cat conftest.err >&5
9890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891   (exit $ac_status); } >/dev/null; then
9892   if test -s conftest.err; then
9893     ac_cpp_err=$ac_c_preproc_warn_flag
9894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9895   else
9896     ac_cpp_err=
9897   fi
9898 else
9899   ac_cpp_err=yes
9900 fi
9901 if test -z "$ac_cpp_err"; then
9902   ac_header_preproc=yes
9903 else
9904   echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9906
9907   ac_header_preproc=no
9908 fi
9909
9910 rm -f conftest.err conftest.$ac_ext
9911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9912 echo "${ECHO_T}$ac_header_preproc" >&6; }
9913
9914 # So?  What about this header?
9915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9916   yes:no: )
9917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9921     ac_header_preproc=yes
9922     ;;
9923   no:yes:* )
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9936
9937     ;;
9938 esac
9939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9942   echo $ECHO_N "(cached) $ECHO_C" >&6
9943 else
9944   eval "$as_ac_Header=\$ac_header_preproc"
9945 fi
9946 ac_res=`eval echo '${'$as_ac_Header'}'`
9947                { echo "$as_me:$LINENO: result: $ac_res" >&5
9948 echo "${ECHO_T}$ac_res" >&6; }
9949
9950 fi
9951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9952   cat >>confdefs.h <<_ACEOF
9953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9954 _ACEOF
9955
9956 fi
9957
9958 done
9959
9960
9961 for ac_func in getpagesize
9962 do
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9966 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   cat >conftest.$ac_ext <<_ACEOF
9970 /* confdefs.h.  */
9971 _ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h.  */
9975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9976    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9977 #define $ac_func innocuous_$ac_func
9978
9979 /* System header to define __stub macros and hopefully few prototypes,
9980     which can conflict with char $ac_func (); below.
9981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982     <limits.h> exists even on freestanding compilers.  */
9983
9984 #ifdef __STDC__
9985 # include <limits.h>
9986 #else
9987 # include <assert.h>
9988 #endif
9989
9990 #undef $ac_func
9991
9992 /* Override any GCC internal prototype to avoid an error.
9993    Use char because int might match the return type of a GCC
9994    builtin and then its argument prototype would still apply.  */
9995 #ifdef __cplusplus
9996 extern "C"
9997 #endif
9998 char $ac_func ();
9999 /* The GNU C library defines this for functions which it implements
10000     to always fail with ENOSYS.  Some functions are actually named
10001     something starting with __ and the normal name is an alias.  */
10002 #if defined __stub_$ac_func || defined __stub___$ac_func
10003 choke me
10004 #endif
10005
10006 int
10007 main ()
10008 {
10009 return $ac_func ();
10010   ;
10011   return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018   *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021   (eval "$ac_link") 2>conftest.er1
10022   ac_status=$?
10023   grep -v '^ *+' conftest.er1 >conftest.err
10024   rm -f conftest.er1
10025   cat conftest.err >&5
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); } &&
10028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10038          { ac_try='test -s conftest$ac_exeext'
10039   { (case "(($ac_try" in
10040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041   *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044   (eval "$ac_try") 2>&5
10045   ac_status=$?
10046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047   (exit $ac_status); }; }; then
10048   eval "$as_ac_var=yes"
10049 else
10050   echo "$as_me: failed program was:" >&5
10051 sed 's/^/| /' conftest.$ac_ext >&5
10052
10053         eval "$as_ac_var=no"
10054 fi
10055
10056 rm -f core conftest.err conftest.$ac_objext \
10057       conftest$ac_exeext conftest.$ac_ext
10058 fi
10059 ac_res=`eval echo '${'$as_ac_var'}'`
10060                { echo "$as_me:$LINENO: result: $ac_res" >&5
10061 echo "${ECHO_T}$ac_res" >&6; }
10062 if test `eval echo '${'$as_ac_var'}'` = yes; then
10063   cat >>confdefs.h <<_ACEOF
10064 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10065 _ACEOF
10066
10067 fi
10068 done
10069
10070 { echo "$as_me:$LINENO: checking for working mmap" >&5
10071 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10072 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10073   echo $ECHO_N "(cached) $ECHO_C" >&6
10074 else
10075   if test "$cross_compiling" = yes; then
10076   ac_cv_func_mmap_fixed_mapped=no
10077 else
10078   cat >conftest.$ac_ext <<_ACEOF
10079 /* confdefs.h.  */
10080 _ACEOF
10081 cat confdefs.h >>conftest.$ac_ext
10082 cat >>conftest.$ac_ext <<_ACEOF
10083 /* end confdefs.h.  */
10084 $ac_includes_default
10085 /* malloc might have been renamed as rpl_malloc. */
10086 #undef malloc
10087
10088 /* Thanks to Mike Haertel and Jim Avera for this test.
10089    Here is a matrix of mmap possibilities:
10090         mmap private not fixed
10091         mmap private fixed at somewhere currently unmapped
10092         mmap private fixed at somewhere already mapped
10093         mmap shared not fixed
10094         mmap shared fixed at somewhere currently unmapped
10095         mmap shared fixed at somewhere already mapped
10096    For private mappings, we should verify that changes cannot be read()
10097    back from the file, nor mmap's back from the file at a different
10098    address.  (There have been systems where private was not correctly
10099    implemented like the infamous i386 svr4.0, and systems where the
10100    VM page cache was not coherent with the file system buffer cache
10101    like early versions of FreeBSD and possibly contemporary NetBSD.)
10102    For shared mappings, we should conversely verify that changes get
10103    propagated back to all the places they're supposed to be.
10104
10105    Grep wants private fixed already mapped.
10106    The main things grep needs to know about mmap are:
10107    * does it exist and is it safe to write into the mmap'd area
10108    * how to use it (BSD variants)  */
10109
10110 #include <fcntl.h>
10111 #include <sys/mman.h>
10112
10113 #if !STDC_HEADERS && !HAVE_STDLIB_H
10114 char *malloc ();
10115 #endif
10116
10117 /* This mess was copied from the GNU getpagesize.h.  */
10118 #if !HAVE_GETPAGESIZE
10119 /* Assume that all systems that can run configure have sys/param.h.  */
10120 # if !HAVE_SYS_PARAM_H
10121 #  define HAVE_SYS_PARAM_H 1
10122 # endif
10123
10124 # ifdef _SC_PAGESIZE
10125 #  define getpagesize() sysconf(_SC_PAGESIZE)
10126 # else /* no _SC_PAGESIZE */
10127 #  if HAVE_SYS_PARAM_H
10128 #   include <sys/param.h>
10129 #   ifdef EXEC_PAGESIZE
10130 #    define getpagesize() EXEC_PAGESIZE
10131 #   else /* no EXEC_PAGESIZE */
10132 #    ifdef NBPG
10133 #     define getpagesize() NBPG * CLSIZE
10134 #     ifndef CLSIZE
10135 #      define CLSIZE 1
10136 #     endif /* no CLSIZE */
10137 #    else /* no NBPG */
10138 #     ifdef NBPC
10139 #      define getpagesize() NBPC
10140 #     else /* no NBPC */
10141 #      ifdef PAGESIZE
10142 #       define getpagesize() PAGESIZE
10143 #      endif /* PAGESIZE */
10144 #     endif /* no NBPC */
10145 #    endif /* no NBPG */
10146 #   endif /* no EXEC_PAGESIZE */
10147 #  else /* no HAVE_SYS_PARAM_H */
10148 #   define getpagesize() 8192   /* punt totally */
10149 #  endif /* no HAVE_SYS_PARAM_H */
10150 # endif /* no _SC_PAGESIZE */
10151
10152 #endif /* no HAVE_GETPAGESIZE */
10153
10154 int
10155 main ()
10156 {
10157   char *data, *data2, *data3;
10158   int i, pagesize;
10159   int fd;
10160
10161   pagesize = getpagesize ();
10162
10163   /* First, make a file with some known garbage in it. */
10164   data = (char *) malloc (pagesize);
10165   if (!data)
10166     return 1;
10167   for (i = 0; i < pagesize; ++i)
10168     *(data + i) = rand ();
10169   umask (0);
10170   fd = creat ("conftest.mmap", 0600);
10171   if (fd < 0)
10172     return 1;
10173   if (write (fd, data, pagesize) != pagesize)
10174     return 1;
10175   close (fd);
10176
10177   /* Next, try to mmap the file at a fixed address which already has
10178      something else allocated at it.  If we can, also make sure that
10179      we see the same garbage.  */
10180   fd = open ("conftest.mmap", O_RDWR);
10181   if (fd < 0)
10182     return 1;
10183   data2 = (char *) malloc (2 * pagesize);
10184   if (!data2)
10185     return 1;
10186   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10187   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10188                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10189     return 1;
10190   for (i = 0; i < pagesize; ++i)
10191     if (*(data + i) != *(data2 + i))
10192       return 1;
10193
10194   /* Finally, make sure that changes to the mapped area do not
10195      percolate back to the file as seen by read().  (This is a bug on
10196      some variants of i386 svr4.0.)  */
10197   for (i = 0; i < pagesize; ++i)
10198     *(data2 + i) = *(data2 + i) + 1;
10199   data3 = (char *) malloc (pagesize);
10200   if (!data3)
10201     return 1;
10202   if (read (fd, data3, pagesize) != pagesize)
10203     return 1;
10204   for (i = 0; i < pagesize; ++i)
10205     if (*(data + i) != *(data3 + i))
10206       return 1;
10207   close (fd);
10208   return 0;
10209 }
10210 _ACEOF
10211 rm -f conftest$ac_exeext
10212 if { (ac_try="$ac_link"
10213 case "(($ac_try" in
10214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215   *) ac_try_echo=$ac_try;;
10216 esac
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218   (eval "$ac_link") 2>&5
10219   ac_status=$?
10220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10222   { (case "(($ac_try" in
10223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10224   *) ac_try_echo=$ac_try;;
10225 esac
10226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10227   (eval "$ac_try") 2>&5
10228   ac_status=$?
10229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230   (exit $ac_status); }; }; then
10231   ac_cv_func_mmap_fixed_mapped=yes
10232 else
10233   echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10236
10237 ( exit $ac_status )
10238 ac_cv_func_mmap_fixed_mapped=no
10239 fi
10240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10241 fi
10242
10243
10244 fi
10245 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10247 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10248
10249 cat >>confdefs.h <<\_ACEOF
10250 #define HAVE_MMAP 1
10251 _ACEOF
10252
10253 fi
10254 rm -f conftest.mmap
10255
10256
10257     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10258 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10259 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10260   echo $ECHO_N "(cached) $ECHO_C" >&6
10261 else
10262   cat >conftest.$ac_ext <<_ACEOF
10263 /* confdefs.h.  */
10264 _ACEOF
10265 cat confdefs.h >>conftest.$ac_ext
10266 cat >>conftest.$ac_ext <<_ACEOF
10267 /* end confdefs.h.  */
10268
10269 #include <features.h>
10270 #ifdef __GNU_LIBRARY__
10271  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10272   Lucky GNU user
10273  #endif
10274 #endif
10275
10276 _ACEOF
10277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10278   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10279   ac_cv_gnu_library_2_1=yes
10280 else
10281   ac_cv_gnu_library_2_1=no
10282 fi
10283 rm -f conftest*
10284
10285
10286
10287 fi
10288 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10289 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10290
10291     GLIBC21="$ac_cv_gnu_library_2_1"
10292
10293
10294
10295
10296   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10297 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10298 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10299   echo $ECHO_N "(cached) $ECHO_C" >&6
10300 else
10301
10302       if test "$cross_compiling" = yes; then
10303
10304           # Guess based on the CPU.
10305           case "$host_cpu" in
10306             alpha* | i3456786 | m68k | s390*)
10307               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10308             *)
10309               gt_cv_int_divbyzero_sigfpe="guessing no";;
10310           esac
10311
10312 else
10313   cat >conftest.$ac_ext <<_ACEOF
10314 /* confdefs.h.  */
10315 _ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h.  */
10319
10320 #include <stdlib.h>
10321 #include <signal.h>
10322
10323 static void
10324 #ifdef __cplusplus
10325 sigfpe_handler (int sig)
10326 #else
10327 sigfpe_handler (sig) int sig;
10328 #endif
10329 {
10330   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10331   exit (sig != SIGFPE);
10332 }
10333
10334 int x = 1;
10335 int y = 0;
10336 int z;
10337 int nan;
10338
10339 int main ()
10340 {
10341   signal (SIGFPE, sigfpe_handler);
10342 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10343 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10344   signal (SIGTRAP, sigfpe_handler);
10345 #endif
10346 /* Linux/SPARC yields signal SIGILL.  */
10347 #if defined (__sparc__) && defined (__linux__)
10348   signal (SIGILL, sigfpe_handler);
10349 #endif
10350
10351   z = x / y;
10352   nan = y / y;
10353   exit (1);
10354 }
10355
10356 _ACEOF
10357 rm -f conftest$ac_exeext
10358 if { (ac_try="$ac_link"
10359 case "(($ac_try" in
10360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10361   *) ac_try_echo=$ac_try;;
10362 esac
10363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10364   (eval "$ac_link") 2>&5
10365   ac_status=$?
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10368   { (case "(($ac_try" in
10369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370   *) ac_try_echo=$ac_try;;
10371 esac
10372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10373   (eval "$ac_try") 2>&5
10374   ac_status=$?
10375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376   (exit $ac_status); }; }; then
10377   gt_cv_int_divbyzero_sigfpe=yes
10378 else
10379   echo "$as_me: program exited with status $ac_status" >&5
10380 echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10382
10383 ( exit $ac_status )
10384 gt_cv_int_divbyzero_sigfpe=no
10385 fi
10386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10387 fi
10388
10389
10390
10391 fi
10392 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10393 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10394   case "$gt_cv_int_divbyzero_sigfpe" in
10395     *yes) value=1;;
10396     *) value=0;;
10397   esac
10398
10399 cat >>confdefs.h <<_ACEOF
10400 #define INTDIV0_RAISES_SIGFPE $value
10401 _ACEOF
10402
10403
10404
10405   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10406 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10407 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10408   echo $ECHO_N "(cached) $ECHO_C" >&6
10409 else
10410   cat >conftest.$ac_ext <<_ACEOF
10411 /* confdefs.h.  */
10412 _ACEOF
10413 cat confdefs.h >>conftest.$ac_ext
10414 cat >>conftest.$ac_ext <<_ACEOF
10415 /* end confdefs.h.  */
10416 unsigned long long ull = 1ULL; int i = 63;
10417 int
10418 main ()
10419 {
10420 unsigned long long ullmax = (unsigned long long) -1;
10421      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10422   ;
10423   return 0;
10424 }
10425 _ACEOF
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430   *) ac_try_echo=$ac_try;;
10431 esac
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433   (eval "$ac_link") 2>conftest.er1
10434   ac_status=$?
10435   grep -v '^ *+' conftest.er1 >conftest.err
10436   rm -f conftest.er1
10437   cat conftest.err >&5
10438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439   (exit $ac_status); } &&
10440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10450          { ac_try='test -s conftest$ac_exeext'
10451   { (case "(($ac_try" in
10452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453   *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456   (eval "$ac_try") 2>&5
10457   ac_status=$?
10458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459   (exit $ac_status); }; }; then
10460   ac_cv_type_unsigned_long_long=yes
10461 else
10462   echo "$as_me: failed program was:" >&5
10463 sed 's/^/| /' conftest.$ac_ext >&5
10464
10465         ac_cv_type_unsigned_long_long=no
10466 fi
10467
10468 rm -f core conftest.err conftest.$ac_objext \
10469       conftest$ac_exeext conftest.$ac_ext
10470 fi
10471 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10472 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10473   if test $ac_cv_type_unsigned_long_long = yes; then
10474
10475 cat >>confdefs.h <<\_ACEOF
10476 #define HAVE_UNSIGNED_LONG_LONG 1
10477 _ACEOF
10478
10479   fi
10480
10481
10482
10483
10484   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10485
10486     test $ac_cv_type_unsigned_long_long = yes \
10487       && ac_type='unsigned long long' \
10488       || ac_type='unsigned long'
10489
10490 cat >>confdefs.h <<_ACEOF
10491 #define uintmax_t $ac_type
10492 _ACEOF
10493
10494   else
10495
10496 cat >>confdefs.h <<\_ACEOF
10497 #define HAVE_UINTMAX_T 1
10498 _ACEOF
10499
10500   fi
10501
10502
10503   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10504 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10505 if test "${gt_cv_header_inttypes_h+set}" = set; then
10506   echo $ECHO_N "(cached) $ECHO_C" >&6
10507 else
10508
10509     cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <sys/types.h>
10516 #include <inttypes.h>
10517 int
10518 main ()
10519 {
10520
10521   ;
10522   return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext
10526 if { (ac_try="$ac_compile"
10527 case "(($ac_try" in
10528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529   *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532   (eval "$ac_compile") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } &&
10539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10549          { ac_try='test -s conftest.$ac_objext'
10550   { (case "(($ac_try" in
10551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10552   *) ac_try_echo=$ac_try;;
10553 esac
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555   (eval "$ac_try") 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   gt_cv_header_inttypes_h=yes
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564         gt_cv_header_inttypes_h=no
10565 fi
10566
10567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10568
10569 fi
10570 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10571 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10572   if test $gt_cv_header_inttypes_h = yes; then
10573
10574 cat >>confdefs.h <<_ACEOF
10575 #define HAVE_INTTYPES_H 1
10576 _ACEOF
10577
10578   fi
10579
10580
10581
10582   if test $gt_cv_header_inttypes_h = yes; then
10583     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10584 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10585 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10586   echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588
10589         cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h.  */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h.  */
10595 #include <inttypes.h>
10596 #ifdef PRId32
10597 char *p = PRId32;
10598 #endif
10599
10600 int
10601 main ()
10602 {
10603
10604   ;
10605   return 0;
10606 }
10607 _ACEOF
10608 rm -f conftest.$ac_objext
10609 if { (ac_try="$ac_compile"
10610 case "(($ac_try" in
10611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10612   *) ac_try_echo=$ac_try;;
10613 esac
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615   (eval "$ac_compile") 2>conftest.er1
10616   ac_status=$?
10617   grep -v '^ *+' conftest.er1 >conftest.err
10618   rm -f conftest.er1
10619   cat conftest.err >&5
10620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621   (exit $ac_status); } &&
10622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10632          { ac_try='test -s conftest.$ac_objext'
10633   { (case "(($ac_try" in
10634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635   *) ac_try_echo=$ac_try;;
10636 esac
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638   (eval "$ac_try") 2>&5
10639   ac_status=$?
10640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); }; }; then
10642   gt_cv_inttypes_pri_broken=no
10643 else
10644   echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647         gt_cv_inttypes_pri_broken=yes
10648 fi
10649
10650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651
10652 fi
10653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10655   fi
10656   if test "$gt_cv_inttypes_pri_broken" = yes; then
10657
10658 cat >>confdefs.h <<_ACEOF
10659 #define PRI_MACROS_BROKEN 1
10660 _ACEOF
10661
10662   fi
10663
10664
10665
10666 for ac_header in stdint.h
10667 do
10668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10673   echo $ECHO_N "(cached) $ECHO_C" >&6
10674 fi
10675 ac_res=`eval echo '${'$as_ac_Header'}'`
10676                { echo "$as_me:$LINENO: result: $ac_res" >&5
10677 echo "${ECHO_T}$ac_res" >&6; }
10678 else
10679   # Is the header compilable?
10680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10683 /* confdefs.h.  */
10684 _ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h.  */
10688 $ac_includes_default
10689 #include <$ac_header>
10690 _ACEOF
10691 rm -f conftest.$ac_objext
10692 if { (ac_try="$ac_compile"
10693 case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698   (eval "$ac_compile") 2>conftest.er1
10699   ac_status=$?
10700   grep -v '^ *+' conftest.er1 >conftest.err
10701   rm -f conftest.er1
10702   cat conftest.err >&5
10703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704   (exit $ac_status); } &&
10705          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10715          { ac_try='test -s conftest.$ac_objext'
10716   { (case "(($ac_try" in
10717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718   *) ac_try_echo=$ac_try;;
10719 esac
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721   (eval "$ac_try") 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; }; then
10725   ac_header_compiler=yes
10726 else
10727   echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10729
10730         ac_header_compiler=no
10731 fi
10732
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10735 echo "${ECHO_T}$ac_header_compiler" >&6; }
10736
10737 # Is the header present?
10738 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h.  */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h.  */
10746 #include <$ac_header>
10747 _ACEOF
10748 if { (ac_try="$ac_cpp conftest.$ac_ext"
10749 case "(($ac_try" in
10750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10751   *) ac_try_echo=$ac_try;;
10752 esac
10753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10754   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10755   ac_status=$?
10756   grep -v '^ *+' conftest.er1 >conftest.err
10757   rm -f conftest.er1
10758   cat conftest.err >&5
10759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10760   (exit $ac_status); } >/dev/null; then
10761   if test -s conftest.err; then
10762     ac_cpp_err=$ac_c_preproc_warn_flag
10763     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10764   else
10765     ac_cpp_err=
10766   fi
10767 else
10768   ac_cpp_err=yes
10769 fi
10770 if test -z "$ac_cpp_err"; then
10771   ac_header_preproc=yes
10772 else
10773   echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10775
10776   ac_header_preproc=no
10777 fi
10778
10779 rm -f conftest.err conftest.$ac_ext
10780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10781 echo "${ECHO_T}$ac_header_preproc" >&6; }
10782
10783 # So?  What about this header?
10784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10785   yes:no: )
10786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10790     ac_header_preproc=yes
10791     ;;
10792   no:yes:* )
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10805
10806     ;;
10807 esac
10808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10811   echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813   eval "$as_ac_Header=\$ac_header_preproc"
10814 fi
10815 ac_res=`eval echo '${'$as_ac_Header'}'`
10816                { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10818
10819 fi
10820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10821   cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10823 _ACEOF
10824
10825 fi
10826
10827 done
10828
10829     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10830 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10831   result=
10832   cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h.  */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h.  */
10838
10839 #include <limits.h>
10840 #if HAVE_STDINT_H
10841 #include <stdint.h>
10842 #endif
10843 #ifdef SIZE_MAX
10844 Found it
10845 #endif
10846
10847 _ACEOF
10848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10849   $EGREP "Found it" >/dev/null 2>&1; then
10850   result=yes
10851 fi
10852 rm -f conftest*
10853
10854   if test -z "$result"; then
10855                     if test "$cross_compiling" = yes; then
10856   # Depending upon the size, compute the lo and hi bounds.
10857 cat >conftest.$ac_ext <<_ACEOF
10858 /* confdefs.h.  */
10859 _ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h.  */
10863 #include <stddef.h>
10864 int
10865 main ()
10866 {
10867 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10868 test_array [0] = 0
10869
10870   ;
10871   return 0;
10872 }
10873 _ACEOF
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878   *) ac_try_echo=$ac_try;;
10879 esac
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881   (eval "$ac_compile") 2>conftest.er1
10882   ac_status=$?
10883   grep -v '^ *+' conftest.er1 >conftest.err
10884   rm -f conftest.er1
10885   cat conftest.err >&5
10886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887   (exit $ac_status); } &&
10888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10898          { ac_try='test -s conftest.$ac_objext'
10899   { (case "(($ac_try" in
10900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901   *) ac_try_echo=$ac_try;;
10902 esac
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904   (eval "$ac_try") 2>&5
10905   ac_status=$?
10906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907   (exit $ac_status); }; }; then
10908   ac_lo=0 ac_mid=0
10909   while :; do
10910     cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h.  */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h.  */
10916 #include <stddef.h>
10917 int
10918 main ()
10919 {
10920 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10921 test_array [0] = 0
10922
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext
10928 if { (ac_try="$ac_compile"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_compile") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
10951          { ac_try='test -s conftest.$ac_objext'
10952   { (case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961   ac_hi=$ac_mid; break
10962 else
10963   echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10965
10966         ac_lo=`expr $ac_mid + 1`
10967                         if test $ac_lo -le $ac_mid; then
10968                           ac_lo= ac_hi=
10969                           break
10970                         fi
10971                         ac_mid=`expr 2 '*' $ac_mid + 1`
10972 fi
10973
10974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10975   done
10976 else
10977   echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10979
10980         cat >conftest.$ac_ext <<_ACEOF
10981 /* confdefs.h.  */
10982 _ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h.  */
10986 #include <stddef.h>
10987 int
10988 main ()
10989 {
10990 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10991 test_array [0] = 0
10992
10993   ;
10994   return 0;
10995 }
10996 _ACEOF
10997 rm -f conftest.$ac_objext
10998 if { (ac_try="$ac_compile"
10999 case "(($ac_try" in
11000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11001   *) ac_try_echo=$ac_try;;
11002 esac
11003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11004   (eval "$ac_compile") 2>conftest.er1
11005   ac_status=$?
11006   grep -v '^ *+' conftest.er1 >conftest.err
11007   rm -f conftest.er1
11008   cat conftest.err >&5
11009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010   (exit $ac_status); } &&
11011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11021          { ac_try='test -s conftest.$ac_objext'
11022   { (case "(($ac_try" in
11023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11024   *) ac_try_echo=$ac_try;;
11025 esac
11026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11027   (eval "$ac_try") 2>&5
11028   ac_status=$?
11029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030   (exit $ac_status); }; }; then
11031   ac_hi=-1 ac_mid=-1
11032   while :; do
11033     cat >conftest.$ac_ext <<_ACEOF
11034 /* confdefs.h.  */
11035 _ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h.  */
11039 #include <stddef.h>
11040 int
11041 main ()
11042 {
11043 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11044 test_array [0] = 0
11045
11046   ;
11047   return 0;
11048 }
11049 _ACEOF
11050 rm -f conftest.$ac_objext
11051 if { (ac_try="$ac_compile"
11052 case "(($ac_try" in
11053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054   *) ac_try_echo=$ac_try;;
11055 esac
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057   (eval "$ac_compile") 2>conftest.er1
11058   ac_status=$?
11059   grep -v '^ *+' conftest.er1 >conftest.err
11060   rm -f conftest.er1
11061   cat conftest.err >&5
11062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063   (exit $ac_status); } &&
11064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11074          { ac_try='test -s conftest.$ac_objext'
11075   { (case "(($ac_try" in
11076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077   *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080   (eval "$ac_try") 2>&5
11081   ac_status=$?
11082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083   (exit $ac_status); }; }; then
11084   ac_lo=$ac_mid; break
11085 else
11086   echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11088
11089         ac_hi=`expr '(' $ac_mid ')' - 1`
11090                         if test $ac_mid -le $ac_hi; then
11091                           ac_lo= ac_hi=
11092                           break
11093                         fi
11094                         ac_mid=`expr 2 '*' $ac_mid`
11095 fi
11096
11097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11098   done
11099 else
11100   echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103         ac_lo= ac_hi=
11104 fi
11105
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 fi
11108
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 # Binary search between lo and hi bounds.
11111 while test "x$ac_lo" != "x$ac_hi"; do
11112   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11113   cat >conftest.$ac_ext <<_ACEOF
11114 /* confdefs.h.  */
11115 _ACEOF
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h.  */
11119 #include <stddef.h>
11120 int
11121 main ()
11122 {
11123 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11124 test_array [0] = 0
11125
11126   ;
11127   return 0;
11128 }
11129 _ACEOF
11130 rm -f conftest.$ac_objext
11131 if { (ac_try="$ac_compile"
11132 case "(($ac_try" in
11133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11134   *) ac_try_echo=$ac_try;;
11135 esac
11136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11137   (eval "$ac_compile") 2>conftest.er1
11138   ac_status=$?
11139   grep -v '^ *+' conftest.er1 >conftest.err
11140   rm -f conftest.er1
11141   cat conftest.err >&5
11142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143   (exit $ac_status); } &&
11144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11154          { ac_try='test -s conftest.$ac_objext'
11155   { (case "(($ac_try" in
11156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11157   *) ac_try_echo=$ac_try;;
11158 esac
11159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11160   (eval "$ac_try") 2>&5
11161   ac_status=$?
11162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163   (exit $ac_status); }; }; then
11164   ac_hi=$ac_mid
11165 else
11166   echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11168
11169         ac_lo=`expr '(' $ac_mid ')' + 1`
11170 fi
11171
11172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11173 done
11174 case $ac_lo in
11175 ?*) res_hi=$ac_lo;;
11176 '') result=? ;;
11177 esac
11178 else
11179   cat >conftest.$ac_ext <<_ACEOF
11180 /* confdefs.h.  */
11181 _ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h.  */
11185 #include <stddef.h>
11186 static long int longval () { return ~(size_t)0 / 10; }
11187 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11188 #include <stdio.h>
11189 #include <stdlib.h>
11190 int
11191 main ()
11192 {
11193
11194   FILE *f = fopen ("conftest.val", "w");
11195   if (! f)
11196     return 1;
11197   if ((~(size_t)0 / 10) < 0)
11198     {
11199       long int i = longval ();
11200       if (i != (~(size_t)0 / 10))
11201         return 1;
11202       fprintf (f, "%ld\n", i);
11203     }
11204   else
11205     {
11206       unsigned long int i = ulongval ();
11207       if (i != (~(size_t)0 / 10))
11208         return 1;
11209       fprintf (f, "%lu\n", i);
11210     }
11211   return ferror (f) || fclose (f) != 0;
11212
11213   ;
11214   return 0;
11215 }
11216 _ACEOF
11217 rm -f conftest$ac_exeext
11218 if { (ac_try="$ac_link"
11219 case "(($ac_try" in
11220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221   *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224   (eval "$ac_link") 2>&5
11225   ac_status=$?
11226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11228   { (case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_try") 2>&5
11234   ac_status=$?
11235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236   (exit $ac_status); }; }; then
11237   res_hi=`cat conftest.val`
11238 else
11239   echo "$as_me: program exited with status $ac_status" >&5
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 ( exit $ac_status )
11244 result=?
11245 fi
11246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11247 fi
11248 rm -f conftest.val
11249     if test "$cross_compiling" = yes; then
11250   # Depending upon the size, compute the lo and hi bounds.
11251 cat >conftest.$ac_ext <<_ACEOF
11252 /* confdefs.h.  */
11253 _ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h.  */
11257 #include <stddef.h>
11258 int
11259 main ()
11260 {
11261 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11262 test_array [0] = 0
11263
11264   ;
11265   return 0;
11266 }
11267 _ACEOF
11268 rm -f conftest.$ac_objext
11269 if { (ac_try="$ac_compile"
11270 case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11275   (eval "$ac_compile") 2>conftest.er1
11276   ac_status=$?
11277   grep -v '^ *+' conftest.er1 >conftest.err
11278   rm -f conftest.er1
11279   cat conftest.err >&5
11280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281   (exit $ac_status); } &&
11282          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11292          { ac_try='test -s conftest.$ac_objext'
11293   { (case "(($ac_try" in
11294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295   *) ac_try_echo=$ac_try;;
11296 esac
11297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11298   (eval "$ac_try") 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); }; }; then
11302   ac_lo=0 ac_mid=0
11303   while :; do
11304     cat >conftest.$ac_ext <<_ACEOF
11305 /* confdefs.h.  */
11306 _ACEOF
11307 cat confdefs.h >>conftest.$ac_ext
11308 cat >>conftest.$ac_ext <<_ACEOF
11309 /* end confdefs.h.  */
11310 #include <stddef.h>
11311 int
11312 main ()
11313 {
11314 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11315 test_array [0] = 0
11316
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 rm -f conftest.$ac_objext
11322 if { (ac_try="$ac_compile"
11323 case "(($ac_try" in
11324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325   *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328   (eval "$ac_compile") 2>conftest.er1
11329   ac_status=$?
11330   grep -v '^ *+' conftest.er1 >conftest.err
11331   rm -f conftest.er1
11332   cat conftest.err >&5
11333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334   (exit $ac_status); } &&
11335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11345          { ac_try='test -s conftest.$ac_objext'
11346   { (case "(($ac_try" in
11347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11348   *) ac_try_echo=$ac_try;;
11349 esac
11350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11351   (eval "$ac_try") 2>&5
11352   ac_status=$?
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); }; }; then
11355   ac_hi=$ac_mid; break
11356 else
11357   echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11359
11360         ac_lo=`expr $ac_mid + 1`
11361                         if test $ac_lo -le $ac_mid; then
11362                           ac_lo= ac_hi=
11363                           break
11364                         fi
11365                         ac_mid=`expr 2 '*' $ac_mid + 1`
11366 fi
11367
11368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11369   done
11370 else
11371   echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374         cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h.  */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h.  */
11380 #include <stddef.h>
11381 int
11382 main ()
11383 {
11384 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11385 test_array [0] = 0
11386
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext
11392 if { (ac_try="$ac_compile"
11393 case "(($ac_try" in
11394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395   *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398   (eval "$ac_compile") 2>conftest.er1
11399   ac_status=$?
11400   grep -v '^ *+' conftest.er1 >conftest.err
11401   rm -f conftest.er1
11402   cat conftest.err >&5
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); } &&
11405          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11415          { ac_try='test -s conftest.$ac_objext'
11416   { (case "(($ac_try" in
11417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11418   *) ac_try_echo=$ac_try;;
11419 esac
11420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11421   (eval "$ac_try") 2>&5
11422   ac_status=$?
11423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424   (exit $ac_status); }; }; then
11425   ac_hi=-1 ac_mid=-1
11426   while :; do
11427     cat >conftest.$ac_ext <<_ACEOF
11428 /* confdefs.h.  */
11429 _ACEOF
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h.  */
11433 #include <stddef.h>
11434 int
11435 main ()
11436 {
11437 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11438 test_array [0] = 0
11439
11440   ;
11441   return 0;
11442 }
11443 _ACEOF
11444 rm -f conftest.$ac_objext
11445 if { (ac_try="$ac_compile"
11446 case "(($ac_try" in
11447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11448   *) ac_try_echo=$ac_try;;
11449 esac
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451   (eval "$ac_compile") 2>conftest.er1
11452   ac_status=$?
11453   grep -v '^ *+' conftest.er1 >conftest.err
11454   rm -f conftest.er1
11455   cat conftest.err >&5
11456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457   (exit $ac_status); } &&
11458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11468          { ac_try='test -s conftest.$ac_objext'
11469   { (case "(($ac_try" in
11470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11471   *) ac_try_echo=$ac_try;;
11472 esac
11473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11474   (eval "$ac_try") 2>&5
11475   ac_status=$?
11476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477   (exit $ac_status); }; }; then
11478   ac_lo=$ac_mid; break
11479 else
11480   echo "$as_me: failed program was:" >&5
11481 sed 's/^/| /' conftest.$ac_ext >&5
11482
11483         ac_hi=`expr '(' $ac_mid ')' - 1`
11484                         if test $ac_mid -le $ac_hi; then
11485                           ac_lo= ac_hi=
11486                           break
11487                         fi
11488                         ac_mid=`expr 2 '*' $ac_mid`
11489 fi
11490
11491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11492   done
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497         ac_lo= ac_hi=
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 fi
11502
11503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11504 # Binary search between lo and hi bounds.
11505 while test "x$ac_lo" != "x$ac_hi"; do
11506   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11507   cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 #include <stddef.h>
11514 int
11515 main ()
11516 {
11517 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11518 test_array [0] = 0
11519
11520   ;
11521   return 0;
11522 }
11523 _ACEOF
11524 rm -f conftest.$ac_objext
11525 if { (ac_try="$ac_compile"
11526 case "(($ac_try" in
11527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528   *) ac_try_echo=$ac_try;;
11529 esac
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531   (eval "$ac_compile") 2>conftest.er1
11532   ac_status=$?
11533   grep -v '^ *+' conftest.er1 >conftest.err
11534   rm -f conftest.er1
11535   cat conftest.err >&5
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } &&
11538          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11548          { ac_try='test -s conftest.$ac_objext'
11549   { (case "(($ac_try" in
11550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551   *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554   (eval "$ac_try") 2>&5
11555   ac_status=$?
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); }; }; then
11558   ac_hi=$ac_mid
11559 else
11560   echo "$as_me: failed program was:" >&5
11561 sed 's/^/| /' conftest.$ac_ext >&5
11562
11563         ac_lo=`expr '(' $ac_mid ')' + 1`
11564 fi
11565
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 done
11568 case $ac_lo in
11569 ?*) res_lo=$ac_lo;;
11570 '') result=? ;;
11571 esac
11572 else
11573   cat >conftest.$ac_ext <<_ACEOF
11574 /* confdefs.h.  */
11575 _ACEOF
11576 cat confdefs.h >>conftest.$ac_ext
11577 cat >>conftest.$ac_ext <<_ACEOF
11578 /* end confdefs.h.  */
11579 #include <stddef.h>
11580 static long int longval () { return ~(size_t)0 % 10; }
11581 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11582 #include <stdio.h>
11583 #include <stdlib.h>
11584 int
11585 main ()
11586 {
11587
11588   FILE *f = fopen ("conftest.val", "w");
11589   if (! f)
11590     return 1;
11591   if ((~(size_t)0 % 10) < 0)
11592     {
11593       long int i = longval ();
11594       if (i != (~(size_t)0 % 10))
11595         return 1;
11596       fprintf (f, "%ld\n", i);
11597     }
11598   else
11599     {
11600       unsigned long int i = ulongval ();
11601       if (i != (~(size_t)0 % 10))
11602         return 1;
11603       fprintf (f, "%lu\n", i);
11604     }
11605   return ferror (f) || fclose (f) != 0;
11606
11607   ;
11608   return 0;
11609 }
11610 _ACEOF
11611 rm -f conftest$ac_exeext
11612 if { (ac_try="$ac_link"
11613 case "(($ac_try" in
11614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615   *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618   (eval "$ac_link") 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11622   { (case "(($ac_try" in
11623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624   *) ac_try_echo=$ac_try;;
11625 esac
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627   (eval "$ac_try") 2>&5
11628   ac_status=$?
11629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630   (exit $ac_status); }; }; then
11631   res_lo=`cat conftest.val`
11632 else
11633   echo "$as_me: program exited with status $ac_status" >&5
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 ( exit $ac_status )
11638 result=?
11639 fi
11640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11641 fi
11642 rm -f conftest.val
11643     if test "$cross_compiling" = yes; then
11644   # Depending upon the size, compute the lo and hi bounds.
11645 cat >conftest.$ac_ext <<_ACEOF
11646 /* confdefs.h.  */
11647 _ACEOF
11648 cat confdefs.h >>conftest.$ac_ext
11649 cat >>conftest.$ac_ext <<_ACEOF
11650 /* end confdefs.h.  */
11651 #include <stddef.h>
11652 int
11653 main ()
11654 {
11655 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11656 test_array [0] = 0
11657
11658   ;
11659   return 0;
11660 }
11661 _ACEOF
11662 rm -f conftest.$ac_objext
11663 if { (ac_try="$ac_compile"
11664 case "(($ac_try" in
11665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11666   *) ac_try_echo=$ac_try;;
11667 esac
11668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11669   (eval "$ac_compile") 2>conftest.er1
11670   ac_status=$?
11671   grep -v '^ *+' conftest.er1 >conftest.err
11672   rm -f conftest.er1
11673   cat conftest.err >&5
11674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675   (exit $ac_status); } &&
11676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11686          { ac_try='test -s conftest.$ac_objext'
11687   { (case "(($ac_try" in
11688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11689   *) ac_try_echo=$ac_try;;
11690 esac
11691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11692   (eval "$ac_try") 2>&5
11693   ac_status=$?
11694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695   (exit $ac_status); }; }; then
11696   ac_lo=0 ac_mid=0
11697   while :; do
11698     cat >conftest.$ac_ext <<_ACEOF
11699 /* confdefs.h.  */
11700 _ACEOF
11701 cat confdefs.h >>conftest.$ac_ext
11702 cat >>conftest.$ac_ext <<_ACEOF
11703 /* end confdefs.h.  */
11704 #include <stddef.h>
11705 int
11706 main ()
11707 {
11708 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11709 test_array [0] = 0
11710
11711   ;
11712   return 0;
11713 }
11714 _ACEOF
11715 rm -f conftest.$ac_objext
11716 if { (ac_try="$ac_compile"
11717 case "(($ac_try" in
11718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11719   *) ac_try_echo=$ac_try;;
11720 esac
11721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11722   (eval "$ac_compile") 2>conftest.er1
11723   ac_status=$?
11724   grep -v '^ *+' conftest.er1 >conftest.err
11725   rm -f conftest.er1
11726   cat conftest.err >&5
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } &&
11729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11739          { ac_try='test -s conftest.$ac_objext'
11740   { (case "(($ac_try" in
11741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11742   *) ac_try_echo=$ac_try;;
11743 esac
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745   (eval "$ac_try") 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); }; }; then
11749   ac_hi=$ac_mid; break
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754         ac_lo=`expr $ac_mid + 1`
11755                         if test $ac_lo -le $ac_mid; then
11756                           ac_lo= ac_hi=
11757                           break
11758                         fi
11759                         ac_mid=`expr 2 '*' $ac_mid + 1`
11760 fi
11761
11762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763   done
11764 else
11765   echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768         cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h.  */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h.  */
11774 #include <stddef.h>
11775 int
11776 main ()
11777 {
11778 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11779 test_array [0] = 0
11780
11781   ;
11782   return 0;
11783 }
11784 _ACEOF
11785 rm -f conftest.$ac_objext
11786 if { (ac_try="$ac_compile"
11787 case "(($ac_try" in
11788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11789   *) ac_try_echo=$ac_try;;
11790 esac
11791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11792   (eval "$ac_compile") 2>conftest.er1
11793   ac_status=$?
11794   grep -v '^ *+' conftest.er1 >conftest.err
11795   rm -f conftest.er1
11796   cat conftest.err >&5
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); } &&
11799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11809          { ac_try='test -s conftest.$ac_objext'
11810   { (case "(($ac_try" in
11811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11812   *) ac_try_echo=$ac_try;;
11813 esac
11814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11815   (eval "$ac_try") 2>&5
11816   ac_status=$?
11817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818   (exit $ac_status); }; }; then
11819   ac_hi=-1 ac_mid=-1
11820   while :; do
11821     cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 #include <stddef.h>
11828 int
11829 main ()
11830 {
11831 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11832 test_array [0] = 0
11833
11834   ;
11835   return 0;
11836 }
11837 _ACEOF
11838 rm -f conftest.$ac_objext
11839 if { (ac_try="$ac_compile"
11840 case "(($ac_try" in
11841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842   *) ac_try_echo=$ac_try;;
11843 esac
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845   (eval "$ac_compile") 2>conftest.er1
11846   ac_status=$?
11847   grep -v '^ *+' conftest.er1 >conftest.err
11848   rm -f conftest.er1
11849   cat conftest.err >&5
11850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851   (exit $ac_status); } &&
11852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11862          { ac_try='test -s conftest.$ac_objext'
11863   { (case "(($ac_try" in
11864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11865   *) ac_try_echo=$ac_try;;
11866 esac
11867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11868   (eval "$ac_try") 2>&5
11869   ac_status=$?
11870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871   (exit $ac_status); }; }; then
11872   ac_lo=$ac_mid; break
11873 else
11874   echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877         ac_hi=`expr '(' $ac_mid ')' - 1`
11878                         if test $ac_mid -le $ac_hi; then
11879                           ac_lo= ac_hi=
11880                           break
11881                         fi
11882                         ac_mid=`expr 2 '*' $ac_mid`
11883 fi
11884
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11886   done
11887 else
11888   echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         ac_lo= ac_hi=
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 fi
11896
11897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11898 # Binary search between lo and hi bounds.
11899 while test "x$ac_lo" != "x$ac_hi"; do
11900   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11901   cat >conftest.$ac_ext <<_ACEOF
11902 /* confdefs.h.  */
11903 _ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h.  */
11907 #include <stddef.h>
11908 int
11909 main ()
11910 {
11911 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11912 test_array [0] = 0
11913
11914   ;
11915   return 0;
11916 }
11917 _ACEOF
11918 rm -f conftest.$ac_objext
11919 if { (ac_try="$ac_compile"
11920 case "(($ac_try" in
11921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922   *) ac_try_echo=$ac_try;;
11923 esac
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925   (eval "$ac_compile") 2>conftest.er1
11926   ac_status=$?
11927   grep -v '^ *+' conftest.er1 >conftest.err
11928   rm -f conftest.er1
11929   cat conftest.err >&5
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); } &&
11932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
11942          { ac_try='test -s conftest.$ac_objext'
11943   { (case "(($ac_try" in
11944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945   *) ac_try_echo=$ac_try;;
11946 esac
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948   (eval "$ac_try") 2>&5
11949   ac_status=$?
11950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951   (exit $ac_status); }; }; then
11952   ac_hi=$ac_mid
11953 else
11954   echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11956
11957         ac_lo=`expr '(' $ac_mid ')' + 1`
11958 fi
11959
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 done
11962 case $ac_lo in
11963 ?*) fits_in_uint=$ac_lo;;
11964 '') result=? ;;
11965 esac
11966 else
11967   cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h.  */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h.  */
11973 #include <stddef.h>
11974 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11975 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11976 #include <stdio.h>
11977 #include <stdlib.h>
11978 int
11979 main ()
11980 {
11981
11982   FILE *f = fopen ("conftest.val", "w");
11983   if (! f)
11984     return 1;
11985   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11986     {
11987       long int i = longval ();
11988       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11989         return 1;
11990       fprintf (f, "%ld\n", i);
11991     }
11992   else
11993     {
11994       unsigned long int i = ulongval ();
11995       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11996         return 1;
11997       fprintf (f, "%lu\n", i);
11998     }
11999   return ferror (f) || fclose (f) != 0;
12000
12001   ;
12002   return 0;
12003 }
12004 _ACEOF
12005 rm -f conftest$ac_exeext
12006 if { (ac_try="$ac_link"
12007 case "(($ac_try" in
12008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12009   *) ac_try_echo=$ac_try;;
12010 esac
12011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12012   (eval "$ac_link") 2>&5
12013   ac_status=$?
12014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12016   { (case "(($ac_try" in
12017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12018   *) ac_try_echo=$ac_try;;
12019 esac
12020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12021   (eval "$ac_try") 2>&5
12022   ac_status=$?
12023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024   (exit $ac_status); }; }; then
12025   fits_in_uint=`cat conftest.val`
12026 else
12027   echo "$as_me: program exited with status $ac_status" >&5
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12030
12031 ( exit $ac_status )
12032 result=?
12033 fi
12034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12035 fi
12036 rm -f conftest.val
12037     if test "$fits_in_uint" = 1; then
12038                   cat >conftest.$ac_ext <<_ACEOF
12039 /* confdefs.h.  */
12040 _ACEOF
12041 cat confdefs.h >>conftest.$ac_ext
12042 cat >>conftest.$ac_ext <<_ACEOF
12043 /* end confdefs.h.  */
12044 #include <stddef.h>
12045         extern size_t foo;
12046         extern unsigned long foo;
12047
12048 int
12049 main ()
12050 {
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 rm -f conftest.$ac_objext
12057 if { (ac_try="$ac_compile"
12058 case "(($ac_try" in
12059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12060   *) ac_try_echo=$ac_try;;
12061 esac
12062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12063   (eval "$ac_compile") 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12080          { ac_try='test -s conftest.$ac_objext'
12081   { (case "(($ac_try" in
12082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083   *) ac_try_echo=$ac_try;;
12084 esac
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086   (eval "$ac_try") 2>&5
12087   ac_status=$?
12088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089   (exit $ac_status); }; }; then
12090   fits_in_uint=0
12091 else
12092   echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12094
12095
12096 fi
12097
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12099     fi
12100     if test -z "$result"; then
12101       if test "$fits_in_uint" = 1; then
12102         result="$res_hi$res_lo"U
12103       else
12104         result="$res_hi$res_lo"UL
12105       fi
12106     else
12107             result='~(size_t)0'
12108     fi
12109   fi
12110   { echo "$as_me:$LINENO: result: $result" >&5
12111 echo "${ECHO_T}$result" >&6; }
12112   if test "$result" != yes; then
12113
12114 cat >>confdefs.h <<_ACEOF
12115 #define SIZE_MAX $result
12116 _ACEOF
12117
12118   fi
12119
12120
12121
12122
12123
12124 for ac_header in stdint.h
12125 do
12126 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12131   echo $ECHO_N "(cached) $ECHO_C" >&6
12132 fi
12133 ac_res=`eval echo '${'$as_ac_Header'}'`
12134                { echo "$as_me:$LINENO: result: $ac_res" >&5
12135 echo "${ECHO_T}$ac_res" >&6; }
12136 else
12137   # Is the header compilable?
12138 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12139 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12140 cat >conftest.$ac_ext <<_ACEOF
12141 /* confdefs.h.  */
12142 _ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h.  */
12146 $ac_includes_default
12147 #include <$ac_header>
12148 _ACEOF
12149 rm -f conftest.$ac_objext
12150 if { (ac_try="$ac_compile"
12151 case "(($ac_try" in
12152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12153   *) ac_try_echo=$ac_try;;
12154 esac
12155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12156   (eval "$ac_compile") 2>conftest.er1
12157   ac_status=$?
12158   grep -v '^ *+' conftest.er1 >conftest.err
12159   rm -f conftest.er1
12160   cat conftest.err >&5
12161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162   (exit $ac_status); } &&
12163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12173          { ac_try='test -s conftest.$ac_objext'
12174   { (case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_try") 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; }; then
12183   ac_header_compiler=yes
12184 else
12185   echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12187
12188         ac_header_compiler=no
12189 fi
12190
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12193 echo "${ECHO_T}$ac_header_compiler" >&6; }
12194
12195 # Is the header present?
12196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12198 cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204 #include <$ac_header>
12205 _ACEOF
12206 if { (ac_try="$ac_cpp conftest.$ac_ext"
12207 case "(($ac_try" in
12208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12209   *) ac_try_echo=$ac_try;;
12210 esac
12211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12213   ac_status=$?
12214   grep -v '^ *+' conftest.er1 >conftest.err
12215   rm -f conftest.er1
12216   cat conftest.err >&5
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); } >/dev/null; then
12219   if test -s conftest.err; then
12220     ac_cpp_err=$ac_c_preproc_warn_flag
12221     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12222   else
12223     ac_cpp_err=
12224   fi
12225 else
12226   ac_cpp_err=yes
12227 fi
12228 if test -z "$ac_cpp_err"; then
12229   ac_header_preproc=yes
12230 else
12231   echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12233
12234   ac_header_preproc=no
12235 fi
12236
12237 rm -f conftest.err conftest.$ac_ext
12238 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12239 echo "${ECHO_T}$ac_header_preproc" >&6; }
12240
12241 # So?  What about this header?
12242 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12243   yes:no: )
12244     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12245 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12246     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12247 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12248     ac_header_preproc=yes
12249     ;;
12250   no:yes:* )
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12252 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12254 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12255     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12256 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12257     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12258 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12259     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12260 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12261     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12262 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12263
12264     ;;
12265 esac
12266 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12269   echo $ECHO_N "(cached) $ECHO_C" >&6
12270 else
12271   eval "$as_ac_Header=\$ac_header_preproc"
12272 fi
12273 ac_res=`eval echo '${'$as_ac_Header'}'`
12274                { echo "$as_me:$LINENO: result: $ac_res" >&5
12275 echo "${ECHO_T}$ac_res" >&6; }
12276
12277 fi
12278 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12279   cat >>confdefs.h <<_ACEOF
12280 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12281 _ACEOF
12282
12283 fi
12284
12285 done
12286
12287
12288
12289
12290
12291
12292
12293
12294   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12295 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12296 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12297   echo $ECHO_N "(cached) $ECHO_C" >&6
12298 else
12299   cat >conftest.$ac_ext <<_ACEOF
12300 /* confdefs.h.  */
12301 _ACEOF
12302 cat confdefs.h >>conftest.$ac_ext
12303 cat >>conftest.$ac_ext <<_ACEOF
12304 /* end confdefs.h.  */
12305 $ac_includes_default
12306 typedef ptrdiff_t ac__type_new_;
12307 int
12308 main ()
12309 {
12310 if ((ac__type_new_ *) 0)
12311   return 0;
12312 if (sizeof (ac__type_new_))
12313   return 0;
12314   ;
12315   return 0;
12316 }
12317 _ACEOF
12318 rm -f conftest.$ac_objext
12319 if { (ac_try="$ac_compile"
12320 case "(($ac_try" in
12321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322   *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325   (eval "$ac_compile") 2>conftest.er1
12326   ac_status=$?
12327   grep -v '^ *+' conftest.er1 >conftest.err
12328   rm -f conftest.er1
12329   cat conftest.err >&5
12330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331   (exit $ac_status); } &&
12332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12342          { ac_try='test -s conftest.$ac_objext'
12343   { (case "(($ac_try" in
12344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12345   *) ac_try_echo=$ac_try;;
12346 esac
12347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12348   (eval "$ac_try") 2>&5
12349   ac_status=$?
12350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351   (exit $ac_status); }; }; then
12352   ac_cv_type_ptrdiff_t=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_type_ptrdiff_t=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12363 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12364 if test $ac_cv_type_ptrdiff_t = yes; then
12365   :
12366 else
12367
12368 cat >>confdefs.h <<\_ACEOF
12369 #define ptrdiff_t long
12370 _ACEOF
12371
12372
12373 fi
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12386 stdlib.h string.h unistd.h sys/param.h
12387 do
12388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 fi
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396                { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12398 else
12399   # Is the header compilable?
12400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 $ac_includes_default
12409 #include <$ac_header>
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_compile") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12435          { ac_try='test -s conftest.$ac_objext'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_header_compiler=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         ac_header_compiler=no
12451 fi
12452
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6; }
12456
12457 # Is the header present?
12458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466 #include <$ac_header>
12467 _ACEOF
12468 if { (ac_try="$ac_cpp conftest.$ac_ext"
12469 case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } >/dev/null; then
12481   if test -s conftest.err; then
12482     ac_cpp_err=$ac_c_preproc_warn_flag
12483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12484   else
12485     ac_cpp_err=
12486   fi
12487 else
12488   ac_cpp_err=yes
12489 fi
12490 if test -z "$ac_cpp_err"; then
12491   ac_header_preproc=yes
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496   ac_header_preproc=no
12497 fi
12498
12499 rm -f conftest.err conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501 echo "${ECHO_T}$ac_header_preproc" >&6; }
12502
12503 # So?  What about this header?
12504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12505   yes:no: )
12506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510     ac_header_preproc=yes
12511     ;;
12512   no:yes:* )
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12525
12526     ;;
12527 esac
12528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12531   echo $ECHO_N "(cached) $ECHO_C" >&6
12532 else
12533   eval "$as_ac_Header=\$ac_header_preproc"
12534 fi
12535 ac_res=`eval echo '${'$as_ac_Header'}'`
12536                { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12538
12539 fi
12540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541   cat >>confdefs.h <<_ACEOF
12542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543 _ACEOF
12544
12545 fi
12546
12547 done
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12573 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12574 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12575 __fsetlocking
12576 do
12577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12578 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12580 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12581   echo $ECHO_N "(cached) $ECHO_C" >&6
12582 else
12583   cat >conftest.$ac_ext <<_ACEOF
12584 /* confdefs.h.  */
12585 _ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h.  */
12589 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12590    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12591 #define $ac_func innocuous_$ac_func
12592
12593 /* System header to define __stub macros and hopefully few prototypes,
12594     which can conflict with char $ac_func (); below.
12595     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12596     <limits.h> exists even on freestanding compilers.  */
12597
12598 #ifdef __STDC__
12599 # include <limits.h>
12600 #else
12601 # include <assert.h>
12602 #endif
12603
12604 #undef $ac_func
12605
12606 /* Override any GCC internal prototype to avoid an error.
12607    Use char because int might match the return type of a GCC
12608    builtin and then its argument prototype would still apply.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char $ac_func ();
12613 /* The GNU C library defines this for functions which it implements
12614     to always fail with ENOSYS.  Some functions are actually named
12615     something starting with __ and the normal name is an alias.  */
12616 #if defined __stub_$ac_func || defined __stub___$ac_func
12617 choke me
12618 #endif
12619
12620 int
12621 main ()
12622 {
12623 return $ac_func ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_link") 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12652          { ac_try='test -s conftest$ac_exeext'
12653   { (case "(($ac_try" in
12654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12655   *) ac_try_echo=$ac_try;;
12656 esac
12657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12658   (eval "$ac_try") 2>&5
12659   ac_status=$?
12660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661   (exit $ac_status); }; }; then
12662   eval "$as_ac_var=yes"
12663 else
12664   echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12666
12667         eval "$as_ac_var=no"
12668 fi
12669
12670 rm -f core conftest.err conftest.$ac_objext \
12671       conftest$ac_exeext conftest.$ac_ext
12672 fi
12673 ac_res=`eval echo '${'$as_ac_var'}'`
12674                { echo "$as_me:$LINENO: result: $ac_res" >&5
12675 echo "${ECHO_T}$ac_res" >&6; }
12676 if test `eval echo '${'$as_ac_var'}'` = yes; then
12677   cat >>confdefs.h <<_ACEOF
12678 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12679 _ACEOF
12680
12681 fi
12682 done
12683
12684
12685
12686   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12687 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12688 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12689   echo $ECHO_N "(cached) $ECHO_C" >&6
12690 else
12691   cat >conftest.$ac_ext <<_ACEOF
12692 /* confdefs.h.  */
12693 _ACEOF
12694 cat confdefs.h >>conftest.$ac_ext
12695 cat >>conftest.$ac_ext <<_ACEOF
12696 /* end confdefs.h.  */
12697 #include <stdio.h>
12698 int
12699 main ()
12700 {
12701
12702 #ifndef _snprintf
12703   char *p = (char *) _snprintf;
12704 #endif
12705
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_compile") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } &&
12724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12734          { ac_try='test -s conftest.$ac_objext'
12735   { (case "(($ac_try" in
12736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737   *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740   (eval "$ac_try") 2>&5
12741   ac_status=$?
12742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743   (exit $ac_status); }; }; then
12744   ac_cv_have_decl__snprintf=yes
12745 else
12746   echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12748
12749         ac_cv_have_decl__snprintf=no
12750 fi
12751
12752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12753 fi
12754 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12755 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12756   if test $ac_cv_have_decl__snprintf = yes; then
12757     gt_value=1
12758   else
12759     gt_value=0
12760   fi
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define HAVE_DECL__SNPRINTF $gt_value
12764 _ACEOF
12765
12766
12767
12768   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12769 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12770 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12771   echo $ECHO_N "(cached) $ECHO_C" >&6
12772 else
12773   cat >conftest.$ac_ext <<_ACEOF
12774 /* confdefs.h.  */
12775 _ACEOF
12776 cat confdefs.h >>conftest.$ac_ext
12777 cat >>conftest.$ac_ext <<_ACEOF
12778 /* end confdefs.h.  */
12779 #include <stdio.h>
12780 int
12781 main ()
12782 {
12783
12784 #ifndef _snwprintf
12785   char *p = (char *) _snwprintf;
12786 #endif
12787
12788   ;
12789   return 0;
12790 }
12791 _ACEOF
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796   *) ac_try_echo=$ac_try;;
12797 esac
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799   (eval "$ac_compile") 2>conftest.er1
12800   ac_status=$?
12801   grep -v '^ *+' conftest.er1 >conftest.err
12802   rm -f conftest.er1
12803   cat conftest.err >&5
12804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805   (exit $ac_status); } &&
12806          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12816          { ac_try='test -s conftest.$ac_objext'
12817   { (case "(($ac_try" in
12818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819   *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822   (eval "$ac_try") 2>&5
12823   ac_status=$?
12824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12825   (exit $ac_status); }; }; then
12826   ac_cv_have_decl__snwprintf=yes
12827 else
12828   echo "$as_me: failed program was:" >&5
12829 sed 's/^/| /' conftest.$ac_ext >&5
12830
12831         ac_cv_have_decl__snwprintf=no
12832 fi
12833
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 fi
12836 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12837 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12838   if test $ac_cv_have_decl__snwprintf = yes; then
12839     gt_value=1
12840   else
12841     gt_value=0
12842   fi
12843
12844 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_DECL__SNWPRINTF $gt_value
12846 _ACEOF
12847
12848
12849
12850
12851   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12852 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12853 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12854   echo $ECHO_N "(cached) $ECHO_C" >&6
12855 else
12856   cat >conftest.$ac_ext <<_ACEOF
12857 /* confdefs.h.  */
12858 _ACEOF
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h.  */
12862 #include <stdio.h>
12863 int
12864 main ()
12865 {
12866
12867 #ifndef feof_unlocked
12868   char *p = (char *) feof_unlocked;
12869 #endif
12870
12871   ;
12872   return 0;
12873 }
12874 _ACEOF
12875 rm -f conftest.$ac_objext
12876 if { (ac_try="$ac_compile"
12877 case "(($ac_try" in
12878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12879   *) ac_try_echo=$ac_try;;
12880 esac
12881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12882   (eval "$ac_compile") 2>conftest.er1
12883   ac_status=$?
12884   grep -v '^ *+' conftest.er1 >conftest.err
12885   rm -f conftest.er1
12886   cat conftest.err >&5
12887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12888   (exit $ac_status); } &&
12889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12899          { ac_try='test -s conftest.$ac_objext'
12900   { (case "(($ac_try" in
12901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12902   *) ac_try_echo=$ac_try;;
12903 esac
12904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12905   (eval "$ac_try") 2>&5
12906   ac_status=$?
12907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908   (exit $ac_status); }; }; then
12909   ac_cv_have_decl_feof_unlocked=yes
12910 else
12911   echo "$as_me: failed program was:" >&5
12912 sed 's/^/| /' conftest.$ac_ext >&5
12913
12914         ac_cv_have_decl_feof_unlocked=no
12915 fi
12916
12917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12918 fi
12919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12920 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12921   if test $ac_cv_have_decl_feof_unlocked = yes; then
12922     gt_value=1
12923   else
12924     gt_value=0
12925   fi
12926
12927 cat >>confdefs.h <<_ACEOF
12928 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12929 _ACEOF
12930
12931
12932
12933   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12934 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12935 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12936   echo $ECHO_N "(cached) $ECHO_C" >&6
12937 else
12938   cat >conftest.$ac_ext <<_ACEOF
12939 /* confdefs.h.  */
12940 _ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h.  */
12944 #include <stdio.h>
12945 int
12946 main ()
12947 {
12948
12949 #ifndef fgets_unlocked
12950   char *p = (char *) fgets_unlocked;
12951 #endif
12952
12953   ;
12954   return 0;
12955 }
12956 _ACEOF
12957 rm -f conftest.$ac_objext
12958 if { (ac_try="$ac_compile"
12959 case "(($ac_try" in
12960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961   *) ac_try_echo=$ac_try;;
12962 esac
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964   (eval "$ac_compile") 2>conftest.er1
12965   ac_status=$?
12966   grep -v '^ *+' conftest.er1 >conftest.err
12967   rm -f conftest.er1
12968   cat conftest.err >&5
12969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970   (exit $ac_status); } &&
12971          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12981          { ac_try='test -s conftest.$ac_objext'
12982   { (case "(($ac_try" in
12983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12984   *) ac_try_echo=$ac_try;;
12985 esac
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987   (eval "$ac_try") 2>&5
12988   ac_status=$?
12989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990   (exit $ac_status); }; }; then
12991   ac_cv_have_decl_fgets_unlocked=yes
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996         ac_cv_have_decl_fgets_unlocked=no
12997 fi
12998
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 fi
13001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
13002 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13003   if test $ac_cv_have_decl_fgets_unlocked = yes; then
13004     gt_value=1
13005   else
13006     gt_value=0
13007   fi
13008
13009 cat >>confdefs.h <<_ACEOF
13010 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13011 _ACEOF
13012
13013
13014
13015   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13016 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13017 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026 #include <stdio.h>
13027 int
13028 main ()
13029 {
13030
13031 #ifndef getc_unlocked
13032   char *p = (char *) getc_unlocked;
13033 #endif
13034
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 rm -f conftest.$ac_objext
13040 if { (ac_try="$ac_compile"
13041 case "(($ac_try" in
13042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13043   *) ac_try_echo=$ac_try;;
13044 esac
13045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13046   (eval "$ac_compile") 2>conftest.er1
13047   ac_status=$?
13048   grep -v '^ *+' conftest.er1 >conftest.err
13049   rm -f conftest.er1
13050   cat conftest.err >&5
13051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052   (exit $ac_status); } &&
13053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13063          { ac_try='test -s conftest.$ac_objext'
13064   { (case "(($ac_try" in
13065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13066   *) ac_try_echo=$ac_try;;
13067 esac
13068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13069   (eval "$ac_try") 2>&5
13070   ac_status=$?
13071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072   (exit $ac_status); }; }; then
13073   ac_cv_have_decl_getc_unlocked=yes
13074 else
13075   echo "$as_me: failed program was:" >&5
13076 sed 's/^/| /' conftest.$ac_ext >&5
13077
13078         ac_cv_have_decl_getc_unlocked=no
13079 fi
13080
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 fi
13083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13084 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13085   if test $ac_cv_have_decl_getc_unlocked = yes; then
13086     gt_value=1
13087   else
13088     gt_value=0
13089   fi
13090
13091 cat >>confdefs.h <<_ACEOF
13092 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13093 _ACEOF
13094
13095
13096
13097   case $gt_cv_func_printf_posix in
13098     *yes) HAVE_POSIX_PRINTF=1 ;;
13099     *) HAVE_POSIX_PRINTF=0 ;;
13100   esac
13101
13102   if test "$ac_cv_func_asprintf" = yes; then
13103     HAVE_ASPRINTF=1
13104   else
13105     HAVE_ASPRINTF=0
13106   fi
13107
13108   if test "$ac_cv_func_snprintf" = yes; then
13109     HAVE_SNPRINTF=1
13110   else
13111     HAVE_SNPRINTF=0
13112   fi
13113
13114   if test "$ac_cv_func_wprintf" = yes; then
13115     HAVE_WPRINTF=1
13116   else
13117     HAVE_WPRINTF=0
13118   fi
13119
13120
13121
13122
13123
13124
13125
13126           am_save_CPPFLAGS="$CPPFLAGS"
13127
13128   for element in $INCICONV; do
13129     haveit=
13130     for x in $CPPFLAGS; do
13131
13132   acl_save_prefix="$prefix"
13133   prefix="$acl_final_prefix"
13134   acl_save_exec_prefix="$exec_prefix"
13135   exec_prefix="$acl_final_exec_prefix"
13136   eval x=\"$x\"
13137   exec_prefix="$acl_save_exec_prefix"
13138   prefix="$acl_save_prefix"
13139
13140       if test "X$x" = "X$element"; then
13141         haveit=yes
13142         break
13143       fi
13144     done
13145     if test -z "$haveit"; then
13146       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13147     fi
13148   done
13149
13150
13151   { echo "$as_me:$LINENO: checking for iconv" >&5
13152 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13153 if test "${am_cv_func_iconv+set}" = set; then
13154   echo $ECHO_N "(cached) $ECHO_C" >&6
13155 else
13156
13157     am_cv_func_iconv="no, consider installing GNU libiconv"
13158     am_cv_lib_iconv=no
13159     cat >conftest.$ac_ext <<_ACEOF
13160 /* confdefs.h.  */
13161 _ACEOF
13162 cat confdefs.h >>conftest.$ac_ext
13163 cat >>conftest.$ac_ext <<_ACEOF
13164 /* end confdefs.h.  */
13165 #include <stdlib.h>
13166 #include <iconv.h>
13167 int
13168 main ()
13169 {
13170 iconv_t cd = iconv_open("","");
13171        iconv(cd,NULL,NULL,NULL,NULL);
13172        iconv_close(cd);
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } &&
13191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13201          { ac_try='test -s conftest$ac_exeext'
13202   { (case "(($ac_try" in
13203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204   *) ac_try_echo=$ac_try;;
13205 esac
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207   (eval "$ac_try") 2>&5
13208   ac_status=$?
13209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210   (exit $ac_status); }; }; then
13211   am_cv_func_iconv=yes
13212 else
13213   echo "$as_me: failed program was:" >&5
13214 sed 's/^/| /' conftest.$ac_ext >&5
13215
13216
13217 fi
13218
13219 rm -f core conftest.err conftest.$ac_objext \
13220       conftest$ac_exeext conftest.$ac_ext
13221     if test "$am_cv_func_iconv" != yes; then
13222       am_save_LIBS="$LIBS"
13223       LIBS="$LIBS $LIBICONV"
13224       cat >conftest.$ac_ext <<_ACEOF
13225 /* confdefs.h.  */
13226 _ACEOF
13227 cat confdefs.h >>conftest.$ac_ext
13228 cat >>conftest.$ac_ext <<_ACEOF
13229 /* end confdefs.h.  */
13230 #include <stdlib.h>
13231 #include <iconv.h>
13232 int
13233 main ()
13234 {
13235 iconv_t cd = iconv_open("","");
13236          iconv(cd,NULL,NULL,NULL,NULL);
13237          iconv_close(cd);
13238   ;
13239   return 0;
13240 }
13241 _ACEOF
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (ac_try="$ac_link"
13244 case "(($ac_try" in
13245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13246   *) ac_try_echo=$ac_try;;
13247 esac
13248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13249   (eval "$ac_link") 2>conftest.er1
13250   ac_status=$?
13251   grep -v '^ *+' conftest.er1 >conftest.err
13252   rm -f conftest.er1
13253   cat conftest.err >&5
13254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255   (exit $ac_status); } &&
13256          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13266          { ac_try='test -s conftest$ac_exeext'
13267   { (case "(($ac_try" in
13268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13269   *) ac_try_echo=$ac_try;;
13270 esac
13271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13272   (eval "$ac_try") 2>&5
13273   ac_status=$?
13274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275   (exit $ac_status); }; }; then
13276   am_cv_lib_iconv=yes
13277         am_cv_func_iconv=yes
13278 else
13279   echo "$as_me: failed program was:" >&5
13280 sed 's/^/| /' conftest.$ac_ext >&5
13281
13282
13283 fi
13284
13285 rm -f core conftest.err conftest.$ac_objext \
13286       conftest$ac_exeext conftest.$ac_ext
13287       LIBS="$am_save_LIBS"
13288     fi
13289
13290 fi
13291 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13292 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13293   if test "$am_cv_func_iconv" = yes; then
13294
13295 cat >>confdefs.h <<\_ACEOF
13296 #define HAVE_ICONV 1
13297 _ACEOF
13298
13299   fi
13300   if test "$am_cv_lib_iconv" = yes; then
13301     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13302 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13303     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13304 echo "${ECHO_T}$LIBICONV" >&6; }
13305   else
13306             CPPFLAGS="$am_save_CPPFLAGS"
13307     LIBICONV=
13308     LTLIBICONV=
13309   fi
13310
13311
13312
13313   if test "$am_cv_func_iconv" = yes; then
13314     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13315 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13316     if test "${am_cv_proto_iconv+set}" = set; then
13317   echo $ECHO_N "(cached) $ECHO_C" >&6
13318 else
13319
13320       cat >conftest.$ac_ext <<_ACEOF
13321 /* confdefs.h.  */
13322 _ACEOF
13323 cat confdefs.h >>conftest.$ac_ext
13324 cat >>conftest.$ac_ext <<_ACEOF
13325 /* end confdefs.h.  */
13326
13327 #include <stdlib.h>
13328 #include <iconv.h>
13329 extern
13330 #ifdef __cplusplus
13331 "C"
13332 #endif
13333 #if defined(__STDC__) || defined(__cplusplus)
13334 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13335 #else
13336 size_t iconv();
13337 #endif
13338
13339 int
13340 main ()
13341 {
13342
13343   ;
13344   return 0;
13345 }
13346 _ACEOF
13347 rm -f conftest.$ac_objext
13348 if { (ac_try="$ac_compile"
13349 case "(($ac_try" in
13350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351   *) ac_try_echo=$ac_try;;
13352 esac
13353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354   (eval "$ac_compile") 2>conftest.er1
13355   ac_status=$?
13356   grep -v '^ *+' conftest.er1 >conftest.err
13357   rm -f conftest.er1
13358   cat conftest.err >&5
13359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360   (exit $ac_status); } &&
13361          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13371          { ac_try='test -s conftest.$ac_objext'
13372   { (case "(($ac_try" in
13373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374   *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377   (eval "$ac_try") 2>&5
13378   ac_status=$?
13379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380   (exit $ac_status); }; }; then
13381   am_cv_proto_iconv_arg1=""
13382 else
13383   echo "$as_me: failed program was:" >&5
13384 sed 's/^/| /' conftest.$ac_ext >&5
13385
13386         am_cv_proto_iconv_arg1="const"
13387 fi
13388
13389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13390       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);"
13391 fi
13392
13393     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13394     { echo "$as_me:$LINENO: result: ${ac_t:-
13395          }$am_cv_proto_iconv" >&5
13396 echo "${ECHO_T}${ac_t:-
13397          }$am_cv_proto_iconv" >&6; }
13398
13399 cat >>confdefs.h <<_ACEOF
13400 #define ICONV_CONST $am_cv_proto_iconv_arg1
13401 _ACEOF
13402
13403   fi
13404
13405
13406   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13407 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13408 if test "${am_cv_langinfo_codeset+set}" = set; then
13409   echo $ECHO_N "(cached) $ECHO_C" >&6
13410 else
13411   cat >conftest.$ac_ext <<_ACEOF
13412 /* confdefs.h.  */
13413 _ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h.  */
13417 #include <langinfo.h>
13418 int
13419 main ()
13420 {
13421 char* cs = nl_langinfo(CODESET);
13422   ;
13423   return 0;
13424 }
13425 _ACEOF
13426 rm -f conftest.$ac_objext conftest$ac_exeext
13427 if { (ac_try="$ac_link"
13428 case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_link") 2>conftest.er1
13434   ac_status=$?
13435   grep -v '^ *+' conftest.er1 >conftest.err
13436   rm -f conftest.er1
13437   cat conftest.err >&5
13438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439   (exit $ac_status); } &&
13440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13450          { ac_try='test -s conftest$ac_exeext'
13451   { (case "(($ac_try" in
13452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13453   *) ac_try_echo=$ac_try;;
13454 esac
13455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13456   (eval "$ac_try") 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }; }; then
13460   am_cv_langinfo_codeset=yes
13461 else
13462   echo "$as_me: failed program was:" >&5
13463 sed 's/^/| /' conftest.$ac_ext >&5
13464
13465         am_cv_langinfo_codeset=no
13466 fi
13467
13468 rm -f core conftest.err conftest.$ac_objext \
13469       conftest$ac_exeext conftest.$ac_ext
13470
13471 fi
13472 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13473 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13474   if test $am_cv_langinfo_codeset = yes; then
13475
13476 cat >>confdefs.h <<\_ACEOF
13477 #define HAVE_LANGINFO_CODESET 1
13478 _ACEOF
13479
13480   fi
13481
13482   if test $ac_cv_header_locale_h = yes; then
13483
13484   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13485 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13486 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13487   echo $ECHO_N "(cached) $ECHO_C" >&6
13488 else
13489   cat >conftest.$ac_ext <<_ACEOF
13490 /* confdefs.h.  */
13491 _ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h.  */
13495 #include <locale.h>
13496 int
13497 main ()
13498 {
13499 return LC_MESSAGES
13500   ;
13501   return 0;
13502 }
13503 _ACEOF
13504 rm -f conftest.$ac_objext conftest$ac_exeext
13505 if { (ac_try="$ac_link"
13506 case "(($ac_try" in
13507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508   *) ac_try_echo=$ac_try;;
13509 esac
13510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13511   (eval "$ac_link") 2>conftest.er1
13512   ac_status=$?
13513   grep -v '^ *+' conftest.er1 >conftest.err
13514   rm -f conftest.er1
13515   cat conftest.err >&5
13516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517   (exit $ac_status); } &&
13518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13528          { ac_try='test -s conftest$ac_exeext'
13529   { (case "(($ac_try" in
13530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13531   *) ac_try_echo=$ac_try;;
13532 esac
13533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13534   (eval "$ac_try") 2>&5
13535   ac_status=$?
13536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537   (exit $ac_status); }; }; then
13538   gt_cv_val_LC_MESSAGES=yes
13539 else
13540   echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         gt_cv_val_LC_MESSAGES=no
13544 fi
13545
13546 rm -f core conftest.err conftest.$ac_objext \
13547       conftest$ac_exeext conftest.$ac_ext
13548 fi
13549 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13550 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13551   if test $gt_cv_val_LC_MESSAGES = yes; then
13552
13553 cat >>confdefs.h <<\_ACEOF
13554 #define HAVE_LC_MESSAGES 1
13555 _ACEOF
13556
13557   fi
13558
13559   fi
13560
13561   if test -n "$INTL_MACOSX_LIBS"; then
13562     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13563   fi
13564
13565                       for ac_prog in bison
13566 do
13567   # Extract the first word of "$ac_prog", so it can be a program name with args.
13568 set dummy $ac_prog; ac_word=$2
13569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13571 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13572   echo $ECHO_N "(cached) $ECHO_C" >&6
13573 else
13574   if test -n "$INTLBISON"; then
13575   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13576 else
13577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13578 for as_dir in $PATH
13579 do
13580   IFS=$as_save_IFS
13581   test -z "$as_dir" && as_dir=.
13582   for ac_exec_ext in '' $ac_executable_extensions; do
13583   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13584     ac_cv_prog_INTLBISON="$ac_prog"
13585     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13586     break 2
13587   fi
13588 done
13589 done
13590 IFS=$as_save_IFS
13591
13592 fi
13593 fi
13594 INTLBISON=$ac_cv_prog_INTLBISON
13595 if test -n "$INTLBISON"; then
13596   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13597 echo "${ECHO_T}$INTLBISON" >&6; }
13598 else
13599   { echo "$as_me:$LINENO: result: no" >&5
13600 echo "${ECHO_T}no" >&6; }
13601 fi
13602
13603
13604   test -n "$INTLBISON" && break
13605 done
13606
13607   if test -z "$INTLBISON"; then
13608     ac_verc_fail=yes
13609   else
13610         { echo "$as_me:$LINENO: checking version of bison" >&5
13611 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13612     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13613     case $ac_prog_version in
13614       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13615       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13616          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13617       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13618     esac
13619     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13620 echo "${ECHO_T}$ac_prog_version" >&6; }
13621   fi
13622   if test $ac_verc_fail = yes; then
13623     INTLBISON=:
13624   fi
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13642 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13643 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13644   echo $ECHO_N "(cached) $ECHO_C" >&6
13645 else
13646   gt_save_CPPFLAGS="$CPPFLAGS"
13647      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13648      gt_save_LIBS="$LIBS"
13649      LIBS="$LIBS -framework CoreFoundation"
13650      cat >conftest.$ac_ext <<_ACEOF
13651 /* confdefs.h.  */
13652 _ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h.  */
13656 #include <CFPreferences.h>
13657 int
13658 main ()
13659 {
13660 CFPreferencesCopyAppValue(NULL, NULL)
13661   ;
13662   return 0;
13663 }
13664 _ACEOF
13665 rm -f conftest.$ac_objext conftest$ac_exeext
13666 if { (ac_try="$ac_link"
13667 case "(($ac_try" in
13668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13669   *) ac_try_echo=$ac_try;;
13670 esac
13671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13672   (eval "$ac_link") 2>conftest.er1
13673   ac_status=$?
13674   grep -v '^ *+' conftest.er1 >conftest.err
13675   rm -f conftest.er1
13676   cat conftest.err >&5
13677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678   (exit $ac_status); } &&
13679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13689          { ac_try='test -s conftest$ac_exeext'
13690   { (case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695   (eval "$ac_try") 2>&5
13696   ac_status=$?
13697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698   (exit $ac_status); }; }; then
13699   gt_cv_func_CFPreferencesCopyAppValue=yes
13700 else
13701   echo "$as_me: failed program was:" >&5
13702 sed 's/^/| /' conftest.$ac_ext >&5
13703
13704         gt_cv_func_CFPreferencesCopyAppValue=no
13705 fi
13706
13707 rm -f core conftest.err conftest.$ac_objext \
13708       conftest$ac_exeext conftest.$ac_ext
13709      CPPFLAGS="$gt_save_CPPFLAGS"
13710      LIBS="$gt_save_LIBS"
13711 fi
13712 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13713 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13714   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13715
13716 cat >>confdefs.h <<\_ACEOF
13717 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13718 _ACEOF
13719
13720   fi
13721     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13722 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13723 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13724   echo $ECHO_N "(cached) $ECHO_C" >&6
13725 else
13726   gt_save_CPPFLAGS="$CPPFLAGS"
13727      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13728      gt_save_LIBS="$LIBS"
13729      LIBS="$LIBS -framework CoreFoundation"
13730      cat >conftest.$ac_ext <<_ACEOF
13731 /* confdefs.h.  */
13732 _ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h.  */
13736 #include <CFLocale.h>
13737 int
13738 main ()
13739 {
13740 CFLocaleCopyCurrent();
13741   ;
13742   return 0;
13743 }
13744 _ACEOF
13745 rm -f conftest.$ac_objext conftest$ac_exeext
13746 if { (ac_try="$ac_link"
13747 case "(($ac_try" in
13748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13749   *) ac_try_echo=$ac_try;;
13750 esac
13751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13752   (eval "$ac_link") 2>conftest.er1
13753   ac_status=$?
13754   grep -v '^ *+' conftest.er1 >conftest.err
13755   rm -f conftest.er1
13756   cat conftest.err >&5
13757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758   (exit $ac_status); } &&
13759          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13769          { ac_try='test -s conftest$ac_exeext'
13770   { (case "(($ac_try" in
13771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772   *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775   (eval "$ac_try") 2>&5
13776   ac_status=$?
13777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778   (exit $ac_status); }; }; then
13779   gt_cv_func_CFLocaleCopyCurrent=yes
13780 else
13781   echo "$as_me: failed program was:" >&5
13782 sed 's/^/| /' conftest.$ac_ext >&5
13783
13784         gt_cv_func_CFLocaleCopyCurrent=no
13785 fi
13786
13787 rm -f core conftest.err conftest.$ac_objext \
13788       conftest$ac_exeext conftest.$ac_ext
13789      CPPFLAGS="$gt_save_CPPFLAGS"
13790      LIBS="$gt_save_LIBS"
13791 fi
13792 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13793 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13794   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_CFLOCALECOPYCURRENT 1
13798 _ACEOF
13799
13800   fi
13801   INTL_MACOSX_LIBS=
13802   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13803     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13804   fi
13805
13806
13807
13808
13809   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13810 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13811     # Check whether --enable-nls was given.
13812 if test "${enable_nls+set}" = set; then
13813   enableval=$enable_nls; USE_NLS=$enableval
13814 else
13815   USE_NLS=yes
13816 fi
13817
13818   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13819 echo "${ECHO_T}$USE_NLS" >&6; }
13820
13821
13822
13823
13824     BUILD_INCLUDED_LIBINTL=no
13825     USE_INCLUDED_LIBINTL=no
13826
13827   LIBINTL=
13828   LTLIBINTL=
13829   POSUB=
13830
13831     if test "$USE_NLS" = "yes"; then
13832     gt_use_preinstalled_gnugettext=no
13833
13834       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13835 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13836
13837 # Check whether --with-included-gettext was given.
13838 if test "${with_included_gettext+set}" = set; then
13839   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13840 else
13841   nls_cv_force_use_gnu_gettext=no
13842 fi
13843
13844       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13845 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13846
13847       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13848       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13849
13850
13851
13852
13853
13854
13855         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13856 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13857 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13858   echo $ECHO_N "(cached) $ECHO_C" >&6
13859 else
13860   cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866 #include <libintl.h>
13867 extern int _nl_msg_cat_cntr;
13868 extern int *_nl_domain_bindings;
13869 int
13870 main ()
13871 {
13872 bindtextdomain ("", "");
13873 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13874   ;
13875   return 0;
13876 }
13877 _ACEOF
13878 rm -f conftest.$ac_objext conftest$ac_exeext
13879 if { (ac_try="$ac_link"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885   (eval "$ac_link") 2>conftest.er1
13886   ac_status=$?
13887   grep -v '^ *+' conftest.er1 >conftest.err
13888   rm -f conftest.er1
13889   cat conftest.err >&5
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); } &&
13892          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
13902          { ac_try='test -s conftest$ac_exeext'
13903   { (case "(($ac_try" in
13904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905   *) ac_try_echo=$ac_try;;
13906 esac
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908   (eval "$ac_try") 2>&5
13909   ac_status=$?
13910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911   (exit $ac_status); }; }; then
13912   gt_cv_func_gnugettext1_libc=yes
13913 else
13914   echo "$as_me: failed program was:" >&5
13915 sed 's/^/| /' conftest.$ac_ext >&5
13916
13917         gt_cv_func_gnugettext1_libc=no
13918 fi
13919
13920 rm -f core conftest.err conftest.$ac_objext \
13921       conftest$ac_exeext conftest.$ac_ext
13922 fi
13923 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13924 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13925
13926         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13927
13928
13929
13930     use_additional=yes
13931
13932   acl_save_prefix="$prefix"
13933   prefix="$acl_final_prefix"
13934   acl_save_exec_prefix="$exec_prefix"
13935   exec_prefix="$acl_final_exec_prefix"
13936
13937     eval additional_includedir=\"$includedir\"
13938     eval additional_libdir=\"$libdir\"
13939
13940   exec_prefix="$acl_save_exec_prefix"
13941   prefix="$acl_save_prefix"
13942
13943
13944 # Check whether --with-libintl-prefix was given.
13945 if test "${with_libintl_prefix+set}" = set; then
13946   withval=$with_libintl_prefix;
13947     if test "X$withval" = "Xno"; then
13948       use_additional=no
13949     else
13950       if test "X$withval" = "X"; then
13951
13952   acl_save_prefix="$prefix"
13953   prefix="$acl_final_prefix"
13954   acl_save_exec_prefix="$exec_prefix"
13955   exec_prefix="$acl_final_exec_prefix"
13956
13957           eval additional_includedir=\"$includedir\"
13958           eval additional_libdir=\"$libdir\"
13959
13960   exec_prefix="$acl_save_exec_prefix"
13961   prefix="$acl_save_prefix"
13962
13963       else
13964         additional_includedir="$withval/include"
13965         additional_libdir="$withval/lib"
13966       fi
13967     fi
13968
13969 fi
13970
13971       LIBINTL=
13972   LTLIBINTL=
13973   INCINTL=
13974   rpathdirs=
13975   ltrpathdirs=
13976   names_already_handled=
13977   names_next_round='intl '
13978   while test -n "$names_next_round"; do
13979     names_this_round="$names_next_round"
13980     names_next_round=
13981     for name in $names_this_round; do
13982       already_handled=
13983       for n in $names_already_handled; do
13984         if test "$n" = "$name"; then
13985           already_handled=yes
13986           break
13987         fi
13988       done
13989       if test -z "$already_handled"; then
13990         names_already_handled="$names_already_handled $name"
13991                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13992         eval value=\"\$HAVE_LIB$uppername\"
13993         if test -n "$value"; then
13994           if test "$value" = yes; then
13995             eval value=\"\$LIB$uppername\"
13996             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13997             eval value=\"\$LTLIB$uppername\"
13998             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13999           else
14000                                     :
14001           fi
14002         else
14003                               found_dir=
14004           found_la=
14005           found_so=
14006           found_a=
14007           if test $use_additional = yes; then
14008             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14009               found_dir="$additional_libdir"
14010               found_so="$additional_libdir/lib$name.$shlibext"
14011               if test -f "$additional_libdir/lib$name.la"; then
14012                 found_la="$additional_libdir/lib$name.la"
14013               fi
14014             else
14015               if test -f "$additional_libdir/lib$name.$libext"; then
14016                 found_dir="$additional_libdir"
14017                 found_a="$additional_libdir/lib$name.$libext"
14018                 if test -f "$additional_libdir/lib$name.la"; then
14019                   found_la="$additional_libdir/lib$name.la"
14020                 fi
14021               fi
14022             fi
14023           fi
14024           if test "X$found_dir" = "X"; then
14025             for x in $LDFLAGS $LTLIBINTL; do
14026
14027   acl_save_prefix="$prefix"
14028   prefix="$acl_final_prefix"
14029   acl_save_exec_prefix="$exec_prefix"
14030   exec_prefix="$acl_final_exec_prefix"
14031   eval x=\"$x\"
14032   exec_prefix="$acl_save_exec_prefix"
14033   prefix="$acl_save_prefix"
14034
14035               case "$x" in
14036                 -L*)
14037                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14038                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14039                     found_dir="$dir"
14040                     found_so="$dir/lib$name.$shlibext"
14041                     if test -f "$dir/lib$name.la"; then
14042                       found_la="$dir/lib$name.la"
14043                     fi
14044                   else
14045                     if test -f "$dir/lib$name.$libext"; then
14046                       found_dir="$dir"
14047                       found_a="$dir/lib$name.$libext"
14048                       if test -f "$dir/lib$name.la"; then
14049                         found_la="$dir/lib$name.la"
14050                       fi
14051                     fi
14052                   fi
14053                   ;;
14054               esac
14055               if test "X$found_dir" != "X"; then
14056                 break
14057               fi
14058             done
14059           fi
14060           if test "X$found_dir" != "X"; then
14061                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14062             if test "X$found_so" != "X"; then
14063                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14064                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14065               else
14066                                                                                 haveit=
14067                 for x in $ltrpathdirs; do
14068                   if test "X$x" = "X$found_dir"; then
14069                     haveit=yes
14070                     break
14071                   fi
14072                 done
14073                 if test -z "$haveit"; then
14074                   ltrpathdirs="$ltrpathdirs $found_dir"
14075                 fi
14076                                 if test "$hardcode_direct" = yes; then
14077                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14078                 else
14079                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14080                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14081                                                             haveit=
14082                     for x in $rpathdirs; do
14083                       if test "X$x" = "X$found_dir"; then
14084                         haveit=yes
14085                         break
14086                       fi
14087                     done
14088                     if test -z "$haveit"; then
14089                       rpathdirs="$rpathdirs $found_dir"
14090                     fi
14091                   else
14092                                                                                 haveit=
14093                     for x in $LDFLAGS $LIBINTL; do
14094
14095   acl_save_prefix="$prefix"
14096   prefix="$acl_final_prefix"
14097   acl_save_exec_prefix="$exec_prefix"
14098   exec_prefix="$acl_final_exec_prefix"
14099   eval x=\"$x\"
14100   exec_prefix="$acl_save_exec_prefix"
14101   prefix="$acl_save_prefix"
14102
14103                       if test "X$x" = "X-L$found_dir"; then
14104                         haveit=yes
14105                         break
14106                       fi
14107                     done
14108                     if test -z "$haveit"; then
14109                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14110                     fi
14111                     if test "$hardcode_minus_L" != no; then
14112                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14113                     else
14114                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14115                     fi
14116                   fi
14117                 fi
14118               fi
14119             else
14120               if test "X$found_a" != "X"; then
14121                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14122               else
14123                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14124               fi
14125             fi
14126                         additional_includedir=
14127             case "$found_dir" in
14128               */lib | */lib/)
14129                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14130                 additional_includedir="$basedir/include"
14131                 ;;
14132             esac
14133             if test "X$additional_includedir" != "X"; then
14134                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14135                 haveit=
14136                 if test "X$additional_includedir" = "X/usr/local/include"; then
14137                   if test -n "$GCC"; then
14138                     case $host_os in
14139                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14140                     esac
14141                   fi
14142                 fi
14143                 if test -z "$haveit"; then
14144                   for x in $CPPFLAGS $INCINTL; do
14145
14146   acl_save_prefix="$prefix"
14147   prefix="$acl_final_prefix"
14148   acl_save_exec_prefix="$exec_prefix"
14149   exec_prefix="$acl_final_exec_prefix"
14150   eval x=\"$x\"
14151   exec_prefix="$acl_save_exec_prefix"
14152   prefix="$acl_save_prefix"
14153
14154                     if test "X$x" = "X-I$additional_includedir"; then
14155                       haveit=yes
14156                       break
14157                     fi
14158                   done
14159                   if test -z "$haveit"; then
14160                     if test -d "$additional_includedir"; then
14161                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14162                     fi
14163                   fi
14164                 fi
14165               fi
14166             fi
14167                         if test -n "$found_la"; then
14168                                                         save_libdir="$libdir"
14169               case "$found_la" in
14170                 */* | *\\*) . "$found_la" ;;
14171                 *) . "./$found_la" ;;
14172               esac
14173               libdir="$save_libdir"
14174                             for dep in $dependency_libs; do
14175                 case "$dep" in
14176                   -L*)
14177                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14178                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14179                       haveit=
14180                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14181                         if test -n "$GCC"; then
14182                           case $host_os in
14183                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14184                           esac
14185                         fi
14186                       fi
14187                       if test -z "$haveit"; then
14188                         haveit=
14189                         for x in $LDFLAGS $LIBINTL; do
14190
14191   acl_save_prefix="$prefix"
14192   prefix="$acl_final_prefix"
14193   acl_save_exec_prefix="$exec_prefix"
14194   exec_prefix="$acl_final_exec_prefix"
14195   eval x=\"$x\"
14196   exec_prefix="$acl_save_exec_prefix"
14197   prefix="$acl_save_prefix"
14198
14199                           if test "X$x" = "X-L$additional_libdir"; then
14200                             haveit=yes
14201                             break
14202                           fi
14203                         done
14204                         if test -z "$haveit"; then
14205                           if test -d "$additional_libdir"; then
14206                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14207                           fi
14208                         fi
14209                         haveit=
14210                         for x in $LDFLAGS $LTLIBINTL; do
14211
14212   acl_save_prefix="$prefix"
14213   prefix="$acl_final_prefix"
14214   acl_save_exec_prefix="$exec_prefix"
14215   exec_prefix="$acl_final_exec_prefix"
14216   eval x=\"$x\"
14217   exec_prefix="$acl_save_exec_prefix"
14218   prefix="$acl_save_prefix"
14219
14220                           if test "X$x" = "X-L$additional_libdir"; then
14221                             haveit=yes
14222                             break
14223                           fi
14224                         done
14225                         if test -z "$haveit"; then
14226                           if test -d "$additional_libdir"; then
14227                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14228                           fi
14229                         fi
14230                       fi
14231                     fi
14232                     ;;
14233                   -R*)
14234                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14235                     if test "$enable_rpath" != no; then
14236                                                                   haveit=
14237                       for x in $rpathdirs; 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                         rpathdirs="$rpathdirs $dir"
14245                       fi
14246                                                                   haveit=
14247                       for x in $ltrpathdirs; do
14248                         if test "X$x" = "X$dir"; then
14249                           haveit=yes
14250                           break
14251                         fi
14252                       done
14253                       if test -z "$haveit"; then
14254                         ltrpathdirs="$ltrpathdirs $dir"
14255                       fi
14256                     fi
14257                     ;;
14258                   -l*)
14259                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14260                     ;;
14261                   *.la)
14262                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14263                     ;;
14264                   *)
14265                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14266                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14267                     ;;
14268                 esac
14269               done
14270             fi
14271           else
14272                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14273             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14274           fi
14275         fi
14276       fi
14277     done
14278   done
14279   if test "X$rpathdirs" != "X"; then
14280     if test -n "$hardcode_libdir_separator"; then
14281                         alldirs=
14282       for found_dir in $rpathdirs; do
14283         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14284       done
14285             acl_save_libdir="$libdir"
14286       libdir="$alldirs"
14287       eval flag=\"$hardcode_libdir_flag_spec\"
14288       libdir="$acl_save_libdir"
14289       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14290     else
14291             for found_dir in $rpathdirs; do
14292         acl_save_libdir="$libdir"
14293         libdir="$found_dir"
14294         eval flag=\"$hardcode_libdir_flag_spec\"
14295         libdir="$acl_save_libdir"
14296         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14297       done
14298     fi
14299   fi
14300   if test "X$ltrpathdirs" != "X"; then
14301             for found_dir in $ltrpathdirs; do
14302       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14303     done
14304   fi
14305
14306           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14307 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14308 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   gt_save_CPPFLAGS="$CPPFLAGS"
14312             CPPFLAGS="$CPPFLAGS $INCINTL"
14313             gt_save_LIBS="$LIBS"
14314             LIBS="$LIBS $LIBINTL"
14315                         cat >conftest.$ac_ext <<_ACEOF
14316 /* confdefs.h.  */
14317 _ACEOF
14318 cat confdefs.h >>conftest.$ac_ext
14319 cat >>conftest.$ac_ext <<_ACEOF
14320 /* end confdefs.h.  */
14321 #include <libintl.h>
14322 extern int _nl_msg_cat_cntr;
14323 extern
14324 #ifdef __cplusplus
14325 "C"
14326 #endif
14327 const char *_nl_expand_alias (const char *);
14328 int
14329 main ()
14330 {
14331 bindtextdomain ("", "");
14332 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14333   ;
14334   return 0;
14335 }
14336 _ACEOF
14337 rm -f conftest.$ac_objext conftest$ac_exeext
14338 if { (ac_try="$ac_link"
14339 case "(($ac_try" in
14340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341   *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344   (eval "$ac_link") 2>conftest.er1
14345   ac_status=$?
14346   grep -v '^ *+' conftest.er1 >conftest.err
14347   rm -f conftest.er1
14348   cat conftest.err >&5
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); } &&
14351          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14361          { ac_try='test -s conftest$ac_exeext'
14362   { (case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367   (eval "$ac_try") 2>&5
14368   ac_status=$?
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); }; }; then
14371   gt_cv_func_gnugettext1_libintl=yes
14372 else
14373   echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14375
14376         gt_cv_func_gnugettext1_libintl=no
14377 fi
14378
14379 rm -f core conftest.err conftest.$ac_objext \
14380       conftest$ac_exeext conftest.$ac_ext
14381                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14382               LIBS="$LIBS $LIBICONV"
14383               cat >conftest.$ac_ext <<_ACEOF
14384 /* confdefs.h.  */
14385 _ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h.  */
14389 #include <libintl.h>
14390 extern int _nl_msg_cat_cntr;
14391 extern
14392 #ifdef __cplusplus
14393 "C"
14394 #endif
14395 const char *_nl_expand_alias (const char *);
14396 int
14397 main ()
14398 {
14399 bindtextdomain ("", "");
14400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14401   ;
14402   return 0;
14403 }
14404 _ACEOF
14405 rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_link") 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } &&
14419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14429          { ac_try='test -s conftest$ac_exeext'
14430   { (case "(($ac_try" in
14431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14432   *) ac_try_echo=$ac_try;;
14433 esac
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435   (eval "$ac_try") 2>&5
14436   ac_status=$?
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); }; }; then
14439   LIBINTL="$LIBINTL $LIBICONV"
14440                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14441                 gt_cv_func_gnugettext1_libintl=yes
14442
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext \
14451       conftest$ac_exeext conftest.$ac_ext
14452             fi
14453             CPPFLAGS="$gt_save_CPPFLAGS"
14454             LIBS="$gt_save_LIBS"
14455 fi
14456 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14457 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14458         fi
14459
14460                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14461            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14462                 && test "$PACKAGE" != gettext-runtime \
14463                 && test "$PACKAGE" != gettext-tools; }; then
14464           gt_use_preinstalled_gnugettext=yes
14465         else
14466                     LIBINTL=
14467           LTLIBINTL=
14468           INCINTL=
14469         fi
14470
14471
14472         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14473                               nls_cv_use_gnu_gettext=yes
14474         fi
14475       fi
14476
14477       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14478                 BUILD_INCLUDED_LIBINTL=yes
14479         USE_INCLUDED_LIBINTL=yes
14480         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14481         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14482         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14483       fi
14484
14485       CATOBJEXT=
14486       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14487          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14488                 CATOBJEXT=.gmo
14489       fi
14490
14491
14492     if test -n "$INTL_MACOSX_LIBS"; then
14493       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14494          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14495                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14496         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14497       fi
14498     fi
14499
14500     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14501        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14502
14503 cat >>confdefs.h <<\_ACEOF
14504 #define ENABLE_NLS 1
14505 _ACEOF
14506
14507     else
14508       USE_NLS=no
14509     fi
14510   fi
14511
14512   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14513 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14514   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14515 echo "${ECHO_T}$USE_NLS" >&6; }
14516   if test "$USE_NLS" = "yes"; then
14517     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14518 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14519     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14520       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14521         gt_source="external libintl"
14522       else
14523         gt_source="libc"
14524       fi
14525     else
14526       gt_source="included intl directory"
14527     fi
14528     { echo "$as_me:$LINENO: result: $gt_source" >&5
14529 echo "${ECHO_T}$gt_source" >&6; }
14530   fi
14531
14532   if test "$USE_NLS" = "yes"; then
14533
14534     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14535       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14536         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14537 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14538         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14539 echo "${ECHO_T}$LIBINTL" >&6; }
14540
14541   for element in $INCINTL; do
14542     haveit=
14543     for x in $CPPFLAGS; do
14544
14545   acl_save_prefix="$prefix"
14546   prefix="$acl_final_prefix"
14547   acl_save_exec_prefix="$exec_prefix"
14548   exec_prefix="$acl_final_exec_prefix"
14549   eval x=\"$x\"
14550   exec_prefix="$acl_save_exec_prefix"
14551   prefix="$acl_save_prefix"
14552
14553       if test "X$x" = "X$element"; then
14554         haveit=yes
14555         break
14556       fi
14557     done
14558     if test -z "$haveit"; then
14559       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14560     fi
14561   done
14562
14563       fi
14564
14565
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HAVE_GETTEXT 1
14568 _ACEOF
14569
14570
14571 cat >>confdefs.h <<\_ACEOF
14572 #define HAVE_DCGETTEXT 1
14573 _ACEOF
14574
14575     fi
14576
14577         POSUB=po
14578   fi
14579
14580
14581             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14582       BUILD_INCLUDED_LIBINTL=yes
14583     fi
14584
14585
14586
14587
14588
14589         nls_cv_header_intl=
14590     nls_cv_header_libgt=
14591
14592         DATADIRNAME=share
14593
14594
14595         INSTOBJEXT=.mo
14596
14597
14598         GENCAT=gencat
14599
14600
14601         INTLOBJS=
14602     if test "$USE_INCLUDED_LIBINTL" = yes; then
14603       INTLOBJS="\$(GETTOBJS)"
14604     fi
14605
14606
14607         INTL_LIBTOOL_SUFFIX_PREFIX=
14608
14609
14610
14611     INTLLIBS="$LIBINTL"
14612
14613
14614
14615
14616
14617
14618 fi
14619
14620
14621 support_mysql=no
14622 support_sqlite=no
14623 support_sqlite3=no
14624 support_postgresql=no
14625 support_smartalloc=yes
14626 support_readline=yes
14627 support_conio=yes
14628 support_gnome=no
14629 support_bat=no
14630 support_wx_console=no
14631 support_tls=no
14632 support_crypto=no
14633 gnome_version=
14634 wx_version=
14635 support_static_tools=no
14636 support_static_fd=no
14637 support_static_sd=no
14638 support_static_dir=no
14639 support_static_cons=no
14640 support_python=no
14641 build_client_only=no
14642 build_dird=yes
14643 build_stored=yes
14644 cats=
14645 db_type=Internal
14646 DB_TYPE=bdb
14647
14648
14649 # -------------------------------------------
14650 # gnome (default off)
14651 # -------------------------------------------
14652 # Check whether --enable-gnome was given.
14653 if test "${enable_gnome+set}" = set; then
14654   enableval=$enable_gnome; if test x$enableval = xyes; then
14655     support_gnome=yes
14656   fi
14657 fi
14658
14659
14660 GNOME_DIR=
14661 if test x$support_gnome = xyes; then
14662   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14663   pkg=$?
14664   if test $pkg = 0; then
14665      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14666      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14667      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14668      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14669
14670
14671
14672
14673      GNOME_DIR=src/gnome2-console
14674      gnome_version="Version 2.x"
14675   else
14676      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14677 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14678    { (exit 1); exit 1; }; }
14679   fi
14680 fi
14681
14682
14683 # -------------------------------------------
14684 # bat (default off)
14685 # -------------------------------------------
14686 # Check whether --enable-bat was given.
14687 if test "${enable_bat+set}" = set; then
14688   enableval=$enable_bat; if test x$enableval = xyes; then
14689
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_BAT 1
14692 _ACEOF
14693
14694     support_bat=yes
14695   fi
14696 fi
14697
14698
14699 BAT_DIR=
14700 if test x$support_bat = xyes; then
14701   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14702   pkg=$?
14703   if test $pkg = 0; then
14704      BAT_DIR=src/qt-console
14705   else
14706      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14707 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14708    { (exit 1); exit 1; }; }
14709   fi
14710 fi
14711
14712 #
14713 #  If bat is enabled, we need the qwt library
14714 got_qwt=no
14715 if test x$support_bat = xyes; then
14716
14717 # Check whether --with-qwt was given.
14718 if test "${with_qwt+set}" = set; then
14719   withval=$with_qwt;
14720         case "$with_qwt" in
14721         no) : ;;
14722         yes|*)
14723           if test -f ${with_qwt}/include/qwt.h; then
14724              QWT_INC="${with_qwt}/include"
14725              QWT_LDFLAGS="-L${with_qwt}/lib"
14726           else
14727              echo " "
14728              echo "qwt.h not found. bat turned off ..."
14729              echo " "
14730              BAT_DIR=
14731              support_bat=no
14732           fi
14733           ;;
14734         esac
14735
14736
14737 fi
14738
14739 fi
14740
14741
14742
14743
14744
14745
14746 # -------------------------------------------
14747 # bwx-console (default off)
14748 # -------------------------------------------
14749 # Check whether --enable-bwx-console was given.
14750 if test "${enable_bwx_console+set}" = set; then
14751   enableval=$enable_bwx_console; if test x$enableval = xyes; then
14752     support_wx_console=yes
14753   fi
14754 fi
14755
14756
14757 WX_DIR=
14758 if test x$support_wx_console = xyes; then
14759   abc=`$WXCONFIG $WXFLAGS --cppflags`
14760   pkg=$?
14761   if test $pkg = 0; then
14762      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14763      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14764      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14765
14766
14767
14768      WX_DIR=src/wx-console
14769   else
14770      echo " "
14771      echo "wx-config program not found. bwx-console disabled."
14772      echo " "
14773      support_wx_console=no
14774   fi
14775 fi
14776
14777
14778
14779 # -------------------------------------------
14780 # tray-monitor (default off)
14781 # -------------------------------------------
14782 # Check whether --enable-tray-monitor was given.
14783 if test "${enable_tray_monitor+set}" = set; then
14784   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14785     support_tray_monitor=yes
14786   fi
14787 fi
14788
14789
14790 TRAY_MONITOR_DIR=
14791 if test x$support_tray_monitor = xyes; then
14792   abc=`$PKGCONFIG --exists gtk+-2.0`
14793   pkg=$?
14794   if test $pkg = 0; then
14795      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14796      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14797
14798
14799      TRAY_MONITOR_DIR=src/tray-monitor
14800      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14801      pkg=$?
14802      if test $pkg = 0; then
14803      cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_GTK_2_4 1
14805 _ACEOF
14806
14807      fi
14808   fi
14809 fi
14810
14811
14812 # -------------------------------------------
14813 # smartalloc (default off)
14814 # -------------------------------------------
14815 # Check whether --enable-smartalloc was given.
14816 if test "${enable_smartalloc+set}" = set; then
14817   enableval=$enable_smartalloc; if test x$enableval = xno; then
14818     support_smartalloc=no
14819   fi
14820 fi
14821
14822
14823 if test x$support_smartalloc = xyes; then
14824    cat >>confdefs.h <<\_ACEOF
14825 #define SMARTALLOC 1
14826 _ACEOF
14827
14828 fi
14829
14830 # -------------------------------------------
14831 # static-tools (default off)
14832 # -------------------------------------------
14833 # Check whether --enable-static-tools was given.
14834 if test "${enable_static_tools+set}" = set; then
14835   enableval=$enable_static_tools; if test x$enableval = xyes; then
14836      support_static_tools=yes
14837    fi
14838 fi
14839
14840
14841 TTOOL_LDFLAGS=
14842 if test x$support_static_tools = xyes; then
14843    TTOOL_LDFLAGS="-static"
14844 fi
14845
14846
14847 # -------------------------------------------
14848 # static-fd    (default off)
14849 # -------------------------------------------
14850 # Check whether --enable-static-fd was given.
14851 if test "${enable_static_fd+set}" = set; then
14852   enableval=$enable_static_fd; if test x$enableval = xyes; then
14853      support_static_fd=yes
14854    fi
14855 fi
14856
14857
14858 STATIC_FD=
14859 if test x$support_static_fd = xyes; then
14860    STATIC_FD="static-bacula-fd"
14861 fi
14862
14863
14864 # -------------------------------------------
14865 # static-sd    (default off)
14866 # -------------------------------------------
14867 # Check whether --enable-static-sd was given.
14868 if test "${enable_static_sd+set}" = set; then
14869   enableval=$enable_static_sd; if test x$enableval = xyes; then
14870      support_static_sd=yes
14871    fi
14872 fi
14873
14874
14875 STATIC_SD=
14876 if test x$support_static_sd = xyes; then
14877    STATIC_SD="static-bacula-sd"
14878 fi
14879
14880
14881 # -------------------------------------------
14882 # static-dir   (default off)
14883 # -------------------------------------------
14884 # Check whether --enable-static-dir was given.
14885 if test "${enable_static_dir+set}" = set; then
14886   enableval=$enable_static_dir; if test x$enableval = xyes; then
14887      support_static_dir=yes
14888    fi
14889 fi
14890
14891
14892 STATIC_DIR=
14893 if test x$support_static_dir = xyes; then
14894    STATIC_DIR="static-bacula-dir"
14895 fi
14896
14897
14898 # -------------------------------------------
14899 # static-cons  (default off)
14900 # -------------------------------------------
14901 # Check whether --enable-static-cons was given.
14902 if test "${enable_static_cons+set}" = set; then
14903   enableval=$enable_static_cons; if test x$enableval = xyes; then
14904      support_static_cons=yes
14905    fi
14906 fi
14907
14908
14909 STATIC_CONS=
14910 STATIC_GNOME_CONS=
14911 STATIC_WX_CONS=
14912 if test x$support_static_cons = xyes; then
14913    STATIC_CONS="static-bconsole"
14914    STATIC_GNOME_CONS="static-bgnome-console"
14915    STATIC_WX_CONS="static-bwx-console"
14916 fi
14917
14918
14919
14920
14921 # -------------------------------------------
14922 # client_only  (default off)
14923 # -------------------------------------------
14924 # Check whether --enable-client-only was given.
14925 if test "${enable_client_only+set}" = set; then
14926   enableval=$enable_client_only; if test x$enableval = xyes; then
14927       build_client_only=yes
14928       db_type=None
14929       DB_TYPE=none
14930    fi
14931 fi
14932
14933 if test x$build_client_only = xno; then
14934    ALL_DIRS="subdirs"
14935 else
14936    ALL_DIRS=""
14937 fi
14938
14939
14940 # -------------------------------------------
14941 # director  (default on)
14942 # -------------------------------------------
14943 # Check whether --enable-build-dird was given.
14944 if test "${enable_build_dird+set}" = set; then
14945   enableval=$enable_build_dird; if test x$enableval = xno; then
14946       build_dird=no
14947    fi
14948 fi
14949
14950 if test x$build_dird = xyes; then
14951    DIRD_DIR="src/dird"
14952    DIR_TOOLS="DIRTOOLS"
14953 else
14954    DIRD_DIR=""
14955    DIR_TOOLS="NODIRTOOLS"
14956 fi
14957
14958
14959
14960 # -------------------------------------------
14961 # stored  (default on)
14962 # -------------------------------------------
14963 # Check whether --enable-build-stored was given.
14964 if test "${enable_build_stored+set}" = set; then
14965   enableval=$enable_build_stored; if test x$enableval = xno; then
14966       build_stored=no
14967    fi
14968 fi
14969
14970 if test x$build_stored = xyes; then
14971    STORED_DIR="src/stored"
14972 else
14973    STORED_DIR=""
14974 fi
14975
14976
14977 # ---------------------------------------------------
14978 # Check for conio (Bacula readline substitute)(
14979 # ---------------------------------------------------
14980 # this allows you to turn it completely off
14981 # Check whether --enable-conio was given.
14982 if test "${enable_conio+set}" = set; then
14983   enableval=$enable_conio; if test x$enableval = xno; then
14984      support_conio=no
14985   fi
14986
14987 fi
14988
14989
14990
14991 # ---------------------------------------------------
14992 # Check for IPv6 support
14993 # ---------------------------------------------------
14994 # this allows you to turn it completely off
14995 support_ipv6=yes
14996 # Check whether --enable-ipv6 was given.
14997 if test "${enable_ipv6+set}" = set; then
14998   enableval=$enable_ipv6; if test x$enableval = xno; then
14999      support_ipv6=no
15000   fi
15001
15002 fi
15003
15004
15005 if test x$support_ipv6 = xyes; then
15006     cat >conftest.$ac_ext <<_ACEOF
15007 /* confdefs.h.  */
15008 _ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h.  */
15012  #include <sys/types.h>
15013 #include <sys/socket.h>
15014 #include <netinet/in.h>
15015 int
15016 main ()
15017 {
15018 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
15019   ;
15020   return 0;
15021 }
15022 _ACEOF
15023 rm -f conftest.$ac_objext conftest$ac_exeext
15024 if { (ac_try="$ac_link"
15025 case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030   (eval "$ac_link") 2>conftest.er1
15031   ac_status=$?
15032   grep -v '^ *+' conftest.er1 >conftest.err
15033   rm -f conftest.er1
15034   cat conftest.err >&5
15035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036   (exit $ac_status); } &&
15037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15038   { (case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15043   (eval "$ac_try") 2>&5
15044   ac_status=$?
15045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046   (exit $ac_status); }; } &&
15047          { ac_try='test -s conftest$ac_exeext'
15048   { (case "(($ac_try" in
15049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050   *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053   (eval "$ac_try") 2>&5
15054   ac_status=$?
15055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056   (exit $ac_status); }; }; then
15057   support_ipv6=yes
15058 else
15059   echo "$as_me: failed program was:" >&5
15060 sed 's/^/| /' conftest.$ac_ext >&5
15061
15062         support_ipv6=no
15063 fi
15064
15065 rm -f core conftest.err conftest.$ac_objext \
15066       conftest$ac_exeext conftest.$ac_ext
15067 fi
15068
15069 if test x$support_ipv6 = xyes; then
15070
15071 cat >>confdefs.h <<\_ACEOF
15072 #define HAVE_IPV6 1
15073 _ACEOF
15074
15075 fi
15076
15077
15078
15079 got_conio="no"
15080 if test x$support_conio = xyes; then
15081    if test "${ac_cv_header_termcap_h+set}" = set; then
15082   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15083 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15084 if test "${ac_cv_header_termcap_h+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 fi
15087 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15088 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15089 else
15090   # Is the header compilable?
15091 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15092 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h.  */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h.  */
15099 $ac_includes_default
15100 #include <termcap.h>
15101 _ACEOF
15102 rm -f conftest.$ac_objext
15103 if { (ac_try="$ac_compile"
15104 case "(($ac_try" in
15105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15106   *) ac_try_echo=$ac_try;;
15107 esac
15108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15109   (eval "$ac_compile") 2>conftest.er1
15110   ac_status=$?
15111   grep -v '^ *+' conftest.er1 >conftest.err
15112   rm -f conftest.er1
15113   cat conftest.err >&5
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } &&
15116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15117   { (case "(($ac_try" in
15118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119   *) ac_try_echo=$ac_try;;
15120 esac
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122   (eval "$ac_try") 2>&5
15123   ac_status=$?
15124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125   (exit $ac_status); }; } &&
15126          { ac_try='test -s conftest.$ac_objext'
15127   { (case "(($ac_try" in
15128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129   *) ac_try_echo=$ac_try;;
15130 esac
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132   (eval "$ac_try") 2>&5
15133   ac_status=$?
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); }; }; then
15136   ac_header_compiler=yes
15137 else
15138   echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15140
15141         ac_header_compiler=no
15142 fi
15143
15144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15146 echo "${ECHO_T}$ac_header_compiler" >&6; }
15147
15148 # Is the header present?
15149 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15150 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15152 /* confdefs.h.  */
15153 _ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h.  */
15157 #include <termcap.h>
15158 _ACEOF
15159 if { (ac_try="$ac_cpp conftest.$ac_ext"
15160 case "(($ac_try" in
15161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162   *) ac_try_echo=$ac_try;;
15163 esac
15164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15166   ac_status=$?
15167   grep -v '^ *+' conftest.er1 >conftest.err
15168   rm -f conftest.er1
15169   cat conftest.err >&5
15170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171   (exit $ac_status); } >/dev/null; then
15172   if test -s conftest.err; then
15173     ac_cpp_err=$ac_c_preproc_warn_flag
15174     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15175   else
15176     ac_cpp_err=
15177   fi
15178 else
15179   ac_cpp_err=yes
15180 fi
15181 if test -z "$ac_cpp_err"; then
15182   ac_header_preproc=yes
15183 else
15184   echo "$as_me: failed program was:" >&5
15185 sed 's/^/| /' conftest.$ac_ext >&5
15186
15187   ac_header_preproc=no
15188 fi
15189
15190 rm -f conftest.err conftest.$ac_ext
15191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15192 echo "${ECHO_T}$ac_header_preproc" >&6; }
15193
15194 # So?  What about this header?
15195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15196   yes:no: )
15197     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15198 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15199     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15200 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15201     ac_header_preproc=yes
15202     ;;
15203   no:yes:* )
15204     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15205 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15206     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15207 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15208     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15209 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15210     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15211 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15212     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15213 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15214     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15215 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15216
15217     ;;
15218 esac
15219 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15220 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15221 if test "${ac_cv_header_termcap_h+set}" = set; then
15222   echo $ECHO_N "(cached) $ECHO_C" >&6
15223 else
15224   ac_cv_header_termcap_h=$ac_header_preproc
15225 fi
15226 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15227 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15228
15229 fi
15230 if test $ac_cv_header_termcap_h = yes; then
15231    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15232 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15233 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15234   echo $ECHO_N "(cached) $ECHO_C" >&6
15235 else
15236   ac_check_lib_save_LIBS=$LIBS
15237 LIBS="-ltermcap  $LIBS"
15238 cat >conftest.$ac_ext <<_ACEOF
15239 /* confdefs.h.  */
15240 _ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h.  */
15244
15245 /* Override any GCC internal prototype to avoid an error.
15246    Use char because int might match the return type of a GCC
15247    builtin and then its argument prototype would still apply.  */
15248 #ifdef __cplusplus
15249 extern "C"
15250 #endif
15251 char tgetent ();
15252 int
15253 main ()
15254 {
15255 return tgetent ();
15256   ;
15257   return 0;
15258 }
15259 _ACEOF
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (ac_try="$ac_link"
15262 case "(($ac_try" in
15263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15264   *) ac_try_echo=$ac_try;;
15265 esac
15266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15267   (eval "$ac_link") 2>conftest.er1
15268   ac_status=$?
15269   grep -v '^ *+' conftest.er1 >conftest.err
15270   rm -f conftest.er1
15271   cat conftest.err >&5
15272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } &&
15274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15275   { (case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280   (eval "$ac_try") 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; } &&
15284          { ac_try='test -s conftest$ac_exeext'
15285   { (case "(($ac_try" in
15286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287   *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290   (eval "$ac_try") 2>&5
15291   ac_status=$?
15292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293   (exit $ac_status); }; }; then
15294   ac_cv_lib_termcap_tgetent=yes
15295 else
15296   echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299         ac_cv_lib_termcap_tgetent=no
15300 fi
15301
15302 rm -f core conftest.err conftest.$ac_objext \
15303       conftest$ac_exeext conftest.$ac_ext
15304 LIBS=$ac_check_lib_save_LIBS
15305 fi
15306 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15307 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15308 if test $ac_cv_lib_termcap_tgetent = yes; then
15309    CONS_LIBS="-ltermcap"
15310          CONS_OBJ="conio.o"
15311          CONS_SRC="conio.c"
15312          got_conio="yes"
15313          support_readline=no
15314
15315 cat >>confdefs.h <<\_ACEOF
15316 #define HAVE_CONIO 1
15317 _ACEOF
15318
15319
15320 else
15321    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15322 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15323 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15324   echo $ECHO_N "(cached) $ECHO_C" >&6
15325 else
15326   ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lncurses  $LIBS"
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h.  */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h.  */
15334
15335 /* Override any GCC internal prototype to avoid an error.
15336    Use char because int might match the return type of a GCC
15337    builtin and then its argument prototype would still apply.  */
15338 #ifdef __cplusplus
15339 extern "C"
15340 #endif
15341 char tgetent ();
15342 int
15343 main ()
15344 {
15345 return tgetent ();
15346   ;
15347   return 0;
15348 }
15349 _ACEOF
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15354   *) ac_try_echo=$ac_try;;
15355 esac
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357   (eval "$ac_link") 2>conftest.er1
15358   ac_status=$?
15359   grep -v '^ *+' conftest.er1 >conftest.err
15360   rm -f conftest.er1
15361   cat conftest.err >&5
15362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363   (exit $ac_status); } &&
15364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15365   { (case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370   (eval "$ac_try") 2>&5
15371   ac_status=$?
15372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373   (exit $ac_status); }; } &&
15374          { ac_try='test -s conftest$ac_exeext'
15375   { (case "(($ac_try" in
15376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377   *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380   (eval "$ac_try") 2>&5
15381   ac_status=$?
15382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383   (exit $ac_status); }; }; then
15384   ac_cv_lib_ncurses_tgetent=yes
15385 else
15386   echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.$ac_ext >&5
15388
15389         ac_cv_lib_ncurses_tgetent=no
15390 fi
15391
15392 rm -f core conftest.err conftest.$ac_objext \
15393       conftest$ac_exeext conftest.$ac_ext
15394 LIBS=$ac_check_lib_save_LIBS
15395 fi
15396 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15397 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15398 if test $ac_cv_lib_ncurses_tgetent = yes; then
15399    CONS_LIBS="-lncurses"
15400            CONS_OBJ="conio.o"
15401            CONS_SRC="conio.c"
15402            got_conio="yes"
15403            support_readline=no
15404
15405 cat >>confdefs.h <<\_ACEOF
15406 #define HAVE_CONIO 1
15407 _ACEOF
15408
15409
15410 fi
15411
15412
15413 fi
15414
15415
15416 else
15417
15418
15419 for ac_header in curses.h
15420 do
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426   echo $ECHO_N "(cached) $ECHO_C" >&6
15427 fi
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429                { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15431 else
15432   # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h.  */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h.  */
15441 $ac_includes_default
15442 #include <$ac_header>
15443 _ACEOF
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448   *) ac_try_echo=$ac_try;;
15449 esac
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451   (eval "$ac_compile") 2>conftest.er1
15452   ac_status=$?
15453   grep -v '^ *+' conftest.er1 >conftest.err
15454   rm -f conftest.er1
15455   cat conftest.err >&5
15456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457   (exit $ac_status); } &&
15458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459   { (case "(($ac_try" in
15460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461   *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464   (eval "$ac_try") 2>&5
15465   ac_status=$?
15466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467   (exit $ac_status); }; } &&
15468          { ac_try='test -s conftest.$ac_objext'
15469   { (case "(($ac_try" in
15470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471   *) ac_try_echo=$ac_try;;
15472 esac
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474   (eval "$ac_try") 2>&5
15475   ac_status=$?
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); }; }; then
15478   ac_header_compiler=yes
15479 else
15480   echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15482
15483         ac_header_compiler=no
15484 fi
15485
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6; }
15489
15490 # Is the header present?
15491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15494 /* confdefs.h.  */
15495 _ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h.  */
15499 #include <$ac_header>
15500 _ACEOF
15501 if { (ac_try="$ac_cpp conftest.$ac_ext"
15502 case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15508   ac_status=$?
15509   grep -v '^ *+' conftest.er1 >conftest.err
15510   rm -f conftest.er1
15511   cat conftest.err >&5
15512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513   (exit $ac_status); } >/dev/null; then
15514   if test -s conftest.err; then
15515     ac_cpp_err=$ac_c_preproc_warn_flag
15516     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15517   else
15518     ac_cpp_err=
15519   fi
15520 else
15521   ac_cpp_err=yes
15522 fi
15523 if test -z "$ac_cpp_err"; then
15524   ac_header_preproc=yes
15525 else
15526   echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15528
15529   ac_header_preproc=no
15530 fi
15531
15532 rm -f conftest.err conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534 echo "${ECHO_T}$ac_header_preproc" >&6; }
15535
15536 # So?  What about this header?
15537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15538   yes:no: )
15539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543     ac_header_preproc=yes
15544     ;;
15545   no:yes:* )
15546     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15550     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15553 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15554     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15558
15559     ;;
15560 esac
15561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15564   echo $ECHO_N "(cached) $ECHO_C" >&6
15565 else
15566   eval "$as_ac_Header=\$ac_header_preproc"
15567 fi
15568 ac_res=`eval echo '${'$as_ac_Header'}'`
15569                { echo "$as_me:$LINENO: result: $ac_res" >&5
15570 echo "${ECHO_T}$ac_res" >&6; }
15571
15572 fi
15573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15574   cat >>confdefs.h <<_ACEOF
15575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15576 _ACEOF
15577
15578 fi
15579
15580 done
15581
15582          { echo "$as_me:$LINENO: checking for term.h" >&5
15583 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15584 if test "${ac_cv_header_term_h+set}" = set; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587   cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593 #if HAVE_CURSES_H
15594 #include <curses.h>
15595 #endif
15596
15597
15598 #include <term.h>
15599 _ACEOF
15600 rm -f conftest.$ac_objext
15601 if { (ac_try="$ac_compile"
15602 case "(($ac_try" in
15603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604   *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607   (eval "$ac_compile") 2>conftest.er1
15608   ac_status=$?
15609   grep -v '^ *+' conftest.er1 >conftest.err
15610   rm -f conftest.er1
15611   cat conftest.err >&5
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } &&
15614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15615   { (case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620   (eval "$ac_try") 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; } &&
15624          { ac_try='test -s conftest.$ac_objext'
15625   { (case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_try") 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; }; then
15634   ac_cv_header_term_h=yes
15635 else
15636   echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639         ac_cv_header_term_h=no
15640 fi
15641
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643 fi
15644 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15645 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15646 if test $ac_cv_header_term_h = yes; then
15647    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15648 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15649 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15650   echo $ECHO_N "(cached) $ECHO_C" >&6
15651 else
15652   ac_check_lib_save_LIBS=$LIBS
15653 LIBS="-lcurses  $LIBS"
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660
15661 /* Override any GCC internal prototype to avoid an error.
15662    Use char because int might match the return type of a GCC
15663    builtin and then its argument prototype would still apply.  */
15664 #ifdef __cplusplus
15665 extern "C"
15666 #endif
15667 char tgetent ();
15668 int
15669 main ()
15670 {
15671 return tgetent ();
15672   ;
15673   return 0;
15674 }
15675 _ACEOF
15676 rm -f conftest.$ac_objext conftest$ac_exeext
15677 if { (ac_try="$ac_link"
15678 case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_link") 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } &&
15690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15691   { (case "(($ac_try" in
15692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693   *) ac_try_echo=$ac_try;;
15694 esac
15695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15696   (eval "$ac_try") 2>&5
15697   ac_status=$?
15698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699   (exit $ac_status); }; } &&
15700          { ac_try='test -s conftest$ac_exeext'
15701   { (case "(($ac_try" in
15702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703   *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706   (eval "$ac_try") 2>&5
15707   ac_status=$?
15708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709   (exit $ac_status); }; }; then
15710   ac_cv_lib_curses_tgetent=yes
15711 else
15712   echo "$as_me: failed program was:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15714
15715         ac_cv_lib_curses_tgetent=no
15716 fi
15717
15718 rm -f core conftest.err conftest.$ac_objext \
15719       conftest$ac_exeext conftest.$ac_ext
15720 LIBS=$ac_check_lib_save_LIBS
15721 fi
15722 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15723 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15724 if test $ac_cv_lib_curses_tgetent = yes; then
15725    CONS_LIBS="-lcurses"
15726                    CONS_OBJ="conio.o"
15727                    CONS_SRC="conio.c"
15728                    got_conio="yes"
15729                    support_readline=no
15730
15731 cat >>confdefs.h <<\_ACEOF
15732 #define HAVE_CONIO 1
15733 _ACEOF
15734
15735
15736 fi
15737
15738
15739 else
15740    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15741 fi
15742
15743
15744
15745 fi
15746
15747
15748 fi
15749
15750
15751 # ---------------------------------------------------
15752 # Check for readline support/directory (default off)
15753 # ---------------------------------------------------
15754 # this allows you to turn it completely off
15755 # Check whether --enable-readline was given.
15756 if test "${enable_readline+set}" = set; then
15757   enableval=$enable_readline; if test x$enableval = xno; then
15758     support_readline=no
15759   fi
15760 fi
15761
15762
15763 got_readline="no"
15764 READLINE_SRC=
15765 if test x$support_readline = xyes; then
15766
15767 # Check whether --with-readline was given.
15768 if test "${with_readline+set}" = set; then
15769   withval=$with_readline;
15770         case "$with_readline" in
15771         no) : ;;
15772         yes|*)
15773           if test -f ${with_readline}/readline.h; then
15774              CONS_INC="-I${with_readline}"
15775              CONS_LDFLAGS="-L$with_readline"
15776           elif test -f ${with_readline}/include/readline/readline.h; then
15777              CONS_INC="-I${with_readline}/include/readline"
15778              CONS_LDFLAGS="-L${with_readline}/lib"
15779              with_readline="${with_readline}/include/readline"
15780           else
15781              with_readline="/usr/include/readline"
15782           fi
15783           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15785   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15786 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 fi
15790 ac_res=`eval echo '${'$as_ac_Header'}'`
15791                { echo "$as_me:$LINENO: result: $ac_res" >&5
15792 echo "${ECHO_T}$ac_res" >&6; }
15793 else
15794   # Is the header compilable?
15795 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15796 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15797 cat >conftest.$ac_ext <<_ACEOF
15798 /* confdefs.h.  */
15799 _ACEOF
15800 cat confdefs.h >>conftest.$ac_ext
15801 cat >>conftest.$ac_ext <<_ACEOF
15802 /* end confdefs.h.  */
15803 $ac_includes_default
15804 #include <${with_readline}/readline.h>
15805 _ACEOF
15806 rm -f conftest.$ac_objext
15807 if { (ac_try="$ac_compile"
15808 case "(($ac_try" in
15809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810   *) ac_try_echo=$ac_try;;
15811 esac
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813   (eval "$ac_compile") 2>conftest.er1
15814   ac_status=$?
15815   grep -v '^ *+' conftest.er1 >conftest.err
15816   rm -f conftest.er1
15817   cat conftest.err >&5
15818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819   (exit $ac_status); } &&
15820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15821   { (case "(($ac_try" in
15822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823   *) ac_try_echo=$ac_try;;
15824 esac
15825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15826   (eval "$ac_try") 2>&5
15827   ac_status=$?
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); }; } &&
15830          { ac_try='test -s conftest.$ac_objext'
15831   { (case "(($ac_try" in
15832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15833   *) ac_try_echo=$ac_try;;
15834 esac
15835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15836   (eval "$ac_try") 2>&5
15837   ac_status=$?
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); }; }; then
15840   ac_header_compiler=yes
15841 else
15842   echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.$ac_ext >&5
15844
15845         ac_header_compiler=no
15846 fi
15847
15848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15849 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15850 echo "${ECHO_T}$ac_header_compiler" >&6; }
15851
15852 # Is the header present?
15853 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15854 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15855 cat >conftest.$ac_ext <<_ACEOF
15856 /* confdefs.h.  */
15857 _ACEOF
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h.  */
15861 #include <${with_readline}/readline.h>
15862 _ACEOF
15863 if { (ac_try="$ac_cpp conftest.$ac_ext"
15864 case "(($ac_try" in
15865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15866   *) ac_try_echo=$ac_try;;
15867 esac
15868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15870   ac_status=$?
15871   grep -v '^ *+' conftest.er1 >conftest.err
15872   rm -f conftest.er1
15873   cat conftest.err >&5
15874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875   (exit $ac_status); } >/dev/null; then
15876   if test -s conftest.err; then
15877     ac_cpp_err=$ac_c_preproc_warn_flag
15878     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15879   else
15880     ac_cpp_err=
15881   fi
15882 else
15883   ac_cpp_err=yes
15884 fi
15885 if test -z "$ac_cpp_err"; then
15886   ac_header_preproc=yes
15887 else
15888   echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15890
15891   ac_header_preproc=no
15892 fi
15893
15894 rm -f conftest.err conftest.$ac_ext
15895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15896 echo "${ECHO_T}$ac_header_preproc" >&6; }
15897
15898 # So?  What about this header?
15899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15900   yes:no: )
15901     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15902 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15903     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15904 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15905     ac_header_preproc=yes
15906     ;;
15907   no:yes:* )
15908     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15909 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15910     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15911 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15912     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15913 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15914     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15915 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15917 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15919 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15920
15921     ;;
15922 esac
15923 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15924 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 else
15928   eval "$as_ac_Header=\$ac_header_preproc"
15929 fi
15930 ac_res=`eval echo '${'$as_ac_Header'}'`
15931                { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15933
15934 fi
15935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15936    cat >>confdefs.h <<\_ACEOF
15937 #define HAVE_READLINE 1
15938 _ACEOF
15939
15940                CONS_LIBS="-lreadline -lhistory -ltermcap"
15941                got_readline="yes"
15942
15943 else
15944    echo " "
15945                echo "readline.h not found. readline turned off ..."
15946                echo " "
15947
15948
15949 fi
15950
15951
15952           ;;
15953         esac
15954
15955 else
15956
15957        # check for standard readline library
15958        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15959   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15960 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15961 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 fi
15964 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15965 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15966 else
15967   # Is the header compilable?
15968 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15969 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h.  */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h.  */
15976 $ac_includes_default
15977 #include </usr/include/readline/readline.h>
15978 _ACEOF
15979 rm -f conftest.$ac_objext
15980 if { (ac_try="$ac_compile"
15981 case "(($ac_try" in
15982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983   *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_compile") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } &&
15993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15994   { (case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_try") 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; } &&
16003          { ac_try='test -s conftest.$ac_objext'
16004   { (case "(($ac_try" in
16005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006   *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009   (eval "$ac_try") 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   ac_header_compiler=yes
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018         ac_header_compiler=no
16019 fi
16020
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16023 echo "${ECHO_T}$ac_header_compiler" >&6; }
16024
16025 # Is the header present?
16026 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
16027 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
16028 cat >conftest.$ac_ext <<_ACEOF
16029 /* confdefs.h.  */
16030 _ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h.  */
16034 #include </usr/include/readline/readline.h>
16035 _ACEOF
16036 if { (ac_try="$ac_cpp conftest.$ac_ext"
16037 case "(($ac_try" in
16038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16039   *) ac_try_echo=$ac_try;;
16040 esac
16041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16042   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16043   ac_status=$?
16044   grep -v '^ *+' conftest.er1 >conftest.err
16045   rm -f conftest.er1
16046   cat conftest.err >&5
16047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048   (exit $ac_status); } >/dev/null; then
16049   if test -s conftest.err; then
16050     ac_cpp_err=$ac_c_preproc_warn_flag
16051     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16052   else
16053     ac_cpp_err=
16054   fi
16055 else
16056   ac_cpp_err=yes
16057 fi
16058 if test -z "$ac_cpp_err"; then
16059   ac_header_preproc=yes
16060 else
16061   echo "$as_me: failed program was:" >&5
16062 sed 's/^/| /' conftest.$ac_ext >&5
16063
16064   ac_header_preproc=no
16065 fi
16066
16067 rm -f conftest.err conftest.$ac_ext
16068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16069 echo "${ECHO_T}$ac_header_preproc" >&6; }
16070
16071 # So?  What about this header?
16072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16073   yes:no: )
16074     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16075 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16076     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16077 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16078     ac_header_preproc=yes
16079     ;;
16080   no:yes:* )
16081     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16082 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16083     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16084 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16085     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16086 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16087     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16088 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16089     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16090 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16091     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16092 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16093
16094     ;;
16095 esac
16096 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16097 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16098 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16099   echo $ECHO_N "(cached) $ECHO_C" >&6
16100 else
16101   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16102 fi
16103 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16104 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16105
16106 fi
16107 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16108    cat >>confdefs.h <<\_ACEOF
16109 #define HAVE_READLINE 1
16110 _ACEOF
16111
16112            got_readline="yes"
16113            CONS_INC="-I/usr/include/readline"
16114            CONS_LIBS="-lreadline -ltermcap"
16115
16116 else
16117
16118            # Did not find standard library, so try Bacula's default
16119             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16121   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16122 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16124   echo $ECHO_N "(cached) $ECHO_C" >&6
16125 fi
16126 ac_res=`eval echo '${'$as_ac_Header'}'`
16127                { echo "$as_me:$LINENO: result: $ac_res" >&5
16128 echo "${ECHO_T}$ac_res" >&6; }
16129 else
16130   # Is the header compilable?
16131 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16132 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16133 cat >conftest.$ac_ext <<_ACEOF
16134 /* confdefs.h.  */
16135 _ACEOF
16136 cat confdefs.h >>conftest.$ac_ext
16137 cat >>conftest.$ac_ext <<_ACEOF
16138 /* end confdefs.h.  */
16139 $ac_includes_default
16140 #include <${TOP_DIR}/depkgs/readline/readline.h>
16141 _ACEOF
16142 rm -f conftest.$ac_objext
16143 if { (ac_try="$ac_compile"
16144 case "(($ac_try" in
16145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16146   *) ac_try_echo=$ac_try;;
16147 esac
16148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16149   (eval "$ac_compile") 2>conftest.er1
16150   ac_status=$?
16151   grep -v '^ *+' conftest.er1 >conftest.err
16152   rm -f conftest.er1
16153   cat conftest.err >&5
16154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155   (exit $ac_status); } &&
16156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16157   { (case "(($ac_try" in
16158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159   *) ac_try_echo=$ac_try;;
16160 esac
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162   (eval "$ac_try") 2>&5
16163   ac_status=$?
16164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165   (exit $ac_status); }; } &&
16166          { ac_try='test -s conftest.$ac_objext'
16167   { (case "(($ac_try" in
16168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16169   *) ac_try_echo=$ac_try;;
16170 esac
16171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16172   (eval "$ac_try") 2>&5
16173   ac_status=$?
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); }; }; then
16176   ac_header_compiler=yes
16177 else
16178   echo "$as_me: failed program was:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16180
16181         ac_header_compiler=no
16182 fi
16183
16184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16186 echo "${ECHO_T}$ac_header_compiler" >&6; }
16187
16188 # Is the header present?
16189 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16190 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h.  */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h.  */
16197 #include <${TOP_DIR}/depkgs/readline/readline.h>
16198 _ACEOF
16199 if { (ac_try="$ac_cpp conftest.$ac_ext"
16200 case "(($ac_try" in
16201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16202   *) ac_try_echo=$ac_try;;
16203 esac
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16206   ac_status=$?
16207   grep -v '^ *+' conftest.er1 >conftest.err
16208   rm -f conftest.er1
16209   cat conftest.err >&5
16210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211   (exit $ac_status); } >/dev/null; then
16212   if test -s conftest.err; then
16213     ac_cpp_err=$ac_c_preproc_warn_flag
16214     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16215   else
16216     ac_cpp_err=
16217   fi
16218 else
16219   ac_cpp_err=yes
16220 fi
16221 if test -z "$ac_cpp_err"; then
16222   ac_header_preproc=yes
16223 else
16224   echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227   ac_header_preproc=no
16228 fi
16229
16230 rm -f conftest.err conftest.$ac_ext
16231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16232 echo "${ECHO_T}$ac_header_preproc" >&6; }
16233
16234 # So?  What about this header?
16235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16236   yes:no: )
16237     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16238 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16239     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16240 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16241     ac_header_preproc=yes
16242     ;;
16243   no:yes:* )
16244     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16245 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16246     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16247 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16248     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16249 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16250     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16251 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16252     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16253 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16254     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16255 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16256
16257     ;;
16258 esac
16259 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16260 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16262   echo $ECHO_N "(cached) $ECHO_C" >&6
16263 else
16264   eval "$as_ac_Header=\$ac_header_preproc"
16265 fi
16266 ac_res=`eval echo '${'$as_ac_Header'}'`
16267                { echo "$as_me:$LINENO: result: $ac_res" >&5
16268 echo "${ECHO_T}$ac_res" >&6; }
16269
16270 fi
16271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16272    cat >>confdefs.h <<\_ACEOF
16273 #define HAVE_READLINE 1
16274 _ACEOF
16275
16276                  got_readline="yes"
16277                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16278                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16279                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16280                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16281
16282 else
16283    echo " "
16284                 echo "readline.h not found. readline turned off ..."
16285                 echo " "
16286
16287
16288 fi
16289
16290
16291
16292
16293 fi
16294
16295
16296
16297
16298 fi
16299
16300 fi
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311 # Minimal stuff for readline Makefile configuration
16312 MAKE_SHELL=/bin/sh
16313
16314 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16315 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16316 if test "${ac_cv_header_stat_broken+set}" = set; then
16317   echo $ECHO_N "(cached) $ECHO_C" >&6
16318 else
16319   cat >conftest.$ac_ext <<_ACEOF
16320 /* confdefs.h.  */
16321 _ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h.  */
16325 #include <sys/types.h>
16326 #include <sys/stat.h>
16327
16328 #if defined S_ISBLK && defined S_IFDIR
16329 # if S_ISBLK (S_IFDIR)
16330 You lose.
16331 # endif
16332 #endif
16333
16334 #if defined S_ISBLK && defined S_IFCHR
16335 # if S_ISBLK (S_IFCHR)
16336 You lose.
16337 # endif
16338 #endif
16339
16340 #if defined S_ISLNK && defined S_IFREG
16341 # if S_ISLNK (S_IFREG)
16342 You lose.
16343 # endif
16344 #endif
16345
16346 #if defined S_ISSOCK && defined S_IFREG
16347 # if S_ISSOCK (S_IFREG)
16348 You lose.
16349 # endif
16350 #endif
16351
16352 _ACEOF
16353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16354   $EGREP "You lose" >/dev/null 2>&1; then
16355   ac_cv_header_stat_broken=yes
16356 else
16357   ac_cv_header_stat_broken=no
16358 fi
16359 rm -f conftest*
16360
16361 fi
16362 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16363 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16364 if test $ac_cv_header_stat_broken = yes; then
16365
16366 cat >>confdefs.h <<\_ACEOF
16367 #define STAT_MACROS_BROKEN 1
16368 _ACEOF
16369
16370 fi
16371
16372
16373
16374
16375
16376
16377 ac_header_dirent=no
16378 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16379   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16380 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16381 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16383   echo $ECHO_N "(cached) $ECHO_C" >&6
16384 else
16385   cat >conftest.$ac_ext <<_ACEOF
16386 /* confdefs.h.  */
16387 _ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h.  */
16391 #include <sys/types.h>
16392 #include <$ac_hdr>
16393
16394 int
16395 main ()
16396 {
16397 if ((DIR *) 0)
16398 return 0;
16399   ;
16400   return 0;
16401 }
16402 _ACEOF
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407   *) ac_try_echo=$ac_try;;
16408 esac
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410   (eval "$ac_compile") 2>conftest.er1
16411   ac_status=$?
16412   grep -v '^ *+' conftest.er1 >conftest.err
16413   rm -f conftest.er1
16414   cat conftest.err >&5
16415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416   (exit $ac_status); } &&
16417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418   { (case "(($ac_try" in
16419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420   *) ac_try_echo=$ac_try;;
16421 esac
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423   (eval "$ac_try") 2>&5
16424   ac_status=$?
16425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426   (exit $ac_status); }; } &&
16427          { ac_try='test -s conftest.$ac_objext'
16428   { (case "(($ac_try" in
16429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430   *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433   (eval "$ac_try") 2>&5
16434   ac_status=$?
16435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436   (exit $ac_status); }; }; then
16437   eval "$as_ac_Header=yes"
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442         eval "$as_ac_Header=no"
16443 fi
16444
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 fi
16447 ac_res=`eval echo '${'$as_ac_Header'}'`
16448                { echo "$as_me:$LINENO: result: $ac_res" >&5
16449 echo "${ECHO_T}$ac_res" >&6; }
16450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16451   cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16453 _ACEOF
16454
16455 ac_header_dirent=$ac_hdr; break
16456 fi
16457
16458 done
16459 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16460 if test $ac_header_dirent = dirent.h; then
16461   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16462 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16463 if test "${ac_cv_search_opendir+set}" = set; then
16464   echo $ECHO_N "(cached) $ECHO_C" >&6
16465 else
16466   ac_func_search_save_LIBS=$LIBS
16467 cat >conftest.$ac_ext <<_ACEOF
16468 /* confdefs.h.  */
16469 _ACEOF
16470 cat confdefs.h >>conftest.$ac_ext
16471 cat >>conftest.$ac_ext <<_ACEOF
16472 /* end confdefs.h.  */
16473
16474 /* Override any GCC internal prototype to avoid an error.
16475    Use char because int might match the return type of a GCC
16476    builtin and then its argument prototype would still apply.  */
16477 #ifdef __cplusplus
16478 extern "C"
16479 #endif
16480 char opendir ();
16481 int
16482 main ()
16483 {
16484 return opendir ();
16485   ;
16486   return 0;
16487 }
16488 _ACEOF
16489 for ac_lib in '' dir; do
16490   if test -z "$ac_lib"; then
16491     ac_res="none required"
16492   else
16493     ac_res=-l$ac_lib
16494     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16495   fi
16496   rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (ac_try="$ac_link"
16498 case "(($ac_try" in
16499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500   *) ac_try_echo=$ac_try;;
16501 esac
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503   (eval "$ac_link") 2>conftest.er1
16504   ac_status=$?
16505   grep -v '^ *+' conftest.er1 >conftest.err
16506   rm -f conftest.er1
16507   cat conftest.err >&5
16508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509   (exit $ac_status); } &&
16510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16511   { (case "(($ac_try" in
16512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16513   *) ac_try_echo=$ac_try;;
16514 esac
16515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16516   (eval "$ac_try") 2>&5
16517   ac_status=$?
16518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16519   (exit $ac_status); }; } &&
16520          { ac_try='test -s conftest$ac_exeext'
16521   { (case "(($ac_try" in
16522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523   *) ac_try_echo=$ac_try;;
16524 esac
16525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16526   (eval "$ac_try") 2>&5
16527   ac_status=$?
16528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529   (exit $ac_status); }; }; then
16530   ac_cv_search_opendir=$ac_res
16531 else
16532   echo "$as_me: failed program was:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16534
16535
16536 fi
16537
16538 rm -f core conftest.err conftest.$ac_objext \
16539       conftest$ac_exeext
16540   if test "${ac_cv_search_opendir+set}" = set; then
16541   break
16542 fi
16543 done
16544 if test "${ac_cv_search_opendir+set}" = set; then
16545   :
16546 else
16547   ac_cv_search_opendir=no
16548 fi
16549 rm conftest.$ac_ext
16550 LIBS=$ac_func_search_save_LIBS
16551 fi
16552 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16553 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16554 ac_res=$ac_cv_search_opendir
16555 if test "$ac_res" != no; then
16556   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16557
16558 fi
16559
16560 else
16561   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16562 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16563 if test "${ac_cv_search_opendir+set}" = set; then
16564   echo $ECHO_N "(cached) $ECHO_C" >&6
16565 else
16566   ac_func_search_save_LIBS=$LIBS
16567 cat >conftest.$ac_ext <<_ACEOF
16568 /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573
16574 /* Override any GCC internal prototype to avoid an error.
16575    Use char because int might match the return type of a GCC
16576    builtin and then its argument prototype would still apply.  */
16577 #ifdef __cplusplus
16578 extern "C"
16579 #endif
16580 char opendir ();
16581 int
16582 main ()
16583 {
16584 return opendir ();
16585   ;
16586   return 0;
16587 }
16588 _ACEOF
16589 for ac_lib in '' x; do
16590   if test -z "$ac_lib"; then
16591     ac_res="none required"
16592   else
16593     ac_res=-l$ac_lib
16594     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16595   fi
16596   rm -f conftest.$ac_objext conftest$ac_exeext
16597 if { (ac_try="$ac_link"
16598 case "(($ac_try" in
16599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600   *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603   (eval "$ac_link") 2>conftest.er1
16604   ac_status=$?
16605   grep -v '^ *+' conftest.er1 >conftest.err
16606   rm -f conftest.er1
16607   cat conftest.err >&5
16608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609   (exit $ac_status); } &&
16610          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16611   { (case "(($ac_try" in
16612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613   *) ac_try_echo=$ac_try;;
16614 esac
16615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16616   (eval "$ac_try") 2>&5
16617   ac_status=$?
16618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619   (exit $ac_status); }; } &&
16620          { ac_try='test -s conftest$ac_exeext'
16621   { (case "(($ac_try" in
16622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623   *) ac_try_echo=$ac_try;;
16624 esac
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626   (eval "$ac_try") 2>&5
16627   ac_status=$?
16628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16629   (exit $ac_status); }; }; then
16630   ac_cv_search_opendir=$ac_res
16631 else
16632   echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635
16636 fi
16637
16638 rm -f core conftest.err conftest.$ac_objext \
16639       conftest$ac_exeext
16640   if test "${ac_cv_search_opendir+set}" = set; then
16641   break
16642 fi
16643 done
16644 if test "${ac_cv_search_opendir+set}" = set; then
16645   :
16646 else
16647   ac_cv_search_opendir=no
16648 fi
16649 rm conftest.$ac_ext
16650 LIBS=$ac_func_search_save_LIBS
16651 fi
16652 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16653 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16654 ac_res=$ac_cv_search_opendir
16655 if test "$ac_res" != no; then
16656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16657
16658 fi
16659
16660 fi
16661
16662
16663
16664
16665
16666
16667
16668
16669 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16670 do
16671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16675   echo $ECHO_N "(cached) $ECHO_C" >&6
16676 else
16677   cat >conftest.$ac_ext <<_ACEOF
16678 /* confdefs.h.  */
16679 _ACEOF
16680 cat confdefs.h >>conftest.$ac_ext
16681 cat >>conftest.$ac_ext <<_ACEOF
16682 /* end confdefs.h.  */
16683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16685 #define $ac_func innocuous_$ac_func
16686
16687 /* System header to define __stub macros and hopefully few prototypes,
16688     which can conflict with char $ac_func (); below.
16689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16690     <limits.h> exists even on freestanding compilers.  */
16691
16692 #ifdef __STDC__
16693 # include <limits.h>
16694 #else
16695 # include <assert.h>
16696 #endif
16697
16698 #undef $ac_func
16699
16700 /* Override any GCC internal prototype to avoid an error.
16701    Use char because int might match the return type of a GCC
16702    builtin and then its argument prototype would still apply.  */
16703 #ifdef __cplusplus
16704 extern "C"
16705 #endif
16706 char $ac_func ();
16707 /* The GNU C library defines this for functions which it implements
16708     to always fail with ENOSYS.  Some functions are actually named
16709     something starting with __ and the normal name is an alias.  */
16710 #if defined __stub_$ac_func || defined __stub___$ac_func
16711 choke me
16712 #endif
16713
16714 int
16715 main ()
16716 {
16717 return $ac_func ();
16718   ;
16719   return 0;
16720 }
16721 _ACEOF
16722 rm -f conftest.$ac_objext conftest$ac_exeext
16723 if { (ac_try="$ac_link"
16724 case "(($ac_try" in
16725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16726   *) ac_try_echo=$ac_try;;
16727 esac
16728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16729   (eval "$ac_link") 2>conftest.er1
16730   ac_status=$?
16731   grep -v '^ *+' conftest.er1 >conftest.err
16732   rm -f conftest.er1
16733   cat conftest.err >&5
16734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735   (exit $ac_status); } &&
16736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16737   { (case "(($ac_try" in
16738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16739   *) ac_try_echo=$ac_try;;
16740 esac
16741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16742   (eval "$ac_try") 2>&5
16743   ac_status=$?
16744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745   (exit $ac_status); }; } &&
16746          { ac_try='test -s conftest$ac_exeext'
16747   { (case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_try") 2>&5
16753   ac_status=$?
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); }; }; then
16756   eval "$as_ac_var=yes"
16757 else
16758   echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16760
16761         eval "$as_ac_var=no"
16762 fi
16763
16764 rm -f core conftest.err conftest.$ac_objext \
16765       conftest$ac_exeext conftest.$ac_ext
16766 fi
16767 ac_res=`eval echo '${'$as_ac_var'}'`
16768                { echo "$as_me:$LINENO: result: $ac_res" >&5
16769 echo "${ECHO_T}$ac_res" >&6; }
16770 if test `eval echo '${'$as_ac_var'}'` = yes; then
16771   cat >>confdefs.h <<_ACEOF
16772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16773 _ACEOF
16774
16775 fi
16776 done
16777
16778
16779
16780 for ac_func in nanosleep nl_langinfo
16781 do
16782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16786   echo $ECHO_N "(cached) $ECHO_C" >&6
16787 else
16788   cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h.  */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h.  */
16794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16796 #define $ac_func innocuous_$ac_func
16797
16798 /* System header to define __stub macros and hopefully few prototypes,
16799     which can conflict with char $ac_func (); below.
16800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16801     <limits.h> exists even on freestanding compilers.  */
16802
16803 #ifdef __STDC__
16804 # include <limits.h>
16805 #else
16806 # include <assert.h>
16807 #endif
16808
16809 #undef $ac_func
16810
16811 /* Override any GCC internal prototype to avoid an error.
16812    Use char because int might match the return type of a GCC
16813    builtin and then its argument prototype would still apply.  */
16814 #ifdef __cplusplus
16815 extern "C"
16816 #endif
16817 char $ac_func ();
16818 /* The GNU C library defines this for functions which it implements
16819     to always fail with ENOSYS.  Some functions are actually named
16820     something starting with __ and the normal name is an alias.  */
16821 #if defined __stub_$ac_func || defined __stub___$ac_func
16822 choke me
16823 #endif
16824
16825 int
16826 main ()
16827 {
16828 return $ac_func ();
16829   ;
16830   return 0;
16831 }
16832 _ACEOF
16833 rm -f conftest.$ac_objext conftest$ac_exeext
16834 if { (ac_try="$ac_link"
16835 case "(($ac_try" in
16836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16837   *) ac_try_echo=$ac_try;;
16838 esac
16839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16840   (eval "$ac_link") 2>conftest.er1
16841   ac_status=$?
16842   grep -v '^ *+' conftest.er1 >conftest.err
16843   rm -f conftest.er1
16844   cat conftest.err >&5
16845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16846   (exit $ac_status); } &&
16847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16848   { (case "(($ac_try" in
16849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850   *) ac_try_echo=$ac_try;;
16851 esac
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853   (eval "$ac_try") 2>&5
16854   ac_status=$?
16855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16856   (exit $ac_status); }; } &&
16857          { ac_try='test -s conftest$ac_exeext'
16858   { (case "(($ac_try" in
16859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16860   *) ac_try_echo=$ac_try;;
16861 esac
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863   (eval "$ac_try") 2>&5
16864   ac_status=$?
16865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866   (exit $ac_status); }; }; then
16867   eval "$as_ac_var=yes"
16868 else
16869   echo "$as_me: failed program was:" >&5
16870 sed 's/^/| /' conftest.$ac_ext >&5
16871
16872         eval "$as_ac_var=no"
16873 fi
16874
16875 rm -f core conftest.err conftest.$ac_objext \
16876       conftest$ac_exeext conftest.$ac_ext
16877 fi
16878 ac_res=`eval echo '${'$as_ac_var'}'`
16879                { echo "$as_me:$LINENO: result: $ac_res" >&5
16880 echo "${ECHO_T}$ac_res" >&6; }
16881 if test `eval echo '${'$as_ac_var'}'` = yes; then
16882   cat >>confdefs.h <<_ACEOF
16883 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16884 _ACEOF
16885
16886 fi
16887 done
16888
16889
16890 for ac_header in varargs.h
16891 do
16892 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16894   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16897   echo $ECHO_N "(cached) $ECHO_C" >&6
16898 fi
16899 ac_res=`eval echo '${'$as_ac_Header'}'`
16900                { echo "$as_me:$LINENO: result: $ac_res" >&5
16901 echo "${ECHO_T}$ac_res" >&6; }
16902 else
16903   # Is the header compilable?
16904 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16905 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16906 cat >conftest.$ac_ext <<_ACEOF
16907 /* confdefs.h.  */
16908 _ACEOF
16909 cat confdefs.h >>conftest.$ac_ext
16910 cat >>conftest.$ac_ext <<_ACEOF
16911 /* end confdefs.h.  */
16912 $ac_includes_default
16913 #include <$ac_header>
16914 _ACEOF
16915 rm -f conftest.$ac_objext
16916 if { (ac_try="$ac_compile"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_compile") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } &&
16929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16930   { (case "(($ac_try" in
16931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16932   *) ac_try_echo=$ac_try;;
16933 esac
16934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16935   (eval "$ac_try") 2>&5
16936   ac_status=$?
16937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938   (exit $ac_status); }; } &&
16939          { ac_try='test -s conftest.$ac_objext'
16940   { (case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_try") 2>&5
16946   ac_status=$?
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); }; }; then
16949   ac_header_compiler=yes
16950 else
16951   echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954         ac_header_compiler=no
16955 fi
16956
16957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16959 echo "${ECHO_T}$ac_header_compiler" >&6; }
16960
16961 # Is the header present?
16962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16964 cat >conftest.$ac_ext <<_ACEOF
16965 /* confdefs.h.  */
16966 _ACEOF
16967 cat confdefs.h >>conftest.$ac_ext
16968 cat >>conftest.$ac_ext <<_ACEOF
16969 /* end confdefs.h.  */
16970 #include <$ac_header>
16971 _ACEOF
16972 if { (ac_try="$ac_cpp conftest.$ac_ext"
16973 case "(($ac_try" in
16974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975   *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16979   ac_status=$?
16980   grep -v '^ *+' conftest.er1 >conftest.err
16981   rm -f conftest.er1
16982   cat conftest.err >&5
16983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984   (exit $ac_status); } >/dev/null; then
16985   if test -s conftest.err; then
16986     ac_cpp_err=$ac_c_preproc_warn_flag
16987     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16988   else
16989     ac_cpp_err=
16990   fi
16991 else
16992   ac_cpp_err=yes
16993 fi
16994 if test -z "$ac_cpp_err"; then
16995   ac_header_preproc=yes
16996 else
16997   echo "$as_me: failed program was:" >&5
16998 sed 's/^/| /' conftest.$ac_ext >&5
16999
17000   ac_header_preproc=no
17001 fi
17002
17003 rm -f conftest.err conftest.$ac_ext
17004 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17005 echo "${ECHO_T}$ac_header_preproc" >&6; }
17006
17007 # So?  What about this header?
17008 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17009   yes:no: )
17010     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17011 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17012     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17013 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17014     ac_header_preproc=yes
17015     ;;
17016   no:yes:* )
17017     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17018 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17019     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17020 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17021     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17022 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17023     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17024 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17025     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17026 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17027     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17028 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17029
17030     ;;
17031 esac
17032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035   echo $ECHO_N "(cached) $ECHO_C" >&6
17036 else
17037   eval "$as_ac_Header=\$ac_header_preproc"
17038 fi
17039 ac_res=`eval echo '${'$as_ac_Header'}'`
17040                { echo "$as_me:$LINENO: result: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17042
17043 fi
17044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17045   cat >>confdefs.h <<_ACEOF
17046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17047 _ACEOF
17048
17049 fi
17050
17051 done
17052
17053
17054 # End of readline/conio stuff
17055 # -----------------------------------------------------------------------
17056
17057 # -----------------------------------------------------------------------
17058 #  Check for Python support
17059 #
17060 { echo "$as_me:$LINENO: checking for Python support" >&5
17061 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17062
17063 # Check whether --with-python was given.
17064 if test "${with_python+set}" = set; then
17065   withval=$with_python;
17066   PYTHON_INCDIR=
17067   PYTHON_LIBS=
17068   if test "$withval" != "no"; then
17069      if test "$withval" = "yes"; then
17070         for python_root in /usr /usr/local /usr/sfw; do
17071           for ver in python2.2 python2.3 python2.4 python2.5; do
17072              if test -f $python_root/include/${ver}/Python.h; then
17073                 PYTHON_INCDIR=-I$python_root/include/${ver}
17074                 if test -d $python_root/lib64/${ver}/config; then
17075                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17076                 else
17077                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17078                 fi
17079                 break
17080              fi
17081           done
17082         done
17083         if test x$PYTHON_INCDIR = x; then
17084           if test -f $prefix/include/Python.h; then
17085              PYTHON_INCDIR=-I$prefix/include
17086              if test -d $prefix/lib64/config; then
17087                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17088              else
17089                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17090              fi
17091           else
17092            { echo "$as_me:$LINENO: result: no" >&5
17093 echo "${ECHO_T}no" >&6; }
17094            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17095 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17096    { (exit 1); exit 1; }; }
17097           fi
17098         fi
17099      else
17100         if test -f $withval/Python.h; then
17101            PYTHON_INCDIR=-I$withval
17102            PYTHON_LIBS="-L$withval/config -lpython"
17103         elif test -f $withval/include/Python.h; then
17104            PYTHON_INCDIR=-I$withval/include
17105            if test -d $withval/lib64/config; then
17106               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17107            else
17108               PYTHON_LIBS="-L$withval/lib/config -lpython"
17109            fi
17110         elif test -f $withval/include/python/Python.h; then
17111            PYTHON_INCDIR=-I$withval/include/python
17112            if test -d $withval/lib64/python/config; then
17113               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17114            else
17115               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17116            fi
17117         else
17118            { echo "$as_me:$LINENO: result: no" >&5
17119 echo "${ECHO_T}no" >&6; }
17120            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17121 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17122    { (exit 1); exit 1; }; }
17123         fi
17124      fi
17125      cat >>confdefs.h <<\_ACEOF
17126 #define HAVE_PYTHON 1
17127 _ACEOF
17128
17129      { echo "$as_me:$LINENO: result: yes" >&5
17130 echo "${ECHO_T}yes" >&6; }
17131      support_python=yes
17132      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17133 echo "$as_me: checking for more Python libs" >&6;}
17134      saved_LIBS="$LIBS"; LIBS=
17135      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17136 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17137 if test "${ac_cv_search_shm_open+set}" = set; then
17138   echo $ECHO_N "(cached) $ECHO_C" >&6
17139 else
17140   ac_func_search_save_LIBS=$LIBS
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h.  */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h.  */
17147
17148 /* Override any GCC internal prototype to avoid an error.
17149    Use char because int might match the return type of a GCC
17150    builtin and then its argument prototype would still apply.  */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 char shm_open ();
17155 int
17156 main ()
17157 {
17158 return shm_open ();
17159   ;
17160   return 0;
17161 }
17162 _ACEOF
17163 for ac_lib in '' rt; do
17164   if test -z "$ac_lib"; then
17165     ac_res="none required"
17166   else
17167     ac_res=-l$ac_lib
17168     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17169   fi
17170   rm -f conftest.$ac_objext conftest$ac_exeext
17171 if { (ac_try="$ac_link"
17172 case "(($ac_try" in
17173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17174   *) ac_try_echo=$ac_try;;
17175 esac
17176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17177   (eval "$ac_link") 2>conftest.er1
17178   ac_status=$?
17179   grep -v '^ *+' conftest.er1 >conftest.err
17180   rm -f conftest.er1
17181   cat conftest.err >&5
17182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183   (exit $ac_status); } &&
17184          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17185   { (case "(($ac_try" in
17186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17187   *) ac_try_echo=$ac_try;;
17188 esac
17189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17190   (eval "$ac_try") 2>&5
17191   ac_status=$?
17192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193   (exit $ac_status); }; } &&
17194          { ac_try='test -s conftest$ac_exeext'
17195   { (case "(($ac_try" in
17196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17197   *) ac_try_echo=$ac_try;;
17198 esac
17199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17200   (eval "$ac_try") 2>&5
17201   ac_status=$?
17202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203   (exit $ac_status); }; }; then
17204   ac_cv_search_shm_open=$ac_res
17205 else
17206   echo "$as_me: failed program was:" >&5
17207 sed 's/^/| /' conftest.$ac_ext >&5
17208
17209
17210 fi
17211
17212 rm -f core conftest.err conftest.$ac_objext \
17213       conftest$ac_exeext
17214   if test "${ac_cv_search_shm_open+set}" = set; then
17215   break
17216 fi
17217 done
17218 if test "${ac_cv_search_shm_open+set}" = set; then
17219   :
17220 else
17221   ac_cv_search_shm_open=no
17222 fi
17223 rm conftest.$ac_ext
17224 LIBS=$ac_func_search_save_LIBS
17225 fi
17226 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17227 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17228 ac_res=$ac_cv_search_shm_open
17229 if test "$ac_res" != no; then
17230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17231
17232 fi
17233
17234
17235 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17236 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17237 if test "${ac_cv_lib_util_openpty+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240   ac_check_lib_save_LIBS=$LIBS
17241 LIBS="-lutil  $LIBS"
17242 cat >conftest.$ac_ext <<_ACEOF
17243 /* confdefs.h.  */
17244 _ACEOF
17245 cat confdefs.h >>conftest.$ac_ext
17246 cat >>conftest.$ac_ext <<_ACEOF
17247 /* end confdefs.h.  */
17248
17249 /* Override any GCC internal prototype to avoid an error.
17250    Use char because int might match the return type of a GCC
17251    builtin and then its argument prototype would still apply.  */
17252 #ifdef __cplusplus
17253 extern "C"
17254 #endif
17255 char openpty ();
17256 int
17257 main ()
17258 {
17259 return openpty ();
17260   ;
17261   return 0;
17262 }
17263 _ACEOF
17264 rm -f conftest.$ac_objext conftest$ac_exeext
17265 if { (ac_try="$ac_link"
17266 case "(($ac_try" in
17267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268   *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271   (eval "$ac_link") 2>conftest.er1
17272   ac_status=$?
17273   grep -v '^ *+' conftest.er1 >conftest.err
17274   rm -f conftest.er1
17275   cat conftest.err >&5
17276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277   (exit $ac_status); } &&
17278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17279   { (case "(($ac_try" in
17280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17281   *) ac_try_echo=$ac_try;;
17282 esac
17283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17284   (eval "$ac_try") 2>&5
17285   ac_status=$?
17286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287   (exit $ac_status); }; } &&
17288          { ac_try='test -s conftest$ac_exeext'
17289   { (case "(($ac_try" in
17290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17291   *) ac_try_echo=$ac_try;;
17292 esac
17293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17294   (eval "$ac_try") 2>&5
17295   ac_status=$?
17296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297   (exit $ac_status); }; }; then
17298   ac_cv_lib_util_openpty=yes
17299 else
17300   echo "$as_me: failed program was:" >&5
17301 sed 's/^/| /' conftest.$ac_ext >&5
17302
17303         ac_cv_lib_util_openpty=no
17304 fi
17305
17306 rm -f core conftest.err conftest.$ac_objext \
17307       conftest$ac_exeext conftest.$ac_ext
17308 LIBS=$ac_check_lib_save_LIBS
17309 fi
17310 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17311 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17312 if test $ac_cv_lib_util_openpty = yes; then
17313   cat >>confdefs.h <<_ACEOF
17314 #define HAVE_LIBUTIL 1
17315 _ACEOF
17316
17317   LIBS="-lutil $LIBS"
17318
17319 fi
17320
17321      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17322      LIBS="$saved_LIBS"
17323   else
17324      { echo "$as_me:$LINENO: result: no" >&5
17325 echo "${ECHO_T}no" >&6; }
17326   fi
17327
17328 else
17329
17330   { echo "$as_me:$LINENO: result: no" >&5
17331 echo "${ECHO_T}no" >&6; }
17332
17333 fi
17334
17335
17336
17337
17338 #
17339 # Find where sockets are (especially for Solaris)
17340 # Do this before the TCP Wrappers test since tcp wrappers
17341 # uses the socket library and some linkers are stupid.
17342 #
17343 { echo "$as_me:$LINENO: checking for socket" >&5
17344 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17345 if test "${ac_cv_func_socket+set}" = set; then
17346   echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348   cat >conftest.$ac_ext <<_ACEOF
17349 /* confdefs.h.  */
17350 _ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h.  */
17354 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17355    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17356 #define socket innocuous_socket
17357
17358 /* System header to define __stub macros and hopefully few prototypes,
17359     which can conflict with char socket (); below.
17360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361     <limits.h> exists even on freestanding compilers.  */
17362
17363 #ifdef __STDC__
17364 # include <limits.h>
17365 #else
17366 # include <assert.h>
17367 #endif
17368
17369 #undef socket
17370
17371 /* Override any GCC internal prototype to avoid an error.
17372    Use char because int might match the return type of a GCC
17373    builtin and then its argument prototype would still apply.  */
17374 #ifdef __cplusplus
17375 extern "C"
17376 #endif
17377 char socket ();
17378 /* The GNU C library defines this for functions which it implements
17379     to always fail with ENOSYS.  Some functions are actually named
17380     something starting with __ and the normal name is an alias.  */
17381 #if defined __stub_socket || defined __stub___socket
17382 choke me
17383 #endif
17384
17385 int
17386 main ()
17387 {
17388 return socket ();
17389   ;
17390   return 0;
17391 }
17392 _ACEOF
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397   *) ac_try_echo=$ac_try;;
17398 esac
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400   (eval "$ac_link") 2>conftest.er1
17401   ac_status=$?
17402   grep -v '^ *+' conftest.er1 >conftest.err
17403   rm -f conftest.er1
17404   cat conftest.err >&5
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); } &&
17407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17408   { (case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_try") 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); }; } &&
17417          { ac_try='test -s conftest$ac_exeext'
17418   { (case "(($ac_try" in
17419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420   *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423   (eval "$ac_try") 2>&5
17424   ac_status=$?
17425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426   (exit $ac_status); }; }; then
17427   ac_cv_func_socket=yes
17428 else
17429   echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432         ac_cv_func_socket=no
17433 fi
17434
17435 rm -f core conftest.err conftest.$ac_objext \
17436       conftest$ac_exeext conftest.$ac_ext
17437 fi
17438 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17439 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17440 if test $ac_cv_func_socket = yes; then
17441   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17442 echo "${ECHO_T}using libc's socket" >&6; }
17443 else
17444
17445 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17446 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17447 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17448   echo $ECHO_N "(cached) $ECHO_C" >&6
17449 else
17450   ac_check_lib_save_LIBS=$LIBS
17451 LIBS="-lxnet  $LIBS"
17452 cat >conftest.$ac_ext <<_ACEOF
17453 /* confdefs.h.  */
17454 _ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h.  */
17458
17459 /* Override any GCC internal prototype to avoid an error.
17460    Use char because int might match the return type of a GCC
17461    builtin and then its argument prototype would still apply.  */
17462 #ifdef __cplusplus
17463 extern "C"
17464 #endif
17465 char socket ();
17466 int
17467 main ()
17468 {
17469 return socket ();
17470   ;
17471   return 0;
17472 }
17473 _ACEOF
17474 rm -f conftest.$ac_objext conftest$ac_exeext
17475 if { (ac_try="$ac_link"
17476 case "(($ac_try" in
17477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478   *) ac_try_echo=$ac_try;;
17479 esac
17480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17481   (eval "$ac_link") 2>conftest.er1
17482   ac_status=$?
17483   grep -v '^ *+' conftest.er1 >conftest.err
17484   rm -f conftest.er1
17485   cat conftest.err >&5
17486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487   (exit $ac_status); } &&
17488          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17489   { (case "(($ac_try" in
17490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17491   *) ac_try_echo=$ac_try;;
17492 esac
17493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17494   (eval "$ac_try") 2>&5
17495   ac_status=$?
17496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497   (exit $ac_status); }; } &&
17498          { ac_try='test -s conftest$ac_exeext'
17499   { (case "(($ac_try" in
17500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501   *) ac_try_echo=$ac_try;;
17502 esac
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504   (eval "$ac_try") 2>&5
17505   ac_status=$?
17506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17507   (exit $ac_status); }; }; then
17508   ac_cv_lib_xnet_socket=yes
17509 else
17510   echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513         ac_cv_lib_xnet_socket=no
17514 fi
17515
17516 rm -f core conftest.err conftest.$ac_objext \
17517       conftest$ac_exeext conftest.$ac_ext
17518 LIBS=$ac_check_lib_save_LIBS
17519 fi
17520 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17521 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17522 if test $ac_cv_lib_xnet_socket = yes; then
17523   cat >>confdefs.h <<_ACEOF
17524 #define HAVE_LIBXNET 1
17525 _ACEOF
17526
17527   LIBS="-lxnet $LIBS"
17528
17529 fi
17530
17531
17532 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17533 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17534 if test "${ac_cv_lib_socket_socket+set}" = set; then
17535   echo $ECHO_N "(cached) $ECHO_C" >&6
17536 else
17537   ac_check_lib_save_LIBS=$LIBS
17538 LIBS="-lsocket  $LIBS"
17539 cat >conftest.$ac_ext <<_ACEOF
17540 /* confdefs.h.  */
17541 _ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h.  */
17545
17546 /* Override any GCC internal prototype to avoid an error.
17547    Use char because int might match the return type of a GCC
17548    builtin and then its argument prototype would still apply.  */
17549 #ifdef __cplusplus
17550 extern "C"
17551 #endif
17552 char socket ();
17553 int
17554 main ()
17555 {
17556 return socket ();
17557   ;
17558   return 0;
17559 }
17560 _ACEOF
17561 rm -f conftest.$ac_objext conftest$ac_exeext
17562 if { (ac_try="$ac_link"
17563 case "(($ac_try" in
17564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17565   *) ac_try_echo=$ac_try;;
17566 esac
17567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17568   (eval "$ac_link") 2>conftest.er1
17569   ac_status=$?
17570   grep -v '^ *+' conftest.er1 >conftest.err
17571   rm -f conftest.er1
17572   cat conftest.err >&5
17573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574   (exit $ac_status); } &&
17575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17576   { (case "(($ac_try" in
17577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578   *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581   (eval "$ac_try") 2>&5
17582   ac_status=$?
17583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17584   (exit $ac_status); }; } &&
17585          { ac_try='test -s conftest$ac_exeext'
17586   { (case "(($ac_try" in
17587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17588   *) ac_try_echo=$ac_try;;
17589 esac
17590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17591   (eval "$ac_try") 2>&5
17592   ac_status=$?
17593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594   (exit $ac_status); }; }; then
17595   ac_cv_lib_socket_socket=yes
17596 else
17597   echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17599
17600         ac_cv_lib_socket_socket=no
17601 fi
17602
17603 rm -f core conftest.err conftest.$ac_objext \
17604       conftest$ac_exeext conftest.$ac_ext
17605 LIBS=$ac_check_lib_save_LIBS
17606 fi
17607 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17608 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17609 if test $ac_cv_lib_socket_socket = yes; then
17610   cat >>confdefs.h <<_ACEOF
17611 #define HAVE_LIBSOCKET 1
17612 _ACEOF
17613
17614   LIBS="-lsocket $LIBS"
17615
17616 fi
17617
17618
17619 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17620 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17621 if test "${ac_cv_lib_inet_socket+set}" = set; then
17622   echo $ECHO_N "(cached) $ECHO_C" >&6
17623 else
17624   ac_check_lib_save_LIBS=$LIBS
17625 LIBS="-linet  $LIBS"
17626 cat >conftest.$ac_ext <<_ACEOF
17627 /* confdefs.h.  */
17628 _ACEOF
17629 cat confdefs.h >>conftest.$ac_ext
17630 cat >>conftest.$ac_ext <<_ACEOF
17631 /* end confdefs.h.  */
17632
17633 /* Override any GCC internal prototype to avoid an error.
17634    Use char because int might match the return type of a GCC
17635    builtin and then its argument prototype would still apply.  */
17636 #ifdef __cplusplus
17637 extern "C"
17638 #endif
17639 char socket ();
17640 int
17641 main ()
17642 {
17643 return socket ();
17644   ;
17645   return 0;
17646 }
17647 _ACEOF
17648 rm -f conftest.$ac_objext conftest$ac_exeext
17649 if { (ac_try="$ac_link"
17650 case "(($ac_try" in
17651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17652   *) ac_try_echo=$ac_try;;
17653 esac
17654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17655   (eval "$ac_link") 2>conftest.er1
17656   ac_status=$?
17657   grep -v '^ *+' conftest.er1 >conftest.err
17658   rm -f conftest.er1
17659   cat conftest.err >&5
17660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } &&
17662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17663   { (case "(($ac_try" in
17664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17665   *) ac_try_echo=$ac_try;;
17666 esac
17667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17668   (eval "$ac_try") 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; } &&
17672          { ac_try='test -s conftest$ac_exeext'
17673   { (case "(($ac_try" in
17674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17675   *) ac_try_echo=$ac_try;;
17676 esac
17677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17678   (eval "$ac_try") 2>&5
17679   ac_status=$?
17680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17681   (exit $ac_status); }; }; then
17682   ac_cv_lib_inet_socket=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687         ac_cv_lib_inet_socket=no
17688 fi
17689
17690 rm -f core conftest.err conftest.$ac_objext \
17691       conftest$ac_exeext conftest.$ac_ext
17692 LIBS=$ac_check_lib_save_LIBS
17693 fi
17694 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17695 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17696 if test $ac_cv_lib_inet_socket = yes; then
17697   cat >>confdefs.h <<_ACEOF
17698 #define HAVE_LIBINET 1
17699 _ACEOF
17700
17701   LIBS="-linet $LIBS"
17702
17703 fi
17704
17705 fi
17706
17707
17708
17709 # -----------------------------------------------------------
17710 # Check whether user wants TCP wrappers support (default off)
17711 # -----------------------------------------------------------
17712 TCPW_MSG="no"
17713 WRAPLIBS=""
17714
17715 # Check whether --with-tcp-wrappers was given.
17716 if test "${with_tcp_wrappers+set}" = set; then
17717   withval=$with_tcp_wrappers;
17718     if test "x$withval" != "xno" ; then
17719        saved_LIBS="$LIBS"
17720        LIBS="$saved_LIBS -lwrap"
17721        { echo "$as_me:$LINENO: checking for libwrap" >&5
17722 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17723        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17724 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17725 if test "${ac_cv_search_nanosleep+set}" = set; then
17726   echo $ECHO_N "(cached) $ECHO_C" >&6
17727 else
17728   ac_func_search_save_LIBS=$LIBS
17729 cat >conftest.$ac_ext <<_ACEOF
17730 /* confdefs.h.  */
17731 _ACEOF
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h.  */
17735
17736 /* Override any GCC internal prototype to avoid an error.
17737    Use char because int might match the return type of a GCC
17738    builtin and then its argument prototype would still apply.  */
17739 #ifdef __cplusplus
17740 extern "C"
17741 #endif
17742 char nanosleep ();
17743 int
17744 main ()
17745 {
17746 return nanosleep ();
17747   ;
17748   return 0;
17749 }
17750 _ACEOF
17751 for ac_lib in '' rt; do
17752   if test -z "$ac_lib"; then
17753     ac_res="none required"
17754   else
17755     ac_res=-l$ac_lib
17756     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17757   fi
17758   rm -f conftest.$ac_objext conftest$ac_exeext
17759 if { (ac_try="$ac_link"
17760 case "(($ac_try" in
17761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17762   *) ac_try_echo=$ac_try;;
17763 esac
17764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17765   (eval "$ac_link") 2>conftest.er1
17766   ac_status=$?
17767   grep -v '^ *+' conftest.er1 >conftest.err
17768   rm -f conftest.er1
17769   cat conftest.err >&5
17770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771   (exit $ac_status); } &&
17772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17773   { (case "(($ac_try" in
17774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17775   *) ac_try_echo=$ac_try;;
17776 esac
17777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17778   (eval "$ac_try") 2>&5
17779   ac_status=$?
17780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781   (exit $ac_status); }; } &&
17782          { ac_try='test -s conftest$ac_exeext'
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); }; }; then
17792   ac_cv_search_nanosleep=$ac_res
17793 else
17794   echo "$as_me: failed program was:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17796
17797
17798 fi
17799
17800 rm -f core conftest.err conftest.$ac_objext \
17801       conftest$ac_exeext
17802   if test "${ac_cv_search_nanosleep+set}" = set; then
17803   break
17804 fi
17805 done
17806 if test "${ac_cv_search_nanosleep+set}" = set; then
17807   :
17808 else
17809   ac_cv_search_nanosleep=no
17810 fi
17811 rm conftest.$ac_ext
17812 LIBS=$ac_func_search_save_LIBS
17813 fi
17814 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17815 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17816 ac_res=$ac_cv_search_nanosleep
17817 if test "$ac_res" != no; then
17818   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17819
17820 fi
17821
17822        cat >conftest.$ac_ext <<_ACEOF
17823 /* confdefs.h.  */
17824 _ACEOF
17825 cat confdefs.h >>conftest.$ac_ext
17826 cat >>conftest.$ac_ext <<_ACEOF
17827 /* end confdefs.h.  */
17828  #include <sys/types.h>
17829             #include <tcpd.h>
17830              int deny_severity = 0;
17831              int allow_severity = 0;
17832              struct request_info *req;
17833 int
17834 main ()
17835 {
17836  hosts_access(req);
17837   ;
17838   return 0;
17839 }
17840 _ACEOF
17841 rm -f conftest.$ac_objext conftest$ac_exeext
17842 if { (ac_try="$ac_link"
17843 case "(($ac_try" in
17844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17845   *) ac_try_echo=$ac_try;;
17846 esac
17847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17848   (eval "$ac_link") 2>conftest.er1
17849   ac_status=$?
17850   grep -v '^ *+' conftest.er1 >conftest.err
17851   rm -f conftest.er1
17852   cat conftest.err >&5
17853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854   (exit $ac_status); } &&
17855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17856   { (case "(($ac_try" in
17857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858   *) ac_try_echo=$ac_try;;
17859 esac
17860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17861   (eval "$ac_try") 2>&5
17862   ac_status=$?
17863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864   (exit $ac_status); }; } &&
17865          { ac_try='test -s conftest$ac_exeext'
17866   { (case "(($ac_try" in
17867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17868   *) ac_try_echo=$ac_try;;
17869 esac
17870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17871   (eval "$ac_try") 2>&5
17872   ac_status=$?
17873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874   (exit $ac_status); }; }; then
17875
17876             { echo "$as_me:$LINENO: result: yes" >&5
17877 echo "${ECHO_T}yes" >&6; }
17878             cat >>confdefs.h <<\_ACEOF
17879 #define HAVE_LIBWRAP 1
17880 _ACEOF
17881
17882             TCPW_MSG="yes"
17883             LIBS="$saved_LIBS"
17884             WRAPLIBS="-lwrap"
17885
17886 else
17887   echo "$as_me: failed program was:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17889
17890
17891             LIBS="$saved_LIBS -lwrap -lnsl"
17892             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17893             cat >conftest.$ac_ext <<_ACEOF
17894 /* confdefs.h.  */
17895 _ACEOF
17896 cat confdefs.h >>conftest.$ac_ext
17897 cat >>conftest.$ac_ext <<_ACEOF
17898 /* end confdefs.h.  */
17899  #include <sys/types.h>
17900                  #include <tcpd.h>
17901                  int deny_severity = 0;
17902                  int allow_severity = 0;
17903                  struct request_info *req;
17904 int
17905 main ()
17906 {
17907  hosts_access(req);
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 rm -f conftest.$ac_objext conftest$ac_exeext
17913 if { (ac_try="$ac_link"
17914 case "(($ac_try" in
17915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17916   *) ac_try_echo=$ac_try;;
17917 esac
17918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17919   (eval "$ac_link") 2>conftest.er1
17920   ac_status=$?
17921   grep -v '^ *+' conftest.er1 >conftest.err
17922   rm -f conftest.er1
17923   cat conftest.err >&5
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); } &&
17926          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17927   { (case "(($ac_try" in
17928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929   *) ac_try_echo=$ac_try;;
17930 esac
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932   (eval "$ac_try") 2>&5
17933   ac_status=$?
17934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935   (exit $ac_status); }; } &&
17936          { ac_try='test -s conftest$ac_exeext'
17937   { (case "(($ac_try" in
17938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939   *) ac_try_echo=$ac_try;;
17940 esac
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942   (eval "$ac_try") 2>&5
17943   ac_status=$?
17944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945   (exit $ac_status); }; }; then
17946
17947                  { echo "$as_me:$LINENO: result: yes" >&5
17948 echo "${ECHO_T}yes" >&6; }
17949                  cat >>confdefs.h <<\_ACEOF
17950 #define HAVE_LIBWRAP 1
17951 _ACEOF
17952
17953                  TCPW_MSG="yes"
17954                  LIBS="$saved_LIBS"
17955                  WRAPLIBS="-lwrap"
17956
17957 else
17958   echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17962 echo "$as_me: error: *** libwrap missing" >&2;}
17963    { (exit 1); exit 1; }; }
17964
17965 fi
17966
17967 rm -f core conftest.err conftest.$ac_objext \
17968       conftest$ac_exeext conftest.$ac_ext
17969
17970 fi
17971
17972 rm -f core conftest.err conftest.$ac_objext \
17973       conftest$ac_exeext conftest.$ac_ext
17974     fi
17975
17976
17977 fi
17978
17979
17980 # -----------------------------------------------------------
17981 # Check whether OpenSSL is available
17982 # -----------------------------------------------------------
17983 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17984 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17985
17986 # Check whether --with-openssl was given.
17987 if test "${with_openssl+set}" = set; then
17988   withval=$with_openssl; with_openssl_directory=${withval}
17989 fi
17990
17991
17992 if test "x$with_openssl_directory" != "x"; then
17993         OPENSSL_LIBS="-lssl -lcrypto"
17994         OPENSSL_INC=""
17995
17996         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17997                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17998                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17999         fi
18000
18001         saved_LIBS="${LIBS}"
18002         saved_CFLAGS="${CFLAGS}"
18003         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
18004         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
18005
18006         cat >conftest.$ac_ext <<_ACEOF
18007 /* confdefs.h.  */
18008 _ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h.  */
18012  #include <openssl/ssl.h>
18013 int
18014 main ()
18015 {
18016  CRYPTO_set_id_callback(NULL);
18017   ;
18018   return 0;
18019 }
18020 _ACEOF
18021 rm -f conftest.$ac_objext conftest$ac_exeext
18022 if { (ac_try="$ac_link"
18023 case "(($ac_try" in
18024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18025   *) ac_try_echo=$ac_try;;
18026 esac
18027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18028   (eval "$ac_link") 2>conftest.er1
18029   ac_status=$?
18030   grep -v '^ *+' conftest.er1 >conftest.err
18031   rm -f conftest.er1
18032   cat conftest.err >&5
18033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034   (exit $ac_status); } &&
18035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18036   { (case "(($ac_try" in
18037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18038   *) ac_try_echo=$ac_try;;
18039 esac
18040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18041   (eval "$ac_try") 2>&5
18042   ac_status=$?
18043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); }; } &&
18045          { ac_try='test -s conftest$ac_exeext'
18046   { (case "(($ac_try" in
18047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18048   *) ac_try_echo=$ac_try;;
18049 esac
18050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18051   (eval "$ac_try") 2>&5
18052   ac_status=$?
18053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054   (exit $ac_status); }; }; then
18055
18056                         support_tls="yes"
18057                         support_crypto="yes"
18058
18059 else
18060   echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18062
18063          support_tls="no"
18064
18065 fi
18066
18067 rm -f core conftest.err conftest.$ac_objext \
18068       conftest$ac_exeext conftest.$ac_ext
18069
18070         cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076  #include <openssl/evp.h>
18077 int
18078 main ()
18079 {
18080  EVP_sha512();
18081   ;
18082   return 0;
18083 }
18084 _ACEOF
18085 rm -f conftest.$ac_objext conftest$ac_exeext
18086 if { (ac_try="$ac_link"
18087 case "(($ac_try" in
18088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089   *) ac_try_echo=$ac_try;;
18090 esac
18091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18092   (eval "$ac_link") 2>conftest.er1
18093   ac_status=$?
18094   grep -v '^ *+' conftest.er1 >conftest.err
18095   rm -f conftest.er1
18096   cat conftest.err >&5
18097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098   (exit $ac_status); } &&
18099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18100   { (case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105   (eval "$ac_try") 2>&5
18106   ac_status=$?
18107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108   (exit $ac_status); }; } &&
18109          { ac_try='test -s conftest$ac_exeext'
18110   { (case "(($ac_try" in
18111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18112   *) ac_try_echo=$ac_try;;
18113 esac
18114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18115   (eval "$ac_try") 2>&5
18116   ac_status=$?
18117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118   (exit $ac_status); }; }; then
18119    ac_cv_openssl_sha2="yes"
18120 else
18121   echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124          ac_cv_openssl_sha2="no"
18125
18126 fi
18127
18128 rm -f core conftest.err conftest.$ac_objext \
18129       conftest$ac_exeext conftest.$ac_ext
18130
18131         # Solaris disables greater than 128+ bit encryption in their OpenSSL
18132         # implementation, presumably for export reasons. If 192bit AES
18133         # is available, we assume that we're running with a 'non-export'
18134         # openssl library.
18135         cat >conftest.$ac_ext <<_ACEOF
18136 /* confdefs.h.  */
18137 _ACEOF
18138 cat confdefs.h >>conftest.$ac_ext
18139 cat >>conftest.$ac_ext <<_ACEOF
18140 /* end confdefs.h.  */
18141  #include <openssl/evp.h>
18142 int
18143 main ()
18144 {
18145  EVP_aes_192_cbc();
18146   ;
18147   return 0;
18148 }
18149 _ACEOF
18150 rm -f conftest.$ac_objext conftest$ac_exeext
18151 if { (ac_try="$ac_link"
18152 case "(($ac_try" in
18153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154   *) ac_try_echo=$ac_try;;
18155 esac
18156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18157   (eval "$ac_link") 2>conftest.er1
18158   ac_status=$?
18159   grep -v '^ *+' conftest.er1 >conftest.err
18160   rm -f conftest.er1
18161   cat conftest.err >&5
18162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163   (exit $ac_status); } &&
18164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18165   { (case "(($ac_try" in
18166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167   *) ac_try_echo=$ac_try;;
18168 esac
18169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18170   (eval "$ac_try") 2>&5
18171   ac_status=$?
18172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173   (exit $ac_status); }; } &&
18174          { ac_try='test -s conftest$ac_exeext'
18175   { (case "(($ac_try" in
18176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18177   *) ac_try_echo=$ac_try;;
18178 esac
18179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18180   (eval "$ac_try") 2>&5
18181   ac_status=$?
18182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183   (exit $ac_status); }; }; then
18184    ac_cv_openssl_export="no"
18185 else
18186   echo "$as_me: failed program was:" >&5
18187 sed 's/^/| /' conftest.$ac_ext >&5
18188
18189          ac_cv_openssl_export="yes"
18190
18191 fi
18192
18193 rm -f core conftest.err conftest.$ac_objext \
18194       conftest$ac_exeext conftest.$ac_ext
18195
18196         LIBS="${saved_LIBS}"
18197         CFLAGS="${saved_CFLAGS}"
18198
18199         if test "$support_tls" = "yes"; then
18200
18201 cat >>confdefs.h <<\_ACEOF
18202 #define HAVE_OPENSSL 1
18203 _ACEOF
18204
18205
18206 cat >>confdefs.h <<\_ACEOF
18207 #define HAVE_TLS 1
18208 _ACEOF
18209
18210
18211 cat >>confdefs.h <<\_ACEOF
18212 #define HAVE_CRYPTO 1
18213 _ACEOF
18214
18215         fi
18216
18217         if test "$ac_cv_openssl_sha2" = "yes"; then
18218
18219 cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_SHA2 1
18221 _ACEOF
18222
18223         fi
18224
18225         if test "$ac_cv_openssl_export" = "yes"; then
18226
18227 cat >>confdefs.h <<\_ACEOF
18228 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18229 _ACEOF
18230
18231         fi
18232 else
18233         support_tls="no"
18234         support_crypto="no"
18235         OPENSSL_LIBS=""
18236         OPENSSL_INC=""
18237 fi
18238
18239 { echo "$as_me:$LINENO: result: $support_tls" >&5
18240 echo "${ECHO_T}$support_tls" >&6; }
18241
18242
18243
18244
18245 # -----------------------------------------------------------
18246 # Python and OpenSSL are using dlopen
18247 # -----------------------------------------------------------
18248
18249 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18250    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18251 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18252 if test "${ac_cv_search_dlopen+set}" = set; then
18253   echo $ECHO_N "(cached) $ECHO_C" >&6
18254 else
18255   ac_func_search_save_LIBS=$LIBS
18256 cat >conftest.$ac_ext <<_ACEOF
18257 /* confdefs.h.  */
18258 _ACEOF
18259 cat confdefs.h >>conftest.$ac_ext
18260 cat >>conftest.$ac_ext <<_ACEOF
18261 /* end confdefs.h.  */
18262
18263 /* Override any GCC internal prototype to avoid an error.
18264    Use char because int might match the return type of a GCC
18265    builtin and then its argument prototype would still apply.  */
18266 #ifdef __cplusplus
18267 extern "C"
18268 #endif
18269 char dlopen ();
18270 int
18271 main ()
18272 {
18273 return dlopen ();
18274   ;
18275   return 0;
18276 }
18277 _ACEOF
18278 for ac_lib in '' dl; do
18279   if test -z "$ac_lib"; then
18280     ac_res="none required"
18281   else
18282     ac_res=-l$ac_lib
18283     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18284   fi
18285   rm -f conftest.$ac_objext conftest$ac_exeext
18286 if { (ac_try="$ac_link"
18287 case "(($ac_try" in
18288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289   *) ac_try_echo=$ac_try;;
18290 esac
18291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18292   (eval "$ac_link") 2>conftest.er1
18293   ac_status=$?
18294   grep -v '^ *+' conftest.er1 >conftest.err
18295   rm -f conftest.er1
18296   cat conftest.err >&5
18297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18298   (exit $ac_status); } &&
18299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18300   { (case "(($ac_try" in
18301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18302   *) ac_try_echo=$ac_try;;
18303 esac
18304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18305   (eval "$ac_try") 2>&5
18306   ac_status=$?
18307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18308   (exit $ac_status); }; } &&
18309          { ac_try='test -s conftest$ac_exeext'
18310   { (case "(($ac_try" in
18311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18312   *) ac_try_echo=$ac_try;;
18313 esac
18314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18315   (eval "$ac_try") 2>&5
18316   ac_status=$?
18317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318   (exit $ac_status); }; }; then
18319   ac_cv_search_dlopen=$ac_res
18320 else
18321   echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18323
18324
18325 fi
18326
18327 rm -f core conftest.err conftest.$ac_objext \
18328       conftest$ac_exeext
18329   if test "${ac_cv_search_dlopen+set}" = set; then
18330   break
18331 fi
18332 done
18333 if test "${ac_cv_search_dlopen+set}" = set; then
18334   :
18335 else
18336   ac_cv_search_dlopen=no
18337 fi
18338 rm conftest.$ac_ext
18339 LIBS=$ac_func_search_save_LIBS
18340 fi
18341 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18342 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18343 ac_res=$ac_cv_search_dlopen
18344 if test "$ac_res" != no; then
18345   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18346
18347 fi
18348
18349 fi
18350
18351 # ------------------------------------------
18352 # Where to place working dir
18353 # ------------------------------------------
18354 working_dir=`eval echo ${prefix}/var/bacula/working`
18355
18356 # Check whether --with-working-dir was given.
18357 if test "${with_working_dir+set}" = set; then
18358   withval=$with_working_dir;
18359        if test "x$withval" != "xno" ; then
18360               working_dir=$withval
18361        fi
18362
18363
18364 fi
18365
18366
18367
18368
18369
18370 # ------------------------------------------
18371 # Where to place scriptdir (script files)
18372 # ------------------------------------------
18373 scriptdir=`eval echo ${sysconfdir}`
18374
18375 # Check whether --with-scriptdir was given.
18376 if test "${with_scriptdir+set}" = set; then
18377   withval=$with_scriptdir;
18378        if test "x$withval" != "xno" ; then
18379               scriptdir=$withval
18380        fi
18381
18382
18383 fi
18384
18385
18386
18387
18388
18389 # ------------------------------------------
18390 # Where to send dump email
18391 # ------------------------------------------
18392 dump_email=root@localhost
18393
18394 # Check whether --with-dump-email was given.
18395 if test "${with_dump_email+set}" = set; then
18396   withval=$with_dump_email;
18397        if test "x$withval" != "xno" ; then
18398               dump_email=$withval
18399        fi
18400
18401
18402 fi
18403
18404
18405
18406
18407 # ------------------------------------------
18408 # Where to send job email
18409 # ------------------------------------------
18410 job_email=root@localhost
18411
18412 # Check whether --with-job-email was given.
18413 if test "${with_job_email+set}" = set; then
18414   withval=$with_job_email;
18415        if test "x$withval" != "xno" ; then
18416               job_email=$withval
18417        fi
18418
18419
18420 fi
18421
18422
18423
18424
18425 # ------------------------------------------
18426 # Where to find smtp host
18427 # ------------------------------------------
18428 smtp_host=localhost
18429
18430 # Check whether --with-smtp_host was given.
18431 if test "${with_smtp_host+set}" = set; then
18432   withval=$with_smtp_host;
18433        if test "x$withval" != "xno" ; then
18434               smtp_host=$withval
18435        fi
18436
18437
18438 fi
18439
18440
18441
18442
18443
18444 # ------------------------------------
18445 # Where to place pid files
18446 # ------------------------------------
18447 piddir=/var/run
18448
18449 # Check whether --with-pid-dir was given.
18450 if test "${with_pid_dir+set}" = set; then
18451   withval=$with_pid_dir;
18452         if test "x$withval" != "xno" ; then
18453             piddir=$withval
18454         fi
18455
18456
18457 fi
18458
18459
18460 cat >>confdefs.h <<_ACEOF
18461 #define _PATH_BACULA_PIDDIR "$piddir"
18462 _ACEOF
18463
18464
18465
18466
18467 # ------------------------------------
18468 # Where to place subsys "lock file"
18469 # ------------------------------------
18470 ubsysdir=/var/run/subsys
18471 if test -d /var/run/subsys; then
18472    subsysdir=/var/run/subsys
18473 elif test -d /var/lock/subsys; then
18474    subsysdir=/var/lock/subsys
18475 else
18476    subsysdir=/var/run/subsys
18477 fi
18478
18479 # Check whether --with-subsys-dir was given.
18480 if test "${with_subsys_dir+set}" = set; then
18481   withval=$with_subsys_dir;
18482         if test "x$withval" != "xno" ; then
18483             subsysdir=$withval
18484         fi
18485
18486
18487 fi
18488
18489
18490
18491
18492
18493
18494 # ------------------------------------
18495 # Where to start assigning ports
18496 # ------------------------------------
18497 baseport=9101
18498
18499 # Check whether --with-baseport was given.
18500 if test "${with_baseport+set}" = set; then
18501   withval=$with_baseport;
18502         if test "x$withval" != "xno" ; then
18503              baseport=$withval
18504         fi
18505
18506
18507 fi
18508
18509
18510
18511 dir_port=`expr $baseport`
18512 fd_port=`expr $baseport + 1`
18513 sd_port=`expr $fd_port + 1`
18514
18515
18516
18517
18518
18519
18520 # ------------------------------------------
18521 # Generate passwords
18522 # ------------------------------------------
18523 dir_password=
18524
18525 # Check whether --with-dir-password was given.
18526 if test "${with_dir_password+set}" = set; then
18527   withval=$with_dir_password;
18528        if test "x$withval" != "xno" ; then
18529            dir_password=$withval
18530        fi
18531
18532
18533 fi
18534
18535
18536 if test "x$dir_password" = "x" ; then
18537    if test "x$OPENSSL" = "xnone" ; then
18538       key=`autoconf/randpass 33`
18539    else
18540       key=`openssl rand -base64 33`
18541    fi
18542    dir_password=$key
18543 fi
18544
18545 fd_password=
18546
18547 # Check whether --with-fd-password was given.
18548 if test "${with_fd_password+set}" = set; then
18549   withval=$with_fd_password;
18550        if test "x$withval" != "xno" ; then
18551            fd_password=$withval
18552        fi
18553
18554
18555 fi
18556
18557
18558 if test "x$fd_password" = "x" ; then
18559    if test "x$OPENSSL" = "xnone" ; then
18560       key=`autoconf/randpass 37`
18561    else
18562       key=`openssl rand -base64 33`
18563    fi
18564    fd_password=$key
18565 fi
18566
18567 sd_password=
18568
18569 # Check whether --with-sd-password was given.
18570 if test "${with_sd_password+set}" = set; then
18571   withval=$with_sd_password;
18572        if test "x$withval" != "xno" ; then
18573            sd_password=$withval
18574        fi
18575
18576
18577 fi
18578
18579
18580 if test "x$sd_password" = "x" ; then
18581    if test "x$OPENSSL" = "xnone" ; then
18582       key=`autoconf/randpass 41`
18583    else
18584       key=`openssl rand -base64 33`
18585    fi
18586    sd_password=$key
18587 fi
18588
18589 mon_dir_password=
18590
18591 # Check whether --with-mon-dir-password was given.
18592 if test "${with_mon_dir_password+set}" = set; then
18593   withval=$with_mon_dir_password;
18594        if test "x$withval" != "xno" ; then
18595            mon_dir_password=$withval
18596        fi
18597
18598
18599 fi
18600
18601
18602 if test "x$mon_dir_password" = "x" ; then
18603    if test "x$OPENSSL" = "xnone" ; then
18604       key=`autoconf/randpass 33`
18605    else
18606       key=`openssl rand -base64 33`
18607    fi
18608    mon_dir_password=$key
18609 fi
18610
18611 mon_fd_password=
18612
18613 # Check whether --with-mon-fd-password was given.
18614 if test "${with_mon_fd_password+set}" = set; then
18615   withval=$with_mon_fd_password;
18616        if test "x$withval" != "xno" ; then
18617            mon_fd_password=$withval
18618        fi
18619
18620
18621 fi
18622
18623
18624 if test "x$mon_fd_password" = "x" ; then
18625    if test "x$OPENSSL" = "xnone" ; then
18626       key=`autoconf/randpass 37`
18627    else
18628       key=`openssl rand -base64 33`
18629    fi
18630    mon_fd_password=$key
18631 fi
18632
18633 mon_sd_password=
18634
18635 # Check whether --with-mon-sd-password was given.
18636 if test "${with_mon_sd_password+set}" = set; then
18637   withval=$with_mon_sd_password;
18638        if test "x$withval" != "xno" ; then
18639            mon_sd_password=$withval
18640        fi
18641
18642
18643 fi
18644
18645
18646 if test "x$mon_sd_password" = "x" ; then
18647    if test "x$OPENSSL" = "xnone" ; then
18648       key=`autoconf/randpass 41`
18649    else
18650       key=`openssl rand -base64 33`
18651    fi
18652    mon_sd_password=$key
18653 fi
18654
18655
18656
18657
18658
18659
18660
18661
18662 #
18663 # Pickup any database name
18664 #
18665 db_name=bacula
18666
18667 # Check whether --with-db_name was given.
18668 if test "${with_db_name+set}" = set; then
18669   withval=$with_db_name;
18670         if test "x$withval" != "x" ; then
18671              db_name=$withval
18672         fi
18673
18674
18675 fi
18676
18677
18678
18679 db_user=bacula
18680
18681 # Check whether --with-db_user was given.
18682 if test "${with_db_user+set}" = set; then
18683   withval=$with_db_user;
18684         if test "x$withval" != "x" ; then
18685              db_user=$withval
18686         fi
18687
18688
18689 fi
18690
18691
18692
18693
18694 #
18695 # Handle users and groups for each daemon
18696 #
18697 dir_user=
18698
18699 # Check whether --with-dir_user was given.
18700 if test "${with_dir_user+set}" = set; then
18701   withval=$with_dir_user;
18702         if test "x$withval" != "x" ; then
18703              dir_user=$withval
18704         fi
18705
18706
18707 fi
18708
18709
18710 dir_group=
18711
18712 # Check whether --with-dir_group was given.
18713 if test "${with_dir_group+set}" = set; then
18714   withval=$with_dir_group;
18715         if test "x$withval" != "x" ; then
18716              dir_group=$withval
18717         fi
18718
18719
18720 fi
18721
18722
18723 sd_user=
18724
18725 # Check whether --with-sd_user was given.
18726 if test "${with_sd_user+set}" = set; then
18727   withval=$with_sd_user;
18728         if test "x$withval" != "x" ; then
18729              sd_user=$withval
18730         fi
18731
18732
18733 fi
18734
18735
18736 sd_group=
18737
18738 # Check whether --with-sd_group was given.
18739 if test "${with_sd_group+set}" = set; then
18740   withval=$with_sd_group;
18741         if test "x$withval" != "x" ; then
18742              sd_group=$withval
18743         fi
18744
18745
18746 fi
18747
18748
18749 fd_user=
18750
18751 # Check whether --with-fd_user was given.
18752 if test "${with_fd_user+set}" = set; then
18753   withval=$with_fd_user;
18754         if test "x$withval" != "x" ; then
18755              fd_user=$withval
18756         fi
18757
18758
18759 fi
18760
18761
18762 fd_group=
18763
18764 # Check whether --with-fd_group was given.
18765 if test "${with_fd_group+set}" = set; then
18766   withval=$with_fd_group;
18767         if test "x$withval" != "x" ; then
18768              fd_group=$withval
18769         fi
18770
18771
18772 fi
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782 #
18783 # allow setting default executable permissions
18784 #
18785 SBINPERM=0754
18786
18787 # Check whether --with-sbin-perm was given.
18788 if test "${with_sbin_perm+set}" = set; then
18789   withval=$with_sbin_perm;
18790         if test "x$withval" != "x" ; then
18791             SBINPERM=$withval
18792         fi
18793
18794
18795 fi
18796
18797
18798
18799
18800 # ------------------------------------------------
18801 # Bacula check for various SQL database engines
18802 # ------------------------------------------------
18803 SQL_LIB=
18804
18805 db_found=no
18806 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18807 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18808
18809 # Check whether --with-postgresql was given.
18810 if test "${with_postgresql+set}" = set; then
18811   withval=$with_postgresql;
18812   if test "$withval" != "no"; then
18813       if test "$db_found" = "yes"; then
18814           { echo "$as_me:$LINENO: result: error" >&5
18815 echo "${ECHO_T}error" >&6; }
18816           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18817 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18818    { (exit 1); exit 1; }; };
18819       fi
18820       if test "$withval" = "yes"; then
18821           PG_CONFIG=`which pg_config`
18822           if test -n "$PG_CONFIG";then
18823               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18824               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18825               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18826           elif test -f /usr/local/include/libpq-fe.h; then
18827               POSTGRESQL_INCDIR=/usr/local/include
18828               if test -d /usr/local/lib64; then
18829                  POSTGRESQL_LIBDIR=/usr/local/lib64
18830               else
18831                  POSTGRESQL_LIBDIR=/usr/local/lib
18832               fi
18833               POSTGRESQL_BINDIR=/usr/local/bin
18834           elif test -f /usr/include/libpq-fe.h; then
18835               POSTGRESQL_INCDIR=/usr/include
18836               if test -d /usr/lib64; then
18837                  POSTGRESQL_LIBDIR=/usr/lib64
18838               else
18839                  POSTGRESQL_LIBDIR=/usr/lib
18840               fi
18841               POSTGRESQL_BINDIR=/usr/bin
18842           elif test -f /usr/include/pgsql/libpq-fe.h; then
18843               POSTGRESQL_INCDIR=/usr/include/pgsql
18844               if test -d /usr/lib64/pgsql; then
18845                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18846               else
18847                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18848               fi
18849               POSTGRESQL_BINDIR=/usr/bin
18850           elif test -f /usr/include/postgresql/libpq-fe.h; then
18851               POSTGRESQL_INCDIR=/usr/include/postgresql
18852               if test -d /usr/lib64/postgresql; then
18853                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18854               else
18855                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18856               fi
18857               POSTGRESQL_BINDIR=/usr/bin
18858           else
18859               { echo "$as_me:$LINENO: result: no" >&5
18860 echo "${ECHO_T}no" >&6; }
18861               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18862 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18863    { (exit 1); exit 1; }; }
18864           fi
18865       elif test -f $withval/include/libpq-fe.h; then
18866           POSTGRESQL_INCDIR=$withval/include
18867           POSTGRESQL_LIBDIR=$withval/lib
18868           POSTGRESQL_BINDIR=$withval/bin
18869       elif test -f $withval/include/postgresql/libpq-fe.h; then
18870           POSTGRESQL_INCDIR=$withval/include/postgresql
18871      if test -d $withval/lib64; then
18872          POSTGRESQL_LIBDIR=$withval/lib64
18873      else
18874          POSTGRESQL_LIBDIR=$withval/lib
18875      fi
18876           POSTGRESQL_BINDIR=$withval/bin
18877       else
18878           { echo "$as_me:$LINENO: result: no" >&5
18879 echo "${ECHO_T}no" >&6; }
18880           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18881 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18882    { (exit 1); exit 1; }; }
18883       fi
18884       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18885       { echo "$as_me:$LINENO: checking for crypt" >&5
18886 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18887 if test "${ac_cv_func_crypt+set}" = set; then
18888   echo $ECHO_N "(cached) $ECHO_C" >&6
18889 else
18890   cat >conftest.$ac_ext <<_ACEOF
18891 /* confdefs.h.  */
18892 _ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h.  */
18896 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18897    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18898 #define crypt innocuous_crypt
18899
18900 /* System header to define __stub macros and hopefully few prototypes,
18901     which can conflict with char crypt (); below.
18902     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18903     <limits.h> exists even on freestanding compilers.  */
18904
18905 #ifdef __STDC__
18906 # include <limits.h>
18907 #else
18908 # include <assert.h>
18909 #endif
18910
18911 #undef crypt
18912
18913 /* Override any GCC internal prototype to avoid an error.
18914    Use char because int might match the return type of a GCC
18915    builtin and then its argument prototype would still apply.  */
18916 #ifdef __cplusplus
18917 extern "C"
18918 #endif
18919 char crypt ();
18920 /* The GNU C library defines this for functions which it implements
18921     to always fail with ENOSYS.  Some functions are actually named
18922     something starting with __ and the normal name is an alias.  */
18923 #if defined __stub_crypt || defined __stub___crypt
18924 choke me
18925 #endif
18926
18927 int
18928 main ()
18929 {
18930 return crypt ();
18931   ;
18932   return 0;
18933 }
18934 _ACEOF
18935 rm -f conftest.$ac_objext conftest$ac_exeext
18936 if { (ac_try="$ac_link"
18937 case "(($ac_try" in
18938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18939   *) ac_try_echo=$ac_try;;
18940 esac
18941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18942   (eval "$ac_link") 2>conftest.er1
18943   ac_status=$?
18944   grep -v '^ *+' conftest.er1 >conftest.err
18945   rm -f conftest.er1
18946   cat conftest.err >&5
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); } &&
18949          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18950   { (case "(($ac_try" in
18951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952   *) ac_try_echo=$ac_try;;
18953 esac
18954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18955   (eval "$ac_try") 2>&5
18956   ac_status=$?
18957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958   (exit $ac_status); }; } &&
18959          { ac_try='test -s conftest$ac_exeext'
18960   { (case "(($ac_try" in
18961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962   *) ac_try_echo=$ac_try;;
18963 esac
18964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18965   (eval "$ac_try") 2>&5
18966   ac_status=$?
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); }; }; then
18969   ac_cv_func_crypt=yes
18970 else
18971   echo "$as_me: failed program was:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18973
18974         ac_cv_func_crypt=no
18975 fi
18976
18977 rm -f core conftest.err conftest.$ac_objext \
18978       conftest$ac_exeext conftest.$ac_ext
18979 fi
18980 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18981 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18982 if test $ac_cv_func_crypt = yes; then
18983   :
18984 else
18985   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18986 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18987 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18988   echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990   ac_check_lib_save_LIBS=$LIBS
18991 LIBS="-lcrypt  $LIBS"
18992 cat >conftest.$ac_ext <<_ACEOF
18993 /* confdefs.h.  */
18994 _ACEOF
18995 cat confdefs.h >>conftest.$ac_ext
18996 cat >>conftest.$ac_ext <<_ACEOF
18997 /* end confdefs.h.  */
18998
18999 /* Override any GCC internal prototype to avoid an error.
19000    Use char because int might match the return type of a GCC
19001    builtin and then its argument prototype would still apply.  */
19002 #ifdef __cplusplus
19003 extern "C"
19004 #endif
19005 char crypt ();
19006 int
19007 main ()
19008 {
19009 return crypt ();
19010   ;
19011   return 0;
19012 }
19013 _ACEOF
19014 rm -f conftest.$ac_objext conftest$ac_exeext
19015 if { (ac_try="$ac_link"
19016 case "(($ac_try" in
19017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018   *) ac_try_echo=$ac_try;;
19019 esac
19020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19021   (eval "$ac_link") 2>conftest.er1
19022   ac_status=$?
19023   grep -v '^ *+' conftest.er1 >conftest.err
19024   rm -f conftest.er1
19025   cat conftest.err >&5
19026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027   (exit $ac_status); } &&
19028          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19029   { (case "(($ac_try" in
19030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031   *) ac_try_echo=$ac_try;;
19032 esac
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034   (eval "$ac_try") 2>&5
19035   ac_status=$?
19036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037   (exit $ac_status); }; } &&
19038          { ac_try='test -s conftest$ac_exeext'
19039   { (case "(($ac_try" in
19040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041   *) ac_try_echo=$ac_try;;
19042 esac
19043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19044   (eval "$ac_try") 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; }; then
19048   ac_cv_lib_crypt_crypt=yes
19049 else
19050   echo "$as_me: failed program was:" >&5
19051 sed 's/^/| /' conftest.$ac_ext >&5
19052
19053         ac_cv_lib_crypt_crypt=no
19054 fi
19055
19056 rm -f core conftest.err conftest.$ac_objext \
19057       conftest$ac_exeext conftest.$ac_ext
19058 LIBS=$ac_check_lib_save_LIBS
19059 fi
19060 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19061 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19062 if test $ac_cv_lib_crypt_crypt = yes; then
19063   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19064 fi
19065
19066 fi
19067
19068       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19069       SQL_LFLAGS=$POSTGRESQL_LFLAGS
19070       SQL_BINDIR=$POSTGRESQL_BINDIR
19071       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19072
19073       cat >>confdefs.h <<\_ACEOF
19074 #define HAVE_POSTGRESQL 1
19075 _ACEOF
19076
19077       { echo "$as_me:$LINENO: result: yes" >&5
19078 echo "${ECHO_T}yes" >&6; }
19079       db_found=yes
19080       support_postgresql=yes
19081       db_type=PostgreSQL
19082       DB_TYPE=postgresql
19083   else
19084       { echo "$as_me:$LINENO: result: no" >&5
19085 echo "${ECHO_T}no" >&6; }
19086   fi
19087
19088 else
19089
19090   { echo "$as_me:$LINENO: result: no" >&5
19091 echo "${ECHO_T}no" >&6; }
19092
19093 fi
19094
19095
19096
19097
19098
19099
19100
19101
19102 db_found=no
19103 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19104 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19105
19106 # Check whether --with-mysql was given.
19107 if test "${with_mysql+set}" = set; then
19108   withval=$with_mysql;
19109   if test "$withval" != "no"; then
19110         if test "$withval" = "yes"; then
19111            if test -f /usr/local/mysql/include/mysql/mysql.h; then
19112                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
19113                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19114                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19115                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19116                    else
19117                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19118                    fi
19119                    MYSQL_BINDIR=/usr/local/mysql/bin
19120            elif test -f /usr/include/mysql/mysql.h; then
19121                    MYSQL_INCDIR=/usr/include/mysql
19122                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19123                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19124                            MYSQL_LIBDIR=/usr/lib64/mysql
19125                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19126                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19127                            MYSQL_LIBDIR=/usr/lib/mysql
19128                    else
19129                            MYSQL_LIBDIR=/usr/lib
19130                    fi
19131                    MYSQL_BINDIR=/usr/bin
19132            elif test -f /usr/include/mysql.h; then
19133                    MYSQL_INCDIR=/usr/include
19134                    if test -f /usr/lib64/libmysqlclient_r.a \
19135                         -o -f /usr/lib64/libmysqlclient_r.so; then
19136                            MYSQL_LIBDIR=/usr/lib64
19137                    else
19138                            MYSQL_LIBDIR=/usr/lib
19139                    fi
19140                    MYSQL_BINDIR=/usr/bin
19141            elif test -f /usr/local/include/mysql/mysql.h; then
19142                    MYSQL_INCDIR=/usr/local/include/mysql
19143                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19144                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19145                            MYSQL_LIBDIR=/usr/local/lib64/mysql
19146                    else
19147                            MYSQL_LIBDIR=/usr/local/lib/mysql
19148                    fi
19149                    MYSQL_BINDIR=/usr/local/bin
19150            elif test -f /usr/local/include/mysql.h; then
19151                    MYSQL_INCDIR=/usr/local/include
19152                    if test -f /usr/local/lib64/libmysqlclient_r.a \
19153                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
19154                            MYSQL_LIBDIR=/usr/local/lib64
19155                    else
19156                            MYSQL_LIBDIR=/usr/local/lib
19157                    fi
19158                    MYSQL_BINDIR=/usr/local/bin
19159            else
19160               { echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6; }
19162               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19163 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19164    { (exit 1); exit 1; }; }
19165            fi
19166         else
19167            if test -f $withval/include/mysql/mysql.h; then
19168               MYSQL_INCDIR=$withval/include/mysql
19169               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19170                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19171                  MYSQL_LIBDIR=$withval/lib64/mysql
19172               else
19173                  MYSQL_LIBDIR=$withval/lib/mysql
19174                  # Solaris ...
19175                  if test -f $withval/lib/libmysqlclient_r.so; then
19176                     MYSQL_LIBDIR=$withval/lib
19177                  fi
19178               fi
19179               MYSQL_BINDIR=$withval/bin
19180            elif test -f $withval/include/mysql.h; then
19181               MYSQL_INCDIR=$withval/include
19182               if test -f $withval/lib64/libmysqlclient_r.a \
19183                    -o -f $withval/lib64/libmysqlclient_r.so; then
19184                  MYSQL_LIBDIR=$withval/lib64
19185               else
19186                  MYSQL_LIBDIR=$withval/lib
19187               fi
19188               MYSQL_BINDIR=$withval/bin
19189            else
19190               { echo "$as_me:$LINENO: result: no" >&5
19191 echo "${ECHO_T}no" >&6; }
19192               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19193 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19194    { (exit 1); exit 1; }; }
19195            fi
19196         fi
19197     SQL_INCLUDE=-I$MYSQL_INCDIR
19198     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19199          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19200        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19201        cat >>confdefs.h <<\_ACEOF
19202 #define HAVE_THREAD_SAFE_MYSQL 1
19203 _ACEOF
19204
19205     fi
19206     SQL_BINDIR=$MYSQL_BINDIR
19207     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19208
19209     cat >>confdefs.h <<\_ACEOF
19210 #define HAVE_MYSQL 1
19211 _ACEOF
19212
19213     { echo "$as_me:$LINENO: result: yes" >&5
19214 echo "${ECHO_T}yes" >&6; }
19215     db_found=yes
19216     support_mysql=yes
19217     db_type=MySQL
19218     DB_TYPE=mysql
19219
19220   else
19221         { echo "$as_me:$LINENO: result: no" >&5
19222 echo "${ECHO_T}no" >&6; }
19223   fi
19224
19225
19226 fi
19227
19228
19229
19230 # Check whether --with-embedded-mysql was given.
19231 if test "${with_embedded_mysql+set}" = set; then
19232   withval=$with_embedded_mysql;
19233   if test "$withval" != "no"; then
19234         if test "$withval" = "yes"; then
19235                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19236                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19237                         if test -d /usr/local/mysql/lib64/mysql; then
19238                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19239                         else
19240                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19241                         fi
19242                         MYSQL_BINDIR=/usr/local/mysql/bin
19243                 elif test -f /usr/include/mysql/mysql.h; then
19244                         MYSQL_INCDIR=/usr/include/mysql
19245                         if test -d /usr/lib64/mysql; then
19246                                 MYSQL_LIBDIR=/usr/lib64/mysql
19247                         else
19248                                 MYSQL_LIBDIR=/usr/lib/mysql
19249                         fi
19250                         MYSQL_BINDIR=/usr/bin
19251                 elif test -f /usr/include/mysql.h; then
19252                         MYSQL_INCDIR=/usr/include
19253                         if test -d /usr/lib64; then
19254                                 MYSQL_LIBDIR=/usr/lib64
19255                         else
19256                                 MYSQL_LIBDIR=/usr/lib
19257                         fi
19258                         MYSQL_BINDIR=/usr/bin
19259                 elif test -f /usr/local/include/mysql/mysql.h; then
19260                         MYSQL_INCDIR=/usr/local/include/mysql
19261                         if test -d /usr/local/lib64/mysql; then
19262                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19263                         else
19264                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19265                         fi
19266                         MYSQL_BINDIR=/usr/local/bin
19267                 elif test -f /usr/local/include/mysql.h; then
19268                         MYSQL_INCDIR=/usr/local/include
19269                         if test -d /usr/local/lib64; then
19270                                 MYSQL_LIBDIR=/usr/local/lib64
19271                         else
19272                                 MYSQL_LIBDIR=/usr/local/lib
19273                         fi
19274                         MYSQL_BINDIR=/usr/local/bin
19275                 else
19276                    { echo "$as_me:$LINENO: result: no" >&5
19277 echo "${ECHO_T}no" >&6; }
19278                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19279 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19280    { (exit 1); exit 1; }; }
19281                 fi
19282         else
19283                 if test -f $withval/include/mysql/mysql.h; then
19284                         MYSQL_INCDIR=$withval/include/mysql
19285                         if test -d $withval/lib64/mysql; then
19286                                 MYSQL_LIBDIR=$withval/lib64/mysql
19287                         else
19288                                 MYSQL_LIBDIR=$withval/lib/mysql
19289                         fi
19290                         MYSQL_BINDIR=$withval/bin
19291                 elif test -f $withval/include/mysql.h; then
19292                         MYSQL_INCDIR=$withval/include
19293                         if test -d $withval/lib64; then
19294                                 MYSQL_LIBDIR=$withval/lib64
19295                         else
19296                                 MYSQL_LIBDIR=$withval/lib
19297                         fi
19298                         MYSQL_BINDIR=$withval/bin
19299                 else
19300                    { echo "$as_me:$LINENO: result: no" >&5
19301 echo "${ECHO_T}no" >&6; }
19302                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19303 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19304    { (exit 1); exit 1; }; }
19305                 fi
19306         fi
19307     SQL_INCLUDE=-I$MYSQL_INCDIR
19308     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19309     SQL_BINDIR=$MYSQL_BINDIR
19310     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19311
19312     cat >>confdefs.h <<\_ACEOF
19313 #define HAVE_MYSQL 1
19314 _ACEOF
19315
19316     cat >>confdefs.h <<\_ACEOF
19317 #define HAVE_EMBEDDED_MYSQL 1
19318 _ACEOF
19319
19320     { echo "$as_me:$LINENO: result: yes" >&5
19321 echo "${ECHO_T}yes" >&6; }
19322     db_found=yes
19323     support_mysql=yes
19324     db_type=MySQL
19325     DB_TYPE=mysql
19326
19327   else
19328         { echo "$as_me:$LINENO: result: no" >&5
19329 echo "${ECHO_T}no" >&6; }
19330   fi
19331
19332
19333 fi
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344 db_found=no
19345 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19346 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19347
19348 # Check whether --with-sqlite3 was given.
19349 if test "${with_sqlite3+set}" = set; then
19350   withval=$with_sqlite3;
19351   if test "$withval" != "no"; then
19352      if test "$withval" = "yes"; then
19353         if test -f /usr/local/include/sqlite3.h; then
19354            SQLITE_INCDIR=/usr/local/include
19355            if test -d /usr/local/lib64; then
19356               SQLITE_LIBDIR=/usr/local/lib64
19357            else
19358               SQLITE_LIBDIR=/usr/local/lib
19359            fi
19360            SQLITE_BINDIR=/usr/local/bin
19361         elif test -f /usr/include/sqlite3.h; then
19362            SQLITE_INCDIR=/usr/include
19363            if test -d /usr/lib64; then
19364               SQLITE_LIBDIR=/usr/lib64
19365            else
19366               SQLITE_LIBDIR=/usr/lib
19367            fi
19368            SQLITE_BINDIR=/usr/bin
19369         elif test -f $prefix/include/sqlite3.h; then
19370            SQLITE_INCDIR=$prefix/include
19371            if test -d $prefix/lib64; then
19372               SQLITE_LIBDIR=$prefix/lib64
19373            else
19374               SQLITE_LIBDIR=$prefix/lib
19375            fi
19376            SQLITE_BINDIR=$prefix/bin
19377         else
19378            { echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6; }
19380            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19381 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19382    { (exit 1); exit 1; }; }
19383         fi
19384      else
19385         if test -f $withval/sqlite3.h; then
19386            SQLITE_INCDIR=$withval
19387            SQLITE_LIBDIR=$withval
19388            SQLITE_BINDIR=$withval
19389         elif test -f $withval/include/sqlite3.h; then
19390            SQLITE_INCDIR=$withval/include
19391            if test -d $withval/lib64; then
19392               SQLITE_LIBDIR=$withval/lib64
19393            else
19394               SQLITE_LIBDIR=$withval/lib
19395            fi
19396            SQLITE_BINDIR=$withval/bin
19397         else
19398            { echo "$as_me:$LINENO: result: no" >&5
19399 echo "${ECHO_T}no" >&6; }
19400            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19401 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19402    { (exit 1); exit 1; }; }
19403         fi
19404      fi
19405      SQL_INCLUDE=-I$SQLITE_INCDIR
19406      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19407      SQL_BINDIR=$SQLITE_BINDIR
19408      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19409
19410      cat >>confdefs.h <<\_ACEOF
19411 #define HAVE_SQLITE3 1
19412 _ACEOF
19413
19414      { echo "$as_me:$LINENO: result: yes" >&5
19415 echo "${ECHO_T}yes" >&6; }
19416      db_found=yes
19417      support_sqlite3=yes
19418      db_type=SQLite3
19419      DB_TYPE=sqlite3
19420
19421   else
19422      { echo "$as_me:$LINENO: result: no" >&5
19423 echo "${ECHO_T}no" >&6; }
19424   fi
19425
19426 else
19427
19428   { echo "$as_me:$LINENO: result: no" >&5
19429 echo "${ECHO_T}no" >&6; }
19430
19431 fi
19432
19433
19434
19435
19436
19437
19438
19439
19440 db_found=no
19441 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19442 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19443
19444 # Check whether --with-sqlite was given.
19445 if test "${with_sqlite+set}" = set; then
19446   withval=$with_sqlite;
19447   if test "$withval" != "no"; then
19448      if test "$withval" = "yes"; then
19449         if test -f /usr/local/include/sqlite.h; then
19450            SQLITE_INCDIR=/usr/local/include
19451            if test -d /usr/local/lib64; then
19452               SQLITE_LIBDIR=/usr/local/lib64
19453            else
19454               SQLITE_LIBDIR=/usr/local/lib
19455            fi
19456            SQLITE_BINDIR=/usr/local/bin
19457         elif test -f /usr/include/sqlite.h; then
19458            SQLITE_INCDIR=/usr/include
19459            if test -d /usr/lib64; then
19460               SQLITE_LIBDIR=/usr/lib64
19461            else
19462               SQLITE_LIBDIR=/usr/lib
19463            fi
19464            SQLITE_BINDIR=/usr/bin
19465         elif test -f $prefix/include/sqlite.h; then
19466            SQLITE_INCDIR=$prefix/include
19467            if test -d $prefix/lib64; then
19468               SQLITE_LIBDIR=$prefix/lib64
19469            else
19470               SQLITE_LIBDIR=$prefix/lib
19471            fi
19472            SQLITE_BINDIR=$prefix/bin
19473         else
19474            { echo "$as_me:$LINENO: result: no" >&5
19475 echo "${ECHO_T}no" >&6; }
19476            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19477 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19478    { (exit 1); exit 1; }; }
19479         fi
19480      else
19481         if test -f $withval/sqlite.h; then
19482            SQLITE_INCDIR=$withval
19483            SQLITE_LIBDIR=$withval
19484            SQLITE_BINDIR=$withval
19485         elif test -f $withval/include/sqlite.h; then
19486            SQLITE_INCDIR=$withval/include
19487            if test -d $withval/lib64; then
19488               SQLITE_LIBDIR=$withval/lib64
19489            else
19490               SQLITE_LIBDIR=$withval/lib
19491            fi
19492            SQLITE_BINDIR=$withval/bin
19493         else
19494            { echo "$as_me:$LINENO: result: no" >&5
19495 echo "${ECHO_T}no" >&6; }
19496            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19497 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19498    { (exit 1); exit 1; }; }
19499         fi
19500      fi
19501      SQL_INCLUDE=-I$SQLITE_INCDIR
19502      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19503      SQL_BINDIR=$SQLITE_BINDIR
19504      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19505
19506      cat >>confdefs.h <<\_ACEOF
19507 #define HAVE_SQLITE 1
19508 _ACEOF
19509
19510      { echo "$as_me:$LINENO: result: yes" >&5
19511 echo "${ECHO_T}yes" >&6; }
19512      db_found=yes
19513      support_sqlite=yes
19514      db_type=SQLite
19515      DB_TYPE=sqlite
19516
19517   else
19518      { echo "$as_me:$LINENO: result: no" >&5
19519 echo "${ECHO_T}no" >&6; }
19520   fi
19521
19522 else
19523
19524   { echo "$as_me:$LINENO: result: no" >&5
19525 echo "${ECHO_T}no" >&6; }
19526
19527 fi
19528
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538 # -------------------------------------------
19539 # enable batch attribute DB insert (default on)
19540 # -------------------------------------------
19541 support_batch_insert=no
19542 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19543 pkg=$?
19544 if test $pkg = 0; then
19545    support_batch_insert=yes
19546    # Check whether --enable-batch-insert was given.
19547 if test "${enable_batch_insert+set}" = set; then
19548   enableval=$enable_batch_insert; if test x$enableval = xno; then
19549        support_batch_insert=no
19550       else
19551        support_batch_insert=yes
19552      fi
19553 fi
19554
19555 fi
19556
19557 if test $support_batch_insert = yes ; then
19558
19559 cat >>confdefs.h <<\_ACEOF
19560 #define HAVE_BATCH_FILE_INSERT 1
19561 _ACEOF
19562
19563 fi
19564
19565
19566 cat >>confdefs.h <<\_ACEOF
19567 #define PROTOTYPES 1
19568 _ACEOF
19569
19570
19571 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19572     if test -z "$CCOPTS"; then
19573         CCOPTS='-g -O2 -Wall'
19574     fi
19575     CFLAGS="$CCOPTS"
19576 fi
19577
19578
19579
19580
19581 largefile_support="no"
19582
19583    # Check whether --enable-largefile was given.
19584 if test "${enable_largefile+set}" = set; then
19585   enableval=$enable_largefile;
19586 fi
19587
19588    if test "$enable_largefile" != no; then
19589      if test -n "$ac_tool_prefix"; then
19590   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19591 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19594 if test "${ac_cv_prog_GETCONF+set}" = set; then
19595   echo $ECHO_N "(cached) $ECHO_C" >&6
19596 else
19597   if test -n "$GETCONF"; then
19598   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19599 else
19600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19601 for as_dir in $PATH
19602 do
19603   IFS=$as_save_IFS
19604   test -z "$as_dir" && as_dir=.
19605   for ac_exec_ext in '' $ac_executable_extensions; do
19606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19607     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19609     break 2
19610   fi
19611 done
19612 done
19613 IFS=$as_save_IFS
19614
19615 fi
19616 fi
19617 GETCONF=$ac_cv_prog_GETCONF
19618 if test -n "$GETCONF"; then
19619   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19620 echo "${ECHO_T}$GETCONF" >&6; }
19621 else
19622   { echo "$as_me:$LINENO: result: no" >&5
19623 echo "${ECHO_T}no" >&6; }
19624 fi
19625
19626
19627 fi
19628 if test -z "$ac_cv_prog_GETCONF"; then
19629   ac_ct_GETCONF=$GETCONF
19630   # Extract the first word of "getconf", so it can be a program name with args.
19631 set dummy getconf; ac_word=$2
19632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19634 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19635   echo $ECHO_N "(cached) $ECHO_C" >&6
19636 else
19637   if test -n "$ac_ct_GETCONF"; then
19638   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19639 else
19640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19641 for as_dir in $PATH
19642 do
19643   IFS=$as_save_IFS
19644   test -z "$as_dir" && as_dir=.
19645   for ac_exec_ext in '' $ac_executable_extensions; do
19646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19647     ac_cv_prog_ac_ct_GETCONF="getconf"
19648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19649     break 2
19650   fi
19651 done
19652 done
19653 IFS=$as_save_IFS
19654
19655 fi
19656 fi
19657 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19658 if test -n "$ac_ct_GETCONF"; then
19659   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19660 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19661 else
19662   { echo "$as_me:$LINENO: result: no" >&5
19663 echo "${ECHO_T}no" >&6; }
19664 fi
19665
19666   if test "x$ac_ct_GETCONF" = x; then
19667     GETCONF=""
19668   else
19669     case $cross_compiling:$ac_tool_warned in
19670 yes:)
19671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19672 whose name does not start with the host triplet.  If you think this
19673 configuration is useful to you, please write to autoconf@gnu.org." >&5
19674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19675 whose name does not start with the host triplet.  If you think this
19676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19677 ac_tool_warned=yes ;;
19678 esac
19679     GETCONF=$ac_ct_GETCONF
19680   fi
19681 else
19682   GETCONF="$ac_cv_prog_GETCONF"
19683 fi
19684
19685      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19686 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19687 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19688   echo $ECHO_N "(cached) $ECHO_C" >&6
19689 else
19690   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19691         ac_cv_sys_largefile_CFLAGS=no
19692         case "$host_os" in
19693            # IRIX 6.2 and later require cc -n32.
19694            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19695              if test "$GCC" != yes; then
19696                ac_cv_sys_largefile_CFLAGS=-n32
19697              fi
19698              ac_save_CC="$CC"
19699              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19700              cat >conftest.$ac_ext <<_ACEOF
19701 /* confdefs.h.  */
19702 _ACEOF
19703 cat confdefs.h >>conftest.$ac_ext
19704 cat >>conftest.$ac_ext <<_ACEOF
19705 /* end confdefs.h.  */
19706
19707 int
19708 main ()
19709 {
19710
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_link") 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } &&
19729          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19730   { (case "(($ac_try" in
19731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732   *) ac_try_echo=$ac_try;;
19733 esac
19734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19735   (eval "$ac_try") 2>&5
19736   ac_status=$?
19737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738   (exit $ac_status); }; } &&
19739          { ac_try='test -s conftest$ac_exeext'
19740   { (case "(($ac_try" in
19741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742   *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745   (eval "$ac_try") 2>&5
19746   ac_status=$?
19747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); }; }; then
19749   :
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754         ac_cv_sys_largefile_CFLAGS=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext \
19758       conftest$ac_exeext conftest.$ac_ext
19759              CC="$ac_save_CC"
19760            esac
19761       }
19762 fi
19763 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19764 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19765      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19766 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19767 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19768   echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19771         ac_cv_sys_largefile_LDFLAGS=no
19772
19773       }
19774 fi
19775 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19776 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19777      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19778 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19779 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19780   echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19783         ac_cv_sys_largefile_LIBS=no
19784
19785       }
19786 fi
19787 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19788 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19789
19790      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19791        case "$ac_flag" in
19792        no) ;;
19793        -D_FILE_OFFSET_BITS=*) ;;
19794        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19795        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19796        -D?* | -I?*)
19797          case "$ac_flag" in
19798    no) ;;
19799    ?*)
19800      case "$CPPFLAGS" in
19801      '') CPPFLAGS="$ac_flag" ;;
19802      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19803      esac ;;
19804    esac ;;
19805        *)
19806          case "$ac_flag" in
19807    no) ;;
19808    ?*)
19809      case "$CFLAGS" in
19810      '') CFLAGS="$ac_flag" ;;
19811      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19812      esac ;;
19813    esac ;;
19814        esac
19815      done
19816      case "$ac_cv_sys_largefile_LDFLAGS" in
19817    no) ;;
19818    ?*)
19819      case "$LDFLAGS" in
19820      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19821      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19822      esac ;;
19823    esac
19824      case "$ac_cv_sys_largefile_LIBS" in
19825    no) ;;
19826    ?*)
19827      case "$LIBS" in
19828      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19829      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19830      esac ;;
19831    esac
19832      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19833 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19834 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19835   echo $ECHO_N "(cached) $ECHO_C" >&6
19836 else
19837   ac_cv_sys_file_offset_bits=no
19838       ac_cv_sys_file_offset_bits=64
19839       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19840         case "$ac_flag" in
19841         -D_FILE_OFFSET_BITS)
19842           ac_cv_sys_file_offset_bits=1 ;;
19843         -D_FILE_OFFSET_BITS=*)
19844           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19845         esac
19846       done
19847
19848 fi
19849 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19850 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19851    if test "$ac_cv_sys_file_offset_bits" != no; then
19852
19853 cat >>confdefs.h <<_ACEOF
19854 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19855 _ACEOF
19856
19857    fi
19858      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19859 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19860 if test "${ac_cv_sys_largefile_source+set}" = set; then
19861   echo $ECHO_N "(cached) $ECHO_C" >&6
19862 else
19863   ac_cv_sys_largefile_source=no
19864       ac_cv_sys_largefile_source=1
19865       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19866         case "$ac_flag" in
19867         -D_LARGEFILE_SOURCE)
19868           ac_cv_sys_largefile_source=1 ;;
19869         -D_LARGEFILE_SOURCE=*)
19870           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19871         esac
19872       done
19873
19874 fi
19875 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19876 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19877    if test "$ac_cv_sys_largefile_source" != no; then
19878
19879 cat >>confdefs.h <<_ACEOF
19880 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19881 _ACEOF
19882
19883    fi
19884      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19885 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19886 if test "${ac_cv_sys_large_files+set}" = set; then
19887   echo $ECHO_N "(cached) $ECHO_C" >&6
19888 else
19889   ac_cv_sys_large_files=no
19890       ac_cv_sys_large_files=1
19891       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19892         case "$ac_flag" in
19893         -D_LARGE_FILES)
19894           ac_cv_sys_large_files=1 ;;
19895         -D_LARGE_FILES=*)
19896           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19897         esac
19898       done
19899
19900 fi
19901 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19902 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19903    if test "$ac_cv_sys_large_files" != no; then
19904
19905 cat >>confdefs.h <<_ACEOF
19906 #define _LARGE_FILES $ac_cv_sys_large_files
19907 _ACEOF
19908
19909    fi
19910    fi
19911
19912
19913
19914 { echo "$as_me:$LINENO: checking for X" >&5
19915 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19916
19917
19918 # Check whether --with-x was given.
19919 if test "${with_x+set}" = set; then
19920   withval=$with_x;
19921 fi
19922
19923 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19924 if test "x$with_x" = xno; then
19925   # The user explicitly disabled X.
19926   have_x=disabled
19927 else
19928   case $x_includes,$x_libraries in #(
19929     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19930 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19931    { (exit 1); exit 1; }; };; #(
19932     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   # One or both of the vars are not set, and there is no cached value.
19936 ac_x_includes=no ac_x_libraries=no
19937 rm -f -r conftest.dir
19938 if mkdir conftest.dir; then
19939   cd conftest.dir
19940   cat >Imakefile <<'_ACEOF'
19941 incroot:
19942         @echo incroot='${INCROOT}'
19943 usrlibdir:
19944         @echo usrlibdir='${USRLIBDIR}'
19945 libdir:
19946         @echo libdir='${LIBDIR}'
19947 _ACEOF
19948   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19949     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19950     for ac_var in incroot usrlibdir libdir; do
19951       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19952     done
19953     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19954     for ac_extension in a so sl; do
19955       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19956          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19957         ac_im_usrlibdir=$ac_im_libdir; break
19958       fi
19959     done
19960     # Screen out bogus values from the imake configuration.  They are
19961     # bogus both because they are the default anyway, and because
19962     # using them would break gcc on systems where it needs fixed includes.
19963     case $ac_im_incroot in
19964         /usr/include) ac_x_includes= ;;
19965         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19966     esac
19967     case $ac_im_usrlibdir in
19968         /usr/lib | /lib) ;;
19969         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19970     esac
19971   fi
19972   cd ..
19973   rm -f -r conftest.dir
19974 fi
19975
19976 # Standard set of common directories for X headers.
19977 # Check X11 before X11Rn because it is often a symlink to the current release.
19978 ac_x_header_dirs='
19979 /usr/X11/include
19980 /usr/X11R6/include
19981 /usr/X11R5/include
19982 /usr/X11R4/include
19983
19984 /usr/include/X11
19985 /usr/include/X11R6
19986 /usr/include/X11R5
19987 /usr/include/X11R4
19988
19989 /usr/local/X11/include
19990 /usr/local/X11R6/include
19991 /usr/local/X11R5/include
19992 /usr/local/X11R4/include
19993
19994 /usr/local/include/X11
19995 /usr/local/include/X11R6
19996 /usr/local/include/X11R5
19997 /usr/local/include/X11R4
19998
19999 /usr/X386/include
20000 /usr/x386/include
20001 /usr/XFree86/include/X11
20002
20003 /usr/include
20004 /usr/local/include
20005 /usr/unsupported/include
20006 /usr/athena/include
20007 /usr/local/x11r5/include
20008 /usr/lpp/Xamples/include
20009
20010 /usr/openwin/include
20011 /usr/openwin/share/include'
20012
20013 if test "$ac_x_includes" = no; then
20014   # Guess where to find include files, by looking for Xlib.h.
20015   # First, try using that file with no special directory specified.
20016   cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h.  */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h.  */
20022 #include <X11/Xlib.h>
20023 _ACEOF
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } >/dev/null; then
20037   if test -s conftest.err; then
20038     ac_cpp_err=$ac_c_preproc_warn_flag
20039     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20040   else
20041     ac_cpp_err=
20042   fi
20043 else
20044   ac_cpp_err=yes
20045 fi
20046 if test -z "$ac_cpp_err"; then
20047   # We can compile using X headers with no special include directory.
20048 ac_x_includes=
20049 else
20050   echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20052
20053   for ac_dir in $ac_x_header_dirs; do
20054   if test -r "$ac_dir/X11/Xlib.h"; then
20055     ac_x_includes=$ac_dir
20056     break
20057   fi
20058 done
20059 fi
20060
20061 rm -f conftest.err conftest.$ac_ext
20062 fi # $ac_x_includes = no
20063
20064 if test "$ac_x_libraries" = no; then
20065   # Check for the libraries.
20066   # See if we find them without any special options.
20067   # Don't add to $LIBS permanently.
20068   ac_save_LIBS=$LIBS
20069   LIBS="-lXt $LIBS"
20070   cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h.  */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h.  */
20076 #include <X11/Xlib.h>
20077 int
20078 main ()
20079 {
20080 XrmInitialize ()
20081   ;
20082   return 0;
20083 }
20084 _ACEOF
20085 rm -f conftest.$ac_objext conftest$ac_exeext
20086 if { (ac_try="$ac_link"
20087 case "(($ac_try" in
20088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089   *) ac_try_echo=$ac_try;;
20090 esac
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092   (eval "$ac_link") 2>conftest.er1
20093   ac_status=$?
20094   grep -v '^ *+' conftest.er1 >conftest.err
20095   rm -f conftest.er1
20096   cat conftest.err >&5
20097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098   (exit $ac_status); } &&
20099          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20100   { (case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105   (eval "$ac_try") 2>&5
20106   ac_status=$?
20107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108   (exit $ac_status); }; } &&
20109          { ac_try='test -s conftest$ac_exeext'
20110   { (case "(($ac_try" in
20111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112   *) ac_try_echo=$ac_try;;
20113 esac
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115   (eval "$ac_try") 2>&5
20116   ac_status=$?
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); }; }; then
20119   LIBS=$ac_save_LIBS
20120 # We can link X programs with no special library path.
20121 ac_x_libraries=
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126         LIBS=$ac_save_LIBS
20127 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20128 do
20129   # Don't even attempt the hair of trying to link an X program!
20130   for ac_extension in a so sl; do
20131     if test -r "$ac_dir/libXt.$ac_extension"; then
20132       ac_x_libraries=$ac_dir
20133       break 2
20134     fi
20135   done
20136 done
20137 fi
20138
20139 rm -f core conftest.err conftest.$ac_objext \
20140       conftest$ac_exeext conftest.$ac_ext
20141 fi # $ac_x_libraries = no
20142
20143 case $ac_x_includes,$ac_x_libraries in #(
20144   no,* | *,no | *\'*)
20145     # Didn't find X, or a directory has "'" in its name.
20146     ac_cv_have_x="have_x=no";; #(
20147   *)
20148     # Record where we found X for the cache.
20149     ac_cv_have_x="have_x=yes\
20150         ac_x_includes='$ac_x_includes'\
20151         ac_x_libraries='$ac_x_libraries'"
20152 esac
20153 fi
20154 ;; #(
20155     *) have_x=yes;;
20156   esac
20157   eval "$ac_cv_have_x"
20158 fi # $with_x != no
20159
20160 if test "$have_x" != yes; then
20161   { echo "$as_me:$LINENO: result: $have_x" >&5
20162 echo "${ECHO_T}$have_x" >&6; }
20163   no_x=yes
20164 else
20165   # If each of the values was on the command line, it overrides each guess.
20166   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20167   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20168   # Update the cache value to reflect the command line values.
20169   ac_cv_have_x="have_x=yes\
20170         ac_x_includes='$x_includes'\
20171         ac_x_libraries='$x_libraries'"
20172   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20173 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20174 fi
20175
20176 if test "$no_x" = yes; then
20177   # Not all programs may use this symbol, but it does not hurt to define it.
20178
20179 cat >>confdefs.h <<\_ACEOF
20180 #define X_DISPLAY_MISSING 1
20181 _ACEOF
20182
20183   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20184 else
20185   if test -n "$x_includes"; then
20186     X_CFLAGS="$X_CFLAGS -I$x_includes"
20187   fi
20188
20189   # It would also be nice to do this for all -L options, not just this one.
20190   if test -n "$x_libraries"; then
20191     X_LIBS="$X_LIBS -L$x_libraries"
20192     # For Solaris; some versions of Sun CC require a space after -R and
20193     # others require no space.  Words are not sufficient . . . .
20194     case `(uname -sr) 2>/dev/null` in
20195     "SunOS 5"*)
20196       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20197 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20198       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20199       cat >conftest.$ac_ext <<_ACEOF
20200 /* confdefs.h.  */
20201 _ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h.  */
20205
20206 int
20207 main ()
20208 {
20209
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 rm -f conftest.$ac_objext conftest$ac_exeext
20215 if { (ac_try="$ac_link"
20216 case "(($ac_try" in
20217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218   *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221   (eval "$ac_link") 2>conftest.er1
20222   ac_status=$?
20223   grep -v '^ *+' conftest.er1 >conftest.err
20224   rm -f conftest.er1
20225   cat conftest.err >&5
20226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227   (exit $ac_status); } &&
20228          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20229   { (case "(($ac_try" in
20230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20231   *) ac_try_echo=$ac_try;;
20232 esac
20233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20234   (eval "$ac_try") 2>&5
20235   ac_status=$?
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); }; } &&
20238          { ac_try='test -s conftest$ac_exeext'
20239   { (case "(($ac_try" in
20240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20241   *) ac_try_echo=$ac_try;;
20242 esac
20243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20244   (eval "$ac_try") 2>&5
20245   ac_status=$?
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); }; }; then
20248   ac_R_nospace=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253         ac_R_nospace=no
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext \
20257       conftest$ac_exeext conftest.$ac_ext
20258       if test $ac_R_nospace = yes; then
20259         { echo "$as_me:$LINENO: result: no" >&5
20260 echo "${ECHO_T}no" >&6; }
20261         X_LIBS="$X_LIBS -R$x_libraries"
20262       else
20263         LIBS="$ac_xsave_LIBS -R $x_libraries"
20264         cat >conftest.$ac_ext <<_ACEOF
20265 /* confdefs.h.  */
20266 _ACEOF
20267 cat confdefs.h >>conftest.$ac_ext
20268 cat >>conftest.$ac_ext <<_ACEOF
20269 /* end confdefs.h.  */
20270
20271 int
20272 main ()
20273 {
20274
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283   *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286   (eval "$ac_link") 2>conftest.er1
20287   ac_status=$?
20288   grep -v '^ *+' conftest.er1 >conftest.err
20289   rm -f conftest.er1
20290   cat conftest.err >&5
20291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292   (exit $ac_status); } &&
20293          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20294   { (case "(($ac_try" in
20295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296   *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299   (eval "$ac_try") 2>&5
20300   ac_status=$?
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); }; } &&
20303          { ac_try='test -s conftest$ac_exeext'
20304   { (case "(($ac_try" in
20305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20306   *) ac_try_echo=$ac_try;;
20307 esac
20308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20309   (eval "$ac_try") 2>&5
20310   ac_status=$?
20311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312   (exit $ac_status); }; }; then
20313   ac_R_space=yes
20314 else
20315   echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20317
20318         ac_R_space=no
20319 fi
20320
20321 rm -f core conftest.err conftest.$ac_objext \
20322       conftest$ac_exeext conftest.$ac_ext
20323         if test $ac_R_space = yes; then
20324           { echo "$as_me:$LINENO: result: yes" >&5
20325 echo "${ECHO_T}yes" >&6; }
20326           X_LIBS="$X_LIBS -R $x_libraries"
20327         else
20328           { echo "$as_me:$LINENO: result: neither works" >&5
20329 echo "${ECHO_T}neither works" >&6; }
20330         fi
20331       fi
20332       LIBS=$ac_xsave_LIBS
20333     esac
20334   fi
20335
20336   # Check for system-dependent libraries X programs must link with.
20337   # Do this before checking for the system-independent R6 libraries
20338   # (-lICE), since we may need -lsocket or whatever for X linking.
20339
20340   if test "$ISC" = yes; then
20341     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20342   else
20343     # Martyn Johnson says this is needed for Ultrix, if the X
20344     # libraries were built with DECnet support.  And Karl Berry says
20345     # the Alpha needs dnet_stub (dnet does not exist).
20346     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20347     cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353
20354 /* Override any GCC internal prototype to avoid an error.
20355    Use char because int might match the return type of a GCC
20356    builtin and then its argument prototype would still apply.  */
20357 #ifdef __cplusplus
20358 extern "C"
20359 #endif
20360 char XOpenDisplay ();
20361 int
20362 main ()
20363 {
20364 return XOpenDisplay ();
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (ac_try="$ac_link"
20371 case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_link") 2>conftest.er1
20377   ac_status=$?
20378   grep -v '^ *+' conftest.er1 >conftest.err
20379   rm -f conftest.er1
20380   cat conftest.err >&5
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } &&
20383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20384   { (case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_try") 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; } &&
20393          { ac_try='test -s conftest$ac_exeext'
20394   { (case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_try") 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; }; then
20403   :
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20409 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20410 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   ac_check_lib_save_LIBS=$LIBS
20414 LIBS="-ldnet  $LIBS"
20415 cat >conftest.$ac_ext <<_ACEOF
20416 /* confdefs.h.  */
20417 _ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h.  */
20421
20422 /* Override any GCC internal prototype to avoid an error.
20423    Use char because int might match the return type of a GCC
20424    builtin and then its argument prototype would still apply.  */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char dnet_ntoa ();
20429 int
20430 main ()
20431 {
20432 return dnet_ntoa ();
20433   ;
20434   return 0;
20435 }
20436 _ACEOF
20437 rm -f conftest.$ac_objext conftest$ac_exeext
20438 if { (ac_try="$ac_link"
20439 case "(($ac_try" in
20440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441   *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444   (eval "$ac_link") 2>conftest.er1
20445   ac_status=$?
20446   grep -v '^ *+' conftest.er1 >conftest.err
20447   rm -f conftest.er1
20448   cat conftest.err >&5
20449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450   (exit $ac_status); } &&
20451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20452   { (case "(($ac_try" in
20453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20454   *) ac_try_echo=$ac_try;;
20455 esac
20456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20457   (eval "$ac_try") 2>&5
20458   ac_status=$?
20459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460   (exit $ac_status); }; } &&
20461          { ac_try='test -s conftest$ac_exeext'
20462   { (case "(($ac_try" in
20463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464   *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467   (eval "$ac_try") 2>&5
20468   ac_status=$?
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); }; }; then
20471   ac_cv_lib_dnet_dnet_ntoa=yes
20472 else
20473   echo "$as_me: failed program was:" >&5
20474 sed 's/^/| /' conftest.$ac_ext >&5
20475
20476         ac_cv_lib_dnet_dnet_ntoa=no
20477 fi
20478
20479 rm -f core conftest.err conftest.$ac_objext \
20480       conftest$ac_exeext conftest.$ac_ext
20481 LIBS=$ac_check_lib_save_LIBS
20482 fi
20483 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20484 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20485 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20486   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20487 fi
20488
20489     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20490       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20491 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20492 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20493   echo $ECHO_N "(cached) $ECHO_C" >&6
20494 else
20495   ac_check_lib_save_LIBS=$LIBS
20496 LIBS="-ldnet_stub  $LIBS"
20497 cat >conftest.$ac_ext <<_ACEOF
20498 /* confdefs.h.  */
20499 _ACEOF
20500 cat confdefs.h >>conftest.$ac_ext
20501 cat >>conftest.$ac_ext <<_ACEOF
20502 /* end confdefs.h.  */
20503
20504 /* Override any GCC internal prototype to avoid an error.
20505    Use char because int might match the return type of a GCC
20506    builtin and then its argument prototype would still apply.  */
20507 #ifdef __cplusplus
20508 extern "C"
20509 #endif
20510 char dnet_ntoa ();
20511 int
20512 main ()
20513 {
20514 return dnet_ntoa ();
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext conftest$ac_exeext
20520 if { (ac_try="$ac_link"
20521 case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_link") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } &&
20533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20534   { (case "(($ac_try" in
20535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20536   *) ac_try_echo=$ac_try;;
20537 esac
20538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20539   (eval "$ac_try") 2>&5
20540   ac_status=$?
20541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542   (exit $ac_status); }; } &&
20543          { ac_try='test -s conftest$ac_exeext'
20544   { (case "(($ac_try" in
20545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546   *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549   (eval "$ac_try") 2>&5
20550   ac_status=$?
20551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552   (exit $ac_status); }; }; then
20553   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20554 else
20555   echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558         ac_cv_lib_dnet_stub_dnet_ntoa=no
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext \
20562       conftest$ac_exeext conftest.$ac_ext
20563 LIBS=$ac_check_lib_save_LIBS
20564 fi
20565 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20566 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20567 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20568   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20569 fi
20570
20571     fi
20572 fi
20573
20574 rm -f core conftest.err conftest.$ac_objext \
20575       conftest$ac_exeext conftest.$ac_ext
20576     LIBS="$ac_xsave_LIBS"
20577
20578     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20579     # to get the SysV transport functions.
20580     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20581     # needs -lnsl.
20582     # The nsl library prevents programs from opening the X display
20583     # on Irix 5.2, according to T.E. Dickey.
20584     # The functions gethostbyname, getservbyname, and inet_addr are
20585     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20586     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20587 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20588 if test "${ac_cv_func_gethostbyname+set}" = set; then
20589   echo $ECHO_N "(cached) $ECHO_C" >&6
20590 else
20591   cat >conftest.$ac_ext <<_ACEOF
20592 /* confdefs.h.  */
20593 _ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h.  */
20597 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20599 #define gethostbyname innocuous_gethostbyname
20600
20601 /* System header to define __stub macros and hopefully few prototypes,
20602     which can conflict with char gethostbyname (); below.
20603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20604     <limits.h> exists even on freestanding compilers.  */
20605
20606 #ifdef __STDC__
20607 # include <limits.h>
20608 #else
20609 # include <assert.h>
20610 #endif
20611
20612 #undef gethostbyname
20613
20614 /* Override any GCC internal prototype to avoid an error.
20615    Use char because int might match the return type of a GCC
20616    builtin and then its argument prototype would still apply.  */
20617 #ifdef __cplusplus
20618 extern "C"
20619 #endif
20620 char gethostbyname ();
20621 /* The GNU C library defines this for functions which it implements
20622     to always fail with ENOSYS.  Some functions are actually named
20623     something starting with __ and the normal name is an alias.  */
20624 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20625 choke me
20626 #endif
20627
20628 int
20629 main ()
20630 {
20631 return gethostbyname ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_link") 2>conftest.er1
20644   ac_status=$?
20645   grep -v '^ *+' conftest.er1 >conftest.err
20646   rm -f conftest.er1
20647   cat conftest.err >&5
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } &&
20650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20651   { (case "(($ac_try" in
20652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653   *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656   (eval "$ac_try") 2>&5
20657   ac_status=$?
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); }; } &&
20660          { ac_try='test -s conftest$ac_exeext'
20661   { (case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_try") 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); }; }; then
20670   ac_cv_func_gethostbyname=yes
20671 else
20672   echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20674
20675         ac_cv_func_gethostbyname=no
20676 fi
20677
20678 rm -f core conftest.err conftest.$ac_objext \
20679       conftest$ac_exeext conftest.$ac_ext
20680 fi
20681 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20682 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20683
20684     if test $ac_cv_func_gethostbyname = no; then
20685       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20686 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20687 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690   ac_check_lib_save_LIBS=$LIBS
20691 LIBS="-lnsl  $LIBS"
20692 cat >conftest.$ac_ext <<_ACEOF
20693 /* confdefs.h.  */
20694 _ACEOF
20695 cat confdefs.h >>conftest.$ac_ext
20696 cat >>conftest.$ac_ext <<_ACEOF
20697 /* end confdefs.h.  */
20698
20699 /* Override any GCC internal prototype to avoid an error.
20700    Use char because int might match the return type of a GCC
20701    builtin and then its argument prototype would still apply.  */
20702 #ifdef __cplusplus
20703 extern "C"
20704 #endif
20705 char gethostbyname ();
20706 int
20707 main ()
20708 {
20709 return gethostbyname ();
20710   ;
20711   return 0;
20712 }
20713 _ACEOF
20714 rm -f conftest.$ac_objext conftest$ac_exeext
20715 if { (ac_try="$ac_link"
20716 case "(($ac_try" in
20717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20718   *) ac_try_echo=$ac_try;;
20719 esac
20720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20721   (eval "$ac_link") 2>conftest.er1
20722   ac_status=$?
20723   grep -v '^ *+' conftest.er1 >conftest.err
20724   rm -f conftest.er1
20725   cat conftest.err >&5
20726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727   (exit $ac_status); } &&
20728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729   { (case "(($ac_try" in
20730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731   *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734   (eval "$ac_try") 2>&5
20735   ac_status=$?
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); }; } &&
20738          { ac_try='test -s conftest$ac_exeext'
20739   { (case "(($ac_try" in
20740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741   *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744   (eval "$ac_try") 2>&5
20745   ac_status=$?
20746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747   (exit $ac_status); }; }; then
20748   ac_cv_lib_nsl_gethostbyname=yes
20749 else
20750   echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20752
20753         ac_cv_lib_nsl_gethostbyname=no
20754 fi
20755
20756 rm -f core conftest.err conftest.$ac_objext \
20757       conftest$ac_exeext conftest.$ac_ext
20758 LIBS=$ac_check_lib_save_LIBS
20759 fi
20760 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20761 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20762 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20763   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20764 fi
20765
20766       if test $ac_cv_lib_nsl_gethostbyname = no; then
20767         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20768 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20769 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20770   echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772   ac_check_lib_save_LIBS=$LIBS
20773 LIBS="-lbsd  $LIBS"
20774 cat >conftest.$ac_ext <<_ACEOF
20775 /* confdefs.h.  */
20776 _ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h.  */
20780
20781 /* Override any GCC internal prototype to avoid an error.
20782    Use char because int might match the return type of a GCC
20783    builtin and then its argument prototype would still apply.  */
20784 #ifdef __cplusplus
20785 extern "C"
20786 #endif
20787 char gethostbyname ();
20788 int
20789 main ()
20790 {
20791 return gethostbyname ();
20792   ;
20793   return 0;
20794 }
20795 _ACEOF
20796 rm -f conftest.$ac_objext conftest$ac_exeext
20797 if { (ac_try="$ac_link"
20798 case "(($ac_try" in
20799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20800   *) ac_try_echo=$ac_try;;
20801 esac
20802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20803   (eval "$ac_link") 2>conftest.er1
20804   ac_status=$?
20805   grep -v '^ *+' conftest.er1 >conftest.err
20806   rm -f conftest.er1
20807   cat conftest.err >&5
20808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809   (exit $ac_status); } &&
20810          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20811   { (case "(($ac_try" in
20812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813   *) ac_try_echo=$ac_try;;
20814 esac
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816   (eval "$ac_try") 2>&5
20817   ac_status=$?
20818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819   (exit $ac_status); }; } &&
20820          { ac_try='test -s conftest$ac_exeext'
20821   { (case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_try") 2>&5
20827   ac_status=$?
20828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829   (exit $ac_status); }; }; then
20830   ac_cv_lib_bsd_gethostbyname=yes
20831 else
20832   echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835         ac_cv_lib_bsd_gethostbyname=no
20836 fi
20837
20838 rm -f core conftest.err conftest.$ac_objext \
20839       conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20841 fi
20842 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20843 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20844 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20845   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20846 fi
20847
20848       fi
20849     fi
20850
20851     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20852     # socket/setsockopt and other routines are undefined under SCO ODT
20853     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20854     # on later versions), says Simon Leinen: it contains gethostby*
20855     # variants that don't use the name server (or something).  -lsocket
20856     # must be given before -lnsl if both are needed.  We assume that
20857     # if connect needs -lnsl, so does gethostbyname.
20858     { echo "$as_me:$LINENO: checking for connect" >&5
20859 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20860 if test "${ac_cv_func_connect+set}" = set; then
20861   echo $ECHO_N "(cached) $ECHO_C" >&6
20862 else
20863   cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20871 #define connect innocuous_connect
20872
20873 /* System header to define __stub macros and hopefully few prototypes,
20874     which can conflict with char connect (); below.
20875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876     <limits.h> exists even on freestanding compilers.  */
20877
20878 #ifdef __STDC__
20879 # include <limits.h>
20880 #else
20881 # include <assert.h>
20882 #endif
20883
20884 #undef connect
20885
20886 /* Override any GCC internal prototype to avoid an error.
20887    Use char because int might match the return type of a GCC
20888    builtin and then its argument prototype would still apply.  */
20889 #ifdef __cplusplus
20890 extern "C"
20891 #endif
20892 char connect ();
20893 /* The GNU C library defines this for functions which it implements
20894     to always fail with ENOSYS.  Some functions are actually named
20895     something starting with __ and the normal name is an alias.  */
20896 #if defined __stub_connect || defined __stub___connect
20897 choke me
20898 #endif
20899
20900 int
20901 main ()
20902 {
20903 return connect ();
20904   ;
20905   return 0;
20906 }
20907 _ACEOF
20908 rm -f conftest.$ac_objext conftest$ac_exeext
20909 if { (ac_try="$ac_link"
20910 case "(($ac_try" in
20911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912   *) ac_try_echo=$ac_try;;
20913 esac
20914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20915   (eval "$ac_link") 2>conftest.er1
20916   ac_status=$?
20917   grep -v '^ *+' conftest.er1 >conftest.err
20918   rm -f conftest.er1
20919   cat conftest.err >&5
20920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921   (exit $ac_status); } &&
20922          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20923   { (case "(($ac_try" in
20924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20925   *) ac_try_echo=$ac_try;;
20926 esac
20927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20928   (eval "$ac_try") 2>&5
20929   ac_status=$?
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); }; } &&
20932          { ac_try='test -s conftest$ac_exeext'
20933   { (case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938   (eval "$ac_try") 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; }; then
20942   ac_cv_func_connect=yes
20943 else
20944   echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947         ac_cv_func_connect=no
20948 fi
20949
20950 rm -f core conftest.err conftest.$ac_objext \
20951       conftest$ac_exeext conftest.$ac_ext
20952 fi
20953 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20954 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20955
20956     if test $ac_cv_func_connect = no; then
20957       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20958 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20959 if test "${ac_cv_lib_socket_connect+set}" = set; then
20960   echo $ECHO_N "(cached) $ECHO_C" >&6
20961 else
20962   ac_check_lib_save_LIBS=$LIBS
20963 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20964 cat >conftest.$ac_ext <<_ACEOF
20965 /* confdefs.h.  */
20966 _ACEOF
20967 cat confdefs.h >>conftest.$ac_ext
20968 cat >>conftest.$ac_ext <<_ACEOF
20969 /* end confdefs.h.  */
20970
20971 /* Override any GCC internal prototype to avoid an error.
20972    Use char because int might match the return type of a GCC
20973    builtin and then its argument prototype would still apply.  */
20974 #ifdef __cplusplus
20975 extern "C"
20976 #endif
20977 char connect ();
20978 int
20979 main ()
20980 {
20981 return connect ();
20982   ;
20983   return 0;
20984 }
20985 _ACEOF
20986 rm -f conftest.$ac_objext conftest$ac_exeext
20987 if { (ac_try="$ac_link"
20988 case "(($ac_try" in
20989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20990   *) ac_try_echo=$ac_try;;
20991 esac
20992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20993   (eval "$ac_link") 2>conftest.er1
20994   ac_status=$?
20995   grep -v '^ *+' conftest.er1 >conftest.err
20996   rm -f conftest.er1
20997   cat conftest.err >&5
20998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999   (exit $ac_status); } &&
21000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21001   { (case "(($ac_try" in
21002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003   *) ac_try_echo=$ac_try;;
21004 esac
21005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21006   (eval "$ac_try") 2>&5
21007   ac_status=$?
21008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009   (exit $ac_status); }; } &&
21010          { ac_try='test -s conftest$ac_exeext'
21011   { (case "(($ac_try" in
21012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013   *) ac_try_echo=$ac_try;;
21014 esac
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016   (eval "$ac_try") 2>&5
21017   ac_status=$?
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); }; }; then
21020   ac_cv_lib_socket_connect=yes
21021 else
21022   echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025         ac_cv_lib_socket_connect=no
21026 fi
21027
21028 rm -f core conftest.err conftest.$ac_objext \
21029       conftest$ac_exeext conftest.$ac_ext
21030 LIBS=$ac_check_lib_save_LIBS
21031 fi
21032 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21033 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
21034 if test $ac_cv_lib_socket_connect = yes; then
21035   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21036 fi
21037
21038     fi
21039
21040     # Guillermo Gomez says -lposix is necessary on A/UX.
21041     { echo "$as_me:$LINENO: checking for remove" >&5
21042 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21043 if test "${ac_cv_func_remove+set}" = set; then
21044   echo $ECHO_N "(cached) $ECHO_C" >&6
21045 else
21046   cat >conftest.$ac_ext <<_ACEOF
21047 /* confdefs.h.  */
21048 _ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h.  */
21052 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21054 #define remove innocuous_remove
21055
21056 /* System header to define __stub macros and hopefully few prototypes,
21057     which can conflict with char remove (); below.
21058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21059     <limits.h> exists even on freestanding compilers.  */
21060
21061 #ifdef __STDC__
21062 # include <limits.h>
21063 #else
21064 # include <assert.h>
21065 #endif
21066
21067 #undef remove
21068
21069 /* Override any GCC internal prototype to avoid an error.
21070    Use char because int might match the return type of a GCC
21071    builtin and then its argument prototype would still apply.  */
21072 #ifdef __cplusplus
21073 extern "C"
21074 #endif
21075 char remove ();
21076 /* The GNU C library defines this for functions which it implements
21077     to always fail with ENOSYS.  Some functions are actually named
21078     something starting with __ and the normal name is an alias.  */
21079 #if defined __stub_remove || defined __stub___remove
21080 choke me
21081 #endif
21082
21083 int
21084 main ()
21085 {
21086 return remove ();
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 rm -f conftest.$ac_objext conftest$ac_exeext
21092 if { (ac_try="$ac_link"
21093 case "(($ac_try" in
21094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095   *) ac_try_echo=$ac_try;;
21096 esac
21097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21098   (eval "$ac_link") 2>conftest.er1
21099   ac_status=$?
21100   grep -v '^ *+' conftest.er1 >conftest.err
21101   rm -f conftest.er1
21102   cat conftest.err >&5
21103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104   (exit $ac_status); } &&
21105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21106   { (case "(($ac_try" in
21107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108   *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111   (eval "$ac_try") 2>&5
21112   ac_status=$?
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); }; } &&
21115          { ac_try='test -s conftest$ac_exeext'
21116   { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; }; then
21125   ac_cv_func_remove=yes
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130         ac_cv_func_remove=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext \
21134       conftest$ac_exeext conftest.$ac_ext
21135 fi
21136 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21137 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21138
21139     if test $ac_cv_func_remove = no; then
21140       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21141 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21142 if test "${ac_cv_lib_posix_remove+set}" = set; then
21143   echo $ECHO_N "(cached) $ECHO_C" >&6
21144 else
21145   ac_check_lib_save_LIBS=$LIBS
21146 LIBS="-lposix  $LIBS"
21147 cat >conftest.$ac_ext <<_ACEOF
21148 /* confdefs.h.  */
21149 _ACEOF
21150 cat confdefs.h >>conftest.$ac_ext
21151 cat >>conftest.$ac_ext <<_ACEOF
21152 /* end confdefs.h.  */
21153
21154 /* Override any GCC internal prototype to avoid an error.
21155    Use char because int might match the return type of a GCC
21156    builtin and then its argument prototype would still apply.  */
21157 #ifdef __cplusplus
21158 extern "C"
21159 #endif
21160 char remove ();
21161 int
21162 main ()
21163 {
21164 return remove ();
21165   ;
21166   return 0;
21167 }
21168 _ACEOF
21169 rm -f conftest.$ac_objext conftest$ac_exeext
21170 if { (ac_try="$ac_link"
21171 case "(($ac_try" in
21172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21173   *) ac_try_echo=$ac_try;;
21174 esac
21175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21176   (eval "$ac_link") 2>conftest.er1
21177   ac_status=$?
21178   grep -v '^ *+' conftest.er1 >conftest.err
21179   rm -f conftest.er1
21180   cat conftest.err >&5
21181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182   (exit $ac_status); } &&
21183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21184   { (case "(($ac_try" in
21185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21186   *) ac_try_echo=$ac_try;;
21187 esac
21188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21189   (eval "$ac_try") 2>&5
21190   ac_status=$?
21191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192   (exit $ac_status); }; } &&
21193          { ac_try='test -s conftest$ac_exeext'
21194   { (case "(($ac_try" in
21195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21196   *) ac_try_echo=$ac_try;;
21197 esac
21198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21199   (eval "$ac_try") 2>&5
21200   ac_status=$?
21201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202   (exit $ac_status); }; }; then
21203   ac_cv_lib_posix_remove=yes
21204 else
21205   echo "$as_me: failed program was:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21207
21208         ac_cv_lib_posix_remove=no
21209 fi
21210
21211 rm -f core conftest.err conftest.$ac_objext \
21212       conftest$ac_exeext conftest.$ac_ext
21213 LIBS=$ac_check_lib_save_LIBS
21214 fi
21215 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21216 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21217 if test $ac_cv_lib_posix_remove = yes; then
21218   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21219 fi
21220
21221     fi
21222
21223     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21224     { echo "$as_me:$LINENO: checking for shmat" >&5
21225 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21226 if test "${ac_cv_func_shmat+set}" = set; then
21227   echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229   cat >conftest.$ac_ext <<_ACEOF
21230 /* confdefs.h.  */
21231 _ACEOF
21232 cat confdefs.h >>conftest.$ac_ext
21233 cat >>conftest.$ac_ext <<_ACEOF
21234 /* end confdefs.h.  */
21235 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21237 #define shmat innocuous_shmat
21238
21239 /* System header to define __stub macros and hopefully few prototypes,
21240     which can conflict with char shmat (); below.
21241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21242     <limits.h> exists even on freestanding compilers.  */
21243
21244 #ifdef __STDC__
21245 # include <limits.h>
21246 #else
21247 # include <assert.h>
21248 #endif
21249
21250 #undef shmat
21251
21252 /* Override any GCC internal prototype to avoid an error.
21253    Use char because int might match the return type of a GCC
21254    builtin and then its argument prototype would still apply.  */
21255 #ifdef __cplusplus
21256 extern "C"
21257 #endif
21258 char shmat ();
21259 /* The GNU C library defines this for functions which it implements
21260     to always fail with ENOSYS.  Some functions are actually named
21261     something starting with __ and the normal name is an alias.  */
21262 #if defined __stub_shmat || defined __stub___shmat
21263 choke me
21264 #endif
21265
21266 int
21267 main ()
21268 {
21269 return shmat ();
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (ac_try="$ac_link"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_link") 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } &&
21288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21289   { (case "(($ac_try" in
21290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21291   *) ac_try_echo=$ac_try;;
21292 esac
21293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21294   (eval "$ac_try") 2>&5
21295   ac_status=$?
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); }; } &&
21298          { ac_try='test -s conftest$ac_exeext'
21299   { (case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_try") 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; }; then
21308   ac_cv_func_shmat=yes
21309 else
21310   echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313         ac_cv_func_shmat=no
21314 fi
21315
21316 rm -f core conftest.err conftest.$ac_objext \
21317       conftest$ac_exeext conftest.$ac_ext
21318 fi
21319 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21320 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21321
21322     if test $ac_cv_func_shmat = no; then
21323       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21324 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21325 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21326   echo $ECHO_N "(cached) $ECHO_C" >&6
21327 else
21328   ac_check_lib_save_LIBS=$LIBS
21329 LIBS="-lipc  $LIBS"
21330 cat >conftest.$ac_ext <<_ACEOF
21331 /* confdefs.h.  */
21332 _ACEOF
21333 cat confdefs.h >>conftest.$ac_ext
21334 cat >>conftest.$ac_ext <<_ACEOF
21335 /* end confdefs.h.  */
21336
21337 /* Override any GCC internal prototype to avoid an error.
21338    Use char because int might match the return type of a GCC
21339    builtin and then its argument prototype would still apply.  */
21340 #ifdef __cplusplus
21341 extern "C"
21342 #endif
21343 char shmat ();
21344 int
21345 main ()
21346 {
21347 return shmat ();
21348   ;
21349   return 0;
21350 }
21351 _ACEOF
21352 rm -f conftest.$ac_objext conftest$ac_exeext
21353 if { (ac_try="$ac_link"
21354 case "(($ac_try" in
21355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356   *) ac_try_echo=$ac_try;;
21357 esac
21358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359   (eval "$ac_link") 2>conftest.er1
21360   ac_status=$?
21361   grep -v '^ *+' conftest.er1 >conftest.err
21362   rm -f conftest.er1
21363   cat conftest.err >&5
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); } &&
21366          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21367   { (case "(($ac_try" in
21368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369   *) ac_try_echo=$ac_try;;
21370 esac
21371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21372   (eval "$ac_try") 2>&5
21373   ac_status=$?
21374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375   (exit $ac_status); }; } &&
21376          { ac_try='test -s conftest$ac_exeext'
21377   { (case "(($ac_try" in
21378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21379   *) ac_try_echo=$ac_try;;
21380 esac
21381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21382   (eval "$ac_try") 2>&5
21383   ac_status=$?
21384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385   (exit $ac_status); }; }; then
21386   ac_cv_lib_ipc_shmat=yes
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_cv_lib_ipc_shmat=no
21392 fi
21393
21394 rm -f core conftest.err conftest.$ac_objext \
21395       conftest$ac_exeext conftest.$ac_ext
21396 LIBS=$ac_check_lib_save_LIBS
21397 fi
21398 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21399 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21400 if test $ac_cv_lib_ipc_shmat = yes; then
21401   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21402 fi
21403
21404     fi
21405   fi
21406
21407   # Check for libraries that X11R6 Xt/Xaw programs need.
21408   ac_save_LDFLAGS=$LDFLAGS
21409   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21410   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21411   # check for ICE first), but we must link in the order -lSM -lICE or
21412   # we get undefined symbols.  So assume we have SM if we have ICE.
21413   # These have to be linked with before -lX11, unlike the other
21414   # libraries we check for below, so use a different variable.
21415   # John Interrante, Karl Berry
21416   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21417 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21418 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21419   echo $ECHO_N "(cached) $ECHO_C" >&6
21420 else
21421   ac_check_lib_save_LIBS=$LIBS
21422 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21423 cat >conftest.$ac_ext <<_ACEOF
21424 /* confdefs.h.  */
21425 _ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h.  */
21429
21430 /* Override any GCC internal prototype to avoid an error.
21431    Use char because int might match the return type of a GCC
21432    builtin and then its argument prototype would still apply.  */
21433 #ifdef __cplusplus
21434 extern "C"
21435 #endif
21436 char IceConnectionNumber ();
21437 int
21438 main ()
21439 {
21440 return IceConnectionNumber ();
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext conftest$ac_exeext
21446 if { (ac_try="$ac_link"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_link") 2>conftest.er1
21453   ac_status=$?
21454   grep -v '^ *+' conftest.er1 >conftest.err
21455   rm -f conftest.er1
21456   cat conftest.err >&5
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } &&
21459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21460   { (case "(($ac_try" in
21461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21462   *) ac_try_echo=$ac_try;;
21463 esac
21464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21465   (eval "$ac_try") 2>&5
21466   ac_status=$?
21467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468   (exit $ac_status); }; } &&
21469          { ac_try='test -s conftest$ac_exeext'
21470   { (case "(($ac_try" in
21471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472   *) ac_try_echo=$ac_try;;
21473 esac
21474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21475   (eval "$ac_try") 2>&5
21476   ac_status=$?
21477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21478   (exit $ac_status); }; }; then
21479   ac_cv_lib_ICE_IceConnectionNumber=yes
21480 else
21481   echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21483
21484         ac_cv_lib_ICE_IceConnectionNumber=no
21485 fi
21486
21487 rm -f core conftest.err conftest.$ac_objext \
21488       conftest$ac_exeext conftest.$ac_ext
21489 LIBS=$ac_check_lib_save_LIBS
21490 fi
21491 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21492 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21493 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21494   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21495 fi
21496
21497   LDFLAGS=$ac_save_LDFLAGS
21498
21499 fi
21500
21501
21502
21503
21504
21505
21506
21507
21508
21509
21510
21511
21512
21513
21514
21515
21516
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529 for ac_header in \
21530         assert.h \
21531         fcntl.h \
21532         grp.h \
21533         pwd.h \
21534         libc.h \
21535         limits.h \
21536         stdarg.h \
21537         stdlib.h \
21538         stdint.h \
21539         string.h \
21540         termios.h \
21541         termcap.h \
21542         term.h \
21543         unistd.h \
21544         sys/bitypes.h \
21545         sys/byteorder.h \
21546         sys/ioctl.h \
21547         sys/select.h \
21548         sys/sockio.h \
21549         sys/time.h \
21550         sys/socket.h \
21551         arpa/nameser.h \
21552         resolv.h \
21553         mtio.h \
21554         sys/mtio.h \
21555         sys/tape.h \
21556         regex.h \
21557
21558 do
21559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21561   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21564   echo $ECHO_N "(cached) $ECHO_C" >&6
21565 fi
21566 ac_res=`eval echo '${'$as_ac_Header'}'`
21567                { echo "$as_me:$LINENO: result: $ac_res" >&5
21568 echo "${ECHO_T}$ac_res" >&6; }
21569 else
21570   # Is the header compilable?
21571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21573 cat >conftest.$ac_ext <<_ACEOF
21574 /* confdefs.h.  */
21575 _ACEOF
21576 cat confdefs.h >>conftest.$ac_ext
21577 cat >>conftest.$ac_ext <<_ACEOF
21578 /* end confdefs.h.  */
21579 $ac_includes_default
21580 #include <$ac_header>
21581 _ACEOF
21582 rm -f conftest.$ac_objext
21583 if { (ac_try="$ac_compile"
21584 case "(($ac_try" in
21585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586   *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589   (eval "$ac_compile") 2>conftest.er1
21590   ac_status=$?
21591   grep -v '^ *+' conftest.er1 >conftest.err
21592   rm -f conftest.er1
21593   cat conftest.err >&5
21594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595   (exit $ac_status); } &&
21596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21597   { (case "(($ac_try" in
21598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599   *) ac_try_echo=$ac_try;;
21600 esac
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602   (eval "$ac_try") 2>&5
21603   ac_status=$?
21604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21605   (exit $ac_status); }; } &&
21606          { ac_try='test -s conftest.$ac_objext'
21607   { (case "(($ac_try" in
21608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609   *) ac_try_echo=$ac_try;;
21610 esac
21611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21612   (eval "$ac_try") 2>&5
21613   ac_status=$?
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); }; }; then
21616   ac_header_compiler=yes
21617 else
21618   echo "$as_me: failed program was:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21620
21621         ac_header_compiler=no
21622 fi
21623
21624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21625 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21626 echo "${ECHO_T}$ac_header_compiler" >&6; }
21627
21628 # Is the header present?
21629 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21630 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21631 cat >conftest.$ac_ext <<_ACEOF
21632 /* confdefs.h.  */
21633 _ACEOF
21634 cat confdefs.h >>conftest.$ac_ext
21635 cat >>conftest.$ac_ext <<_ACEOF
21636 /* end confdefs.h.  */
21637 #include <$ac_header>
21638 _ACEOF
21639 if { (ac_try="$ac_cpp conftest.$ac_ext"
21640 case "(($ac_try" in
21641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21642   *) ac_try_echo=$ac_try;;
21643 esac
21644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21645   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21646   ac_status=$?
21647   grep -v '^ *+' conftest.er1 >conftest.err
21648   rm -f conftest.er1
21649   cat conftest.err >&5
21650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651   (exit $ac_status); } >/dev/null; then
21652   if test -s conftest.err; then
21653     ac_cpp_err=$ac_c_preproc_warn_flag
21654     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21655   else
21656     ac_cpp_err=
21657   fi
21658 else
21659   ac_cpp_err=yes
21660 fi
21661 if test -z "$ac_cpp_err"; then
21662   ac_header_preproc=yes
21663 else
21664   echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21666
21667   ac_header_preproc=no
21668 fi
21669
21670 rm -f conftest.err conftest.$ac_ext
21671 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21672 echo "${ECHO_T}$ac_header_preproc" >&6; }
21673
21674 # So?  What about this header?
21675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21676   yes:no: )
21677     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21678 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21679     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21681     ac_header_preproc=yes
21682     ;;
21683   no:yes:* )
21684     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21685 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21686     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21687 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21688     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21689 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21690     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21691 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21692     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21694     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21695 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21696
21697     ;;
21698 esac
21699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21702   echo $ECHO_N "(cached) $ECHO_C" >&6
21703 else
21704   eval "$as_ac_Header=\$ac_header_preproc"
21705 fi
21706 ac_res=`eval echo '${'$as_ac_Header'}'`
21707                { echo "$as_me:$LINENO: result: $ac_res" >&5
21708 echo "${ECHO_T}$ac_res" >&6; }
21709
21710 fi
21711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21712   cat >>confdefs.h <<_ACEOF
21713 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21714 _ACEOF
21715
21716 fi
21717
21718 done
21719
21720 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21721 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21722 if test "${ac_cv_header_stdc+set}" = set; then
21723   echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725   cat >conftest.$ac_ext <<_ACEOF
21726 /* confdefs.h.  */
21727 _ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h.  */
21731 #include <stdlib.h>
21732 #include <stdarg.h>
21733 #include <string.h>
21734 #include <float.h>
21735
21736 int
21737 main ()
21738 {
21739
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_compile") 2>conftest.er1
21752   ac_status=$?
21753   grep -v '^ *+' conftest.er1 >conftest.err
21754   rm -f conftest.er1
21755   cat conftest.err >&5
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } &&
21758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21759   { (case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764   (eval "$ac_try") 2>&5
21765   ac_status=$?
21766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21767   (exit $ac_status); }; } &&
21768          { ac_try='test -s conftest.$ac_objext'
21769   { (case "(($ac_try" in
21770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21771   *) ac_try_echo=$ac_try;;
21772 esac
21773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21774   (eval "$ac_try") 2>&5
21775   ac_status=$?
21776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21777   (exit $ac_status); }; }; then
21778   ac_cv_header_stdc=yes
21779 else
21780   echo "$as_me: failed program was:" >&5
21781 sed 's/^/| /' conftest.$ac_ext >&5
21782
21783         ac_cv_header_stdc=no
21784 fi
21785
21786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21787
21788 if test $ac_cv_header_stdc = yes; then
21789   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21790   cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 #include <string.h>
21797
21798 _ACEOF
21799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21800   $EGREP "memchr" >/dev/null 2>&1; then
21801   :
21802 else
21803   ac_cv_header_stdc=no
21804 fi
21805 rm -f conftest*
21806
21807 fi
21808
21809 if test $ac_cv_header_stdc = yes; then
21810   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21811   cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 #include <stdlib.h>
21818
21819 _ACEOF
21820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21821   $EGREP "free" >/dev/null 2>&1; then
21822   :
21823 else
21824   ac_cv_header_stdc=no
21825 fi
21826 rm -f conftest*
21827
21828 fi
21829
21830 if test $ac_cv_header_stdc = yes; then
21831   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21832   if test "$cross_compiling" = yes; then
21833   :
21834 else
21835   cat >conftest.$ac_ext <<_ACEOF
21836 /* confdefs.h.  */
21837 _ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h.  */
21841 #include <ctype.h>
21842 #include <stdlib.h>
21843 #if ((' ' & 0x0FF) == 0x020)
21844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21846 #else
21847 # define ISLOWER(c) \
21848                    (('a' <= (c) && (c) <= 'i') \
21849                      || ('j' <= (c) && (c) <= 'r') \
21850                      || ('s' <= (c) && (c) <= 'z'))
21851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21852 #endif
21853
21854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21855 int
21856 main ()
21857 {
21858   int i;
21859   for (i = 0; i < 256; i++)
21860     if (XOR (islower (i), ISLOWER (i))
21861         || toupper (i) != TOUPPER (i))
21862       return 2;
21863   return 0;
21864 }
21865 _ACEOF
21866 rm -f conftest$ac_exeext
21867 if { (ac_try="$ac_link"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873   (eval "$ac_link") 2>&5
21874   ac_status=$?
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21877   { (case "(($ac_try" in
21878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879   *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882   (eval "$ac_try") 2>&5
21883   ac_status=$?
21884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885   (exit $ac_status); }; }; then
21886   :
21887 else
21888   echo "$as_me: program exited with status $ac_status" >&5
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21891
21892 ( exit $ac_status )
21893 ac_cv_header_stdc=no
21894 fi
21895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21896 fi
21897
21898
21899 fi
21900 fi
21901 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21902 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21903 if test $ac_cv_header_stdc = yes; then
21904
21905 cat >>confdefs.h <<\_ACEOF
21906 #define STDC_HEADERS 1
21907 _ACEOF
21908
21909 fi
21910
21911 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21912 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21913 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21914   echo $ECHO_N "(cached) $ECHO_C" >&6
21915 else
21916   cat >conftest.$ac_ext <<_ACEOF
21917 /* confdefs.h.  */
21918 _ACEOF
21919 cat confdefs.h >>conftest.$ac_ext
21920 cat >>conftest.$ac_ext <<_ACEOF
21921 /* end confdefs.h.  */
21922 #include <sys/types.h>
21923 int
21924 main ()
21925 {
21926 return makedev(0, 0);
21927   ;
21928   return 0;
21929 }
21930 _ACEOF
21931 rm -f conftest.$ac_objext conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935   *) ac_try_echo=$ac_try;;
21936 esac
21937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21938   (eval "$ac_link") 2>conftest.er1
21939   ac_status=$?
21940   grep -v '^ *+' conftest.er1 >conftest.err
21941   rm -f conftest.er1
21942   cat conftest.err >&5
21943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } &&
21945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21946   { (case "(($ac_try" in
21947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21948   *) ac_try_echo=$ac_try;;
21949 esac
21950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21951   (eval "$ac_try") 2>&5
21952   ac_status=$?
21953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); }; } &&
21955          { ac_try='test -s conftest$ac_exeext'
21956   { (case "(($ac_try" in
21957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21958   *) ac_try_echo=$ac_try;;
21959 esac
21960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21961   (eval "$ac_try") 2>&5
21962   ac_status=$?
21963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964   (exit $ac_status); }; }; then
21965   ac_cv_header_sys_types_h_makedev=yes
21966 else
21967   echo "$as_me: failed program was:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21969
21970         ac_cv_header_sys_types_h_makedev=no
21971 fi
21972
21973 rm -f core conftest.err conftest.$ac_objext \
21974       conftest$ac_exeext conftest.$ac_ext
21975
21976 fi
21977 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21978 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21979
21980 if test $ac_cv_header_sys_types_h_makedev = no; then
21981 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21982   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21983 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21984 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21985   echo $ECHO_N "(cached) $ECHO_C" >&6
21986 fi
21987 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21988 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21989 else
21990   # Is the header compilable?
21991 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21992 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21993 cat >conftest.$ac_ext <<_ACEOF
21994 /* confdefs.h.  */
21995 _ACEOF
21996 cat confdefs.h >>conftest.$ac_ext
21997 cat >>conftest.$ac_ext <<_ACEOF
21998 /* end confdefs.h.  */
21999 $ac_includes_default
22000 #include <sys/mkdev.h>
22001 _ACEOF
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006   *) ac_try_echo=$ac_try;;
22007 esac
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009   (eval "$ac_compile") 2>conftest.er1
22010   ac_status=$?
22011   grep -v '^ *+' conftest.er1 >conftest.err
22012   rm -f conftest.er1
22013   cat conftest.err >&5
22014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015   (exit $ac_status); } &&
22016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22017   { (case "(($ac_try" in
22018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22019   *) ac_try_echo=$ac_try;;
22020 esac
22021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22022   (eval "$ac_try") 2>&5
22023   ac_status=$?
22024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22025   (exit $ac_status); }; } &&
22026          { ac_try='test -s conftest.$ac_objext'
22027   { (case "(($ac_try" in
22028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22029   *) ac_try_echo=$ac_try;;
22030 esac
22031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22032   (eval "$ac_try") 2>&5
22033   ac_status=$?
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); }; }; then
22036   ac_header_compiler=yes
22037 else
22038   echo "$as_me: failed program was:" >&5
22039 sed 's/^/| /' conftest.$ac_ext >&5
22040
22041         ac_header_compiler=no
22042 fi
22043
22044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22046 echo "${ECHO_T}$ac_header_compiler" >&6; }
22047
22048 # Is the header present?
22049 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22050 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h.  */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h.  */
22057 #include <sys/mkdev.h>
22058 _ACEOF
22059 if { (ac_try="$ac_cpp conftest.$ac_ext"
22060 case "(($ac_try" in
22061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22062   *) ac_try_echo=$ac_try;;
22063 esac
22064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22066   ac_status=$?
22067   grep -v '^ *+' conftest.er1 >conftest.err
22068   rm -f conftest.er1
22069   cat conftest.err >&5
22070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22071   (exit $ac_status); } >/dev/null; then
22072   if test -s conftest.err; then
22073     ac_cpp_err=$ac_c_preproc_warn_flag
22074     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22075   else
22076     ac_cpp_err=
22077   fi
22078 else
22079   ac_cpp_err=yes
22080 fi
22081 if test -z "$ac_cpp_err"; then
22082   ac_header_preproc=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087   ac_header_preproc=no
22088 fi
22089
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22093
22094 # So?  What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22096   yes:no: )
22097     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22101     ac_header_preproc=yes
22102     ;;
22103   no:yes:* )
22104     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22110     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22112     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22114     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22116
22117     ;;
22118 esac
22119 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22120 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22121 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124   ac_cv_header_sys_mkdev_h=$ac_header_preproc
22125 fi
22126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22127 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22128
22129 fi
22130 if test $ac_cv_header_sys_mkdev_h = yes; then
22131
22132 cat >>confdefs.h <<\_ACEOF
22133 #define MAJOR_IN_MKDEV 1
22134 _ACEOF
22135
22136 fi
22137
22138
22139
22140   if test $ac_cv_header_sys_mkdev_h = no; then
22141     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22142   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22143 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22144 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22145   echo $ECHO_N "(cached) $ECHO_C" >&6
22146 fi
22147 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22148 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22149 else
22150   # Is the header compilable?
22151 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22152 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22153 cat >conftest.$ac_ext <<_ACEOF
22154 /* confdefs.h.  */
22155 _ACEOF
22156 cat confdefs.h >>conftest.$ac_ext
22157 cat >>conftest.$ac_ext <<_ACEOF
22158 /* end confdefs.h.  */
22159 $ac_includes_default
22160 #include <sys/sysmacros.h>
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166   *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169   (eval "$ac_compile") 2>conftest.er1
22170   ac_status=$?
22171   grep -v '^ *+' conftest.er1 >conftest.err
22172   rm -f conftest.er1
22173   cat conftest.err >&5
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); } &&
22176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22177   { (case "(($ac_try" in
22178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22179   *) ac_try_echo=$ac_try;;
22180 esac
22181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22182   (eval "$ac_try") 2>&5
22183   ac_status=$?
22184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22185   (exit $ac_status); }; } &&
22186          { ac_try='test -s conftest.$ac_objext'
22187   { (case "(($ac_try" in
22188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189   *) ac_try_echo=$ac_try;;
22190 esac
22191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22192   (eval "$ac_try") 2>&5
22193   ac_status=$?
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); }; }; then
22196   ac_header_compiler=yes
22197 else
22198   echo "$as_me: failed program was:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22200
22201         ac_header_compiler=no
22202 fi
22203
22204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22206 echo "${ECHO_T}$ac_header_compiler" >&6; }
22207
22208 # Is the header present?
22209 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22210 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22211 cat >conftest.$ac_ext <<_ACEOF
22212 /* confdefs.h.  */
22213 _ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h.  */
22217 #include <sys/sysmacros.h>
22218 _ACEOF
22219 if { (ac_try="$ac_cpp conftest.$ac_ext"
22220 case "(($ac_try" in
22221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222   *) ac_try_echo=$ac_try;;
22223 esac
22224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22225   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22226   ac_status=$?
22227   grep -v '^ *+' conftest.er1 >conftest.err
22228   rm -f conftest.er1
22229   cat conftest.err >&5
22230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231   (exit $ac_status); } >/dev/null; then
22232   if test -s conftest.err; then
22233     ac_cpp_err=$ac_c_preproc_warn_flag
22234     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22235   else
22236     ac_cpp_err=
22237   fi
22238 else
22239   ac_cpp_err=yes
22240 fi
22241 if test -z "$ac_cpp_err"; then
22242   ac_header_preproc=yes
22243 else
22244   echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247   ac_header_preproc=no
22248 fi
22249
22250 rm -f conftest.err conftest.$ac_ext
22251 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22252 echo "${ECHO_T}$ac_header_preproc" >&6; }
22253
22254 # So?  What about this header?
22255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22256   yes:no: )
22257     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22258 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22259     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22260 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22261     ac_header_preproc=yes
22262     ;;
22263   no:yes:* )
22264     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22265 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22266     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22267 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22268     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22269 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22270     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22271 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22272     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22273 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22274     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22275 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22276
22277     ;;
22278 esac
22279 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22280 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22281 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22282   echo $ECHO_N "(cached) $ECHO_C" >&6
22283 else
22284   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22285 fi
22286 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22287 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22288
22289 fi
22290 if test $ac_cv_header_sys_sysmacros_h = yes; then
22291
22292 cat >>confdefs.h <<\_ACEOF
22293 #define MAJOR_IN_SYSMACROS 1
22294 _ACEOF
22295
22296 fi
22297
22298
22299   fi
22300 fi
22301
22302
22303
22304
22305
22306
22307 ac_header_dirent=no
22308 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22309   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22310 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22311 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22313   echo $ECHO_N "(cached) $ECHO_C" >&6
22314 else
22315   cat >conftest.$ac_ext <<_ACEOF
22316 /* confdefs.h.  */
22317 _ACEOF
22318 cat confdefs.h >>conftest.$ac_ext
22319 cat >>conftest.$ac_ext <<_ACEOF
22320 /* end confdefs.h.  */
22321 #include <sys/types.h>
22322 #include <$ac_hdr>
22323
22324 int
22325 main ()
22326 {
22327 if ((DIR *) 0)
22328 return 0;
22329   ;
22330   return 0;
22331 }
22332 _ACEOF
22333 rm -f conftest.$ac_objext
22334 if { (ac_try="$ac_compile"
22335 case "(($ac_try" in
22336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22337   *) ac_try_echo=$ac_try;;
22338 esac
22339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22340   (eval "$ac_compile") 2>conftest.er1
22341   ac_status=$?
22342   grep -v '^ *+' conftest.er1 >conftest.err
22343   rm -f conftest.er1
22344   cat conftest.err >&5
22345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346   (exit $ac_status); } &&
22347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22348   { (case "(($ac_try" in
22349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350   *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353   (eval "$ac_try") 2>&5
22354   ac_status=$?
22355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356   (exit $ac_status); }; } &&
22357          { ac_try='test -s conftest.$ac_objext'
22358   { (case "(($ac_try" in
22359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22360   *) ac_try_echo=$ac_try;;
22361 esac
22362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22363   (eval "$ac_try") 2>&5
22364   ac_status=$?
22365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366   (exit $ac_status); }; }; then
22367   eval "$as_ac_Header=yes"
22368 else
22369   echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372         eval "$as_ac_Header=no"
22373 fi
22374
22375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22376 fi
22377 ac_res=`eval echo '${'$as_ac_Header'}'`
22378                { echo "$as_me:$LINENO: result: $ac_res" >&5
22379 echo "${ECHO_T}$ac_res" >&6; }
22380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22381   cat >>confdefs.h <<_ACEOF
22382 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22383 _ACEOF
22384
22385 ac_header_dirent=$ac_hdr; break
22386 fi
22387
22388 done
22389 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22390 if test $ac_header_dirent = dirent.h; then
22391   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22392 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22393 if test "${ac_cv_search_opendir+set}" = set; then
22394   echo $ECHO_N "(cached) $ECHO_C" >&6
22395 else
22396   ac_func_search_save_LIBS=$LIBS
22397 cat >conftest.$ac_ext <<_ACEOF
22398 /* confdefs.h.  */
22399 _ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h.  */
22403
22404 /* Override any GCC internal prototype to avoid an error.
22405    Use char because int might match the return type of a GCC
22406    builtin and then its argument prototype would still apply.  */
22407 #ifdef __cplusplus
22408 extern "C"
22409 #endif
22410 char opendir ();
22411 int
22412 main ()
22413 {
22414 return opendir ();
22415   ;
22416   return 0;
22417 }
22418 _ACEOF
22419 for ac_lib in '' dir; do
22420   if test -z "$ac_lib"; then
22421     ac_res="none required"
22422   else
22423     ac_res=-l$ac_lib
22424     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22425   fi
22426   rm -f conftest.$ac_objext conftest$ac_exeext
22427 if { (ac_try="$ac_link"
22428 case "(($ac_try" in
22429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430   *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433   (eval "$ac_link") 2>conftest.er1
22434   ac_status=$?
22435   grep -v '^ *+' conftest.er1 >conftest.err
22436   rm -f conftest.er1
22437   cat conftest.err >&5
22438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439   (exit $ac_status); } &&
22440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22441   { (case "(($ac_try" in
22442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22443   *) ac_try_echo=$ac_try;;
22444 esac
22445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22446   (eval "$ac_try") 2>&5
22447   ac_status=$?
22448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449   (exit $ac_status); }; } &&
22450          { ac_try='test -s conftest$ac_exeext'
22451   { (case "(($ac_try" in
22452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22453   *) ac_try_echo=$ac_try;;
22454 esac
22455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22456   (eval "$ac_try") 2>&5
22457   ac_status=$?
22458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22459   (exit $ac_status); }; }; then
22460   ac_cv_search_opendir=$ac_res
22461 else
22462   echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465
22466 fi
22467
22468 rm -f core conftest.err conftest.$ac_objext \
22469       conftest$ac_exeext
22470   if test "${ac_cv_search_opendir+set}" = set; then
22471   break
22472 fi
22473 done
22474 if test "${ac_cv_search_opendir+set}" = set; then
22475   :
22476 else
22477   ac_cv_search_opendir=no
22478 fi
22479 rm conftest.$ac_ext
22480 LIBS=$ac_func_search_save_LIBS
22481 fi
22482 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22483 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22484 ac_res=$ac_cv_search_opendir
22485 if test "$ac_res" != no; then
22486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22487
22488 fi
22489
22490 else
22491   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22492 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22493 if test "${ac_cv_search_opendir+set}" = set; then
22494   echo $ECHO_N "(cached) $ECHO_C" >&6
22495 else
22496   ac_func_search_save_LIBS=$LIBS
22497 cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503
22504 /* Override any GCC internal prototype to avoid an error.
22505    Use char because int might match the return type of a GCC
22506    builtin and then its argument prototype would still apply.  */
22507 #ifdef __cplusplus
22508 extern "C"
22509 #endif
22510 char opendir ();
22511 int
22512 main ()
22513 {
22514 return opendir ();
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 for ac_lib in '' x; do
22520   if test -z "$ac_lib"; then
22521     ac_res="none required"
22522   else
22523     ac_res=-l$ac_lib
22524     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22525   fi
22526   rm -f conftest.$ac_objext conftest$ac_exeext
22527 if { (ac_try="$ac_link"
22528 case "(($ac_try" in
22529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22530   *) ac_try_echo=$ac_try;;
22531 esac
22532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22533   (eval "$ac_link") 2>conftest.er1
22534   ac_status=$?
22535   grep -v '^ *+' conftest.er1 >conftest.err
22536   rm -f conftest.er1
22537   cat conftest.err >&5
22538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539   (exit $ac_status); } &&
22540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22541   { (case "(($ac_try" in
22542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543   *) ac_try_echo=$ac_try;;
22544 esac
22545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22546   (eval "$ac_try") 2>&5
22547   ac_status=$?
22548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549   (exit $ac_status); }; } &&
22550          { ac_try='test -s conftest$ac_exeext'
22551   { (case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556   (eval "$ac_try") 2>&5
22557   ac_status=$?
22558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559   (exit $ac_status); }; }; then
22560   ac_cv_search_opendir=$ac_res
22561 else
22562   echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22564
22565
22566 fi
22567
22568 rm -f core conftest.err conftest.$ac_objext \
22569       conftest$ac_exeext
22570   if test "${ac_cv_search_opendir+set}" = set; then
22571   break
22572 fi
22573 done
22574 if test "${ac_cv_search_opendir+set}" = set; then
22575   :
22576 else
22577   ac_cv_search_opendir=no
22578 fi
22579 rm conftest.$ac_ext
22580 LIBS=$ac_func_search_save_LIBS
22581 fi
22582 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22583 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22584 ac_res=$ac_cv_search_opendir
22585 if test "$ac_res" != no; then
22586   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22587
22588 fi
22589
22590 fi
22591
22592 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22593 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22594 if test "${ac_cv_header_stat_broken+set}" = set; then
22595   echo $ECHO_N "(cached) $ECHO_C" >&6
22596 else
22597   cat >conftest.$ac_ext <<_ACEOF
22598 /* confdefs.h.  */
22599 _ACEOF
22600 cat confdefs.h >>conftest.$ac_ext
22601 cat >>conftest.$ac_ext <<_ACEOF
22602 /* end confdefs.h.  */
22603 #include <sys/types.h>
22604 #include <sys/stat.h>
22605
22606 #if defined S_ISBLK && defined S_IFDIR
22607 # if S_ISBLK (S_IFDIR)
22608 You lose.
22609 # endif
22610 #endif
22611
22612 #if defined S_ISBLK && defined S_IFCHR
22613 # if S_ISBLK (S_IFCHR)
22614 You lose.
22615 # endif
22616 #endif
22617
22618 #if defined S_ISLNK && defined S_IFREG
22619 # if S_ISLNK (S_IFREG)
22620 You lose.
22621 # endif
22622 #endif
22623
22624 #if defined S_ISSOCK && defined S_IFREG
22625 # if S_ISSOCK (S_IFREG)
22626 You lose.
22627 # endif
22628 #endif
22629
22630 _ACEOF
22631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22632   $EGREP "You lose" >/dev/null 2>&1; then
22633   ac_cv_header_stat_broken=yes
22634 else
22635   ac_cv_header_stat_broken=no
22636 fi
22637 rm -f conftest*
22638
22639 fi
22640 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22641 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22642 if test $ac_cv_header_stat_broken = yes; then
22643
22644 cat >>confdefs.h <<\_ACEOF
22645 #define STAT_MACROS_BROKEN 1
22646 _ACEOF
22647
22648 fi
22649
22650 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22651 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22652 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22653   echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655   cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h.  */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h.  */
22661 #include <sys/types.h>
22662 #include <sys/wait.h>
22663 #ifndef WEXITSTATUS
22664 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22665 #endif
22666 #ifndef WIFEXITED
22667 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22668 #endif
22669
22670 int
22671 main ()
22672 {
22673   int s;
22674   wait (&s);
22675   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22676   ;
22677   return 0;
22678 }
22679 _ACEOF
22680 rm -f conftest.$ac_objext
22681 if { (ac_try="$ac_compile"
22682 case "(($ac_try" in
22683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22684   *) ac_try_echo=$ac_try;;
22685 esac
22686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22687   (eval "$ac_compile") 2>conftest.er1
22688   ac_status=$?
22689   grep -v '^ *+' conftest.er1 >conftest.err
22690   rm -f conftest.er1
22691   cat conftest.err >&5
22692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22693   (exit $ac_status); } &&
22694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22695   { (case "(($ac_try" in
22696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22697   *) ac_try_echo=$ac_try;;
22698 esac
22699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22700   (eval "$ac_try") 2>&5
22701   ac_status=$?
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); }; } &&
22704          { ac_try='test -s conftest.$ac_objext'
22705   { (case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_try") 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; }; then
22714   ac_cv_header_sys_wait_h=yes
22715 else
22716   echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719         ac_cv_header_sys_wait_h=no
22720 fi
22721
22722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22723 fi
22724 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22725 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22726 if test $ac_cv_header_sys_wait_h = yes; then
22727
22728 cat >>confdefs.h <<\_ACEOF
22729 #define HAVE_SYS_WAIT_H 1
22730 _ACEOF
22731
22732 fi
22733
22734 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22735 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22736 if test "${ac_cv_header_time+set}" = set; then
22737   echo $ECHO_N "(cached) $ECHO_C" >&6
22738 else
22739   cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745 #include <sys/types.h>
22746 #include <sys/time.h>
22747 #include <time.h>
22748
22749 int
22750 main ()
22751 {
22752 if ((struct tm *) 0)
22753 return 0;
22754   ;
22755   return 0;
22756 }
22757 _ACEOF
22758 rm -f conftest.$ac_objext
22759 if { (ac_try="$ac_compile"
22760 case "(($ac_try" in
22761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762   *) ac_try_echo=$ac_try;;
22763 esac
22764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22765   (eval "$ac_compile") 2>conftest.er1
22766   ac_status=$?
22767   grep -v '^ *+' conftest.er1 >conftest.err
22768   rm -f conftest.er1
22769   cat conftest.err >&5
22770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771   (exit $ac_status); } &&
22772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22773   { (case "(($ac_try" in
22774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22775   *) ac_try_echo=$ac_try;;
22776 esac
22777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22778   (eval "$ac_try") 2>&5
22779   ac_status=$?
22780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781   (exit $ac_status); }; } &&
22782          { ac_try='test -s conftest.$ac_objext'
22783   { (case "(($ac_try" in
22784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785   *) ac_try_echo=$ac_try;;
22786 esac
22787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22788   (eval "$ac_try") 2>&5
22789   ac_status=$?
22790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791   (exit $ac_status); }; }; then
22792   ac_cv_header_time=yes
22793 else
22794   echo "$as_me: failed program was:" >&5
22795 sed 's/^/| /' conftest.$ac_ext >&5
22796
22797         ac_cv_header_time=no
22798 fi
22799
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22801 fi
22802 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22803 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22804 if test $ac_cv_header_time = yes; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define TIME_WITH_SYS_TIME 1
22808 _ACEOF
22809
22810 fi
22811
22812 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22813 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22814 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22815   echo $ECHO_N "(cached) $ECHO_C" >&6
22816 else
22817   cat >conftest.$ac_ext <<_ACEOF
22818 /* confdefs.h.  */
22819 _ACEOF
22820 cat confdefs.h >>conftest.$ac_ext
22821 cat >>conftest.$ac_ext <<_ACEOF
22822 /* end confdefs.h.  */
22823 $ac_includes_default
22824 int
22825 main ()
22826 {
22827 static struct stat ac_aggr;
22828 if (ac_aggr.st_blksize)
22829 return 0;
22830   ;
22831   return 0;
22832 }
22833 _ACEOF
22834 rm -f conftest.$ac_objext
22835 if { (ac_try="$ac_compile"
22836 case "(($ac_try" in
22837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22838   *) ac_try_echo=$ac_try;;
22839 esac
22840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22841   (eval "$ac_compile") 2>conftest.er1
22842   ac_status=$?
22843   grep -v '^ *+' conftest.er1 >conftest.err
22844   rm -f conftest.er1
22845   cat conftest.err >&5
22846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847   (exit $ac_status); } &&
22848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22849   { (case "(($ac_try" in
22850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851   *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854   (eval "$ac_try") 2>&5
22855   ac_status=$?
22856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857   (exit $ac_status); }; } &&
22858          { ac_try='test -s conftest.$ac_objext'
22859   { (case "(($ac_try" in
22860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861   *) ac_try_echo=$ac_try;;
22862 esac
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864   (eval "$ac_try") 2>&5
22865   ac_status=$?
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); }; }; then
22868   ac_cv_member_struct_stat_st_blksize=yes
22869 else
22870   echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873         cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h.  */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h.  */
22879 $ac_includes_default
22880 int
22881 main ()
22882 {
22883 static struct stat ac_aggr;
22884 if (sizeof ac_aggr.st_blksize)
22885 return 0;
22886   ;
22887   return 0;
22888 }
22889 _ACEOF
22890 rm -f conftest.$ac_objext
22891 if { (ac_try="$ac_compile"
22892 case "(($ac_try" in
22893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22894   *) ac_try_echo=$ac_try;;
22895 esac
22896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22897   (eval "$ac_compile") 2>conftest.er1
22898   ac_status=$?
22899   grep -v '^ *+' conftest.er1 >conftest.err
22900   rm -f conftest.er1
22901   cat conftest.err >&5
22902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903   (exit $ac_status); } &&
22904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22905   { (case "(($ac_try" in
22906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907   *) ac_try_echo=$ac_try;;
22908 esac
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910   (eval "$ac_try") 2>&5
22911   ac_status=$?
22912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913   (exit $ac_status); }; } &&
22914          { ac_try='test -s conftest.$ac_objext'
22915   { (case "(($ac_try" in
22916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22917   *) ac_try_echo=$ac_try;;
22918 esac
22919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22920   (eval "$ac_try") 2>&5
22921   ac_status=$?
22922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923   (exit $ac_status); }; }; then
22924   ac_cv_member_struct_stat_st_blksize=yes
22925 else
22926   echo "$as_me: failed program was:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22928
22929         ac_cv_member_struct_stat_st_blksize=no
22930 fi
22931
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 fi
22934
22935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22936 fi
22937 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22938 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22939 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22943 _ACEOF
22944
22945
22946 cat >>confdefs.h <<\_ACEOF
22947 #define HAVE_ST_BLKSIZE 1
22948 _ACEOF
22949
22950 fi
22951
22952
22953 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22954 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22955 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22956   echo $ECHO_N "(cached) $ECHO_C" >&6
22957 else
22958   cat >conftest.$ac_ext <<_ACEOF
22959 /* confdefs.h.  */
22960 _ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h.  */
22964 $ac_includes_default
22965 int
22966 main ()
22967 {
22968 static struct stat ac_aggr;
22969 if (ac_aggr.st_blocks)
22970 return 0;
22971   ;
22972   return 0;
22973 }
22974 _ACEOF
22975 rm -f conftest.$ac_objext
22976 if { (ac_try="$ac_compile"
22977 case "(($ac_try" in
22978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979   *) ac_try_echo=$ac_try;;
22980 esac
22981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22982   (eval "$ac_compile") 2>conftest.er1
22983   ac_status=$?
22984   grep -v '^ *+' conftest.er1 >conftest.err
22985   rm -f conftest.er1
22986   cat conftest.err >&5
22987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22988   (exit $ac_status); } &&
22989          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22990   { (case "(($ac_try" in
22991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992   *) ac_try_echo=$ac_try;;
22993 esac
22994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22995   (eval "$ac_try") 2>&5
22996   ac_status=$?
22997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998   (exit $ac_status); }; } &&
22999          { ac_try='test -s conftest.$ac_objext'
23000   { (case "(($ac_try" in
23001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23002   *) ac_try_echo=$ac_try;;
23003 esac
23004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23005   (eval "$ac_try") 2>&5
23006   ac_status=$?
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); }; }; then
23009   ac_cv_member_struct_stat_st_blocks=yes
23010 else
23011   echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.$ac_ext >&5
23013
23014         cat >conftest.$ac_ext <<_ACEOF
23015 /* confdefs.h.  */
23016 _ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h.  */
23020 $ac_includes_default
23021 int
23022 main ()
23023 {
23024 static struct stat ac_aggr;
23025 if (sizeof ac_aggr.st_blocks)
23026 return 0;
23027   ;
23028   return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035   *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038   (eval "$ac_compile") 2>conftest.er1
23039   ac_status=$?
23040   grep -v '^ *+' conftest.er1 >conftest.err
23041   rm -f conftest.er1
23042   cat conftest.err >&5
23043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044   (exit $ac_status); } &&
23045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23046   { (case "(($ac_try" in
23047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23048   *) ac_try_echo=$ac_try;;
23049 esac
23050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23051   (eval "$ac_try") 2>&5
23052   ac_status=$?
23053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054   (exit $ac_status); }; } &&
23055          { ac_try='test -s conftest.$ac_objext'
23056   { (case "(($ac_try" in
23057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058   *) ac_try_echo=$ac_try;;
23059 esac
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061   (eval "$ac_try") 2>&5
23062   ac_status=$?
23063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064   (exit $ac_status); }; }; then
23065   ac_cv_member_struct_stat_st_blocks=yes
23066 else
23067   echo "$as_me: failed program was:" >&5
23068 sed 's/^/| /' conftest.$ac_ext >&5
23069
23070         ac_cv_member_struct_stat_st_blocks=no
23071 fi
23072
23073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23074 fi
23075
23076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23077 fi
23078 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23079 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23080 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23081
23082 cat >>confdefs.h <<_ACEOF
23083 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23084 _ACEOF
23085
23086
23087 cat >>confdefs.h <<\_ACEOF
23088 #define HAVE_ST_BLOCKS 1
23089 _ACEOF
23090
23091 else
23092   case " $LIBOBJS " in
23093   *" fileblocks.$ac_objext "* ) ;;
23094   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23095  ;;
23096 esac
23097
23098 fi
23099
23100
23101 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23102 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23103 if test "${ac_cv_struct_tm+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 <sys/types.h>
23113 #include <time.h>
23114
23115 int
23116 main ()
23117 {
23118 struct tm *tp; tp->tm_sec;
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext
23124 if { (ac_try="$ac_compile"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_compile") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } &&
23137          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23138   { (case "(($ac_try" in
23139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140   *) ac_try_echo=$ac_try;;
23141 esac
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143   (eval "$ac_try") 2>&5
23144   ac_status=$?
23145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146   (exit $ac_status); }; } &&
23147          { ac_try='test -s conftest.$ac_objext'
23148   { (case "(($ac_try" in
23149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23150   *) ac_try_echo=$ac_try;;
23151 esac
23152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23153   (eval "$ac_try") 2>&5
23154   ac_status=$?
23155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156   (exit $ac_status); }; }; then
23157   ac_cv_struct_tm=time.h
23158 else
23159   echo "$as_me: failed program was:" >&5
23160 sed 's/^/| /' conftest.$ac_ext >&5
23161
23162         ac_cv_struct_tm=sys/time.h
23163 fi
23164
23165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23166 fi
23167 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23168 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23169 if test $ac_cv_struct_tm = sys/time.h; then
23170
23171 cat >>confdefs.h <<\_ACEOF
23172 #define TM_IN_SYS_TIME 1
23173 _ACEOF
23174
23175 fi
23176
23177 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23178 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23179 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182   cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 #include <sys/types.h>
23189 #include <$ac_cv_struct_tm>
23190
23191
23192 int
23193 main ()
23194 {
23195 static struct tm ac_aggr;
23196 if (ac_aggr.tm_zone)
23197 return 0;
23198   ;
23199   return 0;
23200 }
23201 _ACEOF
23202 rm -f conftest.$ac_objext
23203 if { (ac_try="$ac_compile"
23204 case "(($ac_try" in
23205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23206   *) ac_try_echo=$ac_try;;
23207 esac
23208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23209   (eval "$ac_compile") 2>conftest.er1
23210   ac_status=$?
23211   grep -v '^ *+' conftest.er1 >conftest.err
23212   rm -f conftest.er1
23213   cat conftest.err >&5
23214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23215   (exit $ac_status); } &&
23216          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23217   { (case "(($ac_try" in
23218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23219   *) ac_try_echo=$ac_try;;
23220 esac
23221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23222   (eval "$ac_try") 2>&5
23223   ac_status=$?
23224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225   (exit $ac_status); }; } &&
23226          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23236   ac_cv_member_struct_tm_tm_zone=yes
23237 else
23238   echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23240
23241         cat >conftest.$ac_ext <<_ACEOF
23242 /* confdefs.h.  */
23243 _ACEOF
23244 cat confdefs.h >>conftest.$ac_ext
23245 cat >>conftest.$ac_ext <<_ACEOF
23246 /* end confdefs.h.  */
23247 #include <sys/types.h>
23248 #include <$ac_cv_struct_tm>
23249
23250
23251 int
23252 main ()
23253 {
23254 static struct tm ac_aggr;
23255 if (sizeof ac_aggr.tm_zone)
23256 return 0;
23257   ;
23258   return 0;
23259 }
23260 _ACEOF
23261 rm -f conftest.$ac_objext
23262 if { (ac_try="$ac_compile"
23263 case "(($ac_try" in
23264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23265   *) ac_try_echo=$ac_try;;
23266 esac
23267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23268   (eval "$ac_compile") 2>conftest.er1
23269   ac_status=$?
23270   grep -v '^ *+' conftest.er1 >conftest.err
23271   rm -f conftest.er1
23272   cat conftest.err >&5
23273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274   (exit $ac_status); } &&
23275          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23276   { (case "(($ac_try" in
23277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278   *) ac_try_echo=$ac_try;;
23279 esac
23280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23281   (eval "$ac_try") 2>&5
23282   ac_status=$?
23283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284   (exit $ac_status); }; } &&
23285          { ac_try='test -s conftest.$ac_objext'
23286   { (case "(($ac_try" in
23287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23288   *) ac_try_echo=$ac_try;;
23289 esac
23290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23291   (eval "$ac_try") 2>&5
23292   ac_status=$?
23293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294   (exit $ac_status); }; }; then
23295   ac_cv_member_struct_tm_tm_zone=yes
23296 else
23297   echo "$as_me: failed program was:" >&5
23298 sed 's/^/| /' conftest.$ac_ext >&5
23299
23300         ac_cv_member_struct_tm_tm_zone=no
23301 fi
23302
23303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304 fi
23305
23306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307 fi
23308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23309 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23310 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23311
23312 cat >>confdefs.h <<_ACEOF
23313 #define HAVE_STRUCT_TM_TM_ZONE 1
23314 _ACEOF
23315
23316
23317 fi
23318
23319 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23320
23321 cat >>confdefs.h <<\_ACEOF
23322 #define HAVE_TM_ZONE 1
23323 _ACEOF
23324
23325 else
23326   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23327 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23328 if test "${ac_cv_have_decl_tzname+set}" = set; then
23329   echo $ECHO_N "(cached) $ECHO_C" >&6
23330 else
23331   cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h.  */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h.  */
23337 #include <time.h>
23338
23339 int
23340 main ()
23341 {
23342 #ifndef tzname
23343   char *p = (char *) tzname;
23344   return !p;
23345 #endif
23346
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358   (eval "$ac_compile") 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } &&
23365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
23372   ac_status=$?
23373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374   (exit $ac_status); }; } &&
23375          { ac_try='test -s conftest.$ac_objext'
23376   { (case "(($ac_try" in
23377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378   *) ac_try_echo=$ac_try;;
23379 esac
23380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23381   (eval "$ac_try") 2>&5
23382   ac_status=$?
23383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23384   (exit $ac_status); }; }; then
23385   ac_cv_have_decl_tzname=yes
23386 else
23387   echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390         ac_cv_have_decl_tzname=no
23391 fi
23392
23393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23394 fi
23395 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23396 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23397 if test $ac_cv_have_decl_tzname = yes; then
23398
23399 cat >>confdefs.h <<_ACEOF
23400 #define HAVE_DECL_TZNAME 1
23401 _ACEOF
23402
23403
23404 else
23405   cat >>confdefs.h <<_ACEOF
23406 #define HAVE_DECL_TZNAME 0
23407 _ACEOF
23408
23409
23410 fi
23411
23412
23413   { echo "$as_me:$LINENO: checking for tzname" >&5
23414 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23415 if test "${ac_cv_var_tzname+set}" = set; then
23416   echo $ECHO_N "(cached) $ECHO_C" >&6
23417 else
23418   cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h.  */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h.  */
23424 #include <time.h>
23425 #if !HAVE_DECL_TZNAME
23426 extern char *tzname[];
23427 #endif
23428
23429 int
23430 main ()
23431 {
23432 return tzname[0][0];
23433   ;
23434   return 0;
23435 }
23436 _ACEOF
23437 rm -f conftest.$ac_objext conftest$ac_exeext
23438 if { (ac_try="$ac_link"
23439 case "(($ac_try" in
23440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441   *) ac_try_echo=$ac_try;;
23442 esac
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444   (eval "$ac_link") 2>conftest.er1
23445   ac_status=$?
23446   grep -v '^ *+' conftest.er1 >conftest.err
23447   rm -f conftest.er1
23448   cat conftest.err >&5
23449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450   (exit $ac_status); } &&
23451          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23452   { (case "(($ac_try" in
23453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454   *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457   (eval "$ac_try") 2>&5
23458   ac_status=$?
23459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460   (exit $ac_status); }; } &&
23461          { ac_try='test -s conftest$ac_exeext'
23462   { (case "(($ac_try" in
23463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464   *) ac_try_echo=$ac_try;;
23465 esac
23466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23467   (eval "$ac_try") 2>&5
23468   ac_status=$?
23469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470   (exit $ac_status); }; }; then
23471   ac_cv_var_tzname=yes
23472 else
23473   echo "$as_me: failed program was:" >&5
23474 sed 's/^/| /' conftest.$ac_ext >&5
23475
23476         ac_cv_var_tzname=no
23477 fi
23478
23479 rm -f core conftest.err conftest.$ac_objext \
23480       conftest$ac_exeext conftest.$ac_ext
23481 fi
23482 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23483 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23484   if test $ac_cv_var_tzname = yes; then
23485
23486 cat >>confdefs.h <<\_ACEOF
23487 #define HAVE_TZNAME 1
23488 _ACEOF
23489
23490   fi
23491 fi
23492
23493
23494 { echo "$as_me:$LINENO: checking for utime.h" >&5
23495 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23496 if test "${ba_cv_header_utime_h+set}" = set; then
23497   echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499   cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505
23506 #include <sys/types.h>
23507 #include <utime.h>
23508 int
23509 main ()
23510 {
23511 struct utimbuf foo
23512   ;
23513   return 0;
23514 }
23515 _ACEOF
23516 rm -f conftest.$ac_objext
23517 if { (ac_try="$ac_compile"
23518 case "(($ac_try" in
23519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520   *) ac_try_echo=$ac_try;;
23521 esac
23522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23523   (eval "$ac_compile") 2>conftest.er1
23524   ac_status=$?
23525   grep -v '^ *+' conftest.er1 >conftest.err
23526   rm -f conftest.er1
23527   cat conftest.err >&5
23528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529   (exit $ac_status); } &&
23530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23531   { (case "(($ac_try" in
23532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533   *) ac_try_echo=$ac_try;;
23534 esac
23535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23536   (eval "$ac_try") 2>&5
23537   ac_status=$?
23538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539   (exit $ac_status); }; } &&
23540          { ac_try='test -s conftest.$ac_objext'
23541   { (case "(($ac_try" in
23542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23543   *) ac_try_echo=$ac_try;;
23544 esac
23545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23546   (eval "$ac_try") 2>&5
23547   ac_status=$?
23548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549   (exit $ac_status); }; }; then
23550   ba_cv_header_utime_h=yes
23551 else
23552   echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23554
23555         ba_cv_header_utime_h=no
23556 fi
23557
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 fi
23560 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23561 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23562 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23563 #define HAVE_UTIME_H 1
23564 _ACEOF
23565
23566
23567 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23568 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23569 if test "${ba_cv_header_socklen_t+set}" = set; then
23570   echo $ECHO_N "(cached) $ECHO_C" >&6
23571 else
23572   cat >conftest.$ac_ext <<_ACEOF
23573 /* confdefs.h.  */
23574 _ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h.  */
23578
23579 #include <sys/types.h>
23580 #include <sys/socket.h>
23581 int
23582 main ()
23583 {
23584 socklen_t x
23585   ;
23586   return 0;
23587 }
23588 _ACEOF
23589 rm -f conftest.$ac_objext
23590 if { (ac_try="$ac_compile"
23591 case "(($ac_try" in
23592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23593   *) ac_try_echo=$ac_try;;
23594 esac
23595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23596   (eval "$ac_compile") 2>conftest.er1
23597   ac_status=$?
23598   grep -v '^ *+' conftest.er1 >conftest.err
23599   rm -f conftest.er1
23600   cat conftest.err >&5
23601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602   (exit $ac_status); } &&
23603          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23604   { (case "(($ac_try" in
23605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23606   *) ac_try_echo=$ac_try;;
23607 esac
23608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23609   (eval "$ac_try") 2>&5
23610   ac_status=$?
23611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612   (exit $ac_status); }; } &&
23613          { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
23620   ac_status=$?
23621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23622   (exit $ac_status); }; }; then
23623   ba_cv_header_socklen_t=yes
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628         ba_cv_header_socklen_t=no
23629 fi
23630
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 fi
23633 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23634 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23635 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23636 #define HAVE_SOCKLEN_T 1
23637 _ACEOF
23638
23639
23640 { echo "$as_me:$LINENO: checking for bigendian" >&5
23641 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23642 if test "${ba_cv_bigendian+set}" = set; then
23643   echo $ECHO_N "(cached) $ECHO_C" >&6
23644 else
23645   if test "$cross_compiling" = yes; then
23646   ba_cv_bigendian=no
23647 else
23648   cat >conftest.$ac_ext <<_ACEOF
23649 /* confdefs.h.  */
23650 _ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h.  */
23654 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23655 _ACEOF
23656 rm -f conftest$ac_exeext
23657 if { (ac_try="$ac_link"
23658 case "(($ac_try" in
23659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660   *) ac_try_echo=$ac_try;;
23661 esac
23662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23663   (eval "$ac_link") 2>&5
23664   ac_status=$?
23665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23667   { (case "(($ac_try" in
23668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669   *) ac_try_echo=$ac_try;;
23670 esac
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672   (eval "$ac_try") 2>&5
23673   ac_status=$?
23674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675   (exit $ac_status); }; }; then
23676   ba_cv_bigendian=yes
23677 else
23678   echo "$as_me: program exited with status $ac_status" >&5
23679 echo "$as_me: failed program was:" >&5
23680 sed 's/^/| /' conftest.$ac_ext >&5
23681
23682 ( exit $ac_status )
23683 ba_cv_bigendian=no
23684 fi
23685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23686 fi
23687
23688
23689 fi
23690 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23691 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23692 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23693 #define HAVE_BIGENDIAN 1
23694 _ACEOF
23695
23696
23697 ac_ext=cpp
23698 ac_cpp='$CXXCPP $CPPFLAGS'
23699 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23700 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23701 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23702
23703
23704 { echo "$as_me:$LINENO: checking for typeof" >&5
23705 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23706 if test "${ba_cv_have_typeof+set}" = set; then
23707   echo $ECHO_N "(cached) $ECHO_C" >&6
23708 else
23709   if test "$cross_compiling" = yes; then
23710   ba_cv_have_typeof=no
23711 else
23712   cat >conftest.$ac_ext <<_ACEOF
23713 /* confdefs.h.  */
23714 _ACEOF
23715 cat confdefs.h >>conftest.$ac_ext
23716 cat >>conftest.$ac_ext <<_ACEOF
23717 /* end confdefs.h.  */
23718 main(){char *a = 0; a = (typeof a)a;}
23719 _ACEOF
23720 rm -f conftest$ac_exeext
23721 if { (ac_try="$ac_link"
23722 case "(($ac_try" in
23723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724   *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727   (eval "$ac_link") 2>&5
23728   ac_status=$?
23729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23731   { (case "(($ac_try" in
23732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23733   *) ac_try_echo=$ac_try;;
23734 esac
23735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23736   (eval "$ac_try") 2>&5
23737   ac_status=$?
23738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739   (exit $ac_status); }; }; then
23740   ba_cv_have_typeof=yes
23741 else
23742   echo "$as_me: program exited with status $ac_status" >&5
23743 echo "$as_me: failed program was:" >&5
23744 sed 's/^/| /' conftest.$ac_ext >&5
23745
23746 ( exit $ac_status )
23747 ba_cv_have_typeof=no
23748 fi
23749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23750 fi
23751
23752
23753 fi
23754 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23755 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23756 test $ba_cv_have_typeof = yes &&
23757 cat >>confdefs.h <<\_ACEOF
23758 #define HAVE_TYPEOF 1
23759 _ACEOF
23760
23761 ac_ext=c
23762 ac_cpp='$CPP $CPPFLAGS'
23763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23766
23767
23768 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23769 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23770 if test "${ac_cv_c_const+set}" = set; then
23771   echo $ECHO_N "(cached) $ECHO_C" >&6
23772 else
23773   cat >conftest.$ac_ext <<_ACEOF
23774 /* confdefs.h.  */
23775 _ACEOF
23776 cat confdefs.h >>conftest.$ac_ext
23777 cat >>conftest.$ac_ext <<_ACEOF
23778 /* end confdefs.h.  */
23779
23780 int
23781 main ()
23782 {
23783 /* FIXME: Include the comments suggested by Paul. */
23784 #ifndef __cplusplus
23785   /* Ultrix mips cc rejects this.  */
23786   typedef int charset[2];
23787   const charset x;
23788   /* SunOS 4.1.1 cc rejects this.  */
23789   char const *const *ccp;
23790   char **p;
23791   /* NEC SVR4.0.2 mips cc rejects this.  */
23792   struct point {int x, y;};
23793   static struct point const zero = {0,0};
23794   /* AIX XL C 1.02.0.0 rejects this.
23795      It does not let you subtract one const X* pointer from another in
23796      an arm of an if-expression whose if-part is not a constant
23797      expression */
23798   const char *g = "string";
23799   ccp = &g + (g ? g-g : 0);
23800   /* HPUX 7.0 cc rejects these. */
23801   ++ccp;
23802   p = (char**) ccp;
23803   ccp = (char const *const *) p;
23804   { /* SCO 3.2v4 cc rejects this.  */
23805     char *t;
23806     char const *s = 0 ? (char *) 0 : (char const *) 0;
23807
23808     *t++ = 0;
23809     if (s) return 0;
23810   }
23811   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23812     int x[] = {25, 17};
23813     const int *foo = &x[0];
23814     ++foo;
23815   }
23816   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23817     typedef const int *iptr;
23818     iptr p = 0;
23819     ++p;
23820   }
23821   { /* AIX XL C 1.02.0.0 rejects this saying
23822        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23823     struct s { int j; const int *ap[3]; };
23824     struct s *b; b->j = 5;
23825   }
23826   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23827     const int foo = 10;
23828     if (!foo) return 0;
23829   }
23830   return !x[0] && !zero.x;
23831 #endif
23832
23833   ;
23834   return 0;
23835 }
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841   *) ac_try_echo=$ac_try;;
23842 esac
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844   (eval "$ac_compile") 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } &&
23851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23852   { (case "(($ac_try" in
23853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23854   *) ac_try_echo=$ac_try;;
23855 esac
23856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23857   (eval "$ac_try") 2>&5
23858   ac_status=$?
23859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860   (exit $ac_status); }; } &&
23861          { ac_try='test -s conftest.$ac_objext'
23862   { (case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_try") 2>&5
23868   ac_status=$?
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); }; }; then
23871   ac_cv_c_const=yes
23872 else
23873   echo "$as_me: failed program was:" >&5
23874 sed 's/^/| /' conftest.$ac_ext >&5
23875
23876         ac_cv_c_const=no
23877 fi
23878
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23880 fi
23881 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23882 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23883 if test $ac_cv_c_const = no; then
23884
23885 cat >>confdefs.h <<\_ACEOF
23886 #define const
23887 _ACEOF
23888
23889 fi
23890
23891
23892
23893 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23894 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23895 fstype=no
23896 # The order of these tests is important.
23897 cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h.  */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h.  */
23903 #include <sys/statvfs.h>
23904 #include <sys/fstyp.h>
23905 _ACEOF
23906 if { (ac_try="$ac_cpp conftest.$ac_ext"
23907 case "(($ac_try" in
23908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909   *) ac_try_echo=$ac_try;;
23910 esac
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23913   ac_status=$?
23914   grep -v '^ *+' conftest.er1 >conftest.err
23915   rm -f conftest.er1
23916   cat conftest.err >&5
23917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918   (exit $ac_status); } >/dev/null; then
23919   if test -s conftest.err; then
23920     ac_cpp_err=$ac_c_preproc_warn_flag
23921     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23922   else
23923     ac_cpp_err=
23924   fi
23925 else
23926   ac_cpp_err=yes
23927 fi
23928 if test -z "$ac_cpp_err"; then
23929   cat >>confdefs.h <<\_ACEOF
23930 #define FSTYPE_STATVFS 1
23931 _ACEOF
23932  fstype=SVR4
23933 else
23934   echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937
23938 fi
23939
23940 rm -f conftest.err conftest.$ac_ext
23941 if test $fstype = no; then
23942 cat >conftest.$ac_ext <<_ACEOF
23943 /* confdefs.h.  */
23944 _ACEOF
23945 cat confdefs.h >>conftest.$ac_ext
23946 cat >>conftest.$ac_ext <<_ACEOF
23947 /* end confdefs.h.  */
23948 #include <sys/statfs.h>
23949 #include <sys/fstyp.h>
23950 _ACEOF
23951 if { (ac_try="$ac_cpp conftest.$ac_ext"
23952 case "(($ac_try" in
23953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23954   *) ac_try_echo=$ac_try;;
23955 esac
23956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23957   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23958   ac_status=$?
23959   grep -v '^ *+' conftest.er1 >conftest.err
23960   rm -f conftest.er1
23961   cat conftest.err >&5
23962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23963   (exit $ac_status); } >/dev/null; then
23964   if test -s conftest.err; then
23965     ac_cpp_err=$ac_c_preproc_warn_flag
23966     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23967   else
23968     ac_cpp_err=
23969   fi
23970 else
23971   ac_cpp_err=yes
23972 fi
23973 if test -z "$ac_cpp_err"; then
23974   cat >>confdefs.h <<\_ACEOF
23975 #define FSTYPE_USG_STATFS 1
23976 _ACEOF
23977  fstype=SVR3
23978 else
23979   echo "$as_me: failed program was:" >&5
23980 sed 's/^/| /' conftest.$ac_ext >&5
23981
23982
23983 fi
23984
23985 rm -f conftest.err conftest.$ac_ext
23986 fi
23987 if test $fstype = no; then
23988 cat >conftest.$ac_ext <<_ACEOF
23989 /* confdefs.h.  */
23990 _ACEOF
23991 cat confdefs.h >>conftest.$ac_ext
23992 cat >>conftest.$ac_ext <<_ACEOF
23993 /* end confdefs.h.  */
23994 #include <sys/statfs.h>
23995 #include <sys/vmount.h>
23996 _ACEOF
23997 if { (ac_try="$ac_cpp conftest.$ac_ext"
23998 case "(($ac_try" in
23999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24000   *) ac_try_echo=$ac_try;;
24001 esac
24002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24003   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24004   ac_status=$?
24005   grep -v '^ *+' conftest.er1 >conftest.err
24006   rm -f conftest.er1
24007   cat conftest.err >&5
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); } >/dev/null; then
24010   if test -s conftest.err; then
24011     ac_cpp_err=$ac_c_preproc_warn_flag
24012     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24013   else
24014     ac_cpp_err=
24015   fi
24016 else
24017   ac_cpp_err=yes
24018 fi
24019 if test -z "$ac_cpp_err"; then
24020   cat >>confdefs.h <<\_ACEOF
24021 #define FSTYPE_AIX_STATFS 1
24022 _ACEOF
24023  fstype=AIX
24024 else
24025   echo "$as_me: failed program was:" >&5
24026 sed 's/^/| /' conftest.$ac_ext >&5
24027
24028
24029 fi
24030
24031 rm -f conftest.err conftest.$ac_ext
24032 fi
24033 if test $fstype = no; then
24034 cat >conftest.$ac_ext <<_ACEOF
24035 /* confdefs.h.  */
24036 _ACEOF
24037 cat confdefs.h >>conftest.$ac_ext
24038 cat >>conftest.$ac_ext <<_ACEOF
24039 /* end confdefs.h.  */
24040 #include <mntent.h>
24041 _ACEOF
24042 if { (ac_try="$ac_cpp conftest.$ac_ext"
24043 case "(($ac_try" in
24044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24045   *) ac_try_echo=$ac_try;;
24046 esac
24047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24048   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24049   ac_status=$?
24050   grep -v '^ *+' conftest.er1 >conftest.err
24051   rm -f conftest.er1
24052   cat conftest.err >&5
24053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24054   (exit $ac_status); } >/dev/null; then
24055   if test -s conftest.err; then
24056     ac_cpp_err=$ac_c_preproc_warn_flag
24057     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24058   else
24059     ac_cpp_err=
24060   fi
24061 else
24062   ac_cpp_err=yes
24063 fi
24064 if test -z "$ac_cpp_err"; then
24065   cat >>confdefs.h <<\_ACEOF
24066 #define FSTYPE_MNTENT 1
24067 _ACEOF
24068  fstype=4.3BSD
24069 else
24070   echo "$as_me: failed program was:" >&5
24071 sed 's/^/| /' conftest.$ac_ext >&5
24072
24073
24074 fi
24075
24076 rm -f conftest.err conftest.$ac_ext
24077 fi
24078 if test $fstype = no; then
24079 cat >conftest.$ac_ext <<_ACEOF
24080 /* confdefs.h.  */
24081 _ACEOF
24082 cat confdefs.h >>conftest.$ac_ext
24083 cat >>conftest.$ac_ext <<_ACEOF
24084 /* end confdefs.h.  */
24085 #include <sys/mount.h>
24086
24087 _ACEOF
24088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24089   $EGREP "f_type;" >/dev/null 2>&1; then
24090   cat >>confdefs.h <<\_ACEOF
24091 #define FSTYPE_STATFS 1
24092 _ACEOF
24093  fstype=4.4BSD/OSF1
24094 fi
24095 rm -f conftest*
24096
24097 fi
24098 if test $fstype = no; then
24099 cat >conftest.$ac_ext <<_ACEOF
24100 /* confdefs.h.  */
24101 _ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h.  */
24105 #include <sys/mount.h>
24106 #include <sys/fs_types.h>
24107 _ACEOF
24108 if { (ac_try="$ac_cpp conftest.$ac_ext"
24109 case "(($ac_try" in
24110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24111   *) ac_try_echo=$ac_try;;
24112 esac
24113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24115   ac_status=$?
24116   grep -v '^ *+' conftest.er1 >conftest.err
24117   rm -f conftest.er1
24118   cat conftest.err >&5
24119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120   (exit $ac_status); } >/dev/null; then
24121   if test -s conftest.err; then
24122     ac_cpp_err=$ac_c_preproc_warn_flag
24123     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24124   else
24125     ac_cpp_err=
24126   fi
24127 else
24128   ac_cpp_err=yes
24129 fi
24130 if test -z "$ac_cpp_err"; then
24131   cat >>confdefs.h <<\_ACEOF
24132 #define FSTYPE_GETMNT 1
24133 _ACEOF
24134  fstype=Ultrix
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139
24140 fi
24141
24142 rm -f conftest.err conftest.$ac_ext
24143 fi
24144 { echo "$as_me:$LINENO: result: $fstype" >&5
24145 echo "${ECHO_T}$fstype" >&6; }
24146
24147 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24148   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24149 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24150 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24151   echo $ECHO_N "(cached) $ECHO_C" >&6
24152 fi
24153 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24154 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24155 else
24156   # Is the header compilable?
24157 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24158 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24159 cat >conftest.$ac_ext <<_ACEOF
24160 /* confdefs.h.  */
24161 _ACEOF
24162 cat confdefs.h >>conftest.$ac_ext
24163 cat >>conftest.$ac_ext <<_ACEOF
24164 /* end confdefs.h.  */
24165 $ac_includes_default
24166 #include <sys/statvfs.h>
24167 _ACEOF
24168 rm -f conftest.$ac_objext
24169 if { (ac_try="$ac_compile"
24170 case "(($ac_try" in
24171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24172   *) ac_try_echo=$ac_try;;
24173 esac
24174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24175   (eval "$ac_compile") 2>conftest.er1
24176   ac_status=$?
24177   grep -v '^ *+' conftest.er1 >conftest.err
24178   rm -f conftest.er1
24179   cat conftest.err >&5
24180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181   (exit $ac_status); } &&
24182          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24183   { (case "(($ac_try" in
24184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185   *) ac_try_echo=$ac_try;;
24186 esac
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188   (eval "$ac_try") 2>&5
24189   ac_status=$?
24190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191   (exit $ac_status); }; } &&
24192          { ac_try='test -s conftest.$ac_objext'
24193   { (case "(($ac_try" in
24194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24195   *) ac_try_echo=$ac_try;;
24196 esac
24197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24198   (eval "$ac_try") 2>&5
24199   ac_status=$?
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); }; }; then
24202   ac_header_compiler=yes
24203 else
24204   echo "$as_me: failed program was:" >&5
24205 sed 's/^/| /' conftest.$ac_ext >&5
24206
24207         ac_header_compiler=no
24208 fi
24209
24210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24212 echo "${ECHO_T}$ac_header_compiler" >&6; }
24213
24214 # Is the header present?
24215 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24216 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24217 cat >conftest.$ac_ext <<_ACEOF
24218 /* confdefs.h.  */
24219 _ACEOF
24220 cat confdefs.h >>conftest.$ac_ext
24221 cat >>conftest.$ac_ext <<_ACEOF
24222 /* end confdefs.h.  */
24223 #include <sys/statvfs.h>
24224 _ACEOF
24225 if { (ac_try="$ac_cpp conftest.$ac_ext"
24226 case "(($ac_try" in
24227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24228   *) ac_try_echo=$ac_try;;
24229 esac
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24232   ac_status=$?
24233   grep -v '^ *+' conftest.er1 >conftest.err
24234   rm -f conftest.er1
24235   cat conftest.err >&5
24236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237   (exit $ac_status); } >/dev/null; then
24238   if test -s conftest.err; then
24239     ac_cpp_err=$ac_c_preproc_warn_flag
24240     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24241   else
24242     ac_cpp_err=
24243   fi
24244 else
24245   ac_cpp_err=yes
24246 fi
24247 if test -z "$ac_cpp_err"; then
24248   ac_header_preproc=yes
24249 else
24250   echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.$ac_ext >&5
24252
24253   ac_header_preproc=no
24254 fi
24255
24256 rm -f conftest.err conftest.$ac_ext
24257 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24258 echo "${ECHO_T}$ac_header_preproc" >&6; }
24259
24260 # So?  What about this header?
24261 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24262   yes:no: )
24263     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24264 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24265     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24266 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24267     ac_header_preproc=yes
24268     ;;
24269   no:yes:* )
24270     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24271 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24272     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24273 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24274     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24275 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24276     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24277 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24278     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24279 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24280     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24281 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24282
24283     ;;
24284 esac
24285 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24286 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24287 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24288   echo $ECHO_N "(cached) $ECHO_C" >&6
24289 else
24290   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24291 fi
24292 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24293 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24294
24295 fi
24296 if test $ac_cv_header_sys_statvfs_h = yes; then
24297
24298 cat >>confdefs.h <<\_ACEOF
24299 #define HAVE_SYS_STATVFS_H 1
24300 _ACEOF
24301
24302 fi
24303
24304
24305
24306 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24307 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24308 if test "${ac_cv_type_signal+set}" = set; then
24309   echo $ECHO_N "(cached) $ECHO_C" >&6
24310 else
24311   cat >conftest.$ac_ext <<_ACEOF
24312 /* confdefs.h.  */
24313 _ACEOF
24314 cat confdefs.h >>conftest.$ac_ext
24315 cat >>conftest.$ac_ext <<_ACEOF
24316 /* end confdefs.h.  */
24317 #include <sys/types.h>
24318 #include <signal.h>
24319
24320 int
24321 main ()
24322 {
24323 return *(signal (0, 0)) (0) == 1;
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 rm -f conftest.$ac_objext
24329 if { (ac_try="$ac_compile"
24330 case "(($ac_try" in
24331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24332   *) ac_try_echo=$ac_try;;
24333 esac
24334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24335   (eval "$ac_compile") 2>conftest.er1
24336   ac_status=$?
24337   grep -v '^ *+' conftest.er1 >conftest.err
24338   rm -f conftest.er1
24339   cat conftest.err >&5
24340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341   (exit $ac_status); } &&
24342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24343   { (case "(($ac_try" in
24344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24345   *) ac_try_echo=$ac_try;;
24346 esac
24347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24348   (eval "$ac_try") 2>&5
24349   ac_status=$?
24350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351   (exit $ac_status); }; } &&
24352          { ac_try='test -s conftest.$ac_objext'
24353   { (case "(($ac_try" in
24354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24355   *) ac_try_echo=$ac_try;;
24356 esac
24357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24358   (eval "$ac_try") 2>&5
24359   ac_status=$?
24360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361   (exit $ac_status); }; }; then
24362   ac_cv_type_signal=int
24363 else
24364   echo "$as_me: failed program was:" >&5
24365 sed 's/^/| /' conftest.$ac_ext >&5
24366
24367         ac_cv_type_signal=void
24368 fi
24369
24370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24371 fi
24372 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24373 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24374
24375 cat >>confdefs.h <<_ACEOF
24376 #define RETSIGTYPE $ac_cv_type_signal
24377 _ACEOF
24378
24379
24380
24381   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24382 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24383   if test "${bash_cv_signal_vintage+set}" = set; then
24384   echo $ECHO_N "(cached) $ECHO_C" >&6
24385 else
24386
24387     cat >conftest.$ac_ext <<_ACEOF
24388 /* confdefs.h.  */
24389 _ACEOF
24390 cat confdefs.h >>conftest.$ac_ext
24391 cat >>conftest.$ac_ext <<_ACEOF
24392 /* end confdefs.h.  */
24393 #include <signal.h>
24394 int
24395 main ()
24396 {
24397
24398       sigset_t ss;
24399       struct sigaction sa;
24400       sigemptyset(&ss); sigsuspend(&ss);
24401       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24402       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24403
24404   ;
24405   return 0;
24406 }
24407 _ACEOF
24408 rm -f conftest.$ac_objext conftest$ac_exeext
24409 if { (ac_try="$ac_link"
24410 case "(($ac_try" in
24411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24412   *) ac_try_echo=$ac_try;;
24413 esac
24414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24415   (eval "$ac_link") 2>conftest.er1
24416   ac_status=$?
24417   grep -v '^ *+' conftest.er1 >conftest.err
24418   rm -f conftest.er1
24419   cat conftest.err >&5
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); } &&
24422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24423   { (case "(($ac_try" in
24424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425   *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428   (eval "$ac_try") 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; } &&
24432          { ac_try='test -s conftest$ac_exeext'
24433   { (case "(($ac_try" in
24434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435   *) ac_try_echo=$ac_try;;
24436 esac
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438   (eval "$ac_try") 2>&5
24439   ac_status=$?
24440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); }; }; then
24442   bash_cv_signal_vintage="posix"
24443 else
24444   echo "$as_me: failed program was:" >&5
24445 sed 's/^/| /' conftest.$ac_ext >&5
24446
24447
24448       cat >conftest.$ac_ext <<_ACEOF
24449 /* confdefs.h.  */
24450 _ACEOF
24451 cat confdefs.h >>conftest.$ac_ext
24452 cat >>conftest.$ac_ext <<_ACEOF
24453 /* end confdefs.h.  */
24454 #include <signal.h>
24455 int
24456 main ()
24457 {
24458
24459           int mask = sigmask(SIGINT);
24460           sigsetmask(mask); sigblock(mask); sigpause(mask);
24461
24462   ;
24463   return 0;
24464 }
24465 _ACEOF
24466 rm -f conftest.$ac_objext conftest$ac_exeext
24467 if { (ac_try="$ac_link"
24468 case "(($ac_try" in
24469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24470   *) ac_try_echo=$ac_try;;
24471 esac
24472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24473   (eval "$ac_link") 2>conftest.er1
24474   ac_status=$?
24475   grep -v '^ *+' conftest.er1 >conftest.err
24476   rm -f conftest.er1
24477   cat conftest.err >&5
24478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24479   (exit $ac_status); } &&
24480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24481   { (case "(($ac_try" in
24482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24483   *) ac_try_echo=$ac_try;;
24484 esac
24485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24486   (eval "$ac_try") 2>&5
24487   ac_status=$?
24488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489   (exit $ac_status); }; } &&
24490          { ac_try='test -s conftest$ac_exeext'
24491   { (case "(($ac_try" in
24492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24493   *) ac_try_echo=$ac_try;;
24494 esac
24495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24496   (eval "$ac_try") 2>&5
24497   ac_status=$?
24498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499   (exit $ac_status); }; }; then
24500   bash_cv_signal_vintage="4.2bsd"
24501 else
24502   echo "$as_me: failed program was:" >&5
24503 sed 's/^/| /' conftest.$ac_ext >&5
24504
24505
24506         cat >conftest.$ac_ext <<_ACEOF
24507 /* confdefs.h.  */
24508 _ACEOF
24509 cat confdefs.h >>conftest.$ac_ext
24510 cat >>conftest.$ac_ext <<_ACEOF
24511 /* end confdefs.h.  */
24512
24513           #include <signal.h>
24514           RETSIGTYPE foo() { }
24515 int
24516 main ()
24517 {
24518
24519                   int mask = sigmask(SIGINT);
24520                   sigset(SIGINT, foo); sigrelse(SIGINT);
24521                   sighold(SIGINT); sigpause(SIGINT);
24522
24523   ;
24524   return 0;
24525 }
24526 _ACEOF
24527 rm -f conftest.$ac_objext conftest$ac_exeext
24528 if { (ac_try="$ac_link"
24529 case "(($ac_try" in
24530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24531   *) ac_try_echo=$ac_try;;
24532 esac
24533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24534   (eval "$ac_link") 2>conftest.er1
24535   ac_status=$?
24536   grep -v '^ *+' conftest.er1 >conftest.err
24537   rm -f conftest.er1
24538   cat conftest.err >&5
24539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540   (exit $ac_status); } &&
24541          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24542   { (case "(($ac_try" in
24543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24544   *) ac_try_echo=$ac_try;;
24545 esac
24546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24547   (eval "$ac_try") 2>&5
24548   ac_status=$?
24549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550   (exit $ac_status); }; } &&
24551          { ac_try='test -s conftest$ac_exeext'
24552   { (case "(($ac_try" in
24553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554   *) ac_try_echo=$ac_try;;
24555 esac
24556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24557   (eval "$ac_try") 2>&5
24558   ac_status=$?
24559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560   (exit $ac_status); }; }; then
24561   bash_cv_signal_vintage="svr3"
24562 else
24563   echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566         bash_cv_signal_vintage="v7"
24567
24568 fi
24569
24570 rm -f core conftest.err conftest.$ac_objext \
24571       conftest$ac_exeext conftest.$ac_ext
24572
24573 fi
24574
24575 rm -f core conftest.err conftest.$ac_objext \
24576       conftest$ac_exeext conftest.$ac_ext
24577
24578 fi
24579
24580 rm -f core conftest.err conftest.$ac_objext \
24581       conftest$ac_exeext conftest.$ac_ext
24582
24583 fi
24584
24585   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24586 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24587   if test "$bash_cv_signal_vintage" = "posix"; then
24588     cat >>confdefs.h <<\_ACEOF
24589 #define HAVE_POSIX_SIGNALS 1
24590 _ACEOF
24591
24592   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24593     cat >>confdefs.h <<\_ACEOF
24594 #define HAVE_BSD_SIGNALS 1
24595 _ACEOF
24596
24597   elif test "$bash_cv_signal_vintage" = "svr3"; then
24598     cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_USG_SIGHOLD 1
24600 _ACEOF
24601
24602   fi
24603
24604 { echo "$as_me:$LINENO: checking for mode_t" >&5
24605 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24606 if test "${ac_cv_type_mode_t+set}" = set; then
24607   echo $ECHO_N "(cached) $ECHO_C" >&6
24608 else
24609   cat >conftest.$ac_ext <<_ACEOF
24610 /* confdefs.h.  */
24611 _ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h.  */
24615 $ac_includes_default
24616 typedef mode_t ac__type_new_;
24617 int
24618 main ()
24619 {
24620 if ((ac__type_new_ *) 0)
24621   return 0;
24622 if (sizeof (ac__type_new_))
24623   return 0;
24624   ;
24625   return 0;
24626 }
24627 _ACEOF
24628 rm -f conftest.$ac_objext
24629 if { (ac_try="$ac_compile"
24630 case "(($ac_try" in
24631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24632   *) ac_try_echo=$ac_try;;
24633 esac
24634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24635   (eval "$ac_compile") 2>conftest.er1
24636   ac_status=$?
24637   grep -v '^ *+' conftest.er1 >conftest.err
24638   rm -f conftest.er1
24639   cat conftest.err >&5
24640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641   (exit $ac_status); } &&
24642          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24643   { (case "(($ac_try" in
24644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24645   *) ac_try_echo=$ac_try;;
24646 esac
24647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24648   (eval "$ac_try") 2>&5
24649   ac_status=$?
24650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24651   (exit $ac_status); }; } &&
24652          { ac_try='test -s conftest.$ac_objext'
24653   { (case "(($ac_try" in
24654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24655   *) ac_try_echo=$ac_try;;
24656 esac
24657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24658   (eval "$ac_try") 2>&5
24659   ac_status=$?
24660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661   (exit $ac_status); }; }; then
24662   ac_cv_type_mode_t=yes
24663 else
24664   echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.$ac_ext >&5
24666
24667         ac_cv_type_mode_t=no
24668 fi
24669
24670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671 fi
24672 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24673 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24674 if test $ac_cv_type_mode_t = yes; then
24675   :
24676 else
24677
24678 cat >>confdefs.h <<_ACEOF
24679 #define mode_t int
24680 _ACEOF
24681
24682 fi
24683
24684 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24685 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24686 if test "${ac_cv_type_uid_t+set}" = set; then
24687   echo $ECHO_N "(cached) $ECHO_C" >&6
24688 else
24689   cat >conftest.$ac_ext <<_ACEOF
24690 /* confdefs.h.  */
24691 _ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h.  */
24695 #include <sys/types.h>
24696
24697 _ACEOF
24698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24699   $EGREP "uid_t" >/dev/null 2>&1; then
24700   ac_cv_type_uid_t=yes
24701 else
24702   ac_cv_type_uid_t=no
24703 fi
24704 rm -f conftest*
24705
24706 fi
24707 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24708 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24709 if test $ac_cv_type_uid_t = no; then
24710
24711 cat >>confdefs.h <<\_ACEOF
24712 #define uid_t int
24713 _ACEOF
24714
24715
24716 cat >>confdefs.h <<\_ACEOF
24717 #define gid_t int
24718 _ACEOF
24719
24720 fi
24721
24722 { echo "$as_me:$LINENO: checking for size_t" >&5
24723 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24724 if test "${ac_cv_type_size_t+set}" = set; then
24725   echo $ECHO_N "(cached) $ECHO_C" >&6
24726 else
24727   cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h.  */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h.  */
24733 $ac_includes_default
24734 typedef size_t ac__type_new_;
24735 int
24736 main ()
24737 {
24738 if ((ac__type_new_ *) 0)
24739   return 0;
24740 if (sizeof (ac__type_new_))
24741   return 0;
24742   ;
24743   return 0;
24744 }
24745 _ACEOF
24746 rm -f conftest.$ac_objext
24747 if { (ac_try="$ac_compile"
24748 case "(($ac_try" in
24749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24750   *) ac_try_echo=$ac_try;;
24751 esac
24752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24753   (eval "$ac_compile") 2>conftest.er1
24754   ac_status=$?
24755   grep -v '^ *+' conftest.er1 >conftest.err
24756   rm -f conftest.er1
24757   cat conftest.err >&5
24758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759   (exit $ac_status); } &&
24760          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761   { (case "(($ac_try" in
24762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24763   *) ac_try_echo=$ac_try;;
24764 esac
24765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24766   (eval "$ac_try") 2>&5
24767   ac_status=$?
24768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24769   (exit $ac_status); }; } &&
24770          { ac_try='test -s conftest.$ac_objext'
24771   { (case "(($ac_try" in
24772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773   *) ac_try_echo=$ac_try;;
24774 esac
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776   (eval "$ac_try") 2>&5
24777   ac_status=$?
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); }; }; then
24780   ac_cv_type_size_t=yes
24781 else
24782   echo "$as_me: failed program was:" >&5
24783 sed 's/^/| /' conftest.$ac_ext >&5
24784
24785         ac_cv_type_size_t=no
24786 fi
24787
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 fi
24790 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24791 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24792 if test $ac_cv_type_size_t = yes; then
24793   :
24794 else
24795
24796 cat >>confdefs.h <<_ACEOF
24797 #define size_t unsigned int
24798 _ACEOF
24799
24800 fi
24801
24802 { echo "$as_me:$LINENO: checking for pid_t" >&5
24803 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24804 if test "${ac_cv_type_pid_t+set}" = set; then
24805   echo $ECHO_N "(cached) $ECHO_C" >&6
24806 else
24807   cat >conftest.$ac_ext <<_ACEOF
24808 /* confdefs.h.  */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h.  */
24813 $ac_includes_default
24814 typedef pid_t ac__type_new_;
24815 int
24816 main ()
24817 {
24818 if ((ac__type_new_ *) 0)
24819   return 0;
24820 if (sizeof (ac__type_new_))
24821   return 0;
24822   ;
24823   return 0;
24824 }
24825 _ACEOF
24826 rm -f conftest.$ac_objext
24827 if { (ac_try="$ac_compile"
24828 case "(($ac_try" in
24829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24830   *) ac_try_echo=$ac_try;;
24831 esac
24832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24833   (eval "$ac_compile") 2>conftest.er1
24834   ac_status=$?
24835   grep -v '^ *+' conftest.er1 >conftest.err
24836   rm -f conftest.er1
24837   cat conftest.err >&5
24838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24839   (exit $ac_status); } &&
24840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24841   { (case "(($ac_try" in
24842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843   *) ac_try_echo=$ac_try;;
24844 esac
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846   (eval "$ac_try") 2>&5
24847   ac_status=$?
24848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849   (exit $ac_status); }; } &&
24850          { ac_try='test -s conftest.$ac_objext'
24851   { (case "(($ac_try" in
24852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24853   *) ac_try_echo=$ac_try;;
24854 esac
24855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24856   (eval "$ac_try") 2>&5
24857   ac_status=$?
24858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859   (exit $ac_status); }; }; then
24860   ac_cv_type_pid_t=yes
24861 else
24862   echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24864
24865         ac_cv_type_pid_t=no
24866 fi
24867
24868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24869 fi
24870 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24871 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24872 if test $ac_cv_type_pid_t = yes; then
24873   :
24874 else
24875
24876 cat >>confdefs.h <<_ACEOF
24877 #define pid_t int
24878 _ACEOF
24879
24880 fi
24881
24882 { echo "$as_me:$LINENO: checking for off_t" >&5
24883 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24884 if test "${ac_cv_type_off_t+set}" = set; then
24885   echo $ECHO_N "(cached) $ECHO_C" >&6
24886 else
24887   cat >conftest.$ac_ext <<_ACEOF
24888 /* confdefs.h.  */
24889 _ACEOF
24890 cat confdefs.h >>conftest.$ac_ext
24891 cat >>conftest.$ac_ext <<_ACEOF
24892 /* end confdefs.h.  */
24893 $ac_includes_default
24894 typedef off_t ac__type_new_;
24895 int
24896 main ()
24897 {
24898 if ((ac__type_new_ *) 0)
24899   return 0;
24900 if (sizeof (ac__type_new_))
24901   return 0;
24902   ;
24903   return 0;
24904 }
24905 _ACEOF
24906 rm -f conftest.$ac_objext
24907 if { (ac_try="$ac_compile"
24908 case "(($ac_try" in
24909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910   *) ac_try_echo=$ac_try;;
24911 esac
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913   (eval "$ac_compile") 2>conftest.er1
24914   ac_status=$?
24915   grep -v '^ *+' conftest.er1 >conftest.err
24916   rm -f conftest.er1
24917   cat conftest.err >&5
24918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24919   (exit $ac_status); } &&
24920          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24921   { (case "(($ac_try" in
24922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24923   *) ac_try_echo=$ac_try;;
24924 esac
24925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24926   (eval "$ac_try") 2>&5
24927   ac_status=$?
24928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24929   (exit $ac_status); }; } &&
24930          { ac_try='test -s conftest.$ac_objext'
24931   { (case "(($ac_try" in
24932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933   *) ac_try_echo=$ac_try;;
24934 esac
24935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24936   (eval "$ac_try") 2>&5
24937   ac_status=$?
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); }; }; then
24940   ac_cv_type_off_t=yes
24941 else
24942   echo "$as_me: failed program was:" >&5
24943 sed 's/^/| /' conftest.$ac_ext >&5
24944
24945         ac_cv_type_off_t=no
24946 fi
24947
24948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24949 fi
24950 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24951 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24952 if test $ac_cv_type_off_t = yes; then
24953   :
24954 else
24955
24956 cat >>confdefs.h <<_ACEOF
24957 #define off_t long int
24958 _ACEOF
24959
24960 fi
24961
24962 { echo "$as_me:$LINENO: checking for ino_t" >&5
24963 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24964 if test "${ac_cv_type_ino_t+set}" = set; then
24965   echo $ECHO_N "(cached) $ECHO_C" >&6
24966 else
24967   cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973 $ac_includes_default
24974 typedef ino_t ac__type_new_;
24975 int
24976 main ()
24977 {
24978 if ((ac__type_new_ *) 0)
24979   return 0;
24980 if (sizeof (ac__type_new_))
24981   return 0;
24982   ;
24983   return 0;
24984 }
24985 _ACEOF
24986 rm -f conftest.$ac_objext
24987 if { (ac_try="$ac_compile"
24988 case "(($ac_try" in
24989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24990   *) ac_try_echo=$ac_try;;
24991 esac
24992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24993   (eval "$ac_compile") 2>conftest.er1
24994   ac_status=$?
24995   grep -v '^ *+' conftest.er1 >conftest.err
24996   rm -f conftest.er1
24997   cat conftest.err >&5
24998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999   (exit $ac_status); } &&
25000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25001   { (case "(($ac_try" in
25002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25003   *) ac_try_echo=$ac_try;;
25004 esac
25005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25006   (eval "$ac_try") 2>&5
25007   ac_status=$?
25008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009   (exit $ac_status); }; } &&
25010          { ac_try='test -s conftest.$ac_objext'
25011   { (case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_try") 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020   ac_cv_type_ino_t=yes
25021 else
25022   echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25024
25025         ac_cv_type_ino_t=no
25026 fi
25027
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029 fi
25030 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
25031 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
25032 if test $ac_cv_type_ino_t = yes; then
25033   :
25034 else
25035
25036 cat >>confdefs.h <<_ACEOF
25037 #define ino_t unsigned long
25038 _ACEOF
25039
25040 fi
25041
25042 { echo "$as_me:$LINENO: checking for dev_t" >&5
25043 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25044 if test "${ac_cv_type_dev_t+set}" = set; then
25045   echo $ECHO_N "(cached) $ECHO_C" >&6
25046 else
25047   cat >conftest.$ac_ext <<_ACEOF
25048 /* confdefs.h.  */
25049 _ACEOF
25050 cat confdefs.h >>conftest.$ac_ext
25051 cat >>conftest.$ac_ext <<_ACEOF
25052 /* end confdefs.h.  */
25053 $ac_includes_default
25054 typedef dev_t ac__type_new_;
25055 int
25056 main ()
25057 {
25058 if ((ac__type_new_ *) 0)
25059   return 0;
25060 if (sizeof (ac__type_new_))
25061   return 0;
25062   ;
25063   return 0;
25064 }
25065 _ACEOF
25066 rm -f conftest.$ac_objext
25067 if { (ac_try="$ac_compile"
25068 case "(($ac_try" in
25069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25070   *) ac_try_echo=$ac_try;;
25071 esac
25072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25073   (eval "$ac_compile") 2>conftest.er1
25074   ac_status=$?
25075   grep -v '^ *+' conftest.er1 >conftest.err
25076   rm -f conftest.er1
25077   cat conftest.err >&5
25078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079   (exit $ac_status); } &&
25080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25081   { (case "(($ac_try" in
25082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25083   *) ac_try_echo=$ac_try;;
25084 esac
25085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25086   (eval "$ac_try") 2>&5
25087   ac_status=$?
25088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089   (exit $ac_status); }; } &&
25090          { ac_try='test -s conftest.$ac_objext'
25091   { (case "(($ac_try" in
25092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093   *) ac_try_echo=$ac_try;;
25094 esac
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096   (eval "$ac_try") 2>&5
25097   ac_status=$?
25098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099   (exit $ac_status); }; }; then
25100   ac_cv_type_dev_t=yes
25101 else
25102   echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.$ac_ext >&5
25104
25105         ac_cv_type_dev_t=no
25106 fi
25107
25108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25109 fi
25110 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25111 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25112 if test $ac_cv_type_dev_t = yes; then
25113   :
25114 else
25115
25116 cat >>confdefs.h <<_ACEOF
25117 #define dev_t unsigned long
25118 _ACEOF
25119
25120 fi
25121
25122 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25123 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25124 if test "${ac_cv_type_daddr_t+set}" = set; then
25125   echo $ECHO_N "(cached) $ECHO_C" >&6
25126 else
25127   cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h.  */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h.  */
25133 $ac_includes_default
25134 typedef daddr_t ac__type_new_;
25135 int
25136 main ()
25137 {
25138 if ((ac__type_new_ *) 0)
25139   return 0;
25140 if (sizeof (ac__type_new_))
25141   return 0;
25142   ;
25143   return 0;
25144 }
25145 _ACEOF
25146 rm -f conftest.$ac_objext
25147 if { (ac_try="$ac_compile"
25148 case "(($ac_try" in
25149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25150   *) ac_try_echo=$ac_try;;
25151 esac
25152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25153   (eval "$ac_compile") 2>conftest.er1
25154   ac_status=$?
25155   grep -v '^ *+' conftest.er1 >conftest.err
25156   rm -f conftest.er1
25157   cat conftest.err >&5
25158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25159   (exit $ac_status); } &&
25160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25161   { (case "(($ac_try" in
25162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25163   *) ac_try_echo=$ac_try;;
25164 esac
25165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25166   (eval "$ac_try") 2>&5
25167   ac_status=$?
25168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25169   (exit $ac_status); }; } &&
25170          { ac_try='test -s conftest.$ac_objext'
25171   { (case "(($ac_try" in
25172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25173   *) ac_try_echo=$ac_try;;
25174 esac
25175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25176   (eval "$ac_try") 2>&5
25177   ac_status=$?
25178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25179   (exit $ac_status); }; }; then
25180   ac_cv_type_daddr_t=yes
25181 else
25182   echo "$as_me: failed program was:" >&5
25183 sed 's/^/| /' conftest.$ac_ext >&5
25184
25185         ac_cv_type_daddr_t=no
25186 fi
25187
25188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 fi
25190 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25191 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25192 if test $ac_cv_type_daddr_t = yes; then
25193   :
25194 else
25195
25196 cat >>confdefs.h <<_ACEOF
25197 #define daddr_t long
25198 _ACEOF
25199
25200 fi
25201
25202 { echo "$as_me:$LINENO: checking for major_t" >&5
25203 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25204 if test "${ac_cv_type_major_t+set}" = set; then
25205   echo $ECHO_N "(cached) $ECHO_C" >&6
25206 else
25207   cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h.  */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h.  */
25213 $ac_includes_default
25214 typedef major_t ac__type_new_;
25215 int
25216 main ()
25217 {
25218 if ((ac__type_new_ *) 0)
25219   return 0;
25220 if (sizeof (ac__type_new_))
25221   return 0;
25222   ;
25223   return 0;
25224 }
25225 _ACEOF
25226 rm -f conftest.$ac_objext
25227 if { (ac_try="$ac_compile"
25228 case "(($ac_try" in
25229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230   *) ac_try_echo=$ac_try;;
25231 esac
25232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25233   (eval "$ac_compile") 2>conftest.er1
25234   ac_status=$?
25235   grep -v '^ *+' conftest.er1 >conftest.err
25236   rm -f conftest.er1
25237   cat conftest.err >&5
25238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239   (exit $ac_status); } &&
25240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); }; } &&
25250          { ac_try='test -s conftest.$ac_objext'
25251   { (case "(($ac_try" in
25252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25253   *) ac_try_echo=$ac_try;;
25254 esac
25255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25256   (eval "$ac_try") 2>&5
25257   ac_status=$?
25258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259   (exit $ac_status); }; }; then
25260   ac_cv_type_major_t=yes
25261 else
25262   echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265         ac_cv_type_major_t=no
25266 fi
25267
25268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25269 fi
25270 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25271 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25272 if test $ac_cv_type_major_t = yes; then
25273   :
25274 else
25275
25276 cat >>confdefs.h <<_ACEOF
25277 #define major_t int
25278 _ACEOF
25279
25280 fi
25281
25282 { echo "$as_me:$LINENO: checking for minor_t" >&5
25283 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25284 if test "${ac_cv_type_minor_t+set}" = set; then
25285   echo $ECHO_N "(cached) $ECHO_C" >&6
25286 else
25287   cat >conftest.$ac_ext <<_ACEOF
25288 /* confdefs.h.  */
25289 _ACEOF
25290 cat confdefs.h >>conftest.$ac_ext
25291 cat >>conftest.$ac_ext <<_ACEOF
25292 /* end confdefs.h.  */
25293 $ac_includes_default
25294 typedef minor_t ac__type_new_;
25295 int
25296 main ()
25297 {
25298 if ((ac__type_new_ *) 0)
25299   return 0;
25300 if (sizeof (ac__type_new_))
25301   return 0;
25302   ;
25303   return 0;
25304 }
25305 _ACEOF
25306 rm -f conftest.$ac_objext
25307 if { (ac_try="$ac_compile"
25308 case "(($ac_try" in
25309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25310   *) ac_try_echo=$ac_try;;
25311 esac
25312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25313   (eval "$ac_compile") 2>conftest.er1
25314   ac_status=$?
25315   grep -v '^ *+' conftest.er1 >conftest.err
25316   rm -f conftest.er1
25317   cat conftest.err >&5
25318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25319   (exit $ac_status); } &&
25320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25321   { (case "(($ac_try" in
25322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25323   *) ac_try_echo=$ac_try;;
25324 esac
25325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25326   (eval "$ac_try") 2>&5
25327   ac_status=$?
25328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25329   (exit $ac_status); }; } &&
25330          { ac_try='test -s conftest.$ac_objext'
25331   { (case "(($ac_try" in
25332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333   *) ac_try_echo=$ac_try;;
25334 esac
25335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25336   (eval "$ac_try") 2>&5
25337   ac_status=$?
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); }; }; then
25340   ac_cv_type_minor_t=yes
25341 else
25342   echo "$as_me: failed program was:" >&5
25343 sed 's/^/| /' conftest.$ac_ext >&5
25344
25345         ac_cv_type_minor_t=no
25346 fi
25347
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25349 fi
25350 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25351 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25352 if test $ac_cv_type_minor_t = yes; then
25353   :
25354 else
25355
25356 cat >>confdefs.h <<_ACEOF
25357 #define minor_t int
25358 _ACEOF
25359
25360 fi
25361
25362 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25363 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25364 if test "${ac_cv_type_ssize_t+set}" = set; then
25365   echo $ECHO_N "(cached) $ECHO_C" >&6
25366 else
25367   cat >conftest.$ac_ext <<_ACEOF
25368 /* confdefs.h.  */
25369 _ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h.  */
25373 $ac_includes_default
25374 typedef ssize_t ac__type_new_;
25375 int
25376 main ()
25377 {
25378 if ((ac__type_new_ *) 0)
25379   return 0;
25380 if (sizeof (ac__type_new_))
25381   return 0;
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 rm -f conftest.$ac_objext
25387 if { (ac_try="$ac_compile"
25388 case "(($ac_try" in
25389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25390   *) ac_try_echo=$ac_try;;
25391 esac
25392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25393   (eval "$ac_compile") 2>conftest.er1
25394   ac_status=$?
25395   grep -v '^ *+' conftest.er1 >conftest.err
25396   rm -f conftest.er1
25397   cat conftest.err >&5
25398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399   (exit $ac_status); } &&
25400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25401   { (case "(($ac_try" in
25402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403   *) ac_try_echo=$ac_try;;
25404 esac
25405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25406   (eval "$ac_try") 2>&5
25407   ac_status=$?
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); }; } &&
25410          { ac_try='test -s conftest.$ac_objext'
25411   { (case "(($ac_try" in
25412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413   *) ac_try_echo=$ac_try;;
25414 esac
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416   (eval "$ac_try") 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; }; then
25420   ac_cv_type_ssize_t=yes
25421 else
25422   echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25424
25425         ac_cv_type_ssize_t=no
25426 fi
25427
25428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25429 fi
25430 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25431 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25432 if test $ac_cv_type_ssize_t = yes; then
25433   :
25434 else
25435
25436 cat >>confdefs.h <<_ACEOF
25437 #define ssize_t int
25438 _ACEOF
25439
25440 fi
25441
25442 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25443 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25444 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25445   echo $ECHO_N "(cached) $ECHO_C" >&6
25446 else
25447   cat >conftest.$ac_ext <<_ACEOF
25448 /* confdefs.h.  */
25449 _ACEOF
25450 cat confdefs.h >>conftest.$ac_ext
25451 cat >>conftest.$ac_ext <<_ACEOF
25452 /* end confdefs.h.  */
25453 $ac_includes_default
25454 int
25455 main ()
25456 {
25457 static struct stat ac_aggr;
25458 if (ac_aggr.st_blocks)
25459 return 0;
25460   ;
25461   return 0;
25462 }
25463 _ACEOF
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468   *) ac_try_echo=$ac_try;;
25469 esac
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471   (eval "$ac_compile") 2>conftest.er1
25472   ac_status=$?
25473   grep -v '^ *+' conftest.er1 >conftest.err
25474   rm -f conftest.er1
25475   cat conftest.err >&5
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } &&
25478          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25479   { (case "(($ac_try" in
25480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481   *) ac_try_echo=$ac_try;;
25482 esac
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484   (eval "$ac_try") 2>&5
25485   ac_status=$?
25486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25487   (exit $ac_status); }; } &&
25488          { ac_try='test -s conftest.$ac_objext'
25489   { (case "(($ac_try" in
25490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25491   *) ac_try_echo=$ac_try;;
25492 esac
25493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25494   (eval "$ac_try") 2>&5
25495   ac_status=$?
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); }; }; then
25498   ac_cv_member_struct_stat_st_blocks=yes
25499 else
25500   echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25502
25503         cat >conftest.$ac_ext <<_ACEOF
25504 /* confdefs.h.  */
25505 _ACEOF
25506 cat confdefs.h >>conftest.$ac_ext
25507 cat >>conftest.$ac_ext <<_ACEOF
25508 /* end confdefs.h.  */
25509 $ac_includes_default
25510 int
25511 main ()
25512 {
25513 static struct stat ac_aggr;
25514 if (sizeof ac_aggr.st_blocks)
25515 return 0;
25516   ;
25517   return 0;
25518 }
25519 _ACEOF
25520 rm -f conftest.$ac_objext
25521 if { (ac_try="$ac_compile"
25522 case "(($ac_try" in
25523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25524   *) ac_try_echo=$ac_try;;
25525 esac
25526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25527   (eval "$ac_compile") 2>conftest.er1
25528   ac_status=$?
25529   grep -v '^ *+' conftest.er1 >conftest.err
25530   rm -f conftest.er1
25531   cat conftest.err >&5
25532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533   (exit $ac_status); } &&
25534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25535   { (case "(($ac_try" in
25536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537   *) ac_try_echo=$ac_try;;
25538 esac
25539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25540   (eval "$ac_try") 2>&5
25541   ac_status=$?
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); }; } &&
25544          { ac_try='test -s conftest.$ac_objext'
25545   { (case "(($ac_try" in
25546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25547   *) ac_try_echo=$ac_try;;
25548 esac
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550   (eval "$ac_try") 2>&5
25551   ac_status=$?
25552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553   (exit $ac_status); }; }; then
25554   ac_cv_member_struct_stat_st_blocks=yes
25555 else
25556   echo "$as_me: failed program was:" >&5
25557 sed 's/^/| /' conftest.$ac_ext >&5
25558
25559         ac_cv_member_struct_stat_st_blocks=no
25560 fi
25561
25562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25563 fi
25564
25565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25566 fi
25567 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25568 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25569 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25570
25571 cat >>confdefs.h <<_ACEOF
25572 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25573 _ACEOF
25574
25575
25576 cat >>confdefs.h <<\_ACEOF
25577 #define HAVE_ST_BLOCKS 1
25578 _ACEOF
25579
25580 else
25581   case " $LIBOBJS " in
25582   *" fileblocks.$ac_objext "* ) ;;
25583   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25584  ;;
25585 esac
25586
25587 fi
25588
25589
25590 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25591 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25592 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25593   echo $ECHO_N "(cached) $ECHO_C" >&6
25594 else
25595   cat >conftest.$ac_ext <<_ACEOF
25596 /* confdefs.h.  */
25597 _ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h.  */
25601 $ac_includes_default
25602 int
25603 main ()
25604 {
25605 static struct stat ac_aggr;
25606 if (ac_aggr.st_rdev)
25607 return 0;
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 rm -f conftest.$ac_objext
25613 if { (ac_try="$ac_compile"
25614 case "(($ac_try" in
25615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25616   *) ac_try_echo=$ac_try;;
25617 esac
25618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25619   (eval "$ac_compile") 2>conftest.er1
25620   ac_status=$?
25621   grep -v '^ *+' conftest.er1 >conftest.err
25622   rm -f conftest.er1
25623   cat conftest.err >&5
25624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25625   (exit $ac_status); } &&
25626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25627   { (case "(($ac_try" in
25628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25629   *) ac_try_echo=$ac_try;;
25630 esac
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632   (eval "$ac_try") 2>&5
25633   ac_status=$?
25634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635   (exit $ac_status); }; } &&
25636          { ac_try='test -s conftest.$ac_objext'
25637   { (case "(($ac_try" in
25638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25639   *) ac_try_echo=$ac_try;;
25640 esac
25641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25642   (eval "$ac_try") 2>&5
25643   ac_status=$?
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); }; }; then
25646   ac_cv_member_struct_stat_st_rdev=yes
25647 else
25648   echo "$as_me: failed program was:" >&5
25649 sed 's/^/| /' conftest.$ac_ext >&5
25650
25651         cat >conftest.$ac_ext <<_ACEOF
25652 /* confdefs.h.  */
25653 _ACEOF
25654 cat confdefs.h >>conftest.$ac_ext
25655 cat >>conftest.$ac_ext <<_ACEOF
25656 /* end confdefs.h.  */
25657 $ac_includes_default
25658 int
25659 main ()
25660 {
25661 static struct stat ac_aggr;
25662 if (sizeof ac_aggr.st_rdev)
25663 return 0;
25664   ;
25665   return 0;
25666 }
25667 _ACEOF
25668 rm -f conftest.$ac_objext
25669 if { (ac_try="$ac_compile"
25670 case "(($ac_try" in
25671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25672   *) ac_try_echo=$ac_try;;
25673 esac
25674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25675   (eval "$ac_compile") 2>conftest.er1
25676   ac_status=$?
25677   grep -v '^ *+' conftest.er1 >conftest.err
25678   rm -f conftest.er1
25679   cat conftest.err >&5
25680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681   (exit $ac_status); } &&
25682          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25683   { (case "(($ac_try" in
25684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685   *) ac_try_echo=$ac_try;;
25686 esac
25687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688   (eval "$ac_try") 2>&5
25689   ac_status=$?
25690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25691   (exit $ac_status); }; } &&
25692          { ac_try='test -s conftest.$ac_objext'
25693   { (case "(($ac_try" in
25694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25695   *) ac_try_echo=$ac_try;;
25696 esac
25697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25698   (eval "$ac_try") 2>&5
25699   ac_status=$?
25700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25701   (exit $ac_status); }; }; then
25702   ac_cv_member_struct_stat_st_rdev=yes
25703 else
25704   echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25706
25707         ac_cv_member_struct_stat_st_rdev=no
25708 fi
25709
25710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25711 fi
25712
25713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714 fi
25715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25716 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25717 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25718
25719 cat >>confdefs.h <<_ACEOF
25720 #define HAVE_STRUCT_STAT_ST_RDEV 1
25721 _ACEOF
25722
25723
25724 cat >>confdefs.h <<\_ACEOF
25725 #define HAVE_ST_RDEV 1
25726 _ACEOF
25727
25728 fi
25729
25730
25731 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25732 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25733 if test "${ac_cv_struct_tm+set}" = set; then
25734   echo $ECHO_N "(cached) $ECHO_C" >&6
25735 else
25736   cat >conftest.$ac_ext <<_ACEOF
25737 /* confdefs.h.  */
25738 _ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h.  */
25742 #include <sys/types.h>
25743 #include <time.h>
25744
25745 int
25746 main ()
25747 {
25748 struct tm *tp; tp->tm_sec;
25749   ;
25750   return 0;
25751 }
25752 _ACEOF
25753 rm -f conftest.$ac_objext
25754 if { (ac_try="$ac_compile"
25755 case "(($ac_try" in
25756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25757   *) ac_try_echo=$ac_try;;
25758 esac
25759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25760   (eval "$ac_compile") 2>conftest.er1
25761   ac_status=$?
25762   grep -v '^ *+' conftest.er1 >conftest.err
25763   rm -f conftest.er1
25764   cat conftest.err >&5
25765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25766   (exit $ac_status); } &&
25767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25768   { (case "(($ac_try" in
25769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25770   *) ac_try_echo=$ac_try;;
25771 esac
25772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25773   (eval "$ac_try") 2>&5
25774   ac_status=$?
25775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25776   (exit $ac_status); }; } &&
25777          { ac_try='test -s conftest.$ac_objext'
25778   { (case "(($ac_try" in
25779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780   *) ac_try_echo=$ac_try;;
25781 esac
25782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25783   (eval "$ac_try") 2>&5
25784   ac_status=$?
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); }; }; then
25787   ac_cv_struct_tm=time.h
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792         ac_cv_struct_tm=sys/time.h
25793 fi
25794
25795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25796 fi
25797 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25798 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25799 if test $ac_cv_struct_tm = sys/time.h; then
25800
25801 cat >>confdefs.h <<\_ACEOF
25802 #define TM_IN_SYS_TIME 1
25803 _ACEOF
25804
25805 fi
25806
25807 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25808 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25809 if test "${ac_cv_c_const+set}" = set; then
25810   echo $ECHO_N "(cached) $ECHO_C" >&6
25811 else
25812   cat >conftest.$ac_ext <<_ACEOF
25813 /* confdefs.h.  */
25814 _ACEOF
25815 cat confdefs.h >>conftest.$ac_ext
25816 cat >>conftest.$ac_ext <<_ACEOF
25817 /* end confdefs.h.  */
25818
25819 int
25820 main ()
25821 {
25822 /* FIXME: Include the comments suggested by Paul. */
25823 #ifndef __cplusplus
25824   /* Ultrix mips cc rejects this.  */
25825   typedef int charset[2];
25826   const charset x;
25827   /* SunOS 4.1.1 cc rejects this.  */
25828   char const *const *ccp;
25829   char **p;
25830   /* NEC SVR4.0.2 mips cc rejects this.  */
25831   struct point {int x, y;};
25832   static struct point const zero = {0,0};
25833   /* AIX XL C 1.02.0.0 rejects this.
25834      It does not let you subtract one const X* pointer from another in
25835      an arm of an if-expression whose if-part is not a constant
25836      expression */
25837   const char *g = "string";
25838   ccp = &g + (g ? g-g : 0);
25839   /* HPUX 7.0 cc rejects these. */
25840   ++ccp;
25841   p = (char**) ccp;
25842   ccp = (char const *const *) p;
25843   { /* SCO 3.2v4 cc rejects this.  */
25844     char *t;
25845     char const *s = 0 ? (char *) 0 : (char const *) 0;
25846
25847     *t++ = 0;
25848     if (s) return 0;
25849   }
25850   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25851     int x[] = {25, 17};
25852     const int *foo = &x[0];
25853     ++foo;
25854   }
25855   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25856     typedef const int *iptr;
25857     iptr p = 0;
25858     ++p;
25859   }
25860   { /* AIX XL C 1.02.0.0 rejects this saying
25861        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25862     struct s { int j; const int *ap[3]; };
25863     struct s *b; b->j = 5;
25864   }
25865   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25866     const int foo = 10;
25867     if (!foo) return 0;
25868   }
25869   return !x[0] && !zero.x;
25870 #endif
25871
25872   ;
25873   return 0;
25874 }
25875 _ACEOF
25876 rm -f conftest.$ac_objext
25877 if { (ac_try="$ac_compile"
25878 case "(($ac_try" in
25879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25880   *) ac_try_echo=$ac_try;;
25881 esac
25882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25883   (eval "$ac_compile") 2>conftest.er1
25884   ac_status=$?
25885   grep -v '^ *+' conftest.er1 >conftest.err
25886   rm -f conftest.er1
25887   cat conftest.err >&5
25888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25889   (exit $ac_status); } &&
25890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25891   { (case "(($ac_try" in
25892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25893   *) ac_try_echo=$ac_try;;
25894 esac
25895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25896   (eval "$ac_try") 2>&5
25897   ac_status=$?
25898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899   (exit $ac_status); }; } &&
25900          { ac_try='test -s conftest.$ac_objext'
25901   { (case "(($ac_try" in
25902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903   *) ac_try_echo=$ac_try;;
25904 esac
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906   (eval "$ac_try") 2>&5
25907   ac_status=$?
25908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25909   (exit $ac_status); }; }; then
25910   ac_cv_c_const=yes
25911 else
25912   echo "$as_me: failed program was:" >&5
25913 sed 's/^/| /' conftest.$ac_ext >&5
25914
25915         ac_cv_c_const=no
25916 fi
25917
25918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919 fi
25920 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25921 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25922 if test $ac_cv_c_const = no; then
25923
25924 cat >>confdefs.h <<\_ACEOF
25925 #define const
25926 _ACEOF
25927
25928 fi
25929
25930
25931
25932 { echo "$as_me:$LINENO: checking for char" >&5
25933 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25934 if test "${ac_cv_type_char+set}" = set; then
25935   echo $ECHO_N "(cached) $ECHO_C" >&6
25936 else
25937   cat >conftest.$ac_ext <<_ACEOF
25938 /* confdefs.h.  */
25939 _ACEOF
25940 cat confdefs.h >>conftest.$ac_ext
25941 cat >>conftest.$ac_ext <<_ACEOF
25942 /* end confdefs.h.  */
25943 $ac_includes_default
25944 typedef char ac__type_new_;
25945 int
25946 main ()
25947 {
25948 if ((ac__type_new_ *) 0)
25949   return 0;
25950 if (sizeof (ac__type_new_))
25951   return 0;
25952   ;
25953   return 0;
25954 }
25955 _ACEOF
25956 rm -f conftest.$ac_objext
25957 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
25964   ac_status=$?
25965   grep -v '^ *+' conftest.er1 >conftest.err
25966   rm -f conftest.er1
25967   cat conftest.err >&5
25968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969   (exit $ac_status); } &&
25970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25971   { (case "(($ac_try" in
25972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973   *) ac_try_echo=$ac_try;;
25974 esac
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976   (eval "$ac_try") 2>&5
25977   ac_status=$?
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); }; } &&
25980          { ac_try='test -s conftest.$ac_objext'
25981   { (case "(($ac_try" in
25982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983   *) ac_try_echo=$ac_try;;
25984 esac
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986   (eval "$ac_try") 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; }; then
25990   ac_cv_type_char=yes
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995         ac_cv_type_char=no
25996 fi
25997
25998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25999 fi
26000 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
26001 echo "${ECHO_T}$ac_cv_type_char" >&6; }
26002
26003 { echo "$as_me:$LINENO: checking size of char" >&5
26004 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
26005 if test "${ac_cv_sizeof_char+set}" = set; then
26006   echo $ECHO_N "(cached) $ECHO_C" >&6
26007 else
26008   if test "$ac_cv_type_char" = yes; then
26009   # The cast to long int works around a bug in the HP C Compiler
26010   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26011   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26012   # This bug is HP SR number 8606223364.
26013   if test "$cross_compiling" = yes; then
26014   # Depending upon the size, compute the lo and hi bounds.
26015 cat >conftest.$ac_ext <<_ACEOF
26016 /* confdefs.h.  */
26017 _ACEOF
26018 cat confdefs.h >>conftest.$ac_ext
26019 cat >>conftest.$ac_ext <<_ACEOF
26020 /* end confdefs.h.  */
26021 $ac_includes_default
26022                    typedef char ac__type_sizeof_;
26023 int
26024 main ()
26025 {
26026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26027 test_array [0] = 0
26028
26029   ;
26030   return 0;
26031 }
26032 _ACEOF
26033 rm -f conftest.$ac_objext
26034 if { (ac_try="$ac_compile"
26035 case "(($ac_try" in
26036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037   *) ac_try_echo=$ac_try;;
26038 esac
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040   (eval "$ac_compile") 2>conftest.er1
26041   ac_status=$?
26042   grep -v '^ *+' conftest.er1 >conftest.err
26043   rm -f conftest.er1
26044   cat conftest.err >&5
26045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26046   (exit $ac_status); } &&
26047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26048   { (case "(($ac_try" in
26049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050   *) ac_try_echo=$ac_try;;
26051 esac
26052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26053   (eval "$ac_try") 2>&5
26054   ac_status=$?
26055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056   (exit $ac_status); }; } &&
26057          { ac_try='test -s conftest.$ac_objext'
26058   { (case "(($ac_try" in
26059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26060   *) ac_try_echo=$ac_try;;
26061 esac
26062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26063   (eval "$ac_try") 2>&5
26064   ac_status=$?
26065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26066   (exit $ac_status); }; }; then
26067   ac_lo=0 ac_mid=0
26068   while :; do
26069     cat >conftest.$ac_ext <<_ACEOF
26070 /* confdefs.h.  */
26071 _ACEOF
26072 cat confdefs.h >>conftest.$ac_ext
26073 cat >>conftest.$ac_ext <<_ACEOF
26074 /* end confdefs.h.  */
26075 $ac_includes_default
26076                    typedef char ac__type_sizeof_;
26077 int
26078 main ()
26079 {
26080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26081 test_array [0] = 0
26082
26083   ;
26084   return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext
26088 if { (ac_try="$ac_compile"
26089 case "(($ac_try" in
26090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091   *) ac_try_echo=$ac_try;;
26092 esac
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094   (eval "$ac_compile") 2>conftest.er1
26095   ac_status=$?
26096   grep -v '^ *+' conftest.er1 >conftest.err
26097   rm -f conftest.er1
26098   cat conftest.err >&5
26099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100   (exit $ac_status); } &&
26101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26102   { (case "(($ac_try" in
26103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104   *) ac_try_echo=$ac_try;;
26105 esac
26106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26107   (eval "$ac_try") 2>&5
26108   ac_status=$?
26109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110   (exit $ac_status); }; } &&
26111          { ac_try='test -s conftest.$ac_objext'
26112   { (case "(($ac_try" in
26113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26114   *) ac_try_echo=$ac_try;;
26115 esac
26116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26117   (eval "$ac_try") 2>&5
26118   ac_status=$?
26119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120   (exit $ac_status); }; }; then
26121   ac_hi=$ac_mid; break
26122 else
26123   echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26125
26126         ac_lo=`expr $ac_mid + 1`
26127                         if test $ac_lo -le $ac_mid; then
26128                           ac_lo= ac_hi=
26129                           break
26130                         fi
26131                         ac_mid=`expr 2 '*' $ac_mid + 1`
26132 fi
26133
26134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26135   done
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140         cat >conftest.$ac_ext <<_ACEOF
26141 /* confdefs.h.  */
26142 _ACEOF
26143 cat confdefs.h >>conftest.$ac_ext
26144 cat >>conftest.$ac_ext <<_ACEOF
26145 /* end confdefs.h.  */
26146 $ac_includes_default
26147                    typedef char ac__type_sizeof_;
26148 int
26149 main ()
26150 {
26151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26152 test_array [0] = 0
26153
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 rm -f conftest.$ac_objext
26159 if { (ac_try="$ac_compile"
26160 case "(($ac_try" in
26161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26162   *) ac_try_echo=$ac_try;;
26163 esac
26164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26165   (eval "$ac_compile") 2>conftest.er1
26166   ac_status=$?
26167   grep -v '^ *+' conftest.er1 >conftest.err
26168   rm -f conftest.er1
26169   cat conftest.err >&5
26170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171   (exit $ac_status); } &&
26172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26173   { (case "(($ac_try" in
26174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26175   *) ac_try_echo=$ac_try;;
26176 esac
26177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26178   (eval "$ac_try") 2>&5
26179   ac_status=$?
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); }; } &&
26182          { ac_try='test -s conftest.$ac_objext'
26183   { (case "(($ac_try" in
26184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26185   *) ac_try_echo=$ac_try;;
26186 esac
26187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26188   (eval "$ac_try") 2>&5
26189   ac_status=$?
26190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191   (exit $ac_status); }; }; then
26192   ac_hi=-1 ac_mid=-1
26193   while :; do
26194     cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200 $ac_includes_default
26201                    typedef char ac__type_sizeof_;
26202 int
26203 main ()
26204 {
26205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26206 test_array [0] = 0
26207
26208   ;
26209   return 0;
26210 }
26211 _ACEOF
26212 rm -f conftest.$ac_objext
26213 if { (ac_try="$ac_compile"
26214 case "(($ac_try" in
26215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26216   *) ac_try_echo=$ac_try;;
26217 esac
26218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26219   (eval "$ac_compile") 2>conftest.er1
26220   ac_status=$?
26221   grep -v '^ *+' conftest.er1 >conftest.err
26222   rm -f conftest.er1
26223   cat conftest.err >&5
26224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225   (exit $ac_status); } &&
26226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26227   { (case "(($ac_try" in
26228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229   *) ac_try_echo=$ac_try;;
26230 esac
26231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26232   (eval "$ac_try") 2>&5
26233   ac_status=$?
26234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26235   (exit $ac_status); }; } &&
26236          { ac_try='test -s conftest.$ac_objext'
26237   { (case "(($ac_try" in
26238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26239   *) ac_try_echo=$ac_try;;
26240 esac
26241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26242   (eval "$ac_try") 2>&5
26243   ac_status=$?
26244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245   (exit $ac_status); }; }; then
26246   ac_lo=$ac_mid; break
26247 else
26248   echo "$as_me: failed program was:" >&5
26249 sed 's/^/| /' conftest.$ac_ext >&5
26250
26251         ac_hi=`expr '(' $ac_mid ')' - 1`
26252                         if test $ac_mid -le $ac_hi; then
26253                           ac_lo= ac_hi=
26254                           break
26255                         fi
26256                         ac_mid=`expr 2 '*' $ac_mid`
26257 fi
26258
26259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26260   done
26261 else
26262   echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26264
26265         ac_lo= ac_hi=
26266 fi
26267
26268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26269 fi
26270
26271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26272 # Binary search between lo and hi bounds.
26273 while test "x$ac_lo" != "x$ac_hi"; do
26274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26275   cat >conftest.$ac_ext <<_ACEOF
26276 /* confdefs.h.  */
26277 _ACEOF
26278 cat confdefs.h >>conftest.$ac_ext
26279 cat >>conftest.$ac_ext <<_ACEOF
26280 /* end confdefs.h.  */
26281 $ac_includes_default
26282                    typedef char ac__type_sizeof_;
26283 int
26284 main ()
26285 {
26286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26287 test_array [0] = 0
26288
26289   ;
26290   return 0;
26291 }
26292 _ACEOF
26293 rm -f conftest.$ac_objext
26294 if { (ac_try="$ac_compile"
26295 case "(($ac_try" in
26296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26297   *) ac_try_echo=$ac_try;;
26298 esac
26299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26300   (eval "$ac_compile") 2>conftest.er1
26301   ac_status=$?
26302   grep -v '^ *+' conftest.er1 >conftest.err
26303   rm -f conftest.er1
26304   cat conftest.err >&5
26305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306   (exit $ac_status); } &&
26307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26308   { (case "(($ac_try" in
26309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26310   *) ac_try_echo=$ac_try;;
26311 esac
26312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26313   (eval "$ac_try") 2>&5
26314   ac_status=$?
26315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316   (exit $ac_status); }; } &&
26317          { ac_try='test -s conftest.$ac_objext'
26318   { (case "(($ac_try" in
26319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26320   *) ac_try_echo=$ac_try;;
26321 esac
26322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26323   (eval "$ac_try") 2>&5
26324   ac_status=$?
26325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26326   (exit $ac_status); }; }; then
26327   ac_hi=$ac_mid
26328 else
26329   echo "$as_me: failed program was:" >&5
26330 sed 's/^/| /' conftest.$ac_ext >&5
26331
26332         ac_lo=`expr '(' $ac_mid ')' + 1`
26333 fi
26334
26335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336 done
26337 case $ac_lo in
26338 ?*) ac_cv_sizeof_char=$ac_lo;;
26339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26340 See \`config.log' for more details." >&5
26341 echo "$as_me: error: cannot compute sizeof (char)
26342 See \`config.log' for more details." >&2;}
26343    { (exit 77); exit 77; }; } ;;
26344 esac
26345 else
26346   cat >conftest.$ac_ext <<_ACEOF
26347 /* confdefs.h.  */
26348 _ACEOF
26349 cat confdefs.h >>conftest.$ac_ext
26350 cat >>conftest.$ac_ext <<_ACEOF
26351 /* end confdefs.h.  */
26352 $ac_includes_default
26353                    typedef char ac__type_sizeof_;
26354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26356 #include <stdio.h>
26357 #include <stdlib.h>
26358 int
26359 main ()
26360 {
26361
26362   FILE *f = fopen ("conftest.val", "w");
26363   if (! f)
26364     return 1;
26365   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26366     {
26367       long int i = longval ();
26368       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26369         return 1;
26370       fprintf (f, "%ld\n", i);
26371     }
26372   else
26373     {
26374       unsigned long int i = ulongval ();
26375       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26376         return 1;
26377       fprintf (f, "%lu\n", i);
26378     }
26379   return ferror (f) || fclose (f) != 0;
26380
26381   ;
26382   return 0;
26383 }
26384 _ACEOF
26385 rm -f conftest$ac_exeext
26386 if { (ac_try="$ac_link"
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_link") 2>&5
26393   ac_status=$?
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26396   { (case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401   (eval "$ac_try") 2>&5
26402   ac_status=$?
26403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26404   (exit $ac_status); }; }; then
26405   ac_cv_sizeof_char=`cat conftest.val`
26406 else
26407   echo "$as_me: program exited with status $ac_status" >&5
26408 echo "$as_me: failed program was:" >&5
26409 sed 's/^/| /' conftest.$ac_ext >&5
26410
26411 ( exit $ac_status )
26412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26413 See \`config.log' for more details." >&5
26414 echo "$as_me: error: cannot compute sizeof (char)
26415 See \`config.log' for more details." >&2;}
26416    { (exit 77); exit 77; }; }
26417 fi
26418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26419 fi
26420 rm -f conftest.val
26421 else
26422   ac_cv_sizeof_char=0
26423 fi
26424 fi
26425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26426 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26427 cat >>confdefs.h <<_ACEOF
26428 #define SIZEOF_CHAR $ac_cv_sizeof_char
26429 _ACEOF
26430
26431
26432 { echo "$as_me:$LINENO: checking for short int" >&5
26433 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26434 if test "${ac_cv_type_short_int+set}" = set; then
26435   echo $ECHO_N "(cached) $ECHO_C" >&6
26436 else
26437   cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443 $ac_includes_default
26444 typedef short int ac__type_new_;
26445 int
26446 main ()
26447 {
26448 if ((ac__type_new_ *) 0)
26449   return 0;
26450 if (sizeof (ac__type_new_))
26451   return 0;
26452   ;
26453   return 0;
26454 }
26455 _ACEOF
26456 rm -f conftest.$ac_objext
26457 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26464   ac_status=$?
26465   grep -v '^ *+' conftest.er1 >conftest.err
26466   rm -f conftest.er1
26467   cat conftest.err >&5
26468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26469   (exit $ac_status); } &&
26470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26471   { (case "(($ac_try" in
26472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26473   *) ac_try_echo=$ac_try;;
26474 esac
26475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26476   (eval "$ac_try") 2>&5
26477   ac_status=$?
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); }; } &&
26480          { ac_try='test -s conftest.$ac_objext'
26481   { (case "(($ac_try" in
26482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483   *) ac_try_echo=$ac_try;;
26484 esac
26485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26486   (eval "$ac_try") 2>&5
26487   ac_status=$?
26488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489   (exit $ac_status); }; }; then
26490   ac_cv_type_short_int=yes
26491 else
26492   echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26494
26495         ac_cv_type_short_int=no
26496 fi
26497
26498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26499 fi
26500 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26501 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26502
26503 { echo "$as_me:$LINENO: checking size of short int" >&5
26504 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26505 if test "${ac_cv_sizeof_short_int+set}" = set; then
26506   echo $ECHO_N "(cached) $ECHO_C" >&6
26507 else
26508   if test "$ac_cv_type_short_int" = yes; then
26509   # The cast to long int works around a bug in the HP C Compiler
26510   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26511   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26512   # This bug is HP SR number 8606223364.
26513   if test "$cross_compiling" = yes; then
26514   # Depending upon the size, compute the lo and hi bounds.
26515 cat >conftest.$ac_ext <<_ACEOF
26516 /* confdefs.h.  */
26517 _ACEOF
26518 cat confdefs.h >>conftest.$ac_ext
26519 cat >>conftest.$ac_ext <<_ACEOF
26520 /* end confdefs.h.  */
26521 $ac_includes_default
26522                    typedef short int ac__type_sizeof_;
26523 int
26524 main ()
26525 {
26526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26527 test_array [0] = 0
26528
26529   ;
26530   return 0;
26531 }
26532 _ACEOF
26533 rm -f conftest.$ac_objext
26534 if { (ac_try="$ac_compile"
26535 case "(($ac_try" in
26536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537   *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540   (eval "$ac_compile") 2>conftest.er1
26541   ac_status=$?
26542   grep -v '^ *+' conftest.er1 >conftest.err
26543   rm -f conftest.er1
26544   cat conftest.err >&5
26545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546   (exit $ac_status); } &&
26547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26548   { (case "(($ac_try" in
26549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550   *) ac_try_echo=$ac_try;;
26551 esac
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553   (eval "$ac_try") 2>&5
26554   ac_status=$?
26555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556   (exit $ac_status); }; } &&
26557          { ac_try='test -s conftest.$ac_objext'
26558   { (case "(($ac_try" in
26559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26560   *) ac_try_echo=$ac_try;;
26561 esac
26562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26563   (eval "$ac_try") 2>&5
26564   ac_status=$?
26565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566   (exit $ac_status); }; }; then
26567   ac_lo=0 ac_mid=0
26568   while :; do
26569     cat >conftest.$ac_ext <<_ACEOF
26570 /* confdefs.h.  */
26571 _ACEOF
26572 cat confdefs.h >>conftest.$ac_ext
26573 cat >>conftest.$ac_ext <<_ACEOF
26574 /* end confdefs.h.  */
26575 $ac_includes_default
26576                    typedef short int ac__type_sizeof_;
26577 int
26578 main ()
26579 {
26580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26581 test_array [0] = 0
26582
26583   ;
26584   return 0;
26585 }
26586 _ACEOF
26587 rm -f conftest.$ac_objext
26588 if { (ac_try="$ac_compile"
26589 case "(($ac_try" in
26590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26591   *) ac_try_echo=$ac_try;;
26592 esac
26593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26594   (eval "$ac_compile") 2>conftest.er1
26595   ac_status=$?
26596   grep -v '^ *+' conftest.er1 >conftest.err
26597   rm -f conftest.er1
26598   cat conftest.err >&5
26599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26600   (exit $ac_status); } &&
26601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26602   { (case "(($ac_try" in
26603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26604   *) ac_try_echo=$ac_try;;
26605 esac
26606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26607   (eval "$ac_try") 2>&5
26608   ac_status=$?
26609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26610   (exit $ac_status); }; } &&
26611          { ac_try='test -s conftest.$ac_objext'
26612   { (case "(($ac_try" in
26613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614   *) ac_try_echo=$ac_try;;
26615 esac
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617   (eval "$ac_try") 2>&5
26618   ac_status=$?
26619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26620   (exit $ac_status); }; }; then
26621   ac_hi=$ac_mid; break
26622 else
26623   echo "$as_me: failed program was:" >&5
26624 sed 's/^/| /' conftest.$ac_ext >&5
26625
26626         ac_lo=`expr $ac_mid + 1`
26627                         if test $ac_lo -le $ac_mid; then
26628                           ac_lo= ac_hi=
26629                           break
26630                         fi
26631                         ac_mid=`expr 2 '*' $ac_mid + 1`
26632 fi
26633
26634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26635   done
26636 else
26637   echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26639
26640         cat >conftest.$ac_ext <<_ACEOF
26641 /* confdefs.h.  */
26642 _ACEOF
26643 cat confdefs.h >>conftest.$ac_ext
26644 cat >>conftest.$ac_ext <<_ACEOF
26645 /* end confdefs.h.  */
26646 $ac_includes_default
26647                    typedef short int ac__type_sizeof_;
26648 int
26649 main ()
26650 {
26651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26652 test_array [0] = 0
26653
26654   ;
26655   return 0;
26656 }
26657 _ACEOF
26658 rm -f conftest.$ac_objext
26659 if { (ac_try="$ac_compile"
26660 case "(($ac_try" in
26661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26662   *) ac_try_echo=$ac_try;;
26663 esac
26664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26665   (eval "$ac_compile") 2>conftest.er1
26666   ac_status=$?
26667   grep -v '^ *+' conftest.er1 >conftest.err
26668   rm -f conftest.er1
26669   cat conftest.err >&5
26670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26671   (exit $ac_status); } &&
26672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26673   { (case "(($ac_try" in
26674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26675   *) ac_try_echo=$ac_try;;
26676 esac
26677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26678   (eval "$ac_try") 2>&5
26679   ac_status=$?
26680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681   (exit $ac_status); }; } &&
26682          { ac_try='test -s conftest.$ac_objext'
26683   { (case "(($ac_try" in
26684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685   *) ac_try_echo=$ac_try;;
26686 esac
26687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688   (eval "$ac_try") 2>&5
26689   ac_status=$?
26690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26691   (exit $ac_status); }; }; then
26692   ac_hi=-1 ac_mid=-1
26693   while :; do
26694     cat >conftest.$ac_ext <<_ACEOF
26695 /* confdefs.h.  */
26696 _ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h.  */
26700 $ac_includes_default
26701                    typedef short int ac__type_sizeof_;
26702 int
26703 main ()
26704 {
26705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26706 test_array [0] = 0
26707
26708   ;
26709   return 0;
26710 }
26711 _ACEOF
26712 rm -f conftest.$ac_objext
26713 if { (ac_try="$ac_compile"
26714 case "(($ac_try" in
26715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26716   *) ac_try_echo=$ac_try;;
26717 esac
26718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26719   (eval "$ac_compile") 2>conftest.er1
26720   ac_status=$?
26721   grep -v '^ *+' conftest.er1 >conftest.err
26722   rm -f conftest.er1
26723   cat conftest.err >&5
26724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26725   (exit $ac_status); } &&
26726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26727   { (case "(($ac_try" in
26728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729   *) ac_try_echo=$ac_try;;
26730 esac
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732   (eval "$ac_try") 2>&5
26733   ac_status=$?
26734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26735   (exit $ac_status); }; } &&
26736          { ac_try='test -s conftest.$ac_objext'
26737   { (case "(($ac_try" in
26738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26739   *) ac_try_echo=$ac_try;;
26740 esac
26741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26742   (eval "$ac_try") 2>&5
26743   ac_status=$?
26744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26745   (exit $ac_status); }; }; then
26746   ac_lo=$ac_mid; break
26747 else
26748   echo "$as_me: failed program was:" >&5
26749 sed 's/^/| /' conftest.$ac_ext >&5
26750
26751         ac_hi=`expr '(' $ac_mid ')' - 1`
26752                         if test $ac_mid -le $ac_hi; then
26753                           ac_lo= ac_hi=
26754                           break
26755                         fi
26756                         ac_mid=`expr 2 '*' $ac_mid`
26757 fi
26758
26759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26760   done
26761 else
26762   echo "$as_me: failed program was:" >&5
26763 sed 's/^/| /' conftest.$ac_ext >&5
26764
26765         ac_lo= ac_hi=
26766 fi
26767
26768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26769 fi
26770
26771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26772 # Binary search between lo and hi bounds.
26773 while test "x$ac_lo" != "x$ac_hi"; do
26774   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26775   cat >conftest.$ac_ext <<_ACEOF
26776 /* confdefs.h.  */
26777 _ACEOF
26778 cat confdefs.h >>conftest.$ac_ext
26779 cat >>conftest.$ac_ext <<_ACEOF
26780 /* end confdefs.h.  */
26781 $ac_includes_default
26782                    typedef short int ac__type_sizeof_;
26783 int
26784 main ()
26785 {
26786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26787 test_array [0] = 0
26788
26789   ;
26790   return 0;
26791 }
26792 _ACEOF
26793 rm -f conftest.$ac_objext
26794 if { (ac_try="$ac_compile"
26795 case "(($ac_try" in
26796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26797   *) ac_try_echo=$ac_try;;
26798 esac
26799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26800   (eval "$ac_compile") 2>conftest.er1
26801   ac_status=$?
26802   grep -v '^ *+' conftest.er1 >conftest.err
26803   rm -f conftest.er1
26804   cat conftest.err >&5
26805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806   (exit $ac_status); } &&
26807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26808   { (case "(($ac_try" in
26809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26810   *) ac_try_echo=$ac_try;;
26811 esac
26812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26813   (eval "$ac_try") 2>&5
26814   ac_status=$?
26815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816   (exit $ac_status); }; } &&
26817          { ac_try='test -s conftest.$ac_objext'
26818   { (case "(($ac_try" in
26819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26820   *) ac_try_echo=$ac_try;;
26821 esac
26822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26823   (eval "$ac_try") 2>&5
26824   ac_status=$?
26825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26826   (exit $ac_status); }; }; then
26827   ac_hi=$ac_mid
26828 else
26829   echo "$as_me: failed program was:" >&5
26830 sed 's/^/| /' conftest.$ac_ext >&5
26831
26832         ac_lo=`expr '(' $ac_mid ')' + 1`
26833 fi
26834
26835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26836 done
26837 case $ac_lo in
26838 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26840 See \`config.log' for more details." >&5
26841 echo "$as_me: error: cannot compute sizeof (short int)
26842 See \`config.log' for more details." >&2;}
26843    { (exit 77); exit 77; }; } ;;
26844 esac
26845 else
26846   cat >conftest.$ac_ext <<_ACEOF
26847 /* confdefs.h.  */
26848 _ACEOF
26849 cat confdefs.h >>conftest.$ac_ext
26850 cat >>conftest.$ac_ext <<_ACEOF
26851 /* end confdefs.h.  */
26852 $ac_includes_default
26853                    typedef short int ac__type_sizeof_;
26854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26856 #include <stdio.h>
26857 #include <stdlib.h>
26858 int
26859 main ()
26860 {
26861
26862   FILE *f = fopen ("conftest.val", "w");
26863   if (! f)
26864     return 1;
26865   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26866     {
26867       long int i = longval ();
26868       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26869         return 1;
26870       fprintf (f, "%ld\n", i);
26871     }
26872   else
26873     {
26874       unsigned long int i = ulongval ();
26875       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26876         return 1;
26877       fprintf (f, "%lu\n", i);
26878     }
26879   return ferror (f) || fclose (f) != 0;
26880
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 rm -f conftest$ac_exeext
26886 if { (ac_try="$ac_link"
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_link") 2>&5
26893   ac_status=$?
26894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26896   { (case "(($ac_try" in
26897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898   *) ac_try_echo=$ac_try;;
26899 esac
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901   (eval "$ac_try") 2>&5
26902   ac_status=$?
26903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26904   (exit $ac_status); }; }; then
26905   ac_cv_sizeof_short_int=`cat conftest.val`
26906 else
26907   echo "$as_me: program exited with status $ac_status" >&5
26908 echo "$as_me: failed program was:" >&5
26909 sed 's/^/| /' conftest.$ac_ext >&5
26910
26911 ( exit $ac_status )
26912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26913 See \`config.log' for more details." >&5
26914 echo "$as_me: error: cannot compute sizeof (short int)
26915 See \`config.log' for more details." >&2;}
26916    { (exit 77); exit 77; }; }
26917 fi
26918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26919 fi
26920 rm -f conftest.val
26921 else
26922   ac_cv_sizeof_short_int=0
26923 fi
26924 fi
26925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26926 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26927 cat >>confdefs.h <<_ACEOF
26928 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26929 _ACEOF
26930
26931
26932 { echo "$as_me:$LINENO: checking for int" >&5
26933 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26934 if test "${ac_cv_type_int+set}" = set; then
26935   echo $ECHO_N "(cached) $ECHO_C" >&6
26936 else
26937   cat >conftest.$ac_ext <<_ACEOF
26938 /* confdefs.h.  */
26939 _ACEOF
26940 cat confdefs.h >>conftest.$ac_ext
26941 cat >>conftest.$ac_ext <<_ACEOF
26942 /* end confdefs.h.  */
26943 $ac_includes_default
26944 typedef int ac__type_new_;
26945 int
26946 main ()
26947 {
26948 if ((ac__type_new_ *) 0)
26949   return 0;
26950 if (sizeof (ac__type_new_))
26951   return 0;
26952   ;
26953   return 0;
26954 }
26955 _ACEOF
26956 rm -f conftest.$ac_objext
26957 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26964   ac_status=$?
26965   grep -v '^ *+' conftest.er1 >conftest.err
26966   rm -f conftest.er1
26967   cat conftest.err >&5
26968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26969   (exit $ac_status); } &&
26970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26971   { (case "(($ac_try" in
26972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26973   *) ac_try_echo=$ac_try;;
26974 esac
26975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26976   (eval "$ac_try") 2>&5
26977   ac_status=$?
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); }; } &&
26980          { ac_try='test -s conftest.$ac_objext'
26981   { (case "(($ac_try" in
26982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983   *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986   (eval "$ac_try") 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; }; then
26990   ac_cv_type_int=yes
26991 else
26992   echo "$as_me: failed program was:" >&5
26993 sed 's/^/| /' conftest.$ac_ext >&5
26994
26995         ac_cv_type_int=no
26996 fi
26997
26998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26999 fi
27000 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
27001 echo "${ECHO_T}$ac_cv_type_int" >&6; }
27002
27003 { echo "$as_me:$LINENO: checking size of int" >&5
27004 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
27005 if test "${ac_cv_sizeof_int+set}" = set; then
27006   echo $ECHO_N "(cached) $ECHO_C" >&6
27007 else
27008   if test "$ac_cv_type_int" = yes; then
27009   # The cast to long int works around a bug in the HP C Compiler
27010   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27011   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27012   # This bug is HP SR number 8606223364.
27013   if test "$cross_compiling" = yes; then
27014   # Depending upon the size, compute the lo and hi bounds.
27015 cat >conftest.$ac_ext <<_ACEOF
27016 /* confdefs.h.  */
27017 _ACEOF
27018 cat confdefs.h >>conftest.$ac_ext
27019 cat >>conftest.$ac_ext <<_ACEOF
27020 /* end confdefs.h.  */
27021 $ac_includes_default
27022                    typedef int ac__type_sizeof_;
27023 int
27024 main ()
27025 {
27026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27027 test_array [0] = 0
27028
27029   ;
27030   return 0;
27031 }
27032 _ACEOF
27033 rm -f conftest.$ac_objext
27034 if { (ac_try="$ac_compile"
27035 case "(($ac_try" in
27036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037   *) ac_try_echo=$ac_try;;
27038 esac
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040   (eval "$ac_compile") 2>conftest.er1
27041   ac_status=$?
27042   grep -v '^ *+' conftest.er1 >conftest.err
27043   rm -f conftest.er1
27044   cat conftest.err >&5
27045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27046   (exit $ac_status); } &&
27047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27048   { (case "(($ac_try" in
27049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27050   *) ac_try_echo=$ac_try;;
27051 esac
27052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27053   (eval "$ac_try") 2>&5
27054   ac_status=$?
27055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056   (exit $ac_status); }; } &&
27057          { ac_try='test -s conftest.$ac_objext'
27058   { (case "(($ac_try" in
27059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27060   *) ac_try_echo=$ac_try;;
27061 esac
27062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27063   (eval "$ac_try") 2>&5
27064   ac_status=$?
27065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27066   (exit $ac_status); }; }; then
27067   ac_lo=0 ac_mid=0
27068   while :; do
27069     cat >conftest.$ac_ext <<_ACEOF
27070 /* confdefs.h.  */
27071 _ACEOF
27072 cat confdefs.h >>conftest.$ac_ext
27073 cat >>conftest.$ac_ext <<_ACEOF
27074 /* end confdefs.h.  */
27075 $ac_includes_default
27076                    typedef int ac__type_sizeof_;
27077 int
27078 main ()
27079 {
27080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27081 test_array [0] = 0
27082
27083   ;
27084   return 0;
27085 }
27086 _ACEOF
27087 rm -f conftest.$ac_objext
27088 if { (ac_try="$ac_compile"
27089 case "(($ac_try" in
27090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27091   *) ac_try_echo=$ac_try;;
27092 esac
27093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27094   (eval "$ac_compile") 2>conftest.er1
27095   ac_status=$?
27096   grep -v '^ *+' conftest.er1 >conftest.err
27097   rm -f conftest.er1
27098   cat conftest.err >&5
27099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27100   (exit $ac_status); } &&
27101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27102   { (case "(($ac_try" in
27103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27104   *) ac_try_echo=$ac_try;;
27105 esac
27106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27107   (eval "$ac_try") 2>&5
27108   ac_status=$?
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); }; } &&
27111          { ac_try='test -s conftest.$ac_objext'
27112   { (case "(($ac_try" in
27113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27114   *) ac_try_echo=$ac_try;;
27115 esac
27116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27117   (eval "$ac_try") 2>&5
27118   ac_status=$?
27119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27120   (exit $ac_status); }; }; then
27121   ac_hi=$ac_mid; break
27122 else
27123   echo "$as_me: failed program was:" >&5
27124 sed 's/^/| /' conftest.$ac_ext >&5
27125
27126         ac_lo=`expr $ac_mid + 1`
27127                         if test $ac_lo -le $ac_mid; then
27128                           ac_lo= ac_hi=
27129                           break
27130                         fi
27131                         ac_mid=`expr 2 '*' $ac_mid + 1`
27132 fi
27133
27134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27135   done
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140         cat >conftest.$ac_ext <<_ACEOF
27141 /* confdefs.h.  */
27142 _ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h.  */
27146 $ac_includes_default
27147                    typedef int ac__type_sizeof_;
27148 int
27149 main ()
27150 {
27151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27152 test_array [0] = 0
27153
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 rm -f conftest.$ac_objext
27159 if { (ac_try="$ac_compile"
27160 case "(($ac_try" in
27161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27162   *) ac_try_echo=$ac_try;;
27163 esac
27164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27165   (eval "$ac_compile") 2>conftest.er1
27166   ac_status=$?
27167   grep -v '^ *+' conftest.er1 >conftest.err
27168   rm -f conftest.er1
27169   cat conftest.err >&5
27170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27171   (exit $ac_status); } &&
27172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27173   { (case "(($ac_try" in
27174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175   *) ac_try_echo=$ac_try;;
27176 esac
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178   (eval "$ac_try") 2>&5
27179   ac_status=$?
27180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181   (exit $ac_status); }; } &&
27182          { ac_try='test -s conftest.$ac_objext'
27183   { (case "(($ac_try" in
27184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27185   *) ac_try_echo=$ac_try;;
27186 esac
27187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27188   (eval "$ac_try") 2>&5
27189   ac_status=$?
27190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27191   (exit $ac_status); }; }; then
27192   ac_hi=-1 ac_mid=-1
27193   while :; do
27194     cat >conftest.$ac_ext <<_ACEOF
27195 /* confdefs.h.  */
27196 _ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h.  */
27200 $ac_includes_default
27201                    typedef int ac__type_sizeof_;
27202 int
27203 main ()
27204 {
27205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27206 test_array [0] = 0
27207
27208   ;
27209   return 0;
27210 }
27211 _ACEOF
27212 rm -f conftest.$ac_objext
27213 if { (ac_try="$ac_compile"
27214 case "(($ac_try" in
27215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27216   *) ac_try_echo=$ac_try;;
27217 esac
27218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27219   (eval "$ac_compile") 2>conftest.er1
27220   ac_status=$?
27221   grep -v '^ *+' conftest.er1 >conftest.err
27222   rm -f conftest.er1
27223   cat conftest.err >&5
27224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27225   (exit $ac_status); } &&
27226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27227   { (case "(($ac_try" in
27228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27229   *) ac_try_echo=$ac_try;;
27230 esac
27231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27232   (eval "$ac_try") 2>&5
27233   ac_status=$?
27234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235   (exit $ac_status); }; } &&
27236          { ac_try='test -s conftest.$ac_objext'
27237   { (case "(($ac_try" in
27238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27239   *) ac_try_echo=$ac_try;;
27240 esac
27241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27242   (eval "$ac_try") 2>&5
27243   ac_status=$?
27244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245   (exit $ac_status); }; }; then
27246   ac_lo=$ac_mid; break
27247 else
27248   echo "$as_me: failed program was:" >&5
27249 sed 's/^/| /' conftest.$ac_ext >&5
27250
27251         ac_hi=`expr '(' $ac_mid ')' - 1`
27252                         if test $ac_mid -le $ac_hi; then
27253                           ac_lo= ac_hi=
27254                           break
27255                         fi
27256                         ac_mid=`expr 2 '*' $ac_mid`
27257 fi
27258
27259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27260   done
27261 else
27262   echo "$as_me: failed program was:" >&5
27263 sed 's/^/| /' conftest.$ac_ext >&5
27264
27265         ac_lo= ac_hi=
27266 fi
27267
27268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27269 fi
27270
27271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27272 # Binary search between lo and hi bounds.
27273 while test "x$ac_lo" != "x$ac_hi"; do
27274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27275   cat >conftest.$ac_ext <<_ACEOF
27276 /* confdefs.h.  */
27277 _ACEOF
27278 cat confdefs.h >>conftest.$ac_ext
27279 cat >>conftest.$ac_ext <<_ACEOF
27280 /* end confdefs.h.  */
27281 $ac_includes_default
27282                    typedef int ac__type_sizeof_;
27283 int
27284 main ()
27285 {
27286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27287 test_array [0] = 0
27288
27289   ;
27290   return 0;
27291 }
27292 _ACEOF
27293 rm -f conftest.$ac_objext
27294 if { (ac_try="$ac_compile"
27295 case "(($ac_try" in
27296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297   *) ac_try_echo=$ac_try;;
27298 esac
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300   (eval "$ac_compile") 2>conftest.er1
27301   ac_status=$?
27302   grep -v '^ *+' conftest.er1 >conftest.err
27303   rm -f conftest.er1
27304   cat conftest.err >&5
27305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306   (exit $ac_status); } &&
27307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27308   { (case "(($ac_try" in
27309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310   *) ac_try_echo=$ac_try;;
27311 esac
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313   (eval "$ac_try") 2>&5
27314   ac_status=$?
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); }; } &&
27317          { ac_try='test -s conftest.$ac_objext'
27318   { (case "(($ac_try" in
27319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27320   *) ac_try_echo=$ac_try;;
27321 esac
27322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27323   (eval "$ac_try") 2>&5
27324   ac_status=$?
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); }; }; then
27327   ac_hi=$ac_mid
27328 else
27329   echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27331
27332         ac_lo=`expr '(' $ac_mid ')' + 1`
27333 fi
27334
27335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27336 done
27337 case $ac_lo in
27338 ?*) ac_cv_sizeof_int=$ac_lo;;
27339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27340 See \`config.log' for more details." >&5
27341 echo "$as_me: error: cannot compute sizeof (int)
27342 See \`config.log' for more details." >&2;}
27343    { (exit 77); exit 77; }; } ;;
27344 esac
27345 else
27346   cat >conftest.$ac_ext <<_ACEOF
27347 /* confdefs.h.  */
27348 _ACEOF
27349 cat confdefs.h >>conftest.$ac_ext
27350 cat >>conftest.$ac_ext <<_ACEOF
27351 /* end confdefs.h.  */
27352 $ac_includes_default
27353                    typedef int ac__type_sizeof_;
27354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27356 #include <stdio.h>
27357 #include <stdlib.h>
27358 int
27359 main ()
27360 {
27361
27362   FILE *f = fopen ("conftest.val", "w");
27363   if (! f)
27364     return 1;
27365   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27366     {
27367       long int i = longval ();
27368       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27369         return 1;
27370       fprintf (f, "%ld\n", i);
27371     }
27372   else
27373     {
27374       unsigned long int i = ulongval ();
27375       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27376         return 1;
27377       fprintf (f, "%lu\n", i);
27378     }
27379   return ferror (f) || fclose (f) != 0;
27380
27381   ;
27382   return 0;
27383 }
27384 _ACEOF
27385 rm -f conftest$ac_exeext
27386 if { (ac_try="$ac_link"
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_link") 2>&5
27393   ac_status=$?
27394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27396   { (case "(($ac_try" in
27397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27398   *) ac_try_echo=$ac_try;;
27399 esac
27400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27401   (eval "$ac_try") 2>&5
27402   ac_status=$?
27403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27404   (exit $ac_status); }; }; then
27405   ac_cv_sizeof_int=`cat conftest.val`
27406 else
27407   echo "$as_me: program exited with status $ac_status" >&5
27408 echo "$as_me: failed program was:" >&5
27409 sed 's/^/| /' conftest.$ac_ext >&5
27410
27411 ( exit $ac_status )
27412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27413 See \`config.log' for more details." >&5
27414 echo "$as_me: error: cannot compute sizeof (int)
27415 See \`config.log' for more details." >&2;}
27416    { (exit 77); exit 77; }; }
27417 fi
27418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27419 fi
27420 rm -f conftest.val
27421 else
27422   ac_cv_sizeof_int=0
27423 fi
27424 fi
27425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27426 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27427 cat >>confdefs.h <<_ACEOF
27428 #define SIZEOF_INT $ac_cv_sizeof_int
27429 _ACEOF
27430
27431
27432 { echo "$as_me:$LINENO: checking for long int" >&5
27433 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27434 if test "${ac_cv_type_long_int+set}" = set; then
27435   echo $ECHO_N "(cached) $ECHO_C" >&6
27436 else
27437   cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h.  */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h.  */
27443 $ac_includes_default
27444 typedef long int ac__type_new_;
27445 int
27446 main ()
27447 {
27448 if ((ac__type_new_ *) 0)
27449   return 0;
27450 if (sizeof (ac__type_new_))
27451   return 0;
27452   ;
27453   return 0;
27454 }
27455 _ACEOF
27456 rm -f conftest.$ac_objext
27457 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27464   ac_status=$?
27465   grep -v '^ *+' conftest.er1 >conftest.err
27466   rm -f conftest.er1
27467   cat conftest.err >&5
27468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469   (exit $ac_status); } &&
27470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27471   { (case "(($ac_try" in
27472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27473   *) ac_try_echo=$ac_try;;
27474 esac
27475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27476   (eval "$ac_try") 2>&5
27477   ac_status=$?
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); }; } &&
27480          { ac_try='test -s conftest.$ac_objext'
27481   { (case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_try") 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; }; then
27490   ac_cv_type_long_int=yes
27491 else
27492   echo "$as_me: failed program was:" >&5
27493 sed 's/^/| /' conftest.$ac_ext >&5
27494
27495         ac_cv_type_long_int=no
27496 fi
27497
27498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27499 fi
27500 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27501 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27502
27503 { echo "$as_me:$LINENO: checking size of long int" >&5
27504 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27505 if test "${ac_cv_sizeof_long_int+set}" = set; then
27506   echo $ECHO_N "(cached) $ECHO_C" >&6
27507 else
27508   if test "$ac_cv_type_long_int" = yes; then
27509   # The cast to long int works around a bug in the HP C Compiler
27510   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27511   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27512   # This bug is HP SR number 8606223364.
27513   if test "$cross_compiling" = yes; then
27514   # Depending upon the size, compute the lo and hi bounds.
27515 cat >conftest.$ac_ext <<_ACEOF
27516 /* confdefs.h.  */
27517 _ACEOF
27518 cat confdefs.h >>conftest.$ac_ext
27519 cat >>conftest.$ac_ext <<_ACEOF
27520 /* end confdefs.h.  */
27521 $ac_includes_default
27522                    typedef long int ac__type_sizeof_;
27523 int
27524 main ()
27525 {
27526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27527 test_array [0] = 0
27528
27529   ;
27530   return 0;
27531 }
27532 _ACEOF
27533 rm -f conftest.$ac_objext
27534 if { (ac_try="$ac_compile"
27535 case "(($ac_try" in
27536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537   *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540   (eval "$ac_compile") 2>conftest.er1
27541   ac_status=$?
27542   grep -v '^ *+' conftest.er1 >conftest.err
27543   rm -f conftest.er1
27544   cat conftest.err >&5
27545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546   (exit $ac_status); } &&
27547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27548   { (case "(($ac_try" in
27549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27550   *) ac_try_echo=$ac_try;;
27551 esac
27552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27553   (eval "$ac_try") 2>&5
27554   ac_status=$?
27555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556   (exit $ac_status); }; } &&
27557          { ac_try='test -s conftest.$ac_objext'
27558   { (case "(($ac_try" in
27559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27560   *) ac_try_echo=$ac_try;;
27561 esac
27562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27563   (eval "$ac_try") 2>&5
27564   ac_status=$?
27565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27566   (exit $ac_status); }; }; then
27567   ac_lo=0 ac_mid=0
27568   while :; do
27569     cat >conftest.$ac_ext <<_ACEOF
27570 /* confdefs.h.  */
27571 _ACEOF
27572 cat confdefs.h >>conftest.$ac_ext
27573 cat >>conftest.$ac_ext <<_ACEOF
27574 /* end confdefs.h.  */
27575 $ac_includes_default
27576                    typedef long int ac__type_sizeof_;
27577 int
27578 main ()
27579 {
27580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27581 test_array [0] = 0
27582
27583   ;
27584   return 0;
27585 }
27586 _ACEOF
27587 rm -f conftest.$ac_objext
27588 if { (ac_try="$ac_compile"
27589 case "(($ac_try" in
27590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27591   *) ac_try_echo=$ac_try;;
27592 esac
27593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27594   (eval "$ac_compile") 2>conftest.er1
27595   ac_status=$?
27596   grep -v '^ *+' conftest.er1 >conftest.err
27597   rm -f conftest.er1
27598   cat conftest.err >&5
27599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27600   (exit $ac_status); } &&
27601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27602   { (case "(($ac_try" in
27603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27604   *) ac_try_echo=$ac_try;;
27605 esac
27606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27607   (eval "$ac_try") 2>&5
27608   ac_status=$?
27609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610   (exit $ac_status); }; } &&
27611          { ac_try='test -s conftest.$ac_objext'
27612   { (case "(($ac_try" in
27613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614   *) ac_try_echo=$ac_try;;
27615 esac
27616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27617   (eval "$ac_try") 2>&5
27618   ac_status=$?
27619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27620   (exit $ac_status); }; }; then
27621   ac_hi=$ac_mid; break
27622 else
27623   echo "$as_me: failed program was:" >&5
27624 sed 's/^/| /' conftest.$ac_ext >&5
27625
27626         ac_lo=`expr $ac_mid + 1`
27627                         if test $ac_lo -le $ac_mid; then
27628                           ac_lo= ac_hi=
27629                           break
27630                         fi
27631                         ac_mid=`expr 2 '*' $ac_mid + 1`
27632 fi
27633
27634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27635   done
27636 else
27637   echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27639
27640         cat >conftest.$ac_ext <<_ACEOF
27641 /* confdefs.h.  */
27642 _ACEOF
27643 cat confdefs.h >>conftest.$ac_ext
27644 cat >>conftest.$ac_ext <<_ACEOF
27645 /* end confdefs.h.  */
27646 $ac_includes_default
27647                    typedef long int ac__type_sizeof_;
27648 int
27649 main ()
27650 {
27651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27652 test_array [0] = 0
27653
27654   ;
27655   return 0;
27656 }
27657 _ACEOF
27658 rm -f conftest.$ac_objext
27659 if { (ac_try="$ac_compile"
27660 case "(($ac_try" in
27661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27662   *) ac_try_echo=$ac_try;;
27663 esac
27664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27665   (eval "$ac_compile") 2>conftest.er1
27666   ac_status=$?
27667   grep -v '^ *+' conftest.er1 >conftest.err
27668   rm -f conftest.er1
27669   cat conftest.err >&5
27670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27671   (exit $ac_status); } &&
27672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27673   { (case "(($ac_try" in
27674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27675   *) ac_try_echo=$ac_try;;
27676 esac
27677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27678   (eval "$ac_try") 2>&5
27679   ac_status=$?
27680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681   (exit $ac_status); }; } &&
27682          { ac_try='test -s conftest.$ac_objext'
27683   { (case "(($ac_try" in
27684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27685   *) ac_try_echo=$ac_try;;
27686 esac
27687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27688   (eval "$ac_try") 2>&5
27689   ac_status=$?
27690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27691   (exit $ac_status); }; }; then
27692   ac_hi=-1 ac_mid=-1
27693   while :; do
27694     cat >conftest.$ac_ext <<_ACEOF
27695 /* confdefs.h.  */
27696 _ACEOF
27697 cat confdefs.h >>conftest.$ac_ext
27698 cat >>conftest.$ac_ext <<_ACEOF
27699 /* end confdefs.h.  */
27700 $ac_includes_default
27701                    typedef long int ac__type_sizeof_;
27702 int
27703 main ()
27704 {
27705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27706 test_array [0] = 0
27707
27708   ;
27709   return 0;
27710 }
27711 _ACEOF
27712 rm -f conftest.$ac_objext
27713 if { (ac_try="$ac_compile"
27714 case "(($ac_try" in
27715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27716   *) ac_try_echo=$ac_try;;
27717 esac
27718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27719   (eval "$ac_compile") 2>conftest.er1
27720   ac_status=$?
27721   grep -v '^ *+' conftest.er1 >conftest.err
27722   rm -f conftest.er1
27723   cat conftest.err >&5
27724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27725   (exit $ac_status); } &&
27726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27727   { (case "(($ac_try" in
27728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729   *) ac_try_echo=$ac_try;;
27730 esac
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732   (eval "$ac_try") 2>&5
27733   ac_status=$?
27734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27735   (exit $ac_status); }; } &&
27736          { ac_try='test -s conftest.$ac_objext'
27737   { (case "(($ac_try" in
27738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27739   *) ac_try_echo=$ac_try;;
27740 esac
27741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27742   (eval "$ac_try") 2>&5
27743   ac_status=$?
27744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27745   (exit $ac_status); }; }; then
27746   ac_lo=$ac_mid; break
27747 else
27748   echo "$as_me: failed program was:" >&5
27749 sed 's/^/| /' conftest.$ac_ext >&5
27750
27751         ac_hi=`expr '(' $ac_mid ')' - 1`
27752                         if test $ac_mid -le $ac_hi; then
27753                           ac_lo= ac_hi=
27754                           break
27755                         fi
27756                         ac_mid=`expr 2 '*' $ac_mid`
27757 fi
27758
27759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27760   done
27761 else
27762   echo "$as_me: failed program was:" >&5
27763 sed 's/^/| /' conftest.$ac_ext >&5
27764
27765         ac_lo= ac_hi=
27766 fi
27767
27768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27769 fi
27770
27771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27772 # Binary search between lo and hi bounds.
27773 while test "x$ac_lo" != "x$ac_hi"; do
27774   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27775   cat >conftest.$ac_ext <<_ACEOF
27776 /* confdefs.h.  */
27777 _ACEOF
27778 cat confdefs.h >>conftest.$ac_ext
27779 cat >>conftest.$ac_ext <<_ACEOF
27780 /* end confdefs.h.  */
27781 $ac_includes_default
27782                    typedef long int ac__type_sizeof_;
27783 int
27784 main ()
27785 {
27786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27787 test_array [0] = 0
27788
27789   ;
27790   return 0;
27791 }
27792 _ACEOF
27793 rm -f conftest.$ac_objext
27794 if { (ac_try="$ac_compile"
27795 case "(($ac_try" in
27796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27797   *) ac_try_echo=$ac_try;;
27798 esac
27799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27800   (eval "$ac_compile") 2>conftest.er1
27801   ac_status=$?
27802   grep -v '^ *+' conftest.er1 >conftest.err
27803   rm -f conftest.er1
27804   cat conftest.err >&5
27805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806   (exit $ac_status); } &&
27807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27808   { (case "(($ac_try" in
27809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27810   *) ac_try_echo=$ac_try;;
27811 esac
27812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27813   (eval "$ac_try") 2>&5
27814   ac_status=$?
27815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816   (exit $ac_status); }; } &&
27817          { ac_try='test -s conftest.$ac_objext'
27818   { (case "(($ac_try" in
27819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27820   *) ac_try_echo=$ac_try;;
27821 esac
27822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27823   (eval "$ac_try") 2>&5
27824   ac_status=$?
27825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27826   (exit $ac_status); }; }; then
27827   ac_hi=$ac_mid
27828 else
27829   echo "$as_me: failed program was:" >&5
27830 sed 's/^/| /' conftest.$ac_ext >&5
27831
27832         ac_lo=`expr '(' $ac_mid ')' + 1`
27833 fi
27834
27835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27836 done
27837 case $ac_lo in
27838 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27840 See \`config.log' for more details." >&5
27841 echo "$as_me: error: cannot compute sizeof (long int)
27842 See \`config.log' for more details." >&2;}
27843    { (exit 77); exit 77; }; } ;;
27844 esac
27845 else
27846   cat >conftest.$ac_ext <<_ACEOF
27847 /* confdefs.h.  */
27848 _ACEOF
27849 cat confdefs.h >>conftest.$ac_ext
27850 cat >>conftest.$ac_ext <<_ACEOF
27851 /* end confdefs.h.  */
27852 $ac_includes_default
27853                    typedef long int ac__type_sizeof_;
27854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27856 #include <stdio.h>
27857 #include <stdlib.h>
27858 int
27859 main ()
27860 {
27861
27862   FILE *f = fopen ("conftest.val", "w");
27863   if (! f)
27864     return 1;
27865   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27866     {
27867       long int i = longval ();
27868       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27869         return 1;
27870       fprintf (f, "%ld\n", i);
27871     }
27872   else
27873     {
27874       unsigned long int i = ulongval ();
27875       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27876         return 1;
27877       fprintf (f, "%lu\n", i);
27878     }
27879   return ferror (f) || fclose (f) != 0;
27880
27881   ;
27882   return 0;
27883 }
27884 _ACEOF
27885 rm -f conftest$ac_exeext
27886 if { (ac_try="$ac_link"
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_link") 2>&5
27893   ac_status=$?
27894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27896   { (case "(($ac_try" in
27897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27898   *) ac_try_echo=$ac_try;;
27899 esac
27900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27901   (eval "$ac_try") 2>&5
27902   ac_status=$?
27903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904   (exit $ac_status); }; }; then
27905   ac_cv_sizeof_long_int=`cat conftest.val`
27906 else
27907   echo "$as_me: program exited with status $ac_status" >&5
27908 echo "$as_me: failed program was:" >&5
27909 sed 's/^/| /' conftest.$ac_ext >&5
27910
27911 ( exit $ac_status )
27912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27913 See \`config.log' for more details." >&5
27914 echo "$as_me: error: cannot compute sizeof (long int)
27915 See \`config.log' for more details." >&2;}
27916    { (exit 77); exit 77; }; }
27917 fi
27918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27919 fi
27920 rm -f conftest.val
27921 else
27922   ac_cv_sizeof_long_int=0
27923 fi
27924 fi
27925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27926 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27927 cat >>confdefs.h <<_ACEOF
27928 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27929 _ACEOF
27930
27931
27932 { echo "$as_me:$LINENO: checking for long long int" >&5
27933 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27934 if test "${ac_cv_type_long_long_int+set}" = set; then
27935   echo $ECHO_N "(cached) $ECHO_C" >&6
27936 else
27937   cat >conftest.$ac_ext <<_ACEOF
27938 /* confdefs.h.  */
27939 _ACEOF
27940 cat confdefs.h >>conftest.$ac_ext
27941 cat >>conftest.$ac_ext <<_ACEOF
27942 /* end confdefs.h.  */
27943 $ac_includes_default
27944 typedef long long int ac__type_new_;
27945 int
27946 main ()
27947 {
27948 if ((ac__type_new_ *) 0)
27949   return 0;
27950 if (sizeof (ac__type_new_))
27951   return 0;
27952   ;
27953   return 0;
27954 }
27955 _ACEOF
27956 rm -f conftest.$ac_objext
27957 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27964   ac_status=$?
27965   grep -v '^ *+' conftest.er1 >conftest.err
27966   rm -f conftest.er1
27967   cat conftest.err >&5
27968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969   (exit $ac_status); } &&
27970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27971   { (case "(($ac_try" in
27972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973   *) ac_try_echo=$ac_try;;
27974 esac
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976   (eval "$ac_try") 2>&5
27977   ac_status=$?
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); }; } &&
27980          { ac_try='test -s conftest.$ac_objext'
27981   { (case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_try") 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; }; then
27990   ac_cv_type_long_long_int=yes
27991 else
27992   echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27994
27995         ac_cv_type_long_long_int=no
27996 fi
27997
27998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27999 fi
28000 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
28001 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
28002
28003 { echo "$as_me:$LINENO: checking size of long long int" >&5
28004 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
28005 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
28006   echo $ECHO_N "(cached) $ECHO_C" >&6
28007 else
28008   if test "$ac_cv_type_long_long_int" = yes; then
28009   # The cast to long int works around a bug in the HP C Compiler
28010   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28011   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28012   # This bug is HP SR number 8606223364.
28013   if test "$cross_compiling" = yes; then
28014   # Depending upon the size, compute the lo and hi bounds.
28015 cat >conftest.$ac_ext <<_ACEOF
28016 /* confdefs.h.  */
28017 _ACEOF
28018 cat confdefs.h >>conftest.$ac_ext
28019 cat >>conftest.$ac_ext <<_ACEOF
28020 /* end confdefs.h.  */
28021 $ac_includes_default
28022                    typedef long long int ac__type_sizeof_;
28023 int
28024 main ()
28025 {
28026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28027 test_array [0] = 0
28028
28029   ;
28030   return 0;
28031 }
28032 _ACEOF
28033 rm -f conftest.$ac_objext
28034 if { (ac_try="$ac_compile"
28035 case "(($ac_try" in
28036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037   *) ac_try_echo=$ac_try;;
28038 esac
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040   (eval "$ac_compile") 2>conftest.er1
28041   ac_status=$?
28042   grep -v '^ *+' conftest.er1 >conftest.err
28043   rm -f conftest.er1
28044   cat conftest.err >&5
28045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046   (exit $ac_status); } &&
28047          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28048   { (case "(($ac_try" in
28049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28050   *) ac_try_echo=$ac_try;;
28051 esac
28052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28053   (eval "$ac_try") 2>&5
28054   ac_status=$?
28055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28056   (exit $ac_status); }; } &&
28057          { ac_try='test -s conftest.$ac_objext'
28058   { (case "(($ac_try" in
28059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28060   *) ac_try_echo=$ac_try;;
28061 esac
28062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28063   (eval "$ac_try") 2>&5
28064   ac_status=$?
28065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28066   (exit $ac_status); }; }; then
28067   ac_lo=0 ac_mid=0
28068   while :; do
28069     cat >conftest.$ac_ext <<_ACEOF
28070 /* confdefs.h.  */
28071 _ACEOF
28072 cat confdefs.h >>conftest.$ac_ext
28073 cat >>conftest.$ac_ext <<_ACEOF
28074 /* end confdefs.h.  */
28075 $ac_includes_default
28076                    typedef long long int ac__type_sizeof_;
28077 int
28078 main ()
28079 {
28080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28081 test_array [0] = 0
28082
28083   ;
28084   return 0;
28085 }
28086 _ACEOF
28087 rm -f conftest.$ac_objext
28088 if { (ac_try="$ac_compile"
28089 case "(($ac_try" in
28090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28091   *) ac_try_echo=$ac_try;;
28092 esac
28093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28094   (eval "$ac_compile") 2>conftest.er1
28095   ac_status=$?
28096   grep -v '^ *+' conftest.er1 >conftest.err
28097   rm -f conftest.er1
28098   cat conftest.err >&5
28099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28100   (exit $ac_status); } &&
28101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28102   { (case "(($ac_try" in
28103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28104   *) ac_try_echo=$ac_try;;
28105 esac
28106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28107   (eval "$ac_try") 2>&5
28108   ac_status=$?
28109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28110   (exit $ac_status); }; } &&
28111          { ac_try='test -s conftest.$ac_objext'
28112   { (case "(($ac_try" in
28113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28114   *) ac_try_echo=$ac_try;;
28115 esac
28116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28117   (eval "$ac_try") 2>&5
28118   ac_status=$?
28119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120   (exit $ac_status); }; }; then
28121   ac_hi=$ac_mid; break
28122 else
28123   echo "$as_me: failed program was:" >&5
28124 sed 's/^/| /' conftest.$ac_ext >&5
28125
28126         ac_lo=`expr $ac_mid + 1`
28127                         if test $ac_lo -le $ac_mid; then
28128                           ac_lo= ac_hi=
28129                           break
28130                         fi
28131                         ac_mid=`expr 2 '*' $ac_mid + 1`
28132 fi
28133
28134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28135   done
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140         cat >conftest.$ac_ext <<_ACEOF
28141 /* confdefs.h.  */
28142 _ACEOF
28143 cat confdefs.h >>conftest.$ac_ext
28144 cat >>conftest.$ac_ext <<_ACEOF
28145 /* end confdefs.h.  */
28146 $ac_includes_default
28147                    typedef long long int ac__type_sizeof_;
28148 int
28149 main ()
28150 {
28151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28152 test_array [0] = 0
28153
28154   ;
28155   return 0;
28156 }
28157 _ACEOF
28158 rm -f conftest.$ac_objext
28159 if { (ac_try="$ac_compile"
28160 case "(($ac_try" in
28161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28162   *) ac_try_echo=$ac_try;;
28163 esac
28164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28165   (eval "$ac_compile") 2>conftest.er1
28166   ac_status=$?
28167   grep -v '^ *+' conftest.er1 >conftest.err
28168   rm -f conftest.er1
28169   cat conftest.err >&5
28170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28171   (exit $ac_status); } &&
28172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28173   { (case "(($ac_try" in
28174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28175   *) ac_try_echo=$ac_try;;
28176 esac
28177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28178   (eval "$ac_try") 2>&5
28179   ac_status=$?
28180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28181   (exit $ac_status); }; } &&
28182          { ac_try='test -s conftest.$ac_objext'
28183   { (case "(($ac_try" in
28184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28185   *) ac_try_echo=$ac_try;;
28186 esac
28187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28188   (eval "$ac_try") 2>&5
28189   ac_status=$?
28190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28191   (exit $ac_status); }; }; then
28192   ac_hi=-1 ac_mid=-1
28193   while :; do
28194     cat >conftest.$ac_ext <<_ACEOF
28195 /* confdefs.h.  */
28196 _ACEOF
28197 cat confdefs.h >>conftest.$ac_ext
28198 cat >>conftest.$ac_ext <<_ACEOF
28199 /* end confdefs.h.  */
28200 $ac_includes_default
28201                    typedef long long int ac__type_sizeof_;
28202 int
28203 main ()
28204 {
28205 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28206 test_array [0] = 0
28207
28208   ;
28209   return 0;
28210 }
28211 _ACEOF
28212 rm -f conftest.$ac_objext
28213 if { (ac_try="$ac_compile"
28214 case "(($ac_try" in
28215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28216   *) ac_try_echo=$ac_try;;
28217 esac
28218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28219   (eval "$ac_compile") 2>conftest.er1
28220   ac_status=$?
28221   grep -v '^ *+' conftest.er1 >conftest.err
28222   rm -f conftest.er1
28223   cat conftest.err >&5
28224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28225   (exit $ac_status); } &&
28226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28227   { (case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_try") 2>&5
28233   ac_status=$?
28234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235   (exit $ac_status); }; } &&
28236          { ac_try='test -s conftest.$ac_objext'
28237   { (case "(($ac_try" in
28238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28239   *) ac_try_echo=$ac_try;;
28240 esac
28241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28242   (eval "$ac_try") 2>&5
28243   ac_status=$?
28244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28245   (exit $ac_status); }; }; then
28246   ac_lo=$ac_mid; break
28247 else
28248   echo "$as_me: failed program was:" >&5
28249 sed 's/^/| /' conftest.$ac_ext >&5
28250
28251         ac_hi=`expr '(' $ac_mid ')' - 1`
28252                         if test $ac_mid -le $ac_hi; then
28253                           ac_lo= ac_hi=
28254                           break
28255                         fi
28256                         ac_mid=`expr 2 '*' $ac_mid`
28257 fi
28258
28259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28260   done
28261 else
28262   echo "$as_me: failed program was:" >&5
28263 sed 's/^/| /' conftest.$ac_ext >&5
28264
28265         ac_lo= ac_hi=
28266 fi
28267
28268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28269 fi
28270
28271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28272 # Binary search between lo and hi bounds.
28273 while test "x$ac_lo" != "x$ac_hi"; do
28274   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28275   cat >conftest.$ac_ext <<_ACEOF
28276 /* confdefs.h.  */
28277 _ACEOF
28278 cat confdefs.h >>conftest.$ac_ext
28279 cat >>conftest.$ac_ext <<_ACEOF
28280 /* end confdefs.h.  */
28281 $ac_includes_default
28282                    typedef long long int ac__type_sizeof_;
28283 int
28284 main ()
28285 {
28286 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28287 test_array [0] = 0
28288
28289   ;
28290   return 0;
28291 }
28292 _ACEOF
28293 rm -f conftest.$ac_objext
28294 if { (ac_try="$ac_compile"
28295 case "(($ac_try" in
28296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297   *) ac_try_echo=$ac_try;;
28298 esac
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300   (eval "$ac_compile") 2>conftest.er1
28301   ac_status=$?
28302   grep -v '^ *+' conftest.er1 >conftest.err
28303   rm -f conftest.er1
28304   cat conftest.err >&5
28305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306   (exit $ac_status); } &&
28307          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28308   { (case "(($ac_try" in
28309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310   *) ac_try_echo=$ac_try;;
28311 esac
28312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28313   (eval "$ac_try") 2>&5
28314   ac_status=$?
28315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316   (exit $ac_status); }; } &&
28317          { ac_try='test -s conftest.$ac_objext'
28318   { (case "(($ac_try" in
28319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28320   *) ac_try_echo=$ac_try;;
28321 esac
28322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28323   (eval "$ac_try") 2>&5
28324   ac_status=$?
28325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28326   (exit $ac_status); }; }; then
28327   ac_hi=$ac_mid
28328 else
28329   echo "$as_me: failed program was:" >&5
28330 sed 's/^/| /' conftest.$ac_ext >&5
28331
28332         ac_lo=`expr '(' $ac_mid ')' + 1`
28333 fi
28334
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28336 done
28337 case $ac_lo in
28338 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28339 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28340 See \`config.log' for more details." >&5
28341 echo "$as_me: error: cannot compute sizeof (long long int)
28342 See \`config.log' for more details." >&2;}
28343    { (exit 77); exit 77; }; } ;;
28344 esac
28345 else
28346   cat >conftest.$ac_ext <<_ACEOF
28347 /* confdefs.h.  */
28348 _ACEOF
28349 cat confdefs.h >>conftest.$ac_ext
28350 cat >>conftest.$ac_ext <<_ACEOF
28351 /* end confdefs.h.  */
28352 $ac_includes_default
28353                    typedef long long int ac__type_sizeof_;
28354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28356 #include <stdio.h>
28357 #include <stdlib.h>
28358 int
28359 main ()
28360 {
28361
28362   FILE *f = fopen ("conftest.val", "w");
28363   if (! f)
28364     return 1;
28365   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28366     {
28367       long int i = longval ();
28368       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28369         return 1;
28370       fprintf (f, "%ld\n", i);
28371     }
28372   else
28373     {
28374       unsigned long int i = ulongval ();
28375       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28376         return 1;
28377       fprintf (f, "%lu\n", i);
28378     }
28379   return ferror (f) || fclose (f) != 0;
28380
28381   ;
28382   return 0;
28383 }
28384 _ACEOF
28385 rm -f conftest$ac_exeext
28386 if { (ac_try="$ac_link"
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_link") 2>&5
28393   ac_status=$?
28394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28395   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28396   { (case "(($ac_try" in
28397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28398   *) ac_try_echo=$ac_try;;
28399 esac
28400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28401   (eval "$ac_try") 2>&5
28402   ac_status=$?
28403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); }; }; then
28405   ac_cv_sizeof_long_long_int=`cat conftest.val`
28406 else
28407   echo "$as_me: program exited with status $ac_status" >&5
28408 echo "$as_me: failed program was:" >&5
28409 sed 's/^/| /' conftest.$ac_ext >&5
28410
28411 ( exit $ac_status )
28412 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28413 See \`config.log' for more details." >&5
28414 echo "$as_me: error: cannot compute sizeof (long long int)
28415 See \`config.log' for more details." >&2;}
28416    { (exit 77); exit 77; }; }
28417 fi
28418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28419 fi
28420 rm -f conftest.val
28421 else
28422   ac_cv_sizeof_long_long_int=0
28423 fi
28424 fi
28425 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28426 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28427 cat >>confdefs.h <<_ACEOF
28428 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28429 _ACEOF
28430
28431
28432 { echo "$as_me:$LINENO: checking for int *" >&5
28433 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28434 if test "${ac_cv_type_int_p+set}" = set; then
28435   echo $ECHO_N "(cached) $ECHO_C" >&6
28436 else
28437   cat >conftest.$ac_ext <<_ACEOF
28438 /* confdefs.h.  */
28439 _ACEOF
28440 cat confdefs.h >>conftest.$ac_ext
28441 cat >>conftest.$ac_ext <<_ACEOF
28442 /* end confdefs.h.  */
28443 $ac_includes_default
28444 typedef int * ac__type_new_;
28445 int
28446 main ()
28447 {
28448 if ((ac__type_new_ *) 0)
28449   return 0;
28450 if (sizeof (ac__type_new_))
28451   return 0;
28452   ;
28453   return 0;
28454 }
28455 _ACEOF
28456 rm -f conftest.$ac_objext
28457 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28464   ac_status=$?
28465   grep -v '^ *+' conftest.er1 >conftest.err
28466   rm -f conftest.er1
28467   cat conftest.err >&5
28468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28469   (exit $ac_status); } &&
28470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28471   { (case "(($ac_try" in
28472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473   *) ac_try_echo=$ac_try;;
28474 esac
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476   (eval "$ac_try") 2>&5
28477   ac_status=$?
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); }; } &&
28480          { ac_try='test -s conftest.$ac_objext'
28481   { (case "(($ac_try" in
28482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483   *) ac_try_echo=$ac_try;;
28484 esac
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486   (eval "$ac_try") 2>&5
28487   ac_status=$?
28488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489   (exit $ac_status); }; }; then
28490   ac_cv_type_int_p=yes
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495         ac_cv_type_int_p=no
28496 fi
28497
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499 fi
28500 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28501 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28502
28503 { echo "$as_me:$LINENO: checking size of int *" >&5
28504 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28505 if test "${ac_cv_sizeof_int_p+set}" = set; then
28506   echo $ECHO_N "(cached) $ECHO_C" >&6
28507 else
28508   if test "$ac_cv_type_int_p" = yes; then
28509   # The cast to long int works around a bug in the HP C Compiler
28510   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28511   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28512   # This bug is HP SR number 8606223364.
28513   if test "$cross_compiling" = yes; then
28514   # Depending upon the size, compute the lo and hi bounds.
28515 cat >conftest.$ac_ext <<_ACEOF
28516 /* confdefs.h.  */
28517 _ACEOF
28518 cat confdefs.h >>conftest.$ac_ext
28519 cat >>conftest.$ac_ext <<_ACEOF
28520 /* end confdefs.h.  */
28521 $ac_includes_default
28522                    typedef int * ac__type_sizeof_;
28523 int
28524 main ()
28525 {
28526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28527 test_array [0] = 0
28528
28529   ;
28530   return 0;
28531 }
28532 _ACEOF
28533 rm -f conftest.$ac_objext
28534 if { (ac_try="$ac_compile"
28535 case "(($ac_try" in
28536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537   *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540   (eval "$ac_compile") 2>conftest.er1
28541   ac_status=$?
28542   grep -v '^ *+' conftest.er1 >conftest.err
28543   rm -f conftest.er1
28544   cat conftest.err >&5
28545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28546   (exit $ac_status); } &&
28547          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28548   { (case "(($ac_try" in
28549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28550   *) ac_try_echo=$ac_try;;
28551 esac
28552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28553   (eval "$ac_try") 2>&5
28554   ac_status=$?
28555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28556   (exit $ac_status); }; } &&
28557          { ac_try='test -s conftest.$ac_objext'
28558   { (case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28563   (eval "$ac_try") 2>&5
28564   ac_status=$?
28565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28566   (exit $ac_status); }; }; then
28567   ac_lo=0 ac_mid=0
28568   while :; do
28569     cat >conftest.$ac_ext <<_ACEOF
28570 /* confdefs.h.  */
28571 _ACEOF
28572 cat confdefs.h >>conftest.$ac_ext
28573 cat >>conftest.$ac_ext <<_ACEOF
28574 /* end confdefs.h.  */
28575 $ac_includes_default
28576                    typedef int * ac__type_sizeof_;
28577 int
28578 main ()
28579 {
28580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28581 test_array [0] = 0
28582
28583   ;
28584   return 0;
28585 }
28586 _ACEOF
28587 rm -f conftest.$ac_objext
28588 if { (ac_try="$ac_compile"
28589 case "(($ac_try" in
28590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28591   *) ac_try_echo=$ac_try;;
28592 esac
28593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28594   (eval "$ac_compile") 2>conftest.er1
28595   ac_status=$?
28596   grep -v '^ *+' conftest.er1 >conftest.err
28597   rm -f conftest.er1
28598   cat conftest.err >&5
28599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600   (exit $ac_status); } &&
28601          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28602   { (case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28607   (eval "$ac_try") 2>&5
28608   ac_status=$?
28609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610   (exit $ac_status); }; } &&
28611          { ac_try='test -s conftest.$ac_objext'
28612   { (case "(($ac_try" in
28613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614   *) ac_try_echo=$ac_try;;
28615 esac
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617   (eval "$ac_try") 2>&5
28618   ac_status=$?
28619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28620   (exit $ac_status); }; }; then
28621   ac_hi=$ac_mid; break
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626         ac_lo=`expr $ac_mid + 1`
28627                         if test $ac_lo -le $ac_mid; then
28628                           ac_lo= ac_hi=
28629                           break
28630                         fi
28631                         ac_mid=`expr 2 '*' $ac_mid + 1`
28632 fi
28633
28634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28635   done
28636 else
28637   echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640         cat >conftest.$ac_ext <<_ACEOF
28641 /* confdefs.h.  */
28642 _ACEOF
28643 cat confdefs.h >>conftest.$ac_ext
28644 cat >>conftest.$ac_ext <<_ACEOF
28645 /* end confdefs.h.  */
28646 $ac_includes_default
28647                    typedef int * ac__type_sizeof_;
28648 int
28649 main ()
28650 {
28651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28652 test_array [0] = 0
28653
28654   ;
28655   return 0;
28656 }
28657 _ACEOF
28658 rm -f conftest.$ac_objext
28659 if { (ac_try="$ac_compile"
28660 case "(($ac_try" in
28661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662   *) ac_try_echo=$ac_try;;
28663 esac
28664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28665   (eval "$ac_compile") 2>conftest.er1
28666   ac_status=$?
28667   grep -v '^ *+' conftest.er1 >conftest.err
28668   rm -f conftest.er1
28669   cat conftest.err >&5
28670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28671   (exit $ac_status); } &&
28672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28673   { (case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_try") 2>&5
28679   ac_status=$?
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); }; } &&
28682          { ac_try='test -s conftest.$ac_objext'
28683   { (case "(($ac_try" in
28684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685   *) ac_try_echo=$ac_try;;
28686 esac
28687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28688   (eval "$ac_try") 2>&5
28689   ac_status=$?
28690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28691   (exit $ac_status); }; }; then
28692   ac_hi=-1 ac_mid=-1
28693   while :; do
28694     cat >conftest.$ac_ext <<_ACEOF
28695 /* confdefs.h.  */
28696 _ACEOF
28697 cat confdefs.h >>conftest.$ac_ext
28698 cat >>conftest.$ac_ext <<_ACEOF
28699 /* end confdefs.h.  */
28700 $ac_includes_default
28701                    typedef int * ac__type_sizeof_;
28702 int
28703 main ()
28704 {
28705 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28706 test_array [0] = 0
28707
28708   ;
28709   return 0;
28710 }
28711 _ACEOF
28712 rm -f conftest.$ac_objext
28713 if { (ac_try="$ac_compile"
28714 case "(($ac_try" in
28715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28716   *) ac_try_echo=$ac_try;;
28717 esac
28718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28719   (eval "$ac_compile") 2>conftest.er1
28720   ac_status=$?
28721   grep -v '^ *+' conftest.er1 >conftest.err
28722   rm -f conftest.er1
28723   cat conftest.err >&5
28724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28725   (exit $ac_status); } &&
28726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28727   { (case "(($ac_try" in
28728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729   *) ac_try_echo=$ac_try;;
28730 esac
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732   (eval "$ac_try") 2>&5
28733   ac_status=$?
28734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735   (exit $ac_status); }; } &&
28736          { ac_try='test -s conftest.$ac_objext'
28737   { (case "(($ac_try" in
28738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28739   *) ac_try_echo=$ac_try;;
28740 esac
28741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28742   (eval "$ac_try") 2>&5
28743   ac_status=$?
28744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28745   (exit $ac_status); }; }; then
28746   ac_lo=$ac_mid; break
28747 else
28748   echo "$as_me: failed program was:" >&5
28749 sed 's/^/| /' conftest.$ac_ext >&5
28750
28751         ac_hi=`expr '(' $ac_mid ')' - 1`
28752                         if test $ac_mid -le $ac_hi; then
28753                           ac_lo= ac_hi=
28754                           break
28755                         fi
28756                         ac_mid=`expr 2 '*' $ac_mid`
28757 fi
28758
28759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28760   done
28761 else
28762   echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.$ac_ext >&5
28764
28765         ac_lo= ac_hi=
28766 fi
28767
28768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28769 fi
28770
28771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28772 # Binary search between lo and hi bounds.
28773 while test "x$ac_lo" != "x$ac_hi"; do
28774   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28775   cat >conftest.$ac_ext <<_ACEOF
28776 /* confdefs.h.  */
28777 _ACEOF
28778 cat confdefs.h >>conftest.$ac_ext
28779 cat >>conftest.$ac_ext <<_ACEOF
28780 /* end confdefs.h.  */
28781 $ac_includes_default
28782                    typedef int * ac__type_sizeof_;
28783 int
28784 main ()
28785 {
28786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28787 test_array [0] = 0
28788
28789   ;
28790   return 0;
28791 }
28792 _ACEOF
28793 rm -f conftest.$ac_objext
28794 if { (ac_try="$ac_compile"
28795 case "(($ac_try" in
28796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28797   *) ac_try_echo=$ac_try;;
28798 esac
28799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28800   (eval "$ac_compile") 2>conftest.er1
28801   ac_status=$?
28802   grep -v '^ *+' conftest.er1 >conftest.err
28803   rm -f conftest.er1
28804   cat conftest.err >&5
28805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28806   (exit $ac_status); } &&
28807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28808   { (case "(($ac_try" in
28809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28810   *) ac_try_echo=$ac_try;;
28811 esac
28812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28813   (eval "$ac_try") 2>&5
28814   ac_status=$?
28815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816   (exit $ac_status); }; } &&
28817          { ac_try='test -s conftest.$ac_objext'
28818   { (case "(($ac_try" in
28819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28820   *) ac_try_echo=$ac_try;;
28821 esac
28822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28823   (eval "$ac_try") 2>&5
28824   ac_status=$?
28825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28826   (exit $ac_status); }; }; then
28827   ac_hi=$ac_mid
28828 else
28829   echo "$as_me: failed program was:" >&5
28830 sed 's/^/| /' conftest.$ac_ext >&5
28831
28832         ac_lo=`expr '(' $ac_mid ')' + 1`
28833 fi
28834
28835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28836 done
28837 case $ac_lo in
28838 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28839 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28840 See \`config.log' for more details." >&5
28841 echo "$as_me: error: cannot compute sizeof (int *)
28842 See \`config.log' for more details." >&2;}
28843    { (exit 77); exit 77; }; } ;;
28844 esac
28845 else
28846   cat >conftest.$ac_ext <<_ACEOF
28847 /* confdefs.h.  */
28848 _ACEOF
28849 cat confdefs.h >>conftest.$ac_ext
28850 cat >>conftest.$ac_ext <<_ACEOF
28851 /* end confdefs.h.  */
28852 $ac_includes_default
28853                    typedef int * ac__type_sizeof_;
28854 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28855 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28856 #include <stdio.h>
28857 #include <stdlib.h>
28858 int
28859 main ()
28860 {
28861
28862   FILE *f = fopen ("conftest.val", "w");
28863   if (! f)
28864     return 1;
28865   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28866     {
28867       long int i = longval ();
28868       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28869         return 1;
28870       fprintf (f, "%ld\n", i);
28871     }
28872   else
28873     {
28874       unsigned long int i = ulongval ();
28875       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28876         return 1;
28877       fprintf (f, "%lu\n", i);
28878     }
28879   return ferror (f) || fclose (f) != 0;
28880
28881   ;
28882   return 0;
28883 }
28884 _ACEOF
28885 rm -f conftest$ac_exeext
28886 if { (ac_try="$ac_link"
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_link") 2>&5
28893   ac_status=$?
28894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28896   { (case "(($ac_try" in
28897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898   *) ac_try_echo=$ac_try;;
28899 esac
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901   (eval "$ac_try") 2>&5
28902   ac_status=$?
28903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904   (exit $ac_status); }; }; then
28905   ac_cv_sizeof_int_p=`cat conftest.val`
28906 else
28907   echo "$as_me: program exited with status $ac_status" >&5
28908 echo "$as_me: failed program was:" >&5
28909 sed 's/^/| /' conftest.$ac_ext >&5
28910
28911 ( exit $ac_status )
28912 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28913 See \`config.log' for more details." >&5
28914 echo "$as_me: error: cannot compute sizeof (int *)
28915 See \`config.log' for more details." >&2;}
28916    { (exit 77); exit 77; }; }
28917 fi
28918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28919 fi
28920 rm -f conftest.val
28921 else
28922   ac_cv_sizeof_int_p=0
28923 fi
28924 fi
28925 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28926 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28927 cat >>confdefs.h <<_ACEOF
28928 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28929 _ACEOF
28930
28931
28932
28933 # Check for sys/types.h types
28934 { echo "$as_me:$LINENO: checking for u_int type" >&5
28935 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28936 if test "${ac_cv_have_u_int+set}" = set; then
28937   echo $ECHO_N "(cached) $ECHO_C" >&6
28938 else
28939
28940     cat >conftest.$ac_ext <<_ACEOF
28941 /* confdefs.h.  */
28942 _ACEOF
28943 cat confdefs.h >>conftest.$ac_ext
28944 cat >>conftest.$ac_ext <<_ACEOF
28945 /* end confdefs.h.  */
28946  #include <sys/types.h>
28947 int
28948 main ()
28949 {
28950  u_int a; a = 1;
28951   ;
28952   return 0;
28953 }
28954 _ACEOF
28955 rm -f conftest.$ac_objext
28956 if { (ac_try="$ac_compile"
28957 case "(($ac_try" in
28958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28959   *) ac_try_echo=$ac_try;;
28960 esac
28961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28962   (eval "$ac_compile") 2>conftest.er1
28963   ac_status=$?
28964   grep -v '^ *+' conftest.er1 >conftest.err
28965   rm -f conftest.er1
28966   cat conftest.err >&5
28967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968   (exit $ac_status); } &&
28969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28970   { (case "(($ac_try" in
28971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972   *) ac_try_echo=$ac_try;;
28973 esac
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975   (eval "$ac_try") 2>&5
28976   ac_status=$?
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); }; } &&
28979          { ac_try='test -s conftest.$ac_objext'
28980   { (case "(($ac_try" in
28981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982   *) ac_try_echo=$ac_try;;
28983 esac
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985   (eval "$ac_try") 2>&5
28986   ac_status=$?
28987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28988   (exit $ac_status); }; }; then
28989    ac_cv_have_u_int="yes"
28990 else
28991   echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28993
28994          ac_cv_have_u_int="no"
28995
28996 fi
28997
28998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28999
29000 fi
29001 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
29002 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
29003 if test "x$ac_cv_have_u_int" = "xyes" ; then
29004    cat >>confdefs.h <<\_ACEOF
29005 #define HAVE_U_INT 1
29006 _ACEOF
29007
29008    have_u_int=1
29009 fi
29010
29011 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
29012 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
29013 if test "${ac_cv_have_intmax_t+set}" = set; then
29014   echo $ECHO_N "(cached) $ECHO_C" >&6
29015 else
29016
29017    cat >conftest.$ac_ext <<_ACEOF
29018 /* confdefs.h.  */
29019 _ACEOF
29020 cat confdefs.h >>conftest.$ac_ext
29021 cat >>conftest.$ac_ext <<_ACEOF
29022 /* end confdefs.h.  */
29023  #include <sys/types.h>
29024 int
29025 main ()
29026 {
29027  intmax_t a; a = 1;
29028   ;
29029   return 0;
29030 }
29031 _ACEOF
29032 rm -f conftest.$ac_objext
29033 if { (ac_try="$ac_compile"
29034 case "(($ac_try" in
29035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29036   *) ac_try_echo=$ac_try;;
29037 esac
29038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29039   (eval "$ac_compile") 2>conftest.er1
29040   ac_status=$?
29041   grep -v '^ *+' conftest.er1 >conftest.err
29042   rm -f conftest.er1
29043   cat conftest.err >&5
29044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29045   (exit $ac_status); } &&
29046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29047   { (case "(($ac_try" in
29048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29049   *) ac_try_echo=$ac_try;;
29050 esac
29051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29052   (eval "$ac_try") 2>&5
29053   ac_status=$?
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); }; } &&
29056          { ac_try='test -s conftest.$ac_objext'
29057   { (case "(($ac_try" in
29058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29059   *) ac_try_echo=$ac_try;;
29060 esac
29061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29062   (eval "$ac_try") 2>&5
29063   ac_status=$?
29064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065   (exit $ac_status); }; }; then
29066    ac_cv_have_intmax_t="yes"
29067 else
29068   echo "$as_me: failed program was:" >&5
29069 sed 's/^/| /' conftest.$ac_ext >&5
29070
29071
29072          cat >conftest.$ac_ext <<_ACEOF
29073 /* confdefs.h.  */
29074 _ACEOF
29075 cat confdefs.h >>conftest.$ac_ext
29076 cat >>conftest.$ac_ext <<_ACEOF
29077 /* end confdefs.h.  */
29078  #include <stdint.h>
29079 int
29080 main ()
29081 {
29082  intmax_t a; a = 1;
29083   ;
29084   return 0;
29085 }
29086 _ACEOF
29087 rm -f conftest.$ac_objext
29088 if { (ac_try="$ac_compile"
29089 case "(($ac_try" in
29090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29091   *) ac_try_echo=$ac_try;;
29092 esac
29093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29094   (eval "$ac_compile") 2>conftest.er1
29095   ac_status=$?
29096   grep -v '^ *+' conftest.er1 >conftest.err
29097   rm -f conftest.er1
29098   cat conftest.err >&5
29099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29100   (exit $ac_status); } &&
29101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29102   { (case "(($ac_try" in
29103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29104   *) ac_try_echo=$ac_try;;
29105 esac
29106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29107   (eval "$ac_try") 2>&5
29108   ac_status=$?
29109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110   (exit $ac_status); }; } &&
29111          { ac_try='test -s conftest.$ac_objext'
29112   { (case "(($ac_try" in
29113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29114   *) ac_try_echo=$ac_try;;
29115 esac
29116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29117   (eval "$ac_try") 2>&5
29118   ac_status=$?
29119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29120   (exit $ac_status); }; }; then
29121    ac_cv_have_intmax_t="yes"
29122 else
29123   echo "$as_me: failed program was:" >&5
29124 sed 's/^/| /' conftest.$ac_ext >&5
29125
29126          ac_cv_have_intmax_t="no"
29127
29128 fi
29129
29130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29131
29132
29133 fi
29134
29135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29136
29137
29138 fi
29139 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29140 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29141 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29142    cat >>confdefs.h <<\_ACEOF
29143 #define HAVE_INTMAX_T 1
29144 _ACEOF
29145
29146    have_intmax_t=1
29147 fi
29148
29149
29150 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29151 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29152 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29153   echo $ECHO_N "(cached) $ECHO_C" >&6
29154 else
29155
29156    cat >conftest.$ac_ext <<_ACEOF
29157 /* confdefs.h.  */
29158 _ACEOF
29159 cat confdefs.h >>conftest.$ac_ext
29160 cat >>conftest.$ac_ext <<_ACEOF
29161 /* end confdefs.h.  */
29162  #include <sys/types.h>
29163 int
29164 main ()
29165 {
29166  u_intmax_t a; a = 1;
29167   ;
29168   return 0;
29169 }
29170 _ACEOF
29171 rm -f conftest.$ac_objext
29172 if { (ac_try="$ac_compile"
29173 case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178   (eval "$ac_compile") 2>conftest.er1
29179   ac_status=$?
29180   grep -v '^ *+' conftest.er1 >conftest.err
29181   rm -f conftest.er1
29182   cat conftest.err >&5
29183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184   (exit $ac_status); } &&
29185          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
29195          { ac_try='test -s conftest.$ac_objext'
29196   { (case "(($ac_try" in
29197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198   *) ac_try_echo=$ac_try;;
29199 esac
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201   (eval "$ac_try") 2>&5
29202   ac_status=$?
29203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204   (exit $ac_status); }; }; then
29205    ac_cv_have_u_intmax_t="yes"
29206 else
29207   echo "$as_me: failed program was:" >&5
29208 sed 's/^/| /' conftest.$ac_ext >&5
29209
29210
29211          cat >conftest.$ac_ext <<_ACEOF
29212 /* confdefs.h.  */
29213 _ACEOF
29214 cat confdefs.h >>conftest.$ac_ext
29215 cat >>conftest.$ac_ext <<_ACEOF
29216 /* end confdefs.h.  */
29217  #include <stdint.h>
29218 int
29219 main ()
29220 {
29221  u_intmax_t a; a = 1;
29222   ;
29223   return 0;
29224 }
29225 _ACEOF
29226 rm -f conftest.$ac_objext
29227 if { (ac_try="$ac_compile"
29228 case "(($ac_try" in
29229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29230   *) ac_try_echo=$ac_try;;
29231 esac
29232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29233   (eval "$ac_compile") 2>conftest.er1
29234   ac_status=$?
29235   grep -v '^ *+' conftest.er1 >conftest.err
29236   rm -f conftest.er1
29237   cat conftest.err >&5
29238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29239   (exit $ac_status); } &&
29240          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29241   { (case "(($ac_try" in
29242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29243   *) ac_try_echo=$ac_try;;
29244 esac
29245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29246   (eval "$ac_try") 2>&5
29247   ac_status=$?
29248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29249   (exit $ac_status); }; } &&
29250          { ac_try='test -s conftest.$ac_objext'
29251   { (case "(($ac_try" in
29252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253   *) ac_try_echo=$ac_try;;
29254 esac
29255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29256   (eval "$ac_try") 2>&5
29257   ac_status=$?
29258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259   (exit $ac_status); }; }; then
29260    ac_cv_have_u_intmax_t="yes"
29261 else
29262   echo "$as_me: failed program was:" >&5
29263 sed 's/^/| /' conftest.$ac_ext >&5
29264
29265          ac_cv_have_u_intmax_t="no"
29266
29267 fi
29268
29269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29270
29271
29272 fi
29273
29274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29275
29276 fi
29277 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29278 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29279 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29280    cat >>confdefs.h <<\_ACEOF
29281 #define HAVE_U_INTMAX_T 1
29282 _ACEOF
29283
29284    have_u_intmax_t=1
29285 fi
29286
29287
29288 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29289 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29290 if test "${ac_cv_have_intxx_t+set}" = set; then
29291   echo $ECHO_N "(cached) $ECHO_C" >&6
29292 else
29293
29294    cat >conftest.$ac_ext <<_ACEOF
29295 /* confdefs.h.  */
29296 _ACEOF
29297 cat confdefs.h >>conftest.$ac_ext
29298 cat >>conftest.$ac_ext <<_ACEOF
29299 /* end confdefs.h.  */
29300  #include <sys/types.h>
29301 int
29302 main ()
29303 {
29304  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29305   ;
29306   return 0;
29307 }
29308 _ACEOF
29309 rm -f conftest.$ac_objext
29310 if { (ac_try="$ac_compile"
29311 case "(($ac_try" in
29312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29313   *) ac_try_echo=$ac_try;;
29314 esac
29315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29316   (eval "$ac_compile") 2>conftest.er1
29317   ac_status=$?
29318   grep -v '^ *+' conftest.er1 >conftest.err
29319   rm -f conftest.er1
29320   cat conftest.err >&5
29321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29322   (exit $ac_status); } &&
29323          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29324   { (case "(($ac_try" in
29325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29326   *) ac_try_echo=$ac_try;;
29327 esac
29328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29329   (eval "$ac_try") 2>&5
29330   ac_status=$?
29331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29332   (exit $ac_status); }; } &&
29333          { ac_try='test -s conftest.$ac_objext'
29334   { (case "(($ac_try" in
29335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29336   *) ac_try_echo=$ac_try;;
29337 esac
29338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29339   (eval "$ac_try") 2>&5
29340   ac_status=$?
29341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29342   (exit $ac_status); }; }; then
29343    ac_cv_have_intxx_t="yes"
29344 else
29345   echo "$as_me: failed program was:" >&5
29346 sed 's/^/| /' conftest.$ac_ext >&5
29347
29348          ac_cv_have_intxx_t="no"
29349
29350 fi
29351
29352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29353
29354 fi
29355 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29356 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29357 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29358    cat >>confdefs.h <<\_ACEOF
29359 #define HAVE_INTXX_T 1
29360 _ACEOF
29361
29362    have_intxx_t=1
29363 fi
29364
29365 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29366 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29367 if test "${ac_cv_have_int64_t+set}" = set; then
29368   echo $ECHO_N "(cached) $ECHO_C" >&6
29369 else
29370
29371    cat >conftest.$ac_ext <<_ACEOF
29372 /* confdefs.h.  */
29373 _ACEOF
29374 cat confdefs.h >>conftest.$ac_ext
29375 cat >>conftest.$ac_ext <<_ACEOF
29376 /* end confdefs.h.  */
29377  #include <sys/types.h>
29378 int
29379 main ()
29380 {
29381  int64_t a; a = 1;
29382   ;
29383   return 0;
29384 }
29385 _ACEOF
29386 rm -f conftest.$ac_objext
29387 if { (ac_try="$ac_compile"
29388 case "(($ac_try" in
29389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29390   *) ac_try_echo=$ac_try;;
29391 esac
29392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29393   (eval "$ac_compile") 2>conftest.er1
29394   ac_status=$?
29395   grep -v '^ *+' conftest.er1 >conftest.err
29396   rm -f conftest.er1
29397   cat conftest.err >&5
29398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29399   (exit $ac_status); } &&
29400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29401   { (case "(($ac_try" in
29402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29403   *) ac_try_echo=$ac_try;;
29404 esac
29405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29406   (eval "$ac_try") 2>&5
29407   ac_status=$?
29408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29409   (exit $ac_status); }; } &&
29410          { ac_try='test -s conftest.$ac_objext'
29411   { (case "(($ac_try" in
29412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413   *) ac_try_echo=$ac_try;;
29414 esac
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416   (eval "$ac_try") 2>&5
29417   ac_status=$?
29418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419   (exit $ac_status); }; }; then
29420    ac_cv_have_int64_t="yes"
29421 else
29422   echo "$as_me: failed program was:" >&5
29423 sed 's/^/| /' conftest.$ac_ext >&5
29424
29425          ac_cv_have_int64_t="no"
29426
29427 fi
29428
29429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29430
29431 fi
29432 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29433 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29434 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29435    cat >>confdefs.h <<\_ACEOF
29436 #define HAVE_INT64_T 1
29437 _ACEOF
29438
29439    have_int64_t=1
29440 fi
29441
29442 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29443 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29444 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29445   echo $ECHO_N "(cached) $ECHO_C" >&6
29446 else
29447
29448    cat >conftest.$ac_ext <<_ACEOF
29449 /* confdefs.h.  */
29450 _ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h.  */
29454  #include <sys/types.h>
29455 int
29456 main ()
29457 {
29458  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29459   ;
29460   return 0;
29461 }
29462 _ACEOF
29463 rm -f conftest.$ac_objext
29464 if { (ac_try="$ac_compile"
29465 case "(($ac_try" in
29466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29467   *) ac_try_echo=$ac_try;;
29468 esac
29469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29470   (eval "$ac_compile") 2>conftest.er1
29471   ac_status=$?
29472   grep -v '^ *+' conftest.er1 >conftest.err
29473   rm -f conftest.er1
29474   cat conftest.err >&5
29475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29476   (exit $ac_status); } &&
29477          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29484   ac_status=$?
29485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486   (exit $ac_status); }; } &&
29487          { ac_try='test -s conftest.$ac_objext'
29488   { (case "(($ac_try" in
29489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29490   *) ac_try_echo=$ac_try;;
29491 esac
29492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29493   (eval "$ac_try") 2>&5
29494   ac_status=$?
29495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496   (exit $ac_status); }; }; then
29497    ac_cv_have_u_intxx_t="yes"
29498 else
29499   echo "$as_me: failed program was:" >&5
29500 sed 's/^/| /' conftest.$ac_ext >&5
29501
29502          ac_cv_have_u_intxx_t="no"
29503
29504 fi
29505
29506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29507
29508 fi
29509 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29510 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29511 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29512    cat >>confdefs.h <<\_ACEOF
29513 #define HAVE_U_INTXX_T 1
29514 _ACEOF
29515
29516    have_u_intxx_t=1
29517 fi
29518
29519 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29520 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29521 if test "${ac_cv_have_u_int64_t+set}" = set; then
29522   echo $ECHO_N "(cached) $ECHO_C" >&6
29523 else
29524
29525    cat >conftest.$ac_ext <<_ACEOF
29526 /* confdefs.h.  */
29527 _ACEOF
29528 cat confdefs.h >>conftest.$ac_ext
29529 cat >>conftest.$ac_ext <<_ACEOF
29530 /* end confdefs.h.  */
29531  #include <sys/types.h>
29532 int
29533 main ()
29534 {
29535  u_int64_t a; a = 1;
29536   ;
29537   return 0;
29538 }
29539 _ACEOF
29540 rm -f conftest.$ac_objext
29541 if { (ac_try="$ac_compile"
29542 case "(($ac_try" in
29543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29544   *) ac_try_echo=$ac_try;;
29545 esac
29546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29547   (eval "$ac_compile") 2>conftest.er1
29548   ac_status=$?
29549   grep -v '^ *+' conftest.er1 >conftest.err
29550   rm -f conftest.er1
29551   cat conftest.err >&5
29552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553   (exit $ac_status); } &&
29554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
29561   ac_status=$?
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); }; } &&
29564          { ac_try='test -s conftest.$ac_objext'
29565   { (case "(($ac_try" in
29566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567   *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570   (eval "$ac_try") 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; }; then
29574    ac_cv_have_u_int64_t="yes"
29575 else
29576   echo "$as_me: failed program was:" >&5
29577 sed 's/^/| /' conftest.$ac_ext >&5
29578
29579          ac_cv_have_u_int64_t="no"
29580
29581 fi
29582
29583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29584
29585 fi
29586 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29587 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29588 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29589    cat >>confdefs.h <<\_ACEOF
29590 #define HAVE_U_INT64_T 1
29591 _ACEOF
29592
29593    have_u_int64_t=1
29594 fi
29595
29596 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29597            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29598 then
29599    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29600 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29601    cat >conftest.$ac_ext <<_ACEOF
29602 /* confdefs.h.  */
29603 _ACEOF
29604 cat confdefs.h >>conftest.$ac_ext
29605 cat >>conftest.$ac_ext <<_ACEOF
29606 /* end confdefs.h.  */
29607  #include <sys/bitypes.h>
29608 int
29609 main ()
29610 {
29611  int8_t a; int16_t b; int32_t c;
29612         u_int8_t e; u_int16_t f; u_int32_t g;
29613         a = b = c = e = f = g = 1;
29614   ;
29615   return 0;
29616 }
29617 _ACEOF
29618 rm -f conftest.$ac_objext
29619 if { (ac_try="$ac_compile"
29620 case "(($ac_try" in
29621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29622   *) ac_try_echo=$ac_try;;
29623 esac
29624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29625   (eval "$ac_compile") 2>conftest.er1
29626   ac_status=$?
29627   grep -v '^ *+' conftest.er1 >conftest.err
29628   rm -f conftest.er1
29629   cat conftest.err >&5
29630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29631   (exit $ac_status); } &&
29632          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29633   { (case "(($ac_try" in
29634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29635   *) ac_try_echo=$ac_try;;
29636 esac
29637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29638   (eval "$ac_try") 2>&5
29639   ac_status=$?
29640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641   (exit $ac_status); }; } &&
29642          { ac_try='test -s conftest.$ac_objext'
29643   { (case "(($ac_try" in
29644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645   *) ac_try_echo=$ac_try;;
29646 esac
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648   (eval "$ac_try") 2>&5
29649   ac_status=$?
29650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651   (exit $ac_status); }; }; then
29652    cat >>confdefs.h <<\_ACEOF
29653 #define HAVE_U_INTXX_T 1
29654 _ACEOF
29655
29656         cat >>confdefs.h <<\_ACEOF
29657 #define HAVE_INTXX_T 1
29658 _ACEOF
29659
29660         cat >>confdefs.h <<\_ACEOF
29661 #define HAVE_SYS_BITYPES_H 1
29662 _ACEOF
29663
29664         { echo "$as_me:$LINENO: result: yes" >&5
29665 echo "${ECHO_T}yes" >&6; }
29666 else
29667   echo "$as_me: failed program was:" >&5
29668 sed 's/^/| /' conftest.$ac_ext >&5
29669
29670          { echo "$as_me:$LINENO: result: no" >&5
29671 echo "${ECHO_T}no" >&6; }
29672
29673 fi
29674
29675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29676 fi
29677
29678 if test -z "$have_u_intxx_t" ; then
29679    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29680 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29681 if test "${ac_cv_have_uintxx_t+set}" = set; then
29682   echo $ECHO_N "(cached) $ECHO_C" >&6
29683 else
29684
29685       cat >conftest.$ac_ext <<_ACEOF
29686 /* confdefs.h.  */
29687 _ACEOF
29688 cat confdefs.h >>conftest.$ac_ext
29689 cat >>conftest.$ac_ext <<_ACEOF
29690 /* end confdefs.h.  */
29691  #include <sys/types.h>
29692 int
29693 main ()
29694 {
29695  uint8_t a; uint16_t b;
29696            uint32_t c; a = b = c = 1;
29697   ;
29698   return 0;
29699 }
29700 _ACEOF
29701 rm -f conftest.$ac_objext
29702 if { (ac_try="$ac_compile"
29703 case "(($ac_try" in
29704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29705   *) ac_try_echo=$ac_try;;
29706 esac
29707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29708   (eval "$ac_compile") 2>conftest.er1
29709   ac_status=$?
29710   grep -v '^ *+' conftest.er1 >conftest.err
29711   rm -f conftest.er1
29712   cat conftest.err >&5
29713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29714   (exit $ac_status); } &&
29715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29716   { (case "(($ac_try" in
29717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718   *) ac_try_echo=$ac_try;;
29719 esac
29720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29721   (eval "$ac_try") 2>&5
29722   ac_status=$?
29723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29724   (exit $ac_status); }; } &&
29725          { ac_try='test -s conftest.$ac_objext'
29726   { (case "(($ac_try" in
29727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29728   *) ac_try_echo=$ac_try;;
29729 esac
29730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29731   (eval "$ac_try") 2>&5
29732   ac_status=$?
29733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29734   (exit $ac_status); }; }; then
29735    ac_cv_have_uintxx_t="yes"
29736 else
29737   echo "$as_me: failed program was:" >&5
29738 sed 's/^/| /' conftest.$ac_ext >&5
29739
29740          ac_cv_have_uintxx_t="no"
29741
29742 fi
29743
29744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29745
29746 fi
29747 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29748 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29749    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29750       cat >>confdefs.h <<\_ACEOF
29751 #define HAVE_UINTXX_T 1
29752 _ACEOF
29753
29754    fi
29755 fi
29756
29757 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29758           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29759 then
29760    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29761 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29762    cat >conftest.$ac_ext <<_ACEOF
29763 /* confdefs.h.  */
29764 _ACEOF
29765 cat confdefs.h >>conftest.$ac_ext
29766 cat >>conftest.$ac_ext <<_ACEOF
29767 /* end confdefs.h.  */
29768  #include <sys/bitypes.h>
29769 int
29770 main ()
29771 {
29772  int64_t a; u_int64_t b;
29773        a = b = 1;
29774   ;
29775   return 0;
29776 }
29777 _ACEOF
29778 rm -f conftest.$ac_objext
29779 if { (ac_try="$ac_compile"
29780 case "(($ac_try" in
29781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782   *) ac_try_echo=$ac_try;;
29783 esac
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785   (eval "$ac_compile") 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } &&
29792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29793   { (case "(($ac_try" in
29794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29795   *) ac_try_echo=$ac_try;;
29796 esac
29797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29798   (eval "$ac_try") 2>&5
29799   ac_status=$?
29800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29801   (exit $ac_status); }; } &&
29802          { ac_try='test -s conftest.$ac_objext'
29803   { (case "(($ac_try" in
29804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29805   *) ac_try_echo=$ac_try;;
29806 esac
29807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29808   (eval "$ac_try") 2>&5
29809   ac_status=$?
29810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811   (exit $ac_status); }; }; then
29812    cat >>confdefs.h <<\_ACEOF
29813 #define HAVE_U_INT64_T 1
29814 _ACEOF
29815
29816        cat >>confdefs.h <<\_ACEOF
29817 #define HAVE_INT64_T 1
29818 _ACEOF
29819
29820        { echo "$as_me:$LINENO: result: yes" >&5
29821 echo "${ECHO_T}yes" >&6; }
29822 else
29823   echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29825
29826          { echo "$as_me:$LINENO: result: no" >&5
29827 echo "${ECHO_T}no" >&6; }
29828
29829 fi
29830
29831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29832 fi
29833
29834 if (test -z "$have_uintxx_t" && \
29835           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29836 then
29837    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29838 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29839    cat >conftest.$ac_ext <<_ACEOF
29840 /* confdefs.h.  */
29841 _ACEOF
29842 cat confdefs.h >>conftest.$ac_ext
29843 cat >>conftest.$ac_ext <<_ACEOF
29844 /* end confdefs.h.  */
29845  #include <sys/bitypes.h>
29846 int
29847 main ()
29848 {
29849  uint8_t a; uint16_t b;
29850           uint32_t c; a = b = c = 1;
29851   ;
29852   return 0;
29853 }
29854 _ACEOF
29855 rm -f conftest.$ac_objext
29856 if { (ac_try="$ac_compile"
29857 case "(($ac_try" in
29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859   *) ac_try_echo=$ac_try;;
29860 esac
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862   (eval "$ac_compile") 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } &&
29869          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29870   { (case "(($ac_try" in
29871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29872   *) ac_try_echo=$ac_try;;
29873 esac
29874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29875   (eval "$ac_try") 2>&5
29876   ac_status=$?
29877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878   (exit $ac_status); }; } &&
29879          { ac_try='test -s conftest.$ac_objext'
29880   { (case "(($ac_try" in
29881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29882   *) ac_try_echo=$ac_try;;
29883 esac
29884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29885   (eval "$ac_try") 2>&5
29886   ac_status=$?
29887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29888   (exit $ac_status); }; }; then
29889    cat >>confdefs.h <<\_ACEOF
29890 #define HAVE_UINTXX_T 1
29891 _ACEOF
29892
29893        { echo "$as_me:$LINENO: result: yes" >&5
29894 echo "${ECHO_T}yes" >&6; }
29895 else
29896   echo "$as_me: failed program was:" >&5
29897 sed 's/^/| /' conftest.$ac_ext >&5
29898
29899          { echo "$as_me:$LINENO: result: no" >&5
29900 echo "${ECHO_T}no" >&6; }
29901
29902 fi
29903
29904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29905
29906 fi
29907
29908
29909
29910
29911
29912
29913
29914
29915
29916
29917
29918
29919
29920
29921
29922
29923
29924 for ac_func in \
29925         fork \
29926         getcwd \
29927         gethostname \
29928         getpid \
29929         gettimeofday \
29930         setpgid \
29931         setpgrp \
29932         setsid \
29933         signal \
29934         strerror \
29935         strncmp \
29936         strncpy \
29937         vfprintf \
29938
29939 do
29940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29944   echo $ECHO_N "(cached) $ECHO_C" >&6
29945 else
29946   cat >conftest.$ac_ext <<_ACEOF
29947 /* confdefs.h.  */
29948 _ACEOF
29949 cat confdefs.h >>conftest.$ac_ext
29950 cat >>conftest.$ac_ext <<_ACEOF
29951 /* end confdefs.h.  */
29952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29954 #define $ac_func innocuous_$ac_func
29955
29956 /* System header to define __stub macros and hopefully few prototypes,
29957     which can conflict with char $ac_func (); below.
29958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29959     <limits.h> exists even on freestanding compilers.  */
29960
29961 #ifdef __STDC__
29962 # include <limits.h>
29963 #else
29964 # include <assert.h>
29965 #endif
29966
29967 #undef $ac_func
29968
29969 /* Override any GCC internal prototype to avoid an error.
29970    Use char because int might match the return type of a GCC
29971    builtin and then its argument prototype would still apply.  */
29972 #ifdef __cplusplus
29973 extern "C"
29974 #endif
29975 char $ac_func ();
29976 /* The GNU C library defines this for functions which it implements
29977     to always fail with ENOSYS.  Some functions are actually named
29978     something starting with __ and the normal name is an alias.  */
29979 #if defined __stub_$ac_func || defined __stub___$ac_func
29980 choke me
29981 #endif
29982
29983 int
29984 main ()
29985 {
29986 return $ac_func ();
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995   *) ac_try_echo=$ac_try;;
29996 esac
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998   (eval "$ac_link") 2>conftest.er1
29999   ac_status=$?
30000   grep -v '^ *+' conftest.er1 >conftest.err
30001   rm -f conftest.er1
30002   cat conftest.err >&5
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); } &&
30005          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30006   { (case "(($ac_try" in
30007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30008   *) ac_try_echo=$ac_try;;
30009 esac
30010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30011   (eval "$ac_try") 2>&5
30012   ac_status=$?
30013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014   (exit $ac_status); }; } &&
30015          { ac_try='test -s conftest$ac_exeext'
30016   { (case "(($ac_try" in
30017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30018   *) ac_try_echo=$ac_try;;
30019 esac
30020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30021   (eval "$ac_try") 2>&5
30022   ac_status=$?
30023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30024   (exit $ac_status); }; }; then
30025   eval "$as_ac_var=yes"
30026 else
30027   echo "$as_me: failed program was:" >&5
30028 sed 's/^/| /' conftest.$ac_ext >&5
30029
30030         eval "$as_ac_var=no"
30031 fi
30032
30033 rm -f core conftest.err conftest.$ac_objext \
30034       conftest$ac_exeext conftest.$ac_ext
30035 fi
30036 ac_res=`eval echo '${'$as_ac_var'}'`
30037                { echo "$as_me:$LINENO: result: $ac_res" >&5
30038 echo "${ECHO_T}$ac_res" >&6; }
30039 if test `eval echo '${'$as_ac_var'}'` = yes; then
30040   cat >>confdefs.h <<_ACEOF
30041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30042 _ACEOF
30043
30044 else
30045   echo 'configure: cannot find needed function.'; exit 1
30046
30047 fi
30048 done
30049
30050
30051
30052 for ac_func in fchdir
30053 do
30054 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30055 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30056 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30058   echo $ECHO_N "(cached) $ECHO_C" >&6
30059 else
30060   cat >conftest.$ac_ext <<_ACEOF
30061 /* confdefs.h.  */
30062 _ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h.  */
30066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30068 #define $ac_func innocuous_$ac_func
30069
30070 /* System header to define __stub macros and hopefully few prototypes,
30071     which can conflict with char $ac_func (); below.
30072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30073     <limits.h> exists even on freestanding compilers.  */
30074
30075 #ifdef __STDC__
30076 # include <limits.h>
30077 #else
30078 # include <assert.h>
30079 #endif
30080
30081 #undef $ac_func
30082
30083 /* Override any GCC internal prototype to avoid an error.
30084    Use char because int might match the return type of a GCC
30085    builtin and then its argument prototype would still apply.  */
30086 #ifdef __cplusplus
30087 extern "C"
30088 #endif
30089 char $ac_func ();
30090 /* The GNU C library defines this for functions which it implements
30091     to always fail with ENOSYS.  Some functions are actually named
30092     something starting with __ and the normal name is an alias.  */
30093 #if defined __stub_$ac_func || defined __stub___$ac_func
30094 choke me
30095 #endif
30096
30097 int
30098 main ()
30099 {
30100 return $ac_func ();
30101   ;
30102   return 0;
30103 }
30104 _ACEOF
30105 rm -f conftest.$ac_objext conftest$ac_exeext
30106 if { (ac_try="$ac_link"
30107 case "(($ac_try" in
30108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109   *) ac_try_echo=$ac_try;;
30110 esac
30111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30112   (eval "$ac_link") 2>conftest.er1
30113   ac_status=$?
30114   grep -v '^ *+' conftest.er1 >conftest.err
30115   rm -f conftest.er1
30116   cat conftest.err >&5
30117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30118   (exit $ac_status); } &&
30119          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30120   { (case "(($ac_try" in
30121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30122   *) ac_try_echo=$ac_try;;
30123 esac
30124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30125   (eval "$ac_try") 2>&5
30126   ac_status=$?
30127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30128   (exit $ac_status); }; } &&
30129          { ac_try='test -s conftest$ac_exeext'
30130   { (case "(($ac_try" in
30131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30132   *) ac_try_echo=$ac_try;;
30133 esac
30134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30135   (eval "$ac_try") 2>&5
30136   ac_status=$?
30137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138   (exit $ac_status); }; }; then
30139   eval "$as_ac_var=yes"
30140 else
30141   echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30143
30144         eval "$as_ac_var=no"
30145 fi
30146
30147 rm -f core conftest.err conftest.$ac_objext \
30148       conftest$ac_exeext conftest.$ac_ext
30149 fi
30150 ac_res=`eval echo '${'$as_ac_var'}'`
30151                { echo "$as_me:$LINENO: result: $ac_res" >&5
30152 echo "${ECHO_T}$ac_res" >&6; }
30153 if test `eval echo '${'$as_ac_var'}'` = yes; then
30154   cat >>confdefs.h <<_ACEOF
30155 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30156 _ACEOF
30157  cat >>confdefs.h <<\_ACEOF
30158 #define HAVE_FCHDIR 1
30159 _ACEOF
30160
30161 fi
30162 done
30163
30164
30165 for ac_func in strtoll
30166 do
30167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30171   echo $ECHO_N "(cached) $ECHO_C" >&6
30172 else
30173   cat >conftest.$ac_ext <<_ACEOF
30174 /* confdefs.h.  */
30175 _ACEOF
30176 cat confdefs.h >>conftest.$ac_ext
30177 cat >>conftest.$ac_ext <<_ACEOF
30178 /* end confdefs.h.  */
30179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30181 #define $ac_func innocuous_$ac_func
30182
30183 /* System header to define __stub macros and hopefully few prototypes,
30184     which can conflict with char $ac_func (); below.
30185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30186     <limits.h> exists even on freestanding compilers.  */
30187
30188 #ifdef __STDC__
30189 # include <limits.h>
30190 #else
30191 # include <assert.h>
30192 #endif
30193
30194 #undef $ac_func
30195
30196 /* Override any GCC internal prototype to avoid an error.
30197    Use char because int might match the return type of a GCC
30198    builtin and then its argument prototype would still apply.  */
30199 #ifdef __cplusplus
30200 extern "C"
30201 #endif
30202 char $ac_func ();
30203 /* The GNU C library defines this for functions which it implements
30204     to always fail with ENOSYS.  Some functions are actually named
30205     something starting with __ and the normal name is an alias.  */
30206 #if defined __stub_$ac_func || defined __stub___$ac_func
30207 choke me
30208 #endif
30209
30210 int
30211 main ()
30212 {
30213 return $ac_func ();
30214   ;
30215   return 0;
30216 }
30217 _ACEOF
30218 rm -f conftest.$ac_objext conftest$ac_exeext
30219 if { (ac_try="$ac_link"
30220 case "(($ac_try" in
30221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30222   *) ac_try_echo=$ac_try;;
30223 esac
30224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30225   (eval "$ac_link") 2>conftest.er1
30226   ac_status=$?
30227   grep -v '^ *+' conftest.er1 >conftest.err
30228   rm -f conftest.er1
30229   cat conftest.err >&5
30230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231   (exit $ac_status); } &&
30232          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30233   { (case "(($ac_try" in
30234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30235   *) ac_try_echo=$ac_try;;
30236 esac
30237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30238   (eval "$ac_try") 2>&5
30239   ac_status=$?
30240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241   (exit $ac_status); }; } &&
30242          { ac_try='test -s conftest$ac_exeext'
30243   { (case "(($ac_try" in
30244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245   *) ac_try_echo=$ac_try;;
30246 esac
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248   (eval "$ac_try") 2>&5
30249   ac_status=$?
30250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30251   (exit $ac_status); }; }; then
30252   eval "$as_ac_var=yes"
30253 else
30254   echo "$as_me: failed program was:" >&5
30255 sed 's/^/| /' conftest.$ac_ext >&5
30256
30257         eval "$as_ac_var=no"
30258 fi
30259
30260 rm -f core conftest.err conftest.$ac_objext \
30261       conftest$ac_exeext conftest.$ac_ext
30262 fi
30263 ac_res=`eval echo '${'$as_ac_var'}'`
30264                { echo "$as_me:$LINENO: result: $ac_res" >&5
30265 echo "${ECHO_T}$ac_res" >&6; }
30266 if test `eval echo '${'$as_ac_var'}'` = yes; then
30267   cat >>confdefs.h <<_ACEOF
30268 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30269 _ACEOF
30270  cat >>confdefs.h <<\_ACEOF
30271 #define HAVE_STRTOLL 1
30272 _ACEOF
30273
30274 fi
30275 done
30276
30277
30278 for ac_func in posix_fadvise
30279 do
30280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30284   echo $ECHO_N "(cached) $ECHO_C" >&6
30285 else
30286   cat >conftest.$ac_ext <<_ACEOF
30287 /* confdefs.h.  */
30288 _ACEOF
30289 cat confdefs.h >>conftest.$ac_ext
30290 cat >>conftest.$ac_ext <<_ACEOF
30291 /* end confdefs.h.  */
30292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30294 #define $ac_func innocuous_$ac_func
30295
30296 /* System header to define __stub macros and hopefully few prototypes,
30297     which can conflict with char $ac_func (); below.
30298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30299     <limits.h> exists even on freestanding compilers.  */
30300
30301 #ifdef __STDC__
30302 # include <limits.h>
30303 #else
30304 # include <assert.h>
30305 #endif
30306
30307 #undef $ac_func
30308
30309 /* Override any GCC internal prototype to avoid an error.
30310    Use char because int might match the return type of a GCC
30311    builtin and then its argument prototype would still apply.  */
30312 #ifdef __cplusplus
30313 extern "C"
30314 #endif
30315 char $ac_func ();
30316 /* The GNU C library defines this for functions which it implements
30317     to always fail with ENOSYS.  Some functions are actually named
30318     something starting with __ and the normal name is an alias.  */
30319 #if defined __stub_$ac_func || defined __stub___$ac_func
30320 choke me
30321 #endif
30322
30323 int
30324 main ()
30325 {
30326 return $ac_func ();
30327   ;
30328   return 0;
30329 }
30330 _ACEOF
30331 rm -f conftest.$ac_objext conftest$ac_exeext
30332 if { (ac_try="$ac_link"
30333 case "(($ac_try" in
30334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30335   *) ac_try_echo=$ac_try;;
30336 esac
30337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30338   (eval "$ac_link") 2>conftest.er1
30339   ac_status=$?
30340   grep -v '^ *+' conftest.er1 >conftest.err
30341   rm -f conftest.er1
30342   cat conftest.err >&5
30343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30344   (exit $ac_status); } &&
30345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30346   { (case "(($ac_try" in
30347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30348   *) ac_try_echo=$ac_try;;
30349 esac
30350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30351   (eval "$ac_try") 2>&5
30352   ac_status=$?
30353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30354   (exit $ac_status); }; } &&
30355          { ac_try='test -s conftest$ac_exeext'
30356   { (case "(($ac_try" in
30357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30358   *) ac_try_echo=$ac_try;;
30359 esac
30360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30361   (eval "$ac_try") 2>&5
30362   ac_status=$?
30363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364   (exit $ac_status); }; }; then
30365   eval "$as_ac_var=yes"
30366 else
30367   echo "$as_me: failed program was:" >&5
30368 sed 's/^/| /' conftest.$ac_ext >&5
30369
30370         eval "$as_ac_var=no"
30371 fi
30372
30373 rm -f core conftest.err conftest.$ac_objext \
30374       conftest$ac_exeext conftest.$ac_ext
30375 fi
30376 ac_res=`eval echo '${'$as_ac_var'}'`
30377                { echo "$as_me:$LINENO: result: $ac_res" >&5
30378 echo "${ECHO_T}$ac_res" >&6; }
30379 if test `eval echo '${'$as_ac_var'}'` = yes; then
30380   cat >>confdefs.h <<_ACEOF
30381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30382 _ACEOF
30383
30384 fi
30385 done
30386
30387
30388 for ac_func in fdatasync
30389 do
30390 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30393 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30394   echo $ECHO_N "(cached) $ECHO_C" >&6
30395 else
30396   cat >conftest.$ac_ext <<_ACEOF
30397 /* confdefs.h.  */
30398 _ACEOF
30399 cat confdefs.h >>conftest.$ac_ext
30400 cat >>conftest.$ac_ext <<_ACEOF
30401 /* end confdefs.h.  */
30402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30403    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30404 #define $ac_func innocuous_$ac_func
30405
30406 /* System header to define __stub macros and hopefully few prototypes,
30407     which can conflict with char $ac_func (); below.
30408     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30409     <limits.h> exists even on freestanding compilers.  */
30410
30411 #ifdef __STDC__
30412 # include <limits.h>
30413 #else
30414 # include <assert.h>
30415 #endif
30416
30417 #undef $ac_func
30418
30419 /* Override any GCC internal prototype to avoid an error.
30420    Use char because int might match the return type of a GCC
30421    builtin and then its argument prototype would still apply.  */
30422 #ifdef __cplusplus
30423 extern "C"
30424 #endif
30425 char $ac_func ();
30426 /* The GNU C library defines this for functions which it implements
30427     to always fail with ENOSYS.  Some functions are actually named
30428     something starting with __ and the normal name is an alias.  */
30429 #if defined __stub_$ac_func || defined __stub___$ac_func
30430 choke me
30431 #endif
30432
30433 int
30434 main ()
30435 {
30436 return $ac_func ();
30437   ;
30438   return 0;
30439 }
30440 _ACEOF
30441 rm -f conftest.$ac_objext conftest$ac_exeext
30442 if { (ac_try="$ac_link"
30443 case "(($ac_try" in
30444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30445   *) ac_try_echo=$ac_try;;
30446 esac
30447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30448   (eval "$ac_link") 2>conftest.er1
30449   ac_status=$?
30450   grep -v '^ *+' conftest.er1 >conftest.err
30451   rm -f conftest.er1
30452   cat conftest.err >&5
30453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30454   (exit $ac_status); } &&
30455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30456   { (case "(($ac_try" in
30457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30458   *) ac_try_echo=$ac_try;;
30459 esac
30460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30461   (eval "$ac_try") 2>&5
30462   ac_status=$?
30463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464   (exit $ac_status); }; } &&
30465          { ac_try='test -s conftest$ac_exeext'
30466   { (case "(($ac_try" in
30467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30468   *) ac_try_echo=$ac_try;;
30469 esac
30470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30471   (eval "$ac_try") 2>&5
30472   ac_status=$?
30473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474   (exit $ac_status); }; }; then
30475   eval "$as_ac_var=yes"
30476 else
30477   echo "$as_me: failed program was:" >&5
30478 sed 's/^/| /' conftest.$ac_ext >&5
30479
30480         eval "$as_ac_var=no"
30481 fi
30482
30483 rm -f core conftest.err conftest.$ac_objext \
30484       conftest$ac_exeext conftest.$ac_ext
30485 fi
30486 ac_res=`eval echo '${'$as_ac_var'}'`
30487                { echo "$as_me:$LINENO: result: $ac_res" >&5
30488 echo "${ECHO_T}$ac_res" >&6; }
30489 if test `eval echo '${'$as_ac_var'}'` = yes; then
30490   cat >>confdefs.h <<_ACEOF
30491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30492 _ACEOF
30493
30494 fi
30495 done
30496
30497
30498
30499 for ac_func in chflags
30500 do
30501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30505   echo $ECHO_N "(cached) $ECHO_C" >&6
30506 else
30507   cat >conftest.$ac_ext <<_ACEOF
30508 /* confdefs.h.  */
30509 _ACEOF
30510 cat confdefs.h >>conftest.$ac_ext
30511 cat >>conftest.$ac_ext <<_ACEOF
30512 /* end confdefs.h.  */
30513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30515 #define $ac_func innocuous_$ac_func
30516
30517 /* System header to define __stub macros and hopefully few prototypes,
30518     which can conflict with char $ac_func (); below.
30519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30520     <limits.h> exists even on freestanding compilers.  */
30521
30522 #ifdef __STDC__
30523 # include <limits.h>
30524 #else
30525 # include <assert.h>
30526 #endif
30527
30528 #undef $ac_func
30529
30530 /* Override any GCC internal prototype to avoid an error.
30531    Use char because int might match the return type of a GCC
30532    builtin and then its argument prototype would still apply.  */
30533 #ifdef __cplusplus
30534 extern "C"
30535 #endif
30536 char $ac_func ();
30537 /* The GNU C library defines this for functions which it implements
30538     to always fail with ENOSYS.  Some functions are actually named
30539     something starting with __ and the normal name is an alias.  */
30540 #if defined __stub_$ac_func || defined __stub___$ac_func
30541 choke me
30542 #endif
30543
30544 int
30545 main ()
30546 {
30547 return $ac_func ();
30548   ;
30549   return 0;
30550 }
30551 _ACEOF
30552 rm -f conftest.$ac_objext conftest$ac_exeext
30553 if { (ac_try="$ac_link"
30554 case "(($ac_try" in
30555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30556   *) ac_try_echo=$ac_try;;
30557 esac
30558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30559   (eval "$ac_link") 2>conftest.er1
30560   ac_status=$?
30561   grep -v '^ *+' conftest.er1 >conftest.err
30562   rm -f conftest.er1
30563   cat conftest.err >&5
30564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30565   (exit $ac_status); } &&
30566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30567   { (case "(($ac_try" in
30568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30569   *) ac_try_echo=$ac_try;;
30570 esac
30571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30572   (eval "$ac_try") 2>&5
30573   ac_status=$?
30574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575   (exit $ac_status); }; } &&
30576          { ac_try='test -s conftest$ac_exeext'
30577   { (case "(($ac_try" in
30578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30579   *) ac_try_echo=$ac_try;;
30580 esac
30581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30582   (eval "$ac_try") 2>&5
30583   ac_status=$?
30584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30585   (exit $ac_status); }; }; then
30586   eval "$as_ac_var=yes"
30587 else
30588   echo "$as_me: failed program was:" >&5
30589 sed 's/^/| /' conftest.$ac_ext >&5
30590
30591         eval "$as_ac_var=no"
30592 fi
30593
30594 rm -f core conftest.err conftest.$ac_objext \
30595       conftest$ac_exeext conftest.$ac_ext
30596 fi
30597 ac_res=`eval echo '${'$as_ac_var'}'`
30598                { echo "$as_me:$LINENO: result: $ac_res" >&5
30599 echo "${ECHO_T}$ac_res" >&6; }
30600 if test `eval echo '${'$as_ac_var'}'` = yes; then
30601   cat >>confdefs.h <<_ACEOF
30602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30603 _ACEOF
30604
30605 fi
30606 done
30607
30608
30609
30610
30611
30612
30613 for ac_func in snprintf vsnprintf gethostid fseeko
30614 do
30615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30616 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30618 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30619   echo $ECHO_N "(cached) $ECHO_C" >&6
30620 else
30621   cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h.  */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h.  */
30627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30628    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30629 #define $ac_func innocuous_$ac_func
30630
30631 /* System header to define __stub macros and hopefully few prototypes,
30632     which can conflict with char $ac_func (); below.
30633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30634     <limits.h> exists even on freestanding compilers.  */
30635
30636 #ifdef __STDC__
30637 # include <limits.h>
30638 #else
30639 # include <assert.h>
30640 #endif
30641
30642 #undef $ac_func
30643
30644 /* Override any GCC internal prototype to avoid an error.
30645    Use char because int might match the return type of a GCC
30646    builtin and then its argument prototype would still apply.  */
30647 #ifdef __cplusplus
30648 extern "C"
30649 #endif
30650 char $ac_func ();
30651 /* The GNU C library defines this for functions which it implements
30652     to always fail with ENOSYS.  Some functions are actually named
30653     something starting with __ and the normal name is an alias.  */
30654 #if defined __stub_$ac_func || defined __stub___$ac_func
30655 choke me
30656 #endif
30657
30658 int
30659 main ()
30660 {
30661 return $ac_func ();
30662   ;
30663   return 0;
30664 }
30665 _ACEOF
30666 rm -f conftest.$ac_objext conftest$ac_exeext
30667 if { (ac_try="$ac_link"
30668 case "(($ac_try" in
30669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30670   *) ac_try_echo=$ac_try;;
30671 esac
30672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30673   (eval "$ac_link") 2>conftest.er1
30674   ac_status=$?
30675   grep -v '^ *+' conftest.er1 >conftest.err
30676   rm -f conftest.er1
30677   cat conftest.err >&5
30678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30679   (exit $ac_status); } &&
30680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30681   { (case "(($ac_try" in
30682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30683   *) ac_try_echo=$ac_try;;
30684 esac
30685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30686   (eval "$ac_try") 2>&5
30687   ac_status=$?
30688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30689   (exit $ac_status); }; } &&
30690          { ac_try='test -s conftest$ac_exeext'
30691   { (case "(($ac_try" in
30692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30693   *) ac_try_echo=$ac_try;;
30694 esac
30695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30696   (eval "$ac_try") 2>&5
30697   ac_status=$?
30698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699   (exit $ac_status); }; }; then
30700   eval "$as_ac_var=yes"
30701 else
30702   echo "$as_me: failed program was:" >&5
30703 sed 's/^/| /' conftest.$ac_ext >&5
30704
30705         eval "$as_ac_var=no"
30706 fi
30707
30708 rm -f core conftest.err conftest.$ac_objext \
30709       conftest$ac_exeext conftest.$ac_ext
30710 fi
30711 ac_res=`eval echo '${'$as_ac_var'}'`
30712                { echo "$as_me:$LINENO: result: $ac_res" >&5
30713 echo "${ECHO_T}$ac_res" >&6; }
30714 if test `eval echo '${'$as_ac_var'}'` = yes; then
30715   cat >>confdefs.h <<_ACEOF
30716 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30717 _ACEOF
30718
30719 fi
30720 done
30721
30722
30723
30724
30725
30726
30727 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30728 do
30729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30733   echo $ECHO_N "(cached) $ECHO_C" >&6
30734 else
30735   cat >conftest.$ac_ext <<_ACEOF
30736 /* confdefs.h.  */
30737 _ACEOF
30738 cat confdefs.h >>conftest.$ac_ext
30739 cat >>conftest.$ac_ext <<_ACEOF
30740 /* end confdefs.h.  */
30741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30742    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30743 #define $ac_func innocuous_$ac_func
30744
30745 /* System header to define __stub macros and hopefully few prototypes,
30746     which can conflict with char $ac_func (); below.
30747     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30748     <limits.h> exists even on freestanding compilers.  */
30749
30750 #ifdef __STDC__
30751 # include <limits.h>
30752 #else
30753 # include <assert.h>
30754 #endif
30755
30756 #undef $ac_func
30757
30758 /* Override any GCC internal prototype to avoid an error.
30759    Use char because int might match the return type of a GCC
30760    builtin and then its argument prototype would still apply.  */
30761 #ifdef __cplusplus
30762 extern "C"
30763 #endif
30764 char $ac_func ();
30765 /* The GNU C library defines this for functions which it implements
30766     to always fail with ENOSYS.  Some functions are actually named
30767     something starting with __ and the normal name is an alias.  */
30768 #if defined __stub_$ac_func || defined __stub___$ac_func
30769 choke me
30770 #endif
30771
30772 int
30773 main ()
30774 {
30775 return $ac_func ();
30776   ;
30777   return 0;
30778 }
30779 _ACEOF
30780 rm -f conftest.$ac_objext conftest$ac_exeext
30781 if { (ac_try="$ac_link"
30782 case "(($ac_try" in
30783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30784   *) ac_try_echo=$ac_try;;
30785 esac
30786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30787   (eval "$ac_link") 2>conftest.er1
30788   ac_status=$?
30789   grep -v '^ *+' conftest.er1 >conftest.err
30790   rm -f conftest.er1
30791   cat conftest.err >&5
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); } &&
30794          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30795   { (case "(($ac_try" in
30796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30797   *) ac_try_echo=$ac_try;;
30798 esac
30799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30800   (eval "$ac_try") 2>&5
30801   ac_status=$?
30802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803   (exit $ac_status); }; } &&
30804          { ac_try='test -s conftest$ac_exeext'
30805   { (case "(($ac_try" in
30806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30807   *) ac_try_echo=$ac_try;;
30808 esac
30809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30810   (eval "$ac_try") 2>&5
30811   ac_status=$?
30812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30813   (exit $ac_status); }; }; then
30814   eval "$as_ac_var=yes"
30815 else
30816   echo "$as_me: failed program was:" >&5
30817 sed 's/^/| /' conftest.$ac_ext >&5
30818
30819         eval "$as_ac_var=no"
30820 fi
30821
30822 rm -f core conftest.err conftest.$ac_objext \
30823       conftest$ac_exeext conftest.$ac_ext
30824 fi
30825 ac_res=`eval echo '${'$as_ac_var'}'`
30826                { echo "$as_me:$LINENO: result: $ac_res" >&5
30827 echo "${ECHO_T}$ac_res" >&6; }
30828 if test `eval echo '${'$as_ac_var'}'` = yes; then
30829   cat >>confdefs.h <<_ACEOF
30830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30831 _ACEOF
30832
30833 fi
30834 done
30835
30836
30837 # If resolver functions are not in libc check for -lnsl or -lresolv.
30838 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30839 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30840 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30841   echo $ECHO_N "(cached) $ECHO_C" >&6
30842 else
30843   cat >conftest.$ac_ext <<_ACEOF
30844 /* confdefs.h.  */
30845 _ACEOF
30846 cat confdefs.h >>conftest.$ac_ext
30847 cat >>conftest.$ac_ext <<_ACEOF
30848 /* end confdefs.h.  */
30849 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30850    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30851 #define gethostbyname_r innocuous_gethostbyname_r
30852
30853 /* System header to define __stub macros and hopefully few prototypes,
30854     which can conflict with char gethostbyname_r (); below.
30855     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30856     <limits.h> exists even on freestanding compilers.  */
30857
30858 #ifdef __STDC__
30859 # include <limits.h>
30860 #else
30861 # include <assert.h>
30862 #endif
30863
30864 #undef gethostbyname_r
30865
30866 /* Override any GCC internal prototype to avoid an error.
30867    Use char because int might match the return type of a GCC
30868    builtin and then its argument prototype would still apply.  */
30869 #ifdef __cplusplus
30870 extern "C"
30871 #endif
30872 char gethostbyname_r ();
30873 /* The GNU C library defines this for functions which it implements
30874     to always fail with ENOSYS.  Some functions are actually named
30875     something starting with __ and the normal name is an alias.  */
30876 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30877 choke me
30878 #endif
30879
30880 int
30881 main ()
30882 {
30883 return gethostbyname_r ();
30884   ;
30885   return 0;
30886 }
30887 _ACEOF
30888 rm -f conftest.$ac_objext conftest$ac_exeext
30889 if { (ac_try="$ac_link"
30890 case "(($ac_try" in
30891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30892   *) ac_try_echo=$ac_try;;
30893 esac
30894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30895   (eval "$ac_link") 2>conftest.er1
30896   ac_status=$?
30897   grep -v '^ *+' conftest.er1 >conftest.err
30898   rm -f conftest.er1
30899   cat conftest.err >&5
30900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30901   (exit $ac_status); } &&
30902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30903   { (case "(($ac_try" in
30904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905   *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908   (eval "$ac_try") 2>&5
30909   ac_status=$?
30910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911   (exit $ac_status); }; } &&
30912          { ac_try='test -s conftest$ac_exeext'
30913   { (case "(($ac_try" in
30914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30915   *) ac_try_echo=$ac_try;;
30916 esac
30917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30918   (eval "$ac_try") 2>&5
30919   ac_status=$?
30920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30921   (exit $ac_status); }; }; then
30922   ac_cv_func_gethostbyname_r=yes
30923 else
30924   echo "$as_me: failed program was:" >&5
30925 sed 's/^/| /' conftest.$ac_ext >&5
30926
30927         ac_cv_func_gethostbyname_r=no
30928 fi
30929
30930 rm -f core conftest.err conftest.$ac_objext \
30931       conftest$ac_exeext conftest.$ac_ext
30932 fi
30933 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30934 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30935 if test $ac_cv_func_gethostbyname_r = yes; then
30936   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30937 echo "${ECHO_T}using libc's resolver" >&6; }
30938 else
30939
30940 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30941 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30942 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30943   echo $ECHO_N "(cached) $ECHO_C" >&6
30944 else
30945   ac_check_lib_save_LIBS=$LIBS
30946 LIBS="-lnsl  $LIBS"
30947 cat >conftest.$ac_ext <<_ACEOF
30948 /* confdefs.h.  */
30949 _ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h.  */
30953
30954 /* Override any GCC internal prototype to avoid an error.
30955    Use char because int might match the return type of a GCC
30956    builtin and then its argument prototype would still apply.  */
30957 #ifdef __cplusplus
30958 extern "C"
30959 #endif
30960 char gethostbyname_r ();
30961 int
30962 main ()
30963 {
30964 return gethostbyname_r ();
30965   ;
30966   return 0;
30967 }
30968 _ACEOF
30969 rm -f conftest.$ac_objext conftest$ac_exeext
30970 if { (ac_try="$ac_link"
30971 case "(($ac_try" in
30972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30973   *) ac_try_echo=$ac_try;;
30974 esac
30975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30976   (eval "$ac_link") 2>conftest.er1
30977   ac_status=$?
30978   grep -v '^ *+' conftest.er1 >conftest.err
30979   rm -f conftest.er1
30980   cat conftest.err >&5
30981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982   (exit $ac_status); } &&
30983          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30984   { (case "(($ac_try" in
30985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30986   *) ac_try_echo=$ac_try;;
30987 esac
30988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30989   (eval "$ac_try") 2>&5
30990   ac_status=$?
30991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30992   (exit $ac_status); }; } &&
30993          { ac_try='test -s conftest$ac_exeext'
30994   { (case "(($ac_try" in
30995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30996   *) ac_try_echo=$ac_try;;
30997 esac
30998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30999   (eval "$ac_try") 2>&5
31000   ac_status=$?
31001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31002   (exit $ac_status); }; }; then
31003   ac_cv_lib_nsl_gethostbyname_r=yes
31004 else
31005   echo "$as_me: failed program was:" >&5
31006 sed 's/^/| /' conftest.$ac_ext >&5
31007
31008         ac_cv_lib_nsl_gethostbyname_r=no
31009 fi
31010
31011 rm -f core conftest.err conftest.$ac_objext \
31012       conftest$ac_exeext conftest.$ac_ext
31013 LIBS=$ac_check_lib_save_LIBS
31014 fi
31015 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
31016 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
31017 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
31018   cat >>confdefs.h <<_ACEOF
31019 #define HAVE_LIBNSL 1
31020 _ACEOF
31021
31022   LIBS="-lnsl $LIBS"
31023
31024 fi
31025
31026
31027 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
31028 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
31029 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
31030   echo $ECHO_N "(cached) $ECHO_C" >&6
31031 else
31032   ac_check_lib_save_LIBS=$LIBS
31033 LIBS="-lresolv  $LIBS"
31034 cat >conftest.$ac_ext <<_ACEOF
31035 /* confdefs.h.  */
31036 _ACEOF
31037 cat confdefs.h >>conftest.$ac_ext
31038 cat >>conftest.$ac_ext <<_ACEOF
31039 /* end confdefs.h.  */
31040
31041 /* Override any GCC internal prototype to avoid an error.
31042    Use char because int might match the return type of a GCC
31043    builtin and then its argument prototype would still apply.  */
31044 #ifdef __cplusplus
31045 extern "C"
31046 #endif
31047 char gethostbyname_r ();
31048 int
31049 main ()
31050 {
31051 return gethostbyname_r ();
31052   ;
31053   return 0;
31054 }
31055 _ACEOF
31056 rm -f conftest.$ac_objext conftest$ac_exeext
31057 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31064   ac_status=$?
31065   grep -v '^ *+' conftest.er1 >conftest.err
31066   rm -f conftest.er1
31067   cat conftest.err >&5
31068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069   (exit $ac_status); } &&
31070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31071   { (case "(($ac_try" in
31072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31073   *) ac_try_echo=$ac_try;;
31074 esac
31075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31076   (eval "$ac_try") 2>&5
31077   ac_status=$?
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); }; } &&
31080          { ac_try='test -s conftest$ac_exeext'
31081   { (case "(($ac_try" in
31082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083   *) ac_try_echo=$ac_try;;
31084 esac
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086   (eval "$ac_try") 2>&5
31087   ac_status=$?
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); }; }; then
31090   ac_cv_lib_resolv_gethostbyname_r=yes
31091 else
31092   echo "$as_me: failed program was:" >&5
31093 sed 's/^/| /' conftest.$ac_ext >&5
31094
31095         ac_cv_lib_resolv_gethostbyname_r=no
31096 fi
31097
31098 rm -f core conftest.err conftest.$ac_objext \
31099       conftest$ac_exeext conftest.$ac_ext
31100 LIBS=$ac_check_lib_save_LIBS
31101 fi
31102 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31103 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31104 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31105   cat >>confdefs.h <<_ACEOF
31106 #define HAVE_LIBRESOLV 1
31107 _ACEOF
31108
31109   LIBS="-lresolv $LIBS"
31110
31111 fi
31112
31113 fi
31114
31115
31116
31117
31118
31119 for ac_func in inet_pton
31120 do
31121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31125   echo $ECHO_N "(cached) $ECHO_C" >&6
31126 else
31127   cat >conftest.$ac_ext <<_ACEOF
31128 /* confdefs.h.  */
31129 _ACEOF
31130 cat confdefs.h >>conftest.$ac_ext
31131 cat >>conftest.$ac_ext <<_ACEOF
31132 /* end confdefs.h.  */
31133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31135 #define $ac_func innocuous_$ac_func
31136
31137 /* System header to define __stub macros and hopefully few prototypes,
31138     which can conflict with char $ac_func (); below.
31139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31140     <limits.h> exists even on freestanding compilers.  */
31141
31142 #ifdef __STDC__
31143 # include <limits.h>
31144 #else
31145 # include <assert.h>
31146 #endif
31147
31148 #undef $ac_func
31149
31150 /* Override any GCC internal prototype to avoid an error.
31151    Use char because int might match the return type of a GCC
31152    builtin and then its argument prototype would still apply.  */
31153 #ifdef __cplusplus
31154 extern "C"
31155 #endif
31156 char $ac_func ();
31157 /* The GNU C library defines this for functions which it implements
31158     to always fail with ENOSYS.  Some functions are actually named
31159     something starting with __ and the normal name is an alias.  */
31160 #if defined __stub_$ac_func || defined __stub___$ac_func
31161 choke me
31162 #endif
31163
31164 int
31165 main ()
31166 {
31167 return $ac_func ();
31168   ;
31169   return 0;
31170 }
31171 _ACEOF
31172 rm -f conftest.$ac_objext conftest$ac_exeext
31173 if { (ac_try="$ac_link"
31174 case "(($ac_try" in
31175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31176   *) ac_try_echo=$ac_try;;
31177 esac
31178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31179   (eval "$ac_link") 2>conftest.er1
31180   ac_status=$?
31181   grep -v '^ *+' conftest.er1 >conftest.err
31182   rm -f conftest.er1
31183   cat conftest.err >&5
31184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31185   (exit $ac_status); } &&
31186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31187   { (case "(($ac_try" in
31188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31189   *) ac_try_echo=$ac_try;;
31190 esac
31191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31192   (eval "$ac_try") 2>&5
31193   ac_status=$?
31194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31195   (exit $ac_status); }; } &&
31196          { ac_try='test -s conftest$ac_exeext'
31197   { (case "(($ac_try" in
31198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31199   *) ac_try_echo=$ac_try;;
31200 esac
31201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31202   (eval "$ac_try") 2>&5
31203   ac_status=$?
31204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31205   (exit $ac_status); }; }; then
31206   eval "$as_ac_var=yes"
31207 else
31208   echo "$as_me: failed program was:" >&5
31209 sed 's/^/| /' conftest.$ac_ext >&5
31210
31211         eval "$as_ac_var=no"
31212 fi
31213
31214 rm -f core conftest.err conftest.$ac_objext \
31215       conftest$ac_exeext conftest.$ac_ext
31216 fi
31217 ac_res=`eval echo '${'$as_ac_var'}'`
31218                { echo "$as_me:$LINENO: result: $ac_res" >&5
31219 echo "${ECHO_T}$ac_res" >&6; }
31220 if test `eval echo '${'$as_ac_var'}'` = yes; then
31221   cat >>confdefs.h <<_ACEOF
31222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31223 _ACEOF
31224  cat >>confdefs.h <<\_ACEOF
31225 #define HAVE_INET_PTON 1
31226 _ACEOF
31227
31228 fi
31229 done
31230
31231
31232 for ac_func in inet_ntop
31233 do
31234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31238   echo $ECHO_N "(cached) $ECHO_C" >&6
31239 else
31240   cat >conftest.$ac_ext <<_ACEOF
31241 /* confdefs.h.  */
31242 _ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h.  */
31246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31248 #define $ac_func innocuous_$ac_func
31249
31250 /* System header to define __stub macros and hopefully few prototypes,
31251     which can conflict with char $ac_func (); below.
31252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31253     <limits.h> exists even on freestanding compilers.  */
31254
31255 #ifdef __STDC__
31256 # include <limits.h>
31257 #else
31258 # include <assert.h>
31259 #endif
31260
31261 #undef $ac_func
31262
31263 /* Override any GCC internal prototype to avoid an error.
31264    Use char because int might match the return type of a GCC
31265    builtin and then its argument prototype would still apply.  */
31266 #ifdef __cplusplus
31267 extern "C"
31268 #endif
31269 char $ac_func ();
31270 /* The GNU C library defines this for functions which it implements
31271     to always fail with ENOSYS.  Some functions are actually named
31272     something starting with __ and the normal name is an alias.  */
31273 #if defined __stub_$ac_func || defined __stub___$ac_func
31274 choke me
31275 #endif
31276
31277 int
31278 main ()
31279 {
31280 return $ac_func ();
31281   ;
31282   return 0;
31283 }
31284 _ACEOF
31285 rm -f conftest.$ac_objext conftest$ac_exeext
31286 if { (ac_try="$ac_link"
31287 case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292   (eval "$ac_link") 2>conftest.er1
31293   ac_status=$?
31294   grep -v '^ *+' conftest.er1 >conftest.err
31295   rm -f conftest.er1
31296   cat conftest.err >&5
31297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298   (exit $ac_status); } &&
31299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31300   { (case "(($ac_try" in
31301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302   *) ac_try_echo=$ac_try;;
31303 esac
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305   (eval "$ac_try") 2>&5
31306   ac_status=$?
31307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31308   (exit $ac_status); }; } &&
31309          { ac_try='test -s conftest$ac_exeext'
31310   { (case "(($ac_try" in
31311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312   *) ac_try_echo=$ac_try;;
31313 esac
31314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31315   (eval "$ac_try") 2>&5
31316   ac_status=$?
31317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31318   (exit $ac_status); }; }; then
31319   eval "$as_ac_var=yes"
31320 else
31321   echo "$as_me: failed program was:" >&5
31322 sed 's/^/| /' conftest.$ac_ext >&5
31323
31324         eval "$as_ac_var=no"
31325 fi
31326
31327 rm -f core conftest.err conftest.$ac_objext \
31328       conftest$ac_exeext conftest.$ac_ext
31329 fi
31330 ac_res=`eval echo '${'$as_ac_var'}'`
31331                { echo "$as_me:$LINENO: result: $ac_res" >&5
31332 echo "${ECHO_T}$ac_res" >&6; }
31333 if test `eval echo '${'$as_ac_var'}'` = yes; then
31334   cat >>confdefs.h <<_ACEOF
31335 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31336 _ACEOF
31337  cat >>confdefs.h <<\_ACEOF
31338 #define HAVE_INET_NTOP 1
31339 _ACEOF
31340
31341 fi
31342 done
31343
31344
31345 for ac_func in gethostbyname2
31346 do
31347 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31350 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31351   echo $ECHO_N "(cached) $ECHO_C" >&6
31352 else
31353   cat >conftest.$ac_ext <<_ACEOF
31354 /* confdefs.h.  */
31355 _ACEOF
31356 cat confdefs.h >>conftest.$ac_ext
31357 cat >>conftest.$ac_ext <<_ACEOF
31358 /* end confdefs.h.  */
31359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31361 #define $ac_func innocuous_$ac_func
31362
31363 /* System header to define __stub macros and hopefully few prototypes,
31364     which can conflict with char $ac_func (); below.
31365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31366     <limits.h> exists even on freestanding compilers.  */
31367
31368 #ifdef __STDC__
31369 # include <limits.h>
31370 #else
31371 # include <assert.h>
31372 #endif
31373
31374 #undef $ac_func
31375
31376 /* Override any GCC internal prototype to avoid an error.
31377    Use char because int might match the return type of a GCC
31378    builtin and then its argument prototype would still apply.  */
31379 #ifdef __cplusplus
31380 extern "C"
31381 #endif
31382 char $ac_func ();
31383 /* The GNU C library defines this for functions which it implements
31384     to always fail with ENOSYS.  Some functions are actually named
31385     something starting with __ and the normal name is an alias.  */
31386 #if defined __stub_$ac_func || defined __stub___$ac_func
31387 choke me
31388 #endif
31389
31390 int
31391 main ()
31392 {
31393 return $ac_func ();
31394   ;
31395   return 0;
31396 }
31397 _ACEOF
31398 rm -f conftest.$ac_objext conftest$ac_exeext
31399 if { (ac_try="$ac_link"
31400 case "(($ac_try" in
31401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402   *) ac_try_echo=$ac_try;;
31403 esac
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405   (eval "$ac_link") 2>conftest.er1
31406   ac_status=$?
31407   grep -v '^ *+' conftest.er1 >conftest.err
31408   rm -f conftest.er1
31409   cat conftest.err >&5
31410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31411   (exit $ac_status); } &&
31412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31413   { (case "(($ac_try" in
31414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31415   *) ac_try_echo=$ac_try;;
31416 esac
31417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31418   (eval "$ac_try") 2>&5
31419   ac_status=$?
31420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31421   (exit $ac_status); }; } &&
31422          { ac_try='test -s conftest$ac_exeext'
31423   { (case "(($ac_try" in
31424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31425   *) ac_try_echo=$ac_try;;
31426 esac
31427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31428   (eval "$ac_try") 2>&5
31429   ac_status=$?
31430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31431   (exit $ac_status); }; }; then
31432   eval "$as_ac_var=yes"
31433 else
31434   echo "$as_me: failed program was:" >&5
31435 sed 's/^/| /' conftest.$ac_ext >&5
31436
31437         eval "$as_ac_var=no"
31438 fi
31439
31440 rm -f core conftest.err conftest.$ac_objext \
31441       conftest$ac_exeext conftest.$ac_ext
31442 fi
31443 ac_res=`eval echo '${'$as_ac_var'}'`
31444                { echo "$as_me:$LINENO: result: $ac_res" >&5
31445 echo "${ECHO_T}$ac_res" >&6; }
31446 if test `eval echo '${'$as_ac_var'}'` = yes; then
31447   cat >>confdefs.h <<_ACEOF
31448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31449 _ACEOF
31450  cat >>confdefs.h <<\_ACEOF
31451 #define HAVE_GETHOSTBYNAME2 1
31452 _ACEOF
31453
31454 fi
31455 done
31456
31457
31458 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31459 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31460 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31461   echo $ECHO_N "(cached) $ECHO_C" >&6
31462 else
31463   cat >conftest.$ac_ext <<_ACEOF
31464 /* confdefs.h.  */
31465 _ACEOF
31466 cat confdefs.h >>conftest.$ac_ext
31467 cat >>conftest.$ac_ext <<_ACEOF
31468 /* end confdefs.h.  */
31469 #include <sys/socket.h>
31470 int
31471 main ()
31472 {
31473 struct sockaddr s; s.sa_len;
31474   ;
31475   return 0;
31476 }
31477 _ACEOF
31478 rm -f conftest.$ac_objext
31479 if { (ac_try="$ac_compile"
31480 case "(($ac_try" in
31481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31482   *) ac_try_echo=$ac_try;;
31483 esac
31484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31485   (eval "$ac_compile") 2>conftest.er1
31486   ac_status=$?
31487   grep -v '^ *+' conftest.er1 >conftest.err
31488   rm -f conftest.er1
31489   cat conftest.err >&5
31490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491   (exit $ac_status); } &&
31492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31493   { (case "(($ac_try" in
31494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31495   *) ac_try_echo=$ac_try;;
31496 esac
31497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31498   (eval "$ac_try") 2>&5
31499   ac_status=$?
31500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501   (exit $ac_status); }; } &&
31502          { ac_try='test -s conftest.$ac_objext'
31503   { (case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_try") 2>&5
31509   ac_status=$?
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); }; }; then
31512   ac_cv_struct_sockaddr_sa_len=yes
31513 else
31514   echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31516
31517         ac_cv_struct_sockaddr_sa_len=no
31518 fi
31519
31520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31521 fi
31522 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31523 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31524
31525  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31526
31527 cat >>confdefs.h <<\_ACEOF
31528 #define HAVE_SA_LEN 1
31529 _ACEOF
31530
31531  fi
31532
31533
31534
31535
31536
31537 for ac_func in strftime
31538 do
31539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31543   echo $ECHO_N "(cached) $ECHO_C" >&6
31544 else
31545   cat >conftest.$ac_ext <<_ACEOF
31546 /* confdefs.h.  */
31547 _ACEOF
31548 cat confdefs.h >>conftest.$ac_ext
31549 cat >>conftest.$ac_ext <<_ACEOF
31550 /* end confdefs.h.  */
31551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31553 #define $ac_func innocuous_$ac_func
31554
31555 /* System header to define __stub macros and hopefully few prototypes,
31556     which can conflict with char $ac_func (); below.
31557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31558     <limits.h> exists even on freestanding compilers.  */
31559
31560 #ifdef __STDC__
31561 # include <limits.h>
31562 #else
31563 # include <assert.h>
31564 #endif
31565
31566 #undef $ac_func
31567
31568 /* Override any GCC internal prototype to avoid an error.
31569    Use char because int might match the return type of a GCC
31570    builtin and then its argument prototype would still apply.  */
31571 #ifdef __cplusplus
31572 extern "C"
31573 #endif
31574 char $ac_func ();
31575 /* The GNU C library defines this for functions which it implements
31576     to always fail with ENOSYS.  Some functions are actually named
31577     something starting with __ and the normal name is an alias.  */
31578 #if defined __stub_$ac_func || defined __stub___$ac_func
31579 choke me
31580 #endif
31581
31582 int
31583 main ()
31584 {
31585 return $ac_func ();
31586   ;
31587   return 0;
31588 }
31589 _ACEOF
31590 rm -f conftest.$ac_objext conftest$ac_exeext
31591 if { (ac_try="$ac_link"
31592 case "(($ac_try" in
31593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31594   *) ac_try_echo=$ac_try;;
31595 esac
31596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31597   (eval "$ac_link") 2>conftest.er1
31598   ac_status=$?
31599   grep -v '^ *+' conftest.er1 >conftest.err
31600   rm -f conftest.er1
31601   cat conftest.err >&5
31602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31603   (exit $ac_status); } &&
31604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31605   { (case "(($ac_try" in
31606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31607   *) ac_try_echo=$ac_try;;
31608 esac
31609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31610   (eval "$ac_try") 2>&5
31611   ac_status=$?
31612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31613   (exit $ac_status); }; } &&
31614          { ac_try='test -s conftest$ac_exeext'
31615   { (case "(($ac_try" in
31616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31617   *) ac_try_echo=$ac_try;;
31618 esac
31619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31620   (eval "$ac_try") 2>&5
31621   ac_status=$?
31622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623   (exit $ac_status); }; }; then
31624   eval "$as_ac_var=yes"
31625 else
31626   echo "$as_me: failed program was:" >&5
31627 sed 's/^/| /' conftest.$ac_ext >&5
31628
31629         eval "$as_ac_var=no"
31630 fi
31631
31632 rm -f core conftest.err conftest.$ac_objext \
31633       conftest$ac_exeext conftest.$ac_ext
31634 fi
31635 ac_res=`eval echo '${'$as_ac_var'}'`
31636                { echo "$as_me:$LINENO: result: $ac_res" >&5
31637 echo "${ECHO_T}$ac_res" >&6; }
31638 if test `eval echo '${'$as_ac_var'}'` = yes; then
31639   cat >>confdefs.h <<_ACEOF
31640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31641 _ACEOF
31642
31643 else
31644   # strftime is in -lintl on SCO UNIX.
31645 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31646 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31647 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31648   echo $ECHO_N "(cached) $ECHO_C" >&6
31649 else
31650   ac_check_lib_save_LIBS=$LIBS
31651 LIBS="-lintl  $LIBS"
31652 cat >conftest.$ac_ext <<_ACEOF
31653 /* confdefs.h.  */
31654 _ACEOF
31655 cat confdefs.h >>conftest.$ac_ext
31656 cat >>conftest.$ac_ext <<_ACEOF
31657 /* end confdefs.h.  */
31658
31659 /* Override any GCC internal prototype to avoid an error.
31660    Use char because int might match the return type of a GCC
31661    builtin and then its argument prototype would still apply.  */
31662 #ifdef __cplusplus
31663 extern "C"
31664 #endif
31665 char strftime ();
31666 int
31667 main ()
31668 {
31669 return strftime ();
31670   ;
31671   return 0;
31672 }
31673 _ACEOF
31674 rm -f conftest.$ac_objext conftest$ac_exeext
31675 if { (ac_try="$ac_link"
31676 case "(($ac_try" in
31677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31678   *) ac_try_echo=$ac_try;;
31679 esac
31680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31681   (eval "$ac_link") 2>conftest.er1
31682   ac_status=$?
31683   grep -v '^ *+' conftest.er1 >conftest.err
31684   rm -f conftest.er1
31685   cat conftest.err >&5
31686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31687   (exit $ac_status); } &&
31688          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31689   { (case "(($ac_try" in
31690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31691   *) ac_try_echo=$ac_try;;
31692 esac
31693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31694   (eval "$ac_try") 2>&5
31695   ac_status=$?
31696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697   (exit $ac_status); }; } &&
31698          { ac_try='test -s conftest$ac_exeext'
31699   { (case "(($ac_try" in
31700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31701   *) ac_try_echo=$ac_try;;
31702 esac
31703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31704   (eval "$ac_try") 2>&5
31705   ac_status=$?
31706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31707   (exit $ac_status); }; }; then
31708   ac_cv_lib_intl_strftime=yes
31709 else
31710   echo "$as_me: failed program was:" >&5
31711 sed 's/^/| /' conftest.$ac_ext >&5
31712
31713         ac_cv_lib_intl_strftime=no
31714 fi
31715
31716 rm -f core conftest.err conftest.$ac_objext \
31717       conftest$ac_exeext conftest.$ac_ext
31718 LIBS=$ac_check_lib_save_LIBS
31719 fi
31720 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31721 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31722 if test $ac_cv_lib_intl_strftime = yes; then
31723   cat >>confdefs.h <<\_ACEOF
31724 #define HAVE_STRFTIME 1
31725 _ACEOF
31726
31727 LIBS="-lintl $LIBS"
31728 fi
31729
31730 fi
31731 done
31732
31733
31734 for ac_func in vprintf
31735 do
31736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31739 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742   cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31749    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31750 #define $ac_func innocuous_$ac_func
31751
31752 /* System header to define __stub macros and hopefully few prototypes,
31753     which can conflict with char $ac_func (); below.
31754     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31755     <limits.h> exists even on freestanding compilers.  */
31756
31757 #ifdef __STDC__
31758 # include <limits.h>
31759 #else
31760 # include <assert.h>
31761 #endif
31762
31763 #undef $ac_func
31764
31765 /* Override any GCC internal prototype to avoid an error.
31766    Use char because int might match the return type of a GCC
31767    builtin and then its argument prototype would still apply.  */
31768 #ifdef __cplusplus
31769 extern "C"
31770 #endif
31771 char $ac_func ();
31772 /* The GNU C library defines this for functions which it implements
31773     to always fail with ENOSYS.  Some functions are actually named
31774     something starting with __ and the normal name is an alias.  */
31775 #if defined __stub_$ac_func || defined __stub___$ac_func
31776 choke me
31777 #endif
31778
31779 int
31780 main ()
31781 {
31782 return $ac_func ();
31783   ;
31784   return 0;
31785 }
31786 _ACEOF
31787 rm -f conftest.$ac_objext conftest$ac_exeext
31788 if { (ac_try="$ac_link"
31789 case "(($ac_try" in
31790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31791   *) ac_try_echo=$ac_try;;
31792 esac
31793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31794   (eval "$ac_link") 2>conftest.er1
31795   ac_status=$?
31796   grep -v '^ *+' conftest.er1 >conftest.err
31797   rm -f conftest.er1
31798   cat conftest.err >&5
31799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31800   (exit $ac_status); } &&
31801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31802   { (case "(($ac_try" in
31803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31804   *) ac_try_echo=$ac_try;;
31805 esac
31806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31807   (eval "$ac_try") 2>&5
31808   ac_status=$?
31809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810   (exit $ac_status); }; } &&
31811          { ac_try='test -s conftest$ac_exeext'
31812   { (case "(($ac_try" in
31813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31814   *) ac_try_echo=$ac_try;;
31815 esac
31816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31817   (eval "$ac_try") 2>&5
31818   ac_status=$?
31819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820   (exit $ac_status); }; }; then
31821   eval "$as_ac_var=yes"
31822 else
31823   echo "$as_me: failed program was:" >&5
31824 sed 's/^/| /' conftest.$ac_ext >&5
31825
31826         eval "$as_ac_var=no"
31827 fi
31828
31829 rm -f core conftest.err conftest.$ac_objext \
31830       conftest$ac_exeext conftest.$ac_ext
31831 fi
31832 ac_res=`eval echo '${'$as_ac_var'}'`
31833                { echo "$as_me:$LINENO: result: $ac_res" >&5
31834 echo "${ECHO_T}$ac_res" >&6; }
31835 if test `eval echo '${'$as_ac_var'}'` = yes; then
31836   cat >>confdefs.h <<_ACEOF
31837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31838 _ACEOF
31839
31840 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31841 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31842 if test "${ac_cv_func__doprnt+set}" = set; then
31843   echo $ECHO_N "(cached) $ECHO_C" >&6
31844 else
31845   cat >conftest.$ac_ext <<_ACEOF
31846 /* confdefs.h.  */
31847 _ACEOF
31848 cat confdefs.h >>conftest.$ac_ext
31849 cat >>conftest.$ac_ext <<_ACEOF
31850 /* end confdefs.h.  */
31851 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31853 #define _doprnt innocuous__doprnt
31854
31855 /* System header to define __stub macros and hopefully few prototypes,
31856     which can conflict with char _doprnt (); below.
31857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31858     <limits.h> exists even on freestanding compilers.  */
31859
31860 #ifdef __STDC__
31861 # include <limits.h>
31862 #else
31863 # include <assert.h>
31864 #endif
31865
31866 #undef _doprnt
31867
31868 /* Override any GCC internal prototype to avoid an error.
31869    Use char because int might match the return type of a GCC
31870    builtin and then its argument prototype would still apply.  */
31871 #ifdef __cplusplus
31872 extern "C"
31873 #endif
31874 char _doprnt ();
31875 /* The GNU C library defines this for functions which it implements
31876     to always fail with ENOSYS.  Some functions are actually named
31877     something starting with __ and the normal name is an alias.  */
31878 #if defined __stub__doprnt || defined __stub____doprnt
31879 choke me
31880 #endif
31881
31882 int
31883 main ()
31884 {
31885 return _doprnt ();
31886   ;
31887   return 0;
31888 }
31889 _ACEOF
31890 rm -f conftest.$ac_objext conftest$ac_exeext
31891 if { (ac_try="$ac_link"
31892 case "(($ac_try" in
31893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31894   *) ac_try_echo=$ac_try;;
31895 esac
31896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31897   (eval "$ac_link") 2>conftest.er1
31898   ac_status=$?
31899   grep -v '^ *+' conftest.er1 >conftest.err
31900   rm -f conftest.er1
31901   cat conftest.err >&5
31902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903   (exit $ac_status); } &&
31904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31905   { (case "(($ac_try" in
31906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31907   *) ac_try_echo=$ac_try;;
31908 esac
31909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31910   (eval "$ac_try") 2>&5
31911   ac_status=$?
31912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31913   (exit $ac_status); }; } &&
31914          { ac_try='test -s conftest$ac_exeext'
31915   { (case "(($ac_try" in
31916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31917   *) ac_try_echo=$ac_try;;
31918 esac
31919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31920   (eval "$ac_try") 2>&5
31921   ac_status=$?
31922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31923   (exit $ac_status); }; }; then
31924   ac_cv_func__doprnt=yes
31925 else
31926   echo "$as_me: failed program was:" >&5
31927 sed 's/^/| /' conftest.$ac_ext >&5
31928
31929         ac_cv_func__doprnt=no
31930 fi
31931
31932 rm -f core conftest.err conftest.$ac_objext \
31933       conftest$ac_exeext conftest.$ac_ext
31934 fi
31935 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31936 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31937 if test $ac_cv_func__doprnt = yes; then
31938
31939 cat >>confdefs.h <<\_ACEOF
31940 #define HAVE_DOPRNT 1
31941 _ACEOF
31942
31943 fi
31944
31945 fi
31946 done
31947
31948
31949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31950 # for constant arguments.  Useless!
31951 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31953 if test "${ac_cv_working_alloca_h+set}" = set; then
31954   echo $ECHO_N "(cached) $ECHO_C" >&6
31955 else
31956   cat >conftest.$ac_ext <<_ACEOF
31957 /* confdefs.h.  */
31958 _ACEOF
31959 cat confdefs.h >>conftest.$ac_ext
31960 cat >>conftest.$ac_ext <<_ACEOF
31961 /* end confdefs.h.  */
31962 #include <alloca.h>
31963 int
31964 main ()
31965 {
31966 char *p = (char *) alloca (2 * sizeof (int));
31967                           if (p) return 0;
31968   ;
31969   return 0;
31970 }
31971 _ACEOF
31972 rm -f conftest.$ac_objext conftest$ac_exeext
31973 if { (ac_try="$ac_link"
31974 case "(($ac_try" in
31975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31976   *) ac_try_echo=$ac_try;;
31977 esac
31978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31979   (eval "$ac_link") 2>conftest.er1
31980   ac_status=$?
31981   grep -v '^ *+' conftest.er1 >conftest.err
31982   rm -f conftest.er1
31983   cat conftest.err >&5
31984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31985   (exit $ac_status); } &&
31986          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31987   { (case "(($ac_try" in
31988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31989   *) ac_try_echo=$ac_try;;
31990 esac
31991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31992   (eval "$ac_try") 2>&5
31993   ac_status=$?
31994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995   (exit $ac_status); }; } &&
31996          { ac_try='test -s conftest$ac_exeext'
31997   { (case "(($ac_try" in
31998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31999   *) ac_try_echo=$ac_try;;
32000 esac
32001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32002   (eval "$ac_try") 2>&5
32003   ac_status=$?
32004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005   (exit $ac_status); }; }; then
32006   ac_cv_working_alloca_h=yes
32007 else
32008   echo "$as_me: failed program was:" >&5
32009 sed 's/^/| /' conftest.$ac_ext >&5
32010
32011         ac_cv_working_alloca_h=no
32012 fi
32013
32014 rm -f core conftest.err conftest.$ac_objext \
32015       conftest$ac_exeext conftest.$ac_ext
32016 fi
32017 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
32018 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
32019 if test $ac_cv_working_alloca_h = yes; then
32020
32021 cat >>confdefs.h <<\_ACEOF
32022 #define HAVE_ALLOCA_H 1
32023 _ACEOF
32024
32025 fi
32026
32027 { echo "$as_me:$LINENO: checking for alloca" >&5
32028 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
32029 if test "${ac_cv_func_alloca_works+set}" = set; then
32030   echo $ECHO_N "(cached) $ECHO_C" >&6
32031 else
32032   cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038 #ifdef __GNUC__
32039 # define alloca __builtin_alloca
32040 #else
32041 # ifdef _MSC_VER
32042 #  include <malloc.h>
32043 #  define alloca _alloca
32044 # else
32045 #  if HAVE_ALLOCA_H
32046 #   include <alloca.h>
32047 #  else
32048 #   ifdef _AIX
32049  #pragma alloca
32050 #   else
32051 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32052 char *alloca ();
32053 #    endif
32054 #   endif
32055 #  endif
32056 # endif
32057 #endif
32058
32059 int
32060 main ()
32061 {
32062 char *p = (char *) alloca (1);
32063                                     if (p) return 0;
32064   ;
32065   return 0;
32066 }
32067 _ACEOF
32068 rm -f conftest.$ac_objext conftest$ac_exeext
32069 if { (ac_try="$ac_link"
32070 case "(($ac_try" in
32071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32072   *) ac_try_echo=$ac_try;;
32073 esac
32074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32075   (eval "$ac_link") 2>conftest.er1
32076   ac_status=$?
32077   grep -v '^ *+' conftest.er1 >conftest.err
32078   rm -f conftest.er1
32079   cat conftest.err >&5
32080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32081   (exit $ac_status); } &&
32082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32083   { (case "(($ac_try" in
32084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32085   *) ac_try_echo=$ac_try;;
32086 esac
32087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32088   (eval "$ac_try") 2>&5
32089   ac_status=$?
32090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32091   (exit $ac_status); }; } &&
32092          { ac_try='test -s conftest$ac_exeext'
32093   { (case "(($ac_try" in
32094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32095   *) ac_try_echo=$ac_try;;
32096 esac
32097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32098   (eval "$ac_try") 2>&5
32099   ac_status=$?
32100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32101   (exit $ac_status); }; }; then
32102   ac_cv_func_alloca_works=yes
32103 else
32104   echo "$as_me: failed program was:" >&5
32105 sed 's/^/| /' conftest.$ac_ext >&5
32106
32107         ac_cv_func_alloca_works=no
32108 fi
32109
32110 rm -f core conftest.err conftest.$ac_objext \
32111       conftest$ac_exeext conftest.$ac_ext
32112 fi
32113 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32114 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32115
32116 if test $ac_cv_func_alloca_works = yes; then
32117
32118 cat >>confdefs.h <<\_ACEOF
32119 #define HAVE_ALLOCA 1
32120 _ACEOF
32121
32122 else
32123   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32124 # that cause trouble.  Some versions do not even contain alloca or
32125 # contain a buggy version.  If you still want to use their alloca,
32126 # use ar to extract alloca.o from them instead of compiling alloca.c.
32127
32128 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32129
32130 cat >>confdefs.h <<\_ACEOF
32131 #define C_ALLOCA 1
32132 _ACEOF
32133
32134
32135 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32136 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32137 if test "${ac_cv_os_cray+set}" = set; then
32138   echo $ECHO_N "(cached) $ECHO_C" >&6
32139 else
32140   cat >conftest.$ac_ext <<_ACEOF
32141 /* confdefs.h.  */
32142 _ACEOF
32143 cat confdefs.h >>conftest.$ac_ext
32144 cat >>conftest.$ac_ext <<_ACEOF
32145 /* end confdefs.h.  */
32146 #if defined CRAY && ! defined CRAY2
32147 webecray
32148 #else
32149 wenotbecray
32150 #endif
32151
32152 _ACEOF
32153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32154   $EGREP "webecray" >/dev/null 2>&1; then
32155   ac_cv_os_cray=yes
32156 else
32157   ac_cv_os_cray=no
32158 fi
32159 rm -f conftest*
32160
32161 fi
32162 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32163 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32164 if test $ac_cv_os_cray = yes; then
32165   for ac_func in _getb67 GETB67 getb67; do
32166     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32170   echo $ECHO_N "(cached) $ECHO_C" >&6
32171 else
32172   cat >conftest.$ac_ext <<_ACEOF
32173 /* confdefs.h.  */
32174 _ACEOF
32175 cat confdefs.h >>conftest.$ac_ext
32176 cat >>conftest.$ac_ext <<_ACEOF
32177 /* end confdefs.h.  */
32178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32180 #define $ac_func innocuous_$ac_func
32181
32182 /* System header to define __stub macros and hopefully few prototypes,
32183     which can conflict with char $ac_func (); below.
32184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32185     <limits.h> exists even on freestanding compilers.  */
32186
32187 #ifdef __STDC__
32188 # include <limits.h>
32189 #else
32190 # include <assert.h>
32191 #endif
32192
32193 #undef $ac_func
32194
32195 /* Override any GCC internal prototype to avoid an error.
32196    Use char because int might match the return type of a GCC
32197    builtin and then its argument prototype would still apply.  */
32198 #ifdef __cplusplus
32199 extern "C"
32200 #endif
32201 char $ac_func ();
32202 /* The GNU C library defines this for functions which it implements
32203     to always fail with ENOSYS.  Some functions are actually named
32204     something starting with __ and the normal name is an alias.  */
32205 #if defined __stub_$ac_func || defined __stub___$ac_func
32206 choke me
32207 #endif
32208
32209 int
32210 main ()
32211 {
32212 return $ac_func ();
32213   ;
32214   return 0;
32215 }
32216 _ACEOF
32217 rm -f conftest.$ac_objext conftest$ac_exeext
32218 if { (ac_try="$ac_link"
32219 case "(($ac_try" in
32220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32221   *) ac_try_echo=$ac_try;;
32222 esac
32223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32224   (eval "$ac_link") 2>conftest.er1
32225   ac_status=$?
32226   grep -v '^ *+' conftest.er1 >conftest.err
32227   rm -f conftest.er1
32228   cat conftest.err >&5
32229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32230   (exit $ac_status); } &&
32231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32232   { (case "(($ac_try" in
32233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32234   *) ac_try_echo=$ac_try;;
32235 esac
32236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32237   (eval "$ac_try") 2>&5
32238   ac_status=$?
32239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240   (exit $ac_status); }; } &&
32241          { ac_try='test -s conftest$ac_exeext'
32242   { (case "(($ac_try" in
32243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32244   *) ac_try_echo=$ac_try;;
32245 esac
32246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32247   (eval "$ac_try") 2>&5
32248   ac_status=$?
32249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32250   (exit $ac_status); }; }; then
32251   eval "$as_ac_var=yes"
32252 else
32253   echo "$as_me: failed program was:" >&5
32254 sed 's/^/| /' conftest.$ac_ext >&5
32255
32256         eval "$as_ac_var=no"
32257 fi
32258
32259 rm -f core conftest.err conftest.$ac_objext \
32260       conftest$ac_exeext conftest.$ac_ext
32261 fi
32262 ac_res=`eval echo '${'$as_ac_var'}'`
32263                { echo "$as_me:$LINENO: result: $ac_res" >&5
32264 echo "${ECHO_T}$ac_res" >&6; }
32265 if test `eval echo '${'$as_ac_var'}'` = yes; then
32266
32267 cat >>confdefs.h <<_ACEOF
32268 #define CRAY_STACKSEG_END $ac_func
32269 _ACEOF
32270
32271     break
32272 fi
32273
32274   done
32275 fi
32276
32277 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32278 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32279 if test "${ac_cv_c_stack_direction+set}" = set; then
32280   echo $ECHO_N "(cached) $ECHO_C" >&6
32281 else
32282   if test "$cross_compiling" = yes; then
32283   ac_cv_c_stack_direction=0
32284 else
32285   cat >conftest.$ac_ext <<_ACEOF
32286 /* confdefs.h.  */
32287 _ACEOF
32288 cat confdefs.h >>conftest.$ac_ext
32289 cat >>conftest.$ac_ext <<_ACEOF
32290 /* end confdefs.h.  */
32291 $ac_includes_default
32292 int
32293 find_stack_direction ()
32294 {
32295   static char *addr = 0;
32296   auto char dummy;
32297   if (addr == 0)
32298     {
32299       addr = &dummy;
32300       return find_stack_direction ();
32301     }
32302   else
32303     return (&dummy > addr) ? 1 : -1;
32304 }
32305
32306 int
32307 main ()
32308 {
32309   return find_stack_direction () < 0;
32310 }
32311 _ACEOF
32312 rm -f conftest$ac_exeext
32313 if { (ac_try="$ac_link"
32314 case "(($ac_try" in
32315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32316   *) ac_try_echo=$ac_try;;
32317 esac
32318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32319   (eval "$ac_link") 2>&5
32320   ac_status=$?
32321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32322   (exit $ac_status); } && { ac_try='./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_c_stack_direction=1
32333 else
32334   echo "$as_me: program exited with status $ac_status" >&5
32335 echo "$as_me: failed program was:" >&5
32336 sed 's/^/| /' conftest.$ac_ext >&5
32337
32338 ( exit $ac_status )
32339 ac_cv_c_stack_direction=-1
32340 fi
32341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32342 fi
32343
32344
32345 fi
32346 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32347 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32348
32349 cat >>confdefs.h <<_ACEOF
32350 #define STACK_DIRECTION $ac_cv_c_stack_direction
32351 _ACEOF
32352
32353
32354 fi
32355
32356 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32357 # -lseq on Dynix/PTX, -lgen on Unixware.
32358 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32359 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32360 if test "${ac_cv_search_getmntent+set}" = set; then
32361   echo $ECHO_N "(cached) $ECHO_C" >&6
32362 else
32363   ac_func_search_save_LIBS=$LIBS
32364 cat >conftest.$ac_ext <<_ACEOF
32365 /* confdefs.h.  */
32366 _ACEOF
32367 cat confdefs.h >>conftest.$ac_ext
32368 cat >>conftest.$ac_ext <<_ACEOF
32369 /* end confdefs.h.  */
32370
32371 /* Override any GCC internal prototype to avoid an error.
32372    Use char because int might match the return type of a GCC
32373    builtin and then its argument prototype would still apply.  */
32374 #ifdef __cplusplus
32375 extern "C"
32376 #endif
32377 char getmntent ();
32378 int
32379 main ()
32380 {
32381 return getmntent ();
32382   ;
32383   return 0;
32384 }
32385 _ACEOF
32386 for ac_lib in '' sun seq gen; do
32387   if test -z "$ac_lib"; then
32388     ac_res="none required"
32389   else
32390     ac_res=-l$ac_lib
32391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32392   fi
32393   rm -f conftest.$ac_objext conftest$ac_exeext
32394 if { (ac_try="$ac_link"
32395 case "(($ac_try" in
32396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32397   *) ac_try_echo=$ac_try;;
32398 esac
32399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32400   (eval "$ac_link") 2>conftest.er1
32401   ac_status=$?
32402   grep -v '^ *+' conftest.er1 >conftest.err
32403   rm -f conftest.er1
32404   cat conftest.err >&5
32405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32406   (exit $ac_status); } &&
32407          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32408   { (case "(($ac_try" in
32409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32410   *) ac_try_echo=$ac_try;;
32411 esac
32412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32413   (eval "$ac_try") 2>&5
32414   ac_status=$?
32415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32416   (exit $ac_status); }; } &&
32417          { ac_try='test -s conftest$ac_exeext'
32418   { (case "(($ac_try" in
32419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32420   *) ac_try_echo=$ac_try;;
32421 esac
32422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32423   (eval "$ac_try") 2>&5
32424   ac_status=$?
32425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32426   (exit $ac_status); }; }; then
32427   ac_cv_search_getmntent=$ac_res
32428 else
32429   echo "$as_me: failed program was:" >&5
32430 sed 's/^/| /' conftest.$ac_ext >&5
32431
32432
32433 fi
32434
32435 rm -f core conftest.err conftest.$ac_objext \
32436       conftest$ac_exeext
32437   if test "${ac_cv_search_getmntent+set}" = set; then
32438   break
32439 fi
32440 done
32441 if test "${ac_cv_search_getmntent+set}" = set; then
32442   :
32443 else
32444   ac_cv_search_getmntent=no
32445 fi
32446 rm conftest.$ac_ext
32447 LIBS=$ac_func_search_save_LIBS
32448 fi
32449 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32450 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32451 ac_res=$ac_cv_search_getmntent
32452 if test "$ac_res" != no; then
32453   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32454
32455 fi
32456
32457
32458 for ac_func in getmntent
32459 do
32460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32461 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32463 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32464   echo $ECHO_N "(cached) $ECHO_C" >&6
32465 else
32466   cat >conftest.$ac_ext <<_ACEOF
32467 /* confdefs.h.  */
32468 _ACEOF
32469 cat confdefs.h >>conftest.$ac_ext
32470 cat >>conftest.$ac_ext <<_ACEOF
32471 /* end confdefs.h.  */
32472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32473    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32474 #define $ac_func innocuous_$ac_func
32475
32476 /* System header to define __stub macros and hopefully few prototypes,
32477     which can conflict with char $ac_func (); below.
32478     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32479     <limits.h> exists even on freestanding compilers.  */
32480
32481 #ifdef __STDC__
32482 # include <limits.h>
32483 #else
32484 # include <assert.h>
32485 #endif
32486
32487 #undef $ac_func
32488
32489 /* Override any GCC internal prototype to avoid an error.
32490    Use char because int might match the return type of a GCC
32491    builtin and then its argument prototype would still apply.  */
32492 #ifdef __cplusplus
32493 extern "C"
32494 #endif
32495 char $ac_func ();
32496 /* The GNU C library defines this for functions which it implements
32497     to always fail with ENOSYS.  Some functions are actually named
32498     something starting with __ and the normal name is an alias.  */
32499 #if defined __stub_$ac_func || defined __stub___$ac_func
32500 choke me
32501 #endif
32502
32503 int
32504 main ()
32505 {
32506 return $ac_func ();
32507   ;
32508   return 0;
32509 }
32510 _ACEOF
32511 rm -f conftest.$ac_objext conftest$ac_exeext
32512 if { (ac_try="$ac_link"
32513 case "(($ac_try" in
32514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515   *) ac_try_echo=$ac_try;;
32516 esac
32517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32518   (eval "$ac_link") 2>conftest.er1
32519   ac_status=$?
32520   grep -v '^ *+' conftest.er1 >conftest.err
32521   rm -f conftest.er1
32522   cat conftest.err >&5
32523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32524   (exit $ac_status); } &&
32525          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32526   { (case "(($ac_try" in
32527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528   *) ac_try_echo=$ac_try;;
32529 esac
32530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32531   (eval "$ac_try") 2>&5
32532   ac_status=$?
32533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32534   (exit $ac_status); }; } &&
32535          { ac_try='test -s conftest$ac_exeext'
32536   { (case "(($ac_try" in
32537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538   *) ac_try_echo=$ac_try;;
32539 esac
32540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541   (eval "$ac_try") 2>&5
32542   ac_status=$?
32543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32544   (exit $ac_status); }; }; then
32545   eval "$as_ac_var=yes"
32546 else
32547   echo "$as_me: failed program was:" >&5
32548 sed 's/^/| /' conftest.$ac_ext >&5
32549
32550         eval "$as_ac_var=no"
32551 fi
32552
32553 rm -f core conftest.err conftest.$ac_objext \
32554       conftest$ac_exeext conftest.$ac_ext
32555 fi
32556 ac_res=`eval echo '${'$as_ac_var'}'`
32557                { echo "$as_me:$LINENO: result: $ac_res" >&5
32558 echo "${ECHO_T}$ac_res" >&6; }
32559 if test `eval echo '${'$as_ac_var'}'` = yes; then
32560   cat >>confdefs.h <<_ACEOF
32561 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32562 _ACEOF
32563
32564 fi
32565 done
32566
32567
32568 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32569 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32570 if test "${ac_cv_func_closedir_void+set}" = set; then
32571   echo $ECHO_N "(cached) $ECHO_C" >&6
32572 else
32573   if test "$cross_compiling" = yes; then
32574   ac_cv_func_closedir_void=yes
32575 else
32576   cat >conftest.$ac_ext <<_ACEOF
32577 /* confdefs.h.  */
32578 _ACEOF
32579 cat confdefs.h >>conftest.$ac_ext
32580 cat >>conftest.$ac_ext <<_ACEOF
32581 /* end confdefs.h.  */
32582 $ac_includes_default
32583 #include <$ac_header_dirent>
32584 #ifndef __cplusplus
32585 int closedir ();
32586 #endif
32587
32588 int
32589 main ()
32590 {
32591 return closedir (opendir (".")) != 0;
32592   ;
32593   return 0;
32594 }
32595 _ACEOF
32596 rm -f conftest$ac_exeext
32597 if { (ac_try="$ac_link"
32598 case "(($ac_try" in
32599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32600   *) ac_try_echo=$ac_try;;
32601 esac
32602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32603   (eval "$ac_link") 2>&5
32604   ac_status=$?
32605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32607   { (case "(($ac_try" in
32608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32609   *) ac_try_echo=$ac_try;;
32610 esac
32611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32612   (eval "$ac_try") 2>&5
32613   ac_status=$?
32614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32615   (exit $ac_status); }; }; then
32616   ac_cv_func_closedir_void=no
32617 else
32618   echo "$as_me: program exited with status $ac_status" >&5
32619 echo "$as_me: failed program was:" >&5
32620 sed 's/^/| /' conftest.$ac_ext >&5
32621
32622 ( exit $ac_status )
32623 ac_cv_func_closedir_void=yes
32624 fi
32625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32626 fi
32627
32628
32629 fi
32630 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32631 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32632 if test $ac_cv_func_closedir_void = yes; then
32633
32634 cat >>confdefs.h <<\_ACEOF
32635 #define CLOSEDIR_VOID 1
32636 _ACEOF
32637
32638 fi
32639
32640 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32641 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32642 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32643   echo $ECHO_N "(cached) $ECHO_C" >&6
32644 else
32645   if test "$cross_compiling" = yes; then
32646   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32647 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32648    { (exit 1); exit 1; }; }
32649 else
32650   cat >conftest.$ac_ext <<_ACEOF
32651 /* confdefs.h.  */
32652 _ACEOF
32653 cat confdefs.h >>conftest.$ac_ext
32654 cat >>conftest.$ac_ext <<_ACEOF
32655 /* end confdefs.h.  */
32656 $ac_includes_default
32657 int
32658 main ()
32659 {
32660 /* If this system has a BSD-style setpgrp which takes arguments,
32661   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32662   exit successfully. */
32663   return setpgrp (1,1) != -1;
32664   ;
32665   return 0;
32666 }
32667 _ACEOF
32668 rm -f conftest$ac_exeext
32669 if { (ac_try="$ac_link"
32670 case "(($ac_try" in
32671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672   *) ac_try_echo=$ac_try;;
32673 esac
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675   (eval "$ac_link") 2>&5
32676   ac_status=$?
32677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32678   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32679   { (case "(($ac_try" in
32680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32681   *) ac_try_echo=$ac_try;;
32682 esac
32683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32684   (eval "$ac_try") 2>&5
32685   ac_status=$?
32686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687   (exit $ac_status); }; }; then
32688   ac_cv_func_setpgrp_void=no
32689 else
32690   echo "$as_me: program exited with status $ac_status" >&5
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32693
32694 ( exit $ac_status )
32695 ac_cv_func_setpgrp_void=yes
32696 fi
32697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32698 fi
32699
32700
32701 fi
32702 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32703 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32704 if test $ac_cv_func_setpgrp_void = yes; then
32705
32706 cat >>confdefs.h <<\_ACEOF
32707 #define SETPGRP_VOID 1
32708 _ACEOF
32709
32710 fi
32711                       # AC_FUNC_FNMATCH    dnl use local version
32712
32713
32714 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32715 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32716 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32717   echo $ECHO_N "(cached) $ECHO_C" >&6
32718 else
32719   ac_check_lib_save_LIBS=$LIBS
32720 LIBS="-lintl  $LIBS"
32721 cat >conftest.$ac_ext <<_ACEOF
32722 /* confdefs.h.  */
32723 _ACEOF
32724 cat confdefs.h >>conftest.$ac_ext
32725 cat >>conftest.$ac_ext <<_ACEOF
32726 /* end confdefs.h.  */
32727
32728 /* Override any GCC internal prototype to avoid an error.
32729    Use char because int might match the return type of a GCC
32730    builtin and then its argument prototype would still apply.  */
32731 #ifdef __cplusplus
32732 extern "C"
32733 #endif
32734 char gettext ();
32735 int
32736 main ()
32737 {
32738 return gettext ();
32739   ;
32740   return 0;
32741 }
32742 _ACEOF
32743 rm -f conftest.$ac_objext conftest$ac_exeext
32744 if { (ac_try="$ac_link"
32745 case "(($ac_try" in
32746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32747   *) ac_try_echo=$ac_try;;
32748 esac
32749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32750   (eval "$ac_link") 2>conftest.er1
32751   ac_status=$?
32752   grep -v '^ *+' conftest.er1 >conftest.err
32753   rm -f conftest.er1
32754   cat conftest.err >&5
32755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32756   (exit $ac_status); } &&
32757          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32758   { (case "(($ac_try" in
32759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32760   *) ac_try_echo=$ac_try;;
32761 esac
32762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32763   (eval "$ac_try") 2>&5
32764   ac_status=$?
32765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766   (exit $ac_status); }; } &&
32767          { ac_try='test -s conftest$ac_exeext'
32768   { (case "(($ac_try" in
32769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32770   *) ac_try_echo=$ac_try;;
32771 esac
32772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32773   (eval "$ac_try") 2>&5
32774   ac_status=$?
32775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32776   (exit $ac_status); }; }; then
32777   ac_cv_lib_intl_gettext=yes
32778 else
32779   echo "$as_me: failed program was:" >&5
32780 sed 's/^/| /' conftest.$ac_ext >&5
32781
32782         ac_cv_lib_intl_gettext=no
32783 fi
32784
32785 rm -f core conftest.err conftest.$ac_objext \
32786       conftest$ac_exeext conftest.$ac_ext
32787 LIBS=$ac_check_lib_save_LIBS
32788 fi
32789 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32790 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32791 if test $ac_cv_lib_intl_gettext = yes; then
32792   LIBS="$LIBS -lintl"
32793 fi
32794
32795
32796
32797
32798 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32799 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32800 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32801   echo $ECHO_N "(cached) $ECHO_C" >&6
32802 else
32803   ac_check_lib_save_LIBS=$LIBS
32804 LIBS="-lsun  $LIBS"
32805 cat >conftest.$ac_ext <<_ACEOF
32806 /* confdefs.h.  */
32807 _ACEOF
32808 cat confdefs.h >>conftest.$ac_ext
32809 cat >>conftest.$ac_ext <<_ACEOF
32810 /* end confdefs.h.  */
32811
32812 /* Override any GCC internal prototype to avoid an error.
32813    Use char because int might match the return type of a GCC
32814    builtin and then its argument prototype would still apply.  */
32815 #ifdef __cplusplus
32816 extern "C"
32817 #endif
32818 char getpwnam ();
32819 int
32820 main ()
32821 {
32822 return getpwnam ();
32823   ;
32824   return 0;
32825 }
32826 _ACEOF
32827 rm -f conftest.$ac_objext conftest$ac_exeext
32828 if { (ac_try="$ac_link"
32829 case "(($ac_try" in
32830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32831   *) ac_try_echo=$ac_try;;
32832 esac
32833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32834   (eval "$ac_link") 2>conftest.er1
32835   ac_status=$?
32836   grep -v '^ *+' conftest.er1 >conftest.err
32837   rm -f conftest.er1
32838   cat conftest.err >&5
32839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32840   (exit $ac_status); } &&
32841          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32842   { (case "(($ac_try" in
32843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32844   *) ac_try_echo=$ac_try;;
32845 esac
32846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32847   (eval "$ac_try") 2>&5
32848   ac_status=$?
32849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32850   (exit $ac_status); }; } &&
32851          { ac_try='test -s conftest$ac_exeext'
32852   { (case "(($ac_try" in
32853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32854   *) ac_try_echo=$ac_try;;
32855 esac
32856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32857   (eval "$ac_try") 2>&5
32858   ac_status=$?
32859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32860   (exit $ac_status); }; }; then
32861   ac_cv_lib_sun_getpwnam=yes
32862 else
32863   echo "$as_me: failed program was:" >&5
32864 sed 's/^/| /' conftest.$ac_ext >&5
32865
32866         ac_cv_lib_sun_getpwnam=no
32867 fi
32868
32869 rm -f core conftest.err conftest.$ac_objext \
32870       conftest$ac_exeext conftest.$ac_ext
32871 LIBS=$ac_check_lib_save_LIBS
32872 fi
32873 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32874 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32875 if test $ac_cv_lib_sun_getpwnam = yes; then
32876   cat >>confdefs.h <<_ACEOF
32877 #define HAVE_LIBSUN 1
32878 _ACEOF
32879
32880   LIBS="-lsun $LIBS"
32881
32882 fi
32883
32884
32885
32886 for ac_header in zlib.h
32887 do
32888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32890   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32893   echo $ECHO_N "(cached) $ECHO_C" >&6
32894 fi
32895 ac_res=`eval echo '${'$as_ac_Header'}'`
32896                { echo "$as_me:$LINENO: result: $ac_res" >&5
32897 echo "${ECHO_T}$ac_res" >&6; }
32898 else
32899   # Is the header compilable?
32900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32902 cat >conftest.$ac_ext <<_ACEOF
32903 /* confdefs.h.  */
32904 _ACEOF
32905 cat confdefs.h >>conftest.$ac_ext
32906 cat >>conftest.$ac_ext <<_ACEOF
32907 /* end confdefs.h.  */
32908 $ac_includes_default
32909 #include <$ac_header>
32910 _ACEOF
32911 rm -f conftest.$ac_objext
32912 if { (ac_try="$ac_compile"
32913 case "(($ac_try" in
32914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32915   *) ac_try_echo=$ac_try;;
32916 esac
32917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32918   (eval "$ac_compile") 2>conftest.er1
32919   ac_status=$?
32920   grep -v '^ *+' conftest.er1 >conftest.err
32921   rm -f conftest.er1
32922   cat conftest.err >&5
32923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32924   (exit $ac_status); } &&
32925          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32926   { (case "(($ac_try" in
32927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32928   *) ac_try_echo=$ac_try;;
32929 esac
32930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32931   (eval "$ac_try") 2>&5
32932   ac_status=$?
32933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32934   (exit $ac_status); }; } &&
32935          { ac_try='test -s conftest.$ac_objext'
32936   { (case "(($ac_try" in
32937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32938   *) ac_try_echo=$ac_try;;
32939 esac
32940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32941   (eval "$ac_try") 2>&5
32942   ac_status=$?
32943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944   (exit $ac_status); }; }; then
32945   ac_header_compiler=yes
32946 else
32947   echo "$as_me: failed program was:" >&5
32948 sed 's/^/| /' conftest.$ac_ext >&5
32949
32950         ac_header_compiler=no
32951 fi
32952
32953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32955 echo "${ECHO_T}$ac_header_compiler" >&6; }
32956
32957 # Is the header present?
32958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32960 cat >conftest.$ac_ext <<_ACEOF
32961 /* confdefs.h.  */
32962 _ACEOF
32963 cat confdefs.h >>conftest.$ac_ext
32964 cat >>conftest.$ac_ext <<_ACEOF
32965 /* end confdefs.h.  */
32966 #include <$ac_header>
32967 _ACEOF
32968 if { (ac_try="$ac_cpp conftest.$ac_ext"
32969 case "(($ac_try" in
32970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32971   *) ac_try_echo=$ac_try;;
32972 esac
32973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32974   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32975   ac_status=$?
32976   grep -v '^ *+' conftest.er1 >conftest.err
32977   rm -f conftest.er1
32978   cat conftest.err >&5
32979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32980   (exit $ac_status); } >/dev/null; then
32981   if test -s conftest.err; then
32982     ac_cpp_err=$ac_c_preproc_warn_flag
32983     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32984   else
32985     ac_cpp_err=
32986   fi
32987 else
32988   ac_cpp_err=yes
32989 fi
32990 if test -z "$ac_cpp_err"; then
32991   ac_header_preproc=yes
32992 else
32993   echo "$as_me: failed program was:" >&5
32994 sed 's/^/| /' conftest.$ac_ext >&5
32995
32996   ac_header_preproc=no
32997 fi
32998
32999 rm -f conftest.err conftest.$ac_ext
33000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33001 echo "${ECHO_T}$ac_header_preproc" >&6; }
33002
33003 # So?  What about this header?
33004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33005   yes:no: )
33006     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33008     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33010     ac_header_preproc=yes
33011     ;;
33012   no:yes:* )
33013     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33015     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
33016 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
33017     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33019     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
33020 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
33021     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33023     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33025
33026     ;;
33027 esac
33028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
33029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
33030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33031   echo $ECHO_N "(cached) $ECHO_C" >&6
33032 else
33033   eval "$as_ac_Header=\$ac_header_preproc"
33034 fi
33035 ac_res=`eval echo '${'$as_ac_Header'}'`
33036                { echo "$as_me:$LINENO: result: $ac_res" >&5
33037 echo "${ECHO_T}$ac_res" >&6; }
33038
33039 fi
33040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33041   cat >>confdefs.h <<_ACEOF
33042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33043 _ACEOF
33044
33045 fi
33046
33047 done
33048
33049 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33050 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33051 if test "${ac_cv_lib_z_deflate+set}" = set; then
33052   echo $ECHO_N "(cached) $ECHO_C" >&6
33053 else
33054   ac_check_lib_save_LIBS=$LIBS
33055 LIBS="-lz  $LIBS"
33056 cat >conftest.$ac_ext <<_ACEOF
33057 /* confdefs.h.  */
33058 _ACEOF
33059 cat confdefs.h >>conftest.$ac_ext
33060 cat >>conftest.$ac_ext <<_ACEOF
33061 /* end confdefs.h.  */
33062
33063 /* Override any GCC internal prototype to avoid an error.
33064    Use char because int might match the return type of a GCC
33065    builtin and then its argument prototype would still apply.  */
33066 #ifdef __cplusplus
33067 extern "C"
33068 #endif
33069 char deflate ();
33070 int
33071 main ()
33072 {
33073 return deflate ();
33074   ;
33075   return 0;
33076 }
33077 _ACEOF
33078 rm -f conftest.$ac_objext conftest$ac_exeext
33079 if { (ac_try="$ac_link"
33080 case "(($ac_try" in
33081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33082   *) ac_try_echo=$ac_try;;
33083 esac
33084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33085   (eval "$ac_link") 2>conftest.er1
33086   ac_status=$?
33087   grep -v '^ *+' conftest.er1 >conftest.err
33088   rm -f conftest.er1
33089   cat conftest.err >&5
33090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33091   (exit $ac_status); } &&
33092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33093   { (case "(($ac_try" in
33094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095   *) ac_try_echo=$ac_try;;
33096 esac
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098   (eval "$ac_try") 2>&5
33099   ac_status=$?
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); }; } &&
33102          { ac_try='test -s conftest$ac_exeext'
33103   { (case "(($ac_try" in
33104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33105   *) ac_try_echo=$ac_try;;
33106 esac
33107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33108   (eval "$ac_try") 2>&5
33109   ac_status=$?
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); }; }; then
33112   ac_cv_lib_z_deflate=yes
33113 else
33114   echo "$as_me: failed program was:" >&5
33115 sed 's/^/| /' conftest.$ac_ext >&5
33116
33117         ac_cv_lib_z_deflate=no
33118 fi
33119
33120 rm -f core conftest.err conftest.$ac_objext \
33121       conftest$ac_exeext conftest.$ac_ext
33122 LIBS=$ac_check_lib_save_LIBS
33123 fi
33124 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33125 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33126 if test $ac_cv_lib_z_deflate = yes; then
33127   FDLIBS="-lz"
33128 fi
33129
33130 have_zlib=no
33131 if test x$FDLIBS = x-lz; then
33132   cat >>confdefs.h <<\_ACEOF
33133 #define HAVE_LIBZ 1
33134 _ACEOF
33135
33136   have_zlib=yes
33137 fi
33138
33139 #
33140 # Check for ACL libraries
33141 #
33142 have_acl=no
33143 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33144   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33145 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33146 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33147   echo $ECHO_N "(cached) $ECHO_C" >&6
33148 fi
33149 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33150 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33151 else
33152   # Is the header compilable?
33153 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33154 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33155 cat >conftest.$ac_ext <<_ACEOF
33156 /* confdefs.h.  */
33157 _ACEOF
33158 cat confdefs.h >>conftest.$ac_ext
33159 cat >>conftest.$ac_ext <<_ACEOF
33160 /* end confdefs.h.  */
33161 $ac_includes_default
33162 #include <sys/acl.h>
33163 _ACEOF
33164 rm -f conftest.$ac_objext
33165 if { (ac_try="$ac_compile"
33166 case "(($ac_try" in
33167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33168   *) ac_try_echo=$ac_try;;
33169 esac
33170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33171   (eval "$ac_compile") 2>conftest.er1
33172   ac_status=$?
33173   grep -v '^ *+' conftest.er1 >conftest.err
33174   rm -f conftest.er1
33175   cat conftest.err >&5
33176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177   (exit $ac_status); } &&
33178          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33179   { (case "(($ac_try" in
33180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33181   *) ac_try_echo=$ac_try;;
33182 esac
33183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33184   (eval "$ac_try") 2>&5
33185   ac_status=$?
33186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33187   (exit $ac_status); }; } &&
33188          { ac_try='test -s conftest.$ac_objext'
33189   { (case "(($ac_try" in
33190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33191   *) ac_try_echo=$ac_try;;
33192 esac
33193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33194   (eval "$ac_try") 2>&5
33195   ac_status=$?
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); }; }; then
33198   ac_header_compiler=yes
33199 else
33200   echo "$as_me: failed program was:" >&5
33201 sed 's/^/| /' conftest.$ac_ext >&5
33202
33203         ac_header_compiler=no
33204 fi
33205
33206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33208 echo "${ECHO_T}$ac_header_compiler" >&6; }
33209
33210 # Is the header present?
33211 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33212 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33213 cat >conftest.$ac_ext <<_ACEOF
33214 /* confdefs.h.  */
33215 _ACEOF
33216 cat confdefs.h >>conftest.$ac_ext
33217 cat >>conftest.$ac_ext <<_ACEOF
33218 /* end confdefs.h.  */
33219 #include <sys/acl.h>
33220 _ACEOF
33221 if { (ac_try="$ac_cpp conftest.$ac_ext"
33222 case "(($ac_try" in
33223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33224   *) ac_try_echo=$ac_try;;
33225 esac
33226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33227   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33228   ac_status=$?
33229   grep -v '^ *+' conftest.er1 >conftest.err
33230   rm -f conftest.er1
33231   cat conftest.err >&5
33232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33233   (exit $ac_status); } >/dev/null; then
33234   if test -s conftest.err; then
33235     ac_cpp_err=$ac_c_preproc_warn_flag
33236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33237   else
33238     ac_cpp_err=
33239   fi
33240 else
33241   ac_cpp_err=yes
33242 fi
33243 if test -z "$ac_cpp_err"; then
33244   ac_header_preproc=yes
33245 else
33246   echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33248
33249   ac_header_preproc=no
33250 fi
33251
33252 rm -f conftest.err conftest.$ac_ext
33253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33254 echo "${ECHO_T}$ac_header_preproc" >&6; }
33255
33256 # So?  What about this header?
33257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33258   yes:no: )
33259     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33260 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33261     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33262 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33263     ac_header_preproc=yes
33264     ;;
33265   no:yes:* )
33266     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33267 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33268     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33269 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33270     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33271 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33272     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33273 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33274     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33275 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33276     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33277 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33278
33279     ;;
33280 esac
33281 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33282 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33283 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33284   echo $ECHO_N "(cached) $ECHO_C" >&6
33285 else
33286   ac_cv_header_sys_acl_h=$ac_header_preproc
33287 fi
33288 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33289 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33290
33291 fi
33292
33293
33294 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33295 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33296 if test "${ac_cv_func_acl_get_file+set}" = set; then
33297   echo $ECHO_N "(cached) $ECHO_C" >&6
33298 else
33299   cat >conftest.$ac_ext <<_ACEOF
33300 /* confdefs.h.  */
33301 _ACEOF
33302 cat confdefs.h >>conftest.$ac_ext
33303 cat >>conftest.$ac_ext <<_ACEOF
33304 /* end confdefs.h.  */
33305 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33307 #define acl_get_file innocuous_acl_get_file
33308
33309 /* System header to define __stub macros and hopefully few prototypes,
33310     which can conflict with char acl_get_file (); below.
33311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33312     <limits.h> exists even on freestanding compilers.  */
33313
33314 #ifdef __STDC__
33315 # include <limits.h>
33316 #else
33317 # include <assert.h>
33318 #endif
33319
33320 #undef acl_get_file
33321
33322 /* Override any GCC internal prototype to avoid an error.
33323    Use char because int might match the return type of a GCC
33324    builtin and then its argument prototype would still apply.  */
33325 #ifdef __cplusplus
33326 extern "C"
33327 #endif
33328 char acl_get_file ();
33329 /* The GNU C library defines this for functions which it implements
33330     to always fail with ENOSYS.  Some functions are actually named
33331     something starting with __ and the normal name is an alias.  */
33332 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33333 choke me
33334 #endif
33335
33336 int
33337 main ()
33338 {
33339 return acl_get_file ();
33340   ;
33341   return 0;
33342 }
33343 _ACEOF
33344 rm -f conftest.$ac_objext conftest$ac_exeext
33345 if { (ac_try="$ac_link"
33346 case "(($ac_try" in
33347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33348   *) ac_try_echo=$ac_try;;
33349 esac
33350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33351   (eval "$ac_link") 2>conftest.er1
33352   ac_status=$?
33353   grep -v '^ *+' conftest.er1 >conftest.err
33354   rm -f conftest.er1
33355   cat conftest.err >&5
33356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33357   (exit $ac_status); } &&
33358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33359   { (case "(($ac_try" in
33360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33361   *) ac_try_echo=$ac_try;;
33362 esac
33363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33364   (eval "$ac_try") 2>&5
33365   ac_status=$?
33366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33367   (exit $ac_status); }; } &&
33368          { ac_try='test -s conftest$ac_exeext'
33369   { (case "(($ac_try" in
33370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33371   *) ac_try_echo=$ac_try;;
33372 esac
33373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33374   (eval "$ac_try") 2>&5
33375   ac_status=$?
33376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377   (exit $ac_status); }; }; then
33378   ac_cv_func_acl_get_file=yes
33379 else
33380   echo "$as_me: failed program was:" >&5
33381 sed 's/^/| /' conftest.$ac_ext >&5
33382
33383         ac_cv_func_acl_get_file=no
33384 fi
33385
33386 rm -f core conftest.err conftest.$ac_objext \
33387       conftest$ac_exeext conftest.$ac_ext
33388 fi
33389 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33390 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33391 if test $ac_cv_func_acl_get_file = yes; then
33392   have_acl=yes
33393 else
33394   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33395 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33396 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33397   echo $ECHO_N "(cached) $ECHO_C" >&6
33398 else
33399   ac_check_lib_save_LIBS=$LIBS
33400 LIBS="-lacl  $LIBS"
33401 cat >conftest.$ac_ext <<_ACEOF
33402 /* confdefs.h.  */
33403 _ACEOF
33404 cat confdefs.h >>conftest.$ac_ext
33405 cat >>conftest.$ac_ext <<_ACEOF
33406 /* end confdefs.h.  */
33407
33408 /* Override any GCC internal prototype to avoid an error.
33409    Use char because int might match the return type of a GCC
33410    builtin and then its argument prototype would still apply.  */
33411 #ifdef __cplusplus
33412 extern "C"
33413 #endif
33414 char acl_get_file ();
33415 int
33416 main ()
33417 {
33418 return acl_get_file ();
33419   ;
33420   return 0;
33421 }
33422 _ACEOF
33423 rm -f conftest.$ac_objext conftest$ac_exeext
33424 if { (ac_try="$ac_link"
33425 case "(($ac_try" in
33426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33427   *) ac_try_echo=$ac_try;;
33428 esac
33429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33430   (eval "$ac_link") 2>conftest.er1
33431   ac_status=$?
33432   grep -v '^ *+' conftest.er1 >conftest.err
33433   rm -f conftest.er1
33434   cat conftest.err >&5
33435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33436   (exit $ac_status); } &&
33437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33438   { (case "(($ac_try" in
33439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440   *) ac_try_echo=$ac_try;;
33441 esac
33442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33443   (eval "$ac_try") 2>&5
33444   ac_status=$?
33445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33446   (exit $ac_status); }; } &&
33447          { ac_try='test -s conftest$ac_exeext'
33448   { (case "(($ac_try" in
33449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450   *) ac_try_echo=$ac_try;;
33451 esac
33452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33453   (eval "$ac_try") 2>&5
33454   ac_status=$?
33455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456   (exit $ac_status); }; }; then
33457   ac_cv_lib_acl_acl_get_file=yes
33458 else
33459   echo "$as_me: failed program was:" >&5
33460 sed 's/^/| /' conftest.$ac_ext >&5
33461
33462         ac_cv_lib_acl_acl_get_file=no
33463 fi
33464
33465 rm -f core conftest.err conftest.$ac_objext \
33466       conftest$ac_exeext conftest.$ac_ext
33467 LIBS=$ac_check_lib_save_LIBS
33468 fi
33469 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33470 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33471 if test $ac_cv_lib_acl_acl_get_file = yes; then
33472   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33473 else
33474   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33475 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33476 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33477   echo $ECHO_N "(cached) $ECHO_C" >&6
33478 else
33479   ac_check_lib_save_LIBS=$LIBS
33480 LIBS="-lsec  $LIBS"
33481 cat >conftest.$ac_ext <<_ACEOF
33482 /* confdefs.h.  */
33483 _ACEOF
33484 cat confdefs.h >>conftest.$ac_ext
33485 cat >>conftest.$ac_ext <<_ACEOF
33486 /* end confdefs.h.  */
33487
33488 /* Override any GCC internal prototype to avoid an error.
33489    Use char because int might match the return type of a GCC
33490    builtin and then its argument prototype would still apply.  */
33491 #ifdef __cplusplus
33492 extern "C"
33493 #endif
33494 char acltotext ();
33495 int
33496 main ()
33497 {
33498 return acltotext ();
33499   ;
33500   return 0;
33501 }
33502 _ACEOF
33503 rm -f conftest.$ac_objext conftest$ac_exeext
33504 if { (ac_try="$ac_link"
33505 case "(($ac_try" in
33506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33507   *) ac_try_echo=$ac_try;;
33508 esac
33509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33510   (eval "$ac_link") 2>conftest.er1
33511   ac_status=$?
33512   grep -v '^ *+' conftest.er1 >conftest.err
33513   rm -f conftest.er1
33514   cat conftest.err >&5
33515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33516   (exit $ac_status); } &&
33517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33518   { (case "(($ac_try" in
33519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33520   *) ac_try_echo=$ac_try;;
33521 esac
33522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33523   (eval "$ac_try") 2>&5
33524   ac_status=$?
33525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33526   (exit $ac_status); }; } &&
33527          { ac_try='test -s conftest$ac_exeext'
33528   { (case "(($ac_try" in
33529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33530   *) ac_try_echo=$ac_try;;
33531 esac
33532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33533   (eval "$ac_try") 2>&5
33534   ac_status=$?
33535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536   (exit $ac_status); }; }; then
33537   ac_cv_lib_sec_acltotext=yes
33538 else
33539   echo "$as_me: failed program was:" >&5
33540 sed 's/^/| /' conftest.$ac_ext >&5
33541
33542         ac_cv_lib_sec_acltotext=no
33543 fi
33544
33545 rm -f core conftest.err conftest.$ac_objext \
33546       conftest$ac_exeext conftest.$ac_ext
33547 LIBS=$ac_check_lib_save_LIBS
33548 fi
33549 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33550 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33551 if test $ac_cv_lib_sec_acltotext = yes; then
33552   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33553 fi
33554
33555
33556 fi
33557
33558
33559 fi
33560
33561 if test $have_acl = yes; then
33562    cat >>confdefs.h <<\_ACEOF
33563 #define HAVE_ACL 1
33564 _ACEOF
33565
33566 fi
33567
33568 PTHREAD_LIB=""
33569 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33570 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33571 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33572   echo $ECHO_N "(cached) $ECHO_C" >&6
33573 else
33574   ac_check_lib_save_LIBS=$LIBS
33575 LIBS="-lpthread  $LIBS"
33576 cat >conftest.$ac_ext <<_ACEOF
33577 /* confdefs.h.  */
33578 _ACEOF
33579 cat confdefs.h >>conftest.$ac_ext
33580 cat >>conftest.$ac_ext <<_ACEOF
33581 /* end confdefs.h.  */
33582
33583 /* Override any GCC internal prototype to avoid an error.
33584    Use char because int might match the return type of a GCC
33585    builtin and then its argument prototype would still apply.  */
33586 #ifdef __cplusplus
33587 extern "C"
33588 #endif
33589 char pthread_create ();
33590 int
33591 main ()
33592 {
33593 return pthread_create ();
33594   ;
33595   return 0;
33596 }
33597 _ACEOF
33598 rm -f conftest.$ac_objext conftest$ac_exeext
33599 if { (ac_try="$ac_link"
33600 case "(($ac_try" in
33601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33602   *) ac_try_echo=$ac_try;;
33603 esac
33604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33605   (eval "$ac_link") 2>conftest.er1
33606   ac_status=$?
33607   grep -v '^ *+' conftest.er1 >conftest.err
33608   rm -f conftest.er1
33609   cat conftest.err >&5
33610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33611   (exit $ac_status); } &&
33612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33613   { (case "(($ac_try" in
33614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33615   *) ac_try_echo=$ac_try;;
33616 esac
33617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33618   (eval "$ac_try") 2>&5
33619   ac_status=$?
33620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33621   (exit $ac_status); }; } &&
33622          { ac_try='test -s conftest$ac_exeext'
33623   { (case "(($ac_try" in
33624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625   *) ac_try_echo=$ac_try;;
33626 esac
33627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33628   (eval "$ac_try") 2>&5
33629   ac_status=$?
33630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33631   (exit $ac_status); }; }; then
33632   ac_cv_lib_pthread_pthread_create=yes
33633 else
33634   echo "$as_me: failed program was:" >&5
33635 sed 's/^/| /' conftest.$ac_ext >&5
33636
33637         ac_cv_lib_pthread_pthread_create=no
33638 fi
33639
33640 rm -f core conftest.err conftest.$ac_objext \
33641       conftest$ac_exeext conftest.$ac_ext
33642 LIBS=$ac_check_lib_save_LIBS
33643 fi
33644 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33645 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33646 if test $ac_cv_lib_pthread_pthread_create = yes; then
33647   PTHREAD_LIB="-lpthread"
33648 else
33649   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33650 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33651 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33652   echo $ECHO_N "(cached) $ECHO_C" >&6
33653 else
33654   ac_check_lib_save_LIBS=$LIBS
33655 LIBS="-lpthreads  $LIBS"
33656 cat >conftest.$ac_ext <<_ACEOF
33657 /* confdefs.h.  */
33658 _ACEOF
33659 cat confdefs.h >>conftest.$ac_ext
33660 cat >>conftest.$ac_ext <<_ACEOF
33661 /* end confdefs.h.  */
33662
33663 /* Override any GCC internal prototype to avoid an error.
33664    Use char because int might match the return type of a GCC
33665    builtin and then its argument prototype would still apply.  */
33666 #ifdef __cplusplus
33667 extern "C"
33668 #endif
33669 char pthread_create ();
33670 int
33671 main ()
33672 {
33673 return pthread_create ();
33674   ;
33675   return 0;
33676 }
33677 _ACEOF
33678 rm -f conftest.$ac_objext conftest$ac_exeext
33679 if { (ac_try="$ac_link"
33680 case "(($ac_try" in
33681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33682   *) ac_try_echo=$ac_try;;
33683 esac
33684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33685   (eval "$ac_link") 2>conftest.er1
33686   ac_status=$?
33687   grep -v '^ *+' conftest.er1 >conftest.err
33688   rm -f conftest.er1
33689   cat conftest.err >&5
33690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33691   (exit $ac_status); } &&
33692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33693   { (case "(($ac_try" in
33694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33695   *) ac_try_echo=$ac_try;;
33696 esac
33697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33698   (eval "$ac_try") 2>&5
33699   ac_status=$?
33700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33701   (exit $ac_status); }; } &&
33702          { ac_try='test -s conftest$ac_exeext'
33703   { (case "(($ac_try" in
33704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33705   *) ac_try_echo=$ac_try;;
33706 esac
33707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33708   (eval "$ac_try") 2>&5
33709   ac_status=$?
33710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33711   (exit $ac_status); }; }; then
33712   ac_cv_lib_pthreads_pthread_create=yes
33713 else
33714   echo "$as_me: failed program was:" >&5
33715 sed 's/^/| /' conftest.$ac_ext >&5
33716
33717         ac_cv_lib_pthreads_pthread_create=no
33718 fi
33719
33720 rm -f core conftest.err conftest.$ac_objext \
33721       conftest$ac_exeext conftest.$ac_ext
33722 LIBS=$ac_check_lib_save_LIBS
33723 fi
33724 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33725 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33726 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33727   PTHREAD_LIB="-lpthreads"
33728 else
33729   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33730 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33731 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33732   echo $ECHO_N "(cached) $ECHO_C" >&6
33733 else
33734   ac_check_lib_save_LIBS=$LIBS
33735 LIBS="-lc_r  $LIBS"
33736 cat >conftest.$ac_ext <<_ACEOF
33737 /* confdefs.h.  */
33738 _ACEOF
33739 cat confdefs.h >>conftest.$ac_ext
33740 cat >>conftest.$ac_ext <<_ACEOF
33741 /* end confdefs.h.  */
33742
33743 /* Override any GCC internal prototype to avoid an error.
33744    Use char because int might match the return type of a GCC
33745    builtin and then its argument prototype would still apply.  */
33746 #ifdef __cplusplus
33747 extern "C"
33748 #endif
33749 char pthread_create ();
33750 int
33751 main ()
33752 {
33753 return pthread_create ();
33754   ;
33755   return 0;
33756 }
33757 _ACEOF
33758 rm -f conftest.$ac_objext conftest$ac_exeext
33759 if { (ac_try="$ac_link"
33760 case "(($ac_try" in
33761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33762   *) ac_try_echo=$ac_try;;
33763 esac
33764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33765   (eval "$ac_link") 2>conftest.er1
33766   ac_status=$?
33767   grep -v '^ *+' conftest.er1 >conftest.err
33768   rm -f conftest.er1
33769   cat conftest.err >&5
33770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33771   (exit $ac_status); } &&
33772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33773   { (case "(($ac_try" in
33774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33775   *) ac_try_echo=$ac_try;;
33776 esac
33777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33778   (eval "$ac_try") 2>&5
33779   ac_status=$?
33780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781   (exit $ac_status); }; } &&
33782          { ac_try='test -s conftest$ac_exeext'
33783   { (case "(($ac_try" in
33784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33785   *) ac_try_echo=$ac_try;;
33786 esac
33787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33788   (eval "$ac_try") 2>&5
33789   ac_status=$?
33790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791   (exit $ac_status); }; }; then
33792   ac_cv_lib_c_r_pthread_create=yes
33793 else
33794   echo "$as_me: failed program was:" >&5
33795 sed 's/^/| /' conftest.$ac_ext >&5
33796
33797         ac_cv_lib_c_r_pthread_create=no
33798 fi
33799
33800 rm -f core conftest.err conftest.$ac_objext \
33801       conftest$ac_exeext conftest.$ac_ext
33802 LIBS=$ac_check_lib_save_LIBS
33803 fi
33804 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33805 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33806 if test $ac_cv_lib_c_r_pthread_create = yes; then
33807   PTHREAD_LIB="-lc_r"
33808 else
33809   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33810 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33811 if test "${ac_cv_func_pthread_create+set}" = set; then
33812   echo $ECHO_N "(cached) $ECHO_C" >&6
33813 else
33814   cat >conftest.$ac_ext <<_ACEOF
33815 /* confdefs.h.  */
33816 _ACEOF
33817 cat confdefs.h >>conftest.$ac_ext
33818 cat >>conftest.$ac_ext <<_ACEOF
33819 /* end confdefs.h.  */
33820 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33822 #define pthread_create innocuous_pthread_create
33823
33824 /* System header to define __stub macros and hopefully few prototypes,
33825     which can conflict with char pthread_create (); below.
33826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33827     <limits.h> exists even on freestanding compilers.  */
33828
33829 #ifdef __STDC__
33830 # include <limits.h>
33831 #else
33832 # include <assert.h>
33833 #endif
33834
33835 #undef pthread_create
33836
33837 /* Override any GCC internal prototype to avoid an error.
33838    Use char because int might match the return type of a GCC
33839    builtin and then its argument prototype would still apply.  */
33840 #ifdef __cplusplus
33841 extern "C"
33842 #endif
33843 char pthread_create ();
33844 /* The GNU C library defines this for functions which it implements
33845     to always fail with ENOSYS.  Some functions are actually named
33846     something starting with __ and the normal name is an alias.  */
33847 #if defined __stub_pthread_create || defined __stub___pthread_create
33848 choke me
33849 #endif
33850
33851 int
33852 main ()
33853 {
33854 return pthread_create ();
33855   ;
33856   return 0;
33857 }
33858 _ACEOF
33859 rm -f conftest.$ac_objext conftest$ac_exeext
33860 if { (ac_try="$ac_link"
33861 case "(($ac_try" in
33862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33863   *) ac_try_echo=$ac_try;;
33864 esac
33865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33866   (eval "$ac_link") 2>conftest.er1
33867   ac_status=$?
33868   grep -v '^ *+' conftest.er1 >conftest.err
33869   rm -f conftest.er1
33870   cat conftest.err >&5
33871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872   (exit $ac_status); } &&
33873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33874   { (case "(($ac_try" in
33875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33876   *) ac_try_echo=$ac_try;;
33877 esac
33878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33879   (eval "$ac_try") 2>&5
33880   ac_status=$?
33881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882   (exit $ac_status); }; } &&
33883          { ac_try='test -s conftest$ac_exeext'
33884   { (case "(($ac_try" in
33885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33886   *) ac_try_echo=$ac_try;;
33887 esac
33888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33889   (eval "$ac_try") 2>&5
33890   ac_status=$?
33891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33892   (exit $ac_status); }; }; then
33893   ac_cv_func_pthread_create=yes
33894 else
33895   echo "$as_me: failed program was:" >&5
33896 sed 's/^/| /' conftest.$ac_ext >&5
33897
33898         ac_cv_func_pthread_create=no
33899 fi
33900
33901 rm -f core conftest.err conftest.$ac_objext \
33902       conftest$ac_exeext conftest.$ac_ext
33903 fi
33904 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33905 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33906
33907
33908 fi
33909
33910
33911 fi
33912
33913
33914 fi
33915
33916
33917
33918 cat >>confdefs.h <<\_ACEOF
33919 #define FDLIBS 1
33920 _ACEOF
33921
33922
33923
33924 CFLAGS=${CFLAGS--O}
33925
33926 if test x$have_gcc = xyes ; then
33927    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33928    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33929 fi
33930 LDFLAGS=${LDFLAGS--O}
33931 DB_LIBS="${SQL_LFLAGS}"
33932 CPPFLAGS="$CPPFLAGS"
33933 CFLAGS="$CFLAGS"
33934
33935
33936
33937
33938
33939
33940
33941
33942
33943
33944
33945
33946
33947
33948
33949
33950 OBJLIST=
33951
33952
33953 lld="lld"
33954 llu="llu"
33955
33956 WCFLAGS=
33957 WLDFLAGS=
33958
33959 #
33960 # Finally we set appropriate distribution specific
33961 #  variables and defaults
33962 #
33963 # PFILES are platform specific files
33964 PFILES="platforms/Makefile"
33965 PSCMD="ps -e"
33966 WIN32=
33967 MACOSX=
33968 hostname=`uname -n | cut -d '.' -f 1`
33969 if test x${hostname} = x ; then
33970   hostname="localhost"
33971 fi
33972 case "$DISTNAME" in
33973 aix)
33974         DISTVER=`uname -r`
33975         PSCMD="ps -e -o pid,comm"
33976         PFILES="${PFILES} \
33977            platforms/aix/Makefile"
33978         TAPEDRIVE="/dev/rmt0.1"
33979   ;;
33980 alpha)
33981         DISTVER=`uname -r`
33982         PTHREAD_LIB="-lpthread -lexc"
33983         if test "${CC}" = "gcc" ; then
33984            lld="lld"
33985            llu="llu"
33986         else
33987            lld="ld"
33988            llu="lu"
33989         fi
33990         TAPEDRIVE="/dev/nrmt0"
33991   ;;
33992 bsdi)
33993         DISTVER=`uname -a |awk '{print $3}'`
33994         TAPEDRIVE="/dev/nrmt0"
33995         PTHREAD_LIB="-pthread"
33996         CFLAGS="${CFLAGS} -pthread"
33997         PSCMD="ps -ax -o pid,command"
33998         lld="qd"
33999         llu="qu"
34000         PFILES="${PFILES} \
34001             platforms/bsdi/Makefile \
34002             platforms/bsdi/bacula-fd \
34003             platforms/bsdi/bacula-sd \
34004             platforms/bsdi/bacula-dir"
34005         largefile_support="yes"
34006   ;;
34007 cygwin)
34008         DISTVER=`uname -a |awk '{print $3}'`
34009         TAPEDRIVE="/dev/nrst0"
34010         WIN32=win32
34011         WCFLAGS="-mwindows"
34012         WLDFLAGS="-mwindows"
34013   ;;
34014 darwin)
34015         DISTVER=`uname -r`
34016         TAPEDRIVE="/dev/nst0"
34017         PSCMD="ps -e -o pid,command"
34018         MACOSX=macosx
34019         PFILES="${PFILES} \
34020            platforms/darwin/Makefile"
34021   ;;
34022 debian)
34023         DISTVER=`cat /etc/debian_version`
34024         TAPEDRIVE="/dev/nrst0"
34025         PSCMD="ps -e -o pid,command"
34026   ;;
34027 freebsd)
34028         DISTVER=`uname -a |awk '{print $3}'`
34029         VER=`echo $DISTVER | cut -c 1`
34030         if test x$VER = x4 ; then
34031            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
34032            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
34033         fi
34034         lld="qd"
34035         llu="qu"
34036         TAPEDRIVE="/dev/nrsa0"
34037         PSCMD="ps -ax -o pid,command"
34038         PFILES="${PFILES} \
34039             platforms/freebsd/Makefile \
34040             platforms/freebsd/bacula-fd \
34041             platforms/freebsd/bacula-sd \
34042             platforms/freebsd/bacula-dir"
34043         largefile_support="yes"
34044   ;;
34045 hpux)
34046         PSCMD="UNIX95=1; ps -e -o pid,comm"
34047         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34048         DISTVER=`uname -r`
34049         TAPEDRIVE="/dev/rmt/0hnb"
34050         PTHREAD_LIB="-lpthread"
34051         cat >>confdefs.h <<\_ACEOF
34052 #define _INCLUDE_LONGLONG 1
34053 _ACEOF
34054
34055   ;;
34056 irix)
34057         DISTVER=`uname -r`
34058         TAPEDRIVE="/dev/rmt/0cbn"
34059         PSCMD="ps -e -o pid,comm"
34060         PFILES="${PFILES} \
34061             platforms/irix/Makefile \
34062             platforms/irix/bacula-fd \
34063             platforms/irix/bacula-sd \
34064             platforms/irix/bacula-dir"
34065   ;;
34066 netbsd)
34067         DISTVER=`uname -a |awk '{print $3}'`
34068         lld="qd"
34069         llu="qu"
34070         TAPEDRIVE="/dev/nrst0"
34071         PSCMD="ps -ax -o pid,command"
34072         PTHREAD_LIB="-pthread"
34073         CFLAGS="${CFLAGS} -pthread"
34074   ;;
34075 openbsd)
34076         DISTVER=`uname -a |awk '{print $3}'`
34077         lld="qd"
34078         llu="qu"
34079         TAPEDRIVE="/dev/nrst0"
34080         PSCMD="ps -ax -o pid,command"
34081         PTHREAD_LIB="-pthread"
34082         CFLAGS="${CFLAGS} -pthread"
34083         PFILES="${PFILES} \
34084             platforms/openbsd/Makefile \
34085             platforms/openbsd/bacula-fd \
34086             platforms/openbsd/bacula-sd \
34087             platforms/openbsd/bacula-dir"
34088   ;;
34089 redhat)
34090         if test -f /etc/whitebox-release ; then
34091            f=/etc/whitebox-release
34092         else
34093            f=/etc/redhat-release
34094         fi
34095         if test `cat $f | grep release |\
34096                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34097            DISTVER="Enterprise "`cat $f | grep release |\
34098                     cut -f 6 -d ' '`
34099         else
34100             DISTVER=`cat /etc/redhat-release | grep release |\
34101                      cut -f 5 -d ' '`
34102         fi
34103         TAPEDRIVE="/dev/nst0"
34104         PSCMD="ps -e -o pid,command"
34105         PFILES="${PFILES} \
34106             platforms/redhat/Makefile \
34107             platforms/redhat/bacula-fd \
34108             platforms/redhat/bacula-sd \
34109             platforms/redhat/bacula-dir \
34110             platforms/redhat/bacula.spec \
34111             "
34112   ;;
34113 mandrake)
34114         DISTVER=`cat /etc/mandrake-release | grep release |\
34115            cut -f 5 -d ' '`
34116         TAPEDRIVE="/dev/nst0"
34117         PSCMD="ps -e -o pid,command"
34118         PFILES="${PFILES} \
34119             platforms/mandrake/Makefile \
34120             platforms/mandrake/bacula-fd \
34121             platforms/mandrake/bacula-sd \
34122             platforms/mandrake/bacula-dir \
34123             platforms/mandrake/bacula.spec \
34124             "
34125   ;;
34126 gentoo)
34127         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34128         TAPEDRIVE="/dev/nst0"
34129         PSCMD="ps -e -o pid,command"
34130         PFILES="${PFILES} \
34131             platforms/gentoo/Makefile \
34132          platforms/gentoo/bacula-init \
34133             platforms/gentoo/bacula-fd \
34134             platforms/gentoo/bacula-sd \
34135             platforms/gentoo/bacula-dir"
34136   ;;
34137 slackware)
34138         DISTVER=`cat /etc/slackware-version`
34139         TAPEDRIVE="/dev/nst0"
34140         PSCMD="ps -e -o pid,command"
34141         PFILES="${PFILES} \
34142             platforms/slackware/Makefile \
34143             platforms/slackware/rc.bacula-fd \
34144             platforms/slackware/rc.bacula-sd \
34145             platforms/slackware/rc.bacula-dir\
34146             platforms/slackware/functions.bacula"
34147   ;;
34148 solaris)
34149         DISTVER=`uname -r`
34150         TAPEDRIVE="/dev/rmt/0cbn"
34151         PSCMD="ps -e -o pid,comm"
34152         PFILES="${PFILES} \
34153             platforms/solaris/Makefile \
34154             platforms/solaris/bacula-fd \
34155             platforms/solaris/bacula-sd \
34156             platforms/solaris/bacula-dir"
34157         if test x$DISTVER = x5.6 ; then
34158             cat >>confdefs.h <<\_ACEOF
34159 #define HAVE_OLD_SOCKOPT 1
34160 _ACEOF
34161
34162         fi
34163         LIBS="$LIBS -lresolv"
34164   ;;
34165 suse)
34166         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34167             cut -f 3 -d ' '`
34168         TAPEDRIVE="/dev/nst0"
34169         PSCMD="ps -e -o pid,command"
34170         PFILES="${PFILES} \
34171             platforms/suse/Makefile \
34172             platforms/suse/bacula-fd \
34173             platforms/suse/bacula-sd \
34174             platforms/suse/bacula-dir \
34175             platforms/suse/bacula \
34176             platforms/suse/bacula.spec"
34177   ;;
34178 suse5)
34179         DISTNAME=suse
34180         DISTVER=5.x
34181         TAPEDRIVE="/dev/nst0"
34182         PSCMD="ps -e -o pid,command"
34183         PFILES="${PFILES} \
34184             platforms/suse/Makefile \
34185             platforms/suse/bacula-fd \
34186             platforms/suse/bacula-sd \
34187             platforms/suse/bacula-dir"
34188   ;;
34189 unknown)
34190         DISTVER=unknown
34191         TAPEDRIVE="/dev/nst0"
34192   ;;
34193 *)
34194   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34195   ;;
34196 esac
34197
34198
34199
34200 LIBS="$PTHREAD_LIB $LIBS"
34201
34202 cat >>confdefs.h <<_ACEOF
34203 #define lld "$lld"
34204 _ACEOF
34205
34206 cat >>confdefs.h <<_ACEOF
34207 #define llu "$llu"
34208 _ACEOF
34209
34210
34211
34212
34213
34214
34215
34216
34217 MCOMMON=./autoconf/Make.common
34218
34219
34220 if test "x${subsysdir}" = "x${sbindir}" ; then
34221    echo " "
34222    echo " "
34223    echo "You have set both --sbindir and --with-subsys-dir"
34224    echo "  equal to: ${subsysdir} "
34225    echo "This is not permitted. Please reconfigure."
34226    echo " "
34227    echo "Aborting configuration ..."
34228    echo " "
34229    echo " "
34230    exit 1
34231 fi
34232
34233 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/bgnome-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 scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-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"
34234
34235 ac_config_commands="$ac_config_commands default"
34236
34237 cat >confcache <<\_ACEOF
34238 # This file is a shell script that caches the results of configure
34239 # tests run on this system so they can be shared between configure
34240 # scripts and configure runs, see configure's option --config-cache.
34241 # It is not useful on other systems.  If it contains results you don't
34242 # want to keep, you may remove or edit it.
34243 #
34244 # config.status only pays attention to the cache file if you give it
34245 # the --recheck option to rerun configure.
34246 #
34247 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34248 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34249 # following values.
34250
34251 _ACEOF
34252
34253 # The following way of writing the cache mishandles newlines in values,
34254 # but we know of no workaround that is simple, portable, and efficient.
34255 # So, we kill variables containing newlines.
34256 # Ultrix sh set writes to stderr and can't be redirected directly,
34257 # and sets the high bit in the cache file unless we assign to the vars.
34258 (
34259   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34260     eval ac_val=\$$ac_var
34261     case $ac_val in #(
34262     *${as_nl}*)
34263       case $ac_var in #(
34264       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34265 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34266       esac
34267       case $ac_var in #(
34268       _ | IFS | as_nl) ;; #(
34269       *) $as_unset $ac_var ;;
34270       esac ;;
34271     esac
34272   done
34273
34274   (set) 2>&1 |
34275     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34276     *${as_nl}ac_space=\ *)
34277       # `set' does not quote correctly, so add quotes (double-quote
34278       # substitution turns \\\\ into \\, and sed turns \\ into \).
34279       sed -n \
34280         "s/'/'\\\\''/g;
34281           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34282       ;; #(
34283     *)
34284       # `set' quotes correctly as required by POSIX, so do not add quotes.
34285       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34286       ;;
34287     esac |
34288     sort
34289 ) |
34290   sed '
34291      /^ac_cv_env_/b end
34292      t clear
34293      :clear
34294      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34295      t end
34296      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34297      :end' >>confcache
34298 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34299   if test -w "$cache_file"; then
34300     test "x$cache_file" != "x/dev/null" &&
34301       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34302 echo "$as_me: updating cache $cache_file" >&6;}
34303     cat confcache >$cache_file
34304   else
34305     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34306 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34307   fi
34308 fi
34309 rm -f confcache
34310
34311 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34312 # Let make expand exec_prefix.
34313 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34314
34315 DEFS=-DHAVE_CONFIG_H
34316
34317 ac_libobjs=
34318 ac_ltlibobjs=
34319 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34320   # 1. Remove the extension, and $U if already installed.
34321   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34322   ac_i=`echo "$ac_i" | sed "$ac_script"`
34323   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34324   #    will be set to the directory where LIBOBJS objects are built.
34325   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34326   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34327 done
34328 LIBOBJS=$ac_libobjs
34329
34330 LTLIBOBJS=$ac_ltlibobjs
34331
34332
34333
34334 : ${CONFIG_STATUS=./config.status}
34335 ac_clean_files_save=$ac_clean_files
34336 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34337 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34338 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34339 cat >$CONFIG_STATUS <<_ACEOF
34340 #! $SHELL
34341 # Generated by $as_me.
34342 # Run this file to recreate the current configuration.
34343 # Compiler output produced by configure, useful for debugging
34344 # configure, is in config.log if it exists.
34345
34346 debug=false
34347 ac_cs_recheck=false
34348 ac_cs_silent=false
34349 SHELL=\${CONFIG_SHELL-$SHELL}
34350 _ACEOF
34351
34352 cat >>$CONFIG_STATUS <<\_ACEOF
34353 ## --------------------- ##
34354 ## M4sh Initialization.  ##
34355 ## --------------------- ##
34356
34357 # Be Bourne compatible
34358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34359   emulate sh
34360   NULLCMD=:
34361   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34362   # is contrary to our usage.  Disable this feature.
34363   alias -g '${1+"$@"}'='"$@"'
34364   setopt NO_GLOB_SUBST
34365 else
34366   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34367 fi
34368 BIN_SH=xpg4; export BIN_SH # for Tru64
34369 DUALCASE=1; export DUALCASE # for MKS sh
34370
34371
34372 # PATH needs CR
34373 # Avoid depending upon Character Ranges.
34374 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34375 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34376 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34377 as_cr_digits='0123456789'
34378 as_cr_alnum=$as_cr_Letters$as_cr_digits
34379
34380 # The user is always right.
34381 if test "${PATH_SEPARATOR+set}" != set; then
34382   echo "#! /bin/sh" >conf$$.sh
34383   echo  "exit 0"   >>conf$$.sh
34384   chmod +x conf$$.sh
34385   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34386     PATH_SEPARATOR=';'
34387   else
34388     PATH_SEPARATOR=:
34389   fi
34390   rm -f conf$$.sh
34391 fi
34392
34393 # Support unset when possible.
34394 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34395   as_unset=unset
34396 else
34397   as_unset=false
34398 fi
34399
34400
34401 # IFS
34402 # We need space, tab and new line, in precisely that order.  Quoting is
34403 # there to prevent editors from complaining about space-tab.
34404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34405 # splitting by setting IFS to empty value.)
34406 as_nl='
34407 '
34408 IFS=" ""        $as_nl"
34409
34410 # Find who we are.  Look in the path if we contain no directory separator.
34411 case $0 in
34412   *[\\/]* ) as_myself=$0 ;;
34413   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34414 for as_dir in $PATH
34415 do
34416   IFS=$as_save_IFS
34417   test -z "$as_dir" && as_dir=.
34418   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34419 done
34420 IFS=$as_save_IFS
34421
34422      ;;
34423 esac
34424 # We did not find ourselves, most probably we were run as `sh COMMAND'
34425 # in which case we are not to be found in the path.
34426 if test "x$as_myself" = x; then
34427   as_myself=$0
34428 fi
34429 if test ! -f "$as_myself"; then
34430   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34431   { (exit 1); exit 1; }
34432 fi
34433
34434 # Work around bugs in pre-3.0 UWIN ksh.
34435 for as_var in ENV MAIL MAILPATH
34436 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34437 done
34438 PS1='$ '
34439 PS2='> '
34440 PS4='+ '
34441
34442 # NLS nuisances.
34443 for as_var in \
34444   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34445   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34446   LC_TELEPHONE LC_TIME
34447 do
34448   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34449     eval $as_var=C; export $as_var
34450   else
34451     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34452   fi
34453 done
34454
34455 # Required to use basename.
34456 if expr a : '\(a\)' >/dev/null 2>&1 &&
34457    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34458   as_expr=expr
34459 else
34460   as_expr=false
34461 fi
34462
34463 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34464   as_basename=basename
34465 else
34466   as_basename=false
34467 fi
34468
34469
34470 # Name of the executable.
34471 as_me=`$as_basename -- "$0" ||
34472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34473          X"$0" : 'X\(//\)$' \| \
34474          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34475 echo X/"$0" |
34476     sed '/^.*\/\([^/][^/]*\)\/*$/{
34477             s//\1/
34478             q
34479           }
34480           /^X\/\(\/\/\)$/{
34481             s//\1/
34482             q
34483           }
34484           /^X\/\(\/\).*/{
34485             s//\1/
34486             q
34487           }
34488           s/.*/./; q'`
34489
34490 # CDPATH.
34491 $as_unset CDPATH
34492
34493
34494
34495   as_lineno_1=$LINENO
34496   as_lineno_2=$LINENO
34497   test "x$as_lineno_1" != "x$as_lineno_2" &&
34498   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34499
34500   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34501   # uniformly replaced by the line number.  The first 'sed' inserts a
34502   # line-number line after each line using $LINENO; the second 'sed'
34503   # does the real work.  The second script uses 'N' to pair each
34504   # line-number line with the line containing $LINENO, and appends
34505   # trailing '-' during substitution so that $LINENO is not a special
34506   # case at line end.
34507   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34508   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34509   # E. McMahon (1931-1989) for sed's syntax.  :-)
34510   sed -n '
34511     p
34512     /[$]LINENO/=
34513   ' <$as_myself |
34514     sed '
34515       s/[$]LINENO.*/&-/
34516       t lineno
34517       b
34518       :lineno
34519       N
34520       :loop
34521       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34522       t loop
34523       s/-\n.*//
34524     ' >$as_me.lineno &&
34525   chmod +x "$as_me.lineno" ||
34526     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34527    { (exit 1); exit 1; }; }
34528
34529   # Don't try to exec as it changes $[0], causing all sort of problems
34530   # (the dirname of $[0] is not the place where we might find the
34531   # original and so on.  Autoconf is especially sensitive to this).
34532   . "./$as_me.lineno"
34533   # Exit status is that of the last command.
34534   exit
34535 }
34536
34537
34538 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34539   as_dirname=dirname
34540 else
34541   as_dirname=false
34542 fi
34543
34544 ECHO_C= ECHO_N= ECHO_T=
34545 case `echo -n x` in
34546 -n*)
34547   case `echo 'x\c'` in
34548   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34549   *)   ECHO_C='\c';;
34550   esac;;
34551 *)
34552   ECHO_N='-n';;
34553 esac
34554
34555 if expr a : '\(a\)' >/dev/null 2>&1 &&
34556    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34557   as_expr=expr
34558 else
34559   as_expr=false
34560 fi
34561
34562 rm -f conf$$ conf$$.exe conf$$.file
34563 if test -d conf$$.dir; then
34564   rm -f conf$$.dir/conf$$.file
34565 else
34566   rm -f conf$$.dir
34567   mkdir conf$$.dir
34568 fi
34569 echo >conf$$.file
34570 if ln -s conf$$.file conf$$ 2>/dev/null; then
34571   as_ln_s='ln -s'
34572   # ... but there are two gotchas:
34573   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34574   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34575   # In both cases, we have to default to `cp -p'.
34576   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34577     as_ln_s='cp -p'
34578 elif ln conf$$.file conf$$ 2>/dev/null; then
34579   as_ln_s=ln
34580 else
34581   as_ln_s='cp -p'
34582 fi
34583 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34584 rmdir conf$$.dir 2>/dev/null
34585
34586 if mkdir -p . 2>/dev/null; then
34587   as_mkdir_p=:
34588 else
34589   test -d ./-p && rmdir ./-p
34590   as_mkdir_p=false
34591 fi
34592
34593 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34594 # systems may use methods other than mode bits to determine executability.
34595 cat >conf$$.file <<_ASEOF
34596 #! /bin/sh
34597 exit 0
34598 _ASEOF
34599 chmod +x conf$$.file
34600 if test -x conf$$.file >/dev/null 2>&1; then
34601   as_executable_p="test -x"
34602 else
34603   as_executable_p=:
34604 fi
34605 rm -f conf$$.file
34606
34607 # Sed expression to map a string onto a valid CPP name.
34608 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34609
34610 # Sed expression to map a string onto a valid variable name.
34611 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34612
34613
34614 exec 6>&1
34615
34616 # Save the log message, to keep $[0] and so on meaningful, and to
34617 # report actual input values of CONFIG_FILES etc. instead of their
34618 # values after options handling.
34619 ac_log="
34620 This file was extended by $as_me, which was
34621 generated by GNU Autoconf 2.60.  Invocation command line was
34622
34623   CONFIG_FILES    = $CONFIG_FILES
34624   CONFIG_HEADERS  = $CONFIG_HEADERS
34625   CONFIG_LINKS    = $CONFIG_LINKS
34626   CONFIG_COMMANDS = $CONFIG_COMMANDS
34627   $ $0 $@
34628
34629 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34630 "
34631
34632 _ACEOF
34633
34634 cat >>$CONFIG_STATUS <<_ACEOF
34635 # Files that config.status was made for.
34636 config_files="$ac_config_files"
34637 config_headers="$ac_config_headers"
34638 config_commands="$ac_config_commands"
34639
34640 _ACEOF
34641
34642 cat >>$CONFIG_STATUS <<\_ACEOF
34643 ac_cs_usage="\
34644 \`$as_me' instantiates files from templates according to the
34645 current configuration.
34646
34647 Usage: $0 [OPTIONS] [FILE]...
34648
34649   -h, --help       print this help, then exit
34650   -V, --version    print version number, then exit
34651   -q, --quiet      do not print progress messages
34652   -d, --debug      don't remove temporary files
34653       --recheck    update $as_me by reconfiguring in the same conditions
34654   --file=FILE[:TEMPLATE]
34655                    instantiate the configuration file FILE
34656   --header=FILE[:TEMPLATE]
34657                    instantiate the configuration header FILE
34658
34659 Configuration files:
34660 $config_files
34661
34662 Configuration headers:
34663 $config_headers
34664
34665 Configuration commands:
34666 $config_commands
34667
34668 Report bugs to <bug-autoconf@gnu.org>."
34669
34670 _ACEOF
34671 cat >>$CONFIG_STATUS <<_ACEOF
34672 ac_cs_version="\\
34673 config.status
34674 configured by $0, generated by GNU Autoconf 2.60,
34675   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34676
34677 Copyright (C) 2006 Free Software Foundation, Inc.
34678 This config.status script is free software; the Free Software Foundation
34679 gives unlimited permission to copy, distribute and modify it."
34680
34681 ac_pwd='$ac_pwd'
34682 srcdir='$srcdir'
34683 INSTALL='$INSTALL'
34684 _ACEOF
34685
34686 cat >>$CONFIG_STATUS <<\_ACEOF
34687 # If no file are specified by the user, then we need to provide default
34688 # value.  By we need to know if files were specified by the user.
34689 ac_need_defaults=:
34690 while test $# != 0
34691 do
34692   case $1 in
34693   --*=*)
34694     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34695     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34696     ac_shift=:
34697     ;;
34698   *)
34699     ac_option=$1
34700     ac_optarg=$2
34701     ac_shift=shift
34702     ;;
34703   esac
34704
34705   case $ac_option in
34706   # Handling of the options.
34707   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34708     ac_cs_recheck=: ;;
34709   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34710     echo "$ac_cs_version"; exit ;;
34711   --debug | --debu | --deb | --de | --d | -d )
34712     debug=: ;;
34713   --file | --fil | --fi | --f )
34714     $ac_shift
34715     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34716     ac_need_defaults=false;;
34717   --header | --heade | --head | --hea )
34718     $ac_shift
34719     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34720     ac_need_defaults=false;;
34721   --he | --h)
34722     # Conflict between --help and --header
34723     { echo "$as_me: error: ambiguous option: $1
34724 Try \`$0 --help' for more information." >&2
34725    { (exit 1); exit 1; }; };;
34726   --help | --hel | -h )
34727     echo "$ac_cs_usage"; exit ;;
34728   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34729   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34730     ac_cs_silent=: ;;
34731
34732   # This is an error.
34733   -*) { echo "$as_me: error: unrecognized option: $1
34734 Try \`$0 --help' for more information." >&2
34735    { (exit 1); exit 1; }; } ;;
34736
34737   *) ac_config_targets="$ac_config_targets $1"
34738      ac_need_defaults=false ;;
34739
34740   esac
34741   shift
34742 done
34743
34744 ac_configure_extra_args=
34745
34746 if $ac_cs_silent; then
34747   exec 6>/dev/null
34748   ac_configure_extra_args="$ac_configure_extra_args --silent"
34749 fi
34750
34751 _ACEOF
34752 cat >>$CONFIG_STATUS <<_ACEOF
34753 if \$ac_cs_recheck; then
34754   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34755   CONFIG_SHELL=$SHELL
34756   export CONFIG_SHELL
34757   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34758 fi
34759
34760 _ACEOF
34761 cat >>$CONFIG_STATUS <<\_ACEOF
34762 exec 5>>config.log
34763 {
34764   echo
34765   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34766 ## Running $as_me. ##
34767 _ASBOX
34768   echo "$ac_log"
34769 } >&5
34770
34771 _ACEOF
34772 cat >>$CONFIG_STATUS <<_ACEOF
34773 #
34774 # INIT-COMMANDS
34775 #
34776 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34777     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34778     # from automake.
34779     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34780     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34781     LINGUAS="${LINGUAS-%UNSET%}"
34782
34783
34784 _ACEOF
34785
34786 cat >>$CONFIG_STATUS <<\_ACEOF
34787
34788 # Handling of arguments.
34789 for ac_config_target in $ac_config_targets
34790 do
34791   case $ac_config_target in
34792     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34793     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34794     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34795     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34796     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34797     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34798     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34799     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34800     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34801     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34802     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34803     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34804     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34805     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34806     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34807     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34808     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34809     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34810     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34811     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34812     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34813     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34814     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34815     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34816     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34817     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34818     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34819     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34820     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34821     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34822     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34823     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34824     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34825     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34826     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34827     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34828     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34829     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34830     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34831     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34832     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34833     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34834     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34835     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34836     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34837     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34838     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34839     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34840     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34841     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34842     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34843     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34844     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34845     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34846     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34847     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34848     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34849     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34850     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34851     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34852     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34853     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34854     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34855     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34856     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34857     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34858     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34859     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34860     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34861     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34862     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34863     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34864     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34865     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34866     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34867     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34868     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34869     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34870     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34871     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34872     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34873     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34874     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34875     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34876     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34877     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34878     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34879     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34880     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34881     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34882     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34883     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34884     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34885     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34886     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34887     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34888     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34889     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34890     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34891     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34892     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34893     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34894     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34895     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34896     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34897     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34898
34899   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34900 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34901    { (exit 1); exit 1; }; };;
34902   esac
34903 done
34904
34905
34906 # If the user did not use the arguments to specify the items to instantiate,
34907 # then the envvar interface is used.  Set only those that are not.
34908 # We use the long form for the default assignment because of an extremely
34909 # bizarre bug on SunOS 4.1.3.
34910 if $ac_need_defaults; then
34911   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34912   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34913   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34914 fi
34915
34916 # Have a temporary directory for convenience.  Make it in the build tree
34917 # simply because there is no reason against having it here, and in addition,
34918 # creating and moving files from /tmp can sometimes cause problems.
34919 # Hook for its removal unless debugging.
34920 # Note that there is a small window in which the directory will not be cleaned:
34921 # after its creation but before its name has been assigned to `$tmp'.
34922 $debug ||
34923 {
34924   tmp=
34925   trap 'exit_status=$?
34926   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34927 ' 0
34928   trap '{ (exit 1); exit 1; }' 1 2 13 15
34929 }
34930 # Create a (secure) tmp directory for tmp files.
34931
34932 {
34933   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34934   test -n "$tmp" && test -d "$tmp"
34935 }  ||
34936 {
34937   tmp=./conf$$-$RANDOM
34938   (umask 077 && mkdir "$tmp")
34939 } ||
34940 {
34941    echo "$me: cannot create a temporary directory in ." >&2
34942    { (exit 1); exit 1; }
34943 }
34944
34945 #
34946 # Set up the sed scripts for CONFIG_FILES section.
34947 #
34948
34949 # No need to generate the scripts if there are no CONFIG_FILES.
34950 # This happens for instance when ./config.status config.h
34951 if test -n "$CONFIG_FILES"; then
34952
34953 _ACEOF
34954
34955 # Create sed commands to just substitute file output variables.
34956
34957 # Remaining file output variables are in a fragment that also has non-file
34958 # output varibles.
34959
34960
34961
34962 ac_delim='%!_!# '
34963 for ac_last_try in false false false false false :; do
34964   cat >conf$$subs.sed <<_ACEOF
34965 SHELL!$SHELL$ac_delim
34966 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34967 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34968 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34969 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34970 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34971 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34972 exec_prefix!$exec_prefix$ac_delim
34973 prefix!$prefix$ac_delim
34974 program_transform_name!$program_transform_name$ac_delim
34975 bindir!$bindir$ac_delim
34976 sbindir!$sbindir$ac_delim
34977 libexecdir!$libexecdir$ac_delim
34978 datarootdir!$datarootdir$ac_delim
34979 datadir!$datadir$ac_delim
34980 sysconfdir!$sysconfdir$ac_delim
34981 sharedstatedir!$sharedstatedir$ac_delim
34982 localstatedir!$localstatedir$ac_delim
34983 includedir!$includedir$ac_delim
34984 oldincludedir!$oldincludedir$ac_delim
34985 docdir!$docdir$ac_delim
34986 infodir!$infodir$ac_delim
34987 htmldir!$htmldir$ac_delim
34988 dvidir!$dvidir$ac_delim
34989 pdfdir!$pdfdir$ac_delim
34990 psdir!$psdir$ac_delim
34991 libdir!$libdir$ac_delim
34992 localedir!$localedir$ac_delim
34993 mandir!$mandir$ac_delim
34994 DEFS!$DEFS$ac_delim
34995 ECHO_C!$ECHO_C$ac_delim
34996 ECHO_N!$ECHO_N$ac_delim
34997 ECHO_T!$ECHO_T$ac_delim
34998 LIBS!$LIBS$ac_delim
34999 build_alias!$build_alias$ac_delim
35000 host_alias!$host_alias$ac_delim
35001 target_alias!$target_alias$ac_delim
35002 BUILD_DIR!$BUILD_DIR$ac_delim
35003 TOP_DIR!$TOP_DIR$ac_delim
35004 TRUEPRG!$TRUEPRG$ac_delim
35005 FALSEPRG!$FALSEPRG$ac_delim
35006 VERSION!$VERSION$ac_delim
35007 DATE!$DATE$ac_delim
35008 LSMDATE!$LSMDATE$ac_delim
35009 CC!$CC$ac_delim
35010 CFLAGS!$CFLAGS$ac_delim
35011 LDFLAGS!$LDFLAGS$ac_delim
35012 CPPFLAGS!$CPPFLAGS$ac_delim
35013 ac_ct_CC!$ac_ct_CC$ac_delim
35014 EXEEXT!$EXEEXT$ac_delim
35015 OBJEXT!$OBJEXT$ac_delim
35016 CXX!$CXX$ac_delim
35017 CXXFLAGS!$CXXFLAGS$ac_delim
35018 ac_ct_CXX!$ac_ct_CXX$ac_delim
35019 CPP!$CPP$ac_delim
35020 GREP!$GREP$ac_delim
35021 EGREP!$EGREP$ac_delim
35022 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
35023 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
35024 INSTALL_DATA!$INSTALL_DATA$ac_delim
35025 RANLIB!$RANLIB$ac_delim
35026 MV!$MV$ac_delim
35027 RM!$RM$ac_delim
35028 CP!$CP$ac_delim
35029 SED!$SED$ac_delim
35030 ECHO!$ECHO$ac_delim
35031 CMP!$CMP$ac_delim
35032 TBL!$TBL$ac_delim
35033 AR!$AR$ac_delim
35034 OPENSSL!$OPENSSL$ac_delim
35035 MTX!$MTX$ac_delim
35036 DD!$DD$ac_delim
35037 MKISOFS!$MKISOFS$ac_delim
35038 PYTHON!$PYTHON$ac_delim
35039 GROWISOFS!$GROWISOFS$ac_delim
35040 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35041 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35042 PKGCONFIG!$PKGCONFIG$ac_delim
35043 WXCONFIG!$WXCONFIG$ac_delim
35044 WXFLAGS!$WXFLAGS$ac_delim
35045 CDRECORD!$CDRECORD$ac_delim
35046 PIDOF!$PIDOF$ac_delim
35047 AWK!$AWK$ac_delim
35048 ARFLAGS!$ARFLAGS$ac_delim
35049 MAKE_SHELL!$MAKE_SHELL$ac_delim
35050 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35051 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35052 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35053 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35054 build!$build$ac_delim
35055 build_cpu!$build_cpu$ac_delim
35056 build_vendor!$build_vendor$ac_delim
35057 build_os!$build_os$ac_delim
35058 host!$host$ac_delim
35059 _ACEOF
35060
35061   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35062     break
35063   elif $ac_last_try; then
35064     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35065 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35066    { (exit 1); exit 1; }; }
35067   else
35068     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35069   fi
35070 done
35071
35072 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35073 if test -n "$ac_eof"; then
35074   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35075   ac_eof=`expr $ac_eof + 1`
35076 fi
35077
35078 cat >>$CONFIG_STATUS <<_ACEOF
35079 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35080 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35081 /^[      ]*@MCOMMON@[    ]*$/{
35082 r $MCOMMON
35083 d
35084 }
35085 _ACEOF
35086 sed '
35087 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35088 s/^/s,@/; s/!/@,|#_!!_#|/
35089 :n
35090 t n
35091 s/'"$ac_delim"'$/,g/; t
35092 s/$/\\/; p
35093 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35094 ' >>$CONFIG_STATUS <conf$$subs.sed
35095 rm -f conf$$subs.sed
35096 cat >>$CONFIG_STATUS <<_ACEOF
35097 CEOF$ac_eof
35098 _ACEOF
35099
35100
35101 ac_delim='%!_!# '
35102 for ac_last_try in false false false false false :; do
35103   cat >conf$$subs.sed <<_ACEOF
35104 host_cpu!$host_cpu$ac_delim
35105 host_vendor!$host_vendor$ac_delim
35106 host_os!$host_os$ac_delim
35107 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35108 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35109 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35110 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35111 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35112 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35113 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35114 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35115 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35116 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35117 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35118 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35119 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35120 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35121 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35122 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35123 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35124 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35125 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35126 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35127 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35128 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35129 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35130 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35131 SET_MAKE!$SET_MAKE$ac_delim
35132 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35133 USE_NLS!$USE_NLS$ac_delim
35134 MSGFMT!$MSGFMT$ac_delim
35135 GMSGFMT!$GMSGFMT$ac_delim
35136 XGETTEXT!$XGETTEXT$ac_delim
35137 MSGMERGE!$MSGMERGE$ac_delim
35138 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35139 LIBICONV!$LIBICONV$ac_delim
35140 LTLIBICONV!$LTLIBICONV$ac_delim
35141 INTLLIBS!$INTLLIBS$ac_delim
35142 LIBINTL!$LIBINTL$ac_delim
35143 LTLIBINTL!$LTLIBINTL$ac_delim
35144 POSUB!$POSUB$ac_delim
35145 GLIBC2!$GLIBC2$ac_delim
35146 ALLOCA!$ALLOCA$ac_delim
35147 GLIBC21!$GLIBC21$ac_delim
35148 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35149 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35150 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35151 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35152 INTLBISON!$INTLBISON$ac_delim
35153 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35154 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35155 CATOBJEXT!$CATOBJEXT$ac_delim
35156 DATADIRNAME!$DATADIRNAME$ac_delim
35157 INSTOBJEXT!$INSTOBJEXT$ac_delim
35158 GENCAT!$GENCAT$ac_delim
35159 INTLOBJS!$INTLOBJS$ac_delim
35160 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35161 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35162 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35163 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35164 GNOME_LIBS!$GNOME_LIBS$ac_delim
35165 GNOME_DIR!$GNOME_DIR$ac_delim
35166 BAT_DIR!$BAT_DIR$ac_delim
35167 QWT_INC!$QWT_INC$ac_delim
35168 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
35169 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35170 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35171 WX_DIR!$WX_DIR$ac_delim
35172 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35173 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35174 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35175 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35176 STATIC_FD!$STATIC_FD$ac_delim
35177 STATIC_SD!$STATIC_SD$ac_delim
35178 STATIC_DIR!$STATIC_DIR$ac_delim
35179 STATIC_CONS!$STATIC_CONS$ac_delim
35180 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35181 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35182 ALL_DIRS!$ALL_DIRS$ac_delim
35183 DIRD_DIR!$DIRD_DIR$ac_delim
35184 DIR_TOOLS!$DIR_TOOLS$ac_delim
35185 STORED_DIR!$STORED_DIR$ac_delim
35186 CONS_INC!$CONS_INC$ac_delim
35187 CONS_OBJ!$CONS_OBJ$ac_delim
35188 CONS_SRC!$CONS_SRC$ac_delim
35189 CONS_LIBS!$CONS_LIBS$ac_delim
35190 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35191 READLINE_SRC!$READLINE_SRC$ac_delim
35192 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35193 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35194 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35195 OPENSSL_INC!$OPENSSL_INC$ac_delim
35196 working_dir!$working_dir$ac_delim
35197 scriptdir!$scriptdir$ac_delim
35198 dump_email!$dump_email$ac_delim
35199 job_email!$job_email$ac_delim
35200 smtp_host!$smtp_host$ac_delim
35201 _ACEOF
35202
35203   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35204     break
35205   elif $ac_last_try; then
35206     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35207 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35208    { (exit 1); exit 1; }; }
35209   else
35210     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35211   fi
35212 done
35213
35214 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35215 if test -n "$ac_eof"; then
35216   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35217   ac_eof=`expr $ac_eof + 1`
35218 fi
35219
35220 cat >>$CONFIG_STATUS <<_ACEOF
35221 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35222 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35223 _ACEOF
35224 sed '
35225 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35226 s/^/s,@/; s/!/@,|#_!!_#|/
35227 :n
35228 t n
35229 s/'"$ac_delim"'$/,g/; t
35230 s/$/\\/; p
35231 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35232 ' >>$CONFIG_STATUS <conf$$subs.sed
35233 rm -f conf$$subs.sed
35234 cat >>$CONFIG_STATUS <<_ACEOF
35235 CEOF$ac_eof
35236 _ACEOF
35237
35238
35239 ac_delim='%!_!# '
35240 for ac_last_try in false false false false false :; do
35241   cat >conf$$subs.sed <<_ACEOF
35242 piddir!$piddir$ac_delim
35243 subsysdir!$subsysdir$ac_delim
35244 baseport!$baseport$ac_delim
35245 dir_port!$dir_port$ac_delim
35246 fd_port!$fd_port$ac_delim
35247 sd_port!$sd_port$ac_delim
35248 dir_password!$dir_password$ac_delim
35249 fd_password!$fd_password$ac_delim
35250 sd_password!$sd_password$ac_delim
35251 mon_dir_password!$mon_dir_password$ac_delim
35252 mon_fd_password!$mon_fd_password$ac_delim
35253 mon_sd_password!$mon_sd_password$ac_delim
35254 db_name!$db_name$ac_delim
35255 db_user!$db_user$ac_delim
35256 dir_user!$dir_user$ac_delim
35257 dir_group!$dir_group$ac_delim
35258 sd_user!$sd_user$ac_delim
35259 sd_group!$sd_group$ac_delim
35260 fd_user!$fd_user$ac_delim
35261 fd_group!$fd_group$ac_delim
35262 SBINPERM!$SBINPERM$ac_delim
35263 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35264 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35265 SQL_BINDIR!$SQL_BINDIR$ac_delim
35266 cats!$cats$ac_delim
35267 DB_TYPE!$DB_TYPE$ac_delim
35268 GETCONF!$GETCONF$ac_delim
35269 XMKMF!$XMKMF$ac_delim
35270 X_CFLAGS!$X_CFLAGS$ac_delim
35271 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35272 X_LIBS!$X_LIBS$ac_delim
35273 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35274 LIBOBJS!$LIBOBJS$ac_delim
35275 FDLIBS!$FDLIBS$ac_delim
35276 DEBUG!$DEBUG$ac_delim
35277 DINCLUDE!$DINCLUDE$ac_delim
35278 DLIB!$DLIB$ac_delim
35279 DB_LIBS!$DB_LIBS$ac_delim
35280 WCFLAGS!$WCFLAGS$ac_delim
35281 WLDFLAGS!$WLDFLAGS$ac_delim
35282 WRAPLIBS!$WRAPLIBS$ac_delim
35283 OBJLIST!$OBJLIST$ac_delim
35284 hostname!$hostname$ac_delim
35285 TAPEDRIVE!$TAPEDRIVE$ac_delim
35286 PSCMD!$PSCMD$ac_delim
35287 WIN32!$WIN32$ac_delim
35288 MACOSX!$MACOSX$ac_delim
35289 DISTNAME!$DISTNAME$ac_delim
35290 DISTVER!$DISTVER$ac_delim
35291 LTLIBOBJS!$LTLIBOBJS$ac_delim
35292 _ACEOF
35293
35294   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
35295     break
35296   elif $ac_last_try; then
35297     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35298 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35299    { (exit 1); exit 1; }; }
35300   else
35301     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35302   fi
35303 done
35304
35305 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35306 if test -n "$ac_eof"; then
35307   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35308   ac_eof=`expr $ac_eof + 1`
35309 fi
35310
35311 cat >>$CONFIG_STATUS <<_ACEOF
35312 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35314 _ACEOF
35315 sed '
35316 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35317 s/^/s,@/; s/!/@,|#_!!_#|/
35318 :n
35319 t n
35320 s/'"$ac_delim"'$/,g/; t
35321 s/$/\\/; p
35322 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35323 ' >>$CONFIG_STATUS <conf$$subs.sed
35324 rm -f conf$$subs.sed
35325 cat >>$CONFIG_STATUS <<_ACEOF
35326 :end
35327 s/|#_!!_#|//g
35328 CEOF$ac_eof
35329 _ACEOF
35330
35331
35332 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35333 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35334 # trailing colons and then remove the whole line if VPATH becomes empty
35335 # (actually we leave an empty line to preserve line numbers).
35336 if test "x$srcdir" = x.; then
35337   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35338 s/:*\$(srcdir):*/:/
35339 s/:*\${srcdir}:*/:/
35340 s/:*@srcdir@:*/:/
35341 s/^\([^=]*=[     ]*\):*/\1/
35342 s/:*$//
35343 s/^[^=]*=[       ]*$//
35344 }'
35345 fi
35346
35347 cat >>$CONFIG_STATUS <<\_ACEOF
35348 fi # test -n "$CONFIG_FILES"
35349
35350
35351 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35352 do
35353   case $ac_tag in
35354   :[FHLC]) ac_mode=$ac_tag; continue;;
35355   esac
35356   case $ac_mode$ac_tag in
35357   :[FHL]*:*);;
35358   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35359 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35360    { (exit 1); exit 1; }; };;
35361   :[FH]-) ac_tag=-:-;;
35362   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35363   esac
35364   ac_save_IFS=$IFS
35365   IFS=:
35366   set x $ac_tag
35367   IFS=$ac_save_IFS
35368   shift
35369   ac_file=$1
35370   shift
35371
35372   case $ac_mode in
35373   :L) ac_source=$1;;
35374   :[FH])
35375     ac_file_inputs=
35376     for ac_f
35377     do
35378       case $ac_f in
35379       -) ac_f="$tmp/stdin";;
35380       *) # Look for the file first in the build tree, then in the source tree
35381          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35382          # because $ac_f cannot contain `:'.
35383          test -f "$ac_f" ||
35384            case $ac_f in
35385            [\\/$]*) false;;
35386            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35387            esac ||
35388            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35389 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35390    { (exit 1); exit 1; }; };;
35391       esac
35392       ac_file_inputs="$ac_file_inputs $ac_f"
35393     done
35394
35395     # Let's still pretend it is `configure' which instantiates (i.e., don't
35396     # use $as_me), people would be surprised to read:
35397     #    /* config.h.  Generated by config.status.  */
35398     configure_input="Generated from "`IFS=:
35399           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35400     if test x"$ac_file" != x-; then
35401       configure_input="$ac_file.  $configure_input"
35402       { echo "$as_me:$LINENO: creating $ac_file" >&5
35403 echo "$as_me: creating $ac_file" >&6;}
35404     fi
35405
35406     case $ac_tag in
35407     *:-:* | *:-) cat >"$tmp/stdin";;
35408     esac
35409     ;;
35410   esac
35411
35412   ac_dir=`$as_dirname -- "$ac_file" ||
35413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35414          X"$ac_file" : 'X\(//\)[^/]' \| \
35415          X"$ac_file" : 'X\(//\)$' \| \
35416          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35417 echo X"$ac_file" |
35418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35419             s//\1/
35420             q
35421           }
35422           /^X\(\/\/\)[^/].*/{
35423             s//\1/
35424             q
35425           }
35426           /^X\(\/\/\)$/{
35427             s//\1/
35428             q
35429           }
35430           /^X\(\/\).*/{
35431             s//\1/
35432             q
35433           }
35434           s/.*/./; q'`
35435   { as_dir="$ac_dir"
35436   case $as_dir in #(
35437   -*) as_dir=./$as_dir;;
35438   esac
35439   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35440     as_dirs=
35441     while :; do
35442       case $as_dir in #(
35443       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35444       *) as_qdir=$as_dir;;
35445       esac
35446       as_dirs="'$as_qdir' $as_dirs"
35447       as_dir=`$as_dirname -- "$as_dir" ||
35448 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35449          X"$as_dir" : 'X\(//\)[^/]' \| \
35450          X"$as_dir" : 'X\(//\)$' \| \
35451          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35452 echo X"$as_dir" |
35453     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35454             s//\1/
35455             q
35456           }
35457           /^X\(\/\/\)[^/].*/{
35458             s//\1/
35459             q
35460           }
35461           /^X\(\/\/\)$/{
35462             s//\1/
35463             q
35464           }
35465           /^X\(\/\).*/{
35466             s//\1/
35467             q
35468           }
35469           s/.*/./; q'`
35470       test -d "$as_dir" && break
35471     done
35472     test -z "$as_dirs" || eval "mkdir $as_dirs"
35473   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35474 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35475    { (exit 1); exit 1; }; }; }
35476   ac_builddir=.
35477
35478 case "$ac_dir" in
35479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35480 *)
35481   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35482   # A ".." for each directory in $ac_dir_suffix.
35483   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35484   case $ac_top_builddir_sub in
35485   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35486   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35487   esac ;;
35488 esac
35489 ac_abs_top_builddir=$ac_pwd
35490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35491 # for backward compatibility:
35492 ac_top_builddir=$ac_top_build_prefix
35493
35494 case $srcdir in
35495   .)  # We are building in place.
35496     ac_srcdir=.
35497     ac_top_srcdir=$ac_top_builddir_sub
35498     ac_abs_top_srcdir=$ac_pwd ;;
35499   [\\/]* | ?:[\\/]* )  # Absolute name.
35500     ac_srcdir=$srcdir$ac_dir_suffix;
35501     ac_top_srcdir=$srcdir
35502     ac_abs_top_srcdir=$srcdir ;;
35503   *) # Relative name.
35504     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35505     ac_top_srcdir=$ac_top_build_prefix$srcdir
35506     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35507 esac
35508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35509
35510
35511   case $ac_mode in
35512   :F)
35513   #
35514   # CONFIG_FILE
35515   #
35516
35517   case $INSTALL in
35518   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35519   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35520   esac
35521 _ACEOF
35522
35523 cat >>$CONFIG_STATUS <<\_ACEOF
35524 # If the template does not know about datarootdir, expand it.
35525 # FIXME: This hack should be removed a few years after 2.60.
35526 ac_datarootdir_hack=; ac_datarootdir_seen=
35527
35528 case `sed -n '/datarootdir/ {
35529   p
35530   q
35531 }
35532 /@datadir@/p
35533 /@docdir@/p
35534 /@infodir@/p
35535 /@localedir@/p
35536 /@mandir@/p
35537 ' $ac_file_inputs` in
35538 *datarootdir*) ac_datarootdir_seen=yes;;
35539 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35540   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35541 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35542 _ACEOF
35543 cat >>$CONFIG_STATUS <<_ACEOF
35544   ac_datarootdir_hack='
35545   s&@datadir@&$datadir&g
35546   s&@docdir@&$docdir&g
35547   s&@infodir@&$infodir&g
35548   s&@localedir@&$localedir&g
35549   s&@mandir@&$mandir&g
35550     s&\\\${datarootdir}&$datarootdir&g' ;;
35551 esac
35552 _ACEOF
35553
35554 # Neutralize VPATH when `$srcdir' = `.'.
35555 # Shell code in configure.ac might set extrasub.
35556 # FIXME: do we really want to maintain this feature?
35557 cat >>$CONFIG_STATUS <<_ACEOF
35558   sed "$ac_vpsub
35559 $extrasub
35560 _ACEOF
35561 cat >>$CONFIG_STATUS <<\_ACEOF
35562 :t
35563 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35564 s&@configure_input@&$configure_input&;t t
35565 s&@top_builddir@&$ac_top_builddir_sub&;t t
35566 s&@srcdir@&$ac_srcdir&;t t
35567 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35568 s&@top_srcdir@&$ac_top_srcdir&;t t
35569 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35570 s&@builddir@&$ac_builddir&;t t
35571 s&@abs_builddir@&$ac_abs_builddir&;t t
35572 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35573 s&@INSTALL@&$ac_INSTALL&;t t
35574 $ac_datarootdir_hack
35575 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35576
35577 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35578   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35579   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35580   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35581 which seems to be undefined.  Please make sure it is defined." >&5
35582 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35583 which seems to be undefined.  Please make sure it is defined." >&2;}
35584
35585   rm -f "$tmp/stdin"
35586   case $ac_file in
35587   -) cat "$tmp/out"; rm -f "$tmp/out";;
35588   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35589   esac
35590  ;;
35591   :H)
35592   #
35593   # CONFIG_HEADER
35594   #
35595 _ACEOF
35596
35597 # Transform confdefs.h into a sed script `conftest.defines', that
35598 # substitutes the proper values into config.h.in to produce config.h.
35599 rm -f conftest.defines conftest.tail
35600 # First, append a space to every undef/define line, to ease matching.
35601 echo 's/$/ /' >conftest.defines
35602 # Then, protect against being on the right side of a sed subst, or in
35603 # an unquoted here document, in config.status.  If some macros were
35604 # called several times there might be several #defines for the same
35605 # symbol, which is useless.  But do not sort them, since the last
35606 # AC_DEFINE must be honored.
35607 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35608 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35609 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35610 # PARAMS is the parameter list in the macro definition--in most cases, it's
35611 # just an empty string.
35612 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35613 ac_dB='\\)[      (].*,\\1define\\2'
35614 ac_dC=' '
35615 ac_dD=' ,'
35616
35617 uniq confdefs.h |
35618   sed -n '
35619         t rset
35620         :rset
35621         s/^[     ]*#[    ]*define[       ][      ]*//
35622         t ok
35623         d
35624         :ok
35625         s/[\\&,]/\\&/g
35626         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35627         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35628   ' >>conftest.defines
35629
35630 # Remove the space that was appended to ease matching.
35631 # Then replace #undef with comments.  This is necessary, for
35632 # example, in the case of _POSIX_SOURCE, which is predefined and required
35633 # on some systems where configure will not decide to define it.
35634 # (The regexp can be short, since the line contains either #define or #undef.)
35635 echo 's/ $//
35636 s,^[     #]*u.*,/* & */,' >>conftest.defines
35637
35638 # Break up conftest.defines:
35639 ac_max_sed_lines=50
35640
35641 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35642 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35643 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35644 # et cetera.
35645 ac_in='$ac_file_inputs'
35646 ac_out='"$tmp/out1"'
35647 ac_nxt='"$tmp/out2"'
35648
35649 while :
35650 do
35651   # Write a here document:
35652     cat >>$CONFIG_STATUS <<_ACEOF
35653     # First, check the format of the line:
35654     cat >"\$tmp/defines.sed" <<\\CEOF
35655 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35656 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35657 b
35658 :def
35659 _ACEOF
35660   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35661   echo 'CEOF
35662     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35663   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35664   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35665   grep . conftest.tail >/dev/null || break
35666   rm -f conftest.defines
35667   mv conftest.tail conftest.defines
35668 done
35669 rm -f conftest.defines conftest.tail
35670
35671 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35672 cat >>$CONFIG_STATUS <<\_ACEOF
35673   if test x"$ac_file" != x-; then
35674     echo "/* $configure_input  */" >"$tmp/config.h"
35675     cat "$ac_result" >>"$tmp/config.h"
35676     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35677       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35678 echo "$as_me: $ac_file is unchanged" >&6;}
35679     else
35680       rm -f $ac_file
35681       mv "$tmp/config.h" $ac_file
35682     fi
35683   else
35684     echo "/* $configure_input  */"
35685     cat "$ac_result"
35686   fi
35687   rm -f "$tmp/out12"
35688  ;;
35689
35690   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35691 echo "$as_me: executing $ac_file commands" >&6;}
35692  ;;
35693   esac
35694
35695
35696   case $ac_file$ac_mode in
35697     "default-1":C)
35698     for ac_file in $CONFIG_FILES; do
35699       # Support "outfile[:infile[:infile...]]"
35700       case "$ac_file" in
35701         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35702       esac
35703       # PO directories have a Makefile.in generated from Makefile.in.in.
35704       case "$ac_file" in */Makefile.in)
35705         # Adjust a relative srcdir.
35706         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35707         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35708         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35709         # In autoconf-2.13 it is called $ac_given_srcdir.
35710         # In autoconf-2.50 it is called $srcdir.
35711         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35712         case "$ac_given_srcdir" in
35713           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35714           /*) top_srcdir="$ac_given_srcdir" ;;
35715           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35716         esac
35717         # Treat a directory as a PO directory if and only if it has a
35718         # POTFILES.in file. This allows packages to have multiple PO
35719         # directories under different names or in different locations.
35720         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35721           rm -f "$ac_dir/POTFILES"
35722           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35723           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35724           POMAKEFILEDEPS="POTFILES.in"
35725           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35726           # on $ac_dir but don't depend on user-specified configuration
35727           # parameters.
35728           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35729             # The LINGUAS file contains the set of available languages.
35730             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35731               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35732             fi
35733             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35734             # Hide the ALL_LINGUAS assigment from automake.
35735             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35736             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35737           else
35738             # The set of available languages was given in configure.in.
35739             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35740           fi
35741           # Compute POFILES
35742           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35743           # Compute UPDATEPOFILES
35744           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35745           # Compute DUMMYPOFILES
35746           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35747           # Compute GMOFILES
35748           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35749           case "$ac_given_srcdir" in
35750             .) srcdirpre= ;;
35751             *) srcdirpre='$(srcdir)/' ;;
35752           esac
35753           POFILES=
35754           UPDATEPOFILES=
35755           DUMMYPOFILES=
35756           GMOFILES=
35757           for lang in $ALL_LINGUAS; do
35758             POFILES="$POFILES $srcdirpre$lang.po"
35759             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35760             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35761             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35762           done
35763           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35764           # environment variable.
35765           INST_LINGUAS=
35766           if test -n "$ALL_LINGUAS"; then
35767             for presentlang in $ALL_LINGUAS; do
35768               useit=no
35769               if test "%UNSET%" != "$LINGUAS"; then
35770                 desiredlanguages="$LINGUAS"
35771               else
35772                 desiredlanguages="$ALL_LINGUAS"
35773               fi
35774               for desiredlang in $desiredlanguages; do
35775                 # Use the presentlang catalog if desiredlang is
35776                 #   a. equal to presentlang, or
35777                 #   b. a variant of presentlang (because in this case,
35778                 #      presentlang can be used as a fallback for messages
35779                 #      which are not translated in the desiredlang catalog).
35780                 case "$desiredlang" in
35781                   "$presentlang"*) useit=yes;;
35782                 esac
35783               done
35784               if test $useit = yes; then
35785                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35786               fi
35787             done
35788           fi
35789           CATALOGS=
35790           if test -n "$INST_LINGUAS"; then
35791             for lang in $INST_LINGUAS; do
35792               CATALOGS="$CATALOGS $lang.gmo"
35793             done
35794           fi
35795           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35796           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"
35797           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35798             if test -f "$f"; then
35799               case "$f" in
35800                 *.orig | *.bak | *~) ;;
35801                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35802               esac
35803             fi
35804           done
35805         fi
35806         ;;
35807       esac
35808     done ;;
35809     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35810  ;;
35811
35812   esac
35813 done # for ac_tag
35814
35815
35816 { (exit 0); exit 0; }
35817 _ACEOF
35818 chmod +x $CONFIG_STATUS
35819 ac_clean_files=$ac_clean_files_save
35820
35821
35822 # configure is writing to config.log, and then calls config.status.
35823 # config.status does its own redirection, appending to config.log.
35824 # Unfortunately, on DOS this fails, as config.log is still kept open
35825 # by configure, so config.status won't be able to write to it; its
35826 # output is simply discarded.  So we exec the FD to /dev/null,
35827 # effectively closing config.log, so it can be properly (re)opened and
35828 # appended to by config.status.  When coming back to configure, we
35829 # need to make the FD available again.
35830 if test "$no_create" != yes; then
35831   ac_cs_success=:
35832   ac_config_status_args=
35833   test "$silent" = yes &&
35834     ac_config_status_args="$ac_config_status_args --quiet"
35835   exec 5>/dev/null
35836   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35837   exec 5>>config.log
35838   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35839   # would make configure fail if this is the last instruction.
35840   $ac_cs_success || { (exit 1); exit 1; }
35841 fi
35842
35843
35844 cd scripts
35845 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35846 chmod 755 dvd-handler dvd-simulator
35847 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35848 cd ..
35849
35850 c=src/cats
35851
35852 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35853 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35854
35855 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35856 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35857
35858 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35859 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35860
35861 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35862 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35863
35864 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35865 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35866
35867 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35868 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35869
35870 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35871 chmod 755 $c/sqlite
35872 chmod 755 $c/mysql
35873
35874 chmod 755 src/win32/build-depkgs-mingw32
35875
35876 if test "${support_bat}" = "yes" ; then
35877   cd src/qt-console
35878   a=`pwd`
35879   chmod 755 install_conf_file build-depkgs-qt-console
35880   echo "Creating bat Makefile"
35881   qmake
35882 fi
35883
35884
35885 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35886    largefile_support="yes"
35887 fi
35888
35889 #
35890 # A whole lot of hand springs to get the compiler version.
35891 #  This is because gcc changed the output in version 3.0
35892 #
35893 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35894 if test "x${CCVERSION}" = "x" ; then
35895   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35896 fi
35897 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35898 if test x"${CXXVERSION}" = x ; then
35899   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35900 fi
35901
35902 if test "x${subsysdir}" = "x${sbindir}" ; then
35903    echo " "
35904    echo " "
35905    echo "You have set --sbindir and --with-subsys-dir"
35906    echo "  both equal to: ${subsysdir} "
35907    echo "  This is not permitted. Please reconfigure."
35908    echo " "
35909    echo "Aborting configuration ..."
35910    echo " "
35911    echo " "
35912    exit 1
35913 fi
35914
35915 if test "x${db_type}" = "xInternal" ; then
35916    echo " "
35917    echo " "
35918    echo "You have not specified either --enable-client-only or one of the"
35919    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35920    echo "  This is not permitted. Please reconfigure."
35921    echo " "
35922    echo "Aborting the configuration ..."
35923    echo " "
35924    echo " "
35925    exit 1
35926 fi
35927
35928 echo "
35929 Configuration on `date`:
35930
35931   Host:                       $host -- ${DISTNAME} ${DISTVER}
35932   Bacula version:             ${VERSION} (${DATE})
35933   Source code location:       ${srcdir}
35934   Install binaries:           ${sbindir}
35935   Install config files:       ${sysconfdir}
35936   Scripts directory:          ${scriptdir}
35937   Working directory:          ${working_dir}
35938   PID directory:              ${piddir}
35939   Subsys directory:           ${subsysdir}
35940   Man directory:              ${mandir}
35941   Data directory:             ${datadir}
35942   C Compiler:                 ${CC} ${CCVERSION}
35943   C++ Compiler:               ${CXX} ${CXXVERSION}
35944   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35945   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35946   Libraries:                  ${LIBS}
35947   Statically Linked Tools:    ${support_static_tools}
35948   Statically Linked FD:       ${support_static_fd}
35949   Statically Linked SD:       ${support_static_sd}
35950   Statically Linked DIR:      ${support_static_dir}
35951   Statically Linked CONS:     ${support_static_cons}
35952   Database type:              ${db_type}
35953   Database lib:               ${DB_LIBS}
35954   Database name:              ${db_name}
35955   Database user:              ${db_user}
35956
35957   Job Output Email:           ${job_email}
35958   Traceback Email:            ${dump_email}
35959   SMTP Host Address:          ${smtp_host}
35960
35961   Director Port:              ${dir_port}
35962   File daemon Port:           ${fd_port}
35963   Storage daemon Port:        ${sd_port}
35964
35965   Director User:              ${dir_user}
35966   Director Group:             ${dir_group}
35967   Storage Daemon User:        ${sd_user}
35968   Storage DaemonGroup:        ${sd_group}
35969   File Daemon User:           ${fd_user}
35970   File Daemon Group:          ${fd_group}
35971
35972   SQL binaries Directory      ${SQL_BINDIR}
35973
35974   Large file support:         $largefile_support
35975   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35976   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35977   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35978   TLS support:                ${support_tls}
35979   Encryption support:         ${support_crypto}
35980   ZLIB support:               ${have_zlib}
35981   enable-smartalloc:          ${support_smartalloc}
35982   enable-bat:                 ${support_bat}
35983   enable-gnome:               ${support_gnome} ${gnome_version}
35984   enable-bwx-console:         ${support_wx_console} ${wx_version}
35985   enable-tray-monitor:        ${support_tray_monitor}
35986   client-only:                ${build_client_only}
35987   build-dird:                 ${build_dird}
35988   build-stored:               ${build_stored}
35989   ACL support:                ${have_acl}
35990   Python support:             ${support_python} ${PYTHON_LIBS}
35991   Batch insert enabled:       ${support_batch_insert}
35992
35993   " > config.out
35994
35995 cat config.out