]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Implement --with-batch-insert in configure and detection of thread
[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 WXCONS_CPPFLAGS
759 WXCONS_LDFLAGS
760 WX_DIR
761 TRAY_MONITOR_CPPFLAGS
762 TRAY_MONITOR_LDFLAGS
763 TRAY_MONITOR_DIR
764 TTOOL_LDFLAGS
765 STATIC_FD
766 STATIC_SD
767 STATIC_DIR
768 STATIC_CONS
769 STATIC_GNOME_CONS
770 STATIC_WX_CONS
771 ALL_DIRS
772 DIRD_DIR
773 DIR_TOOLS
774 STORED_DIR
775 CONS_INC
776 CONS_OBJ
777 CONS_SRC
778 CONS_LIBS
779 CONS_LDFLAGS
780 READLINE_SRC
781 PYTHON_LIBS
782 PYTHON_INCDIR
783 OPENSSL_LIBS
784 OPENSSL_INC
785 working_dir
786 scriptdir
787 dump_email
788 job_email
789 smtp_host
790 piddir
791 subsysdir
792 baseport
793 dir_port
794 fd_port
795 sd_port
796 dir_password
797 fd_password
798 sd_password
799 mon_dir_password
800 mon_fd_password
801 mon_sd_password
802 db_name
803 db_user
804 dir_user
805 dir_group
806 sd_user
807 sd_group
808 fd_user
809 fd_group
810 SBINPERM
811 SQL_LFLAGS
812 SQL_INCLUDE
813 SQL_BINDIR
814 cats
815 DB_TYPE
816 GETCONF
817 XMKMF
818 X_CFLAGS
819 X_PRE_LIBS
820 X_LIBS
821 X_EXTRA_LIBS
822 LIBOBJS
823 FDLIBS
824 DEBUG
825 DINCLUDE
826 DLIB
827 DB_LIBS
828 WCFLAGS
829 WLDFLAGS
830 WRAPLIBS
831 OBJLIST
832 hostname
833 TAPEDRIVE
834 PSCMD
835 WIN32
836 MACOSX
837 DISTNAME
838 DISTVER
839 LTLIBOBJS'
840 ac_subst_files='MCOMMON'
841       ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 CPPFLAGS
848 CXX
849 CXXFLAGS
850 CCC
851 CPP
852 WXCONFIG
853 WXFLAGS
854 XMKMF'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907   # If the previous option needs an argument, assign it.
908   if test -n "$ac_prev"; then
909     eval $ac_prev=\$ac_option
910     ac_prev=
911     continue
912   fi
913
914   case $ac_option in
915   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916   *)    ac_optarg=yes ;;
917   esac
918
919   # Accept the important Cygnus configure options, so we can diagnose typos.
920
921   case $ac_dashdash$ac_option in
922   --)
923     ac_dashdash=yes ;;
924
925   -bindir | --bindir | --bindi | --bind | --bin | --bi)
926     ac_prev=bindir ;;
927   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928     bindir=$ac_optarg ;;
929
930   -build | --build | --buil | --bui | --bu)
931     ac_prev=build_alias ;;
932   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933     build_alias=$ac_optarg ;;
934
935   -cache-file | --cache-file | --cache-fil | --cache-fi \
936   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937     ac_prev=cache_file ;;
938   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940     cache_file=$ac_optarg ;;
941
942   --config-cache | -C)
943     cache_file=config.cache ;;
944
945   -datadir | --datadir | --datadi | --datad)
946     ac_prev=datadir ;;
947   -datadir=* | --datadir=* | --datadi=* | --datad=*)
948     datadir=$ac_optarg ;;
949
950   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951   | --dataroo | --dataro | --datar)
952     ac_prev=datarootdir ;;
953   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955     datarootdir=$ac_optarg ;;
956
957   -disable-* | --disable-*)
958     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
961       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
962    { (exit 1); exit 1; }; }
963     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
964     eval enable_$ac_feature=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
980       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
981    { (exit 1); exit 1; }; }
982     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
983     eval enable_$ac_feature=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1177       { echo "$as_me: error: invalid package name: $ac_package" >&2
1178    { (exit 1); exit 1; }; }
1179     ac_package=`echo $ac_package| sed 's/-/_/g'`
1180     eval with_$ac_package=\$ac_optarg ;;
1181
1182   -without-* | --without-*)
1183     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid package name: $ac_package" >&2
1187    { (exit 1); exit 1; }; }
1188     ac_package=`echo $ac_package | sed 's/-/_/g'`
1189     eval with_$ac_package=no ;;
1190
1191   --x)
1192     # Obsolete; use --with-x.
1193     with_x=yes ;;
1194
1195   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196   | --x-incl | --x-inc | --x-in | --x-i)
1197     ac_prev=x_includes ;;
1198   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200     x_includes=$ac_optarg ;;
1201
1202   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204     ac_prev=x_libraries ;;
1205   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207     x_libraries=$ac_optarg ;;
1208
1209   -*) { echo "$as_me: error: unrecognized option: $ac_option
1210 Try \`$0 --help' for more information." >&2
1211    { (exit 1); exit 1; }; }
1212     ;;
1213
1214   *=*)
1215     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1218       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1219    { (exit 1); exit 1; }; }
1220     eval $ac_envvar=\$ac_optarg
1221     export $ac_envvar ;;
1222
1223   *)
1224     # FIXME: should be removed in autoconf 3.0.
1225     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229     ;;
1230
1231   esac
1232 done
1233
1234 if test -n "$ac_prev"; then
1235   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236   { echo "$as_me: error: missing argument to $ac_option" >&2
1237    { (exit 1); exit 1; }; }
1238 fi
1239
1240 # Be sure to have absolute directory names.
1241 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242                 datadir sysconfdir sharedstatedir localstatedir includedir \
1243                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244                 libdir localedir mandir
1245 do
1246   eval ac_val=\$$ac_var
1247   case $ac_val in
1248     [\\/$]* | ?:[\\/]* )  continue;;
1249     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250   esac
1251   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1252    { (exit 1); exit 1; }; }
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264   if test "x$build_alias" = x; then
1265     cross_compiling=maybe
1266     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267     If a cross compiler is detected then cross compile mode will be used." >&2
1268   elif test "x$build_alias" != "x$host_alias"; then
1269     cross_compiling=yes
1270   fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282   { echo "$as_me: error: Working directory cannot be determined" >&2
1283    { (exit 1); exit 1; }; }
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285   { echo "$as_me: error: pwd does not report name of working directory" >&2
1286    { (exit 1); exit 1; }; }
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291   ac_srcdir_defaulted=yes
1292   # Try the directory containing this script, then the parent directory.
1293   ac_confdir=`$as_dirname -- "$0" ||
1294 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295          X"$0" : 'X\(//\)[^/]' \| \
1296          X"$0" : 'X\(//\)$' \| \
1297          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1298 echo X"$0" |
1299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\/\)[^/].*/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\).*/{
1312             s//\1/
1313             q
1314           }
1315           s/.*/./; q'`
1316   srcdir=$ac_confdir
1317   if test ! -r "$srcdir/$ac_unique_file"; then
1318     srcdir=..
1319   fi
1320 else
1321   ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1326    { (exit 1); exit 1; }; }
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1331    { (exit 1); exit 1; }; }
1332         pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335   srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_env_${ac_var}_value=\$${ac_var}
1346   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354   # Omit some internal or obsolete options to make the list less imposing.
1355   # This message is too long to be a string in the A/UX 3.1 sh.
1356   cat <<_ACEOF
1357 \`configure' configures this package to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367   -h, --help              display this help and exit
1368       --help=short        display options specific to this package
1369       --help=recursive    display the short help of all the included packages
1370   -V, --version           display version information and exit
1371   -q, --quiet, --silent   do not print \`checking...' messages
1372       --cache-file=FILE   cache test results in FILE [disabled]
1373   -C, --config-cache      alias for \`--cache-file=config.cache'
1374   -n, --no-create         do not create output files
1375       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378   --prefix=PREFIX         install architecture-independent files in PREFIX
1379                           [$ac_default_prefix]
1380   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                           [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391   --bindir=DIR           user executables [EPREFIX/bin]
1392   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1393   --libexecdir=DIR       program executables [EPREFIX/libexec]
1394   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1395   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1396   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1397   --libdir=DIR           object code libraries [EPREFIX/lib]
1398   --includedir=DIR       C header files [PREFIX/include]
1399   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1400   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1401   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1402   --infodir=DIR          info documentation [DATAROOTDIR/info]
1403   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1404   --mandir=DIR           man documentation [DATAROOTDIR/man]
1405   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1406   --htmldir=DIR          html documentation [DOCDIR]
1407   --dvidir=DIR           dvi documentation [DOCDIR]
1408   --pdfdir=DIR           pdf documentation [DOCDIR]
1409   --psdir=DIR            ps documentation [DOCDIR]
1410 _ACEOF
1411
1412   cat <<\_ACEOF
1413
1414 X features:
1415   --x-includes=DIR    X include files are in DIR
1416   --x-libraries=DIR   X library files are in DIR
1417
1418 System types:
1419   --build=BUILD     configure for building on BUILD [guessed]
1420   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425
1426   cat <<\_ACEOF
1427
1428 Optional Features:
1429   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431   --disable-nls           do not use Native Language Support
1432   --disable-rpath         do not hardcode runtime library paths
1433   --enable-gnome          enable build of bgnome-console GUI disabled
1434   --enable-bat  enable build of bat Qt4 GUI disabled
1435   --enable-bwx-console     enable build of wxWidgets console disabled
1436   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1437   --enable-smartalloc     enable smartalloc debugging support disabled
1438   --enable-static-tools   enable static tape tools disabled
1439   --enable-static-fd      enable static File daemon disabled
1440   --enable-static-sd      enable static Storage daemon disabled
1441   --enable-static-dir     enable static Director disabled
1442   --enable-static-cons    enable static Console disabled
1443   --enable-client-only    build client (File daemon) only disabled
1444   --enable-build-dird     enable building of dird (Director) enabled
1445   --enable-build-stored   enable building of stored (Storage daemon) enabled
1446  --disable-conio disable conio support enabled
1447
1448   --enable-ipv6             enable ipv6 support enabled
1449
1450   --disable-readline      disable readline support disable
1451
1452         --enable-batch-insert       enable the DB batch insert code disabled
1453   --disable-largefile     omit support for large files
1454
1455 Optional Packages:
1456   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1457   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1458   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1459   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1460   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1461   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1462   --without-libintl-prefix     don't search for libintl in includedir and libdir
1463   --with-included-gettext use the GNU gettext library included here
1464  --with-readline[=DIR]         specify readline library directory
1465
1466   --with-python[=DIR]   Include Python support.  DIR is the Python base
1467                           install directory, default is to search through
1468                           a number of common places for the Python files.
1469   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1470   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1471   --with-working-dir=PATH        specify path of Bacula working directory
1472   --with-scriptdir=PATH    specify path of Bacula scripts directory
1473   --with-dump-email=EMAIL        dump email address
1474   --with-job-email=EMAIL         job output email address
1475   --with-smtp-host=HOST          SMTP mail host address
1476   --with-pid-dir=PATH            specify location of Bacula pid files
1477   --with-subsys-dir=PATH         specify location of Bacula subsys file
1478   --with-baseport=PORT           specify base port address for daemons
1479   --with-dir-password=PASSWORD   specify Director's password
1480   --with-fd-password=PASSWORD    specify Client's password
1481   --with-sd-password=PASSWORD    specify Storage daemon's password
1482   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1483   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1484   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1485   --with-db-name=DBNAME        specify database name (default bacula)
1486   --with-db-user=UNAME         specify database user (default bacula)
1487   --with-dir-user=USER           specify user for Director daemon
1488   --with-dir-group=GROUP                 specify group for Director daemon
1489   --with-sd-user=USER            specify user for Storage daemon
1490   --with-sd-group=GROUP          specify group for Storage daemon
1491   --with-fd-user=USER            specify user for File daemon
1492   --with-fd-group=GROUP          specify group for File daemon
1493   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1494   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1495                           base install directory, defaults to /usr/local/pgsql
1496
1497   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1498                           install directory, default is to search through
1499                           a number of common places for the MySQL files.
1500
1501   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1502                           install directory, default is to search through
1503                           a number of common places for the MySQL files.
1504
1505   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1506                           install directory, default is to search through
1507                           a number of common places for the SQLite3 files.
1508
1509   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1510                           install directory, default is to search through
1511                           a number of common places for the SQLite files.
1512   --with-x                use the X Window System
1513
1514 Some influential environment variables:
1515   CC          C compiler command
1516   CFLAGS      C compiler flags
1517   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1518               nonstandard directory <lib dir>
1519   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1520               you have headers in a nonstandard directory <include dir>
1521   CXX         C++ compiler command
1522   CXXFLAGS    C++ compiler flags
1523   CPP         C preprocessor
1524   WXCONFIG    wx-config command. On some systems, you must set it to
1525               wx-config-2.6 to use wxWidgets 2.6.
1526   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1527   XMKMF       Path to xmkmf, Makefile generator for X Window System
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537   # If there are subdirs, report their specific --help.
1538   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539     test -d "$ac_dir" || continue
1540     ac_builddir=.
1541
1542 case "$ac_dir" in
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 *)
1545   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546   # A ".." for each directory in $ac_dir_suffix.
1547   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548   case $ac_top_builddir_sub in
1549   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551   esac ;;
1552 esac
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1557
1558 case $srcdir in
1559   .)  # We are building in place.
1560     ac_srcdir=.
1561     ac_top_srcdir=$ac_top_builddir_sub
1562     ac_abs_top_srcdir=$ac_pwd ;;
1563   [\\/]* | ?:[\\/]* )  # Absolute name.
1564     ac_srcdir=$srcdir$ac_dir_suffix;
1565     ac_top_srcdir=$srcdir
1566     ac_abs_top_srcdir=$srcdir ;;
1567   *) # Relative name.
1568     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569     ac_top_srcdir=$ac_top_build_prefix$srcdir
1570     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 esac
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573
1574     cd "$ac_dir" || { ac_status=$?; continue; }
1575     # Check for guested configure.
1576     if test -f "$ac_srcdir/configure.gnu"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579     elif test -f "$ac_srcdir/configure"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure" --help=recursive
1582     else
1583       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584     fi || ac_status=$?
1585     cd "$ac_pwd" || { ac_status=$?; break; }
1586   done
1587 fi
1588
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1591   cat <<\_ACEOF
1592 configure
1593 generated by GNU Autoconf 2.60
1594
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1599 _ACEOF
1600   exit
1601 fi
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1605
1606 It was created by $as_me, which was
1607 generated by GNU Autoconf 2.60.  Invocation command line was
1608
1609   $ $0 $@
1610
1611 _ACEOF
1612 exec 5>>config.log
1613 {
1614 cat <<_ASUNAME
1615 ## --------- ##
1616 ## Platform. ##
1617 ## --------- ##
1618
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1624
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1627
1628 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1629 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1632 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1633 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1634 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1635
1636 _ASUNAME
1637
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1639 for as_dir in $PATH
1640 do
1641   IFS=$as_save_IFS
1642   test -z "$as_dir" && as_dir=.
1643   echo "PATH: $as_dir"
1644 done
1645 IFS=$as_save_IFS
1646
1647 } >&5
1648
1649 cat >&5 <<_ACEOF
1650
1651
1652 ## ----------- ##
1653 ## Core tests. ##
1654 ## ----------- ##
1655
1656 _ACEOF
1657
1658
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1664 ac_configure_args=
1665 ac_configure_args0=
1666 ac_configure_args1=
1667 ac_must_keep_next=false
1668 for ac_pass in 1 2
1669 do
1670   for ac_arg
1671   do
1672     case $ac_arg in
1673     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675     | -silent | --silent | --silen | --sile | --sil)
1676       continue ;;
1677     *\'*)
1678       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1679     esac
1680     case $ac_pass in
1681     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682     2)
1683       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684       if test $ac_must_keep_next = true; then
1685         ac_must_keep_next=false # Got value, back to normal.
1686       else
1687         case $ac_arg in
1688           *=* | --config-cache | -C | -disable-* | --disable-* \
1689           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691           | -with-* | --with-* | -without-* | --without-* | --x)
1692             case "$ac_configure_args0 " in
1693               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1694             esac
1695             ;;
1696           -* ) ac_must_keep_next=true ;;
1697         esac
1698       fi
1699       ac_configure_args="$ac_configure_args '$ac_arg'"
1700       ;;
1701     esac
1702   done
1703 done
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log.  We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713   # Save into config.log some information that might help in debugging.
1714   {
1715     echo
1716
1717     cat <<\_ASBOX
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1721 _ASBOX
1722     echo
1723     # The following way of writing the cache mishandles newlines in values,
1724 (
1725   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726     eval ac_val=\$$ac_var
1727     case $ac_val in #(
1728     *${as_nl}*)
1729       case $ac_var in #(
1730       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1732       esac
1733       case $ac_var in #(
1734       _ | IFS | as_nl) ;; #(
1735       *) $as_unset $ac_var ;;
1736       esac ;;
1737     esac
1738   done
1739   (set) 2>&1 |
1740     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741     *${as_nl}ac_space=\ *)
1742       sed -n \
1743         "s/'\''/'\''\\\\'\'''\''/g;
1744           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1745       ;; #(
1746     *)
1747       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1748       ;;
1749     esac |
1750     sort
1751 )
1752     echo
1753
1754     cat <<\_ASBOX
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1758 _ASBOX
1759     echo
1760     for ac_var in $ac_subst_vars
1761     do
1762       eval ac_val=\$$ac_var
1763       case $ac_val in
1764       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765       esac
1766       echo "$ac_var='\''$ac_val'\''"
1767     done | sort
1768     echo
1769
1770     if test -n "$ac_subst_files"; then
1771       cat <<\_ASBOX
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1775 _ASBOX
1776       echo
1777       for ac_var in $ac_subst_files
1778       do
1779         eval ac_val=\$$ac_var
1780         case $ac_val in
1781         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1782         esac
1783         echo "$ac_var='\''$ac_val'\''"
1784       done | sort
1785       echo
1786     fi
1787
1788     if test -s confdefs.h; then
1789       cat <<\_ASBOX
1790 ## ----------- ##
1791 ## confdefs.h. ##
1792 ## ----------- ##
1793 _ASBOX
1794       echo
1795       cat confdefs.h
1796       echo
1797     fi
1798     test "$ac_signal" != 0 &&
1799       echo "$as_me: caught signal $ac_signal"
1800     echo "$as_me: exit $exit_status"
1801   } >&5
1802   rm -f core *.core core.conftest.* &&
1803     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1804     exit $exit_status
1805 ' 0
1806 for ac_signal in 1 2 13 15; do
1807   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1808 done
1809 ac_signal=0
1810
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1813
1814 # Predefined preprocessor variables.
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1833 _ACEOF
1834
1835
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1838 _ACEOF
1839
1840
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844   set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1847 else
1848   set x "$ac_default_prefix/share/config.site" \
1849         "$ac_default_prefix/etc/config.site"
1850 fi
1851 shift
1852 for ac_site_file
1853 do
1854   if test -r "$ac_site_file"; then
1855     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857     sed 's/^/| /' "$ac_site_file" >&5
1858     . "$ac_site_file"
1859   fi
1860 done
1861
1862 if test -r "$cache_file"; then
1863   # Some versions of bash will fail to source /dev/null (special
1864   # files actually), so we avoid doing that.
1865   if test -f "$cache_file"; then
1866     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1868     case $cache_file in
1869       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870       *)                      . "./$cache_file";;
1871     esac
1872   fi
1873 else
1874   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1876   >$cache_file
1877 fi
1878
1879 # Check that the precious variables saved in the cache have kept the same
1880 # value.
1881 ac_cache_corrupted=false
1882 for ac_var in $ac_precious_vars; do
1883   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884   eval ac_new_set=\$ac_env_${ac_var}_set
1885   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886   eval ac_new_val=\$ac_env_${ac_var}_value
1887   case $ac_old_set,$ac_new_set in
1888     set,)
1889       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891       ac_cache_corrupted=: ;;
1892     ,set)
1893       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895       ac_cache_corrupted=: ;;
1896     ,);;
1897     *)
1898       if test "x$ac_old_val" != "x$ac_new_val"; then
1899         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1902 echo "$as_me:   former value:  $ac_old_val" >&2;}
1903         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1904 echo "$as_me:   current value: $ac_new_val" >&2;}
1905         ac_cache_corrupted=:
1906       fi;;
1907   esac
1908   # Pass precious variables to config.status.
1909   if test "$ac_new_set" = set; then
1910     case $ac_new_val in
1911     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912     *) ac_arg=$ac_var=$ac_new_val ;;
1913     esac
1914     case " $ac_configure_args " in
1915       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1916       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1917     esac
1918   fi
1919 done
1920 if $ac_cache_corrupted; then
1921   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925    { (exit 1); exit 1; }; }
1926 fi
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944 ac_ext=c
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1949
1950
1951 BUILD_DIR=`pwd`
1952 cd ..
1953 TOP_DIR=`pwd`
1954 cd ${BUILD_DIR}
1955
1956
1957 ac_aux_dir=
1958 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1959   if test -f "$ac_dir/install-sh"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/install-sh -c"
1962     break
1963   elif test -f "$ac_dir/install.sh"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/install.sh -c"
1966     break
1967   elif test -f "$ac_dir/shtool"; then
1968     ac_aux_dir=$ac_dir
1969     ac_install_sh="$ac_aux_dir/shtool install -c"
1970     break
1971   fi
1972 done
1973 if test -z "$ac_aux_dir"; then
1974   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1975 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1976    { (exit 1); exit 1; }; }
1977 fi
1978
1979 # These three variables are undocumented and unsupported,
1980 # and are intended to be withdrawn in a future Autoconf release.
1981 # They can cause serious problems if a builder's source tree is in a directory
1982 # whose full name contains unusual characters.
1983 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1984 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1985 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1986
1987
1988 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1989
1990
1991
1992
1993
1994 for ac_prog in true
1995 do
1996   # Extract the first word of "$ac_prog", so it can be a program name with args.
1997 set dummy $ac_prog; ac_word=$2
1998 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2000 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2001   echo $ECHO_N "(cached) $ECHO_C" >&6
2002 else
2003   case $TRUEPRG in
2004   [\\/]* | ?:[\\/]*)
2005   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2006   ;;
2007   *)
2008   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2009 for as_dir in $PATH
2010 do
2011   IFS=$as_save_IFS
2012   test -z "$as_dir" && as_dir=.
2013   for ac_exec_ext in '' $ac_executable_extensions; do
2014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2015     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2017     break 2
2018   fi
2019 done
2020 done
2021 IFS=$as_save_IFS
2022
2023   ;;
2024 esac
2025 fi
2026 TRUEPRG=$ac_cv_path_TRUEPRG
2027 if test -n "$TRUEPRG"; then
2028   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2029 echo "${ECHO_T}$TRUEPRG" >&6; }
2030 else
2031   { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2033 fi
2034
2035
2036   test -n "$TRUEPRG" && break
2037 done
2038 test -n "$TRUEPRG" || TRUEPRG=":"
2039
2040 for ac_prog in false
2041 do
2042   # Extract the first word of "$ac_prog", so it can be a program name with args.
2043 set dummy $ac_prog; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2047   echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049   case $FALSEPRG in
2050   [\\/]* | ?:[\\/]*)
2051   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2052   ;;
2053   *)
2054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2056 do
2057   IFS=$as_save_IFS
2058   test -z "$as_dir" && as_dir=.
2059   for ac_exec_ext in '' $ac_executable_extensions; do
2060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2061     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063     break 2
2064   fi
2065 done
2066 done
2067 IFS=$as_save_IFS
2068
2069   ;;
2070 esac
2071 fi
2072 FALSEPRG=$ac_cv_path_FALSEPRG
2073 if test -n "$FALSEPRG"; then
2074   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2075 echo "${ECHO_T}$FALSEPRG" >&6; }
2076 else
2077   { echo "$as_me:$LINENO: result: no" >&5
2078 echo "${ECHO_T}no" >&6; }
2079 fi
2080
2081
2082   test -n "$FALSEPRG" && break
2083 done
2084 test -n "$FALSEPRG" || FALSEPRG=":"
2085
2086
2087 #AC_CANONICAL_HOST
2088
2089 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2090 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2091 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2092 echo "configuring for bacula $VERSION ($DATE)"
2093
2094
2095
2096 ac_ext=c
2097 ac_cpp='$CPP $CPPFLAGS'
2098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2101 if test -n "$ac_tool_prefix"; then
2102   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2106 if test "${ac_cv_prog_CC+set}" = set; then
2107   echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109   if test -n "$CC"; then
2110   ac_cv_prog_CC="$CC" # Let the user override the test.
2111 else
2112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113 for as_dir in $PATH
2114 do
2115   IFS=$as_save_IFS
2116   test -z "$as_dir" && as_dir=.
2117   for ac_exec_ext in '' $ac_executable_extensions; do
2118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2119     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2121     break 2
2122   fi
2123 done
2124 done
2125 IFS=$as_save_IFS
2126
2127 fi
2128 fi
2129 CC=$ac_cv_prog_CC
2130 if test -n "$CC"; then
2131   { echo "$as_me:$LINENO: result: $CC" >&5
2132 echo "${ECHO_T}$CC" >&6; }
2133 else
2134   { echo "$as_me:$LINENO: result: no" >&5
2135 echo "${ECHO_T}no" >&6; }
2136 fi
2137
2138
2139 fi
2140 if test -z "$ac_cv_prog_CC"; then
2141   ac_ct_CC=$CC
2142   # Extract the first word of "gcc", so it can be a program name with args.
2143 set dummy gcc; ac_word=$2
2144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2147   echo $ECHO_N "(cached) $ECHO_C" >&6
2148 else
2149   if test -n "$ac_ct_CC"; then
2150   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2151 else
2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 for as_dir in $PATH
2154 do
2155   IFS=$as_save_IFS
2156   test -z "$as_dir" && as_dir=.
2157   for ac_exec_ext in '' $ac_executable_extensions; do
2158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2159     ac_cv_prog_ac_ct_CC="gcc"
2160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161     break 2
2162   fi
2163 done
2164 done
2165 IFS=$as_save_IFS
2166
2167 fi
2168 fi
2169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2170 if test -n "$ac_ct_CC"; then
2171   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2172 echo "${ECHO_T}$ac_ct_CC" >&6; }
2173 else
2174   { echo "$as_me:$LINENO: result: no" >&5
2175 echo "${ECHO_T}no" >&6; }
2176 fi
2177
2178   if test "x$ac_ct_CC" = x; then
2179     CC=""
2180   else
2181     case $cross_compiling:$ac_tool_warned in
2182 yes:)
2183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2184 whose name does not start with the host triplet.  If you think this
2185 configuration is useful to you, please write to autoconf@gnu.org." >&5
2186 echo "$as_me: 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." >&2;}
2189 ac_tool_warned=yes ;;
2190 esac
2191     CC=$ac_ct_CC
2192   fi
2193 else
2194   CC="$ac_cv_prog_CC"
2195 fi
2196
2197 if test -z "$CC"; then
2198           if test -n "$ac_tool_prefix"; then
2199     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2200 set dummy ${ac_tool_prefix}cc; ac_word=$2
2201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2203 if test "${ac_cv_prog_CC+set}" = set; then
2204   echo $ECHO_N "(cached) $ECHO_C" >&6
2205 else
2206   if test -n "$CC"; then
2207   ac_cv_prog_CC="$CC" # Let the user override the test.
2208 else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210 for as_dir in $PATH
2211 do
2212   IFS=$as_save_IFS
2213   test -z "$as_dir" && as_dir=.
2214   for ac_exec_ext in '' $ac_executable_extensions; do
2215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2216     ac_cv_prog_CC="${ac_tool_prefix}cc"
2217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218     break 2
2219   fi
2220 done
2221 done
2222 IFS=$as_save_IFS
2223
2224 fi
2225 fi
2226 CC=$ac_cv_prog_CC
2227 if test -n "$CC"; then
2228   { echo "$as_me:$LINENO: result: $CC" >&5
2229 echo "${ECHO_T}$CC" >&6; }
2230 else
2231   { echo "$as_me:$LINENO: result: no" >&5
2232 echo "${ECHO_T}no" >&6; }
2233 fi
2234
2235
2236   fi
2237 fi
2238 if test -z "$CC"; then
2239   # Extract the first word of "cc", so it can be a program name with args.
2240 set dummy cc; ac_word=$2
2241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243 if test "${ac_cv_prog_CC+set}" = set; then
2244   echo $ECHO_N "(cached) $ECHO_C" >&6
2245 else
2246   if test -n "$CC"; then
2247   ac_cv_prog_CC="$CC" # Let the user override the test.
2248 else
2249   ac_prog_rejected=no
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2257     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2258        ac_prog_rejected=yes
2259        continue
2260      fi
2261     ac_cv_prog_CC="cc"
2262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2263     break 2
2264   fi
2265 done
2266 done
2267 IFS=$as_save_IFS
2268
2269 if test $ac_prog_rejected = yes; then
2270   # We found a bogon in the path, so make sure we never use it.
2271   set dummy $ac_cv_prog_CC
2272   shift
2273   if test $# != 0; then
2274     # We chose a different compiler from the bogus one.
2275     # However, it has the same basename, so the bogon will be chosen
2276     # first if we set CC to just the basename; use the full file name.
2277     shift
2278     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2279   fi
2280 fi
2281 fi
2282 fi
2283 CC=$ac_cv_prog_CC
2284 if test -n "$CC"; then
2285   { echo "$as_me:$LINENO: result: $CC" >&5
2286 echo "${ECHO_T}$CC" >&6; }
2287 else
2288   { echo "$as_me:$LINENO: result: no" >&5
2289 echo "${ECHO_T}no" >&6; }
2290 fi
2291
2292
2293 fi
2294 if test -z "$CC"; then
2295   if test -n "$ac_tool_prefix"; then
2296   for ac_prog in cl.exe
2297   do
2298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302 if test "${ac_cv_prog_CC+set}" = set; then
2303   echo $ECHO_N "(cached) $ECHO_C" >&6
2304 else
2305   if test -n "$CC"; then
2306   ac_cv_prog_CC="$CC" # Let the user override the test.
2307 else
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2310 do
2311   IFS=$as_save_IFS
2312   test -z "$as_dir" && as_dir=.
2313   for ac_exec_ext in '' $ac_executable_extensions; do
2314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2315     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317     break 2
2318   fi
2319 done
2320 done
2321 IFS=$as_save_IFS
2322
2323 fi
2324 fi
2325 CC=$ac_cv_prog_CC
2326 if test -n "$CC"; then
2327   { echo "$as_me:$LINENO: result: $CC" >&5
2328 echo "${ECHO_T}$CC" >&6; }
2329 else
2330   { echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6; }
2332 fi
2333
2334
2335     test -n "$CC" && break
2336   done
2337 fi
2338 if test -z "$CC"; then
2339   ac_ct_CC=$CC
2340   for ac_prog in cl.exe
2341 do
2342   # Extract the first word of "$ac_prog", so it can be a program name with args.
2343 set dummy $ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$ac_ct_CC"; then
2350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357   for ac_exec_ext in '' $ac_executable_extensions; do
2358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2359     ac_cv_prog_ac_ct_CC="$ac_prog"
2360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361     break 2
2362   fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2370 if test -n "$ac_ct_CC"; then
2371   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2372 echo "${ECHO_T}$ac_ct_CC" >&6; }
2373 else
2374   { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2376 fi
2377
2378
2379   test -n "$ac_ct_CC" && break
2380 done
2381
2382   if test "x$ac_ct_CC" = x; then
2383     CC=""
2384   else
2385     case $cross_compiling:$ac_tool_warned in
2386 yes:)
2387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2388 whose name does not start with the host triplet.  If you think this
2389 configuration is useful to you, please write to autoconf@gnu.org." >&5
2390 echo "$as_me: 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." >&2;}
2393 ac_tool_warned=yes ;;
2394 esac
2395     CC=$ac_ct_CC
2396   fi
2397 fi
2398
2399 fi
2400
2401
2402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: no acceptable C compiler found in \$PATH
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407
2408 # Provide some information about the compiler.
2409 echo "$as_me:$LINENO: checking for C compiler version" >&5
2410 ac_compiler=`set X $ac_compile; echo $2`
2411 { (ac_try="$ac_compiler --version >&5"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417   (eval "$ac_compiler --version >&5") 2>&5
2418   ac_status=$?
2419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }
2421 { (ac_try="$ac_compiler -v >&5"
2422 case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_compiler -v >&5") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }
2431 { (ac_try="$ac_compiler -V >&5"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2437   (eval "$ac_compiler -V >&5") 2>&5
2438   ac_status=$?
2439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440   (exit $ac_status); }
2441
2442 cat >conftest.$ac_ext <<_ACEOF
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448
2449 int
2450 main ()
2451 {
2452
2453   ;
2454   return 0;
2455 }
2456 _ACEOF
2457 ac_clean_files_save=$ac_clean_files
2458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2459 # Try to create an executable without -o first, disregard a.out.
2460 # It will help us diagnose broken compilers, and finding out an intuition
2461 # of exeext.
2462 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2465 #
2466 # List of possible output files, starting from the most likely.
2467 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2468 # only as a last resort.  b.out is created by i960 compilers.
2469 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2470 #
2471 # The IRIX 6 linker writes into existing files which may not be
2472 # executable, retaining their permissions.  Remove them first so a
2473 # subsequent execution test works.
2474 ac_rmfiles=
2475 for ac_file in $ac_files
2476 do
2477   case $ac_file in
2478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2479     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2480   esac
2481 done
2482 rm -f $ac_rmfiles
2483
2484 if { (ac_try="$ac_link_default"
2485 case "(($ac_try" in
2486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487   *) ac_try_echo=$ac_try;;
2488 esac
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490   (eval "$ac_link_default") 2>&5
2491   ac_status=$?
2492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493   (exit $ac_status); }; then
2494   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2496 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2497 # so that the user can short-circuit this test for compilers unknown to
2498 # Autoconf.
2499 for ac_file in $ac_files
2500 do
2501   test -f "$ac_file" || continue
2502   case $ac_file in
2503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2504         ;;
2505     [ab].out )
2506         # We found the default executable, but exeext='' is most
2507         # certainly right.
2508         break;;
2509     *.* )
2510         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2511         then :; else
2512            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2513         fi
2514         # We set ac_cv_exeext here because the later test for it is not
2515         # safe: cross compilers may not add the suffix if given an `-o'
2516         # argument, so we may need to know it at that point already.
2517         # Even if this section looks crufty: it has the advantage of
2518         # actually working.
2519         break;;
2520     * )
2521         break;;
2522   esac
2523 done
2524 test "$ac_cv_exeext" = no && ac_cv_exeext=
2525
2526 else
2527   echo "$as_me: failed program was:" >&5
2528 sed 's/^/| /' conftest.$ac_ext >&5
2529
2530 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: C compiler cannot create executables
2533 See \`config.log' for more details." >&2;}
2534    { (exit 77); exit 77; }; }
2535 fi
2536
2537 ac_exeext=$ac_cv_exeext
2538 { echo "$as_me:$LINENO: result: $ac_file" >&5
2539 echo "${ECHO_T}$ac_file" >&6; }
2540
2541 # Check that the compiler produces executables we can run.  If not, either
2542 # the compiler is broken, or we cross compile.
2543 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2544 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2545 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2546 # If not cross compiling, check that we can run a simple program.
2547 if test "$cross_compiling" != yes; then
2548   if { ac_try='./$ac_file'
2549   { (case "(($ac_try" in
2550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2551   *) ac_try_echo=$ac_try;;
2552 esac
2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2554   (eval "$ac_try") 2>&5
2555   ac_status=$?
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558     cross_compiling=no
2559   else
2560     if test "$cross_compiling" = maybe; then
2561         cross_compiling=yes
2562     else
2563         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&5
2566 echo "$as_me: error: cannot run C compiled programs.
2567 If you meant to cross compile, use \`--host'.
2568 See \`config.log' for more details." >&2;}
2569    { (exit 1); exit 1; }; }
2570     fi
2571   fi
2572 fi
2573 { echo "$as_me:$LINENO: result: yes" >&5
2574 echo "${ECHO_T}yes" >&6; }
2575
2576 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2577 ac_clean_files=$ac_clean_files_save
2578 # Check that the compiler produces executables we can run.  If not, either
2579 # the compiler is broken, or we cross compile.
2580 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2581 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2582 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2583 echo "${ECHO_T}$cross_compiling" >&6; }
2584
2585 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2586 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2587 if { (ac_try="$ac_link"
2588 case "(($ac_try" in
2589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590   *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593   (eval "$ac_link") 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; then
2597   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2598 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2599 # work properly (i.e., refer to `conftest.exe'), while it won't with
2600 # `rm'.
2601 for ac_file in conftest.exe conftest conftest.*; do
2602   test -f "$ac_file" || continue
2603   case $ac_file in
2604     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2605     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2606           break;;
2607     * ) break;;
2608   esac
2609 done
2610 else
2611   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616 fi
2617
2618 rm -f conftest$ac_cv_exeext
2619 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2621
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2624 ac_exeext=$EXEEXT
2625 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2627 if test "${ac_cv_objext+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636
2637 int
2638 main ()
2639 {
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.o conftest.obj
2646 if { (ac_try="$ac_compile"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_compile") 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   for ac_file in conftest.o conftest.obj conftest.*; do
2657   test -f "$ac_file" || continue;
2658   case $ac_file in
2659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2660     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2661        break;;
2662   esac
2663 done
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&2;}
2672    { (exit 1); exit 1; }; }
2673 fi
2674
2675 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2676 fi
2677 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2678 echo "${ECHO_T}$ac_cv_objext" >&6; }
2679 OBJEXT=$ac_cv_objext
2680 ac_objext=$OBJEXT
2681 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2682 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2683 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2684   echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686   cat >conftest.$ac_ext <<_ACEOF
2687 /* confdefs.h.  */
2688 _ACEOF
2689 cat confdefs.h >>conftest.$ac_ext
2690 cat >>conftest.$ac_ext <<_ACEOF
2691 /* end confdefs.h.  */
2692
2693 int
2694 main ()
2695 {
2696 #ifndef __GNUC__
2697        choke me
2698 #endif
2699
2700   ;
2701   return 0;
2702 }
2703 _ACEOF
2704 rm -f conftest.$ac_objext
2705 if { (ac_try="$ac_compile"
2706 case "(($ac_try" in
2707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2708   *) ac_try_echo=$ac_try;;
2709 esac
2710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2711   (eval "$ac_compile") 2>conftest.er1
2712   ac_status=$?
2713   grep -v '^ *+' conftest.er1 >conftest.err
2714   rm -f conftest.er1
2715   cat conftest.err >&5
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); } &&
2718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2719   { (case "(($ac_try" in
2720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2721   *) ac_try_echo=$ac_try;;
2722 esac
2723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2724   (eval "$ac_try") 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (case "(($ac_try" in
2730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731   *) ac_try_echo=$ac_try;;
2732 esac
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734   (eval "$ac_try") 2>&5
2735   ac_status=$?
2736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737   (exit $ac_status); }; }; then
2738   ac_compiler_gnu=yes
2739 else
2740   echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2742
2743         ac_compiler_gnu=no
2744 fi
2745
2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2748
2749 fi
2750 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2751 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2752 GCC=`test $ac_compiler_gnu = yes && echo yes`
2753 ac_test_CFLAGS=${CFLAGS+set}
2754 ac_save_CFLAGS=$CFLAGS
2755 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2756 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_cc_g+set}" = set; then
2758   echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760   ac_save_c_werror_flag=$ac_c_werror_flag
2761    ac_c_werror_flag=yes
2762    ac_cv_prog_cc_g=no
2763    CFLAGS="-g"
2764    cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786   (eval "$ac_compile") 2>conftest.er1
2787   ac_status=$?
2788   grep -v '^ *+' conftest.er1 >conftest.err
2789   rm -f conftest.er1
2790   cat conftest.err >&5
2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792   (exit $ac_status); } &&
2793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2794   { (case "(($ac_try" in
2795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2796   *) ac_try_echo=$ac_try;;
2797 esac
2798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2799   (eval "$ac_try") 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (case "(($ac_try" in
2805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806   *) ac_try_echo=$ac_try;;
2807 esac
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809   (eval "$ac_try") 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; }; then
2813   ac_cv_prog_cc_g=yes
2814 else
2815   echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2817
2818         CFLAGS=""
2819       cat >conftest.$ac_ext <<_ACEOF
2820 /* confdefs.h.  */
2821 _ACEOF
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h.  */
2825
2826 int
2827 main ()
2828 {
2829
2830   ;
2831   return 0;
2832 }
2833 _ACEOF
2834 rm -f conftest.$ac_objext
2835 if { (ac_try="$ac_compile"
2836 case "(($ac_try" in
2837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838   *) ac_try_echo=$ac_try;;
2839 esac
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841   (eval "$ac_compile") 2>conftest.er1
2842   ac_status=$?
2843   grep -v '^ *+' conftest.er1 >conftest.err
2844   rm -f conftest.er1
2845   cat conftest.err >&5
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); } &&
2848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2849   { (case "(($ac_try" in
2850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2851   *) ac_try_echo=$ac_try;;
2852 esac
2853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2854   (eval "$ac_try") 2>&5
2855   ac_status=$?
2856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857   (exit $ac_status); }; } &&
2858          { ac_try='test -s conftest.$ac_objext'
2859   { (case "(($ac_try" in
2860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2861   *) ac_try_echo=$ac_try;;
2862 esac
2863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2864   (eval "$ac_try") 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; }; then
2868   :
2869 else
2870   echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2872
2873         ac_c_werror_flag=$ac_save_c_werror_flag
2874          CFLAGS="-g"
2875          cat >conftest.$ac_ext <<_ACEOF
2876 /* confdefs.h.  */
2877 _ACEOF
2878 cat confdefs.h >>conftest.$ac_ext
2879 cat >>conftest.$ac_ext <<_ACEOF
2880 /* end confdefs.h.  */
2881
2882 int
2883 main ()
2884 {
2885
2886   ;
2887   return 0;
2888 }
2889 _ACEOF
2890 rm -f conftest.$ac_objext
2891 if { (ac_try="$ac_compile"
2892 case "(($ac_try" in
2893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2894   *) ac_try_echo=$ac_try;;
2895 esac
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897   (eval "$ac_compile") 2>conftest.er1
2898   ac_status=$?
2899   grep -v '^ *+' conftest.er1 >conftest.err
2900   rm -f conftest.er1
2901   cat conftest.err >&5
2902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903   (exit $ac_status); } &&
2904          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2905   { (case "(($ac_try" in
2906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907   *) ac_try_echo=$ac_try;;
2908 esac
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910   (eval "$ac_try") 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (case "(($ac_try" in
2916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917   *) ac_try_echo=$ac_try;;
2918 esac
2919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2920   (eval "$ac_try") 2>&5
2921   ac_status=$?
2922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923   (exit $ac_status); }; }; then
2924   ac_cv_prog_cc_g=yes
2925 else
2926   echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929
2930 fi
2931
2932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
2940 fi
2941 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2942 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2943 if test "$ac_test_CFLAGS" = set; then
2944   CFLAGS=$ac_save_CFLAGS
2945 elif test $ac_cv_prog_cc_g = yes; then
2946   if test "$GCC" = yes; then
2947     CFLAGS="-g -O2"
2948   else
2949     CFLAGS="-g"
2950   fi
2951 else
2952   if test "$GCC" = yes; then
2953     CFLAGS="-O2"
2954   else
2955     CFLAGS=
2956   fi
2957 fi
2958 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2959 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2960 if test "${ac_cv_prog_cc_c89+set}" = set; then
2961   echo $ECHO_N "(cached) $ECHO_C" >&6
2962 else
2963   ac_cv_prog_cc_c89=no
2964 ac_save_CC=$CC
2965 cat >conftest.$ac_ext <<_ACEOF
2966 /* confdefs.h.  */
2967 _ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h.  */
2971 #include <stdarg.h>
2972 #include <stdio.h>
2973 #include <sys/types.h>
2974 #include <sys/stat.h>
2975 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2976 struct buf { int x; };
2977 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2978 static char *e (p, i)
2979      char **p;
2980      int i;
2981 {
2982   return p[i];
2983 }
2984 static char *f (char * (*g) (char **, int), char **p, ...)
2985 {
2986   char *s;
2987   va_list v;
2988   va_start (v,p);
2989   s = g (p, va_arg (v,int));
2990   va_end (v);
2991   return s;
2992 }
2993
2994 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2995    function prototypes and stuff, but not '\xHH' hex character constants.
2996    These don't provoke an error unfortunately, instead are silently treated
2997    as 'x'.  The following induces an error, until -std is added to get
2998    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2999    array size at least.  It's necessary to write '\x00'==0 to get something
3000    that's true only with -std.  */
3001 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3002
3003 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3004    inside strings and character constants.  */
3005 #define FOO(x) 'x'
3006 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3007
3008 int test (int i, double x);
3009 struct s1 {int (*f) (int a);};
3010 struct s2 {int (*f) (double a);};
3011 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3012 int argc;
3013 char **argv;
3014 int
3015 main ()
3016 {
3017 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3018   ;
3019   return 0;
3020 }
3021 _ACEOF
3022 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3023         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3024 do
3025   CC="$ac_save_CC $ac_arg"
3026   rm -f conftest.$ac_objext
3027 if { (ac_try="$ac_compile"
3028 case "(($ac_try" in
3029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030   *) ac_try_echo=$ac_try;;
3031 esac
3032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3033   (eval "$ac_compile") 2>conftest.er1
3034   ac_status=$?
3035   grep -v '^ *+' conftest.er1 >conftest.err
3036   rm -f conftest.er1
3037   cat conftest.err >&5
3038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039   (exit $ac_status); } &&
3040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3041   { (case "(($ac_try" in
3042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043   *) ac_try_echo=$ac_try;;
3044 esac
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046   (eval "$ac_try") 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; } &&
3050          { ac_try='test -s conftest.$ac_objext'
3051   { (case "(($ac_try" in
3052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053   *) ac_try_echo=$ac_try;;
3054 esac
3055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3056   (eval "$ac_try") 2>&5
3057   ac_status=$?
3058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059   (exit $ac_status); }; }; then
3060   ac_cv_prog_cc_c89=$ac_arg
3061 else
3062   echo "$as_me: failed program was:" >&5
3063 sed 's/^/| /' conftest.$ac_ext >&5
3064
3065
3066 fi
3067
3068 rm -f core conftest.err conftest.$ac_objext
3069   test "x$ac_cv_prog_cc_c89" != "xno" && break
3070 done
3071 rm -f conftest.$ac_ext
3072 CC=$ac_save_CC
3073
3074 fi
3075 # AC_CACHE_VAL
3076 case "x$ac_cv_prog_cc_c89" in
3077   x)
3078     { echo "$as_me:$LINENO: result: none needed" >&5
3079 echo "${ECHO_T}none needed" >&6; } ;;
3080   xno)
3081     { echo "$as_me:$LINENO: result: unsupported" >&5
3082 echo "${ECHO_T}unsupported" >&6; } ;;
3083   *)
3084     CC="$CC $ac_cv_prog_cc_c89"
3085     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3086 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3087 esac
3088
3089
3090 ac_ext=c
3091 ac_cpp='$CPP $CPPFLAGS'
3092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3095
3096 ac_ext=cpp
3097 ac_cpp='$CXXCPP $CPPFLAGS'
3098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3101 if test -z "$CXX"; then
3102   if test -n "$CCC"; then
3103     CXX=$CCC
3104   else
3105     if test -n "$ac_tool_prefix"; then
3106   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3107   do
3108     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3109 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3112 if test "${ac_cv_prog_CXX+set}" = set; then
3113   echo $ECHO_N "(cached) $ECHO_C" >&6
3114 else
3115   if test -n "$CXX"; then
3116   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3117 else
3118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3119 for as_dir in $PATH
3120 do
3121   IFS=$as_save_IFS
3122   test -z "$as_dir" && as_dir=.
3123   for ac_exec_ext in '' $ac_executable_extensions; do
3124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3125     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3127     break 2
3128   fi
3129 done
3130 done
3131 IFS=$as_save_IFS
3132
3133 fi
3134 fi
3135 CXX=$ac_cv_prog_CXX
3136 if test -n "$CXX"; then
3137   { echo "$as_me:$LINENO: result: $CXX" >&5
3138 echo "${ECHO_T}$CXX" >&6; }
3139 else
3140   { echo "$as_me:$LINENO: result: no" >&5
3141 echo "${ECHO_T}no" >&6; }
3142 fi
3143
3144
3145     test -n "$CXX" && break
3146   done
3147 fi
3148 if test -z "$CXX"; then
3149   ac_ct_CXX=$CXX
3150   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3151 do
3152   # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3156 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3157   echo $ECHO_N "(cached) $ECHO_C" >&6
3158 else
3159   if test -n "$ac_ct_CXX"; then
3160   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3161 else
3162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 for as_dir in $PATH
3164 do
3165   IFS=$as_save_IFS
3166   test -z "$as_dir" && as_dir=.
3167   for ac_exec_ext in '' $ac_executable_extensions; do
3168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3169     ac_cv_prog_ac_ct_CXX="$ac_prog"
3170     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3171     break 2
3172   fi
3173 done
3174 done
3175 IFS=$as_save_IFS
3176
3177 fi
3178 fi
3179 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3180 if test -n "$ac_ct_CXX"; then
3181   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3182 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3183 else
3184   { echo "$as_me:$LINENO: result: no" >&5
3185 echo "${ECHO_T}no" >&6; }
3186 fi
3187
3188
3189   test -n "$ac_ct_CXX" && break
3190 done
3191
3192   if test "x$ac_ct_CXX" = x; then
3193     CXX="g++"
3194   else
3195     case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3198 whose name does not start with the host triplet.  If you think this
3199 configuration is useful to you, please write to autoconf@gnu.org." >&5
3200 echo "$as_me: 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." >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205     CXX=$ac_ct_CXX
3206   fi
3207 fi
3208
3209   fi
3210 fi
3211 # Provide some information about the compiler.
3212 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3213 ac_compiler=`set X $ac_compile; echo $2`
3214 { (ac_try="$ac_compiler --version >&5"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3220   (eval "$ac_compiler --version >&5") 2>&5
3221   ac_status=$?
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); }
3224 { (ac_try="$ac_compiler -v >&5"
3225 case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_compiler -v >&5") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }
3234 { (ac_try="$ac_compiler -V >&5"
3235 case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_compiler -V >&5") 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }
3244
3245 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3246 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3247 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3248   echo $ECHO_N "(cached) $ECHO_C" >&6
3249 else
3250   cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h.  */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h.  */
3256
3257 int
3258 main ()
3259 {
3260 #ifndef __GNUC__
3261        choke me
3262 #endif
3263
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext
3269 if { (ac_try="$ac_compile"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_compile") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } &&
3282          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3283   { (case "(($ac_try" in
3284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285   *) ac_try_echo=$ac_try;;
3286 esac
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288   (eval "$ac_try") 2>&5
3289   ac_status=$?
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); }; } &&
3292          { ac_try='test -s conftest.$ac_objext'
3293   { (case "(($ac_try" in
3294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295   *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298   (eval "$ac_try") 2>&5
3299   ac_status=$?
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); }; }; then
3302   ac_compiler_gnu=yes
3303 else
3304   echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307         ac_compiler_gnu=no
3308 fi
3309
3310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3312
3313 fi
3314 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3315 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3316 GXX=`test $ac_compiler_gnu = yes && echo yes`
3317 ac_test_CXXFLAGS=${CXXFLAGS+set}
3318 ac_save_CXXFLAGS=$CXXFLAGS
3319 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3320 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3321 if test "${ac_cv_prog_cxx_g+set}" = set; then
3322   echo $ECHO_N "(cached) $ECHO_C" >&6
3323 else
3324   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3325    ac_cxx_werror_flag=yes
3326    ac_cv_prog_cxx_g=no
3327    CXXFLAGS="-g"
3328    cat >conftest.$ac_ext <<_ACEOF
3329 /* confdefs.h.  */
3330 _ACEOF
3331 cat confdefs.h >>conftest.$ac_ext
3332 cat >>conftest.$ac_ext <<_ACEOF
3333 /* end confdefs.h.  */
3334
3335 int
3336 main ()
3337 {
3338
3339   ;
3340   return 0;
3341 }
3342 _ACEOF
3343 rm -f conftest.$ac_objext
3344 if { (ac_try="$ac_compile"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_compile") 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3358   { (case "(($ac_try" in
3359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360   *) ac_try_echo=$ac_try;;
3361 esac
3362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3363   (eval "$ac_try") 2>&5
3364   ac_status=$?
3365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366   (exit $ac_status); }; } &&
3367          { ac_try='test -s conftest.$ac_objext'
3368   { (case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_try") 2>&5
3374   ac_status=$?
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); }; }; then
3377   ac_cv_prog_cxx_g=yes
3378 else
3379   echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382         CXXFLAGS=""
3383       cat >conftest.$ac_ext <<_ACEOF
3384 /* confdefs.h.  */
3385 _ACEOF
3386 cat confdefs.h >>conftest.$ac_ext
3387 cat >>conftest.$ac_ext <<_ACEOF
3388 /* end confdefs.h.  */
3389
3390 int
3391 main ()
3392 {
3393
3394   ;
3395   return 0;
3396 }
3397 _ACEOF
3398 rm -f conftest.$ac_objext
3399 if { (ac_try="$ac_compile"
3400 case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405   (eval "$ac_compile") 2>conftest.er1
3406   ac_status=$?
3407   grep -v '^ *+' conftest.er1 >conftest.err
3408   rm -f conftest.er1
3409   cat conftest.err >&5
3410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411   (exit $ac_status); } &&
3412          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3413   { (case "(($ac_try" in
3414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415   *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418   (eval "$ac_try") 2>&5
3419   ac_status=$?
3420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421   (exit $ac_status); }; } &&
3422          { ac_try='test -s conftest.$ac_objext'
3423   { (case "(($ac_try" in
3424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425   *) ac_try_echo=$ac_try;;
3426 esac
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428   (eval "$ac_try") 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   :
3433 else
3434   echo "$as_me: failed program was:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3436
3437         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3438          CXXFLAGS="-g"
3439          cat >conftest.$ac_ext <<_ACEOF
3440 /* confdefs.h.  */
3441 _ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h.  */
3445
3446 int
3447 main ()
3448 {
3449
3450   ;
3451   return 0;
3452 }
3453 _ACEOF
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3461   (eval "$ac_compile") 2>conftest.er1
3462   ac_status=$?
3463   grep -v '^ *+' conftest.er1 >conftest.err
3464   rm -f conftest.er1
3465   cat conftest.err >&5
3466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3467   (exit $ac_status); } &&
3468          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3469   { (case "(($ac_try" in
3470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471   *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474   (eval "$ac_try") 2>&5
3475   ac_status=$?
3476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477   (exit $ac_status); }; } &&
3478          { ac_try='test -s conftest.$ac_objext'
3479   { (case "(($ac_try" in
3480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481   *) ac_try_echo=$ac_try;;
3482 esac
3483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3484   (eval "$ac_try") 2>&5
3485   ac_status=$?
3486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487   (exit $ac_status); }; }; then
3488   ac_cv_prog_cxx_g=yes
3489 else
3490   echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3492
3493
3494 fi
3495
3496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3504 fi
3505 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3506 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3507 if test "$ac_test_CXXFLAGS" = set; then
3508   CXXFLAGS=$ac_save_CXXFLAGS
3509 elif test $ac_cv_prog_cxx_g = yes; then
3510   if test "$GXX" = yes; then
3511     CXXFLAGS="-g -O2"
3512   else
3513     CXXFLAGS="-g"
3514   fi
3515 else
3516   if test "$GXX" = yes; then
3517     CXXFLAGS="-O2"
3518   else
3519     CXXFLAGS=
3520   fi
3521 fi
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527
3528 if test "x$CC" != xcc; then
3529   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3530 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3531 else
3532   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3533 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3534 fi
3535 set dummy $CC; ac_cc=`echo $2 |
3536                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3537 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3538   echo $ECHO_N "(cached) $ECHO_C" >&6
3539 else
3540   cat >conftest.$ac_ext <<_ACEOF
3541 /* confdefs.h.  */
3542 _ACEOF
3543 cat confdefs.h >>conftest.$ac_ext
3544 cat >>conftest.$ac_ext <<_ACEOF
3545 /* end confdefs.h.  */
3546
3547 int
3548 main ()
3549 {
3550
3551   ;
3552   return 0;
3553 }
3554 _ACEOF
3555 # Make sure it works both with $CC and with simple cc.
3556 # We do the test twice because some compilers refuse to overwrite an
3557 # existing .o file with -o, though they will create one.
3558 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3559 rm -f conftest2.*
3560 if { (case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565   (eval "$ac_try") 2>&5
3566   ac_status=$?
3567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568   (exit $ac_status); } &&
3569    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571   *) ac_try_echo=$ac_try;;
3572 esac
3573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574   (eval "$ac_try") 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); };
3578 then
3579   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3580   if test "x$CC" != xcc; then
3581     # Test first that cc exists at all.
3582     if { ac_try='cc -c conftest.$ac_ext >&5'
3583   { (case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588   (eval "$ac_try") 2>&5
3589   ac_status=$?
3590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591   (exit $ac_status); }; }; then
3592       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3593       rm -f conftest2.*
3594       if { (case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_try") 2>&5
3600   ac_status=$?
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } &&
3603          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605   *) ac_try_echo=$ac_try;;
3606 esac
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608   (eval "$ac_try") 2>&5
3609   ac_status=$?
3610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); };
3612       then
3613         # cc works too.
3614         :
3615       else
3616         # cc exists but doesn't like -o.
3617         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3618       fi
3619     fi
3620   fi
3621 else
3622   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3623 fi
3624 rm -f core conftest*
3625
3626 fi
3627 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3628   { echo "$as_me:$LINENO: result: yes" >&5
3629 echo "${ECHO_T}yes" >&6; }
3630 else
3631   { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3633
3634 cat >>confdefs.h <<\_ACEOF
3635 #define NO_MINUS_C_MINUS_O 1
3636 _ACEOF
3637
3638 fi
3639
3640 ac_ext=c
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3649   CPP=
3650 fi
3651 if test -z "$CPP"; then
3652   if test "${ac_cv_prog_CPP+set}" = set; then
3653   echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655       # Double quotes because CPP needs to be expanded
3656     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3657     do
3658       ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3660 do
3661   # Use a header file that comes with gcc, so configuring glibc
3662   # with a fresh cross-compiler works.
3663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664   # <limits.h> exists even on freestanding compilers.
3665   # On the NeXT, cc -E runs the code through the compiler's parser,
3666   # not just through cpp. "Syntax error" is here to catch this case.
3667   cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h.  */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h.  */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678                      Syntax error
3679 _ACEOF
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } >/dev/null; then
3693   if test -s conftest.err; then
3694     ac_cpp_err=$ac_c_preproc_warn_flag
3695     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3696   else
3697     ac_cpp_err=
3698   fi
3699 else
3700   ac_cpp_err=yes
3701 fi
3702 if test -z "$ac_cpp_err"; then
3703   :
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708   # Broken: fails on valid input.
3709 continue
3710 fi
3711
3712 rm -f conftest.err conftest.$ac_ext
3713
3714   # OK, works on sane cases.  Now check whether nonexistent headers
3715   # can be detected and how.
3716   cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731   ac_status=$?
3732   grep -v '^ *+' conftest.er1 >conftest.err
3733   rm -f conftest.er1
3734   cat conftest.err >&5
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } >/dev/null; then
3737   if test -s conftest.err; then
3738     ac_cpp_err=$ac_c_preproc_warn_flag
3739     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3740   else
3741     ac_cpp_err=
3742   fi
3743 else
3744   ac_cpp_err=yes
3745 fi
3746 if test -z "$ac_cpp_err"; then
3747   # Broken: success on invalid input.
3748 continue
3749 else
3750   echo "$as_me: failed program was:" >&5
3751 sed 's/^/| /' conftest.$ac_ext >&5
3752
3753   # Passes both tests.
3754 ac_preproc_ok=:
3755 break
3756 fi
3757
3758 rm -f conftest.err conftest.$ac_ext
3759
3760 done
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then
3764   break
3765 fi
3766
3767     done
3768     ac_cv_prog_CPP=$CPP
3769
3770 fi
3771   CPP=$ac_cv_prog_CPP
3772 else
3773   ac_cv_prog_CPP=$CPP
3774 fi
3775 { echo "$as_me:$LINENO: result: $CPP" >&5
3776 echo "${ECHO_T}$CPP" >&6; }
3777 ac_preproc_ok=false
3778 for ac_c_preproc_warn_flag in '' yes
3779 do
3780   # Use a header file that comes with gcc, so configuring glibc
3781   # with a fresh cross-compiler works.
3782   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783   # <limits.h> exists even on freestanding compilers.
3784   # On the NeXT, cc -E runs the code through the compiler's parser,
3785   # not just through cpp. "Syntax error" is here to catch this case.
3786   cat >conftest.$ac_ext <<_ACEOF
3787 /* confdefs.h.  */
3788 _ACEOF
3789 cat confdefs.h >>conftest.$ac_ext
3790 cat >>conftest.$ac_ext <<_ACEOF
3791 /* end confdefs.h.  */
3792 #ifdef __STDC__
3793 # include <limits.h>
3794 #else
3795 # include <assert.h>
3796 #endif
3797                      Syntax error
3798 _ACEOF
3799 if { (ac_try="$ac_cpp conftest.$ac_ext"
3800 case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3806   ac_status=$?
3807   grep -v '^ *+' conftest.er1 >conftest.err
3808   rm -f conftest.er1
3809   cat conftest.err >&5
3810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811   (exit $ac_status); } >/dev/null; then
3812   if test -s conftest.err; then
3813     ac_cpp_err=$ac_c_preproc_warn_flag
3814     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3815   else
3816     ac_cpp_err=
3817   fi
3818 else
3819   ac_cpp_err=yes
3820 fi
3821 if test -z "$ac_cpp_err"; then
3822   :
3823 else
3824   echo "$as_me: failed program was:" >&5
3825 sed 's/^/| /' conftest.$ac_ext >&5
3826
3827   # Broken: fails on valid input.
3828 continue
3829 fi
3830
3831 rm -f conftest.err conftest.$ac_ext
3832
3833   # OK, works on sane cases.  Now check whether nonexistent headers
3834   # can be detected and how.
3835   cat >conftest.$ac_ext <<_ACEOF
3836 /* confdefs.h.  */
3837 _ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h.  */
3841 #include <ac_nonexistent.h>
3842 _ACEOF
3843 if { (ac_try="$ac_cpp conftest.$ac_ext"
3844 case "(($ac_try" in
3845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3846   *) ac_try_echo=$ac_try;;
3847 esac
3848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3849   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3850   ac_status=$?
3851   grep -v '^ *+' conftest.er1 >conftest.err
3852   rm -f conftest.er1
3853   cat conftest.err >&5
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); } >/dev/null; then
3856   if test -s conftest.err; then
3857     ac_cpp_err=$ac_c_preproc_warn_flag
3858     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3859   else
3860     ac_cpp_err=
3861   fi
3862 else
3863   ac_cpp_err=yes
3864 fi
3865 if test -z "$ac_cpp_err"; then
3866   # Broken: success on invalid input.
3867 continue
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872   # Passes both tests.
3873 ac_preproc_ok=:
3874 break
3875 fi
3876
3877 rm -f conftest.err conftest.$ac_ext
3878
3879 done
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.err conftest.$ac_ext
3882 if $ac_preproc_ok; then
3883   :
3884 else
3885   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3886 See \`config.log' for more details." >&5
3887 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3888 See \`config.log' for more details." >&2;}
3889    { (exit 1); exit 1; }; }
3890 fi
3891
3892 ac_ext=c
3893 ac_cpp='$CPP $CPPFLAGS'
3894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898
3899 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3900 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3901 if test "${ac_cv_path_GREP+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   # Extract the first word of "grep ggrep" to use in msg output
3905 if test -z "$GREP"; then
3906 set dummy grep ggrep; ac_prog_name=$2
3907 if test "${ac_cv_path_GREP+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   ac_path_GREP_found=false
3911 # Loop through the user's path and test for each of PROGNAME-LIST
3912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3914 do
3915   IFS=$as_save_IFS
3916   test -z "$as_dir" && as_dir=.
3917   for ac_prog in grep ggrep; do
3918   for ac_exec_ext in '' $ac_executable_extensions; do
3919     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3920     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3921     # Check for GNU ac_path_GREP and select it if it is found.
3922   # Check for GNU $ac_path_GREP
3923 case `"$ac_path_GREP" --version 2>&1` in
3924 *GNU*)
3925   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3926 *)
3927   ac_count=0
3928   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3929   while :
3930   do
3931     cat "conftest.in" "conftest.in" >"conftest.tmp"
3932     mv "conftest.tmp" "conftest.in"
3933     cp "conftest.in" "conftest.nl"
3934     echo 'GREP' >> "conftest.nl"
3935     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3936     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3937     ac_count=`expr $ac_count + 1`
3938     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3939       # Best one so far, save it but keep looking for a better one
3940       ac_cv_path_GREP="$ac_path_GREP"
3941       ac_path_GREP_max=$ac_count
3942     fi
3943     # 10*(2^10) chars as input seems more than enough
3944     test $ac_count -gt 10 && break
3945   done
3946   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3947 esac
3948
3949
3950     $ac_path_GREP_found && break 3
3951   done
3952 done
3953
3954 done
3955 IFS=$as_save_IFS
3956
3957
3958 fi
3959
3960 GREP="$ac_cv_path_GREP"
3961 if test -z "$GREP"; then
3962   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3963 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3964    { (exit 1); exit 1; }; }
3965 fi
3966
3967 else
3968   ac_cv_path_GREP=$GREP
3969 fi
3970
3971
3972 fi
3973 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3974 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3975  GREP="$ac_cv_path_GREP"
3976
3977
3978 { echo "$as_me:$LINENO: checking for egrep" >&5
3979 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3980 if test "${ac_cv_path_EGREP+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3984    then ac_cv_path_EGREP="$GREP -E"
3985    else
3986      # Extract the first word of "egrep" to use in msg output
3987 if test -z "$EGREP"; then
3988 set dummy egrep; ac_prog_name=$2
3989 if test "${ac_cv_path_EGREP+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   ac_path_EGREP_found=false
3993 # Loop through the user's path and test for each of PROGNAME-LIST
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3996 do
3997   IFS=$as_save_IFS
3998   test -z "$as_dir" && as_dir=.
3999   for ac_prog in egrep; do
4000   for ac_exec_ext in '' $ac_executable_extensions; do
4001     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4002     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4003     # Check for GNU ac_path_EGREP and select it if it is found.
4004   # Check for GNU $ac_path_EGREP
4005 case `"$ac_path_EGREP" --version 2>&1` in
4006 *GNU*)
4007   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4008 *)
4009   ac_count=0
4010   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4011   while :
4012   do
4013     cat "conftest.in" "conftest.in" >"conftest.tmp"
4014     mv "conftest.tmp" "conftest.in"
4015     cp "conftest.in" "conftest.nl"
4016     echo 'EGREP' >> "conftest.nl"
4017     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4019     ac_count=`expr $ac_count + 1`
4020     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4021       # Best one so far, save it but keep looking for a better one
4022       ac_cv_path_EGREP="$ac_path_EGREP"
4023       ac_path_EGREP_max=$ac_count
4024     fi
4025     # 10*(2^10) chars as input seems more than enough
4026     test $ac_count -gt 10 && break
4027   done
4028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4029 esac
4030
4031
4032     $ac_path_EGREP_found && break 3
4033   done
4034 done
4035
4036 done
4037 IFS=$as_save_IFS
4038
4039
4040 fi
4041
4042 EGREP="$ac_cv_path_EGREP"
4043 if test -z "$EGREP"; then
4044   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4045 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4046    { (exit 1); exit 1; }; }
4047 fi
4048
4049 else
4050   ac_cv_path_EGREP=$EGREP
4051 fi
4052
4053
4054    fi
4055 fi
4056 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4057 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4058  EGREP="$ac_cv_path_EGREP"
4059
4060
4061 if test $ac_cv_c_compiler_gnu = yes; then
4062     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4063 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4064 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4065   echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067     ac_pattern="Autoconf.*'x'"
4068   cat >conftest.$ac_ext <<_ACEOF
4069 /* confdefs.h.  */
4070 _ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h.  */
4074 #include <sgtty.h>
4075 Autoconf TIOCGETP
4076 _ACEOF
4077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4078   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4079   ac_cv_prog_gcc_traditional=yes
4080 else
4081   ac_cv_prog_gcc_traditional=no
4082 fi
4083 rm -f conftest*
4084
4085
4086   if test $ac_cv_prog_gcc_traditional = no; then
4087     cat >conftest.$ac_ext <<_ACEOF
4088 /* confdefs.h.  */
4089 _ACEOF
4090 cat confdefs.h >>conftest.$ac_ext
4091 cat >>conftest.$ac_ext <<_ACEOF
4092 /* end confdefs.h.  */
4093 #include <termio.h>
4094 Autoconf TCGETA
4095 _ACEOF
4096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4097   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4098   ac_cv_prog_gcc_traditional=yes
4099 fi
4100 rm -f conftest*
4101
4102   fi
4103 fi
4104 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4105 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4106   if test $ac_cv_prog_gcc_traditional = yes; then
4107     CC="$CC -traditional"
4108   fi
4109 fi
4110
4111 BASECC=`basename $CC`
4112 have_gcc=no
4113 if test "x$BASECC" = xgcc; then
4114    cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_GCC 1
4116 _ACEOF
4117
4118    have_gcc=yes
4119 fi
4120 # Extract the first word of "$CXX", so it can be a program name with args.
4121 set dummy $CXX; ac_word=$2
4122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4124 if test "${ac_cv_path_CXX+set}" = set; then
4125   echo $ECHO_N "(cached) $ECHO_C" >&6
4126 else
4127   case $CXX in
4128   [\\/]* | ?:[\\/]*)
4129   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4130   ;;
4131   *)
4132   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4139     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4148   ;;
4149 esac
4150 fi
4151 CXX=$ac_cv_path_CXX
4152 if test -n "$CXX"; then
4153   { echo "$as_me:$LINENO: result: $CXX" >&5
4154 echo "${ECHO_T}$CXX" >&6; }
4155 else
4156   { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4158 fi
4159
4160
4161 if test ! -e $CXX; then
4162    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4163 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4164    { (exit 1); exit 1; }; }
4165 fi
4166
4167 # Find a good install program.  We prefer a C program (faster),
4168 # so one script is as good as another.  But avoid the broken or
4169 # incompatible versions:
4170 # SysV /etc/install, /usr/sbin/install
4171 # SunOS /usr/etc/install
4172 # IRIX /sbin/install
4173 # AIX /bin/install
4174 # AmigaOS /C/install, which installs bootblocks on floppy discs
4175 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4176 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4177 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4178 # OS/2's system install, which has a completely different semantic
4179 # ./install, which can be erroneously created by make from ./install.sh.
4180 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4181 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4182 if test -z "$INSTALL"; then
4183 if test "${ac_cv_path_install+set}" = set; then
4184   echo $ECHO_N "(cached) $ECHO_C" >&6
4185 else
4186   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189   IFS=$as_save_IFS
4190   test -z "$as_dir" && as_dir=.
4191   # Account for people who put trailing slashes in PATH elements.
4192 case $as_dir/ in
4193   ./ | .// | /cC/* | \
4194   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4195   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4196   /usr/ucb/* ) ;;
4197   *)
4198     # OSF1 and SCO ODT 3.0 have their own names for install.
4199     # Don't use installbsd from OSF since it installs stuff as root
4200     # by default.
4201     for ac_prog in ginstall scoinst install; do
4202       for ac_exec_ext in '' $ac_executable_extensions; do
4203         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4204           if test $ac_prog = install &&
4205             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4206             # AIX install.  It has an incompatible calling convention.
4207             :
4208           elif test $ac_prog = install &&
4209             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4210             # program-specific install script used by HP pwplus--don't use.
4211             :
4212           else
4213             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4214             break 3
4215           fi
4216         fi
4217       done
4218     done
4219     ;;
4220 esac
4221 done
4222 IFS=$as_save_IFS
4223
4224
4225 fi
4226   if test "${ac_cv_path_install+set}" = set; then
4227     INSTALL=$ac_cv_path_install
4228   else
4229     # As a last resort, use the slow shell script.  Don't cache a
4230     # value for INSTALL within a source directory, because that will
4231     # break other packages using the cache if that directory is
4232     # removed, or if the value is a relative name.
4233     INSTALL=$ac_install_sh
4234   fi
4235 fi
4236 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4237 echo "${ECHO_T}$INSTALL" >&6; }
4238
4239 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4240 # It thinks the first close brace ends the variable substitution.
4241 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4242
4243 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4244
4245 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4246
4247 if test -n "$ac_tool_prefix"; then
4248   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4249 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4252 if test "${ac_cv_prog_RANLIB+set}" = set; then
4253   echo $ECHO_N "(cached) $ECHO_C" >&6
4254 else
4255   if test -n "$RANLIB"; then
4256   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261   IFS=$as_save_IFS
4262   test -z "$as_dir" && as_dir=.
4263   for ac_exec_ext in '' $ac_executable_extensions; do
4264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4265     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267     break 2
4268   fi
4269 done
4270 done
4271 IFS=$as_save_IFS
4272
4273 fi
4274 fi
4275 RANLIB=$ac_cv_prog_RANLIB
4276 if test -n "$RANLIB"; then
4277   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4278 echo "${ECHO_T}$RANLIB" >&6; }
4279 else
4280   { echo "$as_me:$LINENO: result: no" >&5
4281 echo "${ECHO_T}no" >&6; }
4282 fi
4283
4284
4285 fi
4286 if test -z "$ac_cv_prog_RANLIB"; then
4287   ac_ct_RANLIB=$RANLIB
4288   # Extract the first word of "ranlib", so it can be a program name with args.
4289 set dummy ranlib; ac_word=$2
4290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4292 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4293   echo $ECHO_N "(cached) $ECHO_C" >&6
4294 else
4295   if test -n "$ac_ct_RANLIB"; then
4296   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4300 do
4301   IFS=$as_save_IFS
4302   test -z "$as_dir" && as_dir=.
4303   for ac_exec_ext in '' $ac_executable_extensions; do
4304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4305     ac_cv_prog_ac_ct_RANLIB="ranlib"
4306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307     break 2
4308   fi
4309 done
4310 done
4311 IFS=$as_save_IFS
4312
4313 fi
4314 fi
4315 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4316 if test -n "$ac_ct_RANLIB"; then
4317   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4318 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4319 else
4320   { echo "$as_me:$LINENO: result: no" >&5
4321 echo "${ECHO_T}no" >&6; }
4322 fi
4323
4324   if test "x$ac_ct_RANLIB" = x; then
4325     RANLIB=":"
4326   else
4327     case $cross_compiling:$ac_tool_warned in
4328 yes:)
4329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4330 whose name does not start with the host triplet.  If you think this
4331 configuration is useful to you, please write to autoconf@gnu.org." >&5
4332 echo "$as_me: 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." >&2;}
4335 ac_tool_warned=yes ;;
4336 esac
4337     RANLIB=$ac_ct_RANLIB
4338   fi
4339 else
4340   RANLIB="$ac_cv_prog_RANLIB"
4341 fi
4342
4343 # Extract the first word of "mv", so it can be a program name with args.
4344 set dummy mv; ac_word=$2
4345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4347 if test "${ac_cv_path_MV+set}" = set; then
4348   echo $ECHO_N "(cached) $ECHO_C" >&6
4349 else
4350   case $MV in
4351   [\\/]* | ?:[\\/]*)
4352   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4353   ;;
4354   *)
4355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358   IFS=$as_save_IFS
4359   test -z "$as_dir" && as_dir=.
4360   for ac_exec_ext in '' $ac_executable_extensions; do
4361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4362     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4364     break 2
4365   fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4371   ;;
4372 esac
4373 fi
4374 MV=$ac_cv_path_MV
4375 if test -n "$MV"; then
4376   { echo "$as_me:$LINENO: result: $MV" >&5
4377 echo "${ECHO_T}$MV" >&6; }
4378 else
4379   { echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6; }
4381 fi
4382
4383
4384 # Extract the first word of "rm", so it can be a program name with args.
4385 set dummy rm; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_path_RM+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   case $RM in
4392   [\\/]* | ?:[\\/]*)
4393   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4394   ;;
4395   *)
4396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4398 do
4399   IFS=$as_save_IFS
4400   test -z "$as_dir" && as_dir=.
4401   for ac_exec_ext in '' $ac_executable_extensions; do
4402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4403     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4405     break 2
4406   fi
4407 done
4408 done
4409 IFS=$as_save_IFS
4410
4411   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4412   ;;
4413 esac
4414 fi
4415 RM=$ac_cv_path_RM
4416 if test -n "$RM"; then
4417   { echo "$as_me:$LINENO: result: $RM" >&5
4418 echo "${ECHO_T}$RM" >&6; }
4419 else
4420   { echo "$as_me:$LINENO: result: no" >&5
4421 echo "${ECHO_T}no" >&6; }
4422 fi
4423
4424
4425 # Extract the first word of "cp", so it can be a program name with args.
4426 set dummy cp; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_path_CP+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   case $CP in
4433   [\\/]* | ?:[\\/]*)
4434   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4435   ;;
4436   *)
4437   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 for as_dir in $PATH
4439 do
4440   IFS=$as_save_IFS
4441   test -z "$as_dir" && as_dir=.
4442   for ac_exec_ext in '' $ac_executable_extensions; do
4443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4444     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4446     break 2
4447   fi
4448 done
4449 done
4450 IFS=$as_save_IFS
4451
4452   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4453   ;;
4454 esac
4455 fi
4456 CP=$ac_cv_path_CP
4457 if test -n "$CP"; then
4458   { echo "$as_me:$LINENO: result: $CP" >&5
4459 echo "${ECHO_T}$CP" >&6; }
4460 else
4461   { echo "$as_me:$LINENO: result: no" >&5
4462 echo "${ECHO_T}no" >&6; }
4463 fi
4464
4465
4466 # Extract the first word of "sed", so it can be a program name with args.
4467 set dummy sed; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_path_SED+set}" = set; then
4471   echo $ECHO_N "(cached) $ECHO_C" >&6
4472 else
4473   case $SED in
4474   [\\/]* | ?:[\\/]*)
4475   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4476   ;;
4477   *)
4478   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 for as_dir in $PATH
4480 do
4481   IFS=$as_save_IFS
4482   test -z "$as_dir" && as_dir=.
4483   for ac_exec_ext in '' $ac_executable_extensions; do
4484   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4485     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4494   ;;
4495 esac
4496 fi
4497 SED=$ac_cv_path_SED
4498 if test -n "$SED"; then
4499   { echo "$as_me:$LINENO: result: $SED" >&5
4500 echo "${ECHO_T}$SED" >&6; }
4501 else
4502   { echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6; }
4504 fi
4505
4506
4507 # Extract the first word of "echo", so it can be a program name with args.
4508 set dummy echo; ac_word=$2
4509 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4511 if test "${ac_cv_path_ECHO+set}" = set; then
4512   echo $ECHO_N "(cached) $ECHO_C" >&6
4513 else
4514   case $ECHO in
4515   [\\/]* | ?:[\\/]*)
4516   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4517   ;;
4518   *)
4519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   test -z "$as_dir" && as_dir=.
4524   for ac_exec_ext in '' $ac_executable_extensions; do
4525   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4526     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4527     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528     break 2
4529   fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4535   ;;
4536 esac
4537 fi
4538 ECHO=$ac_cv_path_ECHO
4539 if test -n "$ECHO"; then
4540   { echo "$as_me:$LINENO: result: $ECHO" >&5
4541 echo "${ECHO_T}$ECHO" >&6; }
4542 else
4543   { echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6; }
4545 fi
4546
4547
4548 # Extract the first word of "cmp", so it can be a program name with args.
4549 set dummy cmp; ac_word=$2
4550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4552 if test "${ac_cv_path_CMP+set}" = set; then
4553   echo $ECHO_N "(cached) $ECHO_C" >&6
4554 else
4555   case $CMP in
4556   [\\/]* | ?:[\\/]*)
4557   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4558   ;;
4559   *)
4560   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563   IFS=$as_save_IFS
4564   test -z "$as_dir" && as_dir=.
4565   for ac_exec_ext in '' $ac_executable_extensions; do
4566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569     break 2
4570   fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4576   ;;
4577 esac
4578 fi
4579 CMP=$ac_cv_path_CMP
4580 if test -n "$CMP"; then
4581   { echo "$as_me:$LINENO: result: $CMP" >&5
4582 echo "${ECHO_T}$CMP" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589 # Extract the first word of "tbl", so it can be a program name with args.
4590 set dummy tbl; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_path_TBL+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   case $TBL in
4597   [\\/]* | ?:[\\/]*)
4598   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4599   ;;
4600   *)
4601   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604   IFS=$as_save_IFS
4605   test -z "$as_dir" && as_dir=.
4606   for ac_exec_ext in '' $ac_executable_extensions; do
4607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4608     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4610     break 2
4611   fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4617   ;;
4618 esac
4619 fi
4620 TBL=$ac_cv_path_TBL
4621 if test -n "$TBL"; then
4622   { echo "$as_me:$LINENO: result: $TBL" >&5
4623 echo "${ECHO_T}$TBL" >&6; }
4624 else
4625   { echo "$as_me:$LINENO: result: no" >&5
4626 echo "${ECHO_T}no" >&6; }
4627 fi
4628
4629
4630 # Extract the first word of "ar", so it can be a program name with args.
4631 set dummy ar; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_path_AR+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   case $AR in
4638   [\\/]* | ?:[\\/]*)
4639   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4640   ;;
4641   *)
4642   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645   IFS=$as_save_IFS
4646   test -z "$as_dir" && as_dir=.
4647   for ac_exec_ext in '' $ac_executable_extensions; do
4648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4649     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4658   ;;
4659 esac
4660 fi
4661 AR=$ac_cv_path_AR
4662 if test -n "$AR"; then
4663   { echo "$as_me:$LINENO: result: $AR" >&5
4664 echo "${ECHO_T}$AR" >&6; }
4665 else
4666   { echo "$as_me:$LINENO: result: no" >&5
4667 echo "${ECHO_T}no" >&6; }
4668 fi
4669
4670
4671 # Extract the first word of "openssl", so it can be a program name with args.
4672 set dummy openssl; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_path_OPENSSL+set}" = set; then
4676   echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678   case $OPENSSL in
4679   [\\/]* | ?:[\\/]*)
4680   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4681   ;;
4682   *)
4683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686   IFS=$as_save_IFS
4687   test -z "$as_dir" && as_dir=.
4688   for ac_exec_ext in '' $ac_executable_extensions; do
4689   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4690     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692     break 2
4693   fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4699   ;;
4700 esac
4701 fi
4702 OPENSSL=$ac_cv_path_OPENSSL
4703 if test -n "$OPENSSL"; then
4704   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4705 echo "${ECHO_T}$OPENSSL" >&6; }
4706 else
4707   { echo "$as_me:$LINENO: result: no" >&5
4708 echo "${ECHO_T}no" >&6; }
4709 fi
4710
4711
4712 # Extract the first word of "mtx", so it can be a program name with args.
4713 set dummy mtx; ac_word=$2
4714 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4716 if test "${ac_cv_path_MTX+set}" = set; then
4717   echo $ECHO_N "(cached) $ECHO_C" >&6
4718 else
4719   case $MTX in
4720   [\\/]* | ?:[\\/]*)
4721   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4722   ;;
4723   *)
4724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4725 for as_dir in $PATH
4726 do
4727   IFS=$as_save_IFS
4728   test -z "$as_dir" && as_dir=.
4729   for ac_exec_ext in '' $ac_executable_extensions; do
4730   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4731     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4732     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4733     break 2
4734   fi
4735 done
4736 done
4737 IFS=$as_save_IFS
4738
4739   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4740   ;;
4741 esac
4742 fi
4743 MTX=$ac_cv_path_MTX
4744 if test -n "$MTX"; then
4745   { echo "$as_me:$LINENO: result: $MTX" >&5
4746 echo "${ECHO_T}$MTX" >&6; }
4747 else
4748   { echo "$as_me:$LINENO: result: no" >&5
4749 echo "${ECHO_T}no" >&6; }
4750 fi
4751
4752
4753 # Extract the first word of "dd", so it can be a program name with args.
4754 set dummy dd; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_path_DD+set}" = set; then
4758   echo $ECHO_N "(cached) $ECHO_C" >&6
4759 else
4760   case $DD in
4761   [\\/]* | ?:[\\/]*)
4762   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4763   ;;
4764   *)
4765   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770   for ac_exec_ext in '' $ac_executable_extensions; do
4771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4772     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777 done
4778 IFS=$as_save_IFS
4779
4780   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4781   ;;
4782 esac
4783 fi
4784 DD=$ac_cv_path_DD
4785 if test -n "$DD"; then
4786   { echo "$as_me:$LINENO: result: $DD" >&5
4787 echo "${ECHO_T}$DD" >&6; }
4788 else
4789   { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4791 fi
4792
4793
4794 # Extract the first word of "mkisofs", so it can be a program name with args.
4795 set dummy mkisofs; ac_word=$2
4796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4798 if test "${ac_cv_path_MKISOFS+set}" = set; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   case $MKISOFS in
4802   [\\/]* | ?:[\\/]*)
4803   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4804   ;;
4805   *)
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811   for ac_exec_ext in '' $ac_executable_extensions; do
4812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4813     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818 done
4819 IFS=$as_save_IFS
4820
4821   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4822   ;;
4823 esac
4824 fi
4825 MKISOFS=$ac_cv_path_MKISOFS
4826 if test -n "$MKISOFS"; then
4827   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4828 echo "${ECHO_T}$MKISOFS" >&6; }
4829 else
4830   { echo "$as_me:$LINENO: result: no" >&5
4831 echo "${ECHO_T}no" >&6; }
4832 fi
4833
4834
4835 # Extract the first word of "python", so it can be a program name with args.
4836 set dummy python; ac_word=$2
4837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4839 if test "${ac_cv_path_PYTHON+set}" = set; then
4840   echo $ECHO_N "(cached) $ECHO_C" >&6
4841 else
4842   case $PYTHON in
4843   [\\/]* | ?:[\\/]*)
4844   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4845   ;;
4846   *)
4847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4848 for as_dir in $PATH
4849 do
4850   IFS=$as_save_IFS
4851   test -z "$as_dir" && as_dir=.
4852   for ac_exec_ext in '' $ac_executable_extensions; do
4853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4854     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4855     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4856     break 2
4857   fi
4858 done
4859 done
4860 IFS=$as_save_IFS
4861
4862   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4863   ;;
4864 esac
4865 fi
4866 PYTHON=$ac_cv_path_PYTHON
4867 if test -n "$PYTHON"; then
4868   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4869 echo "${ECHO_T}$PYTHON" >&6; }
4870 else
4871   { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4873 fi
4874
4875
4876 # Extract the first word of "growisofs", so it can be a program name with args.
4877 set dummy growisofs; ac_word=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   case $GROWISOFS in
4884   [\\/]* | ?:[\\/]*)
4885   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4886   ;;
4887   *)
4888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4904   ;;
4905 esac
4906 fi
4907 GROWISOFS=$ac_cv_path_GROWISOFS
4908 if test -n "$GROWISOFS"; then
4909   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4910 echo "${ECHO_T}$GROWISOFS" >&6; }
4911 else
4912   { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4914 fi
4915
4916
4917 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4918 set dummy dvd+rw-mediainfo; ac_word=$2
4919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4921 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4922   echo $ECHO_N "(cached) $ECHO_C" >&6
4923 else
4924   case $DVDRWMEDIAINFO in
4925   [\\/]* | ?:[\\/]*)
4926   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4927   ;;
4928   *)
4929   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932   IFS=$as_save_IFS
4933   test -z "$as_dir" && as_dir=.
4934   for ac_exec_ext in '' $ac_executable_extensions; do
4935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4936     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938     break 2
4939   fi
4940 done
4941 done
4942 IFS=$as_save_IFS
4943
4944   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4945   ;;
4946 esac
4947 fi
4948 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4949 if test -n "$DVDRWMEDIAINFO"; then
4950   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4951 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4952 else
4953   { echo "$as_me:$LINENO: result: no" >&5
4954 echo "${ECHO_T}no" >&6; }
4955 fi
4956
4957
4958 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4959 set dummy dvd+rw-format; ac_word=$2
4960 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4962 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4963   echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965   case $DVDRWFORMAT in
4966   [\\/]* | ?:[\\/]*)
4967   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4968   ;;
4969   *)
4970   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971 for as_dir in $PATH
4972 do
4973   IFS=$as_save_IFS
4974   test -z "$as_dir" && as_dir=.
4975   for ac_exec_ext in '' $ac_executable_extensions; do
4976   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4977     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4986   ;;
4987 esac
4988 fi
4989 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4990 if test -n "$DVDRWFORMAT"; then
4991   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4992 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4993 else
4994   { echo "$as_me:$LINENO: result: no" >&5
4995 echo "${ECHO_T}no" >&6; }
4996 fi
4997
4998
4999 # Extract the first word of "pkg-config", so it can be a program name with args.
5000 set dummy pkg-config; ac_word=$2
5001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5003 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5004   echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006   case $PKGCONFIG in
5007   [\\/]* | ?:[\\/]*)
5008   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5009   ;;
5010   *)
5011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014   IFS=$as_save_IFS
5015   test -z "$as_dir" && as_dir=.
5016   for ac_exec_ext in '' $ac_executable_extensions; do
5017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5018     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5019     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020     break 2
5021   fi
5022 done
5023 done
5024 IFS=$as_save_IFS
5025
5026   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5027   ;;
5028 esac
5029 fi
5030 PKGCONFIG=$ac_cv_path_PKGCONFIG
5031 if test -n "$PKGCONFIG"; then
5032   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5033 echo "${ECHO_T}$PKGCONFIG" >&6; }
5034 else
5035   { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5037 fi
5038
5039
5040
5041 if test "x$WXCONFIG" = x; then
5042   WXCONFIG=wx-config
5043 fi
5044 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5045 set dummy ${WXCONFIG}; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5049   echo $ECHO_N "(cached) $ECHO_C" >&6
5050 else
5051   case $WXCONFIG in
5052   [\\/]* | ?:[\\/]*)
5053   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5054   ;;
5055   *)
5056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059   IFS=$as_save_IFS
5060   test -z "$as_dir" && as_dir=.
5061   for ac_exec_ext in '' $ac_executable_extensions; do
5062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5063     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065     break 2
5066   fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5072   ;;
5073 esac
5074 fi
5075 WXCONFIG=$ac_cv_path_WXCONFIG
5076 if test -n "$WXCONFIG"; then
5077   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5078 echo "${ECHO_T}$WXCONFIG" >&6; }
5079 else
5080   { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5082 fi
5083
5084
5085
5086 # Extract the first word of "cdrecord", so it can be a program name with args.
5087 set dummy cdrecord; ac_word=$2
5088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5090 if test "${ac_cv_path_CDRECORD+set}" = set; then
5091   echo $ECHO_N "(cached) $ECHO_C" >&6
5092 else
5093   case $CDRECORD in
5094   [\\/]* | ?:[\\/]*)
5095   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5096   ;;
5097   *)
5098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099 for as_dir in $PATH
5100 do
5101   IFS=$as_save_IFS
5102   test -z "$as_dir" && as_dir=.
5103   for ac_exec_ext in '' $ac_executable_extensions; do
5104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5105     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5107     break 2
5108   fi
5109 done
5110 done
5111 IFS=$as_save_IFS
5112
5113   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5114   ;;
5115 esac
5116 fi
5117 CDRECORD=$ac_cv_path_CDRECORD
5118 if test -n "$CDRECORD"; then
5119   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5120 echo "${ECHO_T}$CDRECORD" >&6; }
5121 else
5122   { echo "$as_me:$LINENO: result: no" >&5
5123 echo "${ECHO_T}no" >&6; }
5124 fi
5125
5126
5127 # Extract the first word of "pidof", so it can be a program name with args.
5128 set dummy pidof; ac_word=$2
5129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5131 if test "${ac_cv_path_PIDOF+set}" = set; then
5132   echo $ECHO_N "(cached) $ECHO_C" >&6
5133 else
5134   case $PIDOF in
5135   [\\/]* | ?:[\\/]*)
5136   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5137   ;;
5138   *)
5139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH
5141 do
5142   IFS=$as_save_IFS
5143   test -z "$as_dir" && as_dir=.
5144   for ac_exec_ext in '' $ac_executable_extensions; do
5145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5146     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148     break 2
5149   fi
5150 done
5151 done
5152 IFS=$as_save_IFS
5153
5154   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5155   ;;
5156 esac
5157 fi
5158 PIDOF=$ac_cv_path_PIDOF
5159 if test -n "$PIDOF"; then
5160   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5161 echo "${ECHO_T}$PIDOF" >&6; }
5162 else
5163   { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5165 fi
5166
5167
5168 for ac_prog in gawk mawk nawk awk
5169 do
5170   # Extract the first word of "$ac_prog", so it can be a program name with args.
5171 set dummy $ac_prog; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_prog_AWK+set}" = set; then
5175   echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177   if test -n "$AWK"; then
5178   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5179 else
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 for as_dir in $PATH
5182 do
5183   IFS=$as_save_IFS
5184   test -z "$as_dir" && as_dir=.
5185   for ac_exec_ext in '' $ac_executable_extensions; do
5186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5187     ac_cv_prog_AWK="$ac_prog"
5188     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5189     break 2
5190   fi
5191 done
5192 done
5193 IFS=$as_save_IFS
5194
5195 fi
5196 fi
5197 AWK=$ac_cv_prog_AWK
5198 if test -n "$AWK"; then
5199   { echo "$as_me:$LINENO: result: $AWK" >&5
5200 echo "${ECHO_T}$AWK" >&6; }
5201 else
5202   { echo "$as_me:$LINENO: result: no" >&5
5203 echo "${ECHO_T}no" >&6; }
5204 fi
5205
5206
5207   test -n "$AWK" && break
5208 done
5209
5210 # Some AWK programs fail, so test it and warn the user
5211 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5212       { if ((prog == $2) || (("(" prog ")") == $2) ||
5213            (("" prog "") == $2) ||
5214            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5215 else
5216   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5217    The regex engine of $AWK is too broken to be used you
5218    might want to install GNU AWK.
5219    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5220 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5221    The regex engine of $AWK is too broken to be used you
5222    might want to install GNU AWK.
5223    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5224    { (exit 1); exit 1; }; }
5225 fi
5226 THE_AWK=$AWK
5227 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5228 set dummy $THE_AWK; ac_word=$2
5229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5231 if test "${ac_cv_path_AWK+set}" = set; then
5232   echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234   case $AWK in
5235   [\\/]* | ?:[\\/]*)
5236   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5237   ;;
5238   *)
5239   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH
5241 do
5242   IFS=$as_save_IFS
5243   test -z "$as_dir" && as_dir=.
5244   for ac_exec_ext in '' $ac_executable_extensions; do
5245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5246     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5247     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5248     break 2
5249   fi
5250 done
5251 done
5252 IFS=$as_save_IFS
5253
5254   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5255   ;;
5256 esac
5257 fi
5258 AWK=$ac_cv_path_AWK
5259 if test -n "$AWK"; then
5260   { echo "$as_me:$LINENO: result: $AWK" >&5
5261 echo "${ECHO_T}$AWK" >&6; }
5262 else
5263   { echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6; }
5265 fi
5266
5267
5268
5269 test -n "$ARFLAG" || ARFLAGS="cr"
5270
5271
5272 MAKE_SHELL=/bin/sh
5273
5274
5275
5276
5277
5278
5279
5280 # Make sure we can run config.sub.
5281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5282   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5284    { (exit 1); exit 1; }; }
5285
5286 { echo "$as_me:$LINENO: checking build system type" >&5
5287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5288 if test "${ac_cv_build+set}" = set; then
5289   echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291   ac_build_alias=$build_alias
5292 test "x$ac_build_alias" = x &&
5293   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5294 test "x$ac_build_alias" = x &&
5295   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5297    { (exit 1); exit 1; }; }
5298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5299   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5301    { (exit 1); exit 1; }; }
5302
5303 fi
5304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5305 echo "${ECHO_T}$ac_cv_build" >&6; }
5306 case $ac_cv_build in
5307 *-*-*) ;;
5308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5309 echo "$as_me: error: invalid value of canonical build" >&2;}
5310    { (exit 1); exit 1; }; };;
5311 esac
5312 build=$ac_cv_build
5313 ac_save_IFS=$IFS; IFS='-'
5314 set x $ac_cv_build
5315 shift
5316 build_cpu=$1
5317 build_vendor=$2
5318 shift; shift
5319 # Remember, the first character of IFS is used to create $*,
5320 # except with old shells:
5321 build_os=$*
5322 IFS=$ac_save_IFS
5323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5324
5325
5326
5327 { echo "$as_me:$LINENO: checking host system type" >&5
5328 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5329 if test "${ac_cv_host+set}" = set; then
5330   echo $ECHO_N "(cached) $ECHO_C" >&6
5331 else
5332   if test "x$host_alias" = x; then
5333   ac_cv_host=$ac_cv_build
5334 else
5335   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5336     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5337 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5338    { (exit 1); exit 1; }; }
5339 fi
5340
5341 fi
5342 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5343 echo "${ECHO_T}$ac_cv_host" >&6; }
5344 case $ac_cv_host in
5345 *-*-*) ;;
5346 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5347 echo "$as_me: error: invalid value of canonical host" >&2;}
5348    { (exit 1); exit 1; }; };;
5349 esac
5350 host=$ac_cv_host
5351 ac_save_IFS=$IFS; IFS='-'
5352 set x $ac_cv_host
5353 shift
5354 host_cpu=$1
5355 host_vendor=$2
5356 shift; shift
5357 # Remember, the first character of IFS is used to create $*,
5358 # except with old shells:
5359 host_os=$*
5360 IFS=$ac_save_IFS
5361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5362
5363
5364 case $host_os in
5365   *cygwin* ) CYGWIN=yes;;
5366          * ) CYGWIN=no;;
5367 esac
5368
5369 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5370 then
5371
5372
5373 if $TRUEPRG; then
5374   HAVE_SUN_OS_TRUE=
5375   HAVE_SUN_OS_FALSE='#'
5376 else
5377   HAVE_SUN_OS_TRUE='#'
5378   HAVE_SUN_OS_FALSE=
5379 fi
5380         cat >>confdefs.h <<\_ACEOF
5381 #define HAVE_SUN_OS 1
5382 _ACEOF
5383
5384 else
5385
5386
5387 if $FALSEPRG; then
5388   HAVE_SUN_OS_TRUE=
5389   HAVE_SUN_OS_FALSE='#'
5390 else
5391   HAVE_SUN_OS_TRUE='#'
5392   HAVE_SUN_OS_FALSE=
5393 fi
5394 fi
5395
5396 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5397 then
5398
5399
5400 if $TRUEPRG; then
5401   HAVE_OSF1_OS_TRUE=
5402   HAVE_OSF1_OS_FALSE='#'
5403 else
5404   HAVE_OSF1_OS_TRUE='#'
5405   HAVE_OSF1_OS_FALSE=
5406 fi
5407         cat >>confdefs.h <<\_ACEOF
5408 #define HAVE_OSF1_OS 1
5409 _ACEOF
5410
5411 else
5412
5413
5414 if $FALSEPRG; then
5415   HAVE_OSF1_OS_TRUE=
5416   HAVE_OSF1_OS_FALSE='#'
5417 else
5418   HAVE_OSF1_OS_TRUE='#'
5419   HAVE_OSF1_OS_FALSE=
5420 fi
5421 fi
5422
5423 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5424 then
5425
5426
5427 if $TRUEPRG; then
5428   HAVE_AIX_OS_TRUE=
5429   HAVE_AIX_OS_FALSE='#'
5430 else
5431   HAVE_AIX_OS_TRUE='#'
5432   HAVE_AIX_OS_FALSE=
5433 fi
5434         cat >>confdefs.h <<\_ACEOF
5435 #define HAVE_AIX_OS 1
5436 _ACEOF
5437
5438 else
5439
5440
5441 if $FALSEPRG; then
5442   HAVE_AIX_OS_TRUE=
5443   HAVE_AIX_OS_FALSE='#'
5444 else
5445   HAVE_AIX_OS_TRUE='#'
5446   HAVE_AIX_OS_FALSE=
5447 fi
5448 fi
5449
5450 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5451 then
5452
5453
5454 if $TRUEPRG; then
5455   HAVE_HPUX_OS_TRUE=
5456   HAVE_HPUX_OS_FALSE='#'
5457 else
5458   HAVE_HPUX_OS_TRUE='#'
5459   HAVE_HPUX_OS_FALSE=
5460 fi
5461         cat >>confdefs.h <<\_ACEOF
5462 #define HAVE_HPUX_OS 1
5463 _ACEOF
5464
5465 else
5466
5467
5468 if $FALSEPRG; then
5469   HAVE_HPUX_OS_TRUE=
5470   HAVE_HPUX_OS_FALSE='#'
5471 else
5472   HAVE_HPUX_OS_TRUE='#'
5473   HAVE_HPUX_OS_FALSE=
5474 fi
5475 fi
5476
5477 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5478 then
5479
5480
5481 if $TRUEPRG; then
5482   HAVE_LINUX_OS_TRUE=
5483   HAVE_LINUX_OS_FALSE='#'
5484 else
5485   HAVE_LINUX_OS_TRUE='#'
5486   HAVE_LINUX_OS_FALSE=
5487 fi
5488         cat >>confdefs.h <<\_ACEOF
5489 #define HAVE_LINUX_OS 1
5490 _ACEOF
5491
5492 else
5493
5494
5495 if $FALSEPRG; then
5496   HAVE_LINUX_OS_TRUE=
5497   HAVE_LINUX_OS_FALSE='#'
5498 else
5499   HAVE_LINUX_OS_TRUE='#'
5500   HAVE_LINUX_OS_FALSE=
5501 fi
5502 fi
5503
5504 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5505 then
5506
5507
5508 if $TRUEPRG; then
5509   HAVE_FREEBSD_OS_TRUE=
5510   HAVE_FREEBSD_OS_FALSE='#'
5511 else
5512   HAVE_FREEBSD_OS_TRUE='#'
5513   HAVE_FREEBSD_OS_FALSE=
5514 fi
5515         cat >>confdefs.h <<\_ACEOF
5516 #define HAVE_FREEBSD_OS 1
5517 _ACEOF
5518
5519 else
5520
5521
5522 if $FALSEPRG; then
5523   HAVE_FREEBSD_OS_TRUE=
5524   HAVE_FREEBSD_OS_FALSE='#'
5525 else
5526   HAVE_FREEBSD_OS_TRUE='#'
5527   HAVE_FREEBSD_OS_FALSE=
5528 fi
5529 fi
5530
5531 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5532 then
5533
5534
5535 if $TRUEPRG; then
5536   HAVE_NETBSD_OS_TRUE=
5537   HAVE_NETBSD_OS_FALSE='#'
5538 else
5539   HAVE_NETBSD_OS_TRUE='#'
5540   HAVE_NETBSD_OS_FALSE=
5541 fi
5542         cat >>confdefs.h <<\_ACEOF
5543 #define HAVE_NETBSD_OS 1
5544 _ACEOF
5545
5546 else
5547
5548
5549 if $FALSEPRG; then
5550   HAVE_NETBSD_OS_TRUE=
5551   HAVE_NETBSD_OS_FALSE='#'
5552 else
5553   HAVE_NETBSD_OS_TRUE='#'
5554   HAVE_NETBSD_OS_FALSE=
5555 fi
5556 fi
5557
5558 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5559 then
5560
5561
5562 if $TRUEPRG; then
5563   HAVE_OPENBSD_OS_TRUE=
5564   HAVE_OPENBSD_OS_FALSE='#'
5565 else
5566   HAVE_OPENBSD_OS_TRUE='#'
5567   HAVE_OPENBSD_OS_FALSE=
5568 fi
5569         cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_OPENBSD_OS 1
5571 _ACEOF
5572
5573 else
5574
5575
5576 if $FALSEPRG; then
5577   HAVE_OPENBSD_OS_TRUE=
5578   HAVE_OPENBSD_OS_FALSE='#'
5579 else
5580   HAVE_OPENBSD_OS_TRUE='#'
5581   HAVE_OPENBSD_OS_FALSE=
5582 fi
5583 fi
5584
5585 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5586 then
5587
5588
5589 if $TRUEPRG; then
5590   HAVE_BSDI_OS_TRUE=
5591   HAVE_BSDI_OS_FALSE='#'
5592 else
5593   HAVE_BSDI_OS_TRUE='#'
5594   HAVE_BSDI_OS_FALSE=
5595 fi
5596         cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_BSDI_OS 1
5598 _ACEOF
5599
5600 else
5601
5602
5603 if $FALSEPRG; then
5604   HAVE_BSDI_OS_TRUE=
5605   HAVE_BSDI_OS_FALSE='#'
5606 else
5607   HAVE_BSDI_OS_TRUE='#'
5608   HAVE_BSDI_OS_FALSE=
5609 fi
5610 fi
5611
5612 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5613 then
5614
5615
5616 if $TRUEPRG; then
5617   HAVE_SGI_OS_TRUE=
5618   HAVE_SGI_OS_FALSE='#'
5619 else
5620   HAVE_SGI_OS_TRUE='#'
5621   HAVE_SGI_OS_FALSE=
5622 fi
5623         cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_SGI_OS 1
5625 _ACEOF
5626
5627 else
5628
5629
5630 if $FALSEPRG; then
5631   HAVE_SGI_OS_TRUE=
5632   HAVE_SGI_OS_FALSE='#'
5633 else
5634   HAVE_SGI_OS_TRUE='#'
5635   HAVE_SGI_OS_FALSE=
5636 fi
5637 fi
5638
5639 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5640 then
5641
5642
5643 if $TRUEPRG; then
5644   HAVE_IRIX_OS_TRUE=
5645   HAVE_IRIX_OS_FALSE='#'
5646 else
5647   HAVE_IRIX_OS_TRUE='#'
5648   HAVE_IRIX_OS_FALSE=
5649 fi
5650         cat >>confdefs.h <<\_ACEOF
5651 #define HAVE_IRIX_OS 1
5652 _ACEOF
5653
5654 else
5655
5656
5657 if $FALSEPRG; then
5658   HAVE_IRIX_OS_TRUE=
5659   HAVE_IRIX_OS_FALSE='#'
5660 else
5661   HAVE_IRIX_OS_TRUE='#'
5662   HAVE_IRIX_OS_FALSE=
5663 fi
5664 fi
5665
5666 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5667 then
5668
5669
5670 if $TRUEPRG; then
5671   HAVE_DARWIN_OS_TRUE=
5672   HAVE_DARWIN_OS_FALSE='#'
5673 else
5674   HAVE_DARWIN_OS_TRUE='#'
5675   HAVE_DARWIN_OS_FALSE=
5676 fi
5677     cat >>confdefs.h <<\_ACEOF
5678 #define HAVE_DARWIN_OS 1
5679 _ACEOF
5680
5681 else
5682
5683
5684 if $FALSEPRG; then
5685   HAVE_DARWIN_OS_TRUE=
5686   HAVE_DARWIN_OS_FALSE='#'
5687 else
5688   HAVE_DARWIN_OS_TRUE='#'
5689   HAVE_DARWIN_OS_FALSE=
5690 fi
5691 fi
5692
5693
5694 # -----------------------------------------------------------
5695 # ----------------------------------------------------------
5696 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5697 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5698 if test "x$DISTNAME" != "x"
5699 then
5700         echo "distname set to $DISTNAME"
5701 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5702 then
5703         DISTNAME=alpha
5704 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5705 then
5706         DISTNAME=aix
5707 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5708 then
5709         DISTNAME=hpux
5710 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5711 then
5712         DISTNAME=solaris
5713 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5714 then
5715         DISTNAME=freebsd
5716 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5717 then
5718         DISTNAME=netbsd
5719 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5720 then
5721         DISTNAME=openbsd
5722 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5723 then
5724         DISTNAME=irix
5725 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5726 then
5727         DISTNAME=bsdi
5728 elif test -f /etc/SuSE-release
5729 then
5730         DISTNAME=suse
5731 elif test -d /etc/SuSEconfig
5732 then
5733         DISTNAME=suse5
5734 elif test -f /etc/mandrake-release
5735 then
5736         DISTNAME=mandrake
5737 elif test -f /etc/whitebox-release
5738 then
5739        DISTNAME=redhat
5740 elif test -f /etc/redhat-release
5741 then
5742         DISTNAME=redhat
5743 elif test -f /etc/gentoo-release
5744 then
5745         DISTNAME=gentoo
5746 elif test -f /etc/debian_version
5747 then
5748         DISTNAME=debian
5749 elif test -f /etc/slackware-version
5750 then
5751         DISTNAME=slackware
5752 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5753 then
5754     DISTNAME=darwin
5755 elif test -f /etc/engarde-version
5756 then
5757         DISTNAME=engarde
5758 elif test "$CYGWIN" = yes
5759 then
5760         DISTNAME=cygwin
5761         cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_CYGWIN 1
5763 _ACEOF
5764
5765 else
5766         DISTNAME=unknown
5767 fi
5768 { echo "$as_me:$LINENO: result: done" >&5
5769 echo "${ECHO_T}done" >&6; }
5770
5771
5772 # --------------------------------------------------
5773 # Suppport for gettext (translations)
5774 # By default, $datadir is ${prefix}/share
5775 # --------------------------------------------------
5776 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5777 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5778 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5779 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   cat >conftest.make <<\_ACEOF
5783 SHELL = /bin/sh
5784 all:
5785         @echo '@@@%%%=$(MAKE)=@@@%%%'
5786 _ACEOF
5787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5788 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5789   *@@@%%%=?*=@@@%%%*)
5790     eval ac_cv_prog_make_${ac_make}_set=yes;;
5791   *)
5792     eval ac_cv_prog_make_${ac_make}_set=no;;
5793 esac
5794 rm -f conftest.make
5795 fi
5796 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5797   { echo "$as_me:$LINENO: result: yes" >&5
5798 echo "${ECHO_T}yes" >&6; }
5799   SET_MAKE=
5800 else
5801   { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5803   SET_MAKE="MAKE=${MAKE-make}"
5804 fi
5805
5806
5807
5808         MKINSTALLDIRS=
5809   if test -n "$ac_aux_dir"; then
5810     case "$ac_aux_dir" in
5811       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5812       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5813     esac
5814   fi
5815   if test -z "$MKINSTALLDIRS"; then
5816     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5817   fi
5818
5819
5820
5821   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5822 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5823     # Check whether --enable-nls was given.
5824 if test "${enable_nls+set}" = set; then
5825   enableval=$enable_nls; USE_NLS=$enableval
5826 else
5827   USE_NLS=yes
5828 fi
5829
5830   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5831 echo "${ECHO_T}$USE_NLS" >&6; }
5832
5833
5834
5835
5836
5837
5838 # Prepare PATH_SEPARATOR.
5839 # The user is always right.
5840 if test "${PATH_SEPARATOR+set}" != set; then
5841   echo "#! /bin/sh" >conf$$.sh
5842   echo  "exit 0"   >>conf$$.sh
5843   chmod +x conf$$.sh
5844   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5845     PATH_SEPARATOR=';'
5846   else
5847     PATH_SEPARATOR=:
5848   fi
5849   rm -f conf$$.sh
5850 fi
5851
5852 # Find out how to test for executable files. Don't use a zero-byte file,
5853 # as systems may use methods other than mode bits to determine executability.
5854 cat >conf$$.file <<_ASEOF
5855 #! /bin/sh
5856 exit 0
5857 _ASEOF
5858 chmod +x conf$$.file
5859 if test -x conf$$.file >/dev/null 2>&1; then
5860   ac_executable_p="test -x"
5861 else
5862   ac_executable_p="test -f"
5863 fi
5864 rm -f conf$$.file
5865
5866 # Extract the first word of "msgfmt", so it can be a program name with args.
5867 set dummy msgfmt; ac_word=$2
5868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5870 if test "${ac_cv_path_MSGFMT+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   case "$MSGFMT" in
5874   [\\/]* | ?:[\\/]*)
5875     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5876     ;;
5877   *)
5878     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5879     for ac_dir in $PATH; do
5880       IFS="$ac_save_IFS"
5881       test -z "$ac_dir" && ac_dir=.
5882       for ac_exec_ext in '' $ac_executable_extensions; do
5883         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5884           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5885           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5886      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5887             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5888             break 2
5889           fi
5890         fi
5891       done
5892     done
5893     IFS="$ac_save_IFS"
5894   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5895     ;;
5896 esac
5897 fi
5898 MSGFMT="$ac_cv_path_MSGFMT"
5899 if test "$MSGFMT" != ":"; then
5900   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5901 echo "${ECHO_T}$MSGFMT" >&6; }
5902 else
5903   { echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6; }
5905 fi
5906
5907   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5908 set dummy gmsgfmt; ac_word=$2
5909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5911 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5912   echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914   case $GMSGFMT in
5915   [\\/]* | ?:[\\/]*)
5916   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5917   ;;
5918   *)
5919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924   for ac_exec_ext in '' $ac_executable_extensions; do
5925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5926     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931 done
5932 IFS=$as_save_IFS
5933
5934   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5935   ;;
5936 esac
5937 fi
5938 GMSGFMT=$ac_cv_path_GMSGFMT
5939 if test -n "$GMSGFMT"; then
5940   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5941 echo "${ECHO_T}$GMSGFMT" >&6; }
5942 else
5943   { echo "$as_me:$LINENO: result: no" >&5
5944 echo "${ECHO_T}no" >&6; }
5945 fi
5946
5947
5948
5949
5950 # Prepare PATH_SEPARATOR.
5951 # The user is always right.
5952 if test "${PATH_SEPARATOR+set}" != set; then
5953   echo "#! /bin/sh" >conf$$.sh
5954   echo  "exit 0"   >>conf$$.sh
5955   chmod +x conf$$.sh
5956   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5957     PATH_SEPARATOR=';'
5958   else
5959     PATH_SEPARATOR=:
5960   fi
5961   rm -f conf$$.sh
5962 fi
5963
5964 # Find out how to test for executable files. Don't use a zero-byte file,
5965 # as systems may use methods other than mode bits to determine executability.
5966 cat >conf$$.file <<_ASEOF
5967 #! /bin/sh
5968 exit 0
5969 _ASEOF
5970 chmod +x conf$$.file
5971 if test -x conf$$.file >/dev/null 2>&1; then
5972   ac_executable_p="test -x"
5973 else
5974   ac_executable_p="test -f"
5975 fi
5976 rm -f conf$$.file
5977
5978 # Extract the first word of "xgettext", so it can be a program name with args.
5979 set dummy xgettext; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5983   echo $ECHO_N "(cached) $ECHO_C" >&6
5984 else
5985   case "$XGETTEXT" in
5986   [\\/]* | ?:[\\/]*)
5987     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5988     ;;
5989   *)
5990     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5991     for ac_dir in $PATH; do
5992       IFS="$ac_save_IFS"
5993       test -z "$ac_dir" && ac_dir=.
5994       for ac_exec_ext in '' $ac_executable_extensions; do
5995         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5996           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5997           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5998      (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
5999             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6000             break 2
6001           fi
6002         fi
6003       done
6004     done
6005     IFS="$ac_save_IFS"
6006   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6007     ;;
6008 esac
6009 fi
6010 XGETTEXT="$ac_cv_path_XGETTEXT"
6011 if test "$XGETTEXT" != ":"; then
6012   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6013 echo "${ECHO_T}$XGETTEXT" >&6; }
6014 else
6015   { echo "$as_me:$LINENO: result: no" >&5
6016 echo "${ECHO_T}no" >&6; }
6017 fi
6018
6019     rm -f messages.po
6020
6021
6022 # Prepare PATH_SEPARATOR.
6023 # The user is always right.
6024 if test "${PATH_SEPARATOR+set}" != set; then
6025   echo "#! /bin/sh" >conf$$.sh
6026   echo  "exit 0"   >>conf$$.sh
6027   chmod +x conf$$.sh
6028   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6029     PATH_SEPARATOR=';'
6030   else
6031     PATH_SEPARATOR=:
6032   fi
6033   rm -f conf$$.sh
6034 fi
6035
6036 # Find out how to test for executable files. Don't use a zero-byte file,
6037 # as systems may use methods other than mode bits to determine executability.
6038 cat >conf$$.file <<_ASEOF
6039 #! /bin/sh
6040 exit 0
6041 _ASEOF
6042 chmod +x conf$$.file
6043 if test -x conf$$.file >/dev/null 2>&1; then
6044   ac_executable_p="test -x"
6045 else
6046   ac_executable_p="test -f"
6047 fi
6048 rm -f conf$$.file
6049
6050 # Extract the first word of "msgmerge", so it can be a program name with args.
6051 set dummy msgmerge; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   case "$MSGMERGE" in
6058   [\\/]* | ?:[\\/]*)
6059     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6060     ;;
6061   *)
6062     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6063     for ac_dir in $PATH; do
6064       IFS="$ac_save_IFS"
6065       test -z "$ac_dir" && ac_dir=.
6066       for ac_exec_ext in '' $ac_executable_extensions; do
6067         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6068           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6069           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6070             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6071             break 2
6072           fi
6073         fi
6074       done
6075     done
6076     IFS="$ac_save_IFS"
6077   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6078     ;;
6079 esac
6080 fi
6081 MSGMERGE="$ac_cv_path_MSGMERGE"
6082 if test "$MSGMERGE" != ":"; then
6083   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6084 echo "${ECHO_T}$MSGMERGE" >&6; }
6085 else
6086   { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6088 fi
6089
6090
6091       if test "$GMSGFMT" != ":"; then
6092             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6093        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6094       : ;
6095     else
6096       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6097       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6098 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6099       GMSGFMT=":"
6100     fi
6101   fi
6102
6103       if test "$XGETTEXT" != ":"; then
6104             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6105        (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
6106       : ;
6107     else
6108       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6109 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6110       XGETTEXT=":"
6111     fi
6112         rm -f messages.po
6113   fi
6114
6115   ac_config_commands="$ac_config_commands default-1"
6116
6117
6118
6119       if test "X$prefix" = "XNONE"; then
6120     acl_final_prefix="$ac_default_prefix"
6121   else
6122     acl_final_prefix="$prefix"
6123   fi
6124   if test "X$exec_prefix" = "XNONE"; then
6125     acl_final_exec_prefix='${prefix}'
6126   else
6127     acl_final_exec_prefix="$exec_prefix"
6128   fi
6129   acl_save_prefix="$prefix"
6130   prefix="$acl_final_prefix"
6131   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6132   prefix="$acl_save_prefix"
6133
6134
6135 # Check whether --with-gnu-ld was given.
6136 if test "${with_gnu_ld+set}" = set; then
6137   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6138 else
6139   with_gnu_ld=no
6140 fi
6141
6142 # Prepare PATH_SEPARATOR.
6143 # The user is always right.
6144 if test "${PATH_SEPARATOR+set}" != set; then
6145   echo "#! /bin/sh" >conf$$.sh
6146   echo  "exit 0"   >>conf$$.sh
6147   chmod +x conf$$.sh
6148   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6149     PATH_SEPARATOR=';'
6150   else
6151     PATH_SEPARATOR=:
6152   fi
6153   rm -f conf$$.sh
6154 fi
6155 ac_prog=ld
6156 if test "$GCC" = yes; then
6157   # Check if gcc -print-prog-name=ld gives a path.
6158   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6159 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6160   case $host in
6161   *-*-mingw*)
6162     # gcc leaves a trailing carriage return which upsets mingw
6163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6164   *)
6165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6166   esac
6167   case $ac_prog in
6168     # Accept absolute paths.
6169     [\\/]* | [A-Za-z]:[\\/]*)
6170       re_direlt='/[^/][^/]*/\.\./'
6171       # Canonicalize the path of ld
6172       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6173       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6174         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6175       done
6176       test -z "$LD" && LD="$ac_prog"
6177       ;;
6178   "")
6179     # If it fails, then pretend we aren't using GCC.
6180     ac_prog=ld
6181     ;;
6182   *)
6183     # If it is relative, then search for the first ld in PATH.
6184     with_gnu_ld=unknown
6185     ;;
6186   esac
6187 elif test "$with_gnu_ld" = yes; then
6188   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6189 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6190 else
6191   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6192 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6193 fi
6194 if test "${acl_cv_path_LD+set}" = set; then
6195   echo $ECHO_N "(cached) $ECHO_C" >&6
6196 else
6197   if test -z "$LD"; then
6198   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6199   for ac_dir in $PATH; do
6200     test -z "$ac_dir" && ac_dir=.
6201     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6202       acl_cv_path_LD="$ac_dir/$ac_prog"
6203       # Check to see if the program is GNU ld.  I'd rather use --version,
6204       # but apparently some GNU ld's only accept -v.
6205       # Break only if it was the GNU/non-GNU ld that we prefer.
6206       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6207       *GNU* | *'with BFD'*)
6208         test "$with_gnu_ld" != no && break ;;
6209       *)
6210         test "$with_gnu_ld" != yes && break ;;
6211       esac
6212     fi
6213   done
6214   IFS="$ac_save_ifs"
6215 else
6216   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6217 fi
6218 fi
6219
6220 LD="$acl_cv_path_LD"
6221 if test -n "$LD"; then
6222   { echo "$as_me:$LINENO: result: $LD" >&5
6223 echo "${ECHO_T}$LD" >&6; }
6224 else
6225   { echo "$as_me:$LINENO: result: no" >&5
6226 echo "${ECHO_T}no" >&6; }
6227 fi
6228 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6229 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6230    { (exit 1); exit 1; }; }
6231 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6232 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6233 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6234   echo $ECHO_N "(cached) $ECHO_C" >&6
6235 else
6236   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6237 case `$LD -v 2>&1 </dev/null` in
6238 *GNU* | *'with BFD'*)
6239   acl_cv_prog_gnu_ld=yes ;;
6240 *)
6241   acl_cv_prog_gnu_ld=no ;;
6242 esac
6243 fi
6244 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6245 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6246 with_gnu_ld=$acl_cv_prog_gnu_ld
6247
6248
6249
6250
6251                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6252 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6253 if test "${acl_cv_rpath+set}" = set; then
6254   echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256
6257     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6258     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6259     . ./conftest.sh
6260     rm -f ./conftest.sh
6261     acl_cv_rpath=done
6262
6263 fi
6264 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6265 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6266   wl="$acl_cv_wl"
6267   libext="$acl_cv_libext"
6268   shlibext="$acl_cv_shlibext"
6269   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6270   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6271   hardcode_direct="$acl_cv_hardcode_direct"
6272   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6273     # Check whether --enable-rpath was given.
6274 if test "${enable_rpath+set}" = set; then
6275   enableval=$enable_rpath; :
6276 else
6277   enable_rpath=yes
6278 fi
6279
6280
6281
6282
6283
6284
6285
6286
6287     use_additional=yes
6288
6289   acl_save_prefix="$prefix"
6290   prefix="$acl_final_prefix"
6291   acl_save_exec_prefix="$exec_prefix"
6292   exec_prefix="$acl_final_exec_prefix"
6293
6294     eval additional_includedir=\"$includedir\"
6295     eval additional_libdir=\"$libdir\"
6296
6297   exec_prefix="$acl_save_exec_prefix"
6298   prefix="$acl_save_prefix"
6299
6300
6301 # Check whether --with-libiconv-prefix was given.
6302 if test "${with_libiconv_prefix+set}" = set; then
6303   withval=$with_libiconv_prefix;
6304     if test "X$withval" = "Xno"; then
6305       use_additional=no
6306     else
6307       if test "X$withval" = "X"; then
6308
6309   acl_save_prefix="$prefix"
6310   prefix="$acl_final_prefix"
6311   acl_save_exec_prefix="$exec_prefix"
6312   exec_prefix="$acl_final_exec_prefix"
6313
6314           eval additional_includedir=\"$includedir\"
6315           eval additional_libdir=\"$libdir\"
6316
6317   exec_prefix="$acl_save_exec_prefix"
6318   prefix="$acl_save_prefix"
6319
6320       else
6321         additional_includedir="$withval/include"
6322         additional_libdir="$withval/lib"
6323       fi
6324     fi
6325
6326 fi
6327
6328       LIBICONV=
6329   LTLIBICONV=
6330   INCICONV=
6331   rpathdirs=
6332   ltrpathdirs=
6333   names_already_handled=
6334   names_next_round='iconv '
6335   while test -n "$names_next_round"; do
6336     names_this_round="$names_next_round"
6337     names_next_round=
6338     for name in $names_this_round; do
6339       already_handled=
6340       for n in $names_already_handled; do
6341         if test "$n" = "$name"; then
6342           already_handled=yes
6343           break
6344         fi
6345       done
6346       if test -z "$already_handled"; then
6347         names_already_handled="$names_already_handled $name"
6348                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6349         eval value=\"\$HAVE_LIB$uppername\"
6350         if test -n "$value"; then
6351           if test "$value" = yes; then
6352             eval value=\"\$LIB$uppername\"
6353             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6354             eval value=\"\$LTLIB$uppername\"
6355             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6356           else
6357                                     :
6358           fi
6359         else
6360                               found_dir=
6361           found_la=
6362           found_so=
6363           found_a=
6364           if test $use_additional = yes; then
6365             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6366               found_dir="$additional_libdir"
6367               found_so="$additional_libdir/lib$name.$shlibext"
6368               if test -f "$additional_libdir/lib$name.la"; then
6369                 found_la="$additional_libdir/lib$name.la"
6370               fi
6371             else
6372               if test -f "$additional_libdir/lib$name.$libext"; then
6373                 found_dir="$additional_libdir"
6374                 found_a="$additional_libdir/lib$name.$libext"
6375                 if test -f "$additional_libdir/lib$name.la"; then
6376                   found_la="$additional_libdir/lib$name.la"
6377                 fi
6378               fi
6379             fi
6380           fi
6381           if test "X$found_dir" = "X"; then
6382             for x in $LDFLAGS $LTLIBICONV; do
6383
6384   acl_save_prefix="$prefix"
6385   prefix="$acl_final_prefix"
6386   acl_save_exec_prefix="$exec_prefix"
6387   exec_prefix="$acl_final_exec_prefix"
6388   eval x=\"$x\"
6389   exec_prefix="$acl_save_exec_prefix"
6390   prefix="$acl_save_prefix"
6391
6392               case "$x" in
6393                 -L*)
6394                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6395                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6396                     found_dir="$dir"
6397                     found_so="$dir/lib$name.$shlibext"
6398                     if test -f "$dir/lib$name.la"; then
6399                       found_la="$dir/lib$name.la"
6400                     fi
6401                   else
6402                     if test -f "$dir/lib$name.$libext"; then
6403                       found_dir="$dir"
6404                       found_a="$dir/lib$name.$libext"
6405                       if test -f "$dir/lib$name.la"; then
6406                         found_la="$dir/lib$name.la"
6407                       fi
6408                     fi
6409                   fi
6410                   ;;
6411               esac
6412               if test "X$found_dir" != "X"; then
6413                 break
6414               fi
6415             done
6416           fi
6417           if test "X$found_dir" != "X"; then
6418                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6419             if test "X$found_so" != "X"; then
6420                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6421                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6422               else
6423                                                                                 haveit=
6424                 for x in $ltrpathdirs; do
6425                   if test "X$x" = "X$found_dir"; then
6426                     haveit=yes
6427                     break
6428                   fi
6429                 done
6430                 if test -z "$haveit"; then
6431                   ltrpathdirs="$ltrpathdirs $found_dir"
6432                 fi
6433                                 if test "$hardcode_direct" = yes; then
6434                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6435                 else
6436                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6437                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6438                                                             haveit=
6439                     for x in $rpathdirs; do
6440                       if test "X$x" = "X$found_dir"; then
6441                         haveit=yes
6442                         break
6443                       fi
6444                     done
6445                     if test -z "$haveit"; then
6446                       rpathdirs="$rpathdirs $found_dir"
6447                     fi
6448                   else
6449                                                                                 haveit=
6450                     for x in $LDFLAGS $LIBICONV; do
6451
6452   acl_save_prefix="$prefix"
6453   prefix="$acl_final_prefix"
6454   acl_save_exec_prefix="$exec_prefix"
6455   exec_prefix="$acl_final_exec_prefix"
6456   eval x=\"$x\"
6457   exec_prefix="$acl_save_exec_prefix"
6458   prefix="$acl_save_prefix"
6459
6460                       if test "X$x" = "X-L$found_dir"; then
6461                         haveit=yes
6462                         break
6463                       fi
6464                     done
6465                     if test -z "$haveit"; then
6466                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6467                     fi
6468                     if test "$hardcode_minus_L" != no; then
6469                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6470                     else
6471                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6472                     fi
6473                   fi
6474                 fi
6475               fi
6476             else
6477               if test "X$found_a" != "X"; then
6478                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6479               else
6480                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6481               fi
6482             fi
6483                         additional_includedir=
6484             case "$found_dir" in
6485               */lib | */lib/)
6486                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6487                 additional_includedir="$basedir/include"
6488                 ;;
6489             esac
6490             if test "X$additional_includedir" != "X"; then
6491                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6492                 haveit=
6493                 if test "X$additional_includedir" = "X/usr/local/include"; then
6494                   if test -n "$GCC"; then
6495                     case $host_os in
6496                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6497                     esac
6498                   fi
6499                 fi
6500                 if test -z "$haveit"; then
6501                   for x in $CPPFLAGS $INCICONV; do
6502
6503   acl_save_prefix="$prefix"
6504   prefix="$acl_final_prefix"
6505   acl_save_exec_prefix="$exec_prefix"
6506   exec_prefix="$acl_final_exec_prefix"
6507   eval x=\"$x\"
6508   exec_prefix="$acl_save_exec_prefix"
6509   prefix="$acl_save_prefix"
6510
6511                     if test "X$x" = "X-I$additional_includedir"; then
6512                       haveit=yes
6513                       break
6514                     fi
6515                   done
6516                   if test -z "$haveit"; then
6517                     if test -d "$additional_includedir"; then
6518                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6519                     fi
6520                   fi
6521                 fi
6522               fi
6523             fi
6524                         if test -n "$found_la"; then
6525                                                         save_libdir="$libdir"
6526               case "$found_la" in
6527                 */* | *\\*) . "$found_la" ;;
6528                 *) . "./$found_la" ;;
6529               esac
6530               libdir="$save_libdir"
6531                             for dep in $dependency_libs; do
6532                 case "$dep" in
6533                   -L*)
6534                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6535                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6536                       haveit=
6537                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6538                         if test -n "$GCC"; then
6539                           case $host_os in
6540                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6541                           esac
6542                         fi
6543                       fi
6544                       if test -z "$haveit"; then
6545                         haveit=
6546                         for x in $LDFLAGS $LIBICONV; do
6547
6548   acl_save_prefix="$prefix"
6549   prefix="$acl_final_prefix"
6550   acl_save_exec_prefix="$exec_prefix"
6551   exec_prefix="$acl_final_exec_prefix"
6552   eval x=\"$x\"
6553   exec_prefix="$acl_save_exec_prefix"
6554   prefix="$acl_save_prefix"
6555
6556                           if test "X$x" = "X-L$additional_libdir"; then
6557                             haveit=yes
6558                             break
6559                           fi
6560                         done
6561                         if test -z "$haveit"; then
6562                           if test -d "$additional_libdir"; then
6563                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6564                           fi
6565                         fi
6566                         haveit=
6567                         for x in $LDFLAGS $LTLIBICONV; do
6568
6569   acl_save_prefix="$prefix"
6570   prefix="$acl_final_prefix"
6571   acl_save_exec_prefix="$exec_prefix"
6572   exec_prefix="$acl_final_exec_prefix"
6573   eval x=\"$x\"
6574   exec_prefix="$acl_save_exec_prefix"
6575   prefix="$acl_save_prefix"
6576
6577                           if test "X$x" = "X-L$additional_libdir"; then
6578                             haveit=yes
6579                             break
6580                           fi
6581                         done
6582                         if test -z "$haveit"; then
6583                           if test -d "$additional_libdir"; then
6584                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6585                           fi
6586                         fi
6587                       fi
6588                     fi
6589                     ;;
6590                   -R*)
6591                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6592                     if test "$enable_rpath" != no; then
6593                                                                   haveit=
6594                       for x in $rpathdirs; do
6595                         if test "X$x" = "X$dir"; then
6596                           haveit=yes
6597                           break
6598                         fi
6599                       done
6600                       if test -z "$haveit"; then
6601                         rpathdirs="$rpathdirs $dir"
6602                       fi
6603                                                                   haveit=
6604                       for x in $ltrpathdirs; do
6605                         if test "X$x" = "X$dir"; then
6606                           haveit=yes
6607                           break
6608                         fi
6609                       done
6610                       if test -z "$haveit"; then
6611                         ltrpathdirs="$ltrpathdirs $dir"
6612                       fi
6613                     fi
6614                     ;;
6615                   -l*)
6616                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6617                     ;;
6618                   *.la)
6619                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6620                     ;;
6621                   *)
6622                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6623                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6624                     ;;
6625                 esac
6626               done
6627             fi
6628           else
6629                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6630             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6631           fi
6632         fi
6633       fi
6634     done
6635   done
6636   if test "X$rpathdirs" != "X"; then
6637     if test -n "$hardcode_libdir_separator"; then
6638                         alldirs=
6639       for found_dir in $rpathdirs; do
6640         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6641       done
6642             acl_save_libdir="$libdir"
6643       libdir="$alldirs"
6644       eval flag=\"$hardcode_libdir_flag_spec\"
6645       libdir="$acl_save_libdir"
6646       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6647     else
6648             for found_dir in $rpathdirs; do
6649         acl_save_libdir="$libdir"
6650         libdir="$found_dir"
6651         eval flag=\"$hardcode_libdir_flag_spec\"
6652         libdir="$acl_save_libdir"
6653         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6654       done
6655     fi
6656   fi
6657   if test "X$ltrpathdirs" != "X"; then
6658             for found_dir in $ltrpathdirs; do
6659       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6660     done
6661   fi
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6681 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6682 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6683   echo $ECHO_N "(cached) $ECHO_C" >&6
6684 else
6685   gt_save_CPPFLAGS="$CPPFLAGS"
6686      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6687      gt_save_LIBS="$LIBS"
6688      LIBS="$LIBS -framework CoreFoundation"
6689      cat >conftest.$ac_ext <<_ACEOF
6690 /* confdefs.h.  */
6691 _ACEOF
6692 cat confdefs.h >>conftest.$ac_ext
6693 cat >>conftest.$ac_ext <<_ACEOF
6694 /* end confdefs.h.  */
6695 #include <CFPreferences.h>
6696 int
6697 main ()
6698 {
6699 CFPreferencesCopyAppValue(NULL, NULL)
6700   ;
6701   return 0;
6702 }
6703 _ACEOF
6704 rm -f conftest.$ac_objext conftest$ac_exeext
6705 if { (ac_try="$ac_link"
6706 case "(($ac_try" in
6707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6708   *) ac_try_echo=$ac_try;;
6709 esac
6710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6711   (eval "$ac_link") 2>conftest.er1
6712   ac_status=$?
6713   grep -v '^ *+' conftest.er1 >conftest.err
6714   rm -f conftest.er1
6715   cat conftest.err >&5
6716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717   (exit $ac_status); } &&
6718          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6719   { (case "(($ac_try" in
6720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721   *) ac_try_echo=$ac_try;;
6722 esac
6723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6724   (eval "$ac_try") 2>&5
6725   ac_status=$?
6726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727   (exit $ac_status); }; } &&
6728          { ac_try='test -s conftest$ac_exeext'
6729   { (case "(($ac_try" in
6730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6731   *) ac_try_echo=$ac_try;;
6732 esac
6733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6734   (eval "$ac_try") 2>&5
6735   ac_status=$?
6736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737   (exit $ac_status); }; }; then
6738   gt_cv_func_CFPreferencesCopyAppValue=yes
6739 else
6740   echo "$as_me: failed program was:" >&5
6741 sed 's/^/| /' conftest.$ac_ext >&5
6742
6743         gt_cv_func_CFPreferencesCopyAppValue=no
6744 fi
6745
6746 rm -f core conftest.err conftest.$ac_objext \
6747       conftest$ac_exeext conftest.$ac_ext
6748      CPPFLAGS="$gt_save_CPPFLAGS"
6749      LIBS="$gt_save_LIBS"
6750 fi
6751 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6752 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6753   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6754
6755 cat >>confdefs.h <<\_ACEOF
6756 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6757 _ACEOF
6758
6759   fi
6760     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6761 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6762 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   gt_save_CPPFLAGS="$CPPFLAGS"
6766      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6767      gt_save_LIBS="$LIBS"
6768      LIBS="$LIBS -framework CoreFoundation"
6769      cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h.  */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h.  */
6775 #include <CFLocale.h>
6776 int
6777 main ()
6778 {
6779 CFLocaleCopyCurrent();
6780   ;
6781   return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6786 case "(($ac_try" in
6787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788   *) ac_try_echo=$ac_try;;
6789 esac
6790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6791   (eval "$ac_link") 2>conftest.er1
6792   ac_status=$?
6793   grep -v '^ *+' conftest.er1 >conftest.err
6794   rm -f conftest.er1
6795   cat conftest.err >&5
6796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797   (exit $ac_status); } &&
6798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6799   { (case "(($ac_try" in
6800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801   *) ac_try_echo=$ac_try;;
6802 esac
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804   (eval "$ac_try") 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; } &&
6808          { ac_try='test -s conftest$ac_exeext'
6809   { (case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814   (eval "$ac_try") 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); }; }; then
6818   gt_cv_func_CFLocaleCopyCurrent=yes
6819 else
6820   echo "$as_me: failed program was:" >&5
6821 sed 's/^/| /' conftest.$ac_ext >&5
6822
6823         gt_cv_func_CFLocaleCopyCurrent=no
6824 fi
6825
6826 rm -f core conftest.err conftest.$ac_objext \
6827       conftest$ac_exeext conftest.$ac_ext
6828      CPPFLAGS="$gt_save_CPPFLAGS"
6829      LIBS="$gt_save_LIBS"
6830 fi
6831 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6832 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6833   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6834
6835 cat >>confdefs.h <<\_ACEOF
6836 #define HAVE_CFLOCALECOPYCURRENT 1
6837 _ACEOF
6838
6839   fi
6840   INTL_MACOSX_LIBS=
6841   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6842     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6843   fi
6844
6845
6846
6847
6848   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6849 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6850     # Check whether --enable-nls was given.
6851 if test "${enable_nls+set}" = set; then
6852   enableval=$enable_nls; USE_NLS=$enableval
6853 else
6854   USE_NLS=yes
6855 fi
6856
6857   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6858 echo "${ECHO_T}$USE_NLS" >&6; }
6859
6860
6861
6862
6863   LIBINTL=
6864   LTLIBINTL=
6865   POSUB=
6866
6867     if test "$USE_NLS" = "yes"; then
6868     gt_use_preinstalled_gnugettext=no
6869
6870
6871
6872
6873
6874
6875         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6876 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6877 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6878   echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880   cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h.  */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h.  */
6886 #include <libintl.h>
6887 extern int _nl_msg_cat_cntr;
6888 extern int *_nl_domain_bindings;
6889 int
6890 main ()
6891 {
6892 bindtextdomain ("", "");
6893 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6894   ;
6895   return 0;
6896 }
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6900 case "(($ac_try" in
6901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902   *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905   (eval "$ac_link") 2>conftest.er1
6906   ac_status=$?
6907   grep -v '^ *+' conftest.er1 >conftest.err
6908   rm -f conftest.er1
6909   cat conftest.err >&5
6910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911   (exit $ac_status); } &&
6912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6913   { (case "(($ac_try" in
6914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6915   *) ac_try_echo=$ac_try;;
6916 esac
6917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6918   (eval "$ac_try") 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; } &&
6922          { ac_try='test -s conftest$ac_exeext'
6923   { (case "(($ac_try" in
6924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6925   *) ac_try_echo=$ac_try;;
6926 esac
6927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6928   (eval "$ac_try") 2>&5
6929   ac_status=$?
6930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931   (exit $ac_status); }; }; then
6932   gt_cv_func_gnugettext1_libc=yes
6933 else
6934   echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937         gt_cv_func_gnugettext1_libc=no
6938 fi
6939
6940 rm -f core conftest.err conftest.$ac_objext \
6941       conftest$ac_exeext conftest.$ac_ext
6942 fi
6943 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6944 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6945
6946         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6947
6948
6949
6950
6951
6952           am_save_CPPFLAGS="$CPPFLAGS"
6953
6954   for element in $INCICONV; do
6955     haveit=
6956     for x in $CPPFLAGS; do
6957
6958   acl_save_prefix="$prefix"
6959   prefix="$acl_final_prefix"
6960   acl_save_exec_prefix="$exec_prefix"
6961   exec_prefix="$acl_final_exec_prefix"
6962   eval x=\"$x\"
6963   exec_prefix="$acl_save_exec_prefix"
6964   prefix="$acl_save_prefix"
6965
6966       if test "X$x" = "X$element"; then
6967         haveit=yes
6968         break
6969       fi
6970     done
6971     if test -z "$haveit"; then
6972       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6973     fi
6974   done
6975
6976
6977   { echo "$as_me:$LINENO: checking for iconv" >&5
6978 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6979 if test "${am_cv_func_iconv+set}" = set; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982
6983     am_cv_func_iconv="no, consider installing GNU libiconv"
6984     am_cv_lib_iconv=no
6985     cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <stdlib.h>
6992 #include <iconv.h>
6993 int
6994 main ()
6995 {
6996 iconv_t cd = iconv_open("","");
6997        iconv(cd,NULL,NULL,NULL,NULL);
6998        iconv_close(cd);
6999   ;
7000   return 0;
7001 }
7002 _ACEOF
7003 rm -f conftest.$ac_objext conftest$ac_exeext
7004 if { (ac_try="$ac_link"
7005 case "(($ac_try" in
7006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7007   *) ac_try_echo=$ac_try;;
7008 esac
7009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7010   (eval "$ac_link") 2>conftest.er1
7011   ac_status=$?
7012   grep -v '^ *+' conftest.er1 >conftest.err
7013   rm -f conftest.er1
7014   cat conftest.err >&5
7015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016   (exit $ac_status); } &&
7017          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7018   { (case "(($ac_try" in
7019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7020   *) ac_try_echo=$ac_try;;
7021 esac
7022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7023   (eval "$ac_try") 2>&5
7024   ac_status=$?
7025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7026   (exit $ac_status); }; } &&
7027          { ac_try='test -s conftest$ac_exeext'
7028   { (case "(($ac_try" in
7029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7030   *) ac_try_echo=$ac_try;;
7031 esac
7032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7033   (eval "$ac_try") 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); }; }; then
7037   am_cv_func_iconv=yes
7038 else
7039   echo "$as_me: failed program was:" >&5
7040 sed 's/^/| /' conftest.$ac_ext >&5
7041
7042
7043 fi
7044
7045 rm -f core conftest.err conftest.$ac_objext \
7046       conftest$ac_exeext conftest.$ac_ext
7047     if test "$am_cv_func_iconv" != yes; then
7048       am_save_LIBS="$LIBS"
7049       LIBS="$LIBS $LIBICONV"
7050       cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 #include <stdlib.h>
7057 #include <iconv.h>
7058 int
7059 main ()
7060 {
7061 iconv_t cd = iconv_open("","");
7062          iconv(cd,NULL,NULL,NULL,NULL);
7063          iconv_close(cd);
7064   ;
7065   return 0;
7066 }
7067 _ACEOF
7068 rm -f conftest.$ac_objext conftest$ac_exeext
7069 if { (ac_try="$ac_link"
7070 case "(($ac_try" in
7071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7072   *) ac_try_echo=$ac_try;;
7073 esac
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075   (eval "$ac_link") 2>conftest.er1
7076   ac_status=$?
7077   grep -v '^ *+' conftest.er1 >conftest.err
7078   rm -f conftest.er1
7079   cat conftest.err >&5
7080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081   (exit $ac_status); } &&
7082          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7083   { (case "(($ac_try" in
7084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085   *) ac_try_echo=$ac_try;;
7086 esac
7087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7088   (eval "$ac_try") 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (case "(($ac_try" in
7094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095   *) ac_try_echo=$ac_try;;
7096 esac
7097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7098   (eval "$ac_try") 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   am_cv_lib_iconv=yes
7103         am_cv_func_iconv=yes
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108
7109 fi
7110
7111 rm -f core conftest.err conftest.$ac_objext \
7112       conftest$ac_exeext conftest.$ac_ext
7113       LIBS="$am_save_LIBS"
7114     fi
7115
7116 fi
7117 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7118 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7119   if test "$am_cv_func_iconv" = yes; then
7120
7121 cat >>confdefs.h <<\_ACEOF
7122 #define HAVE_ICONV 1
7123 _ACEOF
7124
7125   fi
7126   if test "$am_cv_lib_iconv" = yes; then
7127     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7128 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7129     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7130 echo "${ECHO_T}$LIBICONV" >&6; }
7131   else
7132             CPPFLAGS="$am_save_CPPFLAGS"
7133     LIBICONV=
7134     LTLIBICONV=
7135   fi
7136
7137
7138
7139
7140
7141
7142     use_additional=yes
7143
7144   acl_save_prefix="$prefix"
7145   prefix="$acl_final_prefix"
7146   acl_save_exec_prefix="$exec_prefix"
7147   exec_prefix="$acl_final_exec_prefix"
7148
7149     eval additional_includedir=\"$includedir\"
7150     eval additional_libdir=\"$libdir\"
7151
7152   exec_prefix="$acl_save_exec_prefix"
7153   prefix="$acl_save_prefix"
7154
7155
7156 # Check whether --with-libintl-prefix was given.
7157 if test "${with_libintl_prefix+set}" = set; then
7158   withval=$with_libintl_prefix;
7159     if test "X$withval" = "Xno"; then
7160       use_additional=no
7161     else
7162       if test "X$withval" = "X"; then
7163
7164   acl_save_prefix="$prefix"
7165   prefix="$acl_final_prefix"
7166   acl_save_exec_prefix="$exec_prefix"
7167   exec_prefix="$acl_final_exec_prefix"
7168
7169           eval additional_includedir=\"$includedir\"
7170           eval additional_libdir=\"$libdir\"
7171
7172   exec_prefix="$acl_save_exec_prefix"
7173   prefix="$acl_save_prefix"
7174
7175       else
7176         additional_includedir="$withval/include"
7177         additional_libdir="$withval/lib"
7178       fi
7179     fi
7180
7181 fi
7182
7183       LIBINTL=
7184   LTLIBINTL=
7185   INCINTL=
7186   rpathdirs=
7187   ltrpathdirs=
7188   names_already_handled=
7189   names_next_round='intl '
7190   while test -n "$names_next_round"; do
7191     names_this_round="$names_next_round"
7192     names_next_round=
7193     for name in $names_this_round; do
7194       already_handled=
7195       for n in $names_already_handled; do
7196         if test "$n" = "$name"; then
7197           already_handled=yes
7198           break
7199         fi
7200       done
7201       if test -z "$already_handled"; then
7202         names_already_handled="$names_already_handled $name"
7203                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7204         eval value=\"\$HAVE_LIB$uppername\"
7205         if test -n "$value"; then
7206           if test "$value" = yes; then
7207             eval value=\"\$LIB$uppername\"
7208             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7209             eval value=\"\$LTLIB$uppername\"
7210             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7211           else
7212                                     :
7213           fi
7214         else
7215                               found_dir=
7216           found_la=
7217           found_so=
7218           found_a=
7219           if test $use_additional = yes; then
7220             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7221               found_dir="$additional_libdir"
7222               found_so="$additional_libdir/lib$name.$shlibext"
7223               if test -f "$additional_libdir/lib$name.la"; then
7224                 found_la="$additional_libdir/lib$name.la"
7225               fi
7226             else
7227               if test -f "$additional_libdir/lib$name.$libext"; then
7228                 found_dir="$additional_libdir"
7229                 found_a="$additional_libdir/lib$name.$libext"
7230                 if test -f "$additional_libdir/lib$name.la"; then
7231                   found_la="$additional_libdir/lib$name.la"
7232                 fi
7233               fi
7234             fi
7235           fi
7236           if test "X$found_dir" = "X"; then
7237             for x in $LDFLAGS $LTLIBINTL; do
7238
7239   acl_save_prefix="$prefix"
7240   prefix="$acl_final_prefix"
7241   acl_save_exec_prefix="$exec_prefix"
7242   exec_prefix="$acl_final_exec_prefix"
7243   eval x=\"$x\"
7244   exec_prefix="$acl_save_exec_prefix"
7245   prefix="$acl_save_prefix"
7246
7247               case "$x" in
7248                 -L*)
7249                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7250                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7251                     found_dir="$dir"
7252                     found_so="$dir/lib$name.$shlibext"
7253                     if test -f "$dir/lib$name.la"; then
7254                       found_la="$dir/lib$name.la"
7255                     fi
7256                   else
7257                     if test -f "$dir/lib$name.$libext"; then
7258                       found_dir="$dir"
7259                       found_a="$dir/lib$name.$libext"
7260                       if test -f "$dir/lib$name.la"; then
7261                         found_la="$dir/lib$name.la"
7262                       fi
7263                     fi
7264                   fi
7265                   ;;
7266               esac
7267               if test "X$found_dir" != "X"; then
7268                 break
7269               fi
7270             done
7271           fi
7272           if test "X$found_dir" != "X"; then
7273                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7274             if test "X$found_so" != "X"; then
7275                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7276                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7277               else
7278                                                                                 haveit=
7279                 for x in $ltrpathdirs; do
7280                   if test "X$x" = "X$found_dir"; then
7281                     haveit=yes
7282                     break
7283                   fi
7284                 done
7285                 if test -z "$haveit"; then
7286                   ltrpathdirs="$ltrpathdirs $found_dir"
7287                 fi
7288                                 if test "$hardcode_direct" = yes; then
7289                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7290                 else
7291                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7292                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7293                                                             haveit=
7294                     for x in $rpathdirs; do
7295                       if test "X$x" = "X$found_dir"; then
7296                         haveit=yes
7297                         break
7298                       fi
7299                     done
7300                     if test -z "$haveit"; then
7301                       rpathdirs="$rpathdirs $found_dir"
7302                     fi
7303                   else
7304                                                                                 haveit=
7305                     for x in $LDFLAGS $LIBINTL; do
7306
7307   acl_save_prefix="$prefix"
7308   prefix="$acl_final_prefix"
7309   acl_save_exec_prefix="$exec_prefix"
7310   exec_prefix="$acl_final_exec_prefix"
7311   eval x=\"$x\"
7312   exec_prefix="$acl_save_exec_prefix"
7313   prefix="$acl_save_prefix"
7314
7315                       if test "X$x" = "X-L$found_dir"; then
7316                         haveit=yes
7317                         break
7318                       fi
7319                     done
7320                     if test -z "$haveit"; then
7321                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7322                     fi
7323                     if test "$hardcode_minus_L" != no; then
7324                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7325                     else
7326                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7327                     fi
7328                   fi
7329                 fi
7330               fi
7331             else
7332               if test "X$found_a" != "X"; then
7333                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7334               else
7335                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7336               fi
7337             fi
7338                         additional_includedir=
7339             case "$found_dir" in
7340               */lib | */lib/)
7341                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7342                 additional_includedir="$basedir/include"
7343                 ;;
7344             esac
7345             if test "X$additional_includedir" != "X"; then
7346                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7347                 haveit=
7348                 if test "X$additional_includedir" = "X/usr/local/include"; then
7349                   if test -n "$GCC"; then
7350                     case $host_os in
7351                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7352                     esac
7353                   fi
7354                 fi
7355                 if test -z "$haveit"; then
7356                   for x in $CPPFLAGS $INCINTL; do
7357
7358   acl_save_prefix="$prefix"
7359   prefix="$acl_final_prefix"
7360   acl_save_exec_prefix="$exec_prefix"
7361   exec_prefix="$acl_final_exec_prefix"
7362   eval x=\"$x\"
7363   exec_prefix="$acl_save_exec_prefix"
7364   prefix="$acl_save_prefix"
7365
7366                     if test "X$x" = "X-I$additional_includedir"; then
7367                       haveit=yes
7368                       break
7369                     fi
7370                   done
7371                   if test -z "$haveit"; then
7372                     if test -d "$additional_includedir"; then
7373                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7374                     fi
7375                   fi
7376                 fi
7377               fi
7378             fi
7379                         if test -n "$found_la"; then
7380                                                         save_libdir="$libdir"
7381               case "$found_la" in
7382                 */* | *\\*) . "$found_la" ;;
7383                 *) . "./$found_la" ;;
7384               esac
7385               libdir="$save_libdir"
7386                             for dep in $dependency_libs; do
7387                 case "$dep" in
7388                   -L*)
7389                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7390                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7391                       haveit=
7392                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7393                         if test -n "$GCC"; then
7394                           case $host_os in
7395                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7396                           esac
7397                         fi
7398                       fi
7399                       if test -z "$haveit"; then
7400                         haveit=
7401                         for x in $LDFLAGS $LIBINTL; do
7402
7403   acl_save_prefix="$prefix"
7404   prefix="$acl_final_prefix"
7405   acl_save_exec_prefix="$exec_prefix"
7406   exec_prefix="$acl_final_exec_prefix"
7407   eval x=\"$x\"
7408   exec_prefix="$acl_save_exec_prefix"
7409   prefix="$acl_save_prefix"
7410
7411                           if test "X$x" = "X-L$additional_libdir"; then
7412                             haveit=yes
7413                             break
7414                           fi
7415                         done
7416                         if test -z "$haveit"; then
7417                           if test -d "$additional_libdir"; then
7418                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7419                           fi
7420                         fi
7421                         haveit=
7422                         for x in $LDFLAGS $LTLIBINTL; do
7423
7424   acl_save_prefix="$prefix"
7425   prefix="$acl_final_prefix"
7426   acl_save_exec_prefix="$exec_prefix"
7427   exec_prefix="$acl_final_exec_prefix"
7428   eval x=\"$x\"
7429   exec_prefix="$acl_save_exec_prefix"
7430   prefix="$acl_save_prefix"
7431
7432                           if test "X$x" = "X-L$additional_libdir"; then
7433                             haveit=yes
7434                             break
7435                           fi
7436                         done
7437                         if test -z "$haveit"; then
7438                           if test -d "$additional_libdir"; then
7439                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7440                           fi
7441                         fi
7442                       fi
7443                     fi
7444                     ;;
7445                   -R*)
7446                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7447                     if test "$enable_rpath" != no; then
7448                                                                   haveit=
7449                       for x in $rpathdirs; do
7450                         if test "X$x" = "X$dir"; then
7451                           haveit=yes
7452                           break
7453                         fi
7454                       done
7455                       if test -z "$haveit"; then
7456                         rpathdirs="$rpathdirs $dir"
7457                       fi
7458                                                                   haveit=
7459                       for x in $ltrpathdirs; do
7460                         if test "X$x" = "X$dir"; then
7461                           haveit=yes
7462                           break
7463                         fi
7464                       done
7465                       if test -z "$haveit"; then
7466                         ltrpathdirs="$ltrpathdirs $dir"
7467                       fi
7468                     fi
7469                     ;;
7470                   -l*)
7471                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7472                     ;;
7473                   *.la)
7474                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7475                     ;;
7476                   *)
7477                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7478                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7479                     ;;
7480                 esac
7481               done
7482             fi
7483           else
7484                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7485             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7486           fi
7487         fi
7488       fi
7489     done
7490   done
7491   if test "X$rpathdirs" != "X"; then
7492     if test -n "$hardcode_libdir_separator"; then
7493                         alldirs=
7494       for found_dir in $rpathdirs; do
7495         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7496       done
7497             acl_save_libdir="$libdir"
7498       libdir="$alldirs"
7499       eval flag=\"$hardcode_libdir_flag_spec\"
7500       libdir="$acl_save_libdir"
7501       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7502     else
7503             for found_dir in $rpathdirs; do
7504         acl_save_libdir="$libdir"
7505         libdir="$found_dir"
7506         eval flag=\"$hardcode_libdir_flag_spec\"
7507         libdir="$acl_save_libdir"
7508         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7509       done
7510     fi
7511   fi
7512   if test "X$ltrpathdirs" != "X"; then
7513             for found_dir in $ltrpathdirs; do
7514       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7515     done
7516   fi
7517
7518           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7519 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7520 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7521   echo $ECHO_N "(cached) $ECHO_C" >&6
7522 else
7523   gt_save_CPPFLAGS="$CPPFLAGS"
7524             CPPFLAGS="$CPPFLAGS $INCINTL"
7525             gt_save_LIBS="$LIBS"
7526             LIBS="$LIBS $LIBINTL"
7527                         cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h.  */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h.  */
7533 #include <libintl.h>
7534 extern int _nl_msg_cat_cntr;
7535 extern
7536 #ifdef __cplusplus
7537 "C"
7538 #endif
7539 const char *_nl_expand_alias (const char *);
7540 int
7541 main ()
7542 {
7543 bindtextdomain ("", "");
7544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7545   ;
7546   return 0;
7547 }
7548 _ACEOF
7549 rm -f conftest.$ac_objext conftest$ac_exeext
7550 if { (ac_try="$ac_link"
7551 case "(($ac_try" in
7552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7553   *) ac_try_echo=$ac_try;;
7554 esac
7555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7556   (eval "$ac_link") 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } &&
7563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7564   { (case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7569   (eval "$ac_try") 2>&5
7570   ac_status=$?
7571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572   (exit $ac_status); }; } &&
7573          { ac_try='test -s conftest$ac_exeext'
7574   { (case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579   (eval "$ac_try") 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   gt_cv_func_gnugettext1_libintl=yes
7584 else
7585   echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588         gt_cv_func_gnugettext1_libintl=no
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext \
7592       conftest$ac_exeext conftest.$ac_ext
7593                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7594               LIBS="$LIBS $LIBICONV"
7595               cat >conftest.$ac_ext <<_ACEOF
7596 /* confdefs.h.  */
7597 _ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h.  */
7601 #include <libintl.h>
7602 extern int _nl_msg_cat_cntr;
7603 extern
7604 #ifdef __cplusplus
7605 "C"
7606 #endif
7607 const char *_nl_expand_alias (const char *);
7608 int
7609 main ()
7610 {
7611 bindtextdomain ("", "");
7612 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7613   ;
7614   return 0;
7615 }
7616 _ACEOF
7617 rm -f conftest.$ac_objext conftest$ac_exeext
7618 if { (ac_try="$ac_link"
7619 case "(($ac_try" in
7620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621   *) ac_try_echo=$ac_try;;
7622 esac
7623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7624   (eval "$ac_link") 2>conftest.er1
7625   ac_status=$?
7626   grep -v '^ *+' conftest.er1 >conftest.err
7627   rm -f conftest.er1
7628   cat conftest.err >&5
7629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630   (exit $ac_status); } &&
7631          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7632   { (case "(($ac_try" in
7633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634   *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637   (eval "$ac_try") 2>&5
7638   ac_status=$?
7639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); }; } &&
7641          { ac_try='test -s conftest$ac_exeext'
7642   { (case "(($ac_try" in
7643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7644   *) ac_try_echo=$ac_try;;
7645 esac
7646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7647   (eval "$ac_try") 2>&5
7648   ac_status=$?
7649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650   (exit $ac_status); }; }; then
7651   LIBINTL="$LIBINTL $LIBICONV"
7652                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7653                 gt_cv_func_gnugettext1_libintl=yes
7654
7655 else
7656   echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659
7660 fi
7661
7662 rm -f core conftest.err conftest.$ac_objext \
7663       conftest$ac_exeext conftest.$ac_ext
7664             fi
7665             CPPFLAGS="$gt_save_CPPFLAGS"
7666             LIBS="$gt_save_LIBS"
7667 fi
7668 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7669 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7670         fi
7671
7672                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7673            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7674                 && test "$PACKAGE" != gettext-runtime \
7675                 && test "$PACKAGE" != gettext-tools; }; then
7676           gt_use_preinstalled_gnugettext=yes
7677         else
7678                     LIBINTL=
7679           LTLIBINTL=
7680           INCINTL=
7681         fi
7682
7683
7684
7685     if test -n "$INTL_MACOSX_LIBS"; then
7686       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7687          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7688                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7689         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7690       fi
7691     fi
7692
7693     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7694        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7695
7696 cat >>confdefs.h <<\_ACEOF
7697 #define ENABLE_NLS 1
7698 _ACEOF
7699
7700     else
7701       USE_NLS=no
7702     fi
7703   fi
7704
7705   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7706 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7707   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7708 echo "${ECHO_T}$USE_NLS" >&6; }
7709   if test "$USE_NLS" = "yes"; then
7710     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7711 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7712     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7713       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7714         gt_source="external libintl"
7715       else
7716         gt_source="libc"
7717       fi
7718     else
7719       gt_source="included intl directory"
7720     fi
7721     { echo "$as_me:$LINENO: result: $gt_source" >&5
7722 echo "${ECHO_T}$gt_source" >&6; }
7723   fi
7724
7725   if test "$USE_NLS" = "yes"; then
7726
7727     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7728       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7729         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7730 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7731         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7732 echo "${ECHO_T}$LIBINTL" >&6; }
7733
7734   for element in $INCINTL; do
7735     haveit=
7736     for x in $CPPFLAGS; do
7737
7738   acl_save_prefix="$prefix"
7739   prefix="$acl_final_prefix"
7740   acl_save_exec_prefix="$exec_prefix"
7741   exec_prefix="$acl_final_exec_prefix"
7742   eval x=\"$x\"
7743   exec_prefix="$acl_save_exec_prefix"
7744   prefix="$acl_save_prefix"
7745
7746       if test "X$x" = "X$element"; then
7747         haveit=yes
7748         break
7749       fi
7750     done
7751     if test -z "$haveit"; then
7752       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7753     fi
7754   done
7755
7756       fi
7757
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_GETTEXT 1
7761 _ACEOF
7762
7763
7764 cat >>confdefs.h <<\_ACEOF
7765 #define HAVE_DCGETTEXT 1
7766 _ACEOF
7767
7768     fi
7769
7770         POSUB=po
7771   fi
7772
7773
7774
7775     INTLLIBS="$LIBINTL"
7776
7777
7778
7779
7780
7781
7782 if test x${prefix} = xNONE ; then
7783    if test `eval echo ${datadir}` = NONE/share ; then
7784       datadir=/usr/share
7785    fi
7786 fi
7787
7788 # ------------------------------------------------------------------
7789 #  If the user has not set --prefix, we set our default to nothing.
7790 #  In this case, if the user has not set --sysconfdir, we set it
7791 #  to the package default of /etc/bacula.  If either --prefix or
7792 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7793 # ------------------------------------------------------------------
7794 if test x${prefix} = xNONE ; then
7795     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7796         sysconfdir=/etc/bacula
7797     fi
7798     prefix=
7799 fi
7800 sysconfdir=`eval echo ${sysconfdir}`
7801 datadir=`eval echo ${datadir}`
7802 localedir=`eval echo ${datadir}/locale`
7803 cat >>confdefs.h <<_ACEOF
7804 #define LOCALEDIR "$localedir"
7805 _ACEOF
7806
7807 cat >>confdefs.h <<_ACEOF
7808 #define SYSCONFDIR "$sysconfdir"
7809 _ACEOF
7810
7811
7812 # -------------------------------------------------------------------------
7813 #  If the user has not set --exec-prefix, we default to ${prefix}
7814 # -------------------------------------------------------------------------
7815 if test x${exec_prefix} = xNONE ; then
7816     exec_prefix=${prefix}
7817 fi
7818
7819 # ------------------------------------------------------------------
7820 # If the user has not set --sbindir, we set our default as /sbin
7821 # ------------------------------------------------------------------
7822 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7823     sbindir=${exec_prefix}/sbin
7824 fi
7825 sbindir=`eval echo ${sbindir}`
7826
7827 # -------------------------------------------------------------------------
7828 #  If the user has not set --mandir, we default to /usr/share/man
7829 # -------------------------------------------------------------------------
7830 if test x$mandir = x'${prefix}/man' ; then
7831    mandir=/usr/share/man
7832 fi
7833
7834
7835 # ------------------------------------------------------------------
7836 # All list of languages for which a translation exist. Each
7837 #  language is separated by a space.
7838 # ------------------------------------------------------------------
7839 ALL_LINGUAS=""
7840
7841 for ac_prog in msgfmt
7842 do
7843   # Extract the first word of "$ac_prog", so it can be a program name with args.
7844 set dummy $ac_prog; ac_word=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_MSGFMT+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   case $MSGFMT in
7851   [\\/]* | ?:[\\/]*)
7852   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7853   ;;
7854   *)
7855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7856 for as_dir in $PATH
7857 do
7858   IFS=$as_save_IFS
7859   test -z "$as_dir" && as_dir=.
7860   for ac_exec_ext in '' $ac_executable_extensions; do
7861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864     break 2
7865   fi
7866 done
7867 done
7868 IFS=$as_save_IFS
7869
7870   ;;
7871 esac
7872 fi
7873 MSGFMT=$ac_cv_path_MSGFMT
7874 if test -n "$MSGFMT"; then
7875   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7876 echo "${ECHO_T}$MSGFMT" >&6; }
7877 else
7878   { echo "$as_me:$LINENO: result: no" >&5
7879 echo "${ECHO_T}no" >&6; }
7880 fi
7881
7882
7883   test -n "$MSGFMT" && break
7884 done
7885 test -n "$MSGFMT" || MSGFMT="no"
7886
7887 if test "$MSGFMT" = "no"
7888 then
7889    echo 'msgfmt program not found, disabling NLS !'
7890    USE_NLS=no
7891    USE_INCLUDED_LIBINTL=no
7892 #else
7893
7894     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7895 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7896 if test "${ac_cv_gnu_library_2+set}" = set; then
7897   echo $ECHO_N "(cached) $ECHO_C" >&6
7898 else
7899   cat >conftest.$ac_ext <<_ACEOF
7900 /* confdefs.h.  */
7901 _ACEOF
7902 cat confdefs.h >>conftest.$ac_ext
7903 cat >>conftest.$ac_ext <<_ACEOF
7904 /* end confdefs.h.  */
7905
7906 #include <features.h>
7907 #ifdef __GNU_LIBRARY__
7908  #if (__GLIBC__ >= 2)
7909   Lucky GNU user
7910  #endif
7911 #endif
7912
7913 _ACEOF
7914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7915   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7916   ac_cv_gnu_library_2=yes
7917 else
7918   ac_cv_gnu_library_2=no
7919 fi
7920 rm -f conftest*
7921
7922
7923
7924 fi
7925 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7926 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7927
7928     GLIBC2="$ac_cv_gnu_library_2"
7929
7930
7931
7932         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7933 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7934 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7935   echo $ECHO_N "(cached) $ECHO_C" >&6
7936 else
7937   ac_check_lib_save_LIBS=$LIBS
7938 LIBS="-lcposix  $LIBS"
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h.  */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h.  */
7945
7946 /* Override any GCC internal prototype to avoid an error.
7947    Use char because int might match the return type of a GCC
7948    builtin and then its argument prototype would still apply.  */
7949 #ifdef __cplusplus
7950 extern "C"
7951 #endif
7952 char strerror ();
7953 int
7954 main ()
7955 {
7956 return strerror ();
7957   ;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968   (eval "$ac_link") 2>conftest.er1
7969   ac_status=$?
7970   grep -v '^ *+' conftest.er1 >conftest.err
7971   rm -f conftest.er1
7972   cat conftest.err >&5
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); } &&
7975          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7976   { (case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_try") 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; } &&
7985          { ac_try='test -s conftest$ac_exeext'
7986   { (case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991   (eval "$ac_try") 2>&5
7992   ac_status=$?
7993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994   (exit $ac_status); }; }; then
7995   ac_cv_lib_cposix_strerror=yes
7996 else
7997   echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000         ac_cv_lib_cposix_strerror=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext \
8004       conftest$ac_exeext conftest.$ac_ext
8005 LIBS=$ac_check_lib_save_LIBS
8006 fi
8007 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8008 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8009 if test $ac_cv_lib_cposix_strerror = yes; then
8010   LIBS="$LIBS -lcposix"
8011 fi
8012
8013
8014
8015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8017 if test "${ac_cv_header_stdc+set}" = set; then
8018   echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020   cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h.  */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h.  */
8026 #include <stdlib.h>
8027 #include <stdarg.h>
8028 #include <string.h>
8029 #include <float.h>
8030
8031 int
8032 main ()
8033 {
8034
8035   ;
8036   return 0;
8037 }
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043   *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046   (eval "$ac_compile") 2>conftest.er1
8047   ac_status=$?
8048   grep -v '^ *+' conftest.er1 >conftest.err
8049   rm -f conftest.er1
8050   cat conftest.err >&5
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } &&
8053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8054   { (case "(($ac_try" in
8055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056   *) ac_try_echo=$ac_try;;
8057 esac
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059   (eval "$ac_try") 2>&5
8060   ac_status=$?
8061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062   (exit $ac_status); }; } &&
8063          { ac_try='test -s conftest.$ac_objext'
8064   { (case "(($ac_try" in
8065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066   *) ac_try_echo=$ac_try;;
8067 esac
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069   (eval "$ac_try") 2>&5
8070   ac_status=$?
8071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072   (exit $ac_status); }; }; then
8073   ac_cv_header_stdc=yes
8074 else
8075   echo "$as_me: failed program was:" >&5
8076 sed 's/^/| /' conftest.$ac_ext >&5
8077
8078         ac_cv_header_stdc=no
8079 fi
8080
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082
8083 if test $ac_cv_header_stdc = yes; then
8084   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8085   cat >conftest.$ac_ext <<_ACEOF
8086 /* confdefs.h.  */
8087 _ACEOF
8088 cat confdefs.h >>conftest.$ac_ext
8089 cat >>conftest.$ac_ext <<_ACEOF
8090 /* end confdefs.h.  */
8091 #include <string.h>
8092
8093 _ACEOF
8094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8095   $EGREP "memchr" >/dev/null 2>&1; then
8096   :
8097 else
8098   ac_cv_header_stdc=no
8099 fi
8100 rm -f conftest*
8101
8102 fi
8103
8104 if test $ac_cv_header_stdc = yes; then
8105   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8106   cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 #include <stdlib.h>
8113
8114 _ACEOF
8115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8116   $EGREP "free" >/dev/null 2>&1; then
8117   :
8118 else
8119   ac_cv_header_stdc=no
8120 fi
8121 rm -f conftest*
8122
8123 fi
8124
8125 if test $ac_cv_header_stdc = yes; then
8126   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8127   if test "$cross_compiling" = yes; then
8128   :
8129 else
8130   cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h.  */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h.  */
8136 #include <ctype.h>
8137 #include <stdlib.h>
8138 #if ((' ' & 0x0FF) == 0x020)
8139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8141 #else
8142 # define ISLOWER(c) \
8143                    (('a' <= (c) && (c) <= 'i') \
8144                      || ('j' <= (c) && (c) <= 'r') \
8145                      || ('s' <= (c) && (c) <= 'z'))
8146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8147 #endif
8148
8149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8150 int
8151 main ()
8152 {
8153   int i;
8154   for (i = 0; i < 256; i++)
8155     if (XOR (islower (i), ISLOWER (i))
8156         || toupper (i) != TOUPPER (i))
8157       return 2;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest$ac_exeext
8162 if { (ac_try="$ac_link"
8163 case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_link") 2>&5
8169   ac_status=$?
8170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8172   { (case "(($ac_try" in
8173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8174   *) ac_try_echo=$ac_try;;
8175 esac
8176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8177   (eval "$ac_try") 2>&5
8178   ac_status=$?
8179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180   (exit $ac_status); }; }; then
8181   :
8182 else
8183   echo "$as_me: program exited with status $ac_status" >&5
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ( exit $ac_status )
8188 ac_cv_header_stdc=no
8189 fi
8190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8191 fi
8192
8193
8194 fi
8195 fi
8196 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8197 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8198 if test $ac_cv_header_stdc = yes; then
8199
8200 cat >>confdefs.h <<\_ACEOF
8201 #define STDC_HEADERS 1
8202 _ACEOF
8203
8204 fi
8205
8206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8208 if test "${ac_cv_c_const+set}" = set; then
8209   echo $ECHO_N "(cached) $ECHO_C" >&6
8210 else
8211   cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217
8218 int
8219 main ()
8220 {
8221 /* FIXME: Include the comments suggested by Paul. */
8222 #ifndef __cplusplus
8223   /* Ultrix mips cc rejects this.  */
8224   typedef int charset[2];
8225   const charset x;
8226   /* SunOS 4.1.1 cc rejects this.  */
8227   char const *const *ccp;
8228   char **p;
8229   /* NEC SVR4.0.2 mips cc rejects this.  */
8230   struct point {int x, y;};
8231   static struct point const zero = {0,0};
8232   /* AIX XL C 1.02.0.0 rejects this.
8233      It does not let you subtract one const X* pointer from another in
8234      an arm of an if-expression whose if-part is not a constant
8235      expression */
8236   const char *g = "string";
8237   ccp = &g + (g ? g-g : 0);
8238   /* HPUX 7.0 cc rejects these. */
8239   ++ccp;
8240   p = (char**) ccp;
8241   ccp = (char const *const *) p;
8242   { /* SCO 3.2v4 cc rejects this.  */
8243     char *t;
8244     char const *s = 0 ? (char *) 0 : (char const *) 0;
8245
8246     *t++ = 0;
8247     if (s) return 0;
8248   }
8249   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8250     int x[] = {25, 17};
8251     const int *foo = &x[0];
8252     ++foo;
8253   }
8254   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8255     typedef const int *iptr;
8256     iptr p = 0;
8257     ++p;
8258   }
8259   { /* AIX XL C 1.02.0.0 rejects this saying
8260        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8261     struct s { int j; const int *ap[3]; };
8262     struct s *b; b->j = 5;
8263   }
8264   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8265     const int foo = 10;
8266     if (!foo) return 0;
8267   }
8268   return !x[0] && !zero.x;
8269 #endif
8270
8271   ;
8272   return 0;
8273 }
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } &&
8289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8290   { (case "(($ac_try" in
8291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8292   *) ac_try_echo=$ac_try;;
8293 esac
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295   (eval "$ac_try") 2>&5
8296   ac_status=$?
8297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298   (exit $ac_status); }; } &&
8299          { ac_try='test -s conftest.$ac_objext'
8300   { (case "(($ac_try" in
8301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302   *) ac_try_echo=$ac_try;;
8303 esac
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305   (eval "$ac_try") 2>&5
8306   ac_status=$?
8307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308   (exit $ac_status); }; }; then
8309   ac_cv_c_const=yes
8310 else
8311   echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8313
8314         ac_cv_c_const=no
8315 fi
8316
8317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8318 fi
8319 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8320 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8321 if test $ac_cv_c_const = no; then
8322
8323 cat >>confdefs.h <<\_ACEOF
8324 #define const
8325 _ACEOF
8326
8327 fi
8328
8329
8330   { echo "$as_me:$LINENO: checking for signed" >&5
8331 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8332 if test "${bh_cv_c_signed+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   cat >conftest.$ac_ext <<_ACEOF
8336 /* confdefs.h.  */
8337 _ACEOF
8338 cat confdefs.h >>conftest.$ac_ext
8339 cat >>conftest.$ac_ext <<_ACEOF
8340 /* end confdefs.h.  */
8341
8342 int
8343 main ()
8344 {
8345 signed char x;
8346   ;
8347   return 0;
8348 }
8349 _ACEOF
8350 rm -f conftest.$ac_objext
8351 if { (ac_try="$ac_compile"
8352 case "(($ac_try" in
8353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354   *) ac_try_echo=$ac_try;;
8355 esac
8356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8357   (eval "$ac_compile") 2>conftest.er1
8358   ac_status=$?
8359   grep -v '^ *+' conftest.er1 >conftest.err
8360   rm -f conftest.er1
8361   cat conftest.err >&5
8362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363   (exit $ac_status); } &&
8364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365   { (case "(($ac_try" in
8366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367   *) ac_try_echo=$ac_try;;
8368 esac
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370   (eval "$ac_try") 2>&5
8371   ac_status=$?
8372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); }; } &&
8374          { ac_try='test -s conftest.$ac_objext'
8375   { (case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_try") 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); }; }; then
8384   bh_cv_c_signed=yes
8385 else
8386   echo "$as_me: failed program was:" >&5
8387 sed 's/^/| /' conftest.$ac_ext >&5
8388
8389         bh_cv_c_signed=no
8390 fi
8391
8392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8393 fi
8394 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8395 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8396   if test $bh_cv_c_signed = no; then
8397
8398 cat >>confdefs.h <<\_ACEOF
8399 #define signed
8400 _ACEOF
8401
8402   fi
8403
8404 { echo "$as_me:$LINENO: checking for inline" >&5
8405 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8406 if test "${ac_cv_c_inline+set}" = set; then
8407   echo $ECHO_N "(cached) $ECHO_C" >&6
8408 else
8409   ac_cv_c_inline=no
8410 for ac_kw in inline __inline__ __inline; do
8411   cat >conftest.$ac_ext <<_ACEOF
8412 /* confdefs.h.  */
8413 _ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h.  */
8417 #ifndef __cplusplus
8418 typedef int foo_t;
8419 static $ac_kw foo_t static_foo () {return 0; }
8420 $ac_kw foo_t foo () {return 0; }
8421 #endif
8422
8423 _ACEOF
8424 rm -f conftest.$ac_objext
8425 if { (ac_try="$ac_compile"
8426 case "(($ac_try" in
8427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8428   *) ac_try_echo=$ac_try;;
8429 esac
8430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8431   (eval "$ac_compile") 2>conftest.er1
8432   ac_status=$?
8433   grep -v '^ *+' conftest.er1 >conftest.err
8434   rm -f conftest.er1
8435   cat conftest.err >&5
8436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437   (exit $ac_status); } &&
8438          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8439   { (case "(($ac_try" in
8440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441   *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444   (eval "$ac_try") 2>&5
8445   ac_status=$?
8446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447   (exit $ac_status); }; } &&
8448          { ac_try='test -s conftest.$ac_objext'
8449   { (case "(($ac_try" in
8450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451   *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454   (eval "$ac_try") 2>&5
8455   ac_status=$?
8456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457   (exit $ac_status); }; }; then
8458   ac_cv_c_inline=$ac_kw
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467   test "$ac_cv_c_inline" != no && break
8468 done
8469
8470 fi
8471 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8472 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8473
8474
8475 case $ac_cv_c_inline in
8476   inline | yes) ;;
8477   *)
8478     case $ac_cv_c_inline in
8479       no) ac_val=;;
8480       *) ac_val=$ac_cv_c_inline;;
8481     esac
8482     cat >>confdefs.h <<_ACEOF
8483 #ifndef __cplusplus
8484 #define inline $ac_val
8485 #endif
8486 _ACEOF
8487     ;;
8488 esac
8489
8490 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8501                   inttypes.h stdint.h unistd.h
8502 do
8503 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8507   echo $ECHO_N "(cached) $ECHO_C" >&6
8508 else
8509   cat >conftest.$ac_ext <<_ACEOF
8510 /* confdefs.h.  */
8511 _ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h.  */
8515 $ac_includes_default
8516
8517 #include <$ac_header>
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8526   (eval "$ac_compile") 2>conftest.er1
8527   ac_status=$?
8528   grep -v '^ *+' conftest.er1 >conftest.err
8529   rm -f conftest.er1
8530   cat conftest.err >&5
8531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532   (exit $ac_status); } &&
8533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8534   { (case "(($ac_try" in
8535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8536   *) ac_try_echo=$ac_try;;
8537 esac
8538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8539   (eval "$ac_try") 2>&5
8540   ac_status=$?
8541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542   (exit $ac_status); }; } &&
8543          { ac_try='test -s conftest.$ac_objext'
8544   { (case "(($ac_try" in
8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546   *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549   (eval "$ac_try") 2>&5
8550   ac_status=$?
8551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552   (exit $ac_status); }; }; then
8553   eval "$as_ac_Header=yes"
8554 else
8555   echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8557
8558         eval "$as_ac_Header=no"
8559 fi
8560
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 ac_res=`eval echo '${'$as_ac_Header'}'`
8564                { echo "$as_me:$LINENO: result: $ac_res" >&5
8565 echo "${ECHO_T}$ac_res" >&6; }
8566 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8567   cat >>confdefs.h <<_ACEOF
8568 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8569 _ACEOF
8570
8571 fi
8572
8573 done
8574
8575
8576 { echo "$as_me:$LINENO: checking for off_t" >&5
8577 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8578 if test "${ac_cv_type_off_t+set}" = set; then
8579   echo $ECHO_N "(cached) $ECHO_C" >&6
8580 else
8581   cat >conftest.$ac_ext <<_ACEOF
8582 /* confdefs.h.  */
8583 _ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h.  */
8587 $ac_includes_default
8588 typedef off_t ac__type_new_;
8589 int
8590 main ()
8591 {
8592 if ((ac__type_new_ *) 0)
8593   return 0;
8594 if (sizeof (ac__type_new_))
8595   return 0;
8596   ;
8597   return 0;
8598 }
8599 _ACEOF
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8602 case "(($ac_try" in
8603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8604   *) ac_try_echo=$ac_try;;
8605 esac
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607   (eval "$ac_compile") 2>conftest.er1
8608   ac_status=$?
8609   grep -v '^ *+' conftest.er1 >conftest.err
8610   rm -f conftest.er1
8611   cat conftest.err >&5
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); } &&
8614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8615   { (case "(($ac_try" in
8616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617   *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620   (eval "$ac_try") 2>&5
8621   ac_status=$?
8622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623   (exit $ac_status); }; } &&
8624          { ac_try='test -s conftest.$ac_objext'
8625   { (case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_try") 2>&5
8631   ac_status=$?
8632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8633   (exit $ac_status); }; }; then
8634   ac_cv_type_off_t=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639         ac_cv_type_off_t=no
8640 fi
8641
8642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8643 fi
8644 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8645 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8646 if test $ac_cv_type_off_t = yes; then
8647   :
8648 else
8649
8650 cat >>confdefs.h <<_ACEOF
8651 #define off_t long int
8652 _ACEOF
8653
8654 fi
8655
8656 { echo "$as_me:$LINENO: checking for size_t" >&5
8657 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8658 if test "${ac_cv_type_size_t+set}" = set; then
8659   echo $ECHO_N "(cached) $ECHO_C" >&6
8660 else
8661   cat >conftest.$ac_ext <<_ACEOF
8662 /* confdefs.h.  */
8663 _ACEOF
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h.  */
8667 $ac_includes_default
8668 typedef size_t ac__type_new_;
8669 int
8670 main ()
8671 {
8672 if ((ac__type_new_ *) 0)
8673   return 0;
8674 if (sizeof (ac__type_new_))
8675   return 0;
8676   ;
8677   return 0;
8678 }
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8682 case "(($ac_try" in
8683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684   *) ac_try_echo=$ac_try;;
8685 esac
8686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8687   (eval "$ac_compile") 2>conftest.er1
8688   ac_status=$?
8689   grep -v '^ *+' conftest.er1 >conftest.err
8690   rm -f conftest.er1
8691   cat conftest.err >&5
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); } &&
8694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8695   { (case "(($ac_try" in
8696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8697   *) ac_try_echo=$ac_try;;
8698 esac
8699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8700   (eval "$ac_try") 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; } &&
8704          { ac_try='test -s conftest.$ac_objext'
8705   { (case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8710   (eval "$ac_try") 2>&5
8711   ac_status=$?
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); }; }; then
8714   ac_cv_type_size_t=yes
8715 else
8716   echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8718
8719         ac_cv_type_size_t=no
8720 fi
8721
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8725 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8726 if test $ac_cv_type_size_t = yes; then
8727   :
8728 else
8729
8730 cat >>confdefs.h <<_ACEOF
8731 #define size_t unsigned int
8732 _ACEOF
8733
8734 fi
8735
8736
8737   { echo "$as_me:$LINENO: checking for long long" >&5
8738 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8739 if test "${ac_cv_type_long_long+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   cat >conftest.$ac_ext <<_ACEOF
8743 /* confdefs.h.  */
8744 _ACEOF
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h.  */
8748 long long ll = 1LL; int i = 63;
8749 int
8750 main ()
8751 {
8752 long long llmax = (long long) -1;
8753      return ll << i | ll >> i | llmax / ll | llmax % ll;
8754   ;
8755   return 0;
8756 }
8757 _ACEOF
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (ac_try="$ac_link"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_link") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } &&
8772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8773   { (case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8778   (eval "$ac_try") 2>&5
8779   ac_status=$?
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); }; } &&
8782          { ac_try='test -s conftest$ac_exeext'
8783   { (case "(($ac_try" in
8784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785   *) ac_try_echo=$ac_try;;
8786 esac
8787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788   (eval "$ac_try") 2>&5
8789   ac_status=$?
8790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791   (exit $ac_status); }; }; then
8792   ac_cv_type_long_long=yes
8793 else
8794   echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8796
8797         ac_cv_type_long_long=no
8798 fi
8799
8800 rm -f core conftest.err conftest.$ac_objext \
8801       conftest$ac_exeext conftest.$ac_ext
8802 fi
8803 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8804 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8805   if test $ac_cv_type_long_long = yes; then
8806
8807 cat >>confdefs.h <<\_ACEOF
8808 #define HAVE_LONG_LONG 1
8809 _ACEOF
8810
8811   fi
8812
8813
8814   { echo "$as_me:$LINENO: checking for long double" >&5
8815 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8816 if test "${gt_cv_c_long_double+set}" = set; then
8817   echo $ECHO_N "(cached) $ECHO_C" >&6
8818 else
8819   if test "$GCC" = yes; then
8820        gt_cv_c_long_double=yes
8821      else
8822        cat >conftest.$ac_ext <<_ACEOF
8823 /* confdefs.h.  */
8824 _ACEOF
8825 cat confdefs.h >>conftest.$ac_ext
8826 cat >>conftest.$ac_ext <<_ACEOF
8827 /* end confdefs.h.  */
8828
8829          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8830          long double foo = 0.0;
8831          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8832          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8833
8834 int
8835 main ()
8836 {
8837
8838   ;
8839   return 0;
8840 }
8841 _ACEOF
8842 rm -f conftest.$ac_objext
8843 if { (ac_try="$ac_compile"
8844 case "(($ac_try" in
8845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8846   *) ac_try_echo=$ac_try;;
8847 esac
8848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8849   (eval "$ac_compile") 2>conftest.er1
8850   ac_status=$?
8851   grep -v '^ *+' conftest.er1 >conftest.err
8852   rm -f conftest.er1
8853   cat conftest.err >&5
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8857   { (case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_try") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; } &&
8866          { ac_try='test -s conftest.$ac_objext'
8867   { (case "(($ac_try" in
8868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869   *) ac_try_echo=$ac_try;;
8870 esac
8871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8872   (eval "$ac_try") 2>&5
8873   ac_status=$?
8874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875   (exit $ac_status); }; }; then
8876   gt_cv_c_long_double=yes
8877 else
8878   echo "$as_me: failed program was:" >&5
8879 sed 's/^/| /' conftest.$ac_ext >&5
8880
8881         gt_cv_c_long_double=no
8882 fi
8883
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885      fi
8886 fi
8887 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8888 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8889   if test $gt_cv_c_long_double = yes; then
8890
8891 cat >>confdefs.h <<\_ACEOF
8892 #define HAVE_LONG_DOUBLE 1
8893 _ACEOF
8894
8895   fi
8896
8897
8898   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8899 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8900 if test "${gt_cv_c_wchar_t+set}" = set; then
8901   echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903   cat >conftest.$ac_ext <<_ACEOF
8904 /* confdefs.h.  */
8905 _ACEOF
8906 cat confdefs.h >>conftest.$ac_ext
8907 cat >>conftest.$ac_ext <<_ACEOF
8908 /* end confdefs.h.  */
8909 #include <stddef.h>
8910        wchar_t foo = (wchar_t)'\0';
8911 int
8912 main ()
8913 {
8914
8915   ;
8916   return 0;
8917 }
8918 _ACEOF
8919 rm -f conftest.$ac_objext
8920 if { (ac_try="$ac_compile"
8921 case "(($ac_try" in
8922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923   *) ac_try_echo=$ac_try;;
8924 esac
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926   (eval "$ac_compile") 2>conftest.er1
8927   ac_status=$?
8928   grep -v '^ *+' conftest.er1 >conftest.err
8929   rm -f conftest.er1
8930   cat conftest.err >&5
8931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932   (exit $ac_status); } &&
8933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8934   { (case "(($ac_try" in
8935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8936   *) ac_try_echo=$ac_try;;
8937 esac
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939   (eval "$ac_try") 2>&5
8940   ac_status=$?
8941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942   (exit $ac_status); }; } &&
8943          { ac_try='test -s conftest.$ac_objext'
8944   { (case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949   (eval "$ac_try") 2>&5
8950   ac_status=$?
8951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952   (exit $ac_status); }; }; then
8953   gt_cv_c_wchar_t=yes
8954 else
8955   echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8957
8958         gt_cv_c_wchar_t=no
8959 fi
8960
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8962 fi
8963 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8964 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8965   if test $gt_cv_c_wchar_t = yes; then
8966
8967 cat >>confdefs.h <<\_ACEOF
8968 #define HAVE_WCHAR_T 1
8969 _ACEOF
8970
8971   fi
8972
8973
8974   { echo "$as_me:$LINENO: checking for wint_t" >&5
8975 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8976 if test "${gt_cv_c_wint_t+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985 #include <wchar.h>
8986        wint_t foo = (wchar_t)'\0';
8987 int
8988 main ()
8989 {
8990
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext
8996 if { (ac_try="$ac_compile"
8997 case "(($ac_try" in
8998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999   *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002   (eval "$ac_compile") 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } &&
9009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9010   { (case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015   (eval "$ac_try") 2>&5
9016   ac_status=$?
9017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9018   (exit $ac_status); }; } &&
9019          { ac_try='test -s conftest.$ac_objext'
9020   { (case "(($ac_try" in
9021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9022   *) ac_try_echo=$ac_try;;
9023 esac
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025   (eval "$ac_try") 2>&5
9026   ac_status=$?
9027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028   (exit $ac_status); }; }; then
9029   gt_cv_c_wint_t=yes
9030 else
9031   echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9033
9034         gt_cv_c_wint_t=no
9035 fi
9036
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 fi
9039 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9040 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9041   if test $gt_cv_c_wint_t = yes; then
9042
9043 cat >>confdefs.h <<\_ACEOF
9044 #define HAVE_WINT_T 1
9045 _ACEOF
9046
9047   fi
9048
9049
9050   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9051 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9052 if test "${gl_cv_header_inttypes_h+set}" = set; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 else
9055   cat >conftest.$ac_ext <<_ACEOF
9056 /* confdefs.h.  */
9057 _ACEOF
9058 cat confdefs.h >>conftest.$ac_ext
9059 cat >>conftest.$ac_ext <<_ACEOF
9060 /* end confdefs.h.  */
9061 #include <sys/types.h>
9062 #include <inttypes.h>
9063 int
9064 main ()
9065 {
9066 uintmax_t i = (uintmax_t) -1;
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_compile") 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } &&
9085          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9086   { (case "(($ac_try" in
9087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9088   *) ac_try_echo=$ac_try;;
9089 esac
9090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9091   (eval "$ac_try") 2>&5
9092   ac_status=$?
9093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); }; } &&
9095          { ac_try='test -s conftest.$ac_objext'
9096   { (case "(($ac_try" in
9097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098   *) ac_try_echo=$ac_try;;
9099 esac
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101   (eval "$ac_try") 2>&5
9102   ac_status=$?
9103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104   (exit $ac_status); }; }; then
9105   gl_cv_header_inttypes_h=yes
9106 else
9107   echo "$as_me: failed program was:" >&5
9108 sed 's/^/| /' conftest.$ac_ext >&5
9109
9110         gl_cv_header_inttypes_h=no
9111 fi
9112
9113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9114 fi
9115 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9116 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9117   if test $gl_cv_header_inttypes_h = yes; then
9118
9119 cat >>confdefs.h <<_ACEOF
9120 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9121 _ACEOF
9122
9123   fi
9124
9125
9126   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9127 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9128 if test "${gl_cv_header_stdint_h+set}" = set; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131   cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 #include <sys/types.h>
9138 #include <stdint.h>
9139 int
9140 main ()
9141 {
9142 uintmax_t i = (uintmax_t) -1;
9143   ;
9144   return 0;
9145 }
9146 _ACEOF
9147 rm -f conftest.$ac_objext
9148 if { (ac_try="$ac_compile"
9149 case "(($ac_try" in
9150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151   *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154   (eval "$ac_compile") 2>conftest.er1
9155   ac_status=$?
9156   grep -v '^ *+' conftest.er1 >conftest.err
9157   rm -f conftest.er1
9158   cat conftest.err >&5
9159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160   (exit $ac_status); } &&
9161          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9162   { (case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167   (eval "$ac_try") 2>&5
9168   ac_status=$?
9169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9170   (exit $ac_status); }; } &&
9171          { ac_try='test -s conftest.$ac_objext'
9172   { (case "(($ac_try" in
9173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174   *) ac_try_echo=$ac_try;;
9175 esac
9176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9177   (eval "$ac_try") 2>&5
9178   ac_status=$?
9179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180   (exit $ac_status); }; }; then
9181   gl_cv_header_stdint_h=yes
9182 else
9183   echo "$as_me: failed program was:" >&5
9184 sed 's/^/| /' conftest.$ac_ext >&5
9185
9186         gl_cv_header_stdint_h=no
9187 fi
9188
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9192 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9193   if test $gl_cv_header_stdint_h = yes; then
9194
9195 cat >>confdefs.h <<_ACEOF
9196 #define HAVE_STDINT_H_WITH_UINTMAX 1
9197 _ACEOF
9198
9199   fi
9200
9201
9202
9203
9204   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9205 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9206 if test "${gt_cv_c_intmax_t+set}" = set; then
9207   echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209   cat >conftest.$ac_ext <<_ACEOF
9210 /* confdefs.h.  */
9211 _ACEOF
9212 cat confdefs.h >>conftest.$ac_ext
9213 cat >>conftest.$ac_ext <<_ACEOF
9214 /* end confdefs.h.  */
9215
9216 #include <stddef.h>
9217 #include <stdlib.h>
9218 #if HAVE_STDINT_H_WITH_UINTMAX
9219 #include <stdint.h>
9220 #endif
9221 #if HAVE_INTTYPES_H_WITH_UINTMAX
9222 #include <inttypes.h>
9223 #endif
9224
9225 int
9226 main ()
9227 {
9228 intmax_t x = -1;
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9240   (eval "$ac_compile") 2>conftest.er1
9241   ac_status=$?
9242   grep -v '^ *+' conftest.er1 >conftest.err
9243   rm -f conftest.er1
9244   cat conftest.err >&5
9245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246   (exit $ac_status); } &&
9247          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9248   { (case "(($ac_try" in
9249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250   *) ac_try_echo=$ac_try;;
9251 esac
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253   (eval "$ac_try") 2>&5
9254   ac_status=$?
9255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256   (exit $ac_status); }; } &&
9257          { ac_try='test -s conftest.$ac_objext'
9258   { (case "(($ac_try" in
9259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260   *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263   (eval "$ac_try") 2>&5
9264   ac_status=$?
9265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266   (exit $ac_status); }; }; then
9267   gt_cv_c_intmax_t=yes
9268 else
9269   echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272         gt_cv_c_intmax_t=no
9273 fi
9274
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9276 fi
9277 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9278 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9279   if test $gt_cv_c_intmax_t = yes; then
9280
9281 cat >>confdefs.h <<\_ACEOF
9282 #define HAVE_INTMAX_T 1
9283 _ACEOF
9284
9285   fi
9286
9287
9288
9289   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9290 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9291 if test "${gt_cv_func_printf_posix+set}" = set; then
9292   echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294
9295       if test "$cross_compiling" = yes; then
9296
9297         cat >conftest.$ac_ext <<_ACEOF
9298 /* confdefs.h.  */
9299 _ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h.  */
9303
9304 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9305   notposix
9306 #endif
9307
9308 _ACEOF
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310   $EGREP "notposix" >/dev/null 2>&1; then
9311   gt_cv_func_printf_posix="guessing no"
9312 else
9313   gt_cv_func_printf_posix="guessing yes"
9314 fi
9315 rm -f conftest*
9316
9317
9318 else
9319   cat >conftest.$ac_ext <<_ACEOF
9320 /* confdefs.h.  */
9321 _ACEOF
9322 cat confdefs.h >>conftest.$ac_ext
9323 cat >>conftest.$ac_ext <<_ACEOF
9324 /* end confdefs.h.  */
9325
9326 #include <stdio.h>
9327 #include <string.h>
9328 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9329    dollar expansion (possibly an autoconf bug).  */
9330 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9331 static char buf[100];
9332 int main ()
9333 {
9334   sprintf (buf, format, 33, 55);
9335   return (strcmp (buf, "55 33") != 0);
9336 }
9337 _ACEOF
9338 rm -f conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_link") 2>&5
9346   ac_status=$?
9347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9349   { (case "(($ac_try" in
9350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9351   *) ac_try_echo=$ac_try;;
9352 esac
9353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9354   (eval "$ac_try") 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); }; }; then
9358   gt_cv_func_printf_posix=yes
9359 else
9360   echo "$as_me: program exited with status $ac_status" >&5
9361 echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364 ( exit $ac_status )
9365 gt_cv_func_printf_posix=no
9366 fi
9367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9368 fi
9369
9370
9371
9372 fi
9373 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9374 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9375   case $gt_cv_func_printf_posix in
9376     *yes)
9377
9378 cat >>confdefs.h <<\_ACEOF
9379 #define HAVE_POSIX_PRINTF 1
9380 _ACEOF
9381
9382       ;;
9383   esac
9384
9385 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9386 # for constant arguments.  Useless!
9387 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9388 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9389 if test "${ac_cv_working_alloca_h+set}" = set; then
9390   echo $ECHO_N "(cached) $ECHO_C" >&6
9391 else
9392   cat >conftest.$ac_ext <<_ACEOF
9393 /* confdefs.h.  */
9394 _ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h.  */
9398 #include <alloca.h>
9399 int
9400 main ()
9401 {
9402 char *p = (char *) alloca (2 * sizeof (int));
9403                           if (p) return 0;
9404   ;
9405   return 0;
9406 }
9407 _ACEOF
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9410 case "(($ac_try" in
9411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412   *) ac_try_echo=$ac_try;;
9413 esac
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415   (eval "$ac_link") 2>conftest.er1
9416   ac_status=$?
9417   grep -v '^ *+' conftest.er1 >conftest.err
9418   rm -f conftest.er1
9419   cat conftest.err >&5
9420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421   (exit $ac_status); } &&
9422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9423   { (case "(($ac_try" in
9424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9425   *) ac_try_echo=$ac_try;;
9426 esac
9427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9428   (eval "$ac_try") 2>&5
9429   ac_status=$?
9430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431   (exit $ac_status); }; } &&
9432          { ac_try='test -s conftest$ac_exeext'
9433   { (case "(($ac_try" in
9434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9435   *) ac_try_echo=$ac_try;;
9436 esac
9437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9438   (eval "$ac_try") 2>&5
9439   ac_status=$?
9440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9441   (exit $ac_status); }; }; then
9442   ac_cv_working_alloca_h=yes
9443 else
9444   echo "$as_me: failed program was:" >&5
9445 sed 's/^/| /' conftest.$ac_ext >&5
9446
9447         ac_cv_working_alloca_h=no
9448 fi
9449
9450 rm -f core conftest.err conftest.$ac_objext \
9451       conftest$ac_exeext conftest.$ac_ext
9452 fi
9453 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9454 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9455 if test $ac_cv_working_alloca_h = yes; then
9456
9457 cat >>confdefs.h <<\_ACEOF
9458 #define HAVE_ALLOCA_H 1
9459 _ACEOF
9460
9461 fi
9462
9463 { echo "$as_me:$LINENO: checking for alloca" >&5
9464 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9465 if test "${ac_cv_func_alloca_works+set}" = set; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 /* confdefs.h.  */
9470 _ACEOF
9471 cat confdefs.h >>conftest.$ac_ext
9472 cat >>conftest.$ac_ext <<_ACEOF
9473 /* end confdefs.h.  */
9474 #ifdef __GNUC__
9475 # define alloca __builtin_alloca
9476 #else
9477 # ifdef _MSC_VER
9478 #  include <malloc.h>
9479 #  define alloca _alloca
9480 # else
9481 #  if HAVE_ALLOCA_H
9482 #   include <alloca.h>
9483 #  else
9484 #   ifdef _AIX
9485  #pragma alloca
9486 #   else
9487 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9488 char *alloca ();
9489 #    endif
9490 #   endif
9491 #  endif
9492 # endif
9493 #endif
9494
9495 int
9496 main ()
9497 {
9498 char *p = (char *) alloca (1);
9499                                     if (p) return 0;
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 rm -f conftest.$ac_objext conftest$ac_exeext
9505 if { (ac_try="$ac_link"
9506 case "(($ac_try" in
9507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508   *) ac_try_echo=$ac_try;;
9509 esac
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511   (eval "$ac_link") 2>conftest.er1
9512   ac_status=$?
9513   grep -v '^ *+' conftest.er1 >conftest.err
9514   rm -f conftest.er1
9515   cat conftest.err >&5
9516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517   (exit $ac_status); } &&
9518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9519   { (case "(($ac_try" in
9520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9521   *) ac_try_echo=$ac_try;;
9522 esac
9523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9524   (eval "$ac_try") 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); }; } &&
9528          { ac_try='test -s conftest$ac_exeext'
9529   { (case "(($ac_try" in
9530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531   *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534   (eval "$ac_try") 2>&5
9535   ac_status=$?
9536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537   (exit $ac_status); }; }; then
9538   ac_cv_func_alloca_works=yes
9539 else
9540   echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543         ac_cv_func_alloca_works=no
9544 fi
9545
9546 rm -f core conftest.err conftest.$ac_objext \
9547       conftest$ac_exeext conftest.$ac_ext
9548 fi
9549 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9550 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9551
9552 if test $ac_cv_func_alloca_works = yes; then
9553
9554 cat >>confdefs.h <<\_ACEOF
9555 #define HAVE_ALLOCA 1
9556 _ACEOF
9557
9558 else
9559   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9560 # that cause trouble.  Some versions do not even contain alloca or
9561 # contain a buggy version.  If you still want to use their alloca,
9562 # use ar to extract alloca.o from them instead of compiling alloca.c.
9563
9564 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9565
9566 cat >>confdefs.h <<\_ACEOF
9567 #define C_ALLOCA 1
9568 _ACEOF
9569
9570
9571 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9572 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9573 if test "${ac_cv_os_cray+set}" = set; then
9574   echo $ECHO_N "(cached) $ECHO_C" >&6
9575 else
9576   cat >conftest.$ac_ext <<_ACEOF
9577 /* confdefs.h.  */
9578 _ACEOF
9579 cat confdefs.h >>conftest.$ac_ext
9580 cat >>conftest.$ac_ext <<_ACEOF
9581 /* end confdefs.h.  */
9582 #if defined CRAY && ! defined CRAY2
9583 webecray
9584 #else
9585 wenotbecray
9586 #endif
9587
9588 _ACEOF
9589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9590   $EGREP "webecray" >/dev/null 2>&1; then
9591   ac_cv_os_cray=yes
9592 else
9593   ac_cv_os_cray=no
9594 fi
9595 rm -f conftest*
9596
9597 fi
9598 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9599 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9600 if test $ac_cv_os_cray = yes; then
9601   for ac_func in _getb67 GETB67 getb67; do
9602     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9603 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9604 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9606   echo $ECHO_N "(cached) $ECHO_C" >&6
9607 else
9608   cat >conftest.$ac_ext <<_ACEOF
9609 /* confdefs.h.  */
9610 _ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h.  */
9614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9616 #define $ac_func innocuous_$ac_func
9617
9618 /* System header to define __stub macros and hopefully few prototypes,
9619     which can conflict with char $ac_func (); below.
9620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621     <limits.h> exists even on freestanding compilers.  */
9622
9623 #ifdef __STDC__
9624 # include <limits.h>
9625 #else
9626 # include <assert.h>
9627 #endif
9628
9629 #undef $ac_func
9630
9631 /* Override any GCC internal prototype to avoid an error.
9632    Use char because int might match the return type of a GCC
9633    builtin and then its argument prototype would still apply.  */
9634 #ifdef __cplusplus
9635 extern "C"
9636 #endif
9637 char $ac_func ();
9638 /* The GNU C library defines this for functions which it implements
9639     to always fail with ENOSYS.  Some functions are actually named
9640     something starting with __ and the normal name is an alias.  */
9641 #if defined __stub_$ac_func || defined __stub___$ac_func
9642 choke me
9643 #endif
9644
9645 int
9646 main ()
9647 {
9648 return $ac_func ();
9649   ;
9650   return 0;
9651 }
9652 _ACEOF
9653 rm -f conftest.$ac_objext conftest$ac_exeext
9654 if { (ac_try="$ac_link"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660   (eval "$ac_link") 2>conftest.er1
9661   ac_status=$?
9662   grep -v '^ *+' conftest.er1 >conftest.err
9663   rm -f conftest.er1
9664   cat conftest.err >&5
9665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666   (exit $ac_status); } &&
9667          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9668   { (case "(($ac_try" in
9669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9670   *) ac_try_echo=$ac_try;;
9671 esac
9672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9673   (eval "$ac_try") 2>&5
9674   ac_status=$?
9675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676   (exit $ac_status); }; } &&
9677          { ac_try='test -s conftest$ac_exeext'
9678   { (case "(($ac_try" in
9679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9680   *) ac_try_echo=$ac_try;;
9681 esac
9682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9683   (eval "$ac_try") 2>&5
9684   ac_status=$?
9685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686   (exit $ac_status); }; }; then
9687   eval "$as_ac_var=yes"
9688 else
9689   echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9691
9692         eval "$as_ac_var=no"
9693 fi
9694
9695 rm -f core conftest.err conftest.$ac_objext \
9696       conftest$ac_exeext conftest.$ac_ext
9697 fi
9698 ac_res=`eval echo '${'$as_ac_var'}'`
9699                { echo "$as_me:$LINENO: result: $ac_res" >&5
9700 echo "${ECHO_T}$ac_res" >&6; }
9701 if test `eval echo '${'$as_ac_var'}'` = yes; then
9702
9703 cat >>confdefs.h <<_ACEOF
9704 #define CRAY_STACKSEG_END $ac_func
9705 _ACEOF
9706
9707     break
9708 fi
9709
9710   done
9711 fi
9712
9713 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9714 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9715 if test "${ac_cv_c_stack_direction+set}" = set; then
9716   echo $ECHO_N "(cached) $ECHO_C" >&6
9717 else
9718   if test "$cross_compiling" = yes; then
9719   ac_cv_c_stack_direction=0
9720 else
9721   cat >conftest.$ac_ext <<_ACEOF
9722 /* confdefs.h.  */
9723 _ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h.  */
9727 $ac_includes_default
9728 int
9729 find_stack_direction ()
9730 {
9731   static char *addr = 0;
9732   auto char dummy;
9733   if (addr == 0)
9734     {
9735       addr = &dummy;
9736       return find_stack_direction ();
9737     }
9738   else
9739     return (&dummy > addr) ? 1 : -1;
9740 }
9741
9742 int
9743 main ()
9744 {
9745   return find_stack_direction () < 0;
9746 }
9747 _ACEOF
9748 rm -f conftest$ac_exeext
9749 if { (ac_try="$ac_link"
9750 case "(($ac_try" in
9751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9752   *) ac_try_echo=$ac_try;;
9753 esac
9754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9755   (eval "$ac_link") 2>&5
9756   ac_status=$?
9757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9759   { (case "(($ac_try" in
9760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761   *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764   (eval "$ac_try") 2>&5
9765   ac_status=$?
9766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767   (exit $ac_status); }; }; then
9768   ac_cv_c_stack_direction=1
9769 else
9770   echo "$as_me: program exited with status $ac_status" >&5
9771 echo "$as_me: failed program was:" >&5
9772 sed 's/^/| /' conftest.$ac_ext >&5
9773
9774 ( exit $ac_status )
9775 ac_cv_c_stack_direction=-1
9776 fi
9777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9778 fi
9779
9780
9781 fi
9782 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9783 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9784
9785 cat >>confdefs.h <<_ACEOF
9786 #define STACK_DIRECTION $ac_cv_c_stack_direction
9787 _ACEOF
9788
9789
9790 fi
9791
9792
9793
9794 for ac_header in stdlib.h unistd.h
9795 do
9796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9798   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801   echo $ECHO_N "(cached) $ECHO_C" >&6
9802 fi
9803 ac_res=`eval echo '${'$as_ac_Header'}'`
9804                { echo "$as_me:$LINENO: result: $ac_res" >&5
9805 echo "${ECHO_T}$ac_res" >&6; }
9806 else
9807   # Is the header compilable?
9808 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9809 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h.  */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h.  */
9816 $ac_includes_default
9817 #include <$ac_header>
9818 _ACEOF
9819 rm -f conftest.$ac_objext
9820 if { (ac_try="$ac_compile"
9821 case "(($ac_try" in
9822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9823   *) ac_try_echo=$ac_try;;
9824 esac
9825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9826   (eval "$ac_compile") 2>conftest.er1
9827   ac_status=$?
9828   grep -v '^ *+' conftest.er1 >conftest.err
9829   rm -f conftest.er1
9830   cat conftest.err >&5
9831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832   (exit $ac_status); } &&
9833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9834   { (case "(($ac_try" in
9835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836   *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839   (eval "$ac_try") 2>&5
9840   ac_status=$?
9841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842   (exit $ac_status); }; } &&
9843          { ac_try='test -s conftest.$ac_objext'
9844   { (case "(($ac_try" in
9845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846   *) ac_try_echo=$ac_try;;
9847 esac
9848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849   (eval "$ac_try") 2>&5
9850   ac_status=$?
9851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852   (exit $ac_status); }; }; then
9853   ac_header_compiler=yes
9854 else
9855   echo "$as_me: failed program was:" >&5
9856 sed 's/^/| /' conftest.$ac_ext >&5
9857
9858         ac_header_compiler=no
9859 fi
9860
9861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9863 echo "${ECHO_T}$ac_header_compiler" >&6; }
9864
9865 # Is the header present?
9866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9868 cat >conftest.$ac_ext <<_ACEOF
9869 /* confdefs.h.  */
9870 _ACEOF
9871 cat confdefs.h >>conftest.$ac_ext
9872 cat >>conftest.$ac_ext <<_ACEOF
9873 /* end confdefs.h.  */
9874 #include <$ac_header>
9875 _ACEOF
9876 if { (ac_try="$ac_cpp conftest.$ac_ext"
9877 case "(($ac_try" in
9878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9879   *) ac_try_echo=$ac_try;;
9880 esac
9881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9883   ac_status=$?
9884   grep -v '^ *+' conftest.er1 >conftest.err
9885   rm -f conftest.er1
9886   cat conftest.err >&5
9887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888   (exit $ac_status); } >/dev/null; then
9889   if test -s conftest.err; then
9890     ac_cpp_err=$ac_c_preproc_warn_flag
9891     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9892   else
9893     ac_cpp_err=
9894   fi
9895 else
9896   ac_cpp_err=yes
9897 fi
9898 if test -z "$ac_cpp_err"; then
9899   ac_header_preproc=yes
9900 else
9901   echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9903
9904   ac_header_preproc=no
9905 fi
9906
9907 rm -f conftest.err conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9909 echo "${ECHO_T}$ac_header_preproc" >&6; }
9910
9911 # So?  What about this header?
9912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9913   yes:no: )
9914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9918     ac_header_preproc=yes
9919     ;;
9920   no:yes:* )
9921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9933
9934     ;;
9935 esac
9936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9939   echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941   eval "$as_ac_Header=\$ac_header_preproc"
9942 fi
9943 ac_res=`eval echo '${'$as_ac_Header'}'`
9944                { echo "$as_me:$LINENO: result: $ac_res" >&5
9945 echo "${ECHO_T}$ac_res" >&6; }
9946
9947 fi
9948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9949   cat >>confdefs.h <<_ACEOF
9950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9951 _ACEOF
9952
9953 fi
9954
9955 done
9956
9957
9958 for ac_func in getpagesize
9959 do
9960 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9961 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9962 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9963 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9964   echo $ECHO_N "(cached) $ECHO_C" >&6
9965 else
9966   cat >conftest.$ac_ext <<_ACEOF
9967 /* confdefs.h.  */
9968 _ACEOF
9969 cat confdefs.h >>conftest.$ac_ext
9970 cat >>conftest.$ac_ext <<_ACEOF
9971 /* end confdefs.h.  */
9972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9973    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9974 #define $ac_func innocuous_$ac_func
9975
9976 /* System header to define __stub macros and hopefully few prototypes,
9977     which can conflict with char $ac_func (); below.
9978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979     <limits.h> exists even on freestanding compilers.  */
9980
9981 #ifdef __STDC__
9982 # include <limits.h>
9983 #else
9984 # include <assert.h>
9985 #endif
9986
9987 #undef $ac_func
9988
9989 /* Override any GCC internal prototype to avoid an error.
9990    Use char because int might match the return type of a GCC
9991    builtin and then its argument prototype would still apply.  */
9992 #ifdef __cplusplus
9993 extern "C"
9994 #endif
9995 char $ac_func ();
9996 /* The GNU C library defines this for functions which it implements
9997     to always fail with ENOSYS.  Some functions are actually named
9998     something starting with __ and the normal name is an alias.  */
9999 #if defined __stub_$ac_func || defined __stub___$ac_func
10000 choke me
10001 #endif
10002
10003 int
10004 main ()
10005 {
10006 return $ac_func ();
10007   ;
10008   return 0;
10009 }
10010 _ACEOF
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (ac_try="$ac_link"
10013 case "(($ac_try" in
10014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10015   *) ac_try_echo=$ac_try;;
10016 esac
10017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10018   (eval "$ac_link") 2>conftest.er1
10019   ac_status=$?
10020   grep -v '^ *+' conftest.er1 >conftest.err
10021   rm -f conftest.er1
10022   cat conftest.err >&5
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); } &&
10025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10026   { (case "(($ac_try" in
10027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028   *) ac_try_echo=$ac_try;;
10029 esac
10030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10031   (eval "$ac_try") 2>&5
10032   ac_status=$?
10033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034   (exit $ac_status); }; } &&
10035          { ac_try='test -s conftest$ac_exeext'
10036   { (case "(($ac_try" in
10037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038   *) ac_try_echo=$ac_try;;
10039 esac
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041   (eval "$ac_try") 2>&5
10042   ac_status=$?
10043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10044   (exit $ac_status); }; }; then
10045   eval "$as_ac_var=yes"
10046 else
10047   echo "$as_me: failed program was:" >&5
10048 sed 's/^/| /' conftest.$ac_ext >&5
10049
10050         eval "$as_ac_var=no"
10051 fi
10052
10053 rm -f core conftest.err conftest.$ac_objext \
10054       conftest$ac_exeext conftest.$ac_ext
10055 fi
10056 ac_res=`eval echo '${'$as_ac_var'}'`
10057                { echo "$as_me:$LINENO: result: $ac_res" >&5
10058 echo "${ECHO_T}$ac_res" >&6; }
10059 if test `eval echo '${'$as_ac_var'}'` = yes; then
10060   cat >>confdefs.h <<_ACEOF
10061 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10062 _ACEOF
10063
10064 fi
10065 done
10066
10067 { echo "$as_me:$LINENO: checking for working mmap" >&5
10068 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10069 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10070   echo $ECHO_N "(cached) $ECHO_C" >&6
10071 else
10072   if test "$cross_compiling" = yes; then
10073   ac_cv_func_mmap_fixed_mapped=no
10074 else
10075   cat >conftest.$ac_ext <<_ACEOF
10076 /* confdefs.h.  */
10077 _ACEOF
10078 cat confdefs.h >>conftest.$ac_ext
10079 cat >>conftest.$ac_ext <<_ACEOF
10080 /* end confdefs.h.  */
10081 $ac_includes_default
10082 /* malloc might have been renamed as rpl_malloc. */
10083 #undef malloc
10084
10085 /* Thanks to Mike Haertel and Jim Avera for this test.
10086    Here is a matrix of mmap possibilities:
10087         mmap private not fixed
10088         mmap private fixed at somewhere currently unmapped
10089         mmap private fixed at somewhere already mapped
10090         mmap shared not fixed
10091         mmap shared fixed at somewhere currently unmapped
10092         mmap shared fixed at somewhere already mapped
10093    For private mappings, we should verify that changes cannot be read()
10094    back from the file, nor mmap's back from the file at a different
10095    address.  (There have been systems where private was not correctly
10096    implemented like the infamous i386 svr4.0, and systems where the
10097    VM page cache was not coherent with the file system buffer cache
10098    like early versions of FreeBSD and possibly contemporary NetBSD.)
10099    For shared mappings, we should conversely verify that changes get
10100    propagated back to all the places they're supposed to be.
10101
10102    Grep wants private fixed already mapped.
10103    The main things grep needs to know about mmap are:
10104    * does it exist and is it safe to write into the mmap'd area
10105    * how to use it (BSD variants)  */
10106
10107 #include <fcntl.h>
10108 #include <sys/mman.h>
10109
10110 #if !STDC_HEADERS && !HAVE_STDLIB_H
10111 char *malloc ();
10112 #endif
10113
10114 /* This mess was copied from the GNU getpagesize.h.  */
10115 #if !HAVE_GETPAGESIZE
10116 /* Assume that all systems that can run configure have sys/param.h.  */
10117 # if !HAVE_SYS_PARAM_H
10118 #  define HAVE_SYS_PARAM_H 1
10119 # endif
10120
10121 # ifdef _SC_PAGESIZE
10122 #  define getpagesize() sysconf(_SC_PAGESIZE)
10123 # else /* no _SC_PAGESIZE */
10124 #  if HAVE_SYS_PARAM_H
10125 #   include <sys/param.h>
10126 #   ifdef EXEC_PAGESIZE
10127 #    define getpagesize() EXEC_PAGESIZE
10128 #   else /* no EXEC_PAGESIZE */
10129 #    ifdef NBPG
10130 #     define getpagesize() NBPG * CLSIZE
10131 #     ifndef CLSIZE
10132 #      define CLSIZE 1
10133 #     endif /* no CLSIZE */
10134 #    else /* no NBPG */
10135 #     ifdef NBPC
10136 #      define getpagesize() NBPC
10137 #     else /* no NBPC */
10138 #      ifdef PAGESIZE
10139 #       define getpagesize() PAGESIZE
10140 #      endif /* PAGESIZE */
10141 #     endif /* no NBPC */
10142 #    endif /* no NBPG */
10143 #   endif /* no EXEC_PAGESIZE */
10144 #  else /* no HAVE_SYS_PARAM_H */
10145 #   define getpagesize() 8192   /* punt totally */
10146 #  endif /* no HAVE_SYS_PARAM_H */
10147 # endif /* no _SC_PAGESIZE */
10148
10149 #endif /* no HAVE_GETPAGESIZE */
10150
10151 int
10152 main ()
10153 {
10154   char *data, *data2, *data3;
10155   int i, pagesize;
10156   int fd;
10157
10158   pagesize = getpagesize ();
10159
10160   /* First, make a file with some known garbage in it. */
10161   data = (char *) malloc (pagesize);
10162   if (!data)
10163     return 1;
10164   for (i = 0; i < pagesize; ++i)
10165     *(data + i) = rand ();
10166   umask (0);
10167   fd = creat ("conftest.mmap", 0600);
10168   if (fd < 0)
10169     return 1;
10170   if (write (fd, data, pagesize) != pagesize)
10171     return 1;
10172   close (fd);
10173
10174   /* Next, try to mmap the file at a fixed address which already has
10175      something else allocated at it.  If we can, also make sure that
10176      we see the same garbage.  */
10177   fd = open ("conftest.mmap", O_RDWR);
10178   if (fd < 0)
10179     return 1;
10180   data2 = (char *) malloc (2 * pagesize);
10181   if (!data2)
10182     return 1;
10183   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10184   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10185                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10186     return 1;
10187   for (i = 0; i < pagesize; ++i)
10188     if (*(data + i) != *(data2 + i))
10189       return 1;
10190
10191   /* Finally, make sure that changes to the mapped area do not
10192      percolate back to the file as seen by read().  (This is a bug on
10193      some variants of i386 svr4.0.)  */
10194   for (i = 0; i < pagesize; ++i)
10195     *(data2 + i) = *(data2 + i) + 1;
10196   data3 = (char *) malloc (pagesize);
10197   if (!data3)
10198     return 1;
10199   if (read (fd, data3, pagesize) != pagesize)
10200     return 1;
10201   for (i = 0; i < pagesize; ++i)
10202     if (*(data + i) != *(data3 + i))
10203       return 1;
10204   close (fd);
10205   return 0;
10206 }
10207 _ACEOF
10208 rm -f conftest$ac_exeext
10209 if { (ac_try="$ac_link"
10210 case "(($ac_try" in
10211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10212   *) ac_try_echo=$ac_try;;
10213 esac
10214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10215   (eval "$ac_link") 2>&5
10216   ac_status=$?
10217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10219   { (case "(($ac_try" in
10220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10221   *) ac_try_echo=$ac_try;;
10222 esac
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224   (eval "$ac_try") 2>&5
10225   ac_status=$?
10226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227   (exit $ac_status); }; }; then
10228   ac_cv_func_mmap_fixed_mapped=yes
10229 else
10230   echo "$as_me: program exited with status $ac_status" >&5
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10233
10234 ( exit $ac_status )
10235 ac_cv_func_mmap_fixed_mapped=no
10236 fi
10237 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10238 fi
10239
10240
10241 fi
10242 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10243 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10244 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10245
10246 cat >>confdefs.h <<\_ACEOF
10247 #define HAVE_MMAP 1
10248 _ACEOF
10249
10250 fi
10251 rm -f conftest.mmap
10252
10253
10254     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10255 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10256 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10257   echo $ECHO_N "(cached) $ECHO_C" >&6
10258 else
10259   cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h.  */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h.  */
10265
10266 #include <features.h>
10267 #ifdef __GNU_LIBRARY__
10268  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10269   Lucky GNU user
10270  #endif
10271 #endif
10272
10273 _ACEOF
10274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10275   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10276   ac_cv_gnu_library_2_1=yes
10277 else
10278   ac_cv_gnu_library_2_1=no
10279 fi
10280 rm -f conftest*
10281
10282
10283
10284 fi
10285 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10286 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10287
10288     GLIBC21="$ac_cv_gnu_library_2_1"
10289
10290
10291
10292
10293   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10294 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10295 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298
10299       if test "$cross_compiling" = yes; then
10300
10301           # Guess based on the CPU.
10302           case "$host_cpu" in
10303             alpha* | i3456786 | m68k | s390*)
10304               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10305             *)
10306               gt_cv_int_divbyzero_sigfpe="guessing no";;
10307           esac
10308
10309 else
10310   cat >conftest.$ac_ext <<_ACEOF
10311 /* confdefs.h.  */
10312 _ACEOF
10313 cat confdefs.h >>conftest.$ac_ext
10314 cat >>conftest.$ac_ext <<_ACEOF
10315 /* end confdefs.h.  */
10316
10317 #include <stdlib.h>
10318 #include <signal.h>
10319
10320 static void
10321 #ifdef __cplusplus
10322 sigfpe_handler (int sig)
10323 #else
10324 sigfpe_handler (sig) int sig;
10325 #endif
10326 {
10327   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10328   exit (sig != SIGFPE);
10329 }
10330
10331 int x = 1;
10332 int y = 0;
10333 int z;
10334 int nan;
10335
10336 int main ()
10337 {
10338   signal (SIGFPE, sigfpe_handler);
10339 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10340 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10341   signal (SIGTRAP, sigfpe_handler);
10342 #endif
10343 /* Linux/SPARC yields signal SIGILL.  */
10344 #if defined (__sparc__) && defined (__linux__)
10345   signal (SIGILL, sigfpe_handler);
10346 #endif
10347
10348   z = x / y;
10349   nan = y / y;
10350   exit (1);
10351 }
10352
10353 _ACEOF
10354 rm -f conftest$ac_exeext
10355 if { (ac_try="$ac_link"
10356 case "(($ac_try" in
10357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10358   *) ac_try_echo=$ac_try;;
10359 esac
10360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10361   (eval "$ac_link") 2>&5
10362   ac_status=$?
10363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10365   { (case "(($ac_try" in
10366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367   *) ac_try_echo=$ac_try;;
10368 esac
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370   (eval "$ac_try") 2>&5
10371   ac_status=$?
10372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373   (exit $ac_status); }; }; then
10374   gt_cv_int_divbyzero_sigfpe=yes
10375 else
10376   echo "$as_me: program exited with status $ac_status" >&5
10377 echo "$as_me: failed program was:" >&5
10378 sed 's/^/| /' conftest.$ac_ext >&5
10379
10380 ( exit $ac_status )
10381 gt_cv_int_divbyzero_sigfpe=no
10382 fi
10383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10384 fi
10385
10386
10387
10388 fi
10389 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10390 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10391   case "$gt_cv_int_divbyzero_sigfpe" in
10392     *yes) value=1;;
10393     *) value=0;;
10394   esac
10395
10396 cat >>confdefs.h <<_ACEOF
10397 #define INTDIV0_RAISES_SIGFPE $value
10398 _ACEOF
10399
10400
10401
10402   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10403 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10404 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10405   echo $ECHO_N "(cached) $ECHO_C" >&6
10406 else
10407   cat >conftest.$ac_ext <<_ACEOF
10408 /* confdefs.h.  */
10409 _ACEOF
10410 cat confdefs.h >>conftest.$ac_ext
10411 cat >>conftest.$ac_ext <<_ACEOF
10412 /* end confdefs.h.  */
10413 unsigned long long ull = 1ULL; int i = 63;
10414 int
10415 main ()
10416 {
10417 unsigned long long ullmax = (unsigned long long) -1;
10418      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10419   ;
10420   return 0;
10421 }
10422 _ACEOF
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427   *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430   (eval "$ac_link") 2>conftest.er1
10431   ac_status=$?
10432   grep -v '^ *+' conftest.er1 >conftest.err
10433   rm -f conftest.er1
10434   cat conftest.err >&5
10435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436   (exit $ac_status); } &&
10437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438   { (case "(($ac_try" in
10439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440   *) ac_try_echo=$ac_try;;
10441 esac
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443   (eval "$ac_try") 2>&5
10444   ac_status=$?
10445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446   (exit $ac_status); }; } &&
10447          { ac_try='test -s conftest$ac_exeext'
10448   { (case "(($ac_try" in
10449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450   *) ac_try_echo=$ac_try;;
10451 esac
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453   (eval "$ac_try") 2>&5
10454   ac_status=$?
10455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456   (exit $ac_status); }; }; then
10457   ac_cv_type_unsigned_long_long=yes
10458 else
10459   echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10461
10462         ac_cv_type_unsigned_long_long=no
10463 fi
10464
10465 rm -f core conftest.err conftest.$ac_objext \
10466       conftest$ac_exeext conftest.$ac_ext
10467 fi
10468 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10469 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10470   if test $ac_cv_type_unsigned_long_long = yes; then
10471
10472 cat >>confdefs.h <<\_ACEOF
10473 #define HAVE_UNSIGNED_LONG_LONG 1
10474 _ACEOF
10475
10476   fi
10477
10478
10479
10480
10481   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10482
10483     test $ac_cv_type_unsigned_long_long = yes \
10484       && ac_type='unsigned long long' \
10485       || ac_type='unsigned long'
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define uintmax_t $ac_type
10489 _ACEOF
10490
10491   else
10492
10493 cat >>confdefs.h <<\_ACEOF
10494 #define HAVE_UINTMAX_T 1
10495 _ACEOF
10496
10497   fi
10498
10499
10500   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10501 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10502 if test "${gt_cv_header_inttypes_h+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505
10506     cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 #include <sys/types.h>
10513 #include <inttypes.h>
10514 int
10515 main ()
10516 {
10517
10518   ;
10519   return 0;
10520 }
10521 _ACEOF
10522 rm -f conftest.$ac_objext
10523 if { (ac_try="$ac_compile"
10524 case "(($ac_try" in
10525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526   *) ac_try_echo=$ac_try;;
10527 esac
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529   (eval "$ac_compile") 2>conftest.er1
10530   ac_status=$?
10531   grep -v '^ *+' conftest.er1 >conftest.err
10532   rm -f conftest.er1
10533   cat conftest.err >&5
10534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535   (exit $ac_status); } &&
10536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537   { (case "(($ac_try" in
10538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539   *) ac_try_echo=$ac_try;;
10540 esac
10541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542   (eval "$ac_try") 2>&5
10543   ac_status=$?
10544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545   (exit $ac_status); }; } &&
10546          { ac_try='test -s conftest.$ac_objext'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   gt_cv_header_inttypes_h=yes
10557 else
10558   echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10560
10561         gt_cv_header_inttypes_h=no
10562 fi
10563
10564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10565
10566 fi
10567 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10568 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10569   if test $gt_cv_header_inttypes_h = yes; then
10570
10571 cat >>confdefs.h <<_ACEOF
10572 #define HAVE_INTTYPES_H 1
10573 _ACEOF
10574
10575   fi
10576
10577
10578
10579   if test $gt_cv_header_inttypes_h = yes; then
10580     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10581 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10582 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10583   echo $ECHO_N "(cached) $ECHO_C" >&6
10584 else
10585
10586         cat >conftest.$ac_ext <<_ACEOF
10587 /* confdefs.h.  */
10588 _ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h.  */
10592 #include <inttypes.h>
10593 #ifdef PRId32
10594 char *p = PRId32;
10595 #endif
10596
10597 int
10598 main ()
10599 {
10600
10601   ;
10602   return 0;
10603 }
10604 _ACEOF
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609   *) ac_try_echo=$ac_try;;
10610 esac
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612   (eval "$ac_compile") 2>conftest.er1
10613   ac_status=$?
10614   grep -v '^ *+' conftest.er1 >conftest.err
10615   rm -f conftest.er1
10616   cat conftest.err >&5
10617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618   (exit $ac_status); } &&
10619          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10620   { (case "(($ac_try" in
10621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622   *) ac_try_echo=$ac_try;;
10623 esac
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625   (eval "$ac_try") 2>&5
10626   ac_status=$?
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); }; } &&
10629          { ac_try='test -s conftest.$ac_objext'
10630   { (case "(($ac_try" in
10631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632   *) ac_try_echo=$ac_try;;
10633 esac
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635   (eval "$ac_try") 2>&5
10636   ac_status=$?
10637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638   (exit $ac_status); }; }; then
10639   gt_cv_inttypes_pri_broken=no
10640 else
10641   echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644         gt_cv_inttypes_pri_broken=yes
10645 fi
10646
10647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648
10649 fi
10650 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10651 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10652   fi
10653   if test "$gt_cv_inttypes_pri_broken" = yes; then
10654
10655 cat >>confdefs.h <<_ACEOF
10656 #define PRI_MACROS_BROKEN 1
10657 _ACEOF
10658
10659   fi
10660
10661
10662
10663 for ac_header in stdint.h
10664 do
10665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10667   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10670   echo $ECHO_N "(cached) $ECHO_C" >&6
10671 fi
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673                { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 else
10676   # Is the header compilable?
10677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10679 cat >conftest.$ac_ext <<_ACEOF
10680 /* confdefs.h.  */
10681 _ACEOF
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h.  */
10685 $ac_includes_default
10686 #include <$ac_header>
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_compile") 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } &&
10702          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10703   { (case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10708   (eval "$ac_try") 2>&5
10709   ac_status=$?
10710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711   (exit $ac_status); }; } &&
10712          { ac_try='test -s conftest.$ac_objext'
10713   { (case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_try") 2>&5
10719   ac_status=$?
10720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721   (exit $ac_status); }; }; then
10722   ac_header_compiler=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727         ac_header_compiler=no
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10732 echo "${ECHO_T}$ac_header_compiler" >&6; }
10733
10734 # Is the header present?
10735 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10737 cat >conftest.$ac_ext <<_ACEOF
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 #include <$ac_header>
10744 _ACEOF
10745 if { (ac_try="$ac_cpp conftest.$ac_ext"
10746 case "(($ac_try" in
10747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748   *) ac_try_echo=$ac_try;;
10749 esac
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10752   ac_status=$?
10753   grep -v '^ *+' conftest.er1 >conftest.err
10754   rm -f conftest.er1
10755   cat conftest.err >&5
10756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757   (exit $ac_status); } >/dev/null; then
10758   if test -s conftest.err; then
10759     ac_cpp_err=$ac_c_preproc_warn_flag
10760     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10761   else
10762     ac_cpp_err=
10763   fi
10764 else
10765   ac_cpp_err=yes
10766 fi
10767 if test -z "$ac_cpp_err"; then
10768   ac_header_preproc=yes
10769 else
10770   echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10772
10773   ac_header_preproc=no
10774 fi
10775
10776 rm -f conftest.err conftest.$ac_ext
10777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10778 echo "${ECHO_T}$ac_header_preproc" >&6; }
10779
10780 # So?  What about this header?
10781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10782   yes:no: )
10783     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10784 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10786 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10787     ac_header_preproc=yes
10788     ;;
10789   no:yes:* )
10790     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10791 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10792     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10793 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10794     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10795 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10796     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10797 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10798     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10799 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10800     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10801 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10802
10803     ;;
10804 esac
10805 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10808   echo $ECHO_N "(cached) $ECHO_C" >&6
10809 else
10810   eval "$as_ac_Header=\$ac_header_preproc"
10811 fi
10812 ac_res=`eval echo '${'$as_ac_Header'}'`
10813                { echo "$as_me:$LINENO: result: $ac_res" >&5
10814 echo "${ECHO_T}$ac_res" >&6; }
10815
10816 fi
10817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10818   cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10820 _ACEOF
10821
10822 fi
10823
10824 done
10825
10826     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10827 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10828   result=
10829   cat >conftest.$ac_ext <<_ACEOF
10830 /* confdefs.h.  */
10831 _ACEOF
10832 cat confdefs.h >>conftest.$ac_ext
10833 cat >>conftest.$ac_ext <<_ACEOF
10834 /* end confdefs.h.  */
10835
10836 #include <limits.h>
10837 #if HAVE_STDINT_H
10838 #include <stdint.h>
10839 #endif
10840 #ifdef SIZE_MAX
10841 Found it
10842 #endif
10843
10844 _ACEOF
10845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10846   $EGREP "Found it" >/dev/null 2>&1; then
10847   result=yes
10848 fi
10849 rm -f conftest*
10850
10851   if test -z "$result"; then
10852                     if test "$cross_compiling" = yes; then
10853   # Depending upon the size, compute the lo and hi bounds.
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860 #include <stddef.h>
10861 int
10862 main ()
10863 {
10864 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10865 test_array [0] = 0
10866
10867   ;
10868   return 0;
10869 }
10870 _ACEOF
10871 rm -f conftest.$ac_objext
10872 if { (ac_try="$ac_compile"
10873 case "(($ac_try" in
10874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10875   *) ac_try_echo=$ac_try;;
10876 esac
10877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10878   (eval "$ac_compile") 2>conftest.er1
10879   ac_status=$?
10880   grep -v '^ *+' conftest.er1 >conftest.err
10881   rm -f conftest.er1
10882   cat conftest.err >&5
10883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884   (exit $ac_status); } &&
10885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10886   { (case "(($ac_try" in
10887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10888   *) ac_try_echo=$ac_try;;
10889 esac
10890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10891   (eval "$ac_try") 2>&5
10892   ac_status=$?
10893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10894   (exit $ac_status); }; } &&
10895          { ac_try='test -s conftest.$ac_objext'
10896   { (case "(($ac_try" in
10897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10898   *) ac_try_echo=$ac_try;;
10899 esac
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901   (eval "$ac_try") 2>&5
10902   ac_status=$?
10903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904   (exit $ac_status); }; }; then
10905   ac_lo=0 ac_mid=0
10906   while :; do
10907     cat >conftest.$ac_ext <<_ACEOF
10908 /* confdefs.h.  */
10909 _ACEOF
10910 cat confdefs.h >>conftest.$ac_ext
10911 cat >>conftest.$ac_ext <<_ACEOF
10912 /* end confdefs.h.  */
10913 #include <stddef.h>
10914 int
10915 main ()
10916 {
10917 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10918 test_array [0] = 0
10919
10920   ;
10921   return 0;
10922 }
10923 _ACEOF
10924 rm -f conftest.$ac_objext
10925 if { (ac_try="$ac_compile"
10926 case "(($ac_try" in
10927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928   *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931   (eval "$ac_compile") 2>conftest.er1
10932   ac_status=$?
10933   grep -v '^ *+' conftest.er1 >conftest.err
10934   rm -f conftest.er1
10935   cat conftest.err >&5
10936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937   (exit $ac_status); } &&
10938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10939   { (case "(($ac_try" in
10940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10941   *) ac_try_echo=$ac_try;;
10942 esac
10943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10944   (eval "$ac_try") 2>&5
10945   ac_status=$?
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); }; } &&
10948          { ac_try='test -s conftest.$ac_objext'
10949   { (case "(($ac_try" in
10950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10951   *) ac_try_echo=$ac_try;;
10952 esac
10953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10954   (eval "$ac_try") 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); }; }; then
10958   ac_hi=$ac_mid; break
10959 else
10960   echo "$as_me: failed program was:" >&5
10961 sed 's/^/| /' conftest.$ac_ext >&5
10962
10963         ac_lo=`expr $ac_mid + 1`
10964                         if test $ac_lo -le $ac_mid; then
10965                           ac_lo= ac_hi=
10966                           break
10967                         fi
10968                         ac_mid=`expr 2 '*' $ac_mid + 1`
10969 fi
10970
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972   done
10973 else
10974   echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10976
10977         cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983 #include <stddef.h>
10984 int
10985 main ()
10986 {
10987 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10988 test_array [0] = 0
10989
10990   ;
10991   return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext
10995 if { (ac_try="$ac_compile"
10996 case "(($ac_try" in
10997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998   *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001   (eval "$ac_compile") 2>conftest.er1
11002   ac_status=$?
11003   grep -v '^ *+' conftest.er1 >conftest.err
11004   rm -f conftest.er1
11005   cat conftest.err >&5
11006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007   (exit $ac_status); } &&
11008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11009   { (case "(($ac_try" in
11010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11011   *) ac_try_echo=$ac_try;;
11012 esac
11013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11014   (eval "$ac_try") 2>&5
11015   ac_status=$?
11016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); }; } &&
11018          { ac_try='test -s conftest.$ac_objext'
11019   { (case "(($ac_try" in
11020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021   *) ac_try_echo=$ac_try;;
11022 esac
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024   (eval "$ac_try") 2>&5
11025   ac_status=$?
11026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   ac_hi=-1 ac_mid=-1
11029   while :; do
11030     cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h.  */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h.  */
11036 #include <stddef.h>
11037 int
11038 main ()
11039 {
11040 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11041 test_array [0] = 0
11042
11043   ;
11044   return 0;
11045 }
11046 _ACEOF
11047 rm -f conftest.$ac_objext
11048 if { (ac_try="$ac_compile"
11049 case "(($ac_try" in
11050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11051   *) ac_try_echo=$ac_try;;
11052 esac
11053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11054   (eval "$ac_compile") 2>conftest.er1
11055   ac_status=$?
11056   grep -v '^ *+' conftest.er1 >conftest.err
11057   rm -f conftest.er1
11058   cat conftest.err >&5
11059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060   (exit $ac_status); } &&
11061          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11062   { (case "(($ac_try" in
11063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064   *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067   (eval "$ac_try") 2>&5
11068   ac_status=$?
11069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070   (exit $ac_status); }; } &&
11071          { ac_try='test -s conftest.$ac_objext'
11072   { (case "(($ac_try" in
11073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11074   *) ac_try_echo=$ac_try;;
11075 esac
11076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11077   (eval "$ac_try") 2>&5
11078   ac_status=$?
11079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080   (exit $ac_status); }; }; then
11081   ac_lo=$ac_mid; break
11082 else
11083   echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11085
11086         ac_hi=`expr '(' $ac_mid ')' - 1`
11087                         if test $ac_mid -le $ac_hi; then
11088                           ac_lo= ac_hi=
11089                           break
11090                         fi
11091                         ac_mid=`expr 2 '*' $ac_mid`
11092 fi
11093
11094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095   done
11096 else
11097   echo "$as_me: failed program was:" >&5
11098 sed 's/^/| /' conftest.$ac_ext >&5
11099
11100         ac_lo= ac_hi=
11101 fi
11102
11103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11104 fi
11105
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 # Binary search between lo and hi bounds.
11108 while test "x$ac_lo" != "x$ac_hi"; do
11109   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11110   cat >conftest.$ac_ext <<_ACEOF
11111 /* confdefs.h.  */
11112 _ACEOF
11113 cat confdefs.h >>conftest.$ac_ext
11114 cat >>conftest.$ac_ext <<_ACEOF
11115 /* end confdefs.h.  */
11116 #include <stddef.h>
11117 int
11118 main ()
11119 {
11120 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11121 test_array [0] = 0
11122
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext
11128 if { (ac_try="$ac_compile"
11129 case "(($ac_try" in
11130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11131   *) ac_try_echo=$ac_try;;
11132 esac
11133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11134   (eval "$ac_compile") 2>conftest.er1
11135   ac_status=$?
11136   grep -v '^ *+' conftest.er1 >conftest.err
11137   rm -f conftest.er1
11138   cat conftest.err >&5
11139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140   (exit $ac_status); } &&
11141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11142   { (case "(($ac_try" in
11143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11144   *) ac_try_echo=$ac_try;;
11145 esac
11146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11147   (eval "$ac_try") 2>&5
11148   ac_status=$?
11149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150   (exit $ac_status); }; } &&
11151          { ac_try='test -s conftest.$ac_objext'
11152   { (case "(($ac_try" in
11153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154   *) ac_try_echo=$ac_try;;
11155 esac
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157   (eval "$ac_try") 2>&5
11158   ac_status=$?
11159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160   (exit $ac_status); }; }; then
11161   ac_hi=$ac_mid
11162 else
11163   echo "$as_me: failed program was:" >&5
11164 sed 's/^/| /' conftest.$ac_ext >&5
11165
11166         ac_lo=`expr '(' $ac_mid ')' + 1`
11167 fi
11168
11169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11170 done
11171 case $ac_lo in
11172 ?*) res_hi=$ac_lo;;
11173 '') result=? ;;
11174 esac
11175 else
11176   cat >conftest.$ac_ext <<_ACEOF
11177 /* confdefs.h.  */
11178 _ACEOF
11179 cat confdefs.h >>conftest.$ac_ext
11180 cat >>conftest.$ac_ext <<_ACEOF
11181 /* end confdefs.h.  */
11182 #include <stddef.h>
11183 static long int longval () { return ~(size_t)0 / 10; }
11184 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11185 #include <stdio.h>
11186 #include <stdlib.h>
11187 int
11188 main ()
11189 {
11190
11191   FILE *f = fopen ("conftest.val", "w");
11192   if (! f)
11193     return 1;
11194   if ((~(size_t)0 / 10) < 0)
11195     {
11196       long int i = longval ();
11197       if (i != (~(size_t)0 / 10))
11198         return 1;
11199       fprintf (f, "%ld\n", i);
11200     }
11201   else
11202     {
11203       unsigned long int i = ulongval ();
11204       if (i != (~(size_t)0 / 10))
11205         return 1;
11206       fprintf (f, "%lu\n", i);
11207     }
11208   return ferror (f) || fclose (f) != 0;
11209
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest$ac_exeext
11215 if { (ac_try="$ac_link"
11216 case "(($ac_try" in
11217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11218   *) ac_try_echo=$ac_try;;
11219 esac
11220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11221   (eval "$ac_link") 2>&5
11222   ac_status=$?
11223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11224   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11225   { (case "(($ac_try" in
11226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11227   *) ac_try_echo=$ac_try;;
11228 esac
11229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11230   (eval "$ac_try") 2>&5
11231   ac_status=$?
11232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233   (exit $ac_status); }; }; then
11234   res_hi=`cat conftest.val`
11235 else
11236   echo "$as_me: program exited with status $ac_status" >&5
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11239
11240 ( exit $ac_status )
11241 result=?
11242 fi
11243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11244 fi
11245 rm -f conftest.val
11246     if test "$cross_compiling" = yes; then
11247   # Depending upon the size, compute the lo and hi bounds.
11248 cat >conftest.$ac_ext <<_ACEOF
11249 /* confdefs.h.  */
11250 _ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h.  */
11254 #include <stddef.h>
11255 int
11256 main ()
11257 {
11258 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11259 test_array [0] = 0
11260
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269   *) ac_try_echo=$ac_try;;
11270 esac
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272   (eval "$ac_compile") 2>conftest.er1
11273   ac_status=$?
11274   grep -v '^ *+' conftest.er1 >conftest.err
11275   rm -f conftest.er1
11276   cat conftest.err >&5
11277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278   (exit $ac_status); } &&
11279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11280   { (case "(($ac_try" in
11281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282   *) ac_try_echo=$ac_try;;
11283 esac
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285   (eval "$ac_try") 2>&5
11286   ac_status=$?
11287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288   (exit $ac_status); }; } &&
11289          { ac_try='test -s conftest.$ac_objext'
11290   { (case "(($ac_try" in
11291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11292   *) ac_try_echo=$ac_try;;
11293 esac
11294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11295   (eval "$ac_try") 2>&5
11296   ac_status=$?
11297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298   (exit $ac_status); }; }; then
11299   ac_lo=0 ac_mid=0
11300   while :; do
11301     cat >conftest.$ac_ext <<_ACEOF
11302 /* confdefs.h.  */
11303 _ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h.  */
11307 #include <stddef.h>
11308 int
11309 main ()
11310 {
11311 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11312 test_array [0] = 0
11313
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 rm -f conftest.$ac_objext
11319 if { (ac_try="$ac_compile"
11320 case "(($ac_try" in
11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322   *) ac_try_echo=$ac_try;;
11323 esac
11324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11325   (eval "$ac_compile") 2>conftest.er1
11326   ac_status=$?
11327   grep -v '^ *+' conftest.er1 >conftest.err
11328   rm -f conftest.er1
11329   cat conftest.err >&5
11330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331   (exit $ac_status); } &&
11332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11333   { (case "(($ac_try" in
11334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11335   *) ac_try_echo=$ac_try;;
11336 esac
11337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11338   (eval "$ac_try") 2>&5
11339   ac_status=$?
11340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341   (exit $ac_status); }; } &&
11342          { ac_try='test -s conftest.$ac_objext'
11343   { (case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_try") 2>&5
11349   ac_status=$?
11350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351   (exit $ac_status); }; }; then
11352   ac_hi=$ac_mid; break
11353 else
11354   echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11356
11357         ac_lo=`expr $ac_mid + 1`
11358                         if test $ac_lo -le $ac_mid; then
11359                           ac_lo= ac_hi=
11360                           break
11361                         fi
11362                         ac_mid=`expr 2 '*' $ac_mid + 1`
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366   done
11367 else
11368   echo "$as_me: failed program was:" >&5
11369 sed 's/^/| /' conftest.$ac_ext >&5
11370
11371         cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h.  */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h.  */
11377 #include <stddef.h>
11378 int
11379 main ()
11380 {
11381 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11382 test_array [0] = 0
11383
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (ac_try="$ac_compile"
11390 case "(($ac_try" in
11391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392   *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395   (eval "$ac_compile") 2>conftest.er1
11396   ac_status=$?
11397   grep -v '^ *+' conftest.er1 >conftest.err
11398   rm -f conftest.er1
11399   cat conftest.err >&5
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } &&
11402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11403   { (case "(($ac_try" in
11404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11405   *) ac_try_echo=$ac_try;;
11406 esac
11407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11408   (eval "$ac_try") 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); }; } &&
11412          { ac_try='test -s conftest.$ac_objext'
11413   { (case "(($ac_try" in
11414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11415   *) ac_try_echo=$ac_try;;
11416 esac
11417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11418   (eval "$ac_try") 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; }; then
11422   ac_hi=-1 ac_mid=-1
11423   while :; do
11424     cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h.  */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h.  */
11430 #include <stddef.h>
11431 int
11432 main ()
11433 {
11434 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11435 test_array [0] = 0
11436
11437   ;
11438   return 0;
11439 }
11440 _ACEOF
11441 rm -f conftest.$ac_objext
11442 if { (ac_try="$ac_compile"
11443 case "(($ac_try" in
11444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11445   *) ac_try_echo=$ac_try;;
11446 esac
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448   (eval "$ac_compile") 2>conftest.er1
11449   ac_status=$?
11450   grep -v '^ *+' conftest.er1 >conftest.err
11451   rm -f conftest.er1
11452   cat conftest.err >&5
11453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454   (exit $ac_status); } &&
11455          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11456   { (case "(($ac_try" in
11457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458   *) ac_try_echo=$ac_try;;
11459 esac
11460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461   (eval "$ac_try") 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); }; } &&
11465          { ac_try='test -s conftest.$ac_objext'
11466   { (case "(($ac_try" in
11467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11468   *) ac_try_echo=$ac_try;;
11469 esac
11470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11471   (eval "$ac_try") 2>&5
11472   ac_status=$?
11473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11474   (exit $ac_status); }; }; then
11475   ac_lo=$ac_mid; break
11476 else
11477   echo "$as_me: failed program was:" >&5
11478 sed 's/^/| /' conftest.$ac_ext >&5
11479
11480         ac_hi=`expr '(' $ac_mid ')' - 1`
11481                         if test $ac_mid -le $ac_hi; then
11482                           ac_lo= ac_hi=
11483                           break
11484                         fi
11485                         ac_mid=`expr 2 '*' $ac_mid`
11486 fi
11487
11488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489   done
11490 else
11491   echo "$as_me: failed program was:" >&5
11492 sed 's/^/| /' conftest.$ac_ext >&5
11493
11494         ac_lo= ac_hi=
11495 fi
11496
11497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11498 fi
11499
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501 # Binary search between lo and hi bounds.
11502 while test "x$ac_lo" != "x$ac_hi"; do
11503   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11504   cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h.  */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h.  */
11510 #include <stddef.h>
11511 int
11512 main ()
11513 {
11514 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11515 test_array [0] = 0
11516
11517   ;
11518   return 0;
11519 }
11520 _ACEOF
11521 rm -f conftest.$ac_objext
11522 if { (ac_try="$ac_compile"
11523 case "(($ac_try" in
11524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11525   *) ac_try_echo=$ac_try;;
11526 esac
11527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11528   (eval "$ac_compile") 2>conftest.er1
11529   ac_status=$?
11530   grep -v '^ *+' conftest.er1 >conftest.err
11531   rm -f conftest.er1
11532   cat conftest.err >&5
11533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534   (exit $ac_status); } &&
11535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11536   { (case "(($ac_try" in
11537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538   *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541   (eval "$ac_try") 2>&5
11542   ac_status=$?
11543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544   (exit $ac_status); }; } &&
11545          { ac_try='test -s conftest.$ac_objext'
11546   { (case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_try") 2>&5
11552   ac_status=$?
11553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554   (exit $ac_status); }; }; then
11555   ac_hi=$ac_mid
11556 else
11557   echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11559
11560         ac_lo=`expr '(' $ac_mid ')' + 1`
11561 fi
11562
11563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11564 done
11565 case $ac_lo in
11566 ?*) res_lo=$ac_lo;;
11567 '') result=? ;;
11568 esac
11569 else
11570   cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 #include <stddef.h>
11577 static long int longval () { return ~(size_t)0 % 10; }
11578 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11579 #include <stdio.h>
11580 #include <stdlib.h>
11581 int
11582 main ()
11583 {
11584
11585   FILE *f = fopen ("conftest.val", "w");
11586   if (! f)
11587     return 1;
11588   if ((~(size_t)0 % 10) < 0)
11589     {
11590       long int i = longval ();
11591       if (i != (~(size_t)0 % 10))
11592         return 1;
11593       fprintf (f, "%ld\n", i);
11594     }
11595   else
11596     {
11597       unsigned long int i = ulongval ();
11598       if (i != (~(size_t)0 % 10))
11599         return 1;
11600       fprintf (f, "%lu\n", i);
11601     }
11602   return ferror (f) || fclose (f) != 0;
11603
11604   ;
11605   return 0;
11606 }
11607 _ACEOF
11608 rm -f conftest$ac_exeext
11609 if { (ac_try="$ac_link"
11610 case "(($ac_try" in
11611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612   *) ac_try_echo=$ac_try;;
11613 esac
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615   (eval "$ac_link") 2>&5
11616   ac_status=$?
11617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11619   { (case "(($ac_try" in
11620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11621   *) ac_try_echo=$ac_try;;
11622 esac
11623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11624   (eval "$ac_try") 2>&5
11625   ac_status=$?
11626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627   (exit $ac_status); }; }; then
11628   res_lo=`cat conftest.val`
11629 else
11630   echo "$as_me: program exited with status $ac_status" >&5
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11633
11634 ( exit $ac_status )
11635 result=?
11636 fi
11637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11638 fi
11639 rm -f conftest.val
11640     if test "$cross_compiling" = yes; then
11641   # Depending upon the size, compute the lo and hi bounds.
11642 cat >conftest.$ac_ext <<_ACEOF
11643 /* confdefs.h.  */
11644 _ACEOF
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h.  */
11648 #include <stddef.h>
11649 int
11650 main ()
11651 {
11652 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11653 test_array [0] = 0
11654
11655   ;
11656   return 0;
11657 }
11658 _ACEOF
11659 rm -f conftest.$ac_objext
11660 if { (ac_try="$ac_compile"
11661 case "(($ac_try" in
11662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11663   *) ac_try_echo=$ac_try;;
11664 esac
11665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11666   (eval "$ac_compile") 2>conftest.er1
11667   ac_status=$?
11668   grep -v '^ *+' conftest.er1 >conftest.err
11669   rm -f conftest.er1
11670   cat conftest.err >&5
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11674   { (case "(($ac_try" in
11675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11676   *) ac_try_echo=$ac_try;;
11677 esac
11678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11679   (eval "$ac_try") 2>&5
11680   ac_status=$?
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); }; } &&
11683          { ac_try='test -s conftest.$ac_objext'
11684   { (case "(($ac_try" in
11685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686   *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689   (eval "$ac_try") 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; }; then
11693   ac_lo=0 ac_mid=0
11694   while :; do
11695     cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h.  */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h.  */
11701 #include <stddef.h>
11702 int
11703 main ()
11704 {
11705 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11706 test_array [0] = 0
11707
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext
11713 if { (ac_try="$ac_compile"
11714 case "(($ac_try" in
11715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716   *) ac_try_echo=$ac_try;;
11717 esac
11718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11719   (eval "$ac_compile") 2>conftest.er1
11720   ac_status=$?
11721   grep -v '^ *+' conftest.er1 >conftest.err
11722   rm -f conftest.er1
11723   cat conftest.err >&5
11724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725   (exit $ac_status); } &&
11726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11727   { (case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_try") 2>&5
11733   ac_status=$?
11734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735   (exit $ac_status); }; } &&
11736          { ac_try='test -s conftest.$ac_objext'
11737   { (case "(($ac_try" in
11738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11739   *) ac_try_echo=$ac_try;;
11740 esac
11741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11742   (eval "$ac_try") 2>&5
11743   ac_status=$?
11744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745   (exit $ac_status); }; }; then
11746   ac_hi=$ac_mid; break
11747 else
11748   echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11750
11751         ac_lo=`expr $ac_mid + 1`
11752                         if test $ac_lo -le $ac_mid; then
11753                           ac_lo= ac_hi=
11754                           break
11755                         fi
11756                         ac_mid=`expr 2 '*' $ac_mid + 1`
11757 fi
11758
11759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11760   done
11761 else
11762   echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.$ac_ext >&5
11764
11765         cat >conftest.$ac_ext <<_ACEOF
11766 /* confdefs.h.  */
11767 _ACEOF
11768 cat confdefs.h >>conftest.$ac_ext
11769 cat >>conftest.$ac_ext <<_ACEOF
11770 /* end confdefs.h.  */
11771 #include <stddef.h>
11772 int
11773 main ()
11774 {
11775 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11776 test_array [0] = 0
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_compile") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797   { (case "(($ac_try" in
11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799   *) ac_try_echo=$ac_try;;
11800 esac
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802   (eval "$ac_try") 2>&5
11803   ac_status=$?
11804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805   (exit $ac_status); }; } &&
11806          { ac_try='test -s conftest.$ac_objext'
11807   { (case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812   (eval "$ac_try") 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816   ac_hi=-1 ac_mid=-1
11817   while :; do
11818     cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #include <stddef.h>
11825 int
11826 main ()
11827 {
11828 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11829 test_array [0] = 0
11830
11831   ;
11832   return 0;
11833 }
11834 _ACEOF
11835 rm -f conftest.$ac_objext
11836 if { (ac_try="$ac_compile"
11837 case "(($ac_try" in
11838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839   *) ac_try_echo=$ac_try;;
11840 esac
11841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842   (eval "$ac_compile") 2>conftest.er1
11843   ac_status=$?
11844   grep -v '^ *+' conftest.er1 >conftest.err
11845   rm -f conftest.er1
11846   cat conftest.err >&5
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } &&
11849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11850   { (case "(($ac_try" in
11851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852   *) ac_try_echo=$ac_try;;
11853 esac
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855   (eval "$ac_try") 2>&5
11856   ac_status=$?
11857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858   (exit $ac_status); }; } &&
11859          { ac_try='test -s conftest.$ac_objext'
11860   { (case "(($ac_try" in
11861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11862   *) ac_try_echo=$ac_try;;
11863 esac
11864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11865   (eval "$ac_try") 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); }; }; then
11869   ac_lo=$ac_mid; break
11870 else
11871   echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11873
11874         ac_hi=`expr '(' $ac_mid ')' - 1`
11875                         if test $ac_mid -le $ac_hi; then
11876                           ac_lo= ac_hi=
11877                           break
11878                         fi
11879                         ac_mid=`expr 2 '*' $ac_mid`
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883   done
11884 else
11885   echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.$ac_ext >&5
11887
11888         ac_lo= ac_hi=
11889 fi
11890
11891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895 # Binary search between lo and hi bounds.
11896 while test "x$ac_lo" != "x$ac_hi"; do
11897   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11898   cat >conftest.$ac_ext <<_ACEOF
11899 /* confdefs.h.  */
11900 _ACEOF
11901 cat confdefs.h >>conftest.$ac_ext
11902 cat >>conftest.$ac_ext <<_ACEOF
11903 /* end confdefs.h.  */
11904 #include <stddef.h>
11905 int
11906 main ()
11907 {
11908 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11909 test_array [0] = 0
11910
11911   ;
11912   return 0;
11913 }
11914 _ACEOF
11915 rm -f conftest.$ac_objext
11916 if { (ac_try="$ac_compile"
11917 case "(($ac_try" in
11918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11919   *) ac_try_echo=$ac_try;;
11920 esac
11921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11922   (eval "$ac_compile") 2>conftest.er1
11923   ac_status=$?
11924   grep -v '^ *+' conftest.er1 >conftest.err
11925   rm -f conftest.er1
11926   cat conftest.err >&5
11927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928   (exit $ac_status); } &&
11929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11930   { (case "(($ac_try" in
11931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932   *) ac_try_echo=$ac_try;;
11933 esac
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935   (eval "$ac_try") 2>&5
11936   ac_status=$?
11937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938   (exit $ac_status); }; } &&
11939          { ac_try='test -s conftest.$ac_objext'
11940   { (case "(($ac_try" in
11941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942   *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945   (eval "$ac_try") 2>&5
11946   ac_status=$?
11947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948   (exit $ac_status); }; }; then
11949   ac_hi=$ac_mid
11950 else
11951   echo "$as_me: failed program was:" >&5
11952 sed 's/^/| /' conftest.$ac_ext >&5
11953
11954         ac_lo=`expr '(' $ac_mid ')' + 1`
11955 fi
11956
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 done
11959 case $ac_lo in
11960 ?*) fits_in_uint=$ac_lo;;
11961 '') result=? ;;
11962 esac
11963 else
11964   cat >conftest.$ac_ext <<_ACEOF
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 #include <stddef.h>
11971 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11972 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11973 #include <stdio.h>
11974 #include <stdlib.h>
11975 int
11976 main ()
11977 {
11978
11979   FILE *f = fopen ("conftest.val", "w");
11980   if (! f)
11981     return 1;
11982   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11983     {
11984       long int i = longval ();
11985       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11986         return 1;
11987       fprintf (f, "%ld\n", i);
11988     }
11989   else
11990     {
11991       unsigned long int i = ulongval ();
11992       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11993         return 1;
11994       fprintf (f, "%lu\n", i);
11995     }
11996   return ferror (f) || fclose (f) != 0;
11997
11998   ;
11999   return 0;
12000 }
12001 _ACEOF
12002 rm -f conftest$ac_exeext
12003 if { (ac_try="$ac_link"
12004 case "(($ac_try" in
12005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006   *) ac_try_echo=$ac_try;;
12007 esac
12008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009   (eval "$ac_link") 2>&5
12010   ac_status=$?
12011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013   { (case "(($ac_try" in
12014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015   *) ac_try_echo=$ac_try;;
12016 esac
12017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018   (eval "$ac_try") 2>&5
12019   ac_status=$?
12020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021   (exit $ac_status); }; }; then
12022   fits_in_uint=`cat conftest.val`
12023 else
12024   echo "$as_me: program exited with status $ac_status" >&5
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12027
12028 ( exit $ac_status )
12029 result=?
12030 fi
12031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12032 fi
12033 rm -f conftest.val
12034     if test "$fits_in_uint" = 1; then
12035                   cat >conftest.$ac_ext <<_ACEOF
12036 /* confdefs.h.  */
12037 _ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h.  */
12041 #include <stddef.h>
12042         extern size_t foo;
12043         extern unsigned long foo;
12044
12045 int
12046 main ()
12047 {
12048
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 rm -f conftest.$ac_objext
12054 if { (ac_try="$ac_compile"
12055 case "(($ac_try" in
12056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057   *) ac_try_echo=$ac_try;;
12058 esac
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060   (eval "$ac_compile") 2>conftest.er1
12061   ac_status=$?
12062   grep -v '^ *+' conftest.er1 >conftest.err
12063   rm -f conftest.er1
12064   cat conftest.err >&5
12065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066   (exit $ac_status); } &&
12067          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068   { (case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073   (eval "$ac_try") 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest.$ac_objext'
12078   { (case "(($ac_try" in
12079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080   *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083   (eval "$ac_try") 2>&5
12084   ac_status=$?
12085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086   (exit $ac_status); }; }; then
12087   fits_in_uint=0
12088 else
12089   echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12091
12092
12093 fi
12094
12095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12096     fi
12097     if test -z "$result"; then
12098       if test "$fits_in_uint" = 1; then
12099         result="$res_hi$res_lo"U
12100       else
12101         result="$res_hi$res_lo"UL
12102       fi
12103     else
12104             result='~(size_t)0'
12105     fi
12106   fi
12107   { echo "$as_me:$LINENO: result: $result" >&5
12108 echo "${ECHO_T}$result" >&6; }
12109   if test "$result" != yes; then
12110
12111 cat >>confdefs.h <<_ACEOF
12112 #define SIZE_MAX $result
12113 _ACEOF
12114
12115   fi
12116
12117
12118
12119
12120
12121 for ac_header in stdint.h
12122 do
12123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12128   echo $ECHO_N "(cached) $ECHO_C" >&6
12129 fi
12130 ac_res=`eval echo '${'$as_ac_Header'}'`
12131                { echo "$as_me:$LINENO: result: $ac_res" >&5
12132 echo "${ECHO_T}$ac_res" >&6; }
12133 else
12134   # Is the header compilable?
12135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12137 cat >conftest.$ac_ext <<_ACEOF
12138 /* confdefs.h.  */
12139 _ACEOF
12140 cat confdefs.h >>conftest.$ac_ext
12141 cat >>conftest.$ac_ext <<_ACEOF
12142 /* end confdefs.h.  */
12143 $ac_includes_default
12144 #include <$ac_header>
12145 _ACEOF
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_compile") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } &&
12160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12161   { (case "(($ac_try" in
12162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12163   *) ac_try_echo=$ac_try;;
12164 esac
12165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12166   (eval "$ac_try") 2>&5
12167   ac_status=$?
12168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12169   (exit $ac_status); }; } &&
12170          { ac_try='test -s conftest.$ac_objext'
12171   { (case "(($ac_try" in
12172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173   *) ac_try_echo=$ac_try;;
12174 esac
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176   (eval "$ac_try") 2>&5
12177   ac_status=$?
12178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179   (exit $ac_status); }; }; then
12180   ac_header_compiler=yes
12181 else
12182   echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.$ac_ext >&5
12184
12185         ac_header_compiler=no
12186 fi
12187
12188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12190 echo "${ECHO_T}$ac_header_compiler" >&6; }
12191
12192 # Is the header present?
12193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12195 cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201 #include <$ac_header>
12202 _ACEOF
12203 if { (ac_try="$ac_cpp conftest.$ac_ext"
12204 case "(($ac_try" in
12205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12206   *) ac_try_echo=$ac_try;;
12207 esac
12208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12209   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12210   ac_status=$?
12211   grep -v '^ *+' conftest.er1 >conftest.err
12212   rm -f conftest.er1
12213   cat conftest.err >&5
12214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215   (exit $ac_status); } >/dev/null; then
12216   if test -s conftest.err; then
12217     ac_cpp_err=$ac_c_preproc_warn_flag
12218     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12219   else
12220     ac_cpp_err=
12221   fi
12222 else
12223   ac_cpp_err=yes
12224 fi
12225 if test -z "$ac_cpp_err"; then
12226   ac_header_preproc=yes
12227 else
12228   echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12230
12231   ac_header_preproc=no
12232 fi
12233
12234 rm -f conftest.err conftest.$ac_ext
12235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12236 echo "${ECHO_T}$ac_header_preproc" >&6; }
12237
12238 # So?  What about this header?
12239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12240   yes:no: )
12241     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12245     ac_header_preproc=yes
12246     ;;
12247   no:yes:* )
12248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12250     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12251 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12252     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12254     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12255 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12256     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12258     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12260
12261     ;;
12262 esac
12263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12266   echo $ECHO_N "(cached) $ECHO_C" >&6
12267 else
12268   eval "$as_ac_Header=\$ac_header_preproc"
12269 fi
12270 ac_res=`eval echo '${'$as_ac_Header'}'`
12271                { echo "$as_me:$LINENO: result: $ac_res" >&5
12272 echo "${ECHO_T}$ac_res" >&6; }
12273
12274 fi
12275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12276   cat >>confdefs.h <<_ACEOF
12277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12278 _ACEOF
12279
12280 fi
12281
12282 done
12283
12284
12285
12286
12287
12288
12289
12290
12291   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12292 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12293 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12294   echo $ECHO_N "(cached) $ECHO_C" >&6
12295 else
12296   cat >conftest.$ac_ext <<_ACEOF
12297 /* confdefs.h.  */
12298 _ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h.  */
12302 $ac_includes_default
12303 typedef ptrdiff_t ac__type_new_;
12304 int
12305 main ()
12306 {
12307 if ((ac__type_new_ *) 0)
12308   return 0;
12309 if (sizeof (ac__type_new_))
12310   return 0;
12311   ;
12312   return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext
12316 if { (ac_try="$ac_compile"
12317 case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322   (eval "$ac_compile") 2>conftest.er1
12323   ac_status=$?
12324   grep -v '^ *+' conftest.er1 >conftest.err
12325   rm -f conftest.er1
12326   cat conftest.err >&5
12327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328   (exit $ac_status); } &&
12329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12330   { (case "(($ac_try" in
12331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332   *) ac_try_echo=$ac_try;;
12333 esac
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335   (eval "$ac_try") 2>&5
12336   ac_status=$?
12337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338   (exit $ac_status); }; } &&
12339          { ac_try='test -s conftest.$ac_objext'
12340   { (case "(($ac_try" in
12341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12342   *) ac_try_echo=$ac_try;;
12343 esac
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345   (eval "$ac_try") 2>&5
12346   ac_status=$?
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); }; }; then
12349   ac_cv_type_ptrdiff_t=yes
12350 else
12351   echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12353
12354         ac_cv_type_ptrdiff_t=no
12355 fi
12356
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 fi
12359 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12360 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12361 if test $ac_cv_type_ptrdiff_t = yes; then
12362   :
12363 else
12364
12365 cat >>confdefs.h <<\_ACEOF
12366 #define ptrdiff_t long
12367 _ACEOF
12368
12369
12370 fi
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12383 stdlib.h string.h unistd.h sys/param.h
12384 do
12385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 fi
12392 ac_res=`eval echo '${'$as_ac_Header'}'`
12393                { echo "$as_me:$LINENO: result: $ac_res" >&5
12394 echo "${ECHO_T}$ac_res" >&6; }
12395 else
12396   # Is the header compilable?
12397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 $ac_includes_default
12406 #include <$ac_header>
12407 _ACEOF
12408 rm -f conftest.$ac_objext
12409 if { (ac_try="$ac_compile"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_compile") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } &&
12422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12423   { (case "(($ac_try" in
12424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425   *) ac_try_echo=$ac_try;;
12426 esac
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428   (eval "$ac_try") 2>&5
12429   ac_status=$?
12430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431   (exit $ac_status); }; } &&
12432          { ac_try='test -s conftest.$ac_objext'
12433   { (case "(($ac_try" in
12434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435   *) ac_try_echo=$ac_try;;
12436 esac
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438   (eval "$ac_try") 2>&5
12439   ac_status=$?
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); }; }; then
12442   ac_header_compiler=yes
12443 else
12444   echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447         ac_header_compiler=no
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12452 echo "${ECHO_T}$ac_header_compiler" >&6; }
12453
12454 # Is the header present?
12455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12457 cat >conftest.$ac_ext <<_ACEOF
12458 /* confdefs.h.  */
12459 _ACEOF
12460 cat confdefs.h >>conftest.$ac_ext
12461 cat >>conftest.$ac_ext <<_ACEOF
12462 /* end confdefs.h.  */
12463 #include <$ac_header>
12464 _ACEOF
12465 if { (ac_try="$ac_cpp conftest.$ac_ext"
12466 case "(($ac_try" in
12467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468   *) ac_try_echo=$ac_try;;
12469 esac
12470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12472   ac_status=$?
12473   grep -v '^ *+' conftest.er1 >conftest.err
12474   rm -f conftest.er1
12475   cat conftest.err >&5
12476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12477   (exit $ac_status); } >/dev/null; then
12478   if test -s conftest.err; then
12479     ac_cpp_err=$ac_c_preproc_warn_flag
12480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12481   else
12482     ac_cpp_err=
12483   fi
12484 else
12485   ac_cpp_err=yes
12486 fi
12487 if test -z "$ac_cpp_err"; then
12488   ac_header_preproc=yes
12489 else
12490   echo "$as_me: failed program was:" >&5
12491 sed 's/^/| /' conftest.$ac_ext >&5
12492
12493   ac_header_preproc=no
12494 fi
12495
12496 rm -f conftest.err conftest.$ac_ext
12497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12498 echo "${ECHO_T}$ac_header_preproc" >&6; }
12499
12500 # So?  What about this header?
12501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12502   yes:no: )
12503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12507     ac_header_preproc=yes
12508     ;;
12509   no:yes:* )
12510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12522
12523     ;;
12524 esac
12525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12528   echo $ECHO_N "(cached) $ECHO_C" >&6
12529 else
12530   eval "$as_ac_Header=\$ac_header_preproc"
12531 fi
12532 ac_res=`eval echo '${'$as_ac_Header'}'`
12533                { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12535
12536 fi
12537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12538   cat >>confdefs.h <<_ACEOF
12539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 _ACEOF
12541
12542 fi
12543
12544 done
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12570 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12571 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12572 __fsetlocking
12573 do
12574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12578   echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580   cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h.  */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h.  */
12586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12587    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12588 #define $ac_func innocuous_$ac_func
12589
12590 /* System header to define __stub macros and hopefully few prototypes,
12591     which can conflict with char $ac_func (); below.
12592     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12593     <limits.h> exists even on freestanding compilers.  */
12594
12595 #ifdef __STDC__
12596 # include <limits.h>
12597 #else
12598 # include <assert.h>
12599 #endif
12600
12601 #undef $ac_func
12602
12603 /* Override any GCC internal prototype to avoid an error.
12604    Use char because int might match the return type of a GCC
12605    builtin and then its argument prototype would still apply.  */
12606 #ifdef __cplusplus
12607 extern "C"
12608 #endif
12609 char $ac_func ();
12610 /* The GNU C library defines this for functions which it implements
12611     to always fail with ENOSYS.  Some functions are actually named
12612     something starting with __ and the normal name is an alias.  */
12613 #if defined __stub_$ac_func || defined __stub___$ac_func
12614 choke me
12615 #endif
12616
12617 int
12618 main ()
12619 {
12620 return $ac_func ();
12621   ;
12622   return 0;
12623 }
12624 _ACEOF
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (ac_try="$ac_link"
12627 case "(($ac_try" in
12628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629   *) ac_try_echo=$ac_try;;
12630 esac
12631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12632   (eval "$ac_link") 2>conftest.er1
12633   ac_status=$?
12634   grep -v '^ *+' conftest.er1 >conftest.err
12635   rm -f conftest.er1
12636   cat conftest.err >&5
12637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12638   (exit $ac_status); } &&
12639          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12640   { (case "(($ac_try" in
12641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12642   *) ac_try_echo=$ac_try;;
12643 esac
12644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12645   (eval "$ac_try") 2>&5
12646   ac_status=$?
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); }; } &&
12649          { ac_try='test -s conftest$ac_exeext'
12650   { (case "(($ac_try" in
12651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12652   *) ac_try_echo=$ac_try;;
12653 esac
12654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12655   (eval "$ac_try") 2>&5
12656   ac_status=$?
12657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658   (exit $ac_status); }; }; then
12659   eval "$as_ac_var=yes"
12660 else
12661   echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12663
12664         eval "$as_ac_var=no"
12665 fi
12666
12667 rm -f core conftest.err conftest.$ac_objext \
12668       conftest$ac_exeext conftest.$ac_ext
12669 fi
12670 ac_res=`eval echo '${'$as_ac_var'}'`
12671                { echo "$as_me:$LINENO: result: $ac_res" >&5
12672 echo "${ECHO_T}$ac_res" >&6; }
12673 if test `eval echo '${'$as_ac_var'}'` = yes; then
12674   cat >>confdefs.h <<_ACEOF
12675 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12676 _ACEOF
12677
12678 fi
12679 done
12680
12681
12682
12683   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12684 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12685 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694 #include <stdio.h>
12695 int
12696 main ()
12697 {
12698
12699 #ifndef _snprintf
12700   char *p = (char *) _snprintf;
12701 #endif
12702
12703   ;
12704   return 0;
12705 }
12706 _ACEOF
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711   *) ac_try_echo=$ac_try;;
12712 esac
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714   (eval "$ac_compile") 2>conftest.er1
12715   ac_status=$?
12716   grep -v '^ *+' conftest.er1 >conftest.err
12717   rm -f conftest.er1
12718   cat conftest.err >&5
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } &&
12721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12722   { (case "(($ac_try" in
12723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724   *) ac_try_echo=$ac_try;;
12725 esac
12726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12727   (eval "$ac_try") 2>&5
12728   ac_status=$?
12729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730   (exit $ac_status); }; } &&
12731          { ac_try='test -s conftest.$ac_objext'
12732   { (case "(($ac_try" in
12733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12734   *) ac_try_echo=$ac_try;;
12735 esac
12736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12737   (eval "$ac_try") 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; }; then
12741   ac_cv_have_decl__snprintf=yes
12742 else
12743   echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746         ac_cv_have_decl__snprintf=no
12747 fi
12748
12749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12750 fi
12751 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12752 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12753   if test $ac_cv_have_decl__snprintf = yes; then
12754     gt_value=1
12755   else
12756     gt_value=0
12757   fi
12758
12759 cat >>confdefs.h <<_ACEOF
12760 #define HAVE_DECL__SNPRINTF $gt_value
12761 _ACEOF
12762
12763
12764
12765   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12766 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12767 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12768   echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770   cat >conftest.$ac_ext <<_ACEOF
12771 /* confdefs.h.  */
12772 _ACEOF
12773 cat confdefs.h >>conftest.$ac_ext
12774 cat >>conftest.$ac_ext <<_ACEOF
12775 /* end confdefs.h.  */
12776 #include <stdio.h>
12777 int
12778 main ()
12779 {
12780
12781 #ifndef _snwprintf
12782   char *p = (char *) _snwprintf;
12783 #endif
12784
12785   ;
12786   return 0;
12787 }
12788 _ACEOF
12789 rm -f conftest.$ac_objext
12790 if { (ac_try="$ac_compile"
12791 case "(($ac_try" in
12792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12793   *) ac_try_echo=$ac_try;;
12794 esac
12795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12796   (eval "$ac_compile") 2>conftest.er1
12797   ac_status=$?
12798   grep -v '^ *+' conftest.er1 >conftest.err
12799   rm -f conftest.er1
12800   cat conftest.err >&5
12801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12802   (exit $ac_status); } &&
12803          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12804   { (case "(($ac_try" in
12805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12806   *) ac_try_echo=$ac_try;;
12807 esac
12808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12809   (eval "$ac_try") 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; } &&
12813          { ac_try='test -s conftest.$ac_objext'
12814   { (case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12819   (eval "$ac_try") 2>&5
12820   ac_status=$?
12821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822   (exit $ac_status); }; }; then
12823   ac_cv_have_decl__snwprintf=yes
12824 else
12825   echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12827
12828         ac_cv_have_decl__snwprintf=no
12829 fi
12830
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12834 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12835   if test $ac_cv_have_decl__snwprintf = yes; then
12836     gt_value=1
12837   else
12838     gt_value=0
12839   fi
12840
12841 cat >>confdefs.h <<_ACEOF
12842 #define HAVE_DECL__SNWPRINTF $gt_value
12843 _ACEOF
12844
12845
12846
12847
12848   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12849 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12850 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12851   echo $ECHO_N "(cached) $ECHO_C" >&6
12852 else
12853   cat >conftest.$ac_ext <<_ACEOF
12854 /* confdefs.h.  */
12855 _ACEOF
12856 cat confdefs.h >>conftest.$ac_ext
12857 cat >>conftest.$ac_ext <<_ACEOF
12858 /* end confdefs.h.  */
12859 #include <stdio.h>
12860 int
12861 main ()
12862 {
12863
12864 #ifndef feof_unlocked
12865   char *p = (char *) feof_unlocked;
12866 #endif
12867
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 rm -f conftest.$ac_objext
12873 if { (ac_try="$ac_compile"
12874 case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_compile") 2>conftest.er1
12880   ac_status=$?
12881   grep -v '^ *+' conftest.er1 >conftest.err
12882   rm -f conftest.er1
12883   cat conftest.err >&5
12884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885   (exit $ac_status); } &&
12886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12887   { (case "(($ac_try" in
12888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12889   *) ac_try_echo=$ac_try;;
12890 esac
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892   (eval "$ac_try") 2>&5
12893   ac_status=$?
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); }; } &&
12896          { ac_try='test -s conftest.$ac_objext'
12897   { (case "(($ac_try" in
12898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899   *) ac_try_echo=$ac_try;;
12900 esac
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902   (eval "$ac_try") 2>&5
12903   ac_status=$?
12904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905   (exit $ac_status); }; }; then
12906   ac_cv_have_decl_feof_unlocked=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911         ac_cv_have_decl_feof_unlocked=no
12912 fi
12913
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 fi
12916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12917 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12918   if test $ac_cv_have_decl_feof_unlocked = yes; then
12919     gt_value=1
12920   else
12921     gt_value=0
12922   fi
12923
12924 cat >>confdefs.h <<_ACEOF
12925 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12926 _ACEOF
12927
12928
12929
12930   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12931 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12932 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12933   echo $ECHO_N "(cached) $ECHO_C" >&6
12934 else
12935   cat >conftest.$ac_ext <<_ACEOF
12936 /* confdefs.h.  */
12937 _ACEOF
12938 cat confdefs.h >>conftest.$ac_ext
12939 cat >>conftest.$ac_ext <<_ACEOF
12940 /* end confdefs.h.  */
12941 #include <stdio.h>
12942 int
12943 main ()
12944 {
12945
12946 #ifndef fgets_unlocked
12947   char *p = (char *) fgets_unlocked;
12948 #endif
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 rm -f conftest.$ac_objext
12955 if { (ac_try="$ac_compile"
12956 case "(($ac_try" in
12957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958   *) ac_try_echo=$ac_try;;
12959 esac
12960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12961   (eval "$ac_compile") 2>conftest.er1
12962   ac_status=$?
12963   grep -v '^ *+' conftest.er1 >conftest.err
12964   rm -f conftest.er1
12965   cat conftest.err >&5
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); } &&
12968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12969   { (case "(($ac_try" in
12970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971   *) ac_try_echo=$ac_try;;
12972 esac
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974   (eval "$ac_try") 2>&5
12975   ac_status=$?
12976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977   (exit $ac_status); }; } &&
12978          { ac_try='test -s conftest.$ac_objext'
12979   { (case "(($ac_try" in
12980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981   *) ac_try_echo=$ac_try;;
12982 esac
12983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984   (eval "$ac_try") 2>&5
12985   ac_status=$?
12986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987   (exit $ac_status); }; }; then
12988   ac_cv_have_decl_fgets_unlocked=yes
12989 else
12990   echo "$as_me: failed program was:" >&5
12991 sed 's/^/| /' conftest.$ac_ext >&5
12992
12993         ac_cv_have_decl_fgets_unlocked=no
12994 fi
12995
12996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12997 fi
12998 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12999 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
13000   if test $ac_cv_have_decl_fgets_unlocked = yes; then
13001     gt_value=1
13002   else
13003     gt_value=0
13004   fi
13005
13006 cat >>confdefs.h <<_ACEOF
13007 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13008 _ACEOF
13009
13010
13011
13012   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13013 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13014 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13015   echo $ECHO_N "(cached) $ECHO_C" >&6
13016 else
13017   cat >conftest.$ac_ext <<_ACEOF
13018 /* confdefs.h.  */
13019 _ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h.  */
13023 #include <stdio.h>
13024 int
13025 main ()
13026 {
13027
13028 #ifndef getc_unlocked
13029   char *p = (char *) getc_unlocked;
13030 #endif
13031
13032   ;
13033   return 0;
13034 }
13035 _ACEOF
13036 rm -f conftest.$ac_objext
13037 if { (ac_try="$ac_compile"
13038 case "(($ac_try" in
13039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13040   *) ac_try_echo=$ac_try;;
13041 esac
13042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13043   (eval "$ac_compile") 2>conftest.er1
13044   ac_status=$?
13045   grep -v '^ *+' conftest.er1 >conftest.err
13046   rm -f conftest.er1
13047   cat conftest.err >&5
13048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13049   (exit $ac_status); } &&
13050          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13051   { (case "(($ac_try" in
13052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13053   *) ac_try_echo=$ac_try;;
13054 esac
13055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13056   (eval "$ac_try") 2>&5
13057   ac_status=$?
13058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059   (exit $ac_status); }; } &&
13060          { ac_try='test -s conftest.$ac_objext'
13061   { (case "(($ac_try" in
13062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13063   *) ac_try_echo=$ac_try;;
13064 esac
13065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13066   (eval "$ac_try") 2>&5
13067   ac_status=$?
13068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); }; }; then
13070   ac_cv_have_decl_getc_unlocked=yes
13071 else
13072   echo "$as_me: failed program was:" >&5
13073 sed 's/^/| /' conftest.$ac_ext >&5
13074
13075         ac_cv_have_decl_getc_unlocked=no
13076 fi
13077
13078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13079 fi
13080 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13081 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13082   if test $ac_cv_have_decl_getc_unlocked = yes; then
13083     gt_value=1
13084   else
13085     gt_value=0
13086   fi
13087
13088 cat >>confdefs.h <<_ACEOF
13089 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13090 _ACEOF
13091
13092
13093
13094   case $gt_cv_func_printf_posix in
13095     *yes) HAVE_POSIX_PRINTF=1 ;;
13096     *) HAVE_POSIX_PRINTF=0 ;;
13097   esac
13098
13099   if test "$ac_cv_func_asprintf" = yes; then
13100     HAVE_ASPRINTF=1
13101   else
13102     HAVE_ASPRINTF=0
13103   fi
13104
13105   if test "$ac_cv_func_snprintf" = yes; then
13106     HAVE_SNPRINTF=1
13107   else
13108     HAVE_SNPRINTF=0
13109   fi
13110
13111   if test "$ac_cv_func_wprintf" = yes; then
13112     HAVE_WPRINTF=1
13113   else
13114     HAVE_WPRINTF=0
13115   fi
13116
13117
13118
13119
13120
13121
13122
13123           am_save_CPPFLAGS="$CPPFLAGS"
13124
13125   for element in $INCICONV; do
13126     haveit=
13127     for x in $CPPFLAGS; do
13128
13129   acl_save_prefix="$prefix"
13130   prefix="$acl_final_prefix"
13131   acl_save_exec_prefix="$exec_prefix"
13132   exec_prefix="$acl_final_exec_prefix"
13133   eval x=\"$x\"
13134   exec_prefix="$acl_save_exec_prefix"
13135   prefix="$acl_save_prefix"
13136
13137       if test "X$x" = "X$element"; then
13138         haveit=yes
13139         break
13140       fi
13141     done
13142     if test -z "$haveit"; then
13143       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13144     fi
13145   done
13146
13147
13148   { echo "$as_me:$LINENO: checking for iconv" >&5
13149 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13150 if test "${am_cv_func_iconv+set}" = set; then
13151   echo $ECHO_N "(cached) $ECHO_C" >&6
13152 else
13153
13154     am_cv_func_iconv="no, consider installing GNU libiconv"
13155     am_cv_lib_iconv=no
13156     cat >conftest.$ac_ext <<_ACEOF
13157 /* confdefs.h.  */
13158 _ACEOF
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h.  */
13162 #include <stdlib.h>
13163 #include <iconv.h>
13164 int
13165 main ()
13166 {
13167 iconv_t cd = iconv_open("","");
13168        iconv(cd,NULL,NULL,NULL,NULL);
13169        iconv_close(cd);
13170   ;
13171   return 0;
13172 }
13173 _ACEOF
13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178   *) ac_try_echo=$ac_try;;
13179 esac
13180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13181   (eval "$ac_link") 2>conftest.er1
13182   ac_status=$?
13183   grep -v '^ *+' conftest.er1 >conftest.err
13184   rm -f conftest.er1
13185   cat conftest.err >&5
13186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187   (exit $ac_status); } &&
13188          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13189   { (case "(($ac_try" in
13190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13191   *) ac_try_echo=$ac_try;;
13192 esac
13193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13194   (eval "$ac_try") 2>&5
13195   ac_status=$?
13196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197   (exit $ac_status); }; } &&
13198          { ac_try='test -s conftest$ac_exeext'
13199   { (case "(($ac_try" in
13200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201   *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204   (eval "$ac_try") 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); }; }; then
13208   am_cv_func_iconv=yes
13209 else
13210   echo "$as_me: failed program was:" >&5
13211 sed 's/^/| /' conftest.$ac_ext >&5
13212
13213
13214 fi
13215
13216 rm -f core conftest.err conftest.$ac_objext \
13217       conftest$ac_exeext conftest.$ac_ext
13218     if test "$am_cv_func_iconv" != yes; then
13219       am_save_LIBS="$LIBS"
13220       LIBS="$LIBS $LIBICONV"
13221       cat >conftest.$ac_ext <<_ACEOF
13222 /* confdefs.h.  */
13223 _ACEOF
13224 cat confdefs.h >>conftest.$ac_ext
13225 cat >>conftest.$ac_ext <<_ACEOF
13226 /* end confdefs.h.  */
13227 #include <stdlib.h>
13228 #include <iconv.h>
13229 int
13230 main ()
13231 {
13232 iconv_t cd = iconv_open("","");
13233          iconv(cd,NULL,NULL,NULL,NULL);
13234          iconv_close(cd);
13235   ;
13236   return 0;
13237 }
13238 _ACEOF
13239 rm -f conftest.$ac_objext conftest$ac_exeext
13240 if { (ac_try="$ac_link"
13241 case "(($ac_try" in
13242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13243   *) ac_try_echo=$ac_try;;
13244 esac
13245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13246   (eval "$ac_link") 2>conftest.er1
13247   ac_status=$?
13248   grep -v '^ *+' conftest.er1 >conftest.err
13249   rm -f conftest.er1
13250   cat conftest.err >&5
13251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252   (exit $ac_status); } &&
13253          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13254   { (case "(($ac_try" in
13255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256   *) ac_try_echo=$ac_try;;
13257 esac
13258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13259   (eval "$ac_try") 2>&5
13260   ac_status=$?
13261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262   (exit $ac_status); }; } &&
13263          { ac_try='test -s conftest$ac_exeext'
13264   { (case "(($ac_try" in
13265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266   *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269   (eval "$ac_try") 2>&5
13270   ac_status=$?
13271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272   (exit $ac_status); }; }; then
13273   am_cv_lib_iconv=yes
13274         am_cv_func_iconv=yes
13275 else
13276   echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13278
13279
13280 fi
13281
13282 rm -f core conftest.err conftest.$ac_objext \
13283       conftest$ac_exeext conftest.$ac_ext
13284       LIBS="$am_save_LIBS"
13285     fi
13286
13287 fi
13288 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13289 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13290   if test "$am_cv_func_iconv" = yes; then
13291
13292 cat >>confdefs.h <<\_ACEOF
13293 #define HAVE_ICONV 1
13294 _ACEOF
13295
13296   fi
13297   if test "$am_cv_lib_iconv" = yes; then
13298     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13299 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13300     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13301 echo "${ECHO_T}$LIBICONV" >&6; }
13302   else
13303             CPPFLAGS="$am_save_CPPFLAGS"
13304     LIBICONV=
13305     LTLIBICONV=
13306   fi
13307
13308
13309
13310   if test "$am_cv_func_iconv" = yes; then
13311     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13312 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13313     if test "${am_cv_proto_iconv+set}" = set; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316
13317       cat >conftest.$ac_ext <<_ACEOF
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323
13324 #include <stdlib.h>
13325 #include <iconv.h>
13326 extern
13327 #ifdef __cplusplus
13328 "C"
13329 #endif
13330 #if defined(__STDC__) || defined(__cplusplus)
13331 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13332 #else
13333 size_t iconv();
13334 #endif
13335
13336 int
13337 main ()
13338 {
13339
13340   ;
13341   return 0;
13342 }
13343 _ACEOF
13344 rm -f conftest.$ac_objext
13345 if { (ac_try="$ac_compile"
13346 case "(($ac_try" in
13347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348   *) ac_try_echo=$ac_try;;
13349 esac
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351   (eval "$ac_compile") 2>conftest.er1
13352   ac_status=$?
13353   grep -v '^ *+' conftest.er1 >conftest.err
13354   rm -f conftest.er1
13355   cat conftest.err >&5
13356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357   (exit $ac_status); } &&
13358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359   { (case "(($ac_try" in
13360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361   *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364   (eval "$ac_try") 2>&5
13365   ac_status=$?
13366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); }; } &&
13368          { ac_try='test -s conftest.$ac_objext'
13369   { (case "(($ac_try" in
13370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371   *) ac_try_echo=$ac_try;;
13372 esac
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374   (eval "$ac_try") 2>&5
13375   ac_status=$?
13376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   am_cv_proto_iconv_arg1=""
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         am_cv_proto_iconv_arg1="const"
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387       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);"
13388 fi
13389
13390     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13391     { echo "$as_me:$LINENO: result: ${ac_t:-
13392          }$am_cv_proto_iconv" >&5
13393 echo "${ECHO_T}${ac_t:-
13394          }$am_cv_proto_iconv" >&6; }
13395
13396 cat >>confdefs.h <<_ACEOF
13397 #define ICONV_CONST $am_cv_proto_iconv_arg1
13398 _ACEOF
13399
13400   fi
13401
13402
13403   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13404 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13405 if test "${am_cv_langinfo_codeset+set}" = set; then
13406   echo $ECHO_N "(cached) $ECHO_C" >&6
13407 else
13408   cat >conftest.$ac_ext <<_ACEOF
13409 /* confdefs.h.  */
13410 _ACEOF
13411 cat confdefs.h >>conftest.$ac_ext
13412 cat >>conftest.$ac_ext <<_ACEOF
13413 /* end confdefs.h.  */
13414 #include <langinfo.h>
13415 int
13416 main ()
13417 {
13418 char* cs = nl_langinfo(CODESET);
13419   ;
13420   return 0;
13421 }
13422 _ACEOF
13423 rm -f conftest.$ac_objext conftest$ac_exeext
13424 if { (ac_try="$ac_link"
13425 case "(($ac_try" in
13426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427   *) ac_try_echo=$ac_try;;
13428 esac
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430   (eval "$ac_link") 2>conftest.er1
13431   ac_status=$?
13432   grep -v '^ *+' conftest.er1 >conftest.err
13433   rm -f conftest.er1
13434   cat conftest.err >&5
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); } &&
13437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13438   { (case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_try") 2>&5
13444   ac_status=$?
13445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446   (exit $ac_status); }; } &&
13447          { ac_try='test -s conftest$ac_exeext'
13448   { (case "(($ac_try" in
13449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13450   *) ac_try_echo=$ac_try;;
13451 esac
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453   (eval "$ac_try") 2>&5
13454   ac_status=$?
13455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456   (exit $ac_status); }; }; then
13457   am_cv_langinfo_codeset=yes
13458 else
13459   echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462         am_cv_langinfo_codeset=no
13463 fi
13464
13465 rm -f core conftest.err conftest.$ac_objext \
13466       conftest$ac_exeext conftest.$ac_ext
13467
13468 fi
13469 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13470 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13471   if test $am_cv_langinfo_codeset = yes; then
13472
13473 cat >>confdefs.h <<\_ACEOF
13474 #define HAVE_LANGINFO_CODESET 1
13475 _ACEOF
13476
13477   fi
13478
13479   if test $ac_cv_header_locale_h = yes; then
13480
13481   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13482 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13483 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13484   echo $ECHO_N "(cached) $ECHO_C" >&6
13485 else
13486   cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492 #include <locale.h>
13493 int
13494 main ()
13495 {
13496 return LC_MESSAGES
13497   ;
13498   return 0;
13499 }
13500 _ACEOF
13501 rm -f conftest.$ac_objext conftest$ac_exeext
13502 if { (ac_try="$ac_link"
13503 case "(($ac_try" in
13504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13505   *) ac_try_echo=$ac_try;;
13506 esac
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508   (eval "$ac_link") 2>conftest.er1
13509   ac_status=$?
13510   grep -v '^ *+' conftest.er1 >conftest.err
13511   rm -f conftest.er1
13512   cat conftest.err >&5
13513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514   (exit $ac_status); } &&
13515          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13516   { (case "(($ac_try" in
13517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518   *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521   (eval "$ac_try") 2>&5
13522   ac_status=$?
13523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524   (exit $ac_status); }; } &&
13525          { ac_try='test -s conftest$ac_exeext'
13526   { (case "(($ac_try" in
13527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528   *) ac_try_echo=$ac_try;;
13529 esac
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531   (eval "$ac_try") 2>&5
13532   ac_status=$?
13533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); }; }; then
13535   gt_cv_val_LC_MESSAGES=yes
13536 else
13537   echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540         gt_cv_val_LC_MESSAGES=no
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext \
13544       conftest$ac_exeext conftest.$ac_ext
13545 fi
13546 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13547 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13548   if test $gt_cv_val_LC_MESSAGES = yes; then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_LC_MESSAGES 1
13552 _ACEOF
13553
13554   fi
13555
13556   fi
13557
13558   if test -n "$INTL_MACOSX_LIBS"; then
13559     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13560   fi
13561
13562                       for ac_prog in bison
13563 do
13564   # Extract the first word of "$ac_prog", so it can be a program name with args.
13565 set dummy $ac_prog; ac_word=$2
13566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13568 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13569   echo $ECHO_N "(cached) $ECHO_C" >&6
13570 else
13571   if test -n "$INTLBISON"; then
13572   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13573 else
13574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13575 for as_dir in $PATH
13576 do
13577   IFS=$as_save_IFS
13578   test -z "$as_dir" && as_dir=.
13579   for ac_exec_ext in '' $ac_executable_extensions; do
13580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13581     ac_cv_prog_INTLBISON="$ac_prog"
13582     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13583     break 2
13584   fi
13585 done
13586 done
13587 IFS=$as_save_IFS
13588
13589 fi
13590 fi
13591 INTLBISON=$ac_cv_prog_INTLBISON
13592 if test -n "$INTLBISON"; then
13593   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13594 echo "${ECHO_T}$INTLBISON" >&6; }
13595 else
13596   { echo "$as_me:$LINENO: result: no" >&5
13597 echo "${ECHO_T}no" >&6; }
13598 fi
13599
13600
13601   test -n "$INTLBISON" && break
13602 done
13603
13604   if test -z "$INTLBISON"; then
13605     ac_verc_fail=yes
13606   else
13607         { echo "$as_me:$LINENO: checking version of bison" >&5
13608 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13609     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13610     case $ac_prog_version in
13611       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13612       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13613          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13614       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13615     esac
13616     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13617 echo "${ECHO_T}$ac_prog_version" >&6; }
13618   fi
13619   if test $ac_verc_fail = yes; then
13620     INTLBISON=:
13621   fi
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13639 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13640 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13641   echo $ECHO_N "(cached) $ECHO_C" >&6
13642 else
13643   gt_save_CPPFLAGS="$CPPFLAGS"
13644      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13645      gt_save_LIBS="$LIBS"
13646      LIBS="$LIBS -framework CoreFoundation"
13647      cat >conftest.$ac_ext <<_ACEOF
13648 /* confdefs.h.  */
13649 _ACEOF
13650 cat confdefs.h >>conftest.$ac_ext
13651 cat >>conftest.$ac_ext <<_ACEOF
13652 /* end confdefs.h.  */
13653 #include <CFPreferences.h>
13654 int
13655 main ()
13656 {
13657 CFPreferencesCopyAppValue(NULL, NULL)
13658   ;
13659   return 0;
13660 }
13661 _ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (ac_try="$ac_link"
13664 case "(($ac_try" in
13665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13666   *) ac_try_echo=$ac_try;;
13667 esac
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669   (eval "$ac_link") 2>conftest.er1
13670   ac_status=$?
13671   grep -v '^ *+' conftest.er1 >conftest.err
13672   rm -f conftest.er1
13673   cat conftest.err >&5
13674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675   (exit $ac_status); } &&
13676          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13677   { (case "(($ac_try" in
13678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679   *) ac_try_echo=$ac_try;;
13680 esac
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682   (eval "$ac_try") 2>&5
13683   ac_status=$?
13684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13685   (exit $ac_status); }; } &&
13686          { ac_try='test -s conftest$ac_exeext'
13687   { (case "(($ac_try" in
13688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13689   *) ac_try_echo=$ac_try;;
13690 esac
13691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13692   (eval "$ac_try") 2>&5
13693   ac_status=$?
13694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695   (exit $ac_status); }; }; then
13696   gt_cv_func_CFPreferencesCopyAppValue=yes
13697 else
13698   echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701         gt_cv_func_CFPreferencesCopyAppValue=no
13702 fi
13703
13704 rm -f core conftest.err conftest.$ac_objext \
13705       conftest$ac_exeext conftest.$ac_ext
13706      CPPFLAGS="$gt_save_CPPFLAGS"
13707      LIBS="$gt_save_LIBS"
13708 fi
13709 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13710 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13711   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13712
13713 cat >>confdefs.h <<\_ACEOF
13714 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13715 _ACEOF
13716
13717   fi
13718     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13719 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13720 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13721   echo $ECHO_N "(cached) $ECHO_C" >&6
13722 else
13723   gt_save_CPPFLAGS="$CPPFLAGS"
13724      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13725      gt_save_LIBS="$LIBS"
13726      LIBS="$LIBS -framework CoreFoundation"
13727      cat >conftest.$ac_ext <<_ACEOF
13728 /* confdefs.h.  */
13729 _ACEOF
13730 cat confdefs.h >>conftest.$ac_ext
13731 cat >>conftest.$ac_ext <<_ACEOF
13732 /* end confdefs.h.  */
13733 #include <CFLocale.h>
13734 int
13735 main ()
13736 {
13737 CFLocaleCopyCurrent();
13738   ;
13739   return 0;
13740 }
13741 _ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (ac_try="$ac_link"
13744 case "(($ac_try" in
13745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13746   *) ac_try_echo=$ac_try;;
13747 esac
13748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13749   (eval "$ac_link") 2>conftest.er1
13750   ac_status=$?
13751   grep -v '^ *+' conftest.er1 >conftest.err
13752   rm -f conftest.er1
13753   cat conftest.err >&5
13754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755   (exit $ac_status); } &&
13756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13757   { (case "(($ac_try" in
13758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759   *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762   (eval "$ac_try") 2>&5
13763   ac_status=$?
13764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765   (exit $ac_status); }; } &&
13766          { ac_try='test -s conftest$ac_exeext'
13767   { (case "(($ac_try" in
13768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769   *) ac_try_echo=$ac_try;;
13770 esac
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772   (eval "$ac_try") 2>&5
13773   ac_status=$?
13774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775   (exit $ac_status); }; }; then
13776   gt_cv_func_CFLocaleCopyCurrent=yes
13777 else
13778   echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13780
13781         gt_cv_func_CFLocaleCopyCurrent=no
13782 fi
13783
13784 rm -f core conftest.err conftest.$ac_objext \
13785       conftest$ac_exeext conftest.$ac_ext
13786      CPPFLAGS="$gt_save_CPPFLAGS"
13787      LIBS="$gt_save_LIBS"
13788 fi
13789 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13790 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13791   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13792
13793 cat >>confdefs.h <<\_ACEOF
13794 #define HAVE_CFLOCALECOPYCURRENT 1
13795 _ACEOF
13796
13797   fi
13798   INTL_MACOSX_LIBS=
13799   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13800     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13801   fi
13802
13803
13804
13805
13806   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13807 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13808     # Check whether --enable-nls was given.
13809 if test "${enable_nls+set}" = set; then
13810   enableval=$enable_nls; USE_NLS=$enableval
13811 else
13812   USE_NLS=yes
13813 fi
13814
13815   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13816 echo "${ECHO_T}$USE_NLS" >&6; }
13817
13818
13819
13820
13821     BUILD_INCLUDED_LIBINTL=no
13822     USE_INCLUDED_LIBINTL=no
13823
13824   LIBINTL=
13825   LTLIBINTL=
13826   POSUB=
13827
13828     if test "$USE_NLS" = "yes"; then
13829     gt_use_preinstalled_gnugettext=no
13830
13831       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13832 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13833
13834 # Check whether --with-included-gettext was given.
13835 if test "${with_included_gettext+set}" = set; then
13836   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13837 else
13838   nls_cv_force_use_gnu_gettext=no
13839 fi
13840
13841       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13842 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13843
13844       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13845       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13846
13847
13848
13849
13850
13851
13852         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13853 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13854 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13855   echo $ECHO_N "(cached) $ECHO_C" >&6
13856 else
13857   cat >conftest.$ac_ext <<_ACEOF
13858 /* confdefs.h.  */
13859 _ACEOF
13860 cat confdefs.h >>conftest.$ac_ext
13861 cat >>conftest.$ac_ext <<_ACEOF
13862 /* end confdefs.h.  */
13863 #include <libintl.h>
13864 extern int _nl_msg_cat_cntr;
13865 extern int *_nl_domain_bindings;
13866 int
13867 main ()
13868 {
13869 bindtextdomain ("", "");
13870 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13871   ;
13872   return 0;
13873 }
13874 _ACEOF
13875 rm -f conftest.$ac_objext conftest$ac_exeext
13876 if { (ac_try="$ac_link"
13877 case "(($ac_try" in
13878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879   *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882   (eval "$ac_link") 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890   { (case "(($ac_try" in
13891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892   *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895   (eval "$ac_try") 2>&5
13896   ac_status=$?
13897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898   (exit $ac_status); }; } &&
13899          { ac_try='test -s conftest$ac_exeext'
13900   { (case "(($ac_try" in
13901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902   *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905   (eval "$ac_try") 2>&5
13906   ac_status=$?
13907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908   (exit $ac_status); }; }; then
13909   gt_cv_func_gnugettext1_libc=yes
13910 else
13911   echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914         gt_cv_func_gnugettext1_libc=no
13915 fi
13916
13917 rm -f core conftest.err conftest.$ac_objext \
13918       conftest$ac_exeext conftest.$ac_ext
13919 fi
13920 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13921 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13922
13923         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13924
13925
13926
13927     use_additional=yes
13928
13929   acl_save_prefix="$prefix"
13930   prefix="$acl_final_prefix"
13931   acl_save_exec_prefix="$exec_prefix"
13932   exec_prefix="$acl_final_exec_prefix"
13933
13934     eval additional_includedir=\"$includedir\"
13935     eval additional_libdir=\"$libdir\"
13936
13937   exec_prefix="$acl_save_exec_prefix"
13938   prefix="$acl_save_prefix"
13939
13940
13941 # Check whether --with-libintl-prefix was given.
13942 if test "${with_libintl_prefix+set}" = set; then
13943   withval=$with_libintl_prefix;
13944     if test "X$withval" = "Xno"; then
13945       use_additional=no
13946     else
13947       if test "X$withval" = "X"; then
13948
13949   acl_save_prefix="$prefix"
13950   prefix="$acl_final_prefix"
13951   acl_save_exec_prefix="$exec_prefix"
13952   exec_prefix="$acl_final_exec_prefix"
13953
13954           eval additional_includedir=\"$includedir\"
13955           eval additional_libdir=\"$libdir\"
13956
13957   exec_prefix="$acl_save_exec_prefix"
13958   prefix="$acl_save_prefix"
13959
13960       else
13961         additional_includedir="$withval/include"
13962         additional_libdir="$withval/lib"
13963       fi
13964     fi
13965
13966 fi
13967
13968       LIBINTL=
13969   LTLIBINTL=
13970   INCINTL=
13971   rpathdirs=
13972   ltrpathdirs=
13973   names_already_handled=
13974   names_next_round='intl '
13975   while test -n "$names_next_round"; do
13976     names_this_round="$names_next_round"
13977     names_next_round=
13978     for name in $names_this_round; do
13979       already_handled=
13980       for n in $names_already_handled; do
13981         if test "$n" = "$name"; then
13982           already_handled=yes
13983           break
13984         fi
13985       done
13986       if test -z "$already_handled"; then
13987         names_already_handled="$names_already_handled $name"
13988                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13989         eval value=\"\$HAVE_LIB$uppername\"
13990         if test -n "$value"; then
13991           if test "$value" = yes; then
13992             eval value=\"\$LIB$uppername\"
13993             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13994             eval value=\"\$LTLIB$uppername\"
13995             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13996           else
13997                                     :
13998           fi
13999         else
14000                               found_dir=
14001           found_la=
14002           found_so=
14003           found_a=
14004           if test $use_additional = yes; then
14005             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14006               found_dir="$additional_libdir"
14007               found_so="$additional_libdir/lib$name.$shlibext"
14008               if test -f "$additional_libdir/lib$name.la"; then
14009                 found_la="$additional_libdir/lib$name.la"
14010               fi
14011             else
14012               if test -f "$additional_libdir/lib$name.$libext"; then
14013                 found_dir="$additional_libdir"
14014                 found_a="$additional_libdir/lib$name.$libext"
14015                 if test -f "$additional_libdir/lib$name.la"; then
14016                   found_la="$additional_libdir/lib$name.la"
14017                 fi
14018               fi
14019             fi
14020           fi
14021           if test "X$found_dir" = "X"; then
14022             for x in $LDFLAGS $LTLIBINTL; do
14023
14024   acl_save_prefix="$prefix"
14025   prefix="$acl_final_prefix"
14026   acl_save_exec_prefix="$exec_prefix"
14027   exec_prefix="$acl_final_exec_prefix"
14028   eval x=\"$x\"
14029   exec_prefix="$acl_save_exec_prefix"
14030   prefix="$acl_save_prefix"
14031
14032               case "$x" in
14033                 -L*)
14034                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14035                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14036                     found_dir="$dir"
14037                     found_so="$dir/lib$name.$shlibext"
14038                     if test -f "$dir/lib$name.la"; then
14039                       found_la="$dir/lib$name.la"
14040                     fi
14041                   else
14042                     if test -f "$dir/lib$name.$libext"; then
14043                       found_dir="$dir"
14044                       found_a="$dir/lib$name.$libext"
14045                       if test -f "$dir/lib$name.la"; then
14046                         found_la="$dir/lib$name.la"
14047                       fi
14048                     fi
14049                   fi
14050                   ;;
14051               esac
14052               if test "X$found_dir" != "X"; then
14053                 break
14054               fi
14055             done
14056           fi
14057           if test "X$found_dir" != "X"; then
14058                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14059             if test "X$found_so" != "X"; then
14060                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14061                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14062               else
14063                                                                                 haveit=
14064                 for x in $ltrpathdirs; do
14065                   if test "X$x" = "X$found_dir"; then
14066                     haveit=yes
14067                     break
14068                   fi
14069                 done
14070                 if test -z "$haveit"; then
14071                   ltrpathdirs="$ltrpathdirs $found_dir"
14072                 fi
14073                                 if test "$hardcode_direct" = yes; then
14074                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14075                 else
14076                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14077                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14078                                                             haveit=
14079                     for x in $rpathdirs; do
14080                       if test "X$x" = "X$found_dir"; then
14081                         haveit=yes
14082                         break
14083                       fi
14084                     done
14085                     if test -z "$haveit"; then
14086                       rpathdirs="$rpathdirs $found_dir"
14087                     fi
14088                   else
14089                                                                                 haveit=
14090                     for x in $LDFLAGS $LIBINTL; do
14091
14092   acl_save_prefix="$prefix"
14093   prefix="$acl_final_prefix"
14094   acl_save_exec_prefix="$exec_prefix"
14095   exec_prefix="$acl_final_exec_prefix"
14096   eval x=\"$x\"
14097   exec_prefix="$acl_save_exec_prefix"
14098   prefix="$acl_save_prefix"
14099
14100                       if test "X$x" = "X-L$found_dir"; then
14101                         haveit=yes
14102                         break
14103                       fi
14104                     done
14105                     if test -z "$haveit"; then
14106                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14107                     fi
14108                     if test "$hardcode_minus_L" != no; then
14109                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14110                     else
14111                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14112                     fi
14113                   fi
14114                 fi
14115               fi
14116             else
14117               if test "X$found_a" != "X"; then
14118                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14119               else
14120                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14121               fi
14122             fi
14123                         additional_includedir=
14124             case "$found_dir" in
14125               */lib | */lib/)
14126                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14127                 additional_includedir="$basedir/include"
14128                 ;;
14129             esac
14130             if test "X$additional_includedir" != "X"; then
14131                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14132                 haveit=
14133                 if test "X$additional_includedir" = "X/usr/local/include"; then
14134                   if test -n "$GCC"; then
14135                     case $host_os in
14136                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14137                     esac
14138                   fi
14139                 fi
14140                 if test -z "$haveit"; then
14141                   for x in $CPPFLAGS $INCINTL; do
14142
14143   acl_save_prefix="$prefix"
14144   prefix="$acl_final_prefix"
14145   acl_save_exec_prefix="$exec_prefix"
14146   exec_prefix="$acl_final_exec_prefix"
14147   eval x=\"$x\"
14148   exec_prefix="$acl_save_exec_prefix"
14149   prefix="$acl_save_prefix"
14150
14151                     if test "X$x" = "X-I$additional_includedir"; then
14152                       haveit=yes
14153                       break
14154                     fi
14155                   done
14156                   if test -z "$haveit"; then
14157                     if test -d "$additional_includedir"; then
14158                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14159                     fi
14160                   fi
14161                 fi
14162               fi
14163             fi
14164                         if test -n "$found_la"; then
14165                                                         save_libdir="$libdir"
14166               case "$found_la" in
14167                 */* | *\\*) . "$found_la" ;;
14168                 *) . "./$found_la" ;;
14169               esac
14170               libdir="$save_libdir"
14171                             for dep in $dependency_libs; do
14172                 case "$dep" in
14173                   -L*)
14174                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14175                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14176                       haveit=
14177                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14178                         if test -n "$GCC"; then
14179                           case $host_os in
14180                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14181                           esac
14182                         fi
14183                       fi
14184                       if test -z "$haveit"; then
14185                         haveit=
14186                         for x in $LDFLAGS $LIBINTL; do
14187
14188   acl_save_prefix="$prefix"
14189   prefix="$acl_final_prefix"
14190   acl_save_exec_prefix="$exec_prefix"
14191   exec_prefix="$acl_final_exec_prefix"
14192   eval x=\"$x\"
14193   exec_prefix="$acl_save_exec_prefix"
14194   prefix="$acl_save_prefix"
14195
14196                           if test "X$x" = "X-L$additional_libdir"; then
14197                             haveit=yes
14198                             break
14199                           fi
14200                         done
14201                         if test -z "$haveit"; then
14202                           if test -d "$additional_libdir"; then
14203                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14204                           fi
14205                         fi
14206                         haveit=
14207                         for x in $LDFLAGS $LTLIBINTL; do
14208
14209   acl_save_prefix="$prefix"
14210   prefix="$acl_final_prefix"
14211   acl_save_exec_prefix="$exec_prefix"
14212   exec_prefix="$acl_final_exec_prefix"
14213   eval x=\"$x\"
14214   exec_prefix="$acl_save_exec_prefix"
14215   prefix="$acl_save_prefix"
14216
14217                           if test "X$x" = "X-L$additional_libdir"; then
14218                             haveit=yes
14219                             break
14220                           fi
14221                         done
14222                         if test -z "$haveit"; then
14223                           if test -d "$additional_libdir"; then
14224                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14225                           fi
14226                         fi
14227                       fi
14228                     fi
14229                     ;;
14230                   -R*)
14231                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14232                     if test "$enable_rpath" != no; then
14233                                                                   haveit=
14234                       for x in $rpathdirs; do
14235                         if test "X$x" = "X$dir"; then
14236                           haveit=yes
14237                           break
14238                         fi
14239                       done
14240                       if test -z "$haveit"; then
14241                         rpathdirs="$rpathdirs $dir"
14242                       fi
14243                                                                   haveit=
14244                       for x in $ltrpathdirs; do
14245                         if test "X$x" = "X$dir"; then
14246                           haveit=yes
14247                           break
14248                         fi
14249                       done
14250                       if test -z "$haveit"; then
14251                         ltrpathdirs="$ltrpathdirs $dir"
14252                       fi
14253                     fi
14254                     ;;
14255                   -l*)
14256                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14257                     ;;
14258                   *.la)
14259                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14260                     ;;
14261                   *)
14262                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14263                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14264                     ;;
14265                 esac
14266               done
14267             fi
14268           else
14269                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14270             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14271           fi
14272         fi
14273       fi
14274     done
14275   done
14276   if test "X$rpathdirs" != "X"; then
14277     if test -n "$hardcode_libdir_separator"; then
14278                         alldirs=
14279       for found_dir in $rpathdirs; do
14280         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14281       done
14282             acl_save_libdir="$libdir"
14283       libdir="$alldirs"
14284       eval flag=\"$hardcode_libdir_flag_spec\"
14285       libdir="$acl_save_libdir"
14286       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14287     else
14288             for found_dir in $rpathdirs; do
14289         acl_save_libdir="$libdir"
14290         libdir="$found_dir"
14291         eval flag=\"$hardcode_libdir_flag_spec\"
14292         libdir="$acl_save_libdir"
14293         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14294       done
14295     fi
14296   fi
14297   if test "X$ltrpathdirs" != "X"; then
14298             for found_dir in $ltrpathdirs; do
14299       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14300     done
14301   fi
14302
14303           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14304 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14305 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14306   echo $ECHO_N "(cached) $ECHO_C" >&6
14307 else
14308   gt_save_CPPFLAGS="$CPPFLAGS"
14309             CPPFLAGS="$CPPFLAGS $INCINTL"
14310             gt_save_LIBS="$LIBS"
14311             LIBS="$LIBS $LIBINTL"
14312                         cat >conftest.$ac_ext <<_ACEOF
14313 /* confdefs.h.  */
14314 _ACEOF
14315 cat confdefs.h >>conftest.$ac_ext
14316 cat >>conftest.$ac_ext <<_ACEOF
14317 /* end confdefs.h.  */
14318 #include <libintl.h>
14319 extern int _nl_msg_cat_cntr;
14320 extern
14321 #ifdef __cplusplus
14322 "C"
14323 #endif
14324 const char *_nl_expand_alias (const char *);
14325 int
14326 main ()
14327 {
14328 bindtextdomain ("", "");
14329 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14330   ;
14331   return 0;
14332 }
14333 _ACEOF
14334 rm -f conftest.$ac_objext conftest$ac_exeext
14335 if { (ac_try="$ac_link"
14336 case "(($ac_try" in
14337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14338   *) ac_try_echo=$ac_try;;
14339 esac
14340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14341   (eval "$ac_link") 2>conftest.er1
14342   ac_status=$?
14343   grep -v '^ *+' conftest.er1 >conftest.err
14344   rm -f conftest.er1
14345   cat conftest.err >&5
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14349   { (case "(($ac_try" in
14350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14351   *) ac_try_echo=$ac_try;;
14352 esac
14353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14354   (eval "$ac_try") 2>&5
14355   ac_status=$?
14356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357   (exit $ac_status); }; } &&
14358          { ac_try='test -s conftest$ac_exeext'
14359   { (case "(($ac_try" in
14360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14361   *) ac_try_echo=$ac_try;;
14362 esac
14363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14364   (eval "$ac_try") 2>&5
14365   ac_status=$?
14366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367   (exit $ac_status); }; }; then
14368   gt_cv_func_gnugettext1_libintl=yes
14369 else
14370   echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14372
14373         gt_cv_func_gnugettext1_libintl=no
14374 fi
14375
14376 rm -f core conftest.err conftest.$ac_objext \
14377       conftest$ac_exeext conftest.$ac_ext
14378                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14379               LIBS="$LIBS $LIBICONV"
14380               cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 #include <libintl.h>
14387 extern int _nl_msg_cat_cntr;
14388 extern
14389 #ifdef __cplusplus
14390 "C"
14391 #endif
14392 const char *_nl_expand_alias (const char *);
14393 int
14394 main ()
14395 {
14396 bindtextdomain ("", "");
14397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14398   ;
14399   return 0;
14400 }
14401 _ACEOF
14402 rm -f conftest.$ac_objext conftest$ac_exeext
14403 if { (ac_try="$ac_link"
14404 case "(($ac_try" in
14405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14406   *) ac_try_echo=$ac_try;;
14407 esac
14408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14409   (eval "$ac_link") 2>conftest.er1
14410   ac_status=$?
14411   grep -v '^ *+' conftest.er1 >conftest.err
14412   rm -f conftest.er1
14413   cat conftest.err >&5
14414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14415   (exit $ac_status); } &&
14416          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14417   { (case "(($ac_try" in
14418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14419   *) ac_try_echo=$ac_try;;
14420 esac
14421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14422   (eval "$ac_try") 2>&5
14423   ac_status=$?
14424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425   (exit $ac_status); }; } &&
14426          { ac_try='test -s conftest$ac_exeext'
14427   { (case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_try") 2>&5
14433   ac_status=$?
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); }; }; then
14436   LIBINTL="$LIBINTL $LIBICONV"
14437                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14438                 gt_cv_func_gnugettext1_libintl=yes
14439
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444
14445 fi
14446
14447 rm -f core conftest.err conftest.$ac_objext \
14448       conftest$ac_exeext conftest.$ac_ext
14449             fi
14450             CPPFLAGS="$gt_save_CPPFLAGS"
14451             LIBS="$gt_save_LIBS"
14452 fi
14453 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14454 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14455         fi
14456
14457                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14458            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14459                 && test "$PACKAGE" != gettext-runtime \
14460                 && test "$PACKAGE" != gettext-tools; }; then
14461           gt_use_preinstalled_gnugettext=yes
14462         else
14463                     LIBINTL=
14464           LTLIBINTL=
14465           INCINTL=
14466         fi
14467
14468
14469         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14470                               nls_cv_use_gnu_gettext=yes
14471         fi
14472       fi
14473
14474       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14475                 BUILD_INCLUDED_LIBINTL=yes
14476         USE_INCLUDED_LIBINTL=yes
14477         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14478         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14479         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14480       fi
14481
14482       CATOBJEXT=
14483       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14484          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14485                 CATOBJEXT=.gmo
14486       fi
14487
14488
14489     if test -n "$INTL_MACOSX_LIBS"; then
14490       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14491          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14492                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14493         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14494       fi
14495     fi
14496
14497     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14498        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14499
14500 cat >>confdefs.h <<\_ACEOF
14501 #define ENABLE_NLS 1
14502 _ACEOF
14503
14504     else
14505       USE_NLS=no
14506     fi
14507   fi
14508
14509   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14510 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14511   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14512 echo "${ECHO_T}$USE_NLS" >&6; }
14513   if test "$USE_NLS" = "yes"; then
14514     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14515 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14516     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14517       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14518         gt_source="external libintl"
14519       else
14520         gt_source="libc"
14521       fi
14522     else
14523       gt_source="included intl directory"
14524     fi
14525     { echo "$as_me:$LINENO: result: $gt_source" >&5
14526 echo "${ECHO_T}$gt_source" >&6; }
14527   fi
14528
14529   if test "$USE_NLS" = "yes"; then
14530
14531     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14532       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14533         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14534 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14535         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14536 echo "${ECHO_T}$LIBINTL" >&6; }
14537
14538   for element in $INCINTL; do
14539     haveit=
14540     for x in $CPPFLAGS; do
14541
14542   acl_save_prefix="$prefix"
14543   prefix="$acl_final_prefix"
14544   acl_save_exec_prefix="$exec_prefix"
14545   exec_prefix="$acl_final_exec_prefix"
14546   eval x=\"$x\"
14547   exec_prefix="$acl_save_exec_prefix"
14548   prefix="$acl_save_prefix"
14549
14550       if test "X$x" = "X$element"; then
14551         haveit=yes
14552         break
14553       fi
14554     done
14555     if test -z "$haveit"; then
14556       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14557     fi
14558   done
14559
14560       fi
14561
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_GETTEXT 1
14565 _ACEOF
14566
14567
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE_DCGETTEXT 1
14570 _ACEOF
14571
14572     fi
14573
14574         POSUB=po
14575   fi
14576
14577
14578             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14579       BUILD_INCLUDED_LIBINTL=yes
14580     fi
14581
14582
14583
14584
14585
14586         nls_cv_header_intl=
14587     nls_cv_header_libgt=
14588
14589         DATADIRNAME=share
14590
14591
14592         INSTOBJEXT=.mo
14593
14594
14595         GENCAT=gencat
14596
14597
14598         INTLOBJS=
14599     if test "$USE_INCLUDED_LIBINTL" = yes; then
14600       INTLOBJS="\$(GETTOBJS)"
14601     fi
14602
14603
14604         INTL_LIBTOOL_SUFFIX_PREFIX=
14605
14606
14607
14608     INTLLIBS="$LIBINTL"
14609
14610
14611
14612
14613
14614
14615 fi
14616
14617
14618 support_mysql=no
14619 support_sqlite=no
14620 support_sqlite3=no
14621 support_postgresql=no
14622 support_smartalloc=yes
14623 support_readline=yes
14624 support_conio=yes
14625 support_gnome=no
14626 support_bat=no
14627 support_wx_console=no
14628 support_tls=no
14629 support_crypto=no
14630 gnome_version=
14631 wx_version=
14632 support_static_tools=no
14633 support_static_fd=no
14634 support_static_sd=no
14635 support_static_dir=no
14636 support_static_cons=no
14637 support_python=no
14638 build_client_only=no
14639 build_dird=yes
14640 build_stored=yes
14641 cats=
14642 db_type=Internal
14643 DB_TYPE=bdb
14644
14645
14646 # -------------------------------------------
14647 # gnome (default off)
14648 # -------------------------------------------
14649 # Check whether --enable-gnome was given.
14650 if test "${enable_gnome+set}" = set; then
14651   enableval=$enable_gnome; if test x$enableval = xyes; then
14652     support_gnome=yes
14653   fi
14654 fi
14655
14656
14657 GNOME_DIR=
14658 if test x$support_gnome = xyes; then
14659   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14660   pkg=$?
14661   if test $pkg = 0; then
14662      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14663      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14664      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14665      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14666
14667
14668
14669
14670      GNOME_DIR=src/gnome2-console
14671      gnome_version="Version 2.x"
14672   else
14673      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14674 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14675    { (exit 1); exit 1; }; }
14676   fi
14677 fi
14678
14679
14680 # -------------------------------------------
14681 # bat (default off)
14682 # -------------------------------------------
14683 # Check whether --enable-bat was given.
14684 if test "${enable_bat+set}" = set; then
14685   enableval=$enable_bat; if test x$enableval = xyes; then
14686
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_BAT 1
14689 _ACEOF
14690
14691     support_bat=yes
14692   fi
14693 fi
14694
14695
14696 BAT_DIR=
14697 if test x$support_bat = xyes; then
14698   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14699   pkg=$?
14700   if test $pkg = 0; then
14701      BAT_DIR=src/qt-console
14702   else
14703      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14704 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14705    { (exit 1); exit 1; }; }
14706   fi
14707 fi
14708
14709
14710
14711 # -------------------------------------------
14712 # bwx-console (default off)
14713 # -------------------------------------------
14714 # Check whether --enable-bwx-console was given.
14715 if test "${enable_bwx_console+set}" = set; then
14716   enableval=$enable_bwx_console; if test x$enableval = xyes; then
14717     support_wx_console=yes
14718   fi
14719 fi
14720
14721
14722 WX_DIR=
14723 if test x$support_wx_console = xyes; then
14724   abc=`$WXCONFIG $WXFLAGS --cppflags`
14725   pkg=$?
14726   if test $pkg = 0; then
14727      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14728      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14729      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14730
14731
14732
14733      WX_DIR=src/wx-console
14734   else
14735      echo " "
14736      echo "wx-config program not found. bwx-console disabled."
14737      echo " "
14738      support_wx_console=no
14739   fi
14740 fi
14741
14742
14743
14744 # -------------------------------------------
14745 # tray-monitor (default off)
14746 # -------------------------------------------
14747 # Check whether --enable-tray-monitor was given.
14748 if test "${enable_tray_monitor+set}" = set; then
14749   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14750     support_tray_monitor=yes
14751   fi
14752 fi
14753
14754
14755 TRAY_MONITOR_DIR=
14756 if test x$support_tray_monitor = xyes; then
14757   abc=`$PKGCONFIG --exists gtk+-2.0`
14758   pkg=$?
14759   if test $pkg = 0; then
14760      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14761      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14762
14763
14764      TRAY_MONITOR_DIR=src/tray-monitor
14765      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14766      pkg=$?
14767      if test $pkg = 0; then
14768      cat >>confdefs.h <<\_ACEOF
14769 #define HAVE_GTK_2_4 1
14770 _ACEOF
14771
14772      fi
14773   fi
14774 fi
14775
14776
14777 # -------------------------------------------
14778 # smartalloc (default off)
14779 # -------------------------------------------
14780 # Check whether --enable-smartalloc was given.
14781 if test "${enable_smartalloc+set}" = set; then
14782   enableval=$enable_smartalloc; if test x$enableval = xno; then
14783     support_smartalloc=no
14784   fi
14785 fi
14786
14787
14788 if test x$support_smartalloc = xyes; then
14789    cat >>confdefs.h <<\_ACEOF
14790 #define SMARTALLOC 1
14791 _ACEOF
14792
14793 fi
14794
14795 # -------------------------------------------
14796 # static-tools (default off)
14797 # -------------------------------------------
14798 # Check whether --enable-static-tools was given.
14799 if test "${enable_static_tools+set}" = set; then
14800   enableval=$enable_static_tools; if test x$enableval = xyes; then
14801      support_static_tools=yes
14802    fi
14803 fi
14804
14805
14806 TTOOL_LDFLAGS=
14807 if test x$support_static_tools = xyes; then
14808    TTOOL_LDFLAGS="-static"
14809 fi
14810
14811
14812 # -------------------------------------------
14813 # static-fd    (default off)
14814 # -------------------------------------------
14815 # Check whether --enable-static-fd was given.
14816 if test "${enable_static_fd+set}" = set; then
14817   enableval=$enable_static_fd; if test x$enableval = xyes; then
14818      support_static_fd=yes
14819    fi
14820 fi
14821
14822
14823 STATIC_FD=
14824 if test x$support_static_fd = xyes; then
14825    STATIC_FD="static-bacula-fd"
14826 fi
14827
14828
14829 # -------------------------------------------
14830 # static-sd    (default off)
14831 # -------------------------------------------
14832 # Check whether --enable-static-sd was given.
14833 if test "${enable_static_sd+set}" = set; then
14834   enableval=$enable_static_sd; if test x$enableval = xyes; then
14835      support_static_sd=yes
14836    fi
14837 fi
14838
14839
14840 STATIC_SD=
14841 if test x$support_static_sd = xyes; then
14842    STATIC_SD="static-bacula-sd"
14843 fi
14844
14845
14846 # -------------------------------------------
14847 # static-dir   (default off)
14848 # -------------------------------------------
14849 # Check whether --enable-static-dir was given.
14850 if test "${enable_static_dir+set}" = set; then
14851   enableval=$enable_static_dir; if test x$enableval = xyes; then
14852      support_static_dir=yes
14853    fi
14854 fi
14855
14856
14857 STATIC_DIR=
14858 if test x$support_static_dir = xyes; then
14859    STATIC_DIR="static-bacula-dir"
14860 fi
14861
14862
14863 # -------------------------------------------
14864 # static-cons  (default off)
14865 # -------------------------------------------
14866 # Check whether --enable-static-cons was given.
14867 if test "${enable_static_cons+set}" = set; then
14868   enableval=$enable_static_cons; if test x$enableval = xyes; then
14869      support_static_cons=yes
14870    fi
14871 fi
14872
14873
14874 STATIC_CONS=
14875 STATIC_GNOME_CONS=
14876 STATIC_WX_CONS=
14877 if test x$support_static_cons = xyes; then
14878    STATIC_CONS="static-bconsole"
14879    STATIC_GNOME_CONS="static-bgnome-console"
14880    STATIC_WX_CONS="static-bwx-console"
14881 fi
14882
14883
14884
14885
14886 # -------------------------------------------
14887 # client_only  (default off)
14888 # -------------------------------------------
14889 # Check whether --enable-client-only was given.
14890 if test "${enable_client_only+set}" = set; then
14891   enableval=$enable_client_only; if test x$enableval = xyes; then
14892       build_client_only=yes
14893       db_type=None
14894       DB_TYPE=none
14895    fi
14896 fi
14897
14898 if test x$build_client_only = xno; then
14899    ALL_DIRS="subdirs"
14900 else
14901    ALL_DIRS=""
14902 fi
14903
14904
14905 # -------------------------------------------
14906 # director  (default on)
14907 # -------------------------------------------
14908 # Check whether --enable-build-dird was given.
14909 if test "${enable_build_dird+set}" = set; then
14910   enableval=$enable_build_dird; if test x$enableval = xno; then
14911       build_dird=no
14912    fi
14913 fi
14914
14915 if test x$build_dird = xyes; then
14916    DIRD_DIR="src/dird"
14917    DIR_TOOLS="DIRTOOLS"
14918 else
14919    DIRD_DIR=""
14920    DIR_TOOLS="NODIRTOOLS"
14921 fi
14922
14923
14924
14925 # -------------------------------------------
14926 # stored  (default on)
14927 # -------------------------------------------
14928 # Check whether --enable-build-stored was given.
14929 if test "${enable_build_stored+set}" = set; then
14930   enableval=$enable_build_stored; if test x$enableval = xno; then
14931       build_stored=no
14932    fi
14933 fi
14934
14935 if test x$build_stored = xyes; then
14936    STORED_DIR="src/stored"
14937 else
14938    STORED_DIR=""
14939 fi
14940
14941
14942 # ---------------------------------------------------
14943 # Check for conio (Bacula readline substitute)(
14944 # ---------------------------------------------------
14945 # this allows you to turn it completely off
14946 # Check whether --enable-conio was given.
14947 if test "${enable_conio+set}" = set; then
14948   enableval=$enable_conio; if test x$enableval = xno; then
14949      support_conio=no
14950   fi
14951
14952 fi
14953
14954
14955
14956 # ---------------------------------------------------
14957 # Check for IPv6 support
14958 # ---------------------------------------------------
14959 # this allows you to turn it completely off
14960 support_ipv6=yes
14961 # Check whether --enable-ipv6 was given.
14962 if test "${enable_ipv6+set}" = set; then
14963   enableval=$enable_ipv6; if test x$enableval = xno; then
14964      support_ipv6=no
14965   fi
14966
14967 fi
14968
14969
14970 if test x$support_ipv6 = xyes; then
14971     cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h.  */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h.  */
14977  #include <sys/types.h>
14978 #include <sys/socket.h>
14979 #include <netinet/in.h>
14980 int
14981 main ()
14982 {
14983 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14984   ;
14985   return 0;
14986 }
14987 _ACEOF
14988 rm -f conftest.$ac_objext conftest$ac_exeext
14989 if { (ac_try="$ac_link"
14990 case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_link") 2>conftest.er1
14996   ac_status=$?
14997   grep -v '^ *+' conftest.er1 >conftest.err
14998   rm -f conftest.er1
14999   cat conftest.err >&5
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } &&
15002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15003   { (case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008   (eval "$ac_try") 2>&5
15009   ac_status=$?
15010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011   (exit $ac_status); }; } &&
15012          { ac_try='test -s conftest$ac_exeext'
15013   { (case "(($ac_try" in
15014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15015   *) ac_try_echo=$ac_try;;
15016 esac
15017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15018   (eval "$ac_try") 2>&5
15019   ac_status=$?
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); }; }; then
15022   support_ipv6=yes
15023 else
15024   echo "$as_me: failed program was:" >&5
15025 sed 's/^/| /' conftest.$ac_ext >&5
15026
15027         support_ipv6=no
15028 fi
15029
15030 rm -f core conftest.err conftest.$ac_objext \
15031       conftest$ac_exeext conftest.$ac_ext
15032 fi
15033
15034 if test x$support_ipv6 = xyes; then
15035
15036 cat >>confdefs.h <<\_ACEOF
15037 #define HAVE_IPV6 1
15038 _ACEOF
15039
15040 fi
15041
15042
15043
15044 got_conio="no"
15045 if test x$support_conio = xyes; then
15046    if test "${ac_cv_header_termcap_h+set}" = set; then
15047   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15048 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15049 if test "${ac_cv_header_termcap_h+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 fi
15052 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15053 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15054 else
15055   # Is the header compilable?
15056 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15057 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15058 cat >conftest.$ac_ext <<_ACEOF
15059 /* confdefs.h.  */
15060 _ACEOF
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h.  */
15064 $ac_includes_default
15065 #include <termcap.h>
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_compile") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } &&
15081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15082   { (case "(($ac_try" in
15083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084   *) ac_try_echo=$ac_try;;
15085 esac
15086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087   (eval "$ac_try") 2>&5
15088   ac_status=$?
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); }; } &&
15091          { ac_try='test -s conftest.$ac_objext'
15092   { (case "(($ac_try" in
15093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15094   *) ac_try_echo=$ac_try;;
15095 esac
15096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15097   (eval "$ac_try") 2>&5
15098   ac_status=$?
15099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100   (exit $ac_status); }; }; then
15101   ac_header_compiler=yes
15102 else
15103   echo "$as_me: failed program was:" >&5
15104 sed 's/^/| /' conftest.$ac_ext >&5
15105
15106         ac_header_compiler=no
15107 fi
15108
15109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15111 echo "${ECHO_T}$ac_header_compiler" >&6; }
15112
15113 # Is the header present?
15114 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15115 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122 #include <termcap.h>
15123 _ACEOF
15124 if { (ac_try="$ac_cpp conftest.$ac_ext"
15125 case "(($ac_try" in
15126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15127   *) ac_try_echo=$ac_try;;
15128 esac
15129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15130   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15131   ac_status=$?
15132   grep -v '^ *+' conftest.er1 >conftest.err
15133   rm -f conftest.er1
15134   cat conftest.err >&5
15135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136   (exit $ac_status); } >/dev/null; then
15137   if test -s conftest.err; then
15138     ac_cpp_err=$ac_c_preproc_warn_flag
15139     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15140   else
15141     ac_cpp_err=
15142   fi
15143 else
15144   ac_cpp_err=yes
15145 fi
15146 if test -z "$ac_cpp_err"; then
15147   ac_header_preproc=yes
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152   ac_header_preproc=no
15153 fi
15154
15155 rm -f conftest.err conftest.$ac_ext
15156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15157 echo "${ECHO_T}$ac_header_preproc" >&6; }
15158
15159 # So?  What about this header?
15160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15161   yes:no: )
15162     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15163 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15164     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15165 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15166     ac_header_preproc=yes
15167     ;;
15168   no:yes:* )
15169     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15170 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15171     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15172 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15173     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15174 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15175     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15176 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15177     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15178 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15179     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15180 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15181
15182     ;;
15183 esac
15184 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15185 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_header_termcap_h+set}" = set; then
15187   echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189   ac_cv_header_termcap_h=$ac_header_preproc
15190 fi
15191 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15193
15194 fi
15195 if test $ac_cv_header_termcap_h = yes; then
15196    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15197 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15198 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15199   echo $ECHO_N "(cached) $ECHO_C" >&6
15200 else
15201   ac_check_lib_save_LIBS=$LIBS
15202 LIBS="-ltermcap  $LIBS"
15203 cat >conftest.$ac_ext <<_ACEOF
15204 /* confdefs.h.  */
15205 _ACEOF
15206 cat confdefs.h >>conftest.$ac_ext
15207 cat >>conftest.$ac_ext <<_ACEOF
15208 /* end confdefs.h.  */
15209
15210 /* Override any GCC internal prototype to avoid an error.
15211    Use char because int might match the return type of a GCC
15212    builtin and then its argument prototype would still apply.  */
15213 #ifdef __cplusplus
15214 extern "C"
15215 #endif
15216 char tgetent ();
15217 int
15218 main ()
15219 {
15220 return tgetent ();
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (ac_try="$ac_link"
15227 case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232   (eval "$ac_link") 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240   { (case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_try") 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; } &&
15249          { ac_try='test -s conftest$ac_exeext'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_cv_lib_termcap_tgetent=yes
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264         ac_cv_lib_termcap_tgetent=no
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext \
15268       conftest$ac_exeext conftest.$ac_ext
15269 LIBS=$ac_check_lib_save_LIBS
15270 fi
15271 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15272 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15273 if test $ac_cv_lib_termcap_tgetent = yes; then
15274    CONS_LIBS="-ltermcap"
15275          CONS_OBJ="conio.o"
15276          CONS_SRC="conio.c"
15277          got_conio="yes"
15278          support_readline=no
15279
15280 cat >>confdefs.h <<\_ACEOF
15281 #define HAVE_CONIO 1
15282 _ACEOF
15283
15284
15285 else
15286    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15287 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15288 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15289   echo $ECHO_N "(cached) $ECHO_C" >&6
15290 else
15291   ac_check_lib_save_LIBS=$LIBS
15292 LIBS="-lncurses  $LIBS"
15293 cat >conftest.$ac_ext <<_ACEOF
15294 /* confdefs.h.  */
15295 _ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h.  */
15299
15300 /* Override any GCC internal prototype to avoid an error.
15301    Use char because int might match the return type of a GCC
15302    builtin and then its argument prototype would still apply.  */
15303 #ifdef __cplusplus
15304 extern "C"
15305 #endif
15306 char tgetent ();
15307 int
15308 main ()
15309 {
15310 return tgetent ();
15311   ;
15312   return 0;
15313 }
15314 _ACEOF
15315 rm -f conftest.$ac_objext conftest$ac_exeext
15316 if { (ac_try="$ac_link"
15317 case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_link") 2>conftest.er1
15323   ac_status=$?
15324   grep -v '^ *+' conftest.er1 >conftest.err
15325   rm -f conftest.er1
15326   cat conftest.err >&5
15327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328   (exit $ac_status); } &&
15329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15330   { (case "(($ac_try" in
15331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15332   *) ac_try_echo=$ac_try;;
15333 esac
15334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15335   (eval "$ac_try") 2>&5
15336   ac_status=$?
15337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15338   (exit $ac_status); }; } &&
15339          { ac_try='test -s conftest$ac_exeext'
15340   { (case "(($ac_try" in
15341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15342   *) ac_try_echo=$ac_try;;
15343 esac
15344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15345   (eval "$ac_try") 2>&5
15346   ac_status=$?
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); }; }; then
15349   ac_cv_lib_ncurses_tgetent=yes
15350 else
15351   echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354         ac_cv_lib_ncurses_tgetent=no
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext \
15358       conftest$ac_exeext conftest.$ac_ext
15359 LIBS=$ac_check_lib_save_LIBS
15360 fi
15361 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15362 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15363 if test $ac_cv_lib_ncurses_tgetent = yes; then
15364    CONS_LIBS="-lncurses"
15365            CONS_OBJ="conio.o"
15366            CONS_SRC="conio.c"
15367            got_conio="yes"
15368            support_readline=no
15369
15370 cat >>confdefs.h <<\_ACEOF
15371 #define HAVE_CONIO 1
15372 _ACEOF
15373
15374
15375 fi
15376
15377
15378 fi
15379
15380
15381 else
15382
15383
15384 for ac_header in curses.h
15385 do
15386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 fi
15393 ac_res=`eval echo '${'$as_ac_Header'}'`
15394                { echo "$as_me:$LINENO: result: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 else
15397   # Is the header compilable?
15398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15400 cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 $ac_includes_default
15407 #include <$ac_header>
15408 _ACEOF
15409 rm -f conftest.$ac_objext
15410 if { (ac_try="$ac_compile"
15411 case "(($ac_try" in
15412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413   *) ac_try_echo=$ac_try;;
15414 esac
15415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15416   (eval "$ac_compile") 2>conftest.er1
15417   ac_status=$?
15418   grep -v '^ *+' conftest.er1 >conftest.err
15419   rm -f conftest.er1
15420   cat conftest.err >&5
15421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15422   (exit $ac_status); } &&
15423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15424   { (case "(($ac_try" in
15425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15426   *) ac_try_echo=$ac_try;;
15427 esac
15428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15429   (eval "$ac_try") 2>&5
15430   ac_status=$?
15431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432   (exit $ac_status); }; } &&
15433          { ac_try='test -s conftest.$ac_objext'
15434   { (case "(($ac_try" in
15435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436   *) ac_try_echo=$ac_try;;
15437 esac
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439   (eval "$ac_try") 2>&5
15440   ac_status=$?
15441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442   (exit $ac_status); }; }; then
15443   ac_header_compiler=yes
15444 else
15445   echo "$as_me: failed program was:" >&5
15446 sed 's/^/| /' conftest.$ac_ext >&5
15447
15448         ac_header_compiler=no
15449 fi
15450
15451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15453 echo "${ECHO_T}$ac_header_compiler" >&6; }
15454
15455 # Is the header present?
15456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15458 cat >conftest.$ac_ext <<_ACEOF
15459 /* confdefs.h.  */
15460 _ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h.  */
15464 #include <$ac_header>
15465 _ACEOF
15466 if { (ac_try="$ac_cpp conftest.$ac_ext"
15467 case "(($ac_try" in
15468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469   *) ac_try_echo=$ac_try;;
15470 esac
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15473   ac_status=$?
15474   grep -v '^ *+' conftest.er1 >conftest.err
15475   rm -f conftest.er1
15476   cat conftest.err >&5
15477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478   (exit $ac_status); } >/dev/null; then
15479   if test -s conftest.err; then
15480     ac_cpp_err=$ac_c_preproc_warn_flag
15481     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15482   else
15483     ac_cpp_err=
15484   fi
15485 else
15486   ac_cpp_err=yes
15487 fi
15488 if test -z "$ac_cpp_err"; then
15489   ac_header_preproc=yes
15490 else
15491   echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15493
15494   ac_header_preproc=no
15495 fi
15496
15497 rm -f conftest.err conftest.$ac_ext
15498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15499 echo "${ECHO_T}$ac_header_preproc" >&6; }
15500
15501 # So?  What about this header?
15502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15503   yes:no: )
15504     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15507 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15508     ac_header_preproc=yes
15509     ;;
15510   no:yes:* )
15511     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15512 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15513     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15514 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15515     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15516 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15517     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15518 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15521     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15522 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15523
15524     ;;
15525 esac
15526 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15527 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   eval "$as_ac_Header=\$ac_header_preproc"
15532 fi
15533 ac_res=`eval echo '${'$as_ac_Header'}'`
15534                { echo "$as_me:$LINENO: result: $ac_res" >&5
15535 echo "${ECHO_T}$ac_res" >&6; }
15536
15537 fi
15538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15539   cat >>confdefs.h <<_ACEOF
15540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15541 _ACEOF
15542
15543 fi
15544
15545 done
15546
15547          { echo "$as_me:$LINENO: checking for term.h" >&5
15548 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15549 if test "${ac_cv_header_term_h+set}" = set; then
15550   echo $ECHO_N "(cached) $ECHO_C" >&6
15551 else
15552   cat >conftest.$ac_ext <<_ACEOF
15553 /* confdefs.h.  */
15554 _ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h.  */
15558 #if HAVE_CURSES_H
15559 #include <curses.h>
15560 #endif
15561
15562
15563 #include <term.h>
15564 _ACEOF
15565 rm -f conftest.$ac_objext
15566 if { (ac_try="$ac_compile"
15567 case "(($ac_try" in
15568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569   *) ac_try_echo=$ac_try;;
15570 esac
15571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15572   (eval "$ac_compile") 2>conftest.er1
15573   ac_status=$?
15574   grep -v '^ *+' conftest.er1 >conftest.err
15575   rm -f conftest.er1
15576   cat conftest.err >&5
15577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15578   (exit $ac_status); } &&
15579          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; } &&
15589          { ac_try='test -s conftest.$ac_objext'
15590   { (case "(($ac_try" in
15591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15592   *) ac_try_echo=$ac_try;;
15593 esac
15594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15595   (eval "$ac_try") 2>&5
15596   ac_status=$?
15597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598   (exit $ac_status); }; }; then
15599   ac_cv_header_term_h=yes
15600 else
15601   echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15603
15604         ac_cv_header_term_h=no
15605 fi
15606
15607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15608 fi
15609 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15610 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15611 if test $ac_cv_header_term_h = yes; then
15612    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15613 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15614 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15615   echo $ECHO_N "(cached) $ECHO_C" >&6
15616 else
15617   ac_check_lib_save_LIBS=$LIBS
15618 LIBS="-lcurses  $LIBS"
15619 cat >conftest.$ac_ext <<_ACEOF
15620 /* confdefs.h.  */
15621 _ACEOF
15622 cat confdefs.h >>conftest.$ac_ext
15623 cat >>conftest.$ac_ext <<_ACEOF
15624 /* end confdefs.h.  */
15625
15626 /* Override any GCC internal prototype to avoid an error.
15627    Use char because int might match the return type of a GCC
15628    builtin and then its argument prototype would still apply.  */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 char tgetent ();
15633 int
15634 main ()
15635 {
15636 return tgetent ();
15637   ;
15638   return 0;
15639 }
15640 _ACEOF
15641 rm -f conftest.$ac_objext conftest$ac_exeext
15642 if { (ac_try="$ac_link"
15643 case "(($ac_try" in
15644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645   *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648   (eval "$ac_link") 2>conftest.er1
15649   ac_status=$?
15650   grep -v '^ *+' conftest.er1 >conftest.err
15651   rm -f conftest.er1
15652   cat conftest.err >&5
15653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654   (exit $ac_status); } &&
15655          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15656   { (case "(($ac_try" in
15657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658   *) ac_try_echo=$ac_try;;
15659 esac
15660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15661   (eval "$ac_try") 2>&5
15662   ac_status=$?
15663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15664   (exit $ac_status); }; } &&
15665          { ac_try='test -s conftest$ac_exeext'
15666   { (case "(($ac_try" in
15667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15668   *) ac_try_echo=$ac_try;;
15669 esac
15670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15671   (eval "$ac_try") 2>&5
15672   ac_status=$?
15673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674   (exit $ac_status); }; }; then
15675   ac_cv_lib_curses_tgetent=yes
15676 else
15677   echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15679
15680         ac_cv_lib_curses_tgetent=no
15681 fi
15682
15683 rm -f core conftest.err conftest.$ac_objext \
15684       conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15686 fi
15687 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15688 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15689 if test $ac_cv_lib_curses_tgetent = yes; then
15690    CONS_LIBS="-lcurses"
15691                    CONS_OBJ="conio.o"
15692                    CONS_SRC="conio.c"
15693                    got_conio="yes"
15694                    support_readline=no
15695
15696 cat >>confdefs.h <<\_ACEOF
15697 #define HAVE_CONIO 1
15698 _ACEOF
15699
15700
15701 fi
15702
15703
15704 else
15705    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15706 fi
15707
15708
15709
15710 fi
15711
15712
15713 fi
15714
15715
15716 # ---------------------------------------------------
15717 # Check for readline support/directory (default off)
15718 # ---------------------------------------------------
15719 # this allows you to turn it completely off
15720 # Check whether --enable-readline was given.
15721 if test "${enable_readline+set}" = set; then
15722   enableval=$enable_readline; if test x$enableval = xno; then
15723     support_readline=no
15724   fi
15725 fi
15726
15727
15728 got_readline="no"
15729 READLINE_SRC=
15730 if test x$support_readline = xyes; then
15731
15732 # Check whether --with-readline was given.
15733 if test "${with_readline+set}" = set; then
15734   withval=$with_readline;
15735         case "$with_readline" in
15736         no) : ;;
15737         yes|*)
15738           if test -f ${with_readline}/readline.h; then
15739              CONS_INC="-I${with_readline}"
15740              CONS_LDFLAGS="-L$with_readline"
15741           elif test -f ${with_readline}/include/readline/readline.h; then
15742              CONS_INC="-I${with_readline}/include/readline"
15743              CONS_LDFLAGS="-L${with_readline}/lib"
15744              with_readline="${with_readline}/include/readline"
15745           else
15746              with_readline="/usr/include/readline"
15747           fi
15748           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15750   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15751 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753   echo $ECHO_N "(cached) $ECHO_C" >&6
15754 fi
15755 ac_res=`eval echo '${'$as_ac_Header'}'`
15756                { echo "$as_me:$LINENO: result: $ac_res" >&5
15757 echo "${ECHO_T}$ac_res" >&6; }
15758 else
15759   # Is the header compilable?
15760 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15761 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15762 cat >conftest.$ac_ext <<_ACEOF
15763 /* confdefs.h.  */
15764 _ACEOF
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h.  */
15768 $ac_includes_default
15769 #include <${with_readline}/readline.h>
15770 _ACEOF
15771 rm -f conftest.$ac_objext
15772 if { (ac_try="$ac_compile"
15773 case "(($ac_try" in
15774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15775   *) ac_try_echo=$ac_try;;
15776 esac
15777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15778   (eval "$ac_compile") 2>conftest.er1
15779   ac_status=$?
15780   grep -v '^ *+' conftest.er1 >conftest.err
15781   rm -f conftest.er1
15782   cat conftest.err >&5
15783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15784   (exit $ac_status); } &&
15785          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15786   { (case "(($ac_try" in
15787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15788   *) ac_try_echo=$ac_try;;
15789 esac
15790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15791   (eval "$ac_try") 2>&5
15792   ac_status=$?
15793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794   (exit $ac_status); }; } &&
15795          { ac_try='test -s conftest.$ac_objext'
15796   { (case "(($ac_try" in
15797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798   *) ac_try_echo=$ac_try;;
15799 esac
15800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15801   (eval "$ac_try") 2>&5
15802   ac_status=$?
15803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804   (exit $ac_status); }; }; then
15805   ac_header_compiler=yes
15806 else
15807   echo "$as_me: failed program was:" >&5
15808 sed 's/^/| /' conftest.$ac_ext >&5
15809
15810         ac_header_compiler=no
15811 fi
15812
15813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15815 echo "${ECHO_T}$ac_header_compiler" >&6; }
15816
15817 # Is the header present?
15818 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15819 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15820 cat >conftest.$ac_ext <<_ACEOF
15821 /* confdefs.h.  */
15822 _ACEOF
15823 cat confdefs.h >>conftest.$ac_ext
15824 cat >>conftest.$ac_ext <<_ACEOF
15825 /* end confdefs.h.  */
15826 #include <${with_readline}/readline.h>
15827 _ACEOF
15828 if { (ac_try="$ac_cpp conftest.$ac_ext"
15829 case "(($ac_try" in
15830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831   *) ac_try_echo=$ac_try;;
15832 esac
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15835   ac_status=$?
15836   grep -v '^ *+' conftest.er1 >conftest.err
15837   rm -f conftest.er1
15838   cat conftest.err >&5
15839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840   (exit $ac_status); } >/dev/null; then
15841   if test -s conftest.err; then
15842     ac_cpp_err=$ac_c_preproc_warn_flag
15843     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15844   else
15845     ac_cpp_err=
15846   fi
15847 else
15848   ac_cpp_err=yes
15849 fi
15850 if test -z "$ac_cpp_err"; then
15851   ac_header_preproc=yes
15852 else
15853   echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15855
15856   ac_header_preproc=no
15857 fi
15858
15859 rm -f conftest.err conftest.$ac_ext
15860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15861 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862
15863 # So?  What about this header?
15864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15865   yes:no: )
15866     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15867 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15868     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15870     ac_header_preproc=yes
15871     ;;
15872   no:yes:* )
15873     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15874 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15875     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15876 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15877     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15878 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15879     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15880 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15881     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15882 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15883     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15884 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15885
15886     ;;
15887 esac
15888 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15889 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15891   echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893   eval "$as_ac_Header=\$ac_header_preproc"
15894 fi
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896                { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15898
15899 fi
15900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15901    cat >>confdefs.h <<\_ACEOF
15902 #define HAVE_READLINE 1
15903 _ACEOF
15904
15905                CONS_LIBS="-lreadline -lhistory -ltermcap"
15906                got_readline="yes"
15907
15908 else
15909    echo " "
15910                echo "readline.h not found. readline turned off ..."
15911                echo " "
15912
15913
15914 fi
15915
15916
15917           ;;
15918         esac
15919
15920 else
15921
15922        # check for standard readline library
15923        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15924   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15925 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15926 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 fi
15929 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15930 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15931 else
15932   # Is the header compilable?
15933 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15934 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15935 cat >conftest.$ac_ext <<_ACEOF
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 $ac_includes_default
15942 #include </usr/include/readline/readline.h>
15943 _ACEOF
15944 rm -f conftest.$ac_objext
15945 if { (ac_try="$ac_compile"
15946 case "(($ac_try" in
15947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948   *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951   (eval "$ac_compile") 2>conftest.er1
15952   ac_status=$?
15953   grep -v '^ *+' conftest.er1 >conftest.err
15954   rm -f conftest.er1
15955   cat conftest.err >&5
15956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957   (exit $ac_status); } &&
15958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959   { (case "(($ac_try" in
15960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961   *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964   (eval "$ac_try") 2>&5
15965   ac_status=$?
15966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967   (exit $ac_status); }; } &&
15968          { ac_try='test -s conftest.$ac_objext'
15969   { (case "(($ac_try" in
15970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971   *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974   (eval "$ac_try") 2>&5
15975   ac_status=$?
15976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977   (exit $ac_status); }; }; then
15978   ac_header_compiler=yes
15979 else
15980   echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983         ac_header_compiler=no
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15988 echo "${ECHO_T}$ac_header_compiler" >&6; }
15989
15990 # Is the header present?
15991 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15992 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15993 cat >conftest.$ac_ext <<_ACEOF
15994 /* confdefs.h.  */
15995 _ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h.  */
15999 #include </usr/include/readline/readline.h>
16000 _ACEOF
16001 if { (ac_try="$ac_cpp conftest.$ac_ext"
16002 case "(($ac_try" in
16003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004   *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16008   ac_status=$?
16009   grep -v '^ *+' conftest.er1 >conftest.err
16010   rm -f conftest.er1
16011   cat conftest.err >&5
16012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013   (exit $ac_status); } >/dev/null; then
16014   if test -s conftest.err; then
16015     ac_cpp_err=$ac_c_preproc_warn_flag
16016     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16017   else
16018     ac_cpp_err=
16019   fi
16020 else
16021   ac_cpp_err=yes
16022 fi
16023 if test -z "$ac_cpp_err"; then
16024   ac_header_preproc=yes
16025 else
16026   echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029   ac_header_preproc=no
16030 fi
16031
16032 rm -f conftest.err conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16034 echo "${ECHO_T}$ac_header_preproc" >&6; }
16035
16036 # So?  What about this header?
16037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16038   yes:no: )
16039     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16040 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16041     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16042 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16043     ac_header_preproc=yes
16044     ;;
16045   no:yes:* )
16046     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16047 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16048     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16049 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16050     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16051 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16052     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16053 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16054     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16055 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16056     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16057 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16058
16059     ;;
16060 esac
16061 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16062 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16063 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16064   echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16067 fi
16068 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16069 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16070
16071 fi
16072 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16073    cat >>confdefs.h <<\_ACEOF
16074 #define HAVE_READLINE 1
16075 _ACEOF
16076
16077            got_readline="yes"
16078            CONS_INC="-I/usr/include/readline"
16079            CONS_LIBS="-lreadline -ltermcap"
16080
16081 else
16082
16083            # Did not find standard library, so try Bacula's default
16084             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16087 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089   echo $ECHO_N "(cached) $ECHO_C" >&6
16090 fi
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092                { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16094 else
16095   # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16097 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h.  */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h.  */
16104 $ac_includes_default
16105 #include <${TOP_DIR}/depkgs/readline/readline.h>
16106 _ACEOF
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111   *) ac_try_echo=$ac_try;;
16112 esac
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114   (eval "$ac_compile") 2>conftest.er1
16115   ac_status=$?
16116   grep -v '^ *+' conftest.er1 >conftest.err
16117   rm -f conftest.er1
16118   cat conftest.err >&5
16119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120   (exit $ac_status); } &&
16121          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122   { (case "(($ac_try" in
16123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124   *) ac_try_echo=$ac_try;;
16125 esac
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127   (eval "$ac_try") 2>&5
16128   ac_status=$?
16129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130   (exit $ac_status); }; } &&
16131          { ac_try='test -s conftest.$ac_objext'
16132   { (case "(($ac_try" in
16133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134   *) ac_try_echo=$ac_try;;
16135 esac
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137   (eval "$ac_try") 2>&5
16138   ac_status=$?
16139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140   (exit $ac_status); }; }; then
16141   ac_header_compiler=yes
16142 else
16143   echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16145
16146         ac_header_compiler=no
16147 fi
16148
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16152
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16155 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16157 /* confdefs.h.  */
16158 _ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h.  */
16162 #include <${TOP_DIR}/depkgs/readline/readline.h>
16163 _ACEOF
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167   *) ac_try_echo=$ac_try;;
16168 esac
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16171   ac_status=$?
16172   grep -v '^ *+' conftest.er1 >conftest.err
16173   rm -f conftest.er1
16174   cat conftest.err >&5
16175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176   (exit $ac_status); } >/dev/null; then
16177   if test -s conftest.err; then
16178     ac_cpp_err=$ac_c_preproc_warn_flag
16179     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16180   else
16181     ac_cpp_err=
16182   fi
16183 else
16184   ac_cpp_err=yes
16185 fi
16186 if test -z "$ac_cpp_err"; then
16187   ac_header_preproc=yes
16188 else
16189   echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16191
16192   ac_header_preproc=no
16193 fi
16194
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16198
16199 # So?  What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16201   yes:no: )
16202     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16206     ac_header_preproc=yes
16207     ;;
16208   no:yes:* )
16209     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16211     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16213     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16215     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16217     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16219     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16221
16222     ;;
16223 esac
16224 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16225 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16227   echo $ECHO_N "(cached) $ECHO_C" >&6
16228 else
16229   eval "$as_ac_Header=\$ac_header_preproc"
16230 fi
16231 ac_res=`eval echo '${'$as_ac_Header'}'`
16232                { echo "$as_me:$LINENO: result: $ac_res" >&5
16233 echo "${ECHO_T}$ac_res" >&6; }
16234
16235 fi
16236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16237    cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_READLINE 1
16239 _ACEOF
16240
16241                  got_readline="yes"
16242                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16243                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16244                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16245                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16246
16247 else
16248    echo " "
16249                 echo "readline.h not found. readline turned off ..."
16250                 echo " "
16251
16252
16253 fi
16254
16255
16256
16257
16258 fi
16259
16260
16261
16262
16263 fi
16264
16265 fi
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276 # Minimal stuff for readline Makefile configuration
16277 MAKE_SHELL=/bin/sh
16278
16279 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16280 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16281 if test "${ac_cv_header_stat_broken+set}" = set; then
16282   echo $ECHO_N "(cached) $ECHO_C" >&6
16283 else
16284   cat >conftest.$ac_ext <<_ACEOF
16285 /* confdefs.h.  */
16286 _ACEOF
16287 cat confdefs.h >>conftest.$ac_ext
16288 cat >>conftest.$ac_ext <<_ACEOF
16289 /* end confdefs.h.  */
16290 #include <sys/types.h>
16291 #include <sys/stat.h>
16292
16293 #if defined S_ISBLK && defined S_IFDIR
16294 # if S_ISBLK (S_IFDIR)
16295 You lose.
16296 # endif
16297 #endif
16298
16299 #if defined S_ISBLK && defined S_IFCHR
16300 # if S_ISBLK (S_IFCHR)
16301 You lose.
16302 # endif
16303 #endif
16304
16305 #if defined S_ISLNK && defined S_IFREG
16306 # if S_ISLNK (S_IFREG)
16307 You lose.
16308 # endif
16309 #endif
16310
16311 #if defined S_ISSOCK && defined S_IFREG
16312 # if S_ISSOCK (S_IFREG)
16313 You lose.
16314 # endif
16315 #endif
16316
16317 _ACEOF
16318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16319   $EGREP "You lose" >/dev/null 2>&1; then
16320   ac_cv_header_stat_broken=yes
16321 else
16322   ac_cv_header_stat_broken=no
16323 fi
16324 rm -f conftest*
16325
16326 fi
16327 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16328 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16329 if test $ac_cv_header_stat_broken = yes; then
16330
16331 cat >>confdefs.h <<\_ACEOF
16332 #define STAT_MACROS_BROKEN 1
16333 _ACEOF
16334
16335 fi
16336
16337
16338
16339
16340
16341
16342 ac_header_dirent=no
16343 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16344   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16345 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16346 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16348   echo $ECHO_N "(cached) $ECHO_C" >&6
16349 else
16350   cat >conftest.$ac_ext <<_ACEOF
16351 /* confdefs.h.  */
16352 _ACEOF
16353 cat confdefs.h >>conftest.$ac_ext
16354 cat >>conftest.$ac_ext <<_ACEOF
16355 /* end confdefs.h.  */
16356 #include <sys/types.h>
16357 #include <$ac_hdr>
16358
16359 int
16360 main ()
16361 {
16362 if ((DIR *) 0)
16363 return 0;
16364   ;
16365   return 0;
16366 }
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_compile") 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   eval "$as_ac_Header=yes"
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407         eval "$as_ac_Header=no"
16408 fi
16409
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 fi
16412 ac_res=`eval echo '${'$as_ac_Header'}'`
16413                { echo "$as_me:$LINENO: result: $ac_res" >&5
16414 echo "${ECHO_T}$ac_res" >&6; }
16415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16416   cat >>confdefs.h <<_ACEOF
16417 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16418 _ACEOF
16419
16420 ac_header_dirent=$ac_hdr; break
16421 fi
16422
16423 done
16424 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16425 if test $ac_header_dirent = dirent.h; then
16426   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16427 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16428 if test "${ac_cv_search_opendir+set}" = set; then
16429   echo $ECHO_N "(cached) $ECHO_C" >&6
16430 else
16431   ac_func_search_save_LIBS=$LIBS
16432 cat >conftest.$ac_ext <<_ACEOF
16433 /* confdefs.h.  */
16434 _ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h.  */
16438
16439 /* Override any GCC internal prototype to avoid an error.
16440    Use char because int might match the return type of a GCC
16441    builtin and then its argument prototype would still apply.  */
16442 #ifdef __cplusplus
16443 extern "C"
16444 #endif
16445 char opendir ();
16446 int
16447 main ()
16448 {
16449 return opendir ();
16450   ;
16451   return 0;
16452 }
16453 _ACEOF
16454 for ac_lib in '' dir; do
16455   if test -z "$ac_lib"; then
16456     ac_res="none required"
16457   else
16458     ac_res=-l$ac_lib
16459     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16460   fi
16461   rm -f conftest.$ac_objext conftest$ac_exeext
16462 if { (ac_try="$ac_link"
16463 case "(($ac_try" in
16464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465   *) ac_try_echo=$ac_try;;
16466 esac
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468   (eval "$ac_link") 2>conftest.er1
16469   ac_status=$?
16470   grep -v '^ *+' conftest.er1 >conftest.err
16471   rm -f conftest.er1
16472   cat conftest.err >&5
16473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474   (exit $ac_status); } &&
16475          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16476   { (case "(($ac_try" in
16477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16478   *) ac_try_echo=$ac_try;;
16479 esac
16480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16481   (eval "$ac_try") 2>&5
16482   ac_status=$?
16483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484   (exit $ac_status); }; } &&
16485          { ac_try='test -s conftest$ac_exeext'
16486   { (case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491   (eval "$ac_try") 2>&5
16492   ac_status=$?
16493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494   (exit $ac_status); }; }; then
16495   ac_cv_search_opendir=$ac_res
16496 else
16497   echo "$as_me: failed program was:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16499
16500
16501 fi
16502
16503 rm -f core conftest.err conftest.$ac_objext \
16504       conftest$ac_exeext
16505   if test "${ac_cv_search_opendir+set}" = set; then
16506   break
16507 fi
16508 done
16509 if test "${ac_cv_search_opendir+set}" = set; then
16510   :
16511 else
16512   ac_cv_search_opendir=no
16513 fi
16514 rm conftest.$ac_ext
16515 LIBS=$ac_func_search_save_LIBS
16516 fi
16517 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16518 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16519 ac_res=$ac_cv_search_opendir
16520 if test "$ac_res" != no; then
16521   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16522
16523 fi
16524
16525 else
16526   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16527 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16528 if test "${ac_cv_search_opendir+set}" = set; then
16529   echo $ECHO_N "(cached) $ECHO_C" >&6
16530 else
16531   ac_func_search_save_LIBS=$LIBS
16532 cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538
16539 /* Override any GCC internal prototype to avoid an error.
16540    Use char because int might match the return type of a GCC
16541    builtin and then its argument prototype would still apply.  */
16542 #ifdef __cplusplus
16543 extern "C"
16544 #endif
16545 char opendir ();
16546 int
16547 main ()
16548 {
16549 return opendir ();
16550   ;
16551   return 0;
16552 }
16553 _ACEOF
16554 for ac_lib in '' x; do
16555   if test -z "$ac_lib"; then
16556     ac_res="none required"
16557   else
16558     ac_res=-l$ac_lib
16559     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16560   fi
16561   rm -f conftest.$ac_objext conftest$ac_exeext
16562 if { (ac_try="$ac_link"
16563 case "(($ac_try" in
16564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16565   *) ac_try_echo=$ac_try;;
16566 esac
16567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16568   (eval "$ac_link") 2>conftest.er1
16569   ac_status=$?
16570   grep -v '^ *+' conftest.er1 >conftest.err
16571   rm -f conftest.er1
16572   cat conftest.err >&5
16573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574   (exit $ac_status); } &&
16575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16576   { (case "(($ac_try" in
16577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578   *) ac_try_echo=$ac_try;;
16579 esac
16580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16581   (eval "$ac_try") 2>&5
16582   ac_status=$?
16583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584   (exit $ac_status); }; } &&
16585          { ac_try='test -s conftest$ac_exeext'
16586   { (case "(($ac_try" in
16587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588   *) ac_try_echo=$ac_try;;
16589 esac
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591   (eval "$ac_try") 2>&5
16592   ac_status=$?
16593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); }; }; then
16595   ac_cv_search_opendir=$ac_res
16596 else
16597   echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600
16601 fi
16602
16603 rm -f core conftest.err conftest.$ac_objext \
16604       conftest$ac_exeext
16605   if test "${ac_cv_search_opendir+set}" = set; then
16606   break
16607 fi
16608 done
16609 if test "${ac_cv_search_opendir+set}" = set; then
16610   :
16611 else
16612   ac_cv_search_opendir=no
16613 fi
16614 rm conftest.$ac_ext
16615 LIBS=$ac_func_search_save_LIBS
16616 fi
16617 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16618 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16619 ac_res=$ac_cv_search_opendir
16620 if test "$ac_res" != no; then
16621   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16622
16623 fi
16624
16625 fi
16626
16627
16628
16629
16630
16631
16632
16633
16634 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16635 do
16636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16640   echo $ECHO_N "(cached) $ECHO_C" >&6
16641 else
16642   cat >conftest.$ac_ext <<_ACEOF
16643 /* confdefs.h.  */
16644 _ACEOF
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h.  */
16648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16650 #define $ac_func innocuous_$ac_func
16651
16652 /* System header to define __stub macros and hopefully few prototypes,
16653     which can conflict with char $ac_func (); below.
16654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16655     <limits.h> exists even on freestanding compilers.  */
16656
16657 #ifdef __STDC__
16658 # include <limits.h>
16659 #else
16660 # include <assert.h>
16661 #endif
16662
16663 #undef $ac_func
16664
16665 /* Override any GCC internal prototype to avoid an error.
16666    Use char because int might match the return type of a GCC
16667    builtin and then its argument prototype would still apply.  */
16668 #ifdef __cplusplus
16669 extern "C"
16670 #endif
16671 char $ac_func ();
16672 /* The GNU C library defines this for functions which it implements
16673     to always fail with ENOSYS.  Some functions are actually named
16674     something starting with __ and the normal name is an alias.  */
16675 #if defined __stub_$ac_func || defined __stub___$ac_func
16676 choke me
16677 #endif
16678
16679 int
16680 main ()
16681 {
16682 return $ac_func ();
16683   ;
16684   return 0;
16685 }
16686 _ACEOF
16687 rm -f conftest.$ac_objext conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691   *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694   (eval "$ac_link") 2>conftest.er1
16695   ac_status=$?
16696   grep -v '^ *+' conftest.er1 >conftest.err
16697   rm -f conftest.er1
16698   cat conftest.err >&5
16699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700   (exit $ac_status); } &&
16701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16702   { (case "(($ac_try" in
16703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16704   *) ac_try_echo=$ac_try;;
16705 esac
16706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16707   (eval "$ac_try") 2>&5
16708   ac_status=$?
16709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710   (exit $ac_status); }; } &&
16711          { ac_try='test -s conftest$ac_exeext'
16712   { (case "(($ac_try" in
16713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714   *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717   (eval "$ac_try") 2>&5
16718   ac_status=$?
16719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720   (exit $ac_status); }; }; then
16721   eval "$as_ac_var=yes"
16722 else
16723   echo "$as_me: failed program was:" >&5
16724 sed 's/^/| /' conftest.$ac_ext >&5
16725
16726         eval "$as_ac_var=no"
16727 fi
16728
16729 rm -f core conftest.err conftest.$ac_objext \
16730       conftest$ac_exeext conftest.$ac_ext
16731 fi
16732 ac_res=`eval echo '${'$as_ac_var'}'`
16733                { echo "$as_me:$LINENO: result: $ac_res" >&5
16734 echo "${ECHO_T}$ac_res" >&6; }
16735 if test `eval echo '${'$as_ac_var'}'` = yes; then
16736   cat >>confdefs.h <<_ACEOF
16737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16738 _ACEOF
16739
16740 fi
16741 done
16742
16743
16744
16745 for ac_func in nanosleep nl_langinfo
16746 do
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16761 #define $ac_func innocuous_$ac_func
16762
16763 /* System header to define __stub macros and hopefully few prototypes,
16764     which can conflict with char $ac_func (); below.
16765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766     <limits.h> exists even on freestanding compilers.  */
16767
16768 #ifdef __STDC__
16769 # include <limits.h>
16770 #else
16771 # include <assert.h>
16772 #endif
16773
16774 #undef $ac_func
16775
16776 /* Override any GCC internal prototype to avoid an error.
16777    Use char because int might match the return type of a GCC
16778    builtin and then its argument prototype would still apply.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 char $ac_func ();
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16787 choke me
16788 #endif
16789
16790 int
16791 main ()
16792 {
16793 return $ac_func ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_link") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } &&
16812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813   { (case "(($ac_try" in
16814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815   *) ac_try_echo=$ac_try;;
16816 esac
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818   (eval "$ac_try") 2>&5
16819   ac_status=$?
16820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821   (exit $ac_status); }; } &&
16822          { ac_try='test -s conftest$ac_exeext'
16823   { (case "(($ac_try" in
16824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825   *) ac_try_echo=$ac_try;;
16826 esac
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828   (eval "$ac_try") 2>&5
16829   ac_status=$?
16830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831   (exit $ac_status); }; }; then
16832   eval "$as_ac_var=yes"
16833 else
16834   echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16836
16837         eval "$as_ac_var=no"
16838 fi
16839
16840 rm -f core conftest.err conftest.$ac_objext \
16841       conftest$ac_exeext conftest.$ac_ext
16842 fi
16843 ac_res=`eval echo '${'$as_ac_var'}'`
16844                { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16846 if test `eval echo '${'$as_ac_var'}'` = yes; then
16847   cat >>confdefs.h <<_ACEOF
16848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16849 _ACEOF
16850
16851 fi
16852 done
16853
16854
16855 for ac_header in varargs.h
16856 do
16857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16859   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16862   echo $ECHO_N "(cached) $ECHO_C" >&6
16863 fi
16864 ac_res=`eval echo '${'$as_ac_Header'}'`
16865                { echo "$as_me:$LINENO: result: $ac_res" >&5
16866 echo "${ECHO_T}$ac_res" >&6; }
16867 else
16868   # Is the header compilable?
16869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16871 cat >conftest.$ac_ext <<_ACEOF
16872 /* confdefs.h.  */
16873 _ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h.  */
16877 $ac_includes_default
16878 #include <$ac_header>
16879 _ACEOF
16880 rm -f conftest.$ac_objext
16881 if { (ac_try="$ac_compile"
16882 case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_compile") 2>conftest.er1
16888   ac_status=$?
16889   grep -v '^ *+' conftest.er1 >conftest.err
16890   rm -f conftest.er1
16891   cat conftest.err >&5
16892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893   (exit $ac_status); } &&
16894          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16895   { (case "(($ac_try" in
16896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897   *) ac_try_echo=$ac_try;;
16898 esac
16899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16900   (eval "$ac_try") 2>&5
16901   ac_status=$?
16902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903   (exit $ac_status); }; } &&
16904          { ac_try='test -s conftest.$ac_objext'
16905   { (case "(($ac_try" in
16906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16907   *) ac_try_echo=$ac_try;;
16908 esac
16909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16910   (eval "$ac_try") 2>&5
16911   ac_status=$?
16912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913   (exit $ac_status); }; }; then
16914   ac_header_compiler=yes
16915 else
16916   echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16918
16919         ac_header_compiler=no
16920 fi
16921
16922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16924 echo "${ECHO_T}$ac_header_compiler" >&6; }
16925
16926 # Is the header present?
16927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16929 cat >conftest.$ac_ext <<_ACEOF
16930 /* confdefs.h.  */
16931 _ACEOF
16932 cat confdefs.h >>conftest.$ac_ext
16933 cat >>conftest.$ac_ext <<_ACEOF
16934 /* end confdefs.h.  */
16935 #include <$ac_header>
16936 _ACEOF
16937 if { (ac_try="$ac_cpp conftest.$ac_ext"
16938 case "(($ac_try" in
16939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16940   *) ac_try_echo=$ac_try;;
16941 esac
16942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16943   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16944   ac_status=$?
16945   grep -v '^ *+' conftest.er1 >conftest.err
16946   rm -f conftest.er1
16947   cat conftest.err >&5
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); } >/dev/null; then
16950   if test -s conftest.err; then
16951     ac_cpp_err=$ac_c_preproc_warn_flag
16952     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16953   else
16954     ac_cpp_err=
16955   fi
16956 else
16957   ac_cpp_err=yes
16958 fi
16959 if test -z "$ac_cpp_err"; then
16960   ac_header_preproc=yes
16961 else
16962   echo "$as_me: failed program was:" >&5
16963 sed 's/^/| /' conftest.$ac_ext >&5
16964
16965   ac_header_preproc=no
16966 fi
16967
16968 rm -f conftest.err conftest.$ac_ext
16969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16970 echo "${ECHO_T}$ac_header_preproc" >&6; }
16971
16972 # So?  What about this header?
16973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16974   yes:no: )
16975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16979     ac_header_preproc=yes
16980     ;;
16981   no:yes:* )
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16994
16995     ;;
16996 esac
16997 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17000   echo $ECHO_N "(cached) $ECHO_C" >&6
17001 else
17002   eval "$as_ac_Header=\$ac_header_preproc"
17003 fi
17004 ac_res=`eval echo '${'$as_ac_Header'}'`
17005                { echo "$as_me:$LINENO: result: $ac_res" >&5
17006 echo "${ECHO_T}$ac_res" >&6; }
17007
17008 fi
17009 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17010   cat >>confdefs.h <<_ACEOF
17011 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 _ACEOF
17013
17014 fi
17015
17016 done
17017
17018
17019 # End of readline/conio stuff
17020 # -----------------------------------------------------------------------
17021
17022 # -----------------------------------------------------------------------
17023 #  Check for Python support
17024 #
17025 { echo "$as_me:$LINENO: checking for Python support" >&5
17026 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17027
17028 # Check whether --with-python was given.
17029 if test "${with_python+set}" = set; then
17030   withval=$with_python;
17031   PYTHON_INCDIR=
17032   PYTHON_LIBS=
17033   if test "$withval" != "no"; then
17034      if test "$withval" = "yes"; then
17035         for python_root in /usr /usr/local /usr/sfw; do
17036           for ver in python2.2 python2.3 python2.4 python2.5; do
17037              if test -f $python_root/include/${ver}/Python.h; then
17038                 PYTHON_INCDIR=-I$python_root/include/${ver}
17039                 if test -d $python_root/lib64/${ver}/config; then
17040                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17041                 else
17042                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17043                 fi
17044                 break
17045              fi
17046           done
17047         done
17048         if test x$PYTHON_INCDIR = x; then
17049           if test -f $prefix/include/Python.h; then
17050              PYTHON_INCDIR=-I$prefix/include
17051              if test -d $prefix/lib64/config; then
17052                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17053              else
17054                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17055              fi
17056           else
17057            { echo "$as_me:$LINENO: result: no" >&5
17058 echo "${ECHO_T}no" >&6; }
17059            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17060 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17061    { (exit 1); exit 1; }; }
17062           fi
17063         fi
17064      else
17065         if test -f $withval/Python.h; then
17066            PYTHON_INCDIR=-I$withval
17067            PYTHON_LIBS="-L$withval/config -lpython"
17068         elif test -f $withval/include/Python.h; then
17069            PYTHON_INCDIR=-I$withval/include
17070            if test -d $withval/lib64/config; then
17071               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17072            else
17073               PYTHON_LIBS="-L$withval/lib/config -lpython"
17074            fi
17075         elif test -f $withval/include/python/Python.h; then
17076            PYTHON_INCDIR=-I$withval/include/python
17077            if test -d $withval/lib64/python/config; then
17078               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17079            else
17080               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17081            fi
17082         else
17083            { echo "$as_me:$LINENO: result: no" >&5
17084 echo "${ECHO_T}no" >&6; }
17085            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17086 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17087    { (exit 1); exit 1; }; }
17088         fi
17089      fi
17090      cat >>confdefs.h <<\_ACEOF
17091 #define HAVE_PYTHON 1
17092 _ACEOF
17093
17094      { echo "$as_me:$LINENO: result: yes" >&5
17095 echo "${ECHO_T}yes" >&6; }
17096      support_python=yes
17097      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17098 echo "$as_me: checking for more Python libs" >&6;}
17099      saved_LIBS="$LIBS"; LIBS=
17100      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17101 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17102 if test "${ac_cv_search_shm_open+set}" = set; then
17103   echo $ECHO_N "(cached) $ECHO_C" >&6
17104 else
17105   ac_func_search_save_LIBS=$LIBS
17106 cat >conftest.$ac_ext <<_ACEOF
17107 /* confdefs.h.  */
17108 _ACEOF
17109 cat confdefs.h >>conftest.$ac_ext
17110 cat >>conftest.$ac_ext <<_ACEOF
17111 /* end confdefs.h.  */
17112
17113 /* Override any GCC internal prototype to avoid an error.
17114    Use char because int might match the return type of a GCC
17115    builtin and then its argument prototype would still apply.  */
17116 #ifdef __cplusplus
17117 extern "C"
17118 #endif
17119 char shm_open ();
17120 int
17121 main ()
17122 {
17123 return shm_open ();
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 for ac_lib in '' rt; do
17129   if test -z "$ac_lib"; then
17130     ac_res="none required"
17131   else
17132     ac_res=-l$ac_lib
17133     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17134   fi
17135   rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139   *) ac_try_echo=$ac_try;;
17140 esac
17141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17142   (eval "$ac_link") 2>conftest.er1
17143   ac_status=$?
17144   grep -v '^ *+' conftest.er1 >conftest.err
17145   rm -f conftest.er1
17146   cat conftest.err >&5
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); } &&
17149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17150   { (case "(($ac_try" in
17151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152   *) ac_try_echo=$ac_try;;
17153 esac
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155   (eval "$ac_try") 2>&5
17156   ac_status=$?
17157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158   (exit $ac_status); }; } &&
17159          { ac_try='test -s conftest$ac_exeext'
17160   { (case "(($ac_try" in
17161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162   *) ac_try_echo=$ac_try;;
17163 esac
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165   (eval "$ac_try") 2>&5
17166   ac_status=$?
17167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); }; }; then
17169   ac_cv_search_shm_open=$ac_res
17170 else
17171   echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17173
17174
17175 fi
17176
17177 rm -f core conftest.err conftest.$ac_objext \
17178       conftest$ac_exeext
17179   if test "${ac_cv_search_shm_open+set}" = set; then
17180   break
17181 fi
17182 done
17183 if test "${ac_cv_search_shm_open+set}" = set; then
17184   :
17185 else
17186   ac_cv_search_shm_open=no
17187 fi
17188 rm conftest.$ac_ext
17189 LIBS=$ac_func_search_save_LIBS
17190 fi
17191 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17192 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17193 ac_res=$ac_cv_search_shm_open
17194 if test "$ac_res" != no; then
17195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17196
17197 fi
17198
17199
17200 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17201 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17202 if test "${ac_cv_lib_util_openpty+set}" = set; then
17203   echo $ECHO_N "(cached) $ECHO_C" >&6
17204 else
17205   ac_check_lib_save_LIBS=$LIBS
17206 LIBS="-lutil  $LIBS"
17207 cat >conftest.$ac_ext <<_ACEOF
17208 /* confdefs.h.  */
17209 _ACEOF
17210 cat confdefs.h >>conftest.$ac_ext
17211 cat >>conftest.$ac_ext <<_ACEOF
17212 /* end confdefs.h.  */
17213
17214 /* Override any GCC internal prototype to avoid an error.
17215    Use char because int might match the return type of a GCC
17216    builtin and then its argument prototype would still apply.  */
17217 #ifdef __cplusplus
17218 extern "C"
17219 #endif
17220 char openpty ();
17221 int
17222 main ()
17223 {
17224 return openpty ();
17225   ;
17226   return 0;
17227 }
17228 _ACEOF
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233   *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236   (eval "$ac_link") 2>conftest.er1
17237   ac_status=$?
17238   grep -v '^ *+' conftest.er1 >conftest.err
17239   rm -f conftest.er1
17240   cat conftest.err >&5
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); } &&
17243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244   { (case "(($ac_try" in
17245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246   *) ac_try_echo=$ac_try;;
17247 esac
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249   (eval "$ac_try") 2>&5
17250   ac_status=$?
17251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252   (exit $ac_status); }; } &&
17253          { ac_try='test -s conftest$ac_exeext'
17254   { (case "(($ac_try" in
17255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256   *) ac_try_echo=$ac_try;;
17257 esac
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259   (eval "$ac_try") 2>&5
17260   ac_status=$?
17261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262   (exit $ac_status); }; }; then
17263   ac_cv_lib_util_openpty=yes
17264 else
17265   echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17267
17268         ac_cv_lib_util_openpty=no
17269 fi
17270
17271 rm -f core conftest.err conftest.$ac_objext \
17272       conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17274 fi
17275 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17276 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17277 if test $ac_cv_lib_util_openpty = yes; then
17278   cat >>confdefs.h <<_ACEOF
17279 #define HAVE_LIBUTIL 1
17280 _ACEOF
17281
17282   LIBS="-lutil $LIBS"
17283
17284 fi
17285
17286      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17287      LIBS="$saved_LIBS"
17288   else
17289      { echo "$as_me:$LINENO: result: no" >&5
17290 echo "${ECHO_T}no" >&6; }
17291   fi
17292
17293 else
17294
17295   { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17297
17298 fi
17299
17300
17301
17302
17303 #
17304 # Find where sockets are (especially for Solaris)
17305 # Do this before the TCP Wrappers test since tcp wrappers
17306 # uses the socket library and some linkers are stupid.
17307 #
17308 { echo "$as_me:$LINENO: checking for socket" >&5
17309 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17310 if test "${ac_cv_func_socket+set}" = set; then
17311   echo $ECHO_N "(cached) $ECHO_C" >&6
17312 else
17313   cat >conftest.$ac_ext <<_ACEOF
17314 /* confdefs.h.  */
17315 _ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h.  */
17319 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17321 #define socket innocuous_socket
17322
17323 /* System header to define __stub macros and hopefully few prototypes,
17324     which can conflict with char socket (); below.
17325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17326     <limits.h> exists even on freestanding compilers.  */
17327
17328 #ifdef __STDC__
17329 # include <limits.h>
17330 #else
17331 # include <assert.h>
17332 #endif
17333
17334 #undef socket
17335
17336 /* Override any GCC internal prototype to avoid an error.
17337    Use char because int might match the return type of a GCC
17338    builtin and then its argument prototype would still apply.  */
17339 #ifdef __cplusplus
17340 extern "C"
17341 #endif
17342 char socket ();
17343 /* The GNU C library defines this for functions which it implements
17344     to always fail with ENOSYS.  Some functions are actually named
17345     something starting with __ and the normal name is an alias.  */
17346 #if defined __stub_socket || defined __stub___socket
17347 choke me
17348 #endif
17349
17350 int
17351 main ()
17352 {
17353 return socket ();
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362   *) ac_try_echo=$ac_try;;
17363 esac
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365   (eval "$ac_link") 2>conftest.er1
17366   ac_status=$?
17367   grep -v '^ *+' conftest.er1 >conftest.err
17368   rm -f conftest.er1
17369   cat conftest.err >&5
17370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371   (exit $ac_status); } &&
17372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17373   { (case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_try") 2>&5
17379   ac_status=$?
17380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381   (exit $ac_status); }; } &&
17382          { ac_try='test -s conftest$ac_exeext'
17383   { (case "(($ac_try" in
17384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17385   *) ac_try_echo=$ac_try;;
17386 esac
17387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17388   (eval "$ac_try") 2>&5
17389   ac_status=$?
17390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17391   (exit $ac_status); }; }; then
17392   ac_cv_func_socket=yes
17393 else
17394   echo "$as_me: failed program was:" >&5
17395 sed 's/^/| /' conftest.$ac_ext >&5
17396
17397         ac_cv_func_socket=no
17398 fi
17399
17400 rm -f core conftest.err conftest.$ac_objext \
17401       conftest$ac_exeext conftest.$ac_ext
17402 fi
17403 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17404 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17405 if test $ac_cv_func_socket = yes; then
17406   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17407 echo "${ECHO_T}using libc's socket" >&6; }
17408 else
17409
17410 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17411 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17412 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17413   echo $ECHO_N "(cached) $ECHO_C" >&6
17414 else
17415   ac_check_lib_save_LIBS=$LIBS
17416 LIBS="-lxnet  $LIBS"
17417 cat >conftest.$ac_ext <<_ACEOF
17418 /* confdefs.h.  */
17419 _ACEOF
17420 cat confdefs.h >>conftest.$ac_ext
17421 cat >>conftest.$ac_ext <<_ACEOF
17422 /* end confdefs.h.  */
17423
17424 /* Override any GCC internal prototype to avoid an error.
17425    Use char because int might match the return type of a GCC
17426    builtin and then its argument prototype would still apply.  */
17427 #ifdef __cplusplus
17428 extern "C"
17429 #endif
17430 char socket ();
17431 int
17432 main ()
17433 {
17434 return socket ();
17435   ;
17436   return 0;
17437 }
17438 _ACEOF
17439 rm -f conftest.$ac_objext conftest$ac_exeext
17440 if { (ac_try="$ac_link"
17441 case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_link") 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } &&
17453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17454   { (case "(($ac_try" in
17455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17456   *) ac_try_echo=$ac_try;;
17457 esac
17458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17459   (eval "$ac_try") 2>&5
17460   ac_status=$?
17461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462   (exit $ac_status); }; } &&
17463          { ac_try='test -s conftest$ac_exeext'
17464   { (case "(($ac_try" in
17465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17466   *) ac_try_echo=$ac_try;;
17467 esac
17468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17469   (eval "$ac_try") 2>&5
17470   ac_status=$?
17471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472   (exit $ac_status); }; }; then
17473   ac_cv_lib_xnet_socket=yes
17474 else
17475   echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478         ac_cv_lib_xnet_socket=no
17479 fi
17480
17481 rm -f core conftest.err conftest.$ac_objext \
17482       conftest$ac_exeext conftest.$ac_ext
17483 LIBS=$ac_check_lib_save_LIBS
17484 fi
17485 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17486 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17487 if test $ac_cv_lib_xnet_socket = yes; then
17488   cat >>confdefs.h <<_ACEOF
17489 #define HAVE_LIBXNET 1
17490 _ACEOF
17491
17492   LIBS="-lxnet $LIBS"
17493
17494 fi
17495
17496
17497 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17498 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17499 if test "${ac_cv_lib_socket_socket+set}" = set; then
17500   echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502   ac_check_lib_save_LIBS=$LIBS
17503 LIBS="-lsocket  $LIBS"
17504 cat >conftest.$ac_ext <<_ACEOF
17505 /* confdefs.h.  */
17506 _ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h.  */
17510
17511 /* Override any GCC internal prototype to avoid an error.
17512    Use char because int might match the return type of a GCC
17513    builtin and then its argument prototype would still apply.  */
17514 #ifdef __cplusplus
17515 extern "C"
17516 #endif
17517 char socket ();
17518 int
17519 main ()
17520 {
17521 return socket ();
17522   ;
17523   return 0;
17524 }
17525 _ACEOF
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (ac_try="$ac_link"
17528 case "(($ac_try" in
17529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530   *) ac_try_echo=$ac_try;;
17531 esac
17532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533   (eval "$ac_link") 2>conftest.er1
17534   ac_status=$?
17535   grep -v '^ *+' conftest.er1 >conftest.err
17536   rm -f conftest.er1
17537   cat conftest.err >&5
17538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539   (exit $ac_status); } &&
17540          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17541   { (case "(($ac_try" in
17542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543   *) ac_try_echo=$ac_try;;
17544 esac
17545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17546   (eval "$ac_try") 2>&5
17547   ac_status=$?
17548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17549   (exit $ac_status); }; } &&
17550          { ac_try='test -s conftest$ac_exeext'
17551   { (case "(($ac_try" in
17552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553   *) ac_try_echo=$ac_try;;
17554 esac
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556   (eval "$ac_try") 2>&5
17557   ac_status=$?
17558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559   (exit $ac_status); }; }; then
17560   ac_cv_lib_socket_socket=yes
17561 else
17562   echo "$as_me: failed program was:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17564
17565         ac_cv_lib_socket_socket=no
17566 fi
17567
17568 rm -f core conftest.err conftest.$ac_objext \
17569       conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17571 fi
17572 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17573 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17574 if test $ac_cv_lib_socket_socket = yes; then
17575   cat >>confdefs.h <<_ACEOF
17576 #define HAVE_LIBSOCKET 1
17577 _ACEOF
17578
17579   LIBS="-lsocket $LIBS"
17580
17581 fi
17582
17583
17584 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17585 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17586 if test "${ac_cv_lib_inet_socket+set}" = set; then
17587   echo $ECHO_N "(cached) $ECHO_C" >&6
17588 else
17589   ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-linet  $LIBS"
17591 cat >conftest.$ac_ext <<_ACEOF
17592 /* confdefs.h.  */
17593 _ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h.  */
17597
17598 /* Override any GCC internal prototype to avoid an error.
17599    Use char because int might match the return type of a GCC
17600    builtin and then its argument prototype would still apply.  */
17601 #ifdef __cplusplus
17602 extern "C"
17603 #endif
17604 char socket ();
17605 int
17606 main ()
17607 {
17608 return socket ();
17609   ;
17610   return 0;
17611 }
17612 _ACEOF
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (ac_try="$ac_link"
17615 case "(($ac_try" in
17616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617   *) ac_try_echo=$ac_try;;
17618 esac
17619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17620   (eval "$ac_link") 2>conftest.er1
17621   ac_status=$?
17622   grep -v '^ *+' conftest.er1 >conftest.err
17623   rm -f conftest.er1
17624   cat conftest.err >&5
17625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626   (exit $ac_status); } &&
17627          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17628   { (case "(($ac_try" in
17629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17630   *) ac_try_echo=$ac_try;;
17631 esac
17632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17633   (eval "$ac_try") 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; } &&
17637          { ac_try='test -s conftest$ac_exeext'
17638   { (case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_try") 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; }; then
17647   ac_cv_lib_inet_socket=yes
17648 else
17649   echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17651
17652         ac_cv_lib_inet_socket=no
17653 fi
17654
17655 rm -f core conftest.err conftest.$ac_objext \
17656       conftest$ac_exeext conftest.$ac_ext
17657 LIBS=$ac_check_lib_save_LIBS
17658 fi
17659 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17660 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17661 if test $ac_cv_lib_inet_socket = yes; then
17662   cat >>confdefs.h <<_ACEOF
17663 #define HAVE_LIBINET 1
17664 _ACEOF
17665
17666   LIBS="-linet $LIBS"
17667
17668 fi
17669
17670 fi
17671
17672
17673
17674 # -----------------------------------------------------------
17675 # Check whether user wants TCP wrappers support (default off)
17676 # -----------------------------------------------------------
17677 TCPW_MSG="no"
17678 WRAPLIBS=""
17679
17680 # Check whether --with-tcp-wrappers was given.
17681 if test "${with_tcp_wrappers+set}" = set; then
17682   withval=$with_tcp_wrappers;
17683     if test "x$withval" != "xno" ; then
17684        saved_LIBS="$LIBS"
17685        LIBS="$saved_LIBS -lwrap"
17686        { echo "$as_me:$LINENO: checking for libwrap" >&5
17687 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17688        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17689 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17690 if test "${ac_cv_search_nanosleep+set}" = set; then
17691   echo $ECHO_N "(cached) $ECHO_C" >&6
17692 else
17693   ac_func_search_save_LIBS=$LIBS
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17700
17701 /* Override any GCC internal prototype to avoid an error.
17702    Use char because int might match the return type of a GCC
17703    builtin and then its argument prototype would still apply.  */
17704 #ifdef __cplusplus
17705 extern "C"
17706 #endif
17707 char nanosleep ();
17708 int
17709 main ()
17710 {
17711 return nanosleep ();
17712   ;
17713   return 0;
17714 }
17715 _ACEOF
17716 for ac_lib in '' rt; do
17717   if test -z "$ac_lib"; then
17718     ac_res="none required"
17719   else
17720     ac_res=-l$ac_lib
17721     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17722   fi
17723   rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (ac_try="$ac_link"
17725 case "(($ac_try" in
17726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17727   *) ac_try_echo=$ac_try;;
17728 esac
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730   (eval "$ac_link") 2>conftest.er1
17731   ac_status=$?
17732   grep -v '^ *+' conftest.er1 >conftest.err
17733   rm -f conftest.er1
17734   cat conftest.err >&5
17735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736   (exit $ac_status); } &&
17737          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738   { (case "(($ac_try" in
17739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17740   *) ac_try_echo=$ac_try;;
17741 esac
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743   (eval "$ac_try") 2>&5
17744   ac_status=$?
17745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746   (exit $ac_status); }; } &&
17747          { ac_try='test -s conftest$ac_exeext'
17748   { (case "(($ac_try" in
17749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17750   *) ac_try_echo=$ac_try;;
17751 esac
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753   (eval "$ac_try") 2>&5
17754   ac_status=$?
17755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); }; }; then
17757   ac_cv_search_nanosleep=$ac_res
17758 else
17759   echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17761
17762
17763 fi
17764
17765 rm -f core conftest.err conftest.$ac_objext \
17766       conftest$ac_exeext
17767   if test "${ac_cv_search_nanosleep+set}" = set; then
17768   break
17769 fi
17770 done
17771 if test "${ac_cv_search_nanosleep+set}" = set; then
17772   :
17773 else
17774   ac_cv_search_nanosleep=no
17775 fi
17776 rm conftest.$ac_ext
17777 LIBS=$ac_func_search_save_LIBS
17778 fi
17779 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17780 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17781 ac_res=$ac_cv_search_nanosleep
17782 if test "$ac_res" != no; then
17783   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17784
17785 fi
17786
17787        cat >conftest.$ac_ext <<_ACEOF
17788 /* confdefs.h.  */
17789 _ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h.  */
17793  #include <sys/types.h>
17794             #include <tcpd.h>
17795              int deny_severity = 0;
17796              int allow_severity = 0;
17797              struct request_info *req;
17798 int
17799 main ()
17800 {
17801  hosts_access(req);
17802   ;
17803   return 0;
17804 }
17805 _ACEOF
17806 rm -f conftest.$ac_objext conftest$ac_exeext
17807 if { (ac_try="$ac_link"
17808 case "(($ac_try" in
17809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810   *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813   (eval "$ac_link") 2>conftest.er1
17814   ac_status=$?
17815   grep -v '^ *+' conftest.er1 >conftest.err
17816   rm -f conftest.er1
17817   cat conftest.err >&5
17818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819   (exit $ac_status); } &&
17820          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821   { (case "(($ac_try" in
17822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17823   *) ac_try_echo=$ac_try;;
17824 esac
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826   (eval "$ac_try") 2>&5
17827   ac_status=$?
17828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829   (exit $ac_status); }; } &&
17830          { ac_try='test -s conftest$ac_exeext'
17831   { (case "(($ac_try" in
17832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833   *) ac_try_echo=$ac_try;;
17834 esac
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836   (eval "$ac_try") 2>&5
17837   ac_status=$?
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); }; }; then
17840
17841             { echo "$as_me:$LINENO: result: yes" >&5
17842 echo "${ECHO_T}yes" >&6; }
17843             cat >>confdefs.h <<\_ACEOF
17844 #define HAVE_LIBWRAP 1
17845 _ACEOF
17846
17847             TCPW_MSG="yes"
17848             LIBS="$saved_LIBS"
17849             WRAPLIBS="-lwrap"
17850
17851 else
17852   echo "$as_me: failed program was:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17854
17855
17856             LIBS="$saved_LIBS -lwrap -lnsl"
17857             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17858             cat >conftest.$ac_ext <<_ACEOF
17859 /* confdefs.h.  */
17860 _ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h.  */
17864  #include <sys/types.h>
17865                  #include <tcpd.h>
17866                  int deny_severity = 0;
17867                  int allow_severity = 0;
17868                  struct request_info *req;
17869 int
17870 main ()
17871 {
17872  hosts_access(req);
17873   ;
17874   return 0;
17875 }
17876 _ACEOF
17877 rm -f conftest.$ac_objext conftest$ac_exeext
17878 if { (ac_try="$ac_link"
17879 case "(($ac_try" in
17880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17881   *) ac_try_echo=$ac_try;;
17882 esac
17883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17884   (eval "$ac_link") 2>conftest.er1
17885   ac_status=$?
17886   grep -v '^ *+' conftest.er1 >conftest.err
17887   rm -f conftest.er1
17888   cat conftest.err >&5
17889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890   (exit $ac_status); } &&
17891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17892   { (case "(($ac_try" in
17893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894   *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897   (eval "$ac_try") 2>&5
17898   ac_status=$?
17899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900   (exit $ac_status); }; } &&
17901          { ac_try='test -s conftest$ac_exeext'
17902   { (case "(($ac_try" in
17903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904   *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907   (eval "$ac_try") 2>&5
17908   ac_status=$?
17909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910   (exit $ac_status); }; }; then
17911
17912                  { echo "$as_me:$LINENO: result: yes" >&5
17913 echo "${ECHO_T}yes" >&6; }
17914                  cat >>confdefs.h <<\_ACEOF
17915 #define HAVE_LIBWRAP 1
17916 _ACEOF
17917
17918                  TCPW_MSG="yes"
17919                  LIBS="$saved_LIBS"
17920                  WRAPLIBS="-lwrap"
17921
17922 else
17923   echo "$as_me: failed program was:" >&5
17924 sed 's/^/| /' conftest.$ac_ext >&5
17925
17926         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17927 echo "$as_me: error: *** libwrap missing" >&2;}
17928    { (exit 1); exit 1; }; }
17929
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext \
17933       conftest$ac_exeext conftest.$ac_ext
17934
17935 fi
17936
17937 rm -f core conftest.err conftest.$ac_objext \
17938       conftest$ac_exeext conftest.$ac_ext
17939     fi
17940
17941
17942 fi
17943
17944
17945 # -----------------------------------------------------------
17946 # Check whether OpenSSL is available
17947 # -----------------------------------------------------------
17948 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17949 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17950
17951 # Check whether --with-openssl was given.
17952 if test "${with_openssl+set}" = set; then
17953   withval=$with_openssl; with_openssl_directory=${withval}
17954 fi
17955
17956
17957 if test "x$with_openssl_directory" != "x"; then
17958         OPENSSL_LIBS="-lssl -lcrypto"
17959         OPENSSL_INC=""
17960
17961         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17962                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17963                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17964         fi
17965
17966         saved_LIBS="${LIBS}"
17967         saved_CFLAGS="${CFLAGS}"
17968         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17969         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17970
17971         cat >conftest.$ac_ext <<_ACEOF
17972 /* confdefs.h.  */
17973 _ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h.  */
17977  #include <openssl/ssl.h>
17978 int
17979 main ()
17980 {
17981  CRYPTO_set_id_callback(NULL);
17982   ;
17983   return 0;
17984 }
17985 _ACEOF
17986 rm -f conftest.$ac_objext conftest$ac_exeext
17987 if { (ac_try="$ac_link"
17988 case "(($ac_try" in
17989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17990   *) ac_try_echo=$ac_try;;
17991 esac
17992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17993   (eval "$ac_link") 2>conftest.er1
17994   ac_status=$?
17995   grep -v '^ *+' conftest.er1 >conftest.err
17996   rm -f conftest.er1
17997   cat conftest.err >&5
17998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999   (exit $ac_status); } &&
18000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18001   { (case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_try") 2>&5
18007   ac_status=$?
18008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009   (exit $ac_status); }; } &&
18010          { ac_try='test -s conftest$ac_exeext'
18011   { (case "(($ac_try" in
18012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013   *) ac_try_echo=$ac_try;;
18014 esac
18015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18016   (eval "$ac_try") 2>&5
18017   ac_status=$?
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); }; }; then
18020
18021                         support_tls="yes"
18022                         support_crypto="yes"
18023
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028          support_tls="no"
18029
18030 fi
18031
18032 rm -f core conftest.err conftest.$ac_objext \
18033       conftest$ac_exeext conftest.$ac_ext
18034
18035         cat >conftest.$ac_ext <<_ACEOF
18036 /* confdefs.h.  */
18037 _ACEOF
18038 cat confdefs.h >>conftest.$ac_ext
18039 cat >>conftest.$ac_ext <<_ACEOF
18040 /* end confdefs.h.  */
18041  #include <openssl/evp.h>
18042 int
18043 main ()
18044 {
18045  EVP_sha512();
18046   ;
18047   return 0;
18048 }
18049 _ACEOF
18050 rm -f conftest.$ac_objext conftest$ac_exeext
18051 if { (ac_try="$ac_link"
18052 case "(($ac_try" in
18053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054   *) ac_try_echo=$ac_try;;
18055 esac
18056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18057   (eval "$ac_link") 2>conftest.er1
18058   ac_status=$?
18059   grep -v '^ *+' conftest.er1 >conftest.err
18060   rm -f conftest.er1
18061   cat conftest.err >&5
18062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18063   (exit $ac_status); } &&
18064          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18065   { (case "(($ac_try" in
18066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18067   *) ac_try_echo=$ac_try;;
18068 esac
18069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18070   (eval "$ac_try") 2>&5
18071   ac_status=$?
18072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073   (exit $ac_status); }; } &&
18074          { ac_try='test -s conftest$ac_exeext'
18075   { (case "(($ac_try" in
18076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077   *) ac_try_echo=$ac_try;;
18078 esac
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080   (eval "$ac_try") 2>&5
18081   ac_status=$?
18082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083   (exit $ac_status); }; }; then
18084    ac_cv_openssl_sha2="yes"
18085 else
18086   echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.$ac_ext >&5
18088
18089          ac_cv_openssl_sha2="no"
18090
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext \
18094       conftest$ac_exeext conftest.$ac_ext
18095
18096         # Solaris disables greater than 128+ bit encryption in their OpenSSL
18097         # implementation, presumably for export reasons. If 192bit AES
18098         # is available, we assume that we're running with a 'non-export'
18099         # openssl library.
18100         cat >conftest.$ac_ext <<_ACEOF
18101 /* confdefs.h.  */
18102 _ACEOF
18103 cat confdefs.h >>conftest.$ac_ext
18104 cat >>conftest.$ac_ext <<_ACEOF
18105 /* end confdefs.h.  */
18106  #include <openssl/evp.h>
18107 int
18108 main ()
18109 {
18110  EVP_aes_192_cbc();
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_link") 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } &&
18129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; } &&
18139          { ac_try='test -s conftest$ac_exeext'
18140   { (case "(($ac_try" in
18141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142   *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145   (eval "$ac_try") 2>&5
18146   ac_status=$?
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); }; }; then
18149    ac_cv_openssl_export="no"
18150 else
18151   echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154          ac_cv_openssl_export="yes"
18155
18156 fi
18157
18158 rm -f core conftest.err conftest.$ac_objext \
18159       conftest$ac_exeext conftest.$ac_ext
18160
18161         LIBS="${saved_LIBS}"
18162         CFLAGS="${saved_CFLAGS}"
18163
18164         if test "$support_tls" = "yes"; then
18165
18166 cat >>confdefs.h <<\_ACEOF
18167 #define HAVE_OPENSSL 1
18168 _ACEOF
18169
18170
18171 cat >>confdefs.h <<\_ACEOF
18172 #define HAVE_TLS 1
18173 _ACEOF
18174
18175
18176 cat >>confdefs.h <<\_ACEOF
18177 #define HAVE_CRYPTO 1
18178 _ACEOF
18179
18180         fi
18181
18182         if test "$ac_cv_openssl_sha2" = "yes"; then
18183
18184 cat >>confdefs.h <<\_ACEOF
18185 #define HAVE_SHA2 1
18186 _ACEOF
18187
18188         fi
18189
18190         if test "$ac_cv_openssl_export" = "yes"; then
18191
18192 cat >>confdefs.h <<\_ACEOF
18193 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18194 _ACEOF
18195
18196         fi
18197 else
18198         support_tls="no"
18199         support_crypto="no"
18200         OPENSSL_LIBS=""
18201         OPENSSL_INC=""
18202 fi
18203
18204 { echo "$as_me:$LINENO: result: $support_tls" >&5
18205 echo "${ECHO_T}$support_tls" >&6; }
18206
18207
18208
18209
18210 # -----------------------------------------------------------
18211 # Python and OpenSSL are using dlopen
18212 # -----------------------------------------------------------
18213
18214 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18215    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18216 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18217 if test "${ac_cv_search_dlopen+set}" = set; then
18218   echo $ECHO_N "(cached) $ECHO_C" >&6
18219 else
18220   ac_func_search_save_LIBS=$LIBS
18221 cat >conftest.$ac_ext <<_ACEOF
18222 /* confdefs.h.  */
18223 _ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h.  */
18227
18228 /* Override any GCC internal prototype to avoid an error.
18229    Use char because int might match the return type of a GCC
18230    builtin and then its argument prototype would still apply.  */
18231 #ifdef __cplusplus
18232 extern "C"
18233 #endif
18234 char dlopen ();
18235 int
18236 main ()
18237 {
18238 return dlopen ();
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 for ac_lib in '' dl; do
18244   if test -z "$ac_lib"; then
18245     ac_res="none required"
18246   else
18247     ac_res=-l$ac_lib
18248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18249   fi
18250   rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254   *) ac_try_echo=$ac_try;;
18255 esac
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257   (eval "$ac_link") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } &&
18264          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265   { (case "(($ac_try" in
18266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267   *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270   (eval "$ac_try") 2>&5
18271   ac_status=$?
18272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273   (exit $ac_status); }; } &&
18274          { ac_try='test -s conftest$ac_exeext'
18275   { (case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_try") 2>&5
18281   ac_status=$?
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); }; }; then
18284   ac_cv_search_dlopen=$ac_res
18285 else
18286   echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289
18290 fi
18291
18292 rm -f core conftest.err conftest.$ac_objext \
18293       conftest$ac_exeext
18294   if test "${ac_cv_search_dlopen+set}" = set; then
18295   break
18296 fi
18297 done
18298 if test "${ac_cv_search_dlopen+set}" = set; then
18299   :
18300 else
18301   ac_cv_search_dlopen=no
18302 fi
18303 rm conftest.$ac_ext
18304 LIBS=$ac_func_search_save_LIBS
18305 fi
18306 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18307 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18308 ac_res=$ac_cv_search_dlopen
18309 if test "$ac_res" != no; then
18310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18311
18312 fi
18313
18314 fi
18315
18316 # ------------------------------------------
18317 # Where to place working dir
18318 # ------------------------------------------
18319 working_dir=`eval echo ${prefix}/var/bacula/working`
18320
18321 # Check whether --with-working-dir was given.
18322 if test "${with_working_dir+set}" = set; then
18323   withval=$with_working_dir;
18324        if test "x$withval" != "xno" ; then
18325               working_dir=$withval
18326        fi
18327
18328
18329 fi
18330
18331
18332
18333
18334
18335 # ------------------------------------------
18336 # Where to place scriptdir (script files)
18337 # ------------------------------------------
18338 scriptdir=`eval echo ${sysconfdir}`
18339
18340 # Check whether --with-scriptdir was given.
18341 if test "${with_scriptdir+set}" = set; then
18342   withval=$with_scriptdir;
18343        if test "x$withval" != "xno" ; then
18344               scriptdir=$withval
18345        fi
18346
18347
18348 fi
18349
18350
18351
18352
18353
18354 # ------------------------------------------
18355 # Where to send dump email
18356 # ------------------------------------------
18357 dump_email=root@localhost
18358
18359 # Check whether --with-dump-email was given.
18360 if test "${with_dump_email+set}" = set; then
18361   withval=$with_dump_email;
18362        if test "x$withval" != "xno" ; then
18363               dump_email=$withval
18364        fi
18365
18366
18367 fi
18368
18369
18370
18371
18372 # ------------------------------------------
18373 # Where to send job email
18374 # ------------------------------------------
18375 job_email=root@localhost
18376
18377 # Check whether --with-job-email was given.
18378 if test "${with_job_email+set}" = set; then
18379   withval=$with_job_email;
18380        if test "x$withval" != "xno" ; then
18381               job_email=$withval
18382        fi
18383
18384
18385 fi
18386
18387
18388
18389
18390 # ------------------------------------------
18391 # Where to find smtp host
18392 # ------------------------------------------
18393 smtp_host=localhost
18394
18395 # Check whether --with-smtp_host was given.
18396 if test "${with_smtp_host+set}" = set; then
18397   withval=$with_smtp_host;
18398        if test "x$withval" != "xno" ; then
18399               smtp_host=$withval
18400        fi
18401
18402
18403 fi
18404
18405
18406
18407
18408
18409 # ------------------------------------
18410 # Where to place pid files
18411 # ------------------------------------
18412 piddir=/var/run
18413
18414 # Check whether --with-pid-dir was given.
18415 if test "${with_pid_dir+set}" = set; then
18416   withval=$with_pid_dir;
18417         if test "x$withval" != "xno" ; then
18418             piddir=$withval
18419         fi
18420
18421
18422 fi
18423
18424
18425 cat >>confdefs.h <<_ACEOF
18426 #define _PATH_BACULA_PIDDIR "$piddir"
18427 _ACEOF
18428
18429
18430
18431
18432 # ------------------------------------
18433 # Where to place subsys "lock file"
18434 # ------------------------------------
18435 ubsysdir=/var/run/subsys
18436 if test -d /var/run/subsys; then
18437    subsysdir=/var/run/subsys
18438 elif test -d /var/lock/subsys; then
18439    subsysdir=/var/lock/subsys
18440 else
18441    subsysdir=/var/run/subsys
18442 fi
18443
18444 # Check whether --with-subsys-dir was given.
18445 if test "${with_subsys_dir+set}" = set; then
18446   withval=$with_subsys_dir;
18447         if test "x$withval" != "xno" ; then
18448             subsysdir=$withval
18449         fi
18450
18451
18452 fi
18453
18454
18455
18456
18457
18458
18459 # ------------------------------------
18460 # Where to start assigning ports
18461 # ------------------------------------
18462 baseport=9101
18463
18464 # Check whether --with-baseport was given.
18465 if test "${with_baseport+set}" = set; then
18466   withval=$with_baseport;
18467         if test "x$withval" != "xno" ; then
18468              baseport=$withval
18469         fi
18470
18471
18472 fi
18473
18474
18475
18476 dir_port=`expr $baseport`
18477 fd_port=`expr $baseport + 1`
18478 sd_port=`expr $fd_port + 1`
18479
18480
18481
18482
18483
18484
18485 # ------------------------------------------
18486 # Generate passwords
18487 # ------------------------------------------
18488 dir_password=
18489
18490 # Check whether --with-dir-password was given.
18491 if test "${with_dir_password+set}" = set; then
18492   withval=$with_dir_password;
18493        if test "x$withval" != "xno" ; then
18494            dir_password=$withval
18495        fi
18496
18497
18498 fi
18499
18500
18501 if test "x$dir_password" = "x" ; then
18502    if test "x$OPENSSL" = "xnone" ; then
18503       key=`autoconf/randpass 33`
18504    else
18505       key=`openssl rand -base64 33`
18506    fi
18507    dir_password=$key
18508 fi
18509
18510 fd_password=
18511
18512 # Check whether --with-fd-password was given.
18513 if test "${with_fd_password+set}" = set; then
18514   withval=$with_fd_password;
18515        if test "x$withval" != "xno" ; then
18516            fd_password=$withval
18517        fi
18518
18519
18520 fi
18521
18522
18523 if test "x$fd_password" = "x" ; then
18524    if test "x$OPENSSL" = "xnone" ; then
18525       key=`autoconf/randpass 37`
18526    else
18527       key=`openssl rand -base64 33`
18528    fi
18529    fd_password=$key
18530 fi
18531
18532 sd_password=
18533
18534 # Check whether --with-sd-password was given.
18535 if test "${with_sd_password+set}" = set; then
18536   withval=$with_sd_password;
18537        if test "x$withval" != "xno" ; then
18538            sd_password=$withval
18539        fi
18540
18541
18542 fi
18543
18544
18545 if test "x$sd_password" = "x" ; then
18546    if test "x$OPENSSL" = "xnone" ; then
18547       key=`autoconf/randpass 41`
18548    else
18549       key=`openssl rand -base64 33`
18550    fi
18551    sd_password=$key
18552 fi
18553
18554 mon_dir_password=
18555
18556 # Check whether --with-mon-dir-password was given.
18557 if test "${with_mon_dir_password+set}" = set; then
18558   withval=$with_mon_dir_password;
18559        if test "x$withval" != "xno" ; then
18560            mon_dir_password=$withval
18561        fi
18562
18563
18564 fi
18565
18566
18567 if test "x$mon_dir_password" = "x" ; then
18568    if test "x$OPENSSL" = "xnone" ; then
18569       key=`autoconf/randpass 33`
18570    else
18571       key=`openssl rand -base64 33`
18572    fi
18573    mon_dir_password=$key
18574 fi
18575
18576 mon_fd_password=
18577
18578 # Check whether --with-mon-fd-password was given.
18579 if test "${with_mon_fd_password+set}" = set; then
18580   withval=$with_mon_fd_password;
18581        if test "x$withval" != "xno" ; then
18582            mon_fd_password=$withval
18583        fi
18584
18585
18586 fi
18587
18588
18589 if test "x$mon_fd_password" = "x" ; then
18590    if test "x$OPENSSL" = "xnone" ; then
18591       key=`autoconf/randpass 37`
18592    else
18593       key=`openssl rand -base64 33`
18594    fi
18595    mon_fd_password=$key
18596 fi
18597
18598 mon_sd_password=
18599
18600 # Check whether --with-mon-sd-password was given.
18601 if test "${with_mon_sd_password+set}" = set; then
18602   withval=$with_mon_sd_password;
18603        if test "x$withval" != "xno" ; then
18604            mon_sd_password=$withval
18605        fi
18606
18607
18608 fi
18609
18610
18611 if test "x$mon_sd_password" = "x" ; then
18612    if test "x$OPENSSL" = "xnone" ; then
18613       key=`autoconf/randpass 41`
18614    else
18615       key=`openssl rand -base64 33`
18616    fi
18617    mon_sd_password=$key
18618 fi
18619
18620
18621
18622
18623
18624
18625
18626
18627 #
18628 # Pickup any database name
18629 #
18630 db_name=bacula
18631
18632 # Check whether --with-db_name was given.
18633 if test "${with_db_name+set}" = set; then
18634   withval=$with_db_name;
18635         if test "x$withval" != "x" ; then
18636              db_name=$withval
18637         fi
18638
18639
18640 fi
18641
18642
18643
18644 db_user=bacula
18645
18646 # Check whether --with-db_user was given.
18647 if test "${with_db_user+set}" = set; then
18648   withval=$with_db_user;
18649         if test "x$withval" != "x" ; then
18650              db_user=$withval
18651         fi
18652
18653
18654 fi
18655
18656
18657
18658
18659 #
18660 # Handle users and groups for each daemon
18661 #
18662 dir_user=
18663
18664 # Check whether --with-dir_user was given.
18665 if test "${with_dir_user+set}" = set; then
18666   withval=$with_dir_user;
18667         if test "x$withval" != "x" ; then
18668              dir_user=$withval
18669         fi
18670
18671
18672 fi
18673
18674
18675 dir_group=
18676
18677 # Check whether --with-dir_group was given.
18678 if test "${with_dir_group+set}" = set; then
18679   withval=$with_dir_group;
18680         if test "x$withval" != "x" ; then
18681              dir_group=$withval
18682         fi
18683
18684
18685 fi
18686
18687
18688 sd_user=
18689
18690 # Check whether --with-sd_user was given.
18691 if test "${with_sd_user+set}" = set; then
18692   withval=$with_sd_user;
18693         if test "x$withval" != "x" ; then
18694              sd_user=$withval
18695         fi
18696
18697
18698 fi
18699
18700
18701 sd_group=
18702
18703 # Check whether --with-sd_group was given.
18704 if test "${with_sd_group+set}" = set; then
18705   withval=$with_sd_group;
18706         if test "x$withval" != "x" ; then
18707              sd_group=$withval
18708         fi
18709
18710
18711 fi
18712
18713
18714 fd_user=
18715
18716 # Check whether --with-fd_user was given.
18717 if test "${with_fd_user+set}" = set; then
18718   withval=$with_fd_user;
18719         if test "x$withval" != "x" ; then
18720              fd_user=$withval
18721         fi
18722
18723
18724 fi
18725
18726
18727 fd_group=
18728
18729 # Check whether --with-fd_group was given.
18730 if test "${with_fd_group+set}" = set; then
18731   withval=$with_fd_group;
18732         if test "x$withval" != "x" ; then
18733              fd_group=$withval
18734         fi
18735
18736
18737 fi
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747 #
18748 # allow setting default executable permissions
18749 #
18750 SBINPERM=0754
18751
18752 # Check whether --with-sbin-perm was given.
18753 if test "${with_sbin_perm+set}" = set; then
18754   withval=$with_sbin_perm;
18755         if test "x$withval" != "x" ; then
18756             SBINPERM=$withval
18757         fi
18758
18759
18760 fi
18761
18762
18763
18764
18765 # ------------------------------------------------
18766 # Bacula check for various SQL database engines
18767 # ------------------------------------------------
18768 SQL_LIB=
18769
18770 db_found=no
18771 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18772 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18773
18774 # Check whether --with-postgresql was given.
18775 if test "${with_postgresql+set}" = set; then
18776   withval=$with_postgresql;
18777   if test "$withval" != "no"; then
18778       if test "$db_found" = "yes"; then
18779           { echo "$as_me:$LINENO: result: error" >&5
18780 echo "${ECHO_T}error" >&6; }
18781           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18782 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18783    { (exit 1); exit 1; }; };
18784       fi
18785       if test "$withval" = "yes"; then
18786           PG_CONFIG=`which pg_config`
18787           if test -n "$PG_CONFIG";then
18788               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18789               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18790               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18791           elif test -f /usr/local/include/libpq-fe.h; then
18792               POSTGRESQL_INCDIR=/usr/local/include
18793               if test -d /usr/local/lib64; then
18794                  POSTGRESQL_LIBDIR=/usr/local/lib64
18795               else
18796                  POSTGRESQL_LIBDIR=/usr/local/lib
18797               fi
18798               POSTGRESQL_BINDIR=/usr/local/bin
18799           elif test -f /usr/include/libpq-fe.h; then
18800               POSTGRESQL_INCDIR=/usr/include
18801               if test -d /usr/lib64; then
18802                  POSTGRESQL_LIBDIR=/usr/lib64
18803               else
18804                  POSTGRESQL_LIBDIR=/usr/lib
18805               fi
18806               POSTGRESQL_BINDIR=/usr/bin
18807           elif test -f /usr/include/pgsql/libpq-fe.h; then
18808               POSTGRESQL_INCDIR=/usr/include/pgsql
18809               if test -d /usr/lib64/pgsql; then
18810                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18811               else
18812                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18813               fi
18814               POSTGRESQL_BINDIR=/usr/bin
18815           elif test -f /usr/include/postgresql/libpq-fe.h; then
18816               POSTGRESQL_INCDIR=/usr/include/postgresql
18817               if test -d /usr/lib64/postgresql; then
18818                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18819               else
18820                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18821               fi
18822               POSTGRESQL_BINDIR=/usr/bin
18823           else
18824               { echo "$as_me:$LINENO: result: no" >&5
18825 echo "${ECHO_T}no" >&6; }
18826               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18827 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18828    { (exit 1); exit 1; }; }
18829           fi
18830       elif test -f $withval/include/libpq-fe.h; then
18831           POSTGRESQL_INCDIR=$withval/include
18832           POSTGRESQL_LIBDIR=$withval/lib
18833           POSTGRESQL_BINDIR=$withval/bin
18834       elif test -f $withval/include/postgresql/libpq-fe.h; then
18835           POSTGRESQL_INCDIR=$withval/include/postgresql
18836      if test -d $withval/lib64; then
18837          POSTGRESQL_LIBDIR=$withval/lib64
18838      else
18839          POSTGRESQL_LIBDIR=$withval/lib
18840      fi
18841           POSTGRESQL_BINDIR=$withval/bin
18842       else
18843           { echo "$as_me:$LINENO: result: no" >&5
18844 echo "${ECHO_T}no" >&6; }
18845           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18846 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18847    { (exit 1); exit 1; }; }
18848       fi
18849       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18850       { echo "$as_me:$LINENO: checking for crypt" >&5
18851 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18852 if test "${ac_cv_func_crypt+set}" = set; then
18853   echo $ECHO_N "(cached) $ECHO_C" >&6
18854 else
18855   cat >conftest.$ac_ext <<_ACEOF
18856 /* confdefs.h.  */
18857 _ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h.  */
18861 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18863 #define crypt innocuous_crypt
18864
18865 /* System header to define __stub macros and hopefully few prototypes,
18866     which can conflict with char crypt (); below.
18867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18868     <limits.h> exists even on freestanding compilers.  */
18869
18870 #ifdef __STDC__
18871 # include <limits.h>
18872 #else
18873 # include <assert.h>
18874 #endif
18875
18876 #undef crypt
18877
18878 /* Override any GCC internal prototype to avoid an error.
18879    Use char because int might match the return type of a GCC
18880    builtin and then its argument prototype would still apply.  */
18881 #ifdef __cplusplus
18882 extern "C"
18883 #endif
18884 char crypt ();
18885 /* The GNU C library defines this for functions which it implements
18886     to always fail with ENOSYS.  Some functions are actually named
18887     something starting with __ and the normal name is an alias.  */
18888 #if defined __stub_crypt || defined __stub___crypt
18889 choke me
18890 #endif
18891
18892 int
18893 main ()
18894 {
18895 return crypt ();
18896   ;
18897   return 0;
18898 }
18899 _ACEOF
18900 rm -f conftest.$ac_objext conftest$ac_exeext
18901 if { (ac_try="$ac_link"
18902 case "(($ac_try" in
18903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904   *) ac_try_echo=$ac_try;;
18905 esac
18906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18907   (eval "$ac_link") 2>conftest.er1
18908   ac_status=$?
18909   grep -v '^ *+' conftest.er1 >conftest.err
18910   rm -f conftest.er1
18911   cat conftest.err >&5
18912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913   (exit $ac_status); } &&
18914          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18915   { (case "(($ac_try" in
18916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18917   *) ac_try_echo=$ac_try;;
18918 esac
18919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18920   (eval "$ac_try") 2>&5
18921   ac_status=$?
18922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923   (exit $ac_status); }; } &&
18924          { ac_try='test -s conftest$ac_exeext'
18925   { (case "(($ac_try" in
18926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18927   *) ac_try_echo=$ac_try;;
18928 esac
18929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18930   (eval "$ac_try") 2>&5
18931   ac_status=$?
18932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933   (exit $ac_status); }; }; then
18934   ac_cv_func_crypt=yes
18935 else
18936   echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18938
18939         ac_cv_func_crypt=no
18940 fi
18941
18942 rm -f core conftest.err conftest.$ac_objext \
18943       conftest$ac_exeext conftest.$ac_ext
18944 fi
18945 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18946 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18947 if test $ac_cv_func_crypt = yes; then
18948   :
18949 else
18950   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18951 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18952 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18953   echo $ECHO_N "(cached) $ECHO_C" >&6
18954 else
18955   ac_check_lib_save_LIBS=$LIBS
18956 LIBS="-lcrypt  $LIBS"
18957 cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h.  */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h.  */
18963
18964 /* Override any GCC internal prototype to avoid an error.
18965    Use char because int might match the return type of a GCC
18966    builtin and then its argument prototype would still apply.  */
18967 #ifdef __cplusplus
18968 extern "C"
18969 #endif
18970 char crypt ();
18971 int
18972 main ()
18973 {
18974 return crypt ();
18975   ;
18976   return 0;
18977 }
18978 _ACEOF
18979 rm -f conftest.$ac_objext conftest$ac_exeext
18980 if { (ac_try="$ac_link"
18981 case "(($ac_try" in
18982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18983   *) ac_try_echo=$ac_try;;
18984 esac
18985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18986   (eval "$ac_link") 2>conftest.er1
18987   ac_status=$?
18988   grep -v '^ *+' conftest.er1 >conftest.err
18989   rm -f conftest.er1
18990   cat conftest.err >&5
18991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18992   (exit $ac_status); } &&
18993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18994   { (case "(($ac_try" in
18995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996   *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999   (eval "$ac_try") 2>&5
19000   ac_status=$?
19001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002   (exit $ac_status); }; } &&
19003          { ac_try='test -s conftest$ac_exeext'
19004   { (case "(($ac_try" in
19005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19006   *) ac_try_echo=$ac_try;;
19007 esac
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009   (eval "$ac_try") 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); }; }; then
19013   ac_cv_lib_crypt_crypt=yes
19014 else
19015   echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.$ac_ext >&5
19017
19018         ac_cv_lib_crypt_crypt=no
19019 fi
19020
19021 rm -f core conftest.err conftest.$ac_objext \
19022       conftest$ac_exeext conftest.$ac_ext
19023 LIBS=$ac_check_lib_save_LIBS
19024 fi
19025 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19026 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19027 if test $ac_cv_lib_crypt_crypt = yes; then
19028   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19029 fi
19030
19031 fi
19032
19033       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19034       SQL_LFLAGS=$POSTGRESQL_LFLAGS
19035       SQL_BINDIR=$POSTGRESQL_BINDIR
19036       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
19037
19038       cat >>confdefs.h <<\_ACEOF
19039 #define HAVE_POSTGRESQL 1
19040 _ACEOF
19041
19042       { echo "$as_me:$LINENO: result: yes" >&5
19043 echo "${ECHO_T}yes" >&6; }
19044       db_found=yes
19045       support_postgresql=yes
19046       db_type=PostgreSQL
19047       DB_TYPE=postgresql
19048   else
19049       { echo "$as_me:$LINENO: result: no" >&5
19050 echo "${ECHO_T}no" >&6; }
19051   fi
19052
19053 else
19054
19055   { echo "$as_me:$LINENO: result: no" >&5
19056 echo "${ECHO_T}no" >&6; }
19057
19058 fi
19059
19060
19061
19062
19063
19064
19065
19066
19067 db_found=no
19068 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19069 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19070
19071 # Check whether --with-mysql was given.
19072 if test "${with_mysql+set}" = set; then
19073   withval=$with_mysql;
19074   if test "$withval" != "no"; then
19075         if test "$withval" = "yes"; then
19076            if test -f /usr/local/mysql/include/mysql/mysql.h; then
19077                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
19078                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19079                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19080                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19081                    else
19082                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19083                    fi
19084                    MYSQL_BINDIR=/usr/local/mysql/bin
19085            elif test -f /usr/include/mysql/mysql.h; then
19086                    MYSQL_INCDIR=/usr/include/mysql
19087                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19088                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19089                            MYSQL_LIBDIR=/usr/lib64/mysql
19090                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19091                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19092                            MYSQL_LIBDIR=/usr/lib/mysql
19093                    else
19094                            MYSQL_LIBDIR=/usr/lib
19095                    fi
19096                    MYSQL_BINDIR=/usr/bin
19097            elif test -f /usr/include/mysql.h; then
19098                    MYSQL_INCDIR=/usr/include
19099                    if test -f /usr/lib64/libmysqlclient_r.a \
19100                         -o -f /usr/lib64/libmysqlclient_r.so; then
19101                            MYSQL_LIBDIR=/usr/lib64
19102                    else
19103                            MYSQL_LIBDIR=/usr/lib
19104                    fi
19105                    MYSQL_BINDIR=/usr/bin
19106            elif test -f /usr/local/include/mysql/mysql.h; then
19107                    MYSQL_INCDIR=/usr/local/include/mysql
19108                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19109                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19110                            MYSQL_LIBDIR=/usr/local/lib64/mysql
19111                    else
19112                            MYSQL_LIBDIR=/usr/local/lib/mysql
19113                    fi
19114                    MYSQL_BINDIR=/usr/local/bin
19115            elif test -f /usr/local/include/mysql.h; then
19116                    MYSQL_INCDIR=/usr/local/include
19117                    if test -f /usr/local/lib64/libmysqlclient_r.a \
19118                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
19119                            MYSQL_LIBDIR=/usr/local/lib64
19120                    else
19121                            MYSQL_LIBDIR=/usr/local/lib
19122                    fi
19123                    MYSQL_BINDIR=/usr/local/bin
19124            else
19125               { echo "$as_me:$LINENO: result: no" >&5
19126 echo "${ECHO_T}no" >&6; }
19127               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19128 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19129    { (exit 1); exit 1; }; }
19130            fi
19131         else
19132            if test -f $withval/include/mysql/mysql.h; then
19133               MYSQL_INCDIR=$withval/include/mysql
19134               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19135                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19136                  MYSQL_LIBDIR=$withval/lib64/mysql
19137               else
19138                  MYSQL_LIBDIR=$withval/lib/mysql
19139                  # Solaris ...
19140                  if test -f $withval/lib/libmysqlclient_r.so; then
19141                     MYSQL_LIBDIR=$withval/lib
19142                  fi
19143               fi
19144               MYSQL_BINDIR=$withval/bin
19145            elif test -f $withval/include/mysql.h; then
19146               MYSQL_INCDIR=$withval/include
19147               if test -f $withval/lib64/libmysqlclient_r.a \
19148                    -o -f $withval/lib64/libmysqlclient_r.so; then
19149                  MYSQL_LIBDIR=$withval/lib64
19150               else
19151                  MYSQL_LIBDIR=$withval/lib
19152               fi
19153               MYSQL_BINDIR=$withval/bin
19154            else
19155               { echo "$as_me:$LINENO: result: no" >&5
19156 echo "${ECHO_T}no" >&6; }
19157               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19158 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19159    { (exit 1); exit 1; }; }
19160            fi
19161         fi
19162     SQL_INCLUDE=-I$MYSQL_INCDIR
19163     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19164          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19165        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19166        cat >>confdefs.h <<\_ACEOF
19167 #define HAVE_THREAD_SAFE_MYSQL 1
19168 _ACEOF
19169
19170     fi
19171     SQL_BINDIR=$MYSQL_BINDIR
19172     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
19173
19174     cat >>confdefs.h <<\_ACEOF
19175 #define HAVE_MYSQL 1
19176 _ACEOF
19177
19178     { echo "$as_me:$LINENO: result: yes" >&5
19179 echo "${ECHO_T}yes" >&6; }
19180     db_found=yes
19181     support_mysql=yes
19182     db_type=MySQL
19183     DB_TYPE=mysql
19184
19185   else
19186         { echo "$as_me:$LINENO: result: no" >&5
19187 echo "${ECHO_T}no" >&6; }
19188   fi
19189
19190
19191 fi
19192
19193
19194
19195 # Check whether --with-embedded-mysql was given.
19196 if test "${with_embedded_mysql+set}" = set; then
19197   withval=$with_embedded_mysql;
19198   if test "$withval" != "no"; then
19199         if test "$withval" = "yes"; then
19200                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19201                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19202                         if test -d /usr/local/mysql/lib64/mysql; then
19203                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19204                         else
19205                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19206                         fi
19207                         MYSQL_BINDIR=/usr/local/mysql/bin
19208                 elif test -f /usr/include/mysql/mysql.h; then
19209                         MYSQL_INCDIR=/usr/include/mysql
19210                         if test -d /usr/lib64/mysql; then
19211                                 MYSQL_LIBDIR=/usr/lib64/mysql
19212                         else
19213                                 MYSQL_LIBDIR=/usr/lib/mysql
19214                         fi
19215                         MYSQL_BINDIR=/usr/bin
19216                 elif test -f /usr/include/mysql.h; then
19217                         MYSQL_INCDIR=/usr/include
19218                         if test -d /usr/lib64; then
19219                                 MYSQL_LIBDIR=/usr/lib64
19220                         else
19221                                 MYSQL_LIBDIR=/usr/lib
19222                         fi
19223                         MYSQL_BINDIR=/usr/bin
19224                 elif test -f /usr/local/include/mysql/mysql.h; then
19225                         MYSQL_INCDIR=/usr/local/include/mysql
19226                         if test -d /usr/local/lib64/mysql; then
19227                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19228                         else
19229                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19230                         fi
19231                         MYSQL_BINDIR=/usr/local/bin
19232                 elif test -f /usr/local/include/mysql.h; then
19233                         MYSQL_INCDIR=/usr/local/include
19234                         if test -d /usr/local/lib64; then
19235                                 MYSQL_LIBDIR=/usr/local/lib64
19236                         else
19237                                 MYSQL_LIBDIR=/usr/local/lib
19238                         fi
19239                         MYSQL_BINDIR=/usr/local/bin
19240                 else
19241                    { echo "$as_me:$LINENO: result: no" >&5
19242 echo "${ECHO_T}no" >&6; }
19243                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19244 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19245    { (exit 1); exit 1; }; }
19246                 fi
19247         else
19248                 if test -f $withval/include/mysql/mysql.h; then
19249                         MYSQL_INCDIR=$withval/include/mysql
19250                         if test -d $withval/lib64/mysql; then
19251                                 MYSQL_LIBDIR=$withval/lib64/mysql
19252                         else
19253                                 MYSQL_LIBDIR=$withval/lib/mysql
19254                         fi
19255                         MYSQL_BINDIR=$withval/bin
19256                 elif test -f $withval/include/mysql.h; then
19257                         MYSQL_INCDIR=$withval/include
19258                         if test -d $withval/lib64; then
19259                                 MYSQL_LIBDIR=$withval/lib64
19260                         else
19261                                 MYSQL_LIBDIR=$withval/lib
19262                         fi
19263                         MYSQL_BINDIR=$withval/bin
19264                 else
19265                    { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19267                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19268 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19269    { (exit 1); exit 1; }; }
19270                 fi
19271         fi
19272     SQL_INCLUDE=-I$MYSQL_INCDIR
19273     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19274     SQL_BINDIR=$MYSQL_BINDIR
19275     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
19276
19277     cat >>confdefs.h <<\_ACEOF
19278 #define HAVE_MYSQL 1
19279 _ACEOF
19280
19281     cat >>confdefs.h <<\_ACEOF
19282 #define HAVE_EMBEDDED_MYSQL 1
19283 _ACEOF
19284
19285     { echo "$as_me:$LINENO: result: yes" >&5
19286 echo "${ECHO_T}yes" >&6; }
19287     db_found=yes
19288     support_mysql=yes
19289     db_type=MySQL
19290     DB_TYPE=mysql
19291
19292   else
19293         { echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6; }
19295   fi
19296
19297
19298 fi
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309 db_found=no
19310 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19311 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19312
19313 # Check whether --with-sqlite3 was given.
19314 if test "${with_sqlite3+set}" = set; then
19315   withval=$with_sqlite3;
19316   if test "$withval" != "no"; then
19317      if test "$withval" = "yes"; then
19318         if test -f /usr/local/include/sqlite3.h; then
19319            SQLITE_INCDIR=/usr/local/include
19320            if test -d /usr/local/lib64; then
19321               SQLITE_LIBDIR=/usr/local/lib64
19322            else
19323               SQLITE_LIBDIR=/usr/local/lib
19324            fi
19325            SQLITE_BINDIR=/usr/local/bin
19326         elif test -f /usr/include/sqlite3.h; then
19327            SQLITE_INCDIR=/usr/include
19328            if test -d /usr/lib64; then
19329               SQLITE_LIBDIR=/usr/lib64
19330            else
19331               SQLITE_LIBDIR=/usr/lib
19332            fi
19333            SQLITE_BINDIR=/usr/bin
19334         elif test -f $prefix/include/sqlite3.h; then
19335            SQLITE_INCDIR=$prefix/include
19336            if test -d $prefix/lib64; then
19337               SQLITE_LIBDIR=$prefix/lib64
19338            else
19339               SQLITE_LIBDIR=$prefix/lib
19340            fi
19341            SQLITE_BINDIR=$prefix/bin
19342         else
19343            { echo "$as_me:$LINENO: result: no" >&5
19344 echo "${ECHO_T}no" >&6; }
19345            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19346 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19347    { (exit 1); exit 1; }; }
19348         fi
19349      else
19350         if test -f $withval/sqlite3.h; then
19351            SQLITE_INCDIR=$withval
19352            SQLITE_LIBDIR=$withval
19353            SQLITE_BINDIR=$withval
19354         elif test -f $withval/include/sqlite3.h; then
19355            SQLITE_INCDIR=$withval/include
19356            if test -d $withval/lib64; then
19357               SQLITE_LIBDIR=$withval/lib64
19358            else
19359               SQLITE_LIBDIR=$withval/lib
19360            fi
19361            SQLITE_BINDIR=$withval/bin
19362         else
19363            { echo "$as_me:$LINENO: result: no" >&5
19364 echo "${ECHO_T}no" >&6; }
19365            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19366 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19367    { (exit 1); exit 1; }; }
19368         fi
19369      fi
19370      SQL_INCLUDE=-I$SQLITE_INCDIR
19371      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19372      SQL_BINDIR=$SQLITE_BINDIR
19373      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
19374
19375      cat >>confdefs.h <<\_ACEOF
19376 #define HAVE_SQLITE3 1
19377 _ACEOF
19378
19379      { echo "$as_me:$LINENO: result: yes" >&5
19380 echo "${ECHO_T}yes" >&6; }
19381      db_found=yes
19382      support_sqlite3=yes
19383      db_type=SQLite3
19384      DB_TYPE=sqlite3
19385
19386   else
19387      { echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6; }
19389   fi
19390
19391 else
19392
19393   { echo "$as_me:$LINENO: result: no" >&5
19394 echo "${ECHO_T}no" >&6; }
19395
19396 fi
19397
19398
19399
19400
19401
19402
19403
19404
19405 db_found=no
19406 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19407 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19408
19409 # Check whether --with-sqlite was given.
19410 if test "${with_sqlite+set}" = set; then
19411   withval=$with_sqlite;
19412   if test "$withval" != "no"; then
19413      if test "$withval" = "yes"; then
19414         if test -f /usr/local/include/sqlite.h; then
19415            SQLITE_INCDIR=/usr/local/include
19416            if test -d /usr/local/lib64; then
19417               SQLITE_LIBDIR=/usr/local/lib64
19418            else
19419               SQLITE_LIBDIR=/usr/local/lib
19420            fi
19421            SQLITE_BINDIR=/usr/local/bin
19422         elif test -f /usr/include/sqlite.h; then
19423            SQLITE_INCDIR=/usr/include
19424            if test -d /usr/lib64; then
19425               SQLITE_LIBDIR=/usr/lib64
19426            else
19427               SQLITE_LIBDIR=/usr/lib
19428            fi
19429            SQLITE_BINDIR=/usr/bin
19430         elif test -f $prefix/include/sqlite.h; then
19431            SQLITE_INCDIR=$prefix/include
19432            if test -d $prefix/lib64; then
19433               SQLITE_LIBDIR=$prefix/lib64
19434            else
19435               SQLITE_LIBDIR=$prefix/lib
19436            fi
19437            SQLITE_BINDIR=$prefix/bin
19438         else
19439            { echo "$as_me:$LINENO: result: no" >&5
19440 echo "${ECHO_T}no" >&6; }
19441            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19442 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19443    { (exit 1); exit 1; }; }
19444         fi
19445      else
19446         if test -f $withval/sqlite.h; then
19447            SQLITE_INCDIR=$withval
19448            SQLITE_LIBDIR=$withval
19449            SQLITE_BINDIR=$withval
19450         elif test -f $withval/include/sqlite.h; then
19451            SQLITE_INCDIR=$withval/include
19452            if test -d $withval/lib64; then
19453               SQLITE_LIBDIR=$withval/lib64
19454            else
19455               SQLITE_LIBDIR=$withval/lib
19456            fi
19457            SQLITE_BINDIR=$withval/bin
19458         else
19459            { echo "$as_me:$LINENO: result: no" >&5
19460 echo "${ECHO_T}no" >&6; }
19461            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19462 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19463    { (exit 1); exit 1; }; }
19464         fi
19465      fi
19466      SQL_INCLUDE=-I$SQLITE_INCDIR
19467      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19468      SQL_BINDIR=$SQLITE_BINDIR
19469      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
19470
19471      cat >>confdefs.h <<\_ACEOF
19472 #define HAVE_SQLITE 1
19473 _ACEOF
19474
19475      { echo "$as_me:$LINENO: result: yes" >&5
19476 echo "${ECHO_T}yes" >&6; }
19477      db_found=yes
19478      support_sqlite=yes
19479      db_type=SQLite
19480      DB_TYPE=sqlite
19481
19482   else
19483      { echo "$as_me:$LINENO: result: no" >&5
19484 echo "${ECHO_T}no" >&6; }
19485   fi
19486
19487 else
19488
19489   { echo "$as_me:$LINENO: result: no" >&5
19490 echo "${ECHO_T}no" >&6; }
19491
19492 fi
19493
19494
19495
19496
19497
19498
19499
19500
19501
19502
19503 # -------------------------------------------
19504 # enable batch attribute DB insert (default on)
19505 # -------------------------------------------
19506 support_batch_insert=no
19507 A=`nm $SQL_LIB | grep pthread_mutex_lock`
19508 pkg=$?
19509 if test $pkg = 0; then
19510    support_batch_insert=yes
19511    # Check whether --enable-batch-insert was given.
19512 if test "${enable_batch_insert+set}" = set; then
19513   enableval=$enable_batch_insert; if test x$enableval = xno; then
19514        support_batch_insert=no
19515       else
19516
19517 cat >>confdefs.h <<\_ACEOF
19518 #define HAVE_BATCH_INSERT 1
19519 _ACEOF
19520
19521        support_batch_insert=yes
19522      fi
19523 fi
19524
19525 fi
19526
19527
19528
19529
19530 cat >>confdefs.h <<\_ACEOF
19531 #define PROTOTYPES 1
19532 _ACEOF
19533
19534
19535 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19536     if test -z "$CCOPTS"; then
19537         CCOPTS='-g -O2 -Wall'
19538     fi
19539     CFLAGS="$CCOPTS"
19540 fi
19541
19542
19543
19544
19545 largefile_support="no"
19546
19547    # Check whether --enable-largefile was given.
19548 if test "${enable_largefile+set}" = set; then
19549   enableval=$enable_largefile;
19550 fi
19551
19552    if test "$enable_largefile" != no; then
19553      if test -n "$ac_tool_prefix"; then
19554   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19555 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19558 if test "${ac_cv_prog_GETCONF+set}" = set; then
19559   echo $ECHO_N "(cached) $ECHO_C" >&6
19560 else
19561   if test -n "$GETCONF"; then
19562   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19563 else
19564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19565 for as_dir in $PATH
19566 do
19567   IFS=$as_save_IFS
19568   test -z "$as_dir" && as_dir=.
19569   for ac_exec_ext in '' $ac_executable_extensions; do
19570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19571     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19573     break 2
19574   fi
19575 done
19576 done
19577 IFS=$as_save_IFS
19578
19579 fi
19580 fi
19581 GETCONF=$ac_cv_prog_GETCONF
19582 if test -n "$GETCONF"; then
19583   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19584 echo "${ECHO_T}$GETCONF" >&6; }
19585 else
19586   { echo "$as_me:$LINENO: result: no" >&5
19587 echo "${ECHO_T}no" >&6; }
19588 fi
19589
19590
19591 fi
19592 if test -z "$ac_cv_prog_GETCONF"; then
19593   ac_ct_GETCONF=$GETCONF
19594   # Extract the first word of "getconf", so it can be a program name with args.
19595 set dummy getconf; ac_word=$2
19596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19598 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19599   echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601   if test -n "$ac_ct_GETCONF"; then
19602   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19603 else
19604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19605 for as_dir in $PATH
19606 do
19607   IFS=$as_save_IFS
19608   test -z "$as_dir" && as_dir=.
19609   for ac_exec_ext in '' $ac_executable_extensions; do
19610   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19611     ac_cv_prog_ac_ct_GETCONF="getconf"
19612     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19613     break 2
19614   fi
19615 done
19616 done
19617 IFS=$as_save_IFS
19618
19619 fi
19620 fi
19621 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19622 if test -n "$ac_ct_GETCONF"; then
19623   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19624 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19625 else
19626   { echo "$as_me:$LINENO: result: no" >&5
19627 echo "${ECHO_T}no" >&6; }
19628 fi
19629
19630   if test "x$ac_ct_GETCONF" = x; then
19631     GETCONF=""
19632   else
19633     case $cross_compiling:$ac_tool_warned in
19634 yes:)
19635 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19636 whose name does not start with the host triplet.  If you think this
19637 configuration is useful to you, please write to autoconf@gnu.org." >&5
19638 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19639 whose name does not start with the host triplet.  If you think this
19640 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19641 ac_tool_warned=yes ;;
19642 esac
19643     GETCONF=$ac_ct_GETCONF
19644   fi
19645 else
19646   GETCONF="$ac_cv_prog_GETCONF"
19647 fi
19648
19649      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19650 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19651 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19652   echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19655         ac_cv_sys_largefile_CFLAGS=no
19656         case "$host_os" in
19657            # IRIX 6.2 and later require cc -n32.
19658            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19659              if test "$GCC" != yes; then
19660                ac_cv_sys_largefile_CFLAGS=-n32
19661              fi
19662              ac_save_CC="$CC"
19663              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19664              cat >conftest.$ac_ext <<_ACEOF
19665 /* confdefs.h.  */
19666 _ACEOF
19667 cat confdefs.h >>conftest.$ac_ext
19668 cat >>conftest.$ac_ext <<_ACEOF
19669 /* end confdefs.h.  */
19670
19671 int
19672 main ()
19673 {
19674
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 rm -f conftest.$ac_objext conftest$ac_exeext
19680 if { (ac_try="$ac_link"
19681 case "(($ac_try" in
19682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683   *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686   (eval "$ac_link") 2>conftest.er1
19687   ac_status=$?
19688   grep -v '^ *+' conftest.er1 >conftest.err
19689   rm -f conftest.er1
19690   cat conftest.err >&5
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); } &&
19693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19694   { (case "(($ac_try" in
19695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19696   *) ac_try_echo=$ac_try;;
19697 esac
19698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19699   (eval "$ac_try") 2>&5
19700   ac_status=$?
19701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702   (exit $ac_status); }; } &&
19703          { ac_try='test -s conftest$ac_exeext'
19704   { (case "(($ac_try" in
19705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706   *) ac_try_echo=$ac_try;;
19707 esac
19708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19709   (eval "$ac_try") 2>&5
19710   ac_status=$?
19711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712   (exit $ac_status); }; }; then
19713   :
19714 else
19715   echo "$as_me: failed program was:" >&5
19716 sed 's/^/| /' conftest.$ac_ext >&5
19717
19718         ac_cv_sys_largefile_CFLAGS=no
19719 fi
19720
19721 rm -f core conftest.err conftest.$ac_objext \
19722       conftest$ac_exeext conftest.$ac_ext
19723              CC="$ac_save_CC"
19724            esac
19725       }
19726 fi
19727 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19728 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19729      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19730 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19731 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19732   echo $ECHO_N "(cached) $ECHO_C" >&6
19733 else
19734   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19735         ac_cv_sys_largefile_LDFLAGS=no
19736
19737       }
19738 fi
19739 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19740 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19741      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19742 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19743 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19744   echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19747         ac_cv_sys_largefile_LIBS=no
19748
19749       }
19750 fi
19751 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19752 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19753
19754      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19755        case "$ac_flag" in
19756        no) ;;
19757        -D_FILE_OFFSET_BITS=*) ;;
19758        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19759        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19760        -D?* | -I?*)
19761          case "$ac_flag" in
19762    no) ;;
19763    ?*)
19764      case "$CPPFLAGS" in
19765      '') CPPFLAGS="$ac_flag" ;;
19766      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19767      esac ;;
19768    esac ;;
19769        *)
19770          case "$ac_flag" in
19771    no) ;;
19772    ?*)
19773      case "$CFLAGS" in
19774      '') CFLAGS="$ac_flag" ;;
19775      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19776      esac ;;
19777    esac ;;
19778        esac
19779      done
19780      case "$ac_cv_sys_largefile_LDFLAGS" in
19781    no) ;;
19782    ?*)
19783      case "$LDFLAGS" in
19784      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19785      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19786      esac ;;
19787    esac
19788      case "$ac_cv_sys_largefile_LIBS" in
19789    no) ;;
19790    ?*)
19791      case "$LIBS" in
19792      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19793      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19794      esac ;;
19795    esac
19796      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19797 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19798 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19799   echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801   ac_cv_sys_file_offset_bits=no
19802       ac_cv_sys_file_offset_bits=64
19803       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19804         case "$ac_flag" in
19805         -D_FILE_OFFSET_BITS)
19806           ac_cv_sys_file_offset_bits=1 ;;
19807         -D_FILE_OFFSET_BITS=*)
19808           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19809         esac
19810       done
19811
19812 fi
19813 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19814 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19815    if test "$ac_cv_sys_file_offset_bits" != no; then
19816
19817 cat >>confdefs.h <<_ACEOF
19818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19819 _ACEOF
19820
19821    fi
19822      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19823 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19824 if test "${ac_cv_sys_largefile_source+set}" = set; then
19825   echo $ECHO_N "(cached) $ECHO_C" >&6
19826 else
19827   ac_cv_sys_largefile_source=no
19828       ac_cv_sys_largefile_source=1
19829       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19830         case "$ac_flag" in
19831         -D_LARGEFILE_SOURCE)
19832           ac_cv_sys_largefile_source=1 ;;
19833         -D_LARGEFILE_SOURCE=*)
19834           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19835         esac
19836       done
19837
19838 fi
19839 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19840 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19841    if test "$ac_cv_sys_largefile_source" != no; then
19842
19843 cat >>confdefs.h <<_ACEOF
19844 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19845 _ACEOF
19846
19847    fi
19848      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19849 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19850 if test "${ac_cv_sys_large_files+set}" = set; then
19851   echo $ECHO_N "(cached) $ECHO_C" >&6
19852 else
19853   ac_cv_sys_large_files=no
19854       ac_cv_sys_large_files=1
19855       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19856         case "$ac_flag" in
19857         -D_LARGE_FILES)
19858           ac_cv_sys_large_files=1 ;;
19859         -D_LARGE_FILES=*)
19860           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19861         esac
19862       done
19863
19864 fi
19865 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19866 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19867    if test "$ac_cv_sys_large_files" != no; then
19868
19869 cat >>confdefs.h <<_ACEOF
19870 #define _LARGE_FILES $ac_cv_sys_large_files
19871 _ACEOF
19872
19873    fi
19874    fi
19875
19876
19877
19878 { echo "$as_me:$LINENO: checking for X" >&5
19879 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19880
19881
19882 # Check whether --with-x was given.
19883 if test "${with_x+set}" = set; then
19884   withval=$with_x;
19885 fi
19886
19887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19888 if test "x$with_x" = xno; then
19889   # The user explicitly disabled X.
19890   have_x=disabled
19891 else
19892   case $x_includes,$x_libraries in #(
19893     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19894 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19895    { (exit 1); exit 1; }; };; #(
19896     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19897   echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899   # One or both of the vars are not set, and there is no cached value.
19900 ac_x_includes=no ac_x_libraries=no
19901 rm -f -r conftest.dir
19902 if mkdir conftest.dir; then
19903   cd conftest.dir
19904   cat >Imakefile <<'_ACEOF'
19905 incroot:
19906         @echo incroot='${INCROOT}'
19907 usrlibdir:
19908         @echo usrlibdir='${USRLIBDIR}'
19909 libdir:
19910         @echo libdir='${LIBDIR}'
19911 _ACEOF
19912   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19913     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19914     for ac_var in incroot usrlibdir libdir; do
19915       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19916     done
19917     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19918     for ac_extension in a so sl; do
19919       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19920          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19921         ac_im_usrlibdir=$ac_im_libdir; break
19922       fi
19923     done
19924     # Screen out bogus values from the imake configuration.  They are
19925     # bogus both because they are the default anyway, and because
19926     # using them would break gcc on systems where it needs fixed includes.
19927     case $ac_im_incroot in
19928         /usr/include) ac_x_includes= ;;
19929         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19930     esac
19931     case $ac_im_usrlibdir in
19932         /usr/lib | /lib) ;;
19933         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19934     esac
19935   fi
19936   cd ..
19937   rm -f -r conftest.dir
19938 fi
19939
19940 # Standard set of common directories for X headers.
19941 # Check X11 before X11Rn because it is often a symlink to the current release.
19942 ac_x_header_dirs='
19943 /usr/X11/include
19944 /usr/X11R6/include
19945 /usr/X11R5/include
19946 /usr/X11R4/include
19947
19948 /usr/include/X11
19949 /usr/include/X11R6
19950 /usr/include/X11R5
19951 /usr/include/X11R4
19952
19953 /usr/local/X11/include
19954 /usr/local/X11R6/include
19955 /usr/local/X11R5/include
19956 /usr/local/X11R4/include
19957
19958 /usr/local/include/X11
19959 /usr/local/include/X11R6
19960 /usr/local/include/X11R5
19961 /usr/local/include/X11R4
19962
19963 /usr/X386/include
19964 /usr/x386/include
19965 /usr/XFree86/include/X11
19966
19967 /usr/include
19968 /usr/local/include
19969 /usr/unsupported/include
19970 /usr/athena/include
19971 /usr/local/x11r5/include
19972 /usr/lpp/Xamples/include
19973
19974 /usr/openwin/include
19975 /usr/openwin/share/include'
19976
19977 if test "$ac_x_includes" = no; then
19978   # Guess where to find include files, by looking for Xlib.h.
19979   # First, try using that file with no special directory specified.
19980   cat >conftest.$ac_ext <<_ACEOF
19981 /* confdefs.h.  */
19982 _ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h.  */
19986 #include <X11/Xlib.h>
19987 _ACEOF
19988 if { (ac_try="$ac_cpp conftest.$ac_ext"
19989 case "(($ac_try" in
19990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19991   *) ac_try_echo=$ac_try;;
19992 esac
19993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19994   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19995   ac_status=$?
19996   grep -v '^ *+' conftest.er1 >conftest.err
19997   rm -f conftest.er1
19998   cat conftest.err >&5
19999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000   (exit $ac_status); } >/dev/null; then
20001   if test -s conftest.err; then
20002     ac_cpp_err=$ac_c_preproc_warn_flag
20003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20004   else
20005     ac_cpp_err=
20006   fi
20007 else
20008   ac_cpp_err=yes
20009 fi
20010 if test -z "$ac_cpp_err"; then
20011   # We can compile using X headers with no special include directory.
20012 ac_x_includes=
20013 else
20014   echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017   for ac_dir in $ac_x_header_dirs; do
20018   if test -r "$ac_dir/X11/Xlib.h"; then
20019     ac_x_includes=$ac_dir
20020     break
20021   fi
20022 done
20023 fi
20024
20025 rm -f conftest.err conftest.$ac_ext
20026 fi # $ac_x_includes = no
20027
20028 if test "$ac_x_libraries" = no; then
20029   # Check for the libraries.
20030   # See if we find them without any special options.
20031   # Don't add to $LIBS permanently.
20032   ac_save_LIBS=$LIBS
20033   LIBS="-lXt $LIBS"
20034   cat >conftest.$ac_ext <<_ACEOF
20035 /* confdefs.h.  */
20036 _ACEOF
20037 cat confdefs.h >>conftest.$ac_ext
20038 cat >>conftest.$ac_ext <<_ACEOF
20039 /* end confdefs.h.  */
20040 #include <X11/Xlib.h>
20041 int
20042 main ()
20043 {
20044 XrmInitialize ()
20045   ;
20046   return 0;
20047 }
20048 _ACEOF
20049 rm -f conftest.$ac_objext conftest$ac_exeext
20050 if { (ac_try="$ac_link"
20051 case "(($ac_try" in
20052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20053   *) ac_try_echo=$ac_try;;
20054 esac
20055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20056   (eval "$ac_link") 2>conftest.er1
20057   ac_status=$?
20058   grep -v '^ *+' conftest.er1 >conftest.err
20059   rm -f conftest.er1
20060   cat conftest.err >&5
20061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062   (exit $ac_status); } &&
20063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20064   { (case "(($ac_try" in
20065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066   *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069   (eval "$ac_try") 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; } &&
20073          { ac_try='test -s conftest$ac_exeext'
20074   { (case "(($ac_try" in
20075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076   *) ac_try_echo=$ac_try;;
20077 esac
20078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20079   (eval "$ac_try") 2>&5
20080   ac_status=$?
20081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082   (exit $ac_status); }; }; then
20083   LIBS=$ac_save_LIBS
20084 # We can link X programs with no special library path.
20085 ac_x_libraries=
20086 else
20087   echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.$ac_ext >&5
20089
20090         LIBS=$ac_save_LIBS
20091 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20092 do
20093   # Don't even attempt the hair of trying to link an X program!
20094   for ac_extension in a so sl; do
20095     if test -r "$ac_dir/libXt.$ac_extension"; then
20096       ac_x_libraries=$ac_dir
20097       break 2
20098     fi
20099   done
20100 done
20101 fi
20102
20103 rm -f core conftest.err conftest.$ac_objext \
20104       conftest$ac_exeext conftest.$ac_ext
20105 fi # $ac_x_libraries = no
20106
20107 case $ac_x_includes,$ac_x_libraries in #(
20108   no,* | *,no | *\'*)
20109     # Didn't find X, or a directory has "'" in its name.
20110     ac_cv_have_x="have_x=no";; #(
20111   *)
20112     # Record where we found X for the cache.
20113     ac_cv_have_x="have_x=yes\
20114         ac_x_includes='$ac_x_includes'\
20115         ac_x_libraries='$ac_x_libraries'"
20116 esac
20117 fi
20118 ;; #(
20119     *) have_x=yes;;
20120   esac
20121   eval "$ac_cv_have_x"
20122 fi # $with_x != no
20123
20124 if test "$have_x" != yes; then
20125   { echo "$as_me:$LINENO: result: $have_x" >&5
20126 echo "${ECHO_T}$have_x" >&6; }
20127   no_x=yes
20128 else
20129   # If each of the values was on the command line, it overrides each guess.
20130   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20131   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20132   # Update the cache value to reflect the command line values.
20133   ac_cv_have_x="have_x=yes\
20134         ac_x_includes='$x_includes'\
20135         ac_x_libraries='$x_libraries'"
20136   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20137 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20138 fi
20139
20140 if test "$no_x" = yes; then
20141   # Not all programs may use this symbol, but it does not hurt to define it.
20142
20143 cat >>confdefs.h <<\_ACEOF
20144 #define X_DISPLAY_MISSING 1
20145 _ACEOF
20146
20147   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20148 else
20149   if test -n "$x_includes"; then
20150     X_CFLAGS="$X_CFLAGS -I$x_includes"
20151   fi
20152
20153   # It would also be nice to do this for all -L options, not just this one.
20154   if test -n "$x_libraries"; then
20155     X_LIBS="$X_LIBS -L$x_libraries"
20156     # For Solaris; some versions of Sun CC require a space after -R and
20157     # others require no space.  Words are not sufficient . . . .
20158     case `(uname -sr) 2>/dev/null` in
20159     "SunOS 5"*)
20160       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20161 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20162       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20163       cat >conftest.$ac_ext <<_ACEOF
20164 /* confdefs.h.  */
20165 _ACEOF
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h.  */
20169
20170 int
20171 main ()
20172 {
20173
20174   ;
20175   return 0;
20176 }
20177 _ACEOF
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (ac_try="$ac_link"
20180 case "(($ac_try" in
20181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182   *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185   (eval "$ac_link") 2>conftest.er1
20186   ac_status=$?
20187   grep -v '^ *+' conftest.er1 >conftest.err
20188   rm -f conftest.er1
20189   cat conftest.err >&5
20190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191   (exit $ac_status); } &&
20192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20193   { (case "(($ac_try" in
20194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195   *) ac_try_echo=$ac_try;;
20196 esac
20197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20198   (eval "$ac_try") 2>&5
20199   ac_status=$?
20200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); }; } &&
20202          { ac_try='test -s conftest$ac_exeext'
20203   { (case "(($ac_try" in
20204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205   *) ac_try_echo=$ac_try;;
20206 esac
20207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20208   (eval "$ac_try") 2>&5
20209   ac_status=$?
20210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   ac_R_nospace=yes
20213 else
20214   echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217         ac_R_nospace=no
20218 fi
20219
20220 rm -f core conftest.err conftest.$ac_objext \
20221       conftest$ac_exeext conftest.$ac_ext
20222       if test $ac_R_nospace = yes; then
20223         { echo "$as_me:$LINENO: result: no" >&5
20224 echo "${ECHO_T}no" >&6; }
20225         X_LIBS="$X_LIBS -R$x_libraries"
20226       else
20227         LIBS="$ac_xsave_LIBS -R $x_libraries"
20228         cat >conftest.$ac_ext <<_ACEOF
20229 /* confdefs.h.  */
20230 _ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h.  */
20234
20235 int
20236 main ()
20237 {
20238
20239   ;
20240   return 0;
20241 }
20242 _ACEOF
20243 rm -f conftest.$ac_objext conftest$ac_exeext
20244 if { (ac_try="$ac_link"
20245 case "(($ac_try" in
20246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247   *) ac_try_echo=$ac_try;;
20248 esac
20249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20250   (eval "$ac_link") 2>conftest.er1
20251   ac_status=$?
20252   grep -v '^ *+' conftest.er1 >conftest.err
20253   rm -f conftest.er1
20254   cat conftest.err >&5
20255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256   (exit $ac_status); } &&
20257          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20258   { (case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_try") 2>&5
20264   ac_status=$?
20265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266   (exit $ac_status); }; } &&
20267          { ac_try='test -s conftest$ac_exeext'
20268   { (case "(($ac_try" in
20269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270   *) ac_try_echo=$ac_try;;
20271 esac
20272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20273   (eval "$ac_try") 2>&5
20274   ac_status=$?
20275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20276   (exit $ac_status); }; }; then
20277   ac_R_space=yes
20278 else
20279   echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20281
20282         ac_R_space=no
20283 fi
20284
20285 rm -f core conftest.err conftest.$ac_objext \
20286       conftest$ac_exeext conftest.$ac_ext
20287         if test $ac_R_space = yes; then
20288           { echo "$as_me:$LINENO: result: yes" >&5
20289 echo "${ECHO_T}yes" >&6; }
20290           X_LIBS="$X_LIBS -R $x_libraries"
20291         else
20292           { echo "$as_me:$LINENO: result: neither works" >&5
20293 echo "${ECHO_T}neither works" >&6; }
20294         fi
20295       fi
20296       LIBS=$ac_xsave_LIBS
20297     esac
20298   fi
20299
20300   # Check for system-dependent libraries X programs must link with.
20301   # Do this before checking for the system-independent R6 libraries
20302   # (-lICE), since we may need -lsocket or whatever for X linking.
20303
20304   if test "$ISC" = yes; then
20305     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20306   else
20307     # Martyn Johnson says this is needed for Ultrix, if the X
20308     # libraries were built with DECnet support.  And Karl Berry says
20309     # the Alpha needs dnet_stub (dnet does not exist).
20310     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20311     cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h.  */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h.  */
20317
20318 /* Override any GCC internal prototype to avoid an error.
20319    Use char because int might match the return type of a GCC
20320    builtin and then its argument prototype would still apply.  */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 char XOpenDisplay ();
20325 int
20326 main ()
20327 {
20328 return XOpenDisplay ();
20329   ;
20330   return 0;
20331 }
20332 _ACEOF
20333 rm -f conftest.$ac_objext conftest$ac_exeext
20334 if { (ac_try="$ac_link"
20335 case "(($ac_try" in
20336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20337   *) ac_try_echo=$ac_try;;
20338 esac
20339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20340   (eval "$ac_link") 2>conftest.er1
20341   ac_status=$?
20342   grep -v '^ *+' conftest.er1 >conftest.err
20343   rm -f conftest.er1
20344   cat conftest.err >&5
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } &&
20347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20348   { (case "(($ac_try" in
20349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20350   *) ac_try_echo=$ac_try;;
20351 esac
20352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20353   (eval "$ac_try") 2>&5
20354   ac_status=$?
20355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356   (exit $ac_status); }; } &&
20357          { ac_try='test -s conftest$ac_exeext'
20358   { (case "(($ac_try" in
20359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360   *) ac_try_echo=$ac_try;;
20361 esac
20362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20363   (eval "$ac_try") 2>&5
20364   ac_status=$?
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); }; }; then
20367   :
20368 else
20369   echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20373 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20374 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20375   echo $ECHO_N "(cached) $ECHO_C" >&6
20376 else
20377   ac_check_lib_save_LIBS=$LIBS
20378 LIBS="-ldnet  $LIBS"
20379 cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385
20386 /* Override any GCC internal prototype to avoid an error.
20387    Use char because int might match the return type of a GCC
20388    builtin and then its argument prototype would still apply.  */
20389 #ifdef __cplusplus
20390 extern "C"
20391 #endif
20392 char dnet_ntoa ();
20393 int
20394 main ()
20395 {
20396 return dnet_ntoa ();
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_link") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } &&
20415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20416   { (case "(($ac_try" in
20417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20418   *) ac_try_echo=$ac_try;;
20419 esac
20420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20421   (eval "$ac_try") 2>&5
20422   ac_status=$?
20423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424   (exit $ac_status); }; } &&
20425          { ac_try='test -s conftest$ac_exeext'
20426   { (case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20431   (eval "$ac_try") 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; }; then
20435   ac_cv_lib_dnet_dnet_ntoa=yes
20436 else
20437   echo "$as_me: failed program was:" >&5
20438 sed 's/^/| /' conftest.$ac_ext >&5
20439
20440         ac_cv_lib_dnet_dnet_ntoa=no
20441 fi
20442
20443 rm -f core conftest.err conftest.$ac_objext \
20444       conftest$ac_exeext conftest.$ac_ext
20445 LIBS=$ac_check_lib_save_LIBS
20446 fi
20447 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20448 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20449 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20450   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20451 fi
20452
20453     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20454       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20455 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20456 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20457   echo $ECHO_N "(cached) $ECHO_C" >&6
20458 else
20459   ac_check_lib_save_LIBS=$LIBS
20460 LIBS="-ldnet_stub  $LIBS"
20461 cat >conftest.$ac_ext <<_ACEOF
20462 /* confdefs.h.  */
20463 _ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h.  */
20467
20468 /* Override any GCC internal prototype to avoid an error.
20469    Use char because int might match the return type of a GCC
20470    builtin and then its argument prototype would still apply.  */
20471 #ifdef __cplusplus
20472 extern "C"
20473 #endif
20474 char dnet_ntoa ();
20475 int
20476 main ()
20477 {
20478 return dnet_ntoa ();
20479   ;
20480   return 0;
20481 }
20482 _ACEOF
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487   *) ac_try_echo=$ac_try;;
20488 esac
20489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20490   (eval "$ac_link") 2>conftest.er1
20491   ac_status=$?
20492   grep -v '^ *+' conftest.er1 >conftest.err
20493   rm -f conftest.er1
20494   cat conftest.err >&5
20495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496   (exit $ac_status); } &&
20497          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20498   { (case "(($ac_try" in
20499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20500   *) ac_try_echo=$ac_try;;
20501 esac
20502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20503   (eval "$ac_try") 2>&5
20504   ac_status=$?
20505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506   (exit $ac_status); }; } &&
20507          { ac_try='test -s conftest$ac_exeext'
20508   { (case "(($ac_try" in
20509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20510   *) ac_try_echo=$ac_try;;
20511 esac
20512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20513   (eval "$ac_try") 2>&5
20514   ac_status=$?
20515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516   (exit $ac_status); }; }; then
20517   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522         ac_cv_lib_dnet_stub_dnet_ntoa=no
20523 fi
20524
20525 rm -f core conftest.err conftest.$ac_objext \
20526       conftest$ac_exeext conftest.$ac_ext
20527 LIBS=$ac_check_lib_save_LIBS
20528 fi
20529 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20530 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20531 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20532   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20533 fi
20534
20535     fi
20536 fi
20537
20538 rm -f core conftest.err conftest.$ac_objext \
20539       conftest$ac_exeext conftest.$ac_ext
20540     LIBS="$ac_xsave_LIBS"
20541
20542     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20543     # to get the SysV transport functions.
20544     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20545     # needs -lnsl.
20546     # The nsl library prevents programs from opening the X display
20547     # on Irix 5.2, according to T.E. Dickey.
20548     # The functions gethostbyname, getservbyname, and inet_addr are
20549     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20550     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20551 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20552 if test "${ac_cv_func_gethostbyname+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555   cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h.  */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h.  */
20561 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20562    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20563 #define gethostbyname innocuous_gethostbyname
20564
20565 /* System header to define __stub macros and hopefully few prototypes,
20566     which can conflict with char gethostbyname (); below.
20567     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20568     <limits.h> exists even on freestanding compilers.  */
20569
20570 #ifdef __STDC__
20571 # include <limits.h>
20572 #else
20573 # include <assert.h>
20574 #endif
20575
20576 #undef gethostbyname
20577
20578 /* Override any GCC internal prototype to avoid an error.
20579    Use char because int might match the return type of a GCC
20580    builtin and then its argument prototype would still apply.  */
20581 #ifdef __cplusplus
20582 extern "C"
20583 #endif
20584 char gethostbyname ();
20585 /* The GNU C library defines this for functions which it implements
20586     to always fail with ENOSYS.  Some functions are actually named
20587     something starting with __ and the normal name is an alias.  */
20588 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20589 choke me
20590 #endif
20591
20592 int
20593 main ()
20594 {
20595 return gethostbyname ();
20596   ;
20597   return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604   *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607   (eval "$ac_link") 2>conftest.er1
20608   ac_status=$?
20609   grep -v '^ *+' conftest.er1 >conftest.err
20610   rm -f conftest.er1
20611   cat conftest.err >&5
20612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613   (exit $ac_status); } &&
20614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20615   { (case "(($ac_try" in
20616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617   *) ac_try_echo=$ac_try;;
20618 esac
20619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20620   (eval "$ac_try") 2>&5
20621   ac_status=$?
20622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623   (exit $ac_status); }; } &&
20624          { ac_try='test -s conftest$ac_exeext'
20625   { (case "(($ac_try" in
20626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627   *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630   (eval "$ac_try") 2>&5
20631   ac_status=$?
20632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633   (exit $ac_status); }; }; then
20634   ac_cv_func_gethostbyname=yes
20635 else
20636   echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20638
20639         ac_cv_func_gethostbyname=no
20640 fi
20641
20642 rm -f core conftest.err conftest.$ac_objext \
20643       conftest$ac_exeext conftest.$ac_ext
20644 fi
20645 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20646 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20647
20648     if test $ac_cv_func_gethostbyname = no; then
20649       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20650 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20651 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20652   echo $ECHO_N "(cached) $ECHO_C" >&6
20653 else
20654   ac_check_lib_save_LIBS=$LIBS
20655 LIBS="-lnsl  $LIBS"
20656 cat >conftest.$ac_ext <<_ACEOF
20657 /* confdefs.h.  */
20658 _ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h.  */
20662
20663 /* Override any GCC internal prototype to avoid an error.
20664    Use char because int might match the return type of a GCC
20665    builtin and then its argument prototype would still apply.  */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 char gethostbyname ();
20670 int
20671 main ()
20672 {
20673 return gethostbyname ();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 rm -f conftest.$ac_objext conftest$ac_exeext
20679 if { (ac_try="$ac_link"
20680 case "(($ac_try" in
20681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20682   *) ac_try_echo=$ac_try;;
20683 esac
20684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20685   (eval "$ac_link") 2>conftest.er1
20686   ac_status=$?
20687   grep -v '^ *+' conftest.er1 >conftest.err
20688   rm -f conftest.er1
20689   cat conftest.err >&5
20690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691   (exit $ac_status); } &&
20692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20693   { (case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698   (eval "$ac_try") 2>&5
20699   ac_status=$?
20700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701   (exit $ac_status); }; } &&
20702          { ac_try='test -s conftest$ac_exeext'
20703   { (case "(($ac_try" in
20704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20705   *) ac_try_echo=$ac_try;;
20706 esac
20707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20708   (eval "$ac_try") 2>&5
20709   ac_status=$?
20710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711   (exit $ac_status); }; }; then
20712   ac_cv_lib_nsl_gethostbyname=yes
20713 else
20714   echo "$as_me: failed program was:" >&5
20715 sed 's/^/| /' conftest.$ac_ext >&5
20716
20717         ac_cv_lib_nsl_gethostbyname=no
20718 fi
20719
20720 rm -f core conftest.err conftest.$ac_objext \
20721       conftest$ac_exeext conftest.$ac_ext
20722 LIBS=$ac_check_lib_save_LIBS
20723 fi
20724 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20726 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20727   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20728 fi
20729
20730       if test $ac_cv_lib_nsl_gethostbyname = no; then
20731         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20732 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20733 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20734   echo $ECHO_N "(cached) $ECHO_C" >&6
20735 else
20736   ac_check_lib_save_LIBS=$LIBS
20737 LIBS="-lbsd  $LIBS"
20738 cat >conftest.$ac_ext <<_ACEOF
20739 /* confdefs.h.  */
20740 _ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h.  */
20744
20745 /* Override any GCC internal prototype to avoid an error.
20746    Use char because int might match the return type of a GCC
20747    builtin and then its argument prototype would still apply.  */
20748 #ifdef __cplusplus
20749 extern "C"
20750 #endif
20751 char gethostbyname ();
20752 int
20753 main ()
20754 {
20755 return gethostbyname ();
20756   ;
20757   return 0;
20758 }
20759 _ACEOF
20760 rm -f conftest.$ac_objext conftest$ac_exeext
20761 if { (ac_try="$ac_link"
20762 case "(($ac_try" in
20763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20764   *) ac_try_echo=$ac_try;;
20765 esac
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767   (eval "$ac_link") 2>conftest.er1
20768   ac_status=$?
20769   grep -v '^ *+' conftest.er1 >conftest.err
20770   rm -f conftest.er1
20771   cat conftest.err >&5
20772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } &&
20774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20775   { (case "(($ac_try" in
20776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777   *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780   (eval "$ac_try") 2>&5
20781   ac_status=$?
20782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783   (exit $ac_status); }; } &&
20784          { ac_try='test -s conftest$ac_exeext'
20785   { (case "(($ac_try" in
20786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20787   *) ac_try_echo=$ac_try;;
20788 esac
20789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20790   (eval "$ac_try") 2>&5
20791   ac_status=$?
20792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793   (exit $ac_status); }; }; then
20794   ac_cv_lib_bsd_gethostbyname=yes
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         ac_cv_lib_bsd_gethostbyname=no
20800 fi
20801
20802 rm -f core conftest.err conftest.$ac_objext \
20803       conftest$ac_exeext conftest.$ac_ext
20804 LIBS=$ac_check_lib_save_LIBS
20805 fi
20806 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20807 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20808 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20809   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20810 fi
20811
20812       fi
20813     fi
20814
20815     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20816     # socket/setsockopt and other routines are undefined under SCO ODT
20817     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20818     # on later versions), says Simon Leinen: it contains gethostby*
20819     # variants that don't use the name server (or something).  -lsocket
20820     # must be given before -lnsl if both are needed.  We assume that
20821     # if connect needs -lnsl, so does gethostbyname.
20822     { echo "$as_me:$LINENO: checking for connect" >&5
20823 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20824 if test "${ac_cv_func_connect+set}" = set; then
20825   echo $ECHO_N "(cached) $ECHO_C" >&6
20826 else
20827   cat >conftest.$ac_ext <<_ACEOF
20828 /* confdefs.h.  */
20829 _ACEOF
20830 cat confdefs.h >>conftest.$ac_ext
20831 cat >>conftest.$ac_ext <<_ACEOF
20832 /* end confdefs.h.  */
20833 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20834    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20835 #define connect innocuous_connect
20836
20837 /* System header to define __stub macros and hopefully few prototypes,
20838     which can conflict with char connect (); below.
20839     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20840     <limits.h> exists even on freestanding compilers.  */
20841
20842 #ifdef __STDC__
20843 # include <limits.h>
20844 #else
20845 # include <assert.h>
20846 #endif
20847
20848 #undef connect
20849
20850 /* Override any GCC internal prototype to avoid an error.
20851    Use char because int might match the return type of a GCC
20852    builtin and then its argument prototype would still apply.  */
20853 #ifdef __cplusplus
20854 extern "C"
20855 #endif
20856 char connect ();
20857 /* The GNU C library defines this for functions which it implements
20858     to always fail with ENOSYS.  Some functions are actually named
20859     something starting with __ and the normal name is an alias.  */
20860 #if defined __stub_connect || defined __stub___connect
20861 choke me
20862 #endif
20863
20864 int
20865 main ()
20866 {
20867 return connect ();
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876   *) ac_try_echo=$ac_try;;
20877 esac
20878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20879   (eval "$ac_link") 2>conftest.er1
20880   ac_status=$?
20881   grep -v '^ *+' conftest.er1 >conftest.err
20882   rm -f conftest.er1
20883   cat conftest.err >&5
20884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885   (exit $ac_status); } &&
20886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20887   { (case "(($ac_try" in
20888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889   *) ac_try_echo=$ac_try;;
20890 esac
20891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20892   (eval "$ac_try") 2>&5
20893   ac_status=$?
20894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895   (exit $ac_status); }; } &&
20896          { ac_try='test -s conftest$ac_exeext'
20897   { (case "(($ac_try" in
20898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899   *) ac_try_echo=$ac_try;;
20900 esac
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902   (eval "$ac_try") 2>&5
20903   ac_status=$?
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); }; }; then
20906   ac_cv_func_connect=yes
20907 else
20908   echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20910
20911         ac_cv_func_connect=no
20912 fi
20913
20914 rm -f core conftest.err conftest.$ac_objext \
20915       conftest$ac_exeext conftest.$ac_ext
20916 fi
20917 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20918 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20919
20920     if test $ac_cv_func_connect = no; then
20921       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20922 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20923 if test "${ac_cv_lib_socket_connect+set}" = set; then
20924   echo $ECHO_N "(cached) $ECHO_C" >&6
20925 else
20926   ac_check_lib_save_LIBS=$LIBS
20927 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20928 cat >conftest.$ac_ext <<_ACEOF
20929 /* confdefs.h.  */
20930 _ACEOF
20931 cat confdefs.h >>conftest.$ac_ext
20932 cat >>conftest.$ac_ext <<_ACEOF
20933 /* end confdefs.h.  */
20934
20935 /* Override any GCC internal prototype to avoid an error.
20936    Use char because int might match the return type of a GCC
20937    builtin and then its argument prototype would still apply.  */
20938 #ifdef __cplusplus
20939 extern "C"
20940 #endif
20941 char connect ();
20942 int
20943 main ()
20944 {
20945 return connect ();
20946   ;
20947   return 0;
20948 }
20949 _ACEOF
20950 rm -f conftest.$ac_objext conftest$ac_exeext
20951 if { (ac_try="$ac_link"
20952 case "(($ac_try" in
20953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954   *) ac_try_echo=$ac_try;;
20955 esac
20956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20957   (eval "$ac_link") 2>conftest.er1
20958   ac_status=$?
20959   grep -v '^ *+' conftest.er1 >conftest.err
20960   rm -f conftest.er1
20961   cat conftest.err >&5
20962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20963   (exit $ac_status); } &&
20964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20965   { (case "(($ac_try" in
20966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20967   *) ac_try_echo=$ac_try;;
20968 esac
20969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20970   (eval "$ac_try") 2>&5
20971   ac_status=$?
20972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973   (exit $ac_status); }; } &&
20974          { ac_try='test -s conftest$ac_exeext'
20975   { (case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980   (eval "$ac_try") 2>&5
20981   ac_status=$?
20982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983   (exit $ac_status); }; }; then
20984   ac_cv_lib_socket_connect=yes
20985 else
20986   echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989         ac_cv_lib_socket_connect=no
20990 fi
20991
20992 rm -f core conftest.err conftest.$ac_objext \
20993       conftest$ac_exeext conftest.$ac_ext
20994 LIBS=$ac_check_lib_save_LIBS
20995 fi
20996 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20997 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20998 if test $ac_cv_lib_socket_connect = yes; then
20999   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21000 fi
21001
21002     fi
21003
21004     # Guillermo Gomez says -lposix is necessary on A/UX.
21005     { echo "$as_me:$LINENO: checking for remove" >&5
21006 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
21007 if test "${ac_cv_func_remove+set}" = set; then
21008   echo $ECHO_N "(cached) $ECHO_C" >&6
21009 else
21010   cat >conftest.$ac_ext <<_ACEOF
21011 /* confdefs.h.  */
21012 _ACEOF
21013 cat confdefs.h >>conftest.$ac_ext
21014 cat >>conftest.$ac_ext <<_ACEOF
21015 /* end confdefs.h.  */
21016 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
21017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21018 #define remove innocuous_remove
21019
21020 /* System header to define __stub macros and hopefully few prototypes,
21021     which can conflict with char remove (); below.
21022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21023     <limits.h> exists even on freestanding compilers.  */
21024
21025 #ifdef __STDC__
21026 # include <limits.h>
21027 #else
21028 # include <assert.h>
21029 #endif
21030
21031 #undef remove
21032
21033 /* Override any GCC internal prototype to avoid an error.
21034    Use char because int might match the return type of a GCC
21035    builtin and then its argument prototype would still apply.  */
21036 #ifdef __cplusplus
21037 extern "C"
21038 #endif
21039 char remove ();
21040 /* The GNU C library defines this for functions which it implements
21041     to always fail with ENOSYS.  Some functions are actually named
21042     something starting with __ and the normal name is an alias.  */
21043 #if defined __stub_remove || defined __stub___remove
21044 choke me
21045 #endif
21046
21047 int
21048 main ()
21049 {
21050 return remove ();
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 rm -f conftest.$ac_objext conftest$ac_exeext
21056 if { (ac_try="$ac_link"
21057 case "(($ac_try" in
21058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21059   *) ac_try_echo=$ac_try;;
21060 esac
21061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21062   (eval "$ac_link") 2>conftest.er1
21063   ac_status=$?
21064   grep -v '^ *+' conftest.er1 >conftest.err
21065   rm -f conftest.er1
21066   cat conftest.err >&5
21067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21068   (exit $ac_status); } &&
21069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21070   { (case "(($ac_try" in
21071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21072   *) ac_try_echo=$ac_try;;
21073 esac
21074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21075   (eval "$ac_try") 2>&5
21076   ac_status=$?
21077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078   (exit $ac_status); }; } &&
21079          { ac_try='test -s conftest$ac_exeext'
21080   { (case "(($ac_try" in
21081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082   *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085   (eval "$ac_try") 2>&5
21086   ac_status=$?
21087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088   (exit $ac_status); }; }; then
21089   ac_cv_func_remove=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_func_remove=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext \
21098       conftest$ac_exeext conftest.$ac_ext
21099 fi
21100 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21101 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21102
21103     if test $ac_cv_func_remove = no; then
21104       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21105 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21106 if test "${ac_cv_lib_posix_remove+set}" = set; then
21107   echo $ECHO_N "(cached) $ECHO_C" >&6
21108 else
21109   ac_check_lib_save_LIBS=$LIBS
21110 LIBS="-lposix  $LIBS"
21111 cat >conftest.$ac_ext <<_ACEOF
21112 /* confdefs.h.  */
21113 _ACEOF
21114 cat confdefs.h >>conftest.$ac_ext
21115 cat >>conftest.$ac_ext <<_ACEOF
21116 /* end confdefs.h.  */
21117
21118 /* Override any GCC internal prototype to avoid an error.
21119    Use char because int might match the return type of a GCC
21120    builtin and then its argument prototype would still apply.  */
21121 #ifdef __cplusplus
21122 extern "C"
21123 #endif
21124 char remove ();
21125 int
21126 main ()
21127 {
21128 return remove ();
21129   ;
21130   return 0;
21131 }
21132 _ACEOF
21133 rm -f conftest.$ac_objext conftest$ac_exeext
21134 if { (ac_try="$ac_link"
21135 case "(($ac_try" in
21136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137   *) ac_try_echo=$ac_try;;
21138 esac
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140   (eval "$ac_link") 2>conftest.er1
21141   ac_status=$?
21142   grep -v '^ *+' conftest.er1 >conftest.err
21143   rm -f conftest.er1
21144   cat conftest.err >&5
21145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146   (exit $ac_status); } &&
21147          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21148   { (case "(($ac_try" in
21149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150   *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153   (eval "$ac_try") 2>&5
21154   ac_status=$?
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); }; } &&
21157          { ac_try='test -s conftest$ac_exeext'
21158   { (case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_try") 2>&5
21164   ac_status=$?
21165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166   (exit $ac_status); }; }; then
21167   ac_cv_lib_posix_remove=yes
21168 else
21169   echo "$as_me: failed program was:" >&5
21170 sed 's/^/| /' conftest.$ac_ext >&5
21171
21172         ac_cv_lib_posix_remove=no
21173 fi
21174
21175 rm -f core conftest.err conftest.$ac_objext \
21176       conftest$ac_exeext conftest.$ac_ext
21177 LIBS=$ac_check_lib_save_LIBS
21178 fi
21179 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21180 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21181 if test $ac_cv_lib_posix_remove = yes; then
21182   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21183 fi
21184
21185     fi
21186
21187     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21188     { echo "$as_me:$LINENO: checking for shmat" >&5
21189 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21190 if test "${ac_cv_func_shmat+set}" = set; then
21191   echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193   cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21200    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21201 #define shmat innocuous_shmat
21202
21203 /* System header to define __stub macros and hopefully few prototypes,
21204     which can conflict with char shmat (); below.
21205     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21206     <limits.h> exists even on freestanding compilers.  */
21207
21208 #ifdef __STDC__
21209 # include <limits.h>
21210 #else
21211 # include <assert.h>
21212 #endif
21213
21214 #undef shmat
21215
21216 /* Override any GCC internal prototype to avoid an error.
21217    Use char because int might match the return type of a GCC
21218    builtin and then its argument prototype would still apply.  */
21219 #ifdef __cplusplus
21220 extern "C"
21221 #endif
21222 char shmat ();
21223 /* The GNU C library defines this for functions which it implements
21224     to always fail with ENOSYS.  Some functions are actually named
21225     something starting with __ and the normal name is an alias.  */
21226 #if defined __stub_shmat || defined __stub___shmat
21227 choke me
21228 #endif
21229
21230 int
21231 main ()
21232 {
21233 return shmat ();
21234   ;
21235   return 0;
21236 }
21237 _ACEOF
21238 rm -f conftest.$ac_objext conftest$ac_exeext
21239 if { (ac_try="$ac_link"
21240 case "(($ac_try" in
21241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21242   *) ac_try_echo=$ac_try;;
21243 esac
21244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21245   (eval "$ac_link") 2>conftest.er1
21246   ac_status=$?
21247   grep -v '^ *+' conftest.er1 >conftest.err
21248   rm -f conftest.er1
21249   cat conftest.err >&5
21250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251   (exit $ac_status); } &&
21252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21253   { (case "(($ac_try" in
21254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255   *) ac_try_echo=$ac_try;;
21256 esac
21257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21258   (eval "$ac_try") 2>&5
21259   ac_status=$?
21260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261   (exit $ac_status); }; } &&
21262          { ac_try='test -s conftest$ac_exeext'
21263   { (case "(($ac_try" in
21264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21265   *) ac_try_echo=$ac_try;;
21266 esac
21267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21268   (eval "$ac_try") 2>&5
21269   ac_status=$?
21270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21271   (exit $ac_status); }; }; then
21272   ac_cv_func_shmat=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277         ac_cv_func_shmat=no
21278 fi
21279
21280 rm -f core conftest.err conftest.$ac_objext \
21281       conftest$ac_exeext conftest.$ac_ext
21282 fi
21283 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21284 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21285
21286     if test $ac_cv_func_shmat = no; then
21287       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21288 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21289 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21290   echo $ECHO_N "(cached) $ECHO_C" >&6
21291 else
21292   ac_check_lib_save_LIBS=$LIBS
21293 LIBS="-lipc  $LIBS"
21294 cat >conftest.$ac_ext <<_ACEOF
21295 /* confdefs.h.  */
21296 _ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h.  */
21300
21301 /* Override any GCC internal prototype to avoid an error.
21302    Use char because int might match the return type of a GCC
21303    builtin and then its argument prototype would still apply.  */
21304 #ifdef __cplusplus
21305 extern "C"
21306 #endif
21307 char shmat ();
21308 int
21309 main ()
21310 {
21311 return shmat ();
21312   ;
21313   return 0;
21314 }
21315 _ACEOF
21316 rm -f conftest.$ac_objext conftest$ac_exeext
21317 if { (ac_try="$ac_link"
21318 case "(($ac_try" in
21319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320   *) ac_try_echo=$ac_try;;
21321 esac
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323   (eval "$ac_link") 2>conftest.er1
21324   ac_status=$?
21325   grep -v '^ *+' conftest.er1 >conftest.err
21326   rm -f conftest.er1
21327   cat conftest.err >&5
21328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329   (exit $ac_status); } &&
21330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21331   { (case "(($ac_try" in
21332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21333   *) ac_try_echo=$ac_try;;
21334 esac
21335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21336   (eval "$ac_try") 2>&5
21337   ac_status=$?
21338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21339   (exit $ac_status); }; } &&
21340          { ac_try='test -s conftest$ac_exeext'
21341   { (case "(($ac_try" in
21342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343   *) ac_try_echo=$ac_try;;
21344 esac
21345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21346   (eval "$ac_try") 2>&5
21347   ac_status=$?
21348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349   (exit $ac_status); }; }; then
21350   ac_cv_lib_ipc_shmat=yes
21351 else
21352   echo "$as_me: failed program was:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21354
21355         ac_cv_lib_ipc_shmat=no
21356 fi
21357
21358 rm -f core conftest.err conftest.$ac_objext \
21359       conftest$ac_exeext conftest.$ac_ext
21360 LIBS=$ac_check_lib_save_LIBS
21361 fi
21362 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21363 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21364 if test $ac_cv_lib_ipc_shmat = yes; then
21365   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21366 fi
21367
21368     fi
21369   fi
21370
21371   # Check for libraries that X11R6 Xt/Xaw programs need.
21372   ac_save_LDFLAGS=$LDFLAGS
21373   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21374   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21375   # check for ICE first), but we must link in the order -lSM -lICE or
21376   # we get undefined symbols.  So assume we have SM if we have ICE.
21377   # These have to be linked with before -lX11, unlike the other
21378   # libraries we check for below, so use a different variable.
21379   # John Interrante, Karl Berry
21380   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21381 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21382 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21383   echo $ECHO_N "(cached) $ECHO_C" >&6
21384 else
21385   ac_check_lib_save_LIBS=$LIBS
21386 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21387 cat >conftest.$ac_ext <<_ACEOF
21388 /* confdefs.h.  */
21389 _ACEOF
21390 cat confdefs.h >>conftest.$ac_ext
21391 cat >>conftest.$ac_ext <<_ACEOF
21392 /* end confdefs.h.  */
21393
21394 /* Override any GCC internal prototype to avoid an error.
21395    Use char because int might match the return type of a GCC
21396    builtin and then its argument prototype would still apply.  */
21397 #ifdef __cplusplus
21398 extern "C"
21399 #endif
21400 char IceConnectionNumber ();
21401 int
21402 main ()
21403 {
21404 return IceConnectionNumber ();
21405   ;
21406   return 0;
21407 }
21408 _ACEOF
21409 rm -f conftest.$ac_objext conftest$ac_exeext
21410 if { (ac_try="$ac_link"
21411 case "(($ac_try" in
21412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21413   *) ac_try_echo=$ac_try;;
21414 esac
21415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21416   (eval "$ac_link") 2>conftest.er1
21417   ac_status=$?
21418   grep -v '^ *+' conftest.er1 >conftest.err
21419   rm -f conftest.er1
21420   cat conftest.err >&5
21421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422   (exit $ac_status); } &&
21423          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21424   { (case "(($ac_try" in
21425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21426   *) ac_try_echo=$ac_try;;
21427 esac
21428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21429   (eval "$ac_try") 2>&5
21430   ac_status=$?
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); }; } &&
21433          { ac_try='test -s conftest$ac_exeext'
21434   { (case "(($ac_try" in
21435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21436   *) ac_try_echo=$ac_try;;
21437 esac
21438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21439   (eval "$ac_try") 2>&5
21440   ac_status=$?
21441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442   (exit $ac_status); }; }; then
21443   ac_cv_lib_ICE_IceConnectionNumber=yes
21444 else
21445   echo "$as_me: failed program was:" >&5
21446 sed 's/^/| /' conftest.$ac_ext >&5
21447
21448         ac_cv_lib_ICE_IceConnectionNumber=no
21449 fi
21450
21451 rm -f core conftest.err conftest.$ac_objext \
21452       conftest$ac_exeext conftest.$ac_ext
21453 LIBS=$ac_check_lib_save_LIBS
21454 fi
21455 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21456 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21457 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21458   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21459 fi
21460
21461   LDFLAGS=$ac_save_LDFLAGS
21462
21463 fi
21464
21465
21466
21467
21468
21469
21470
21471
21472
21473
21474
21475
21476
21477
21478
21479
21480
21481
21482
21483
21484
21485
21486
21487
21488
21489
21490
21491
21492
21493 for ac_header in \
21494         assert.h \
21495         fcntl.h \
21496         grp.h \
21497         pwd.h \
21498         libc.h \
21499         limits.h \
21500         stdarg.h \
21501         stdlib.h \
21502         stdint.h \
21503         string.h \
21504         termios.h \
21505         termcap.h \
21506         term.h \
21507         unistd.h \
21508         sys/bitypes.h \
21509         sys/byteorder.h \
21510         sys/ioctl.h \
21511         sys/select.h \
21512         sys/sockio.h \
21513         sys/time.h \
21514         sys/socket.h \
21515         arpa/nameser.h \
21516         resolv.h \
21517         mtio.h \
21518         sys/mtio.h \
21519         sys/tape.h \
21520         regex.h \
21521
21522 do
21523 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21525   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21528   echo $ECHO_N "(cached) $ECHO_C" >&6
21529 fi
21530 ac_res=`eval echo '${'$as_ac_Header'}'`
21531                { echo "$as_me:$LINENO: result: $ac_res" >&5
21532 echo "${ECHO_T}$ac_res" >&6; }
21533 else
21534   # Is the header compilable?
21535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h.  */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h.  */
21543 $ac_includes_default
21544 #include <$ac_header>
21545 _ACEOF
21546 rm -f conftest.$ac_objext
21547 if { (ac_try="$ac_compile"
21548 case "(($ac_try" in
21549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21550   *) ac_try_echo=$ac_try;;
21551 esac
21552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21553   (eval "$ac_compile") 2>conftest.er1
21554   ac_status=$?
21555   grep -v '^ *+' conftest.er1 >conftest.err
21556   rm -f conftest.er1
21557   cat conftest.err >&5
21558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559   (exit $ac_status); } &&
21560          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21561   { (case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_try") 2>&5
21567   ac_status=$?
21568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569   (exit $ac_status); }; } &&
21570          { ac_try='test -s conftest.$ac_objext'
21571   { (case "(($ac_try" in
21572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573   *) ac_try_echo=$ac_try;;
21574 esac
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576   (eval "$ac_try") 2>&5
21577   ac_status=$?
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); }; }; then
21580   ac_header_compiler=yes
21581 else
21582   echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21584
21585         ac_header_compiler=no
21586 fi
21587
21588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21590 echo "${ECHO_T}$ac_header_compiler" >&6; }
21591
21592 # Is the header present?
21593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21595 cat >conftest.$ac_ext <<_ACEOF
21596 /* confdefs.h.  */
21597 _ACEOF
21598 cat confdefs.h >>conftest.$ac_ext
21599 cat >>conftest.$ac_ext <<_ACEOF
21600 /* end confdefs.h.  */
21601 #include <$ac_header>
21602 _ACEOF
21603 if { (ac_try="$ac_cpp conftest.$ac_ext"
21604 case "(($ac_try" in
21605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606   *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21610   ac_status=$?
21611   grep -v '^ *+' conftest.er1 >conftest.err
21612   rm -f conftest.er1
21613   cat conftest.err >&5
21614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615   (exit $ac_status); } >/dev/null; then
21616   if test -s conftest.err; then
21617     ac_cpp_err=$ac_c_preproc_warn_flag
21618     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21619   else
21620     ac_cpp_err=
21621   fi
21622 else
21623   ac_cpp_err=yes
21624 fi
21625 if test -z "$ac_cpp_err"; then
21626   ac_header_preproc=yes
21627 else
21628   echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21630
21631   ac_header_preproc=no
21632 fi
21633
21634 rm -f conftest.err conftest.$ac_ext
21635 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21636 echo "${ECHO_T}$ac_header_preproc" >&6; }
21637
21638 # So?  What about this header?
21639 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21640   yes:no: )
21641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21644 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21645     ac_header_preproc=yes
21646     ;;
21647   no:yes:* )
21648     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21649 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21650     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21651 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21652     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21653 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21654     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21655 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21656     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21657 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21658     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21659 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21660
21661     ;;
21662 esac
21663 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21664 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21666   echo $ECHO_N "(cached) $ECHO_C" >&6
21667 else
21668   eval "$as_ac_Header=\$ac_header_preproc"
21669 fi
21670 ac_res=`eval echo '${'$as_ac_Header'}'`
21671                { echo "$as_me:$LINENO: result: $ac_res" >&5
21672 echo "${ECHO_T}$ac_res" >&6; }
21673
21674 fi
21675 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21676   cat >>confdefs.h <<_ACEOF
21677 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21678 _ACEOF
21679
21680 fi
21681
21682 done
21683
21684 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21685 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21686 if test "${ac_cv_header_stdc+set}" = set; then
21687   echo $ECHO_N "(cached) $ECHO_C" >&6
21688 else
21689   cat >conftest.$ac_ext <<_ACEOF
21690 /* confdefs.h.  */
21691 _ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h.  */
21695 #include <stdlib.h>
21696 #include <stdarg.h>
21697 #include <string.h>
21698 #include <float.h>
21699
21700 int
21701 main ()
21702 {
21703
21704   ;
21705   return 0;
21706 }
21707 _ACEOF
21708 rm -f conftest.$ac_objext
21709 if { (ac_try="$ac_compile"
21710 case "(($ac_try" in
21711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21712   *) ac_try_echo=$ac_try;;
21713 esac
21714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21715   (eval "$ac_compile") 2>conftest.er1
21716   ac_status=$?
21717   grep -v '^ *+' conftest.er1 >conftest.err
21718   rm -f conftest.er1
21719   cat conftest.err >&5
21720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721   (exit $ac_status); } &&
21722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21723   { (case "(($ac_try" in
21724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21725   *) ac_try_echo=$ac_try;;
21726 esac
21727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21728   (eval "$ac_try") 2>&5
21729   ac_status=$?
21730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731   (exit $ac_status); }; } &&
21732          { ac_try='test -s conftest.$ac_objext'
21733   { (case "(($ac_try" in
21734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21735   *) ac_try_echo=$ac_try;;
21736 esac
21737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21738   (eval "$ac_try") 2>&5
21739   ac_status=$?
21740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21741   (exit $ac_status); }; }; then
21742   ac_cv_header_stdc=yes
21743 else
21744   echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747         ac_cv_header_stdc=no
21748 fi
21749
21750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21751
21752 if test $ac_cv_header_stdc = yes; then
21753   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21754   cat >conftest.$ac_ext <<_ACEOF
21755 /* confdefs.h.  */
21756 _ACEOF
21757 cat confdefs.h >>conftest.$ac_ext
21758 cat >>conftest.$ac_ext <<_ACEOF
21759 /* end confdefs.h.  */
21760 #include <string.h>
21761
21762 _ACEOF
21763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21764   $EGREP "memchr" >/dev/null 2>&1; then
21765   :
21766 else
21767   ac_cv_header_stdc=no
21768 fi
21769 rm -f conftest*
21770
21771 fi
21772
21773 if test $ac_cv_header_stdc = yes; then
21774   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21775   cat >conftest.$ac_ext <<_ACEOF
21776 /* confdefs.h.  */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h.  */
21781 #include <stdlib.h>
21782
21783 _ACEOF
21784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21785   $EGREP "free" >/dev/null 2>&1; then
21786   :
21787 else
21788   ac_cv_header_stdc=no
21789 fi
21790 rm -f conftest*
21791
21792 fi
21793
21794 if test $ac_cv_header_stdc = yes; then
21795   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21796   if test "$cross_compiling" = yes; then
21797   :
21798 else
21799   cat >conftest.$ac_ext <<_ACEOF
21800 /* confdefs.h.  */
21801 _ACEOF
21802 cat confdefs.h >>conftest.$ac_ext
21803 cat >>conftest.$ac_ext <<_ACEOF
21804 /* end confdefs.h.  */
21805 #include <ctype.h>
21806 #include <stdlib.h>
21807 #if ((' ' & 0x0FF) == 0x020)
21808 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21809 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21810 #else
21811 # define ISLOWER(c) \
21812                    (('a' <= (c) && (c) <= 'i') \
21813                      || ('j' <= (c) && (c) <= 'r') \
21814                      || ('s' <= (c) && (c) <= 'z'))
21815 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21816 #endif
21817
21818 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21819 int
21820 main ()
21821 {
21822   int i;
21823   for (i = 0; i < 256; i++)
21824     if (XOR (islower (i), ISLOWER (i))
21825         || toupper (i) != TOUPPER (i))
21826       return 2;
21827   return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834   *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837   (eval "$ac_link") 2>&5
21838   ac_status=$?
21839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21841   { (case "(($ac_try" in
21842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843   *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846   (eval "$ac_try") 2>&5
21847   ac_status=$?
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); }; }; then
21850   :
21851 else
21852   echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ( exit $ac_status )
21857 ac_cv_header_stdc=no
21858 fi
21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21860 fi
21861
21862
21863 fi
21864 fi
21865 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21866 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21867 if test $ac_cv_header_stdc = yes; then
21868
21869 cat >>confdefs.h <<\_ACEOF
21870 #define STDC_HEADERS 1
21871 _ACEOF
21872
21873 fi
21874
21875 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21876 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21877 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21878   echo $ECHO_N "(cached) $ECHO_C" >&6
21879 else
21880   cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h.  */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h.  */
21886 #include <sys/types.h>
21887 int
21888 main ()
21889 {
21890 return makedev(0, 0);
21891   ;
21892   return 0;
21893 }
21894 _ACEOF
21895 rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_link") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } &&
21909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21910   { (case "(($ac_try" in
21911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21912   *) ac_try_echo=$ac_try;;
21913 esac
21914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21915   (eval "$ac_try") 2>&5
21916   ac_status=$?
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); }; } &&
21919          { ac_try='test -s conftest$ac_exeext'
21920   { (case "(($ac_try" in
21921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21922   *) ac_try_echo=$ac_try;;
21923 esac
21924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21925   (eval "$ac_try") 2>&5
21926   ac_status=$?
21927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928   (exit $ac_status); }; }; then
21929   ac_cv_header_sys_types_h_makedev=yes
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934         ac_cv_header_sys_types_h_makedev=no
21935 fi
21936
21937 rm -f core conftest.err conftest.$ac_objext \
21938       conftest$ac_exeext conftest.$ac_ext
21939
21940 fi
21941 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21942 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21943
21944 if test $ac_cv_header_sys_types_h_makedev = no; then
21945 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21946   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21947 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21948 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21949   echo $ECHO_N "(cached) $ECHO_C" >&6
21950 fi
21951 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21952 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21953 else
21954   # Is the header compilable?
21955 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21956 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21957 cat >conftest.$ac_ext <<_ACEOF
21958 /* confdefs.h.  */
21959 _ACEOF
21960 cat confdefs.h >>conftest.$ac_ext
21961 cat >>conftest.$ac_ext <<_ACEOF
21962 /* end confdefs.h.  */
21963 $ac_includes_default
21964 #include <sys/mkdev.h>
21965 _ACEOF
21966 rm -f conftest.$ac_objext
21967 if { (ac_try="$ac_compile"
21968 case "(($ac_try" in
21969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21970   *) ac_try_echo=$ac_try;;
21971 esac
21972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21973   (eval "$ac_compile") 2>conftest.er1
21974   ac_status=$?
21975   grep -v '^ *+' conftest.er1 >conftest.err
21976   rm -f conftest.er1
21977   cat conftest.err >&5
21978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979   (exit $ac_status); } &&
21980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21981   { (case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_try") 2>&5
21987   ac_status=$?
21988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989   (exit $ac_status); }; } &&
21990          { ac_try='test -s conftest.$ac_objext'
21991   { (case "(($ac_try" in
21992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993   *) ac_try_echo=$ac_try;;
21994 esac
21995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21996   (eval "$ac_try") 2>&5
21997   ac_status=$?
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); }; }; then
22000   ac_header_compiler=yes
22001 else
22002   echo "$as_me: failed program was:" >&5
22003 sed 's/^/| /' conftest.$ac_ext >&5
22004
22005         ac_header_compiler=no
22006 fi
22007
22008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22010 echo "${ECHO_T}$ac_header_compiler" >&6; }
22011
22012 # Is the header present?
22013 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
22014 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
22015 cat >conftest.$ac_ext <<_ACEOF
22016 /* confdefs.h.  */
22017 _ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h.  */
22021 #include <sys/mkdev.h>
22022 _ACEOF
22023 if { (ac_try="$ac_cpp conftest.$ac_ext"
22024 case "(($ac_try" in
22025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026   *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22030   ac_status=$?
22031   grep -v '^ *+' conftest.er1 >conftest.err
22032   rm -f conftest.er1
22033   cat conftest.err >&5
22034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035   (exit $ac_status); } >/dev/null; then
22036   if test -s conftest.err; then
22037     ac_cpp_err=$ac_c_preproc_warn_flag
22038     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22039   else
22040     ac_cpp_err=
22041   fi
22042 else
22043   ac_cpp_err=yes
22044 fi
22045 if test -z "$ac_cpp_err"; then
22046   ac_header_preproc=yes
22047 else
22048   echo "$as_me: failed program was:" >&5
22049 sed 's/^/| /' conftest.$ac_ext >&5
22050
22051   ac_header_preproc=no
22052 fi
22053
22054 rm -f conftest.err conftest.$ac_ext
22055 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22056 echo "${ECHO_T}$ac_header_preproc" >&6; }
22057
22058 # So?  What about this header?
22059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22060   yes:no: )
22061     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22062 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22063     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22064 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22065     ac_header_preproc=yes
22066     ;;
22067   no:yes:* )
22068     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22069 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22070     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
22071 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
22072     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22073 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22074     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
22075 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22076     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22077 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22078     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22079 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22080
22081     ;;
22082 esac
22083 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22084 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22085 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22086   echo $ECHO_N "(cached) $ECHO_C" >&6
22087 else
22088   ac_cv_header_sys_mkdev_h=$ac_header_preproc
22089 fi
22090 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22091 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22092
22093 fi
22094 if test $ac_cv_header_sys_mkdev_h = yes; then
22095
22096 cat >>confdefs.h <<\_ACEOF
22097 #define MAJOR_IN_MKDEV 1
22098 _ACEOF
22099
22100 fi
22101
22102
22103
22104   if test $ac_cv_header_sys_mkdev_h = no; then
22105     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22106   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22107 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22108 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22109   echo $ECHO_N "(cached) $ECHO_C" >&6
22110 fi
22111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22112 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22113 else
22114   # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22116 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22118 /* confdefs.h.  */
22119 _ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h.  */
22123 $ac_includes_default
22124 #include <sys/sysmacros.h>
22125 _ACEOF
22126 rm -f conftest.$ac_objext
22127 if { (ac_try="$ac_compile"
22128 case "(($ac_try" in
22129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22130   *) ac_try_echo=$ac_try;;
22131 esac
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133   (eval "$ac_compile") 2>conftest.er1
22134   ac_status=$?
22135   grep -v '^ *+' conftest.er1 >conftest.err
22136   rm -f conftest.er1
22137   cat conftest.err >&5
22138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139   (exit $ac_status); } &&
22140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22141   { (case "(($ac_try" in
22142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143   *) ac_try_echo=$ac_try;;
22144 esac
22145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22146   (eval "$ac_try") 2>&5
22147   ac_status=$?
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); }; } &&
22150          { ac_try='test -s conftest.$ac_objext'
22151   { (case "(($ac_try" in
22152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22153   *) ac_try_echo=$ac_try;;
22154 esac
22155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22156   (eval "$ac_try") 2>&5
22157   ac_status=$?
22158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159   (exit $ac_status); }; }; then
22160   ac_header_compiler=yes
22161 else
22162   echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165         ac_header_compiler=no
22166 fi
22167
22168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22170 echo "${ECHO_T}$ac_header_compiler" >&6; }
22171
22172 # Is the header present?
22173 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22174 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h.  */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h.  */
22181 #include <sys/sysmacros.h>
22182 _ACEOF
22183 if { (ac_try="$ac_cpp conftest.$ac_ext"
22184 case "(($ac_try" in
22185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22186   *) ac_try_echo=$ac_try;;
22187 esac
22188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22189   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22190   ac_status=$?
22191   grep -v '^ *+' conftest.er1 >conftest.err
22192   rm -f conftest.er1
22193   cat conftest.err >&5
22194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195   (exit $ac_status); } >/dev/null; then
22196   if test -s conftest.err; then
22197     ac_cpp_err=$ac_c_preproc_warn_flag
22198     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22199   else
22200     ac_cpp_err=
22201   fi
22202 else
22203   ac_cpp_err=yes
22204 fi
22205 if test -z "$ac_cpp_err"; then
22206   ac_header_preproc=yes
22207 else
22208   echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211   ac_header_preproc=no
22212 fi
22213
22214 rm -f conftest.err conftest.$ac_ext
22215 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22216 echo "${ECHO_T}$ac_header_preproc" >&6; }
22217
22218 # So?  What about this header?
22219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22220   yes:no: )
22221     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22222 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22223     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22224 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22225     ac_header_preproc=yes
22226     ;;
22227   no:yes:* )
22228     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22229 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22230     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22231 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22232     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22233 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22234     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22235 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22236     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22237 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22238     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22239 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22240
22241     ;;
22242 esac
22243 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22244 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22245 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22246   echo $ECHO_N "(cached) $ECHO_C" >&6
22247 else
22248   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22249 fi
22250 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22251 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22252
22253 fi
22254 if test $ac_cv_header_sys_sysmacros_h = yes; then
22255
22256 cat >>confdefs.h <<\_ACEOF
22257 #define MAJOR_IN_SYSMACROS 1
22258 _ACEOF
22259
22260 fi
22261
22262
22263   fi
22264 fi
22265
22266
22267
22268
22269
22270
22271 ac_header_dirent=no
22272 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22273   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22274 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22275 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22277   echo $ECHO_N "(cached) $ECHO_C" >&6
22278 else
22279   cat >conftest.$ac_ext <<_ACEOF
22280 /* confdefs.h.  */
22281 _ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h.  */
22285 #include <sys/types.h>
22286 #include <$ac_hdr>
22287
22288 int
22289 main ()
22290 {
22291 if ((DIR *) 0)
22292 return 0;
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_compile") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } &&
22311          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22312   { (case "(($ac_try" in
22313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314   *) ac_try_echo=$ac_try;;
22315 esac
22316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317   (eval "$ac_try") 2>&5
22318   ac_status=$?
22319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22320   (exit $ac_status); }; } &&
22321          { ac_try='test -s conftest.$ac_objext'
22322   { (case "(($ac_try" in
22323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22324   *) ac_try_echo=$ac_try;;
22325 esac
22326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22327   (eval "$ac_try") 2>&5
22328   ac_status=$?
22329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22330   (exit $ac_status); }; }; then
22331   eval "$as_ac_Header=yes"
22332 else
22333   echo "$as_me: failed program was:" >&5
22334 sed 's/^/| /' conftest.$ac_ext >&5
22335
22336         eval "$as_ac_Header=no"
22337 fi
22338
22339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22340 fi
22341 ac_res=`eval echo '${'$as_ac_Header'}'`
22342                { echo "$as_me:$LINENO: result: $ac_res" >&5
22343 echo "${ECHO_T}$ac_res" >&6; }
22344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22345   cat >>confdefs.h <<_ACEOF
22346 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22347 _ACEOF
22348
22349 ac_header_dirent=$ac_hdr; break
22350 fi
22351
22352 done
22353 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22354 if test $ac_header_dirent = dirent.h; then
22355   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22356 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22357 if test "${ac_cv_search_opendir+set}" = set; then
22358   echo $ECHO_N "(cached) $ECHO_C" >&6
22359 else
22360   ac_func_search_save_LIBS=$LIBS
22361 cat >conftest.$ac_ext <<_ACEOF
22362 /* confdefs.h.  */
22363 _ACEOF
22364 cat confdefs.h >>conftest.$ac_ext
22365 cat >>conftest.$ac_ext <<_ACEOF
22366 /* end confdefs.h.  */
22367
22368 /* Override any GCC internal prototype to avoid an error.
22369    Use char because int might match the return type of a GCC
22370    builtin and then its argument prototype would still apply.  */
22371 #ifdef __cplusplus
22372 extern "C"
22373 #endif
22374 char opendir ();
22375 int
22376 main ()
22377 {
22378 return opendir ();
22379   ;
22380   return 0;
22381 }
22382 _ACEOF
22383 for ac_lib in '' dir; do
22384   if test -z "$ac_lib"; then
22385     ac_res="none required"
22386   else
22387     ac_res=-l$ac_lib
22388     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22389   fi
22390   rm -f conftest.$ac_objext conftest$ac_exeext
22391 if { (ac_try="$ac_link"
22392 case "(($ac_try" in
22393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22394   *) ac_try_echo=$ac_try;;
22395 esac
22396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22397   (eval "$ac_link") 2>conftest.er1
22398   ac_status=$?
22399   grep -v '^ *+' conftest.er1 >conftest.err
22400   rm -f conftest.er1
22401   cat conftest.err >&5
22402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403   (exit $ac_status); } &&
22404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22405   { (case "(($ac_try" in
22406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22407   *) ac_try_echo=$ac_try;;
22408 esac
22409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22410   (eval "$ac_try") 2>&5
22411   ac_status=$?
22412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413   (exit $ac_status); }; } &&
22414          { ac_try='test -s conftest$ac_exeext'
22415   { (case "(($ac_try" in
22416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22417   *) ac_try_echo=$ac_try;;
22418 esac
22419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22420   (eval "$ac_try") 2>&5
22421   ac_status=$?
22422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423   (exit $ac_status); }; }; then
22424   ac_cv_search_opendir=$ac_res
22425 else
22426   echo "$as_me: failed program was:" >&5
22427 sed 's/^/| /' conftest.$ac_ext >&5
22428
22429
22430 fi
22431
22432 rm -f core conftest.err conftest.$ac_objext \
22433       conftest$ac_exeext
22434   if test "${ac_cv_search_opendir+set}" = set; then
22435   break
22436 fi
22437 done
22438 if test "${ac_cv_search_opendir+set}" = set; then
22439   :
22440 else
22441   ac_cv_search_opendir=no
22442 fi
22443 rm conftest.$ac_ext
22444 LIBS=$ac_func_search_save_LIBS
22445 fi
22446 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22447 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22448 ac_res=$ac_cv_search_opendir
22449 if test "$ac_res" != no; then
22450   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22451
22452 fi
22453
22454 else
22455   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22456 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22457 if test "${ac_cv_search_opendir+set}" = set; then
22458   echo $ECHO_N "(cached) $ECHO_C" >&6
22459 else
22460   ac_func_search_save_LIBS=$LIBS
22461 cat >conftest.$ac_ext <<_ACEOF
22462 /* confdefs.h.  */
22463 _ACEOF
22464 cat confdefs.h >>conftest.$ac_ext
22465 cat >>conftest.$ac_ext <<_ACEOF
22466 /* end confdefs.h.  */
22467
22468 /* Override any GCC internal prototype to avoid an error.
22469    Use char because int might match the return type of a GCC
22470    builtin and then its argument prototype would still apply.  */
22471 #ifdef __cplusplus
22472 extern "C"
22473 #endif
22474 char opendir ();
22475 int
22476 main ()
22477 {
22478 return opendir ();
22479   ;
22480   return 0;
22481 }
22482 _ACEOF
22483 for ac_lib in '' x; do
22484   if test -z "$ac_lib"; then
22485     ac_res="none required"
22486   else
22487     ac_res=-l$ac_lib
22488     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22489   fi
22490   rm -f conftest.$ac_objext conftest$ac_exeext
22491 if { (ac_try="$ac_link"
22492 case "(($ac_try" in
22493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494   *) ac_try_echo=$ac_try;;
22495 esac
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497   (eval "$ac_link") 2>conftest.er1
22498   ac_status=$?
22499   grep -v '^ *+' conftest.er1 >conftest.err
22500   rm -f conftest.er1
22501   cat conftest.err >&5
22502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503   (exit $ac_status); } &&
22504          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22505   { (case "(($ac_try" in
22506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22507   *) ac_try_echo=$ac_try;;
22508 esac
22509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22510   (eval "$ac_try") 2>&5
22511   ac_status=$?
22512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513   (exit $ac_status); }; } &&
22514          { ac_try='test -s conftest$ac_exeext'
22515   { (case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_try") 2>&5
22521   ac_status=$?
22522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523   (exit $ac_status); }; }; then
22524   ac_cv_search_opendir=$ac_res
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529
22530 fi
22531
22532 rm -f core conftest.err conftest.$ac_objext \
22533       conftest$ac_exeext
22534   if test "${ac_cv_search_opendir+set}" = set; then
22535   break
22536 fi
22537 done
22538 if test "${ac_cv_search_opendir+set}" = set; then
22539   :
22540 else
22541   ac_cv_search_opendir=no
22542 fi
22543 rm conftest.$ac_ext
22544 LIBS=$ac_func_search_save_LIBS
22545 fi
22546 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22547 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22548 ac_res=$ac_cv_search_opendir
22549 if test "$ac_res" != no; then
22550   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22551
22552 fi
22553
22554 fi
22555
22556 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22557 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22558 if test "${ac_cv_header_stat_broken+set}" = set; then
22559   echo $ECHO_N "(cached) $ECHO_C" >&6
22560 else
22561   cat >conftest.$ac_ext <<_ACEOF
22562 /* confdefs.h.  */
22563 _ACEOF
22564 cat confdefs.h >>conftest.$ac_ext
22565 cat >>conftest.$ac_ext <<_ACEOF
22566 /* end confdefs.h.  */
22567 #include <sys/types.h>
22568 #include <sys/stat.h>
22569
22570 #if defined S_ISBLK && defined S_IFDIR
22571 # if S_ISBLK (S_IFDIR)
22572 You lose.
22573 # endif
22574 #endif
22575
22576 #if defined S_ISBLK && defined S_IFCHR
22577 # if S_ISBLK (S_IFCHR)
22578 You lose.
22579 # endif
22580 #endif
22581
22582 #if defined S_ISLNK && defined S_IFREG
22583 # if S_ISLNK (S_IFREG)
22584 You lose.
22585 # endif
22586 #endif
22587
22588 #if defined S_ISSOCK && defined S_IFREG
22589 # if S_ISSOCK (S_IFREG)
22590 You lose.
22591 # endif
22592 #endif
22593
22594 _ACEOF
22595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22596   $EGREP "You lose" >/dev/null 2>&1; then
22597   ac_cv_header_stat_broken=yes
22598 else
22599   ac_cv_header_stat_broken=no
22600 fi
22601 rm -f conftest*
22602
22603 fi
22604 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22605 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22606 if test $ac_cv_header_stat_broken = yes; then
22607
22608 cat >>confdefs.h <<\_ACEOF
22609 #define STAT_MACROS_BROKEN 1
22610 _ACEOF
22611
22612 fi
22613
22614 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22615 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22616 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22617   echo $ECHO_N "(cached) $ECHO_C" >&6
22618 else
22619   cat >conftest.$ac_ext <<_ACEOF
22620 /* confdefs.h.  */
22621 _ACEOF
22622 cat confdefs.h >>conftest.$ac_ext
22623 cat >>conftest.$ac_ext <<_ACEOF
22624 /* end confdefs.h.  */
22625 #include <sys/types.h>
22626 #include <sys/wait.h>
22627 #ifndef WEXITSTATUS
22628 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22629 #endif
22630 #ifndef WIFEXITED
22631 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22632 #endif
22633
22634 int
22635 main ()
22636 {
22637   int s;
22638   wait (&s);
22639   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22640   ;
22641   return 0;
22642 }
22643 _ACEOF
22644 rm -f conftest.$ac_objext
22645 if { (ac_try="$ac_compile"
22646 case "(($ac_try" in
22647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22648   *) ac_try_echo=$ac_try;;
22649 esac
22650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22651   (eval "$ac_compile") 2>conftest.er1
22652   ac_status=$?
22653   grep -v '^ *+' conftest.er1 >conftest.err
22654   rm -f conftest.er1
22655   cat conftest.err >&5
22656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22657   (exit $ac_status); } &&
22658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22659   { (case "(($ac_try" in
22660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661   *) ac_try_echo=$ac_try;;
22662 esac
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664   (eval "$ac_try") 2>&5
22665   ac_status=$?
22666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667   (exit $ac_status); }; } &&
22668          { ac_try='test -s conftest.$ac_objext'
22669   { (case "(($ac_try" in
22670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22671   *) ac_try_echo=$ac_try;;
22672 esac
22673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22674   (eval "$ac_try") 2>&5
22675   ac_status=$?
22676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677   (exit $ac_status); }; }; then
22678   ac_cv_header_sys_wait_h=yes
22679 else
22680   echo "$as_me: failed program was:" >&5
22681 sed 's/^/| /' conftest.$ac_ext >&5
22682
22683         ac_cv_header_sys_wait_h=no
22684 fi
22685
22686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22687 fi
22688 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22689 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22690 if test $ac_cv_header_sys_wait_h = yes; then
22691
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_SYS_WAIT_H 1
22694 _ACEOF
22695
22696 fi
22697
22698 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22699 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22700 if test "${ac_cv_header_time+set}" = set; then
22701   echo $ECHO_N "(cached) $ECHO_C" >&6
22702 else
22703   cat >conftest.$ac_ext <<_ACEOF
22704 /* confdefs.h.  */
22705 _ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h.  */
22709 #include <sys/types.h>
22710 #include <sys/time.h>
22711 #include <time.h>
22712
22713 int
22714 main ()
22715 {
22716 if ((struct tm *) 0)
22717 return 0;
22718   ;
22719   return 0;
22720 }
22721 _ACEOF
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726   *) ac_try_echo=$ac_try;;
22727 esac
22728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22729   (eval "$ac_compile") 2>conftest.er1
22730   ac_status=$?
22731   grep -v '^ *+' conftest.er1 >conftest.err
22732   rm -f conftest.er1
22733   cat conftest.err >&5
22734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22735   (exit $ac_status); } &&
22736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22737   { (case "(($ac_try" in
22738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739   *) ac_try_echo=$ac_try;;
22740 esac
22741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22742   (eval "$ac_try") 2>&5
22743   ac_status=$?
22744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745   (exit $ac_status); }; } &&
22746          { ac_try='test -s conftest.$ac_objext'
22747   { (case "(($ac_try" in
22748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22749   *) ac_try_echo=$ac_try;;
22750 esac
22751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22752   (eval "$ac_try") 2>&5
22753   ac_status=$?
22754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755   (exit $ac_status); }; }; then
22756   ac_cv_header_time=yes
22757 else
22758   echo "$as_me: failed program was:" >&5
22759 sed 's/^/| /' conftest.$ac_ext >&5
22760
22761         ac_cv_header_time=no
22762 fi
22763
22764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765 fi
22766 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22767 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22768 if test $ac_cv_header_time = yes; then
22769
22770 cat >>confdefs.h <<\_ACEOF
22771 #define TIME_WITH_SYS_TIME 1
22772 _ACEOF
22773
22774 fi
22775
22776 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22777 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22778 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22779   echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781   cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787 $ac_includes_default
22788 int
22789 main ()
22790 {
22791 static struct stat ac_aggr;
22792 if (ac_aggr.st_blksize)
22793 return 0;
22794   ;
22795   return 0;
22796 }
22797 _ACEOF
22798 rm -f conftest.$ac_objext
22799 if { (ac_try="$ac_compile"
22800 case "(($ac_try" in
22801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802   *) ac_try_echo=$ac_try;;
22803 esac
22804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22805   (eval "$ac_compile") 2>conftest.er1
22806   ac_status=$?
22807   grep -v '^ *+' conftest.er1 >conftest.err
22808   rm -f conftest.er1
22809   cat conftest.err >&5
22810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811   (exit $ac_status); } &&
22812          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22813   { (case "(($ac_try" in
22814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22815   *) ac_try_echo=$ac_try;;
22816 esac
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818   (eval "$ac_try") 2>&5
22819   ac_status=$?
22820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821   (exit $ac_status); }; } &&
22822          { ac_try='test -s conftest.$ac_objext'
22823   { (case "(($ac_try" in
22824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825   *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828   (eval "$ac_try") 2>&5
22829   ac_status=$?
22830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831   (exit $ac_status); }; }; then
22832   ac_cv_member_struct_stat_st_blksize=yes
22833 else
22834   echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.$ac_ext >&5
22836
22837         cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 $ac_includes_default
22844 int
22845 main ()
22846 {
22847 static struct stat ac_aggr;
22848 if (sizeof ac_aggr.st_blksize)
22849 return 0;
22850   ;
22851   return 0;
22852 }
22853 _ACEOF
22854 rm -f conftest.$ac_objext
22855 if { (ac_try="$ac_compile"
22856 case "(($ac_try" in
22857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858   *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861   (eval "$ac_compile") 2>conftest.er1
22862   ac_status=$?
22863   grep -v '^ *+' conftest.er1 >conftest.err
22864   rm -f conftest.er1
22865   cat conftest.err >&5
22866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22867   (exit $ac_status); } &&
22868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22869   { (case "(($ac_try" in
22870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22871   *) ac_try_echo=$ac_try;;
22872 esac
22873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22874   (eval "$ac_try") 2>&5
22875   ac_status=$?
22876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877   (exit $ac_status); }; } &&
22878          { ac_try='test -s conftest.$ac_objext'
22879   { (case "(($ac_try" in
22880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22881   *) ac_try_echo=$ac_try;;
22882 esac
22883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22884   (eval "$ac_try") 2>&5
22885   ac_status=$?
22886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22887   (exit $ac_status); }; }; then
22888   ac_cv_member_struct_stat_st_blksize=yes
22889 else
22890   echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22892
22893         ac_cv_member_struct_stat_st_blksize=no
22894 fi
22895
22896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22897 fi
22898
22899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22900 fi
22901 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22902 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22903 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22904
22905 cat >>confdefs.h <<_ACEOF
22906 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22907 _ACEOF
22908
22909
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_ST_BLKSIZE 1
22912 _ACEOF
22913
22914 fi
22915
22916
22917 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22918 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22919 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22920   echo $ECHO_N "(cached) $ECHO_C" >&6
22921 else
22922   cat >conftest.$ac_ext <<_ACEOF
22923 /* confdefs.h.  */
22924 _ACEOF
22925 cat confdefs.h >>conftest.$ac_ext
22926 cat >>conftest.$ac_ext <<_ACEOF
22927 /* end confdefs.h.  */
22928 $ac_includes_default
22929 int
22930 main ()
22931 {
22932 static struct stat ac_aggr;
22933 if (ac_aggr.st_blocks)
22934 return 0;
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946   (eval "$ac_compile") 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } &&
22953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22954   { (case "(($ac_try" in
22955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956   *) ac_try_echo=$ac_try;;
22957 esac
22958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22959   (eval "$ac_try") 2>&5
22960   ac_status=$?
22961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962   (exit $ac_status); }; } &&
22963          { ac_try='test -s conftest.$ac_objext'
22964   { (case "(($ac_try" in
22965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22966   *) ac_try_echo=$ac_try;;
22967 esac
22968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22969   (eval "$ac_try") 2>&5
22970   ac_status=$?
22971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22972   (exit $ac_status); }; }; then
22973   ac_cv_member_struct_stat_st_blocks=yes
22974 else
22975   echo "$as_me: failed program was:" >&5
22976 sed 's/^/| /' conftest.$ac_ext >&5
22977
22978         cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h.  */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h.  */
22984 $ac_includes_default
22985 int
22986 main ()
22987 {
22988 static struct stat ac_aggr;
22989 if (sizeof ac_aggr.st_blocks)
22990 return 0;
22991   ;
22992   return 0;
22993 }
22994 _ACEOF
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999   *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002   (eval "$ac_compile") 2>conftest.er1
23003   ac_status=$?
23004   grep -v '^ *+' conftest.er1 >conftest.err
23005   rm -f conftest.er1
23006   cat conftest.err >&5
23007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008   (exit $ac_status); } &&
23009          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23010   { (case "(($ac_try" in
23011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012   *) ac_try_echo=$ac_try;;
23013 esac
23014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23015   (eval "$ac_try") 2>&5
23016   ac_status=$?
23017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23018   (exit $ac_status); }; } &&
23019          { ac_try='test -s conftest.$ac_objext'
23020   { (case "(($ac_try" in
23021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23022   *) ac_try_echo=$ac_try;;
23023 esac
23024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23025   (eval "$ac_try") 2>&5
23026   ac_status=$?
23027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23028   (exit $ac_status); }; }; then
23029   ac_cv_member_struct_stat_st_blocks=yes
23030 else
23031   echo "$as_me: failed program was:" >&5
23032 sed 's/^/| /' conftest.$ac_ext >&5
23033
23034         ac_cv_member_struct_stat_st_blocks=no
23035 fi
23036
23037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 fi
23039
23040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23041 fi
23042 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23043 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23044 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23045
23046 cat >>confdefs.h <<_ACEOF
23047 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23048 _ACEOF
23049
23050
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_ST_BLOCKS 1
23053 _ACEOF
23054
23055 else
23056   case " $LIBOBJS " in
23057   *" fileblocks.$ac_objext "* ) ;;
23058   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23059  ;;
23060 esac
23061
23062 fi
23063
23064
23065 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23066 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23067 if test "${ac_cv_struct_tm+set}" = set; then
23068   echo $ECHO_N "(cached) $ECHO_C" >&6
23069 else
23070   cat >conftest.$ac_ext <<_ACEOF
23071 /* confdefs.h.  */
23072 _ACEOF
23073 cat confdefs.h >>conftest.$ac_ext
23074 cat >>conftest.$ac_ext <<_ACEOF
23075 /* end confdefs.h.  */
23076 #include <sys/types.h>
23077 #include <time.h>
23078
23079 int
23080 main ()
23081 {
23082 struct tm *tp; tp->tm_sec;
23083   ;
23084   return 0;
23085 }
23086 _ACEOF
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091   *) ac_try_echo=$ac_try;;
23092 esac
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094   (eval "$ac_compile") 2>conftest.er1
23095   ac_status=$?
23096   grep -v '^ *+' conftest.er1 >conftest.err
23097   rm -f conftest.er1
23098   cat conftest.err >&5
23099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100   (exit $ac_status); } &&
23101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23102   { (case "(($ac_try" in
23103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104   *) ac_try_echo=$ac_try;;
23105 esac
23106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107   (eval "$ac_try") 2>&5
23108   ac_status=$?
23109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110   (exit $ac_status); }; } &&
23111          { ac_try='test -s conftest.$ac_objext'
23112   { (case "(($ac_try" in
23113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114   *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117   (eval "$ac_try") 2>&5
23118   ac_status=$?
23119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120   (exit $ac_status); }; }; then
23121   ac_cv_struct_tm=time.h
23122 else
23123   echo "$as_me: failed program was:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23125
23126         ac_cv_struct_tm=sys/time.h
23127 fi
23128
23129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23130 fi
23131 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23132 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23133 if test $ac_cv_struct_tm = sys/time.h; then
23134
23135 cat >>confdefs.h <<\_ACEOF
23136 #define TM_IN_SYS_TIME 1
23137 _ACEOF
23138
23139 fi
23140
23141 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23142 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23143 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23144   echo $ECHO_N "(cached) $ECHO_C" >&6
23145 else
23146   cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h.  */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h.  */
23152 #include <sys/types.h>
23153 #include <$ac_cv_struct_tm>
23154
23155
23156 int
23157 main ()
23158 {
23159 static struct tm ac_aggr;
23160 if (ac_aggr.tm_zone)
23161 return 0;
23162   ;
23163   return 0;
23164 }
23165 _ACEOF
23166 rm -f conftest.$ac_objext
23167 if { (ac_try="$ac_compile"
23168 case "(($ac_try" in
23169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23170   *) ac_try_echo=$ac_try;;
23171 esac
23172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23173   (eval "$ac_compile") 2>conftest.er1
23174   ac_status=$?
23175   grep -v '^ *+' conftest.er1 >conftest.err
23176   rm -f conftest.er1
23177   cat conftest.err >&5
23178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23179   (exit $ac_status); } &&
23180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23181   { (case "(($ac_try" in
23182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23183   *) ac_try_echo=$ac_try;;
23184 esac
23185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23186   (eval "$ac_try") 2>&5
23187   ac_status=$?
23188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189   (exit $ac_status); }; } &&
23190          { ac_try='test -s conftest.$ac_objext'
23191   { (case "(($ac_try" in
23192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193   *) ac_try_echo=$ac_try;;
23194 esac
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196   (eval "$ac_try") 2>&5
23197   ac_status=$?
23198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23199   (exit $ac_status); }; }; then
23200   ac_cv_member_struct_tm_tm_zone=yes
23201 else
23202   echo "$as_me: failed program was:" >&5
23203 sed 's/^/| /' conftest.$ac_ext >&5
23204
23205         cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h.  */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h.  */
23211 #include <sys/types.h>
23212 #include <$ac_cv_struct_tm>
23213
23214
23215 int
23216 main ()
23217 {
23218 static struct tm ac_aggr;
23219 if (sizeof ac_aggr.tm_zone)
23220 return 0;
23221   ;
23222   return 0;
23223 }
23224 _ACEOF
23225 rm -f conftest.$ac_objext
23226 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23233   ac_status=$?
23234   grep -v '^ *+' conftest.er1 >conftest.err
23235   rm -f conftest.er1
23236   cat conftest.err >&5
23237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238   (exit $ac_status); } &&
23239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23240   { (case "(($ac_try" in
23241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242   *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245   (eval "$ac_try") 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; } &&
23249          { ac_try='test -s conftest.$ac_objext'
23250   { (case "(($ac_try" in
23251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23252   *) ac_try_echo=$ac_try;;
23253 esac
23254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23255   (eval "$ac_try") 2>&5
23256   ac_status=$?
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); }; }; then
23259   ac_cv_member_struct_tm_tm_zone=yes
23260 else
23261   echo "$as_me: failed program was:" >&5
23262 sed 's/^/| /' conftest.$ac_ext >&5
23263
23264         ac_cv_member_struct_tm_tm_zone=no
23265 fi
23266
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268 fi
23269
23270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271 fi
23272 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23273 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23274 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23275
23276 cat >>confdefs.h <<_ACEOF
23277 #define HAVE_STRUCT_TM_TM_ZONE 1
23278 _ACEOF
23279
23280
23281 fi
23282
23283 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23284
23285 cat >>confdefs.h <<\_ACEOF
23286 #define HAVE_TM_ZONE 1
23287 _ACEOF
23288
23289 else
23290   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23291 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23292 if test "${ac_cv_have_decl_tzname+set}" = set; then
23293   echo $ECHO_N "(cached) $ECHO_C" >&6
23294 else
23295   cat >conftest.$ac_ext <<_ACEOF
23296 /* confdefs.h.  */
23297 _ACEOF
23298 cat confdefs.h >>conftest.$ac_ext
23299 cat >>conftest.$ac_ext <<_ACEOF
23300 /* end confdefs.h.  */
23301 #include <time.h>
23302
23303 int
23304 main ()
23305 {
23306 #ifndef tzname
23307   char *p = (char *) tzname;
23308   return !p;
23309 #endif
23310
23311   ;
23312   return 0;
23313 }
23314 _ACEOF
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319   *) ac_try_echo=$ac_try;;
23320 esac
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322   (eval "$ac_compile") 2>conftest.er1
23323   ac_status=$?
23324   grep -v '^ *+' conftest.er1 >conftest.err
23325   rm -f conftest.er1
23326   cat conftest.err >&5
23327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328   (exit $ac_status); } &&
23329          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23330   { (case "(($ac_try" in
23331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23332   *) ac_try_echo=$ac_try;;
23333 esac
23334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23335   (eval "$ac_try") 2>&5
23336   ac_status=$?
23337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338   (exit $ac_status); }; } &&
23339          { ac_try='test -s conftest.$ac_objext'
23340   { (case "(($ac_try" in
23341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23342   *) ac_try_echo=$ac_try;;
23343 esac
23344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23345   (eval "$ac_try") 2>&5
23346   ac_status=$?
23347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348   (exit $ac_status); }; }; then
23349   ac_cv_have_decl_tzname=yes
23350 else
23351   echo "$as_me: failed program was:" >&5
23352 sed 's/^/| /' conftest.$ac_ext >&5
23353
23354         ac_cv_have_decl_tzname=no
23355 fi
23356
23357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23358 fi
23359 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23360 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23361 if test $ac_cv_have_decl_tzname = yes; then
23362
23363 cat >>confdefs.h <<_ACEOF
23364 #define HAVE_DECL_TZNAME 1
23365 _ACEOF
23366
23367
23368 else
23369   cat >>confdefs.h <<_ACEOF
23370 #define HAVE_DECL_TZNAME 0
23371 _ACEOF
23372
23373
23374 fi
23375
23376
23377   { echo "$as_me:$LINENO: checking for tzname" >&5
23378 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23379 if test "${ac_cv_var_tzname+set}" = set; then
23380   echo $ECHO_N "(cached) $ECHO_C" >&6
23381 else
23382   cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h.  */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h.  */
23388 #include <time.h>
23389 #if !HAVE_DECL_TZNAME
23390 extern char *tzname[];
23391 #endif
23392
23393 int
23394 main ()
23395 {
23396 return tzname[0][0];
23397   ;
23398   return 0;
23399 }
23400 _ACEOF
23401 rm -f conftest.$ac_objext conftest$ac_exeext
23402 if { (ac_try="$ac_link"
23403 case "(($ac_try" in
23404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23405   *) ac_try_echo=$ac_try;;
23406 esac
23407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23408   (eval "$ac_link") 2>conftest.er1
23409   ac_status=$?
23410   grep -v '^ *+' conftest.er1 >conftest.err
23411   rm -f conftest.er1
23412   cat conftest.err >&5
23413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414   (exit $ac_status); } &&
23415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23416   { (case "(($ac_try" in
23417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23418   *) ac_try_echo=$ac_try;;
23419 esac
23420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23421   (eval "$ac_try") 2>&5
23422   ac_status=$?
23423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424   (exit $ac_status); }; } &&
23425          { ac_try='test -s conftest$ac_exeext'
23426   { (case "(($ac_try" in
23427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23428   *) ac_try_echo=$ac_try;;
23429 esac
23430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23431   (eval "$ac_try") 2>&5
23432   ac_status=$?
23433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23434   (exit $ac_status); }; }; then
23435   ac_cv_var_tzname=yes
23436 else
23437   echo "$as_me: failed program was:" >&5
23438 sed 's/^/| /' conftest.$ac_ext >&5
23439
23440         ac_cv_var_tzname=no
23441 fi
23442
23443 rm -f core conftest.err conftest.$ac_objext \
23444       conftest$ac_exeext conftest.$ac_ext
23445 fi
23446 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23447 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23448   if test $ac_cv_var_tzname = yes; then
23449
23450 cat >>confdefs.h <<\_ACEOF
23451 #define HAVE_TZNAME 1
23452 _ACEOF
23453
23454   fi
23455 fi
23456
23457
23458 { echo "$as_me:$LINENO: checking for utime.h" >&5
23459 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23460 if test "${ba_cv_header_utime_h+set}" = set; then
23461   echo $ECHO_N "(cached) $ECHO_C" >&6
23462 else
23463   cat >conftest.$ac_ext <<_ACEOF
23464 /* confdefs.h.  */
23465 _ACEOF
23466 cat confdefs.h >>conftest.$ac_ext
23467 cat >>conftest.$ac_ext <<_ACEOF
23468 /* end confdefs.h.  */
23469
23470 #include <sys/types.h>
23471 #include <utime.h>
23472 int
23473 main ()
23474 {
23475 struct utimbuf foo
23476   ;
23477   return 0;
23478 }
23479 _ACEOF
23480 rm -f conftest.$ac_objext
23481 if { (ac_try="$ac_compile"
23482 case "(($ac_try" in
23483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23484   *) ac_try_echo=$ac_try;;
23485 esac
23486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23487   (eval "$ac_compile") 2>conftest.er1
23488   ac_status=$?
23489   grep -v '^ *+' conftest.er1 >conftest.err
23490   rm -f conftest.er1
23491   cat conftest.err >&5
23492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493   (exit $ac_status); } &&
23494          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23495   { (case "(($ac_try" in
23496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23497   *) ac_try_echo=$ac_try;;
23498 esac
23499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23500   (eval "$ac_try") 2>&5
23501   ac_status=$?
23502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23503   (exit $ac_status); }; } &&
23504          { ac_try='test -s conftest.$ac_objext'
23505   { (case "(($ac_try" in
23506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507   *) ac_try_echo=$ac_try;;
23508 esac
23509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23510   (eval "$ac_try") 2>&5
23511   ac_status=$?
23512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513   (exit $ac_status); }; }; then
23514   ba_cv_header_utime_h=yes
23515 else
23516   echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.$ac_ext >&5
23518
23519         ba_cv_header_utime_h=no
23520 fi
23521
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 fi
23524 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23525 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23526 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23527 #define HAVE_UTIME_H 1
23528 _ACEOF
23529
23530
23531 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23532 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23533 if test "${ba_cv_header_socklen_t+set}" = set; then
23534   echo $ECHO_N "(cached) $ECHO_C" >&6
23535 else
23536   cat >conftest.$ac_ext <<_ACEOF
23537 /* confdefs.h.  */
23538 _ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h.  */
23542
23543 #include <sys/types.h>
23544 #include <sys/socket.h>
23545 int
23546 main ()
23547 {
23548 socklen_t x
23549   ;
23550   return 0;
23551 }
23552 _ACEOF
23553 rm -f conftest.$ac_objext
23554 if { (ac_try="$ac_compile"
23555 case "(($ac_try" in
23556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557   *) ac_try_echo=$ac_try;;
23558 esac
23559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23560   (eval "$ac_compile") 2>conftest.er1
23561   ac_status=$?
23562   grep -v '^ *+' conftest.er1 >conftest.err
23563   rm -f conftest.er1
23564   cat conftest.err >&5
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); } &&
23567          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23568   { (case "(($ac_try" in
23569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570   *) ac_try_echo=$ac_try;;
23571 esac
23572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23573   (eval "$ac_try") 2>&5
23574   ac_status=$?
23575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23576   (exit $ac_status); }; } &&
23577          { ac_try='test -s conftest.$ac_objext'
23578   { (case "(($ac_try" in
23579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23580   *) ac_try_echo=$ac_try;;
23581 esac
23582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23583   (eval "$ac_try") 2>&5
23584   ac_status=$?
23585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586   (exit $ac_status); }; }; then
23587   ba_cv_header_socklen_t=yes
23588 else
23589   echo "$as_me: failed program was:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23591
23592         ba_cv_header_socklen_t=no
23593 fi
23594
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23596 fi
23597 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23598 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23599 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23600 #define HAVE_SOCKLEN_T 1
23601 _ACEOF
23602
23603
23604 { echo "$as_me:$LINENO: checking for bigendian" >&5
23605 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23606 if test "${ba_cv_bigendian+set}" = set; then
23607   echo $ECHO_N "(cached) $ECHO_C" >&6
23608 else
23609   if test "$cross_compiling" = yes; then
23610   ba_cv_bigendian=no
23611 else
23612   cat >conftest.$ac_ext <<_ACEOF
23613 /* confdefs.h.  */
23614 _ACEOF
23615 cat confdefs.h >>conftest.$ac_ext
23616 cat >>conftest.$ac_ext <<_ACEOF
23617 /* end confdefs.h.  */
23618 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23619 _ACEOF
23620 rm -f conftest$ac_exeext
23621 if { (ac_try="$ac_link"
23622 case "(($ac_try" in
23623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624   *) ac_try_echo=$ac_try;;
23625 esac
23626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23627   (eval "$ac_link") 2>&5
23628   ac_status=$?
23629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23631   { (case "(($ac_try" in
23632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633   *) ac_try_echo=$ac_try;;
23634 esac
23635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23636   (eval "$ac_try") 2>&5
23637   ac_status=$?
23638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23639   (exit $ac_status); }; }; then
23640   ba_cv_bigendian=yes
23641 else
23642   echo "$as_me: program exited with status $ac_status" >&5
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646 ( exit $ac_status )
23647 ba_cv_bigendian=no
23648 fi
23649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23650 fi
23651
23652
23653 fi
23654 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23655 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23656 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23657 #define HAVE_BIGENDIAN 1
23658 _ACEOF
23659
23660
23661 ac_ext=cpp
23662 ac_cpp='$CXXCPP $CPPFLAGS'
23663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23666
23667
23668 { echo "$as_me:$LINENO: checking for typeof" >&5
23669 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23670 if test "${ba_cv_have_typeof+set}" = set; then
23671   echo $ECHO_N "(cached) $ECHO_C" >&6
23672 else
23673   if test "$cross_compiling" = yes; then
23674   ba_cv_have_typeof=no
23675 else
23676   cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h.  */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h.  */
23682 main(){char *a = 0; a = (typeof a)a;}
23683 _ACEOF
23684 rm -f conftest$ac_exeext
23685 if { (ac_try="$ac_link"
23686 case "(($ac_try" in
23687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688   *) ac_try_echo=$ac_try;;
23689 esac
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691   (eval "$ac_link") 2>&5
23692   ac_status=$?
23693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23695   { (case "(($ac_try" in
23696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23697   *) ac_try_echo=$ac_try;;
23698 esac
23699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23700   (eval "$ac_try") 2>&5
23701   ac_status=$?
23702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23703   (exit $ac_status); }; }; then
23704   ba_cv_have_typeof=yes
23705 else
23706   echo "$as_me: program exited with status $ac_status" >&5
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23709
23710 ( exit $ac_status )
23711 ba_cv_have_typeof=no
23712 fi
23713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23714 fi
23715
23716
23717 fi
23718 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23719 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23720 test $ba_cv_have_typeof = yes &&
23721 cat >>confdefs.h <<\_ACEOF
23722 #define HAVE_TYPEOF 1
23723 _ACEOF
23724
23725 ac_ext=c
23726 ac_cpp='$CPP $CPPFLAGS'
23727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23730
23731
23732 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23734 if test "${ac_cv_c_const+set}" = set; then
23735   echo $ECHO_N "(cached) $ECHO_C" >&6
23736 else
23737   cat >conftest.$ac_ext <<_ACEOF
23738 /* confdefs.h.  */
23739 _ACEOF
23740 cat confdefs.h >>conftest.$ac_ext
23741 cat >>conftest.$ac_ext <<_ACEOF
23742 /* end confdefs.h.  */
23743
23744 int
23745 main ()
23746 {
23747 /* FIXME: Include the comments suggested by Paul. */
23748 #ifndef __cplusplus
23749   /* Ultrix mips cc rejects this.  */
23750   typedef int charset[2];
23751   const charset x;
23752   /* SunOS 4.1.1 cc rejects this.  */
23753   char const *const *ccp;
23754   char **p;
23755   /* NEC SVR4.0.2 mips cc rejects this.  */
23756   struct point {int x, y;};
23757   static struct point const zero = {0,0};
23758   /* AIX XL C 1.02.0.0 rejects this.
23759      It does not let you subtract one const X* pointer from another in
23760      an arm of an if-expression whose if-part is not a constant
23761      expression */
23762   const char *g = "string";
23763   ccp = &g + (g ? g-g : 0);
23764   /* HPUX 7.0 cc rejects these. */
23765   ++ccp;
23766   p = (char**) ccp;
23767   ccp = (char const *const *) p;
23768   { /* SCO 3.2v4 cc rejects this.  */
23769     char *t;
23770     char const *s = 0 ? (char *) 0 : (char const *) 0;
23771
23772     *t++ = 0;
23773     if (s) return 0;
23774   }
23775   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23776     int x[] = {25, 17};
23777     const int *foo = &x[0];
23778     ++foo;
23779   }
23780   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23781     typedef const int *iptr;
23782     iptr p = 0;
23783     ++p;
23784   }
23785   { /* AIX XL C 1.02.0.0 rejects this saying
23786        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23787     struct s { int j; const int *ap[3]; };
23788     struct s *b; b->j = 5;
23789   }
23790   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23791     const int foo = 10;
23792     if (!foo) return 0;
23793   }
23794   return !x[0] && !zero.x;
23795 #endif
23796
23797   ;
23798   return 0;
23799 }
23800 _ACEOF
23801 rm -f conftest.$ac_objext
23802 if { (ac_try="$ac_compile"
23803 case "(($ac_try" in
23804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805   *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808   (eval "$ac_compile") 2>conftest.er1
23809   ac_status=$?
23810   grep -v '^ *+' conftest.er1 >conftest.err
23811   rm -f conftest.er1
23812   cat conftest.err >&5
23813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814   (exit $ac_status); } &&
23815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23816   { (case "(($ac_try" in
23817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23818   *) ac_try_echo=$ac_try;;
23819 esac
23820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23821   (eval "$ac_try") 2>&5
23822   ac_status=$?
23823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824   (exit $ac_status); }; } &&
23825          { ac_try='test -s conftest.$ac_objext'
23826   { (case "(($ac_try" in
23827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23828   *) ac_try_echo=$ac_try;;
23829 esac
23830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23831   (eval "$ac_try") 2>&5
23832   ac_status=$?
23833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23834   (exit $ac_status); }; }; then
23835   ac_cv_c_const=yes
23836 else
23837   echo "$as_me: failed program was:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23839
23840         ac_cv_c_const=no
23841 fi
23842
23843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23844 fi
23845 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23846 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23847 if test $ac_cv_c_const = no; then
23848
23849 cat >>confdefs.h <<\_ACEOF
23850 #define const
23851 _ACEOF
23852
23853 fi
23854
23855
23856
23857 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23858 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23859 fstype=no
23860 # The order of these tests is important.
23861 cat >conftest.$ac_ext <<_ACEOF
23862 /* confdefs.h.  */
23863 _ACEOF
23864 cat confdefs.h >>conftest.$ac_ext
23865 cat >>conftest.$ac_ext <<_ACEOF
23866 /* end confdefs.h.  */
23867 #include <sys/statvfs.h>
23868 #include <sys/fstyp.h>
23869 _ACEOF
23870 if { (ac_try="$ac_cpp conftest.$ac_ext"
23871 case "(($ac_try" in
23872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23873   *) ac_try_echo=$ac_try;;
23874 esac
23875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23877   ac_status=$?
23878   grep -v '^ *+' conftest.er1 >conftest.err
23879   rm -f conftest.er1
23880   cat conftest.err >&5
23881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23882   (exit $ac_status); } >/dev/null; then
23883   if test -s conftest.err; then
23884     ac_cpp_err=$ac_c_preproc_warn_flag
23885     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23886   else
23887     ac_cpp_err=
23888   fi
23889 else
23890   ac_cpp_err=yes
23891 fi
23892 if test -z "$ac_cpp_err"; then
23893   cat >>confdefs.h <<\_ACEOF
23894 #define FSTYPE_STATVFS 1
23895 _ACEOF
23896  fstype=SVR4
23897 else
23898   echo "$as_me: failed program was:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23900
23901
23902 fi
23903
23904 rm -f conftest.err conftest.$ac_ext
23905 if test $fstype = no; then
23906 cat >conftest.$ac_ext <<_ACEOF
23907 /* confdefs.h.  */
23908 _ACEOF
23909 cat confdefs.h >>conftest.$ac_ext
23910 cat >>conftest.$ac_ext <<_ACEOF
23911 /* end confdefs.h.  */
23912 #include <sys/statfs.h>
23913 #include <sys/fstyp.h>
23914 _ACEOF
23915 if { (ac_try="$ac_cpp conftest.$ac_ext"
23916 case "(($ac_try" in
23917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918   *) ac_try_echo=$ac_try;;
23919 esac
23920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23922   ac_status=$?
23923   grep -v '^ *+' conftest.er1 >conftest.err
23924   rm -f conftest.er1
23925   cat conftest.err >&5
23926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23927   (exit $ac_status); } >/dev/null; then
23928   if test -s conftest.err; then
23929     ac_cpp_err=$ac_c_preproc_warn_flag
23930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23931   else
23932     ac_cpp_err=
23933   fi
23934 else
23935   ac_cpp_err=yes
23936 fi
23937 if test -z "$ac_cpp_err"; then
23938   cat >>confdefs.h <<\_ACEOF
23939 #define FSTYPE_USG_STATFS 1
23940 _ACEOF
23941  fstype=SVR3
23942 else
23943   echo "$as_me: failed program was:" >&5
23944 sed 's/^/| /' conftest.$ac_ext >&5
23945
23946
23947 fi
23948
23949 rm -f conftest.err conftest.$ac_ext
23950 fi
23951 if test $fstype = no; then
23952 cat >conftest.$ac_ext <<_ACEOF
23953 /* confdefs.h.  */
23954 _ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h.  */
23958 #include <sys/statfs.h>
23959 #include <sys/vmount.h>
23960 _ACEOF
23961 if { (ac_try="$ac_cpp conftest.$ac_ext"
23962 case "(($ac_try" in
23963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964   *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23968   ac_status=$?
23969   grep -v '^ *+' conftest.er1 >conftest.err
23970   rm -f conftest.er1
23971   cat conftest.err >&5
23972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23973   (exit $ac_status); } >/dev/null; then
23974   if test -s conftest.err; then
23975     ac_cpp_err=$ac_c_preproc_warn_flag
23976     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23977   else
23978     ac_cpp_err=
23979   fi
23980 else
23981   ac_cpp_err=yes
23982 fi
23983 if test -z "$ac_cpp_err"; then
23984   cat >>confdefs.h <<\_ACEOF
23985 #define FSTYPE_AIX_STATFS 1
23986 _ACEOF
23987  fstype=AIX
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992
23993 fi
23994
23995 rm -f conftest.err conftest.$ac_ext
23996 fi
23997 if test $fstype = no; then
23998 cat >conftest.$ac_ext <<_ACEOF
23999 /* confdefs.h.  */
24000 _ACEOF
24001 cat confdefs.h >>conftest.$ac_ext
24002 cat >>conftest.$ac_ext <<_ACEOF
24003 /* end confdefs.h.  */
24004 #include <mntent.h>
24005 _ACEOF
24006 if { (ac_try="$ac_cpp conftest.$ac_ext"
24007 case "(($ac_try" in
24008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24009   *) ac_try_echo=$ac_try;;
24010 esac
24011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24012   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24013   ac_status=$?
24014   grep -v '^ *+' conftest.er1 >conftest.err
24015   rm -f conftest.er1
24016   cat conftest.err >&5
24017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24018   (exit $ac_status); } >/dev/null; then
24019   if test -s conftest.err; then
24020     ac_cpp_err=$ac_c_preproc_warn_flag
24021     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24022   else
24023     ac_cpp_err=
24024   fi
24025 else
24026   ac_cpp_err=yes
24027 fi
24028 if test -z "$ac_cpp_err"; then
24029   cat >>confdefs.h <<\_ACEOF
24030 #define FSTYPE_MNTENT 1
24031 _ACEOF
24032  fstype=4.3BSD
24033 else
24034   echo "$as_me: failed program was:" >&5
24035 sed 's/^/| /' conftest.$ac_ext >&5
24036
24037
24038 fi
24039
24040 rm -f conftest.err conftest.$ac_ext
24041 fi
24042 if test $fstype = no; then
24043 cat >conftest.$ac_ext <<_ACEOF
24044 /* confdefs.h.  */
24045 _ACEOF
24046 cat confdefs.h >>conftest.$ac_ext
24047 cat >>conftest.$ac_ext <<_ACEOF
24048 /* end confdefs.h.  */
24049 #include <sys/mount.h>
24050
24051 _ACEOF
24052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24053   $EGREP "f_type;" >/dev/null 2>&1; then
24054   cat >>confdefs.h <<\_ACEOF
24055 #define FSTYPE_STATFS 1
24056 _ACEOF
24057  fstype=4.4BSD/OSF1
24058 fi
24059 rm -f conftest*
24060
24061 fi
24062 if test $fstype = no; then
24063 cat >conftest.$ac_ext <<_ACEOF
24064 /* confdefs.h.  */
24065 _ACEOF
24066 cat confdefs.h >>conftest.$ac_ext
24067 cat >>conftest.$ac_ext <<_ACEOF
24068 /* end confdefs.h.  */
24069 #include <sys/mount.h>
24070 #include <sys/fs_types.h>
24071 _ACEOF
24072 if { (ac_try="$ac_cpp conftest.$ac_ext"
24073 case "(($ac_try" in
24074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24075   *) ac_try_echo=$ac_try;;
24076 esac
24077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24079   ac_status=$?
24080   grep -v '^ *+' conftest.er1 >conftest.err
24081   rm -f conftest.er1
24082   cat conftest.err >&5
24083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084   (exit $ac_status); } >/dev/null; then
24085   if test -s conftest.err; then
24086     ac_cpp_err=$ac_c_preproc_warn_flag
24087     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24088   else
24089     ac_cpp_err=
24090   fi
24091 else
24092   ac_cpp_err=yes
24093 fi
24094 if test -z "$ac_cpp_err"; then
24095   cat >>confdefs.h <<\_ACEOF
24096 #define FSTYPE_GETMNT 1
24097 _ACEOF
24098  fstype=Ultrix
24099 else
24100   echo "$as_me: failed program was:" >&5
24101 sed 's/^/| /' conftest.$ac_ext >&5
24102
24103
24104 fi
24105
24106 rm -f conftest.err conftest.$ac_ext
24107 fi
24108 { echo "$as_me:$LINENO: result: $fstype" >&5
24109 echo "${ECHO_T}$fstype" >&6; }
24110
24111 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24112   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24113 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24114 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24115   echo $ECHO_N "(cached) $ECHO_C" >&6
24116 fi
24117 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24118 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24119 else
24120   # Is the header compilable?
24121 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24122 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24123 cat >conftest.$ac_ext <<_ACEOF
24124 /* confdefs.h.  */
24125 _ACEOF
24126 cat confdefs.h >>conftest.$ac_ext
24127 cat >>conftest.$ac_ext <<_ACEOF
24128 /* end confdefs.h.  */
24129 $ac_includes_default
24130 #include <sys/statvfs.h>
24131 _ACEOF
24132 rm -f conftest.$ac_objext
24133 if { (ac_try="$ac_compile"
24134 case "(($ac_try" in
24135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24136   *) ac_try_echo=$ac_try;;
24137 esac
24138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24139   (eval "$ac_compile") 2>conftest.er1
24140   ac_status=$?
24141   grep -v '^ *+' conftest.er1 >conftest.err
24142   rm -f conftest.er1
24143   cat conftest.err >&5
24144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145   (exit $ac_status); } &&
24146          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24147   { (case "(($ac_try" in
24148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24149   *) ac_try_echo=$ac_try;;
24150 esac
24151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24152   (eval "$ac_try") 2>&5
24153   ac_status=$?
24154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24155   (exit $ac_status); }; } &&
24156          { ac_try='test -s conftest.$ac_objext'
24157   { (case "(($ac_try" in
24158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24159   *) ac_try_echo=$ac_try;;
24160 esac
24161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24162   (eval "$ac_try") 2>&5
24163   ac_status=$?
24164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165   (exit $ac_status); }; }; then
24166   ac_header_compiler=yes
24167 else
24168   echo "$as_me: failed program was:" >&5
24169 sed 's/^/| /' conftest.$ac_ext >&5
24170
24171         ac_header_compiler=no
24172 fi
24173
24174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24176 echo "${ECHO_T}$ac_header_compiler" >&6; }
24177
24178 # Is the header present?
24179 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24180 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24181 cat >conftest.$ac_ext <<_ACEOF
24182 /* confdefs.h.  */
24183 _ACEOF
24184 cat confdefs.h >>conftest.$ac_ext
24185 cat >>conftest.$ac_ext <<_ACEOF
24186 /* end confdefs.h.  */
24187 #include <sys/statvfs.h>
24188 _ACEOF
24189 if { (ac_try="$ac_cpp conftest.$ac_ext"
24190 case "(($ac_try" in
24191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192   *) ac_try_echo=$ac_try;;
24193 esac
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24196   ac_status=$?
24197   grep -v '^ *+' conftest.er1 >conftest.err
24198   rm -f conftest.er1
24199   cat conftest.err >&5
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); } >/dev/null; then
24202   if test -s conftest.err; then
24203     ac_cpp_err=$ac_c_preproc_warn_flag
24204     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24205   else
24206     ac_cpp_err=
24207   fi
24208 else
24209   ac_cpp_err=yes
24210 fi
24211 if test -z "$ac_cpp_err"; then
24212   ac_header_preproc=yes
24213 else
24214   echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24216
24217   ac_header_preproc=no
24218 fi
24219
24220 rm -f conftest.err conftest.$ac_ext
24221 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24222 echo "${ECHO_T}$ac_header_preproc" >&6; }
24223
24224 # So?  What about this header?
24225 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24226   yes:no: )
24227     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24228 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24229     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24230 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24231     ac_header_preproc=yes
24232     ;;
24233   no:yes:* )
24234     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24235 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24236     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24237 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24238     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24239 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24240     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24241 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24242     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24243 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24244     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24245 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24246
24247     ;;
24248 esac
24249 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24250 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24251 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24252   echo $ECHO_N "(cached) $ECHO_C" >&6
24253 else
24254   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24255 fi
24256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24257 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24258
24259 fi
24260 if test $ac_cv_header_sys_statvfs_h = yes; then
24261
24262 cat >>confdefs.h <<\_ACEOF
24263 #define HAVE_SYS_STATVFS_H 1
24264 _ACEOF
24265
24266 fi
24267
24268
24269
24270 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24271 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24272 if test "${ac_cv_type_signal+set}" = set; then
24273   echo $ECHO_N "(cached) $ECHO_C" >&6
24274 else
24275   cat >conftest.$ac_ext <<_ACEOF
24276 /* confdefs.h.  */
24277 _ACEOF
24278 cat confdefs.h >>conftest.$ac_ext
24279 cat >>conftest.$ac_ext <<_ACEOF
24280 /* end confdefs.h.  */
24281 #include <sys/types.h>
24282 #include <signal.h>
24283
24284 int
24285 main ()
24286 {
24287 return *(signal (0, 0)) (0) == 1;
24288   ;
24289   return 0;
24290 }
24291 _ACEOF
24292 rm -f conftest.$ac_objext
24293 if { (ac_try="$ac_compile"
24294 case "(($ac_try" in
24295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296   *) ac_try_echo=$ac_try;;
24297 esac
24298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24299   (eval "$ac_compile") 2>conftest.er1
24300   ac_status=$?
24301   grep -v '^ *+' conftest.er1 >conftest.err
24302   rm -f conftest.er1
24303   cat conftest.err >&5
24304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24305   (exit $ac_status); } &&
24306          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24307   { (case "(($ac_try" in
24308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309   *) ac_try_echo=$ac_try;;
24310 esac
24311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24312   (eval "$ac_try") 2>&5
24313   ac_status=$?
24314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315   (exit $ac_status); }; } &&
24316          { ac_try='test -s conftest.$ac_objext'
24317   { (case "(($ac_try" in
24318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319   *) ac_try_echo=$ac_try;;
24320 esac
24321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24322   (eval "$ac_try") 2>&5
24323   ac_status=$?
24324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325   (exit $ac_status); }; }; then
24326   ac_cv_type_signal=int
24327 else
24328   echo "$as_me: failed program was:" >&5
24329 sed 's/^/| /' conftest.$ac_ext >&5
24330
24331         ac_cv_type_signal=void
24332 fi
24333
24334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24335 fi
24336 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24337 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24338
24339 cat >>confdefs.h <<_ACEOF
24340 #define RETSIGTYPE $ac_cv_type_signal
24341 _ACEOF
24342
24343
24344
24345   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24346 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24347   if test "${bash_cv_signal_vintage+set}" = set; then
24348   echo $ECHO_N "(cached) $ECHO_C" >&6
24349 else
24350
24351     cat >conftest.$ac_ext <<_ACEOF
24352 /* confdefs.h.  */
24353 _ACEOF
24354 cat confdefs.h >>conftest.$ac_ext
24355 cat >>conftest.$ac_ext <<_ACEOF
24356 /* end confdefs.h.  */
24357 #include <signal.h>
24358 int
24359 main ()
24360 {
24361
24362       sigset_t ss;
24363       struct sigaction sa;
24364       sigemptyset(&ss); sigsuspend(&ss);
24365       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24366       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24367
24368   ;
24369   return 0;
24370 }
24371 _ACEOF
24372 rm -f conftest.$ac_objext conftest$ac_exeext
24373 if { (ac_try="$ac_link"
24374 case "(($ac_try" in
24375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24376   *) ac_try_echo=$ac_try;;
24377 esac
24378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24379   (eval "$ac_link") 2>conftest.er1
24380   ac_status=$?
24381   grep -v '^ *+' conftest.er1 >conftest.err
24382   rm -f conftest.er1
24383   cat conftest.err >&5
24384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24385   (exit $ac_status); } &&
24386          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24387   { (case "(($ac_try" in
24388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24389   *) ac_try_echo=$ac_try;;
24390 esac
24391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24392   (eval "$ac_try") 2>&5
24393   ac_status=$?
24394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395   (exit $ac_status); }; } &&
24396          { ac_try='test -s conftest$ac_exeext'
24397   { (case "(($ac_try" in
24398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399   *) ac_try_echo=$ac_try;;
24400 esac
24401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24402   (eval "$ac_try") 2>&5
24403   ac_status=$?
24404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24405   (exit $ac_status); }; }; then
24406   bash_cv_signal_vintage="posix"
24407 else
24408   echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411
24412       cat >conftest.$ac_ext <<_ACEOF
24413 /* confdefs.h.  */
24414 _ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h.  */
24418 #include <signal.h>
24419 int
24420 main ()
24421 {
24422
24423           int mask = sigmask(SIGINT);
24424           sigsetmask(mask); sigblock(mask); sigpause(mask);
24425
24426   ;
24427   return 0;
24428 }
24429 _ACEOF
24430 rm -f conftest.$ac_objext conftest$ac_exeext
24431 if { (ac_try="$ac_link"
24432 case "(($ac_try" in
24433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24434   *) ac_try_echo=$ac_try;;
24435 esac
24436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24437   (eval "$ac_link") 2>conftest.er1
24438   ac_status=$?
24439   grep -v '^ *+' conftest.er1 >conftest.err
24440   rm -f conftest.er1
24441   cat conftest.err >&5
24442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24443   (exit $ac_status); } &&
24444          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24445   { (case "(($ac_try" in
24446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24447   *) ac_try_echo=$ac_try;;
24448 esac
24449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24450   (eval "$ac_try") 2>&5
24451   ac_status=$?
24452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24453   (exit $ac_status); }; } &&
24454          { ac_try='test -s conftest$ac_exeext'
24455   { (case "(($ac_try" in
24456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24457   *) ac_try_echo=$ac_try;;
24458 esac
24459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24460   (eval "$ac_try") 2>&5
24461   ac_status=$?
24462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463   (exit $ac_status); }; }; then
24464   bash_cv_signal_vintage="4.2bsd"
24465 else
24466   echo "$as_me: failed program was:" >&5
24467 sed 's/^/| /' conftest.$ac_ext >&5
24468
24469
24470         cat >conftest.$ac_ext <<_ACEOF
24471 /* confdefs.h.  */
24472 _ACEOF
24473 cat confdefs.h >>conftest.$ac_ext
24474 cat >>conftest.$ac_ext <<_ACEOF
24475 /* end confdefs.h.  */
24476
24477           #include <signal.h>
24478           RETSIGTYPE foo() { }
24479 int
24480 main ()
24481 {
24482
24483                   int mask = sigmask(SIGINT);
24484                   sigset(SIGINT, foo); sigrelse(SIGINT);
24485                   sighold(SIGINT); sigpause(SIGINT);
24486
24487   ;
24488   return 0;
24489 }
24490 _ACEOF
24491 rm -f conftest.$ac_objext conftest$ac_exeext
24492 if { (ac_try="$ac_link"
24493 case "(($ac_try" in
24494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24495   *) ac_try_echo=$ac_try;;
24496 esac
24497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24498   (eval "$ac_link") 2>conftest.er1
24499   ac_status=$?
24500   grep -v '^ *+' conftest.er1 >conftest.err
24501   rm -f conftest.er1
24502   cat conftest.err >&5
24503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504   (exit $ac_status); } &&
24505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24506   { (case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511   (eval "$ac_try") 2>&5
24512   ac_status=$?
24513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24514   (exit $ac_status); }; } &&
24515          { ac_try='test -s conftest$ac_exeext'
24516   { (case "(($ac_try" in
24517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24518   *) ac_try_echo=$ac_try;;
24519 esac
24520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24521   (eval "$ac_try") 2>&5
24522   ac_status=$?
24523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24524   (exit $ac_status); }; }; then
24525   bash_cv_signal_vintage="svr3"
24526 else
24527   echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.$ac_ext >&5
24529
24530         bash_cv_signal_vintage="v7"
24531
24532 fi
24533
24534 rm -f core conftest.err conftest.$ac_objext \
24535       conftest$ac_exeext conftest.$ac_ext
24536
24537 fi
24538
24539 rm -f core conftest.err conftest.$ac_objext \
24540       conftest$ac_exeext conftest.$ac_ext
24541
24542 fi
24543
24544 rm -f core conftest.err conftest.$ac_objext \
24545       conftest$ac_exeext conftest.$ac_ext
24546
24547 fi
24548
24549   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24550 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24551   if test "$bash_cv_signal_vintage" = "posix"; then
24552     cat >>confdefs.h <<\_ACEOF
24553 #define HAVE_POSIX_SIGNALS 1
24554 _ACEOF
24555
24556   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24557     cat >>confdefs.h <<\_ACEOF
24558 #define HAVE_BSD_SIGNALS 1
24559 _ACEOF
24560
24561   elif test "$bash_cv_signal_vintage" = "svr3"; then
24562     cat >>confdefs.h <<\_ACEOF
24563 #define HAVE_USG_SIGHOLD 1
24564 _ACEOF
24565
24566   fi
24567
24568 { echo "$as_me:$LINENO: checking for mode_t" >&5
24569 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24570 if test "${ac_cv_type_mode_t+set}" = set; then
24571   echo $ECHO_N "(cached) $ECHO_C" >&6
24572 else
24573   cat >conftest.$ac_ext <<_ACEOF
24574 /* confdefs.h.  */
24575 _ACEOF
24576 cat confdefs.h >>conftest.$ac_ext
24577 cat >>conftest.$ac_ext <<_ACEOF
24578 /* end confdefs.h.  */
24579 $ac_includes_default
24580 typedef mode_t ac__type_new_;
24581 int
24582 main ()
24583 {
24584 if ((ac__type_new_ *) 0)
24585   return 0;
24586 if (sizeof (ac__type_new_))
24587   return 0;
24588   ;
24589   return 0;
24590 }
24591 _ACEOF
24592 rm -f conftest.$ac_objext
24593 if { (ac_try="$ac_compile"
24594 case "(($ac_try" in
24595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24596   *) ac_try_echo=$ac_try;;
24597 esac
24598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24599   (eval "$ac_compile") 2>conftest.er1
24600   ac_status=$?
24601   grep -v '^ *+' conftest.er1 >conftest.err
24602   rm -f conftest.er1
24603   cat conftest.err >&5
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } &&
24606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24607   { (case "(($ac_try" in
24608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24609   *) ac_try_echo=$ac_try;;
24610 esac
24611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24612   (eval "$ac_try") 2>&5
24613   ac_status=$?
24614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24615   (exit $ac_status); }; } &&
24616          { ac_try='test -s conftest.$ac_objext'
24617   { (case "(($ac_try" in
24618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24619   *) ac_try_echo=$ac_try;;
24620 esac
24621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24622   (eval "$ac_try") 2>&5
24623   ac_status=$?
24624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24625   (exit $ac_status); }; }; then
24626   ac_cv_type_mode_t=yes
24627 else
24628   echo "$as_me: failed program was:" >&5
24629 sed 's/^/| /' conftest.$ac_ext >&5
24630
24631         ac_cv_type_mode_t=no
24632 fi
24633
24634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24635 fi
24636 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24637 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24638 if test $ac_cv_type_mode_t = yes; then
24639   :
24640 else
24641
24642 cat >>confdefs.h <<_ACEOF
24643 #define mode_t int
24644 _ACEOF
24645
24646 fi
24647
24648 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24649 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24650 if test "${ac_cv_type_uid_t+set}" = set; then
24651   echo $ECHO_N "(cached) $ECHO_C" >&6
24652 else
24653   cat >conftest.$ac_ext <<_ACEOF
24654 /* confdefs.h.  */
24655 _ACEOF
24656 cat confdefs.h >>conftest.$ac_ext
24657 cat >>conftest.$ac_ext <<_ACEOF
24658 /* end confdefs.h.  */
24659 #include <sys/types.h>
24660
24661 _ACEOF
24662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24663   $EGREP "uid_t" >/dev/null 2>&1; then
24664   ac_cv_type_uid_t=yes
24665 else
24666   ac_cv_type_uid_t=no
24667 fi
24668 rm -f conftest*
24669
24670 fi
24671 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24672 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24673 if test $ac_cv_type_uid_t = no; then
24674
24675 cat >>confdefs.h <<\_ACEOF
24676 #define uid_t int
24677 _ACEOF
24678
24679
24680 cat >>confdefs.h <<\_ACEOF
24681 #define gid_t int
24682 _ACEOF
24683
24684 fi
24685
24686 { echo "$as_me:$LINENO: checking for size_t" >&5
24687 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24688 if test "${ac_cv_type_size_t+set}" = set; then
24689   echo $ECHO_N "(cached) $ECHO_C" >&6
24690 else
24691   cat >conftest.$ac_ext <<_ACEOF
24692 /* confdefs.h.  */
24693 _ACEOF
24694 cat confdefs.h >>conftest.$ac_ext
24695 cat >>conftest.$ac_ext <<_ACEOF
24696 /* end confdefs.h.  */
24697 $ac_includes_default
24698 typedef size_t ac__type_new_;
24699 int
24700 main ()
24701 {
24702 if ((ac__type_new_ *) 0)
24703   return 0;
24704 if (sizeof (ac__type_new_))
24705   return 0;
24706   ;
24707   return 0;
24708 }
24709 _ACEOF
24710 rm -f conftest.$ac_objext
24711 if { (ac_try="$ac_compile"
24712 case "(($ac_try" in
24713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24714   *) ac_try_echo=$ac_try;;
24715 esac
24716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24717   (eval "$ac_compile") 2>conftest.er1
24718   ac_status=$?
24719   grep -v '^ *+' conftest.er1 >conftest.err
24720   rm -f conftest.er1
24721   cat conftest.err >&5
24722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723   (exit $ac_status); } &&
24724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24725   { (case "(($ac_try" in
24726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727   *) ac_try_echo=$ac_try;;
24728 esac
24729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24730   (eval "$ac_try") 2>&5
24731   ac_status=$?
24732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733   (exit $ac_status); }; } &&
24734          { ac_try='test -s conftest.$ac_objext'
24735   { (case "(($ac_try" in
24736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24737   *) ac_try_echo=$ac_try;;
24738 esac
24739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24740   (eval "$ac_try") 2>&5
24741   ac_status=$?
24742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743   (exit $ac_status); }; }; then
24744   ac_cv_type_size_t=yes
24745 else
24746   echo "$as_me: failed program was:" >&5
24747 sed 's/^/| /' conftest.$ac_ext >&5
24748
24749         ac_cv_type_size_t=no
24750 fi
24751
24752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24753 fi
24754 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24755 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24756 if test $ac_cv_type_size_t = yes; then
24757   :
24758 else
24759
24760 cat >>confdefs.h <<_ACEOF
24761 #define size_t unsigned int
24762 _ACEOF
24763
24764 fi
24765
24766 { echo "$as_me:$LINENO: checking for pid_t" >&5
24767 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24768 if test "${ac_cv_type_pid_t+set}" = set; then
24769   echo $ECHO_N "(cached) $ECHO_C" >&6
24770 else
24771   cat >conftest.$ac_ext <<_ACEOF
24772 /* confdefs.h.  */
24773 _ACEOF
24774 cat confdefs.h >>conftest.$ac_ext
24775 cat >>conftest.$ac_ext <<_ACEOF
24776 /* end confdefs.h.  */
24777 $ac_includes_default
24778 typedef pid_t ac__type_new_;
24779 int
24780 main ()
24781 {
24782 if ((ac__type_new_ *) 0)
24783   return 0;
24784 if (sizeof (ac__type_new_))
24785   return 0;
24786   ;
24787   return 0;
24788 }
24789 _ACEOF
24790 rm -f conftest.$ac_objext
24791 if { (ac_try="$ac_compile"
24792 case "(($ac_try" in
24793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24794   *) ac_try_echo=$ac_try;;
24795 esac
24796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24797   (eval "$ac_compile") 2>conftest.er1
24798   ac_status=$?
24799   grep -v '^ *+' conftest.er1 >conftest.err
24800   rm -f conftest.er1
24801   cat conftest.err >&5
24802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803   (exit $ac_status); } &&
24804          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24805   { (case "(($ac_try" in
24806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24807   *) ac_try_echo=$ac_try;;
24808 esac
24809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24810   (eval "$ac_try") 2>&5
24811   ac_status=$?
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); }; } &&
24814          { ac_try='test -s conftest.$ac_objext'
24815   { (case "(($ac_try" in
24816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24817   *) ac_try_echo=$ac_try;;
24818 esac
24819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24820   (eval "$ac_try") 2>&5
24821   ac_status=$?
24822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24823   (exit $ac_status); }; }; then
24824   ac_cv_type_pid_t=yes
24825 else
24826   echo "$as_me: failed program was:" >&5
24827 sed 's/^/| /' conftest.$ac_ext >&5
24828
24829         ac_cv_type_pid_t=no
24830 fi
24831
24832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24833 fi
24834 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24835 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24836 if test $ac_cv_type_pid_t = yes; then
24837   :
24838 else
24839
24840 cat >>confdefs.h <<_ACEOF
24841 #define pid_t int
24842 _ACEOF
24843
24844 fi
24845
24846 { echo "$as_me:$LINENO: checking for off_t" >&5
24847 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24848 if test "${ac_cv_type_off_t+set}" = set; then
24849   echo $ECHO_N "(cached) $ECHO_C" >&6
24850 else
24851   cat >conftest.$ac_ext <<_ACEOF
24852 /* confdefs.h.  */
24853 _ACEOF
24854 cat confdefs.h >>conftest.$ac_ext
24855 cat >>conftest.$ac_ext <<_ACEOF
24856 /* end confdefs.h.  */
24857 $ac_includes_default
24858 typedef off_t ac__type_new_;
24859 int
24860 main ()
24861 {
24862 if ((ac__type_new_ *) 0)
24863   return 0;
24864 if (sizeof (ac__type_new_))
24865   return 0;
24866   ;
24867   return 0;
24868 }
24869 _ACEOF
24870 rm -f conftest.$ac_objext
24871 if { (ac_try="$ac_compile"
24872 case "(($ac_try" in
24873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874   *) ac_try_echo=$ac_try;;
24875 esac
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877   (eval "$ac_compile") 2>conftest.er1
24878   ac_status=$?
24879   grep -v '^ *+' conftest.er1 >conftest.err
24880   rm -f conftest.er1
24881   cat conftest.err >&5
24882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883   (exit $ac_status); } &&
24884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24885   { (case "(($ac_try" in
24886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887   *) ac_try_echo=$ac_try;;
24888 esac
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890   (eval "$ac_try") 2>&5
24891   ac_status=$?
24892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24893   (exit $ac_status); }; } &&
24894          { ac_try='test -s conftest.$ac_objext'
24895   { (case "(($ac_try" in
24896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24897   *) ac_try_echo=$ac_try;;
24898 esac
24899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24900   (eval "$ac_try") 2>&5
24901   ac_status=$?
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); }; }; then
24904   ac_cv_type_off_t=yes
24905 else
24906   echo "$as_me: failed program was:" >&5
24907 sed 's/^/| /' conftest.$ac_ext >&5
24908
24909         ac_cv_type_off_t=no
24910 fi
24911
24912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24913 fi
24914 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24915 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24916 if test $ac_cv_type_off_t = yes; then
24917   :
24918 else
24919
24920 cat >>confdefs.h <<_ACEOF
24921 #define off_t long int
24922 _ACEOF
24923
24924 fi
24925
24926 { echo "$as_me:$LINENO: checking for ino_t" >&5
24927 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24928 if test "${ac_cv_type_ino_t+set}" = set; then
24929   echo $ECHO_N "(cached) $ECHO_C" >&6
24930 else
24931   cat >conftest.$ac_ext <<_ACEOF
24932 /* confdefs.h.  */
24933 _ACEOF
24934 cat confdefs.h >>conftest.$ac_ext
24935 cat >>conftest.$ac_ext <<_ACEOF
24936 /* end confdefs.h.  */
24937 $ac_includes_default
24938 typedef ino_t ac__type_new_;
24939 int
24940 main ()
24941 {
24942 if ((ac__type_new_ *) 0)
24943   return 0;
24944 if (sizeof (ac__type_new_))
24945   return 0;
24946   ;
24947   return 0;
24948 }
24949 _ACEOF
24950 rm -f conftest.$ac_objext
24951 if { (ac_try="$ac_compile"
24952 case "(($ac_try" in
24953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24954   *) ac_try_echo=$ac_try;;
24955 esac
24956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24957   (eval "$ac_compile") 2>conftest.er1
24958   ac_status=$?
24959   grep -v '^ *+' conftest.er1 >conftest.err
24960   rm -f conftest.er1
24961   cat conftest.err >&5
24962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24963   (exit $ac_status); } &&
24964          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24965   { (case "(($ac_try" in
24966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967   *) ac_try_echo=$ac_try;;
24968 esac
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970   (eval "$ac_try") 2>&5
24971   ac_status=$?
24972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973   (exit $ac_status); }; } &&
24974          { ac_try='test -s conftest.$ac_objext'
24975   { (case "(($ac_try" in
24976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24977   *) ac_try_echo=$ac_try;;
24978 esac
24979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24980   (eval "$ac_try") 2>&5
24981   ac_status=$?
24982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983   (exit $ac_status); }; }; then
24984   ac_cv_type_ino_t=yes
24985 else
24986   echo "$as_me: failed program was:" >&5
24987 sed 's/^/| /' conftest.$ac_ext >&5
24988
24989         ac_cv_type_ino_t=no
24990 fi
24991
24992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24993 fi
24994 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24995 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24996 if test $ac_cv_type_ino_t = yes; then
24997   :
24998 else
24999
25000 cat >>confdefs.h <<_ACEOF
25001 #define ino_t unsigned long
25002 _ACEOF
25003
25004 fi
25005
25006 { echo "$as_me:$LINENO: checking for dev_t" >&5
25007 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
25008 if test "${ac_cv_type_dev_t+set}" = set; then
25009   echo $ECHO_N "(cached) $ECHO_C" >&6
25010 else
25011   cat >conftest.$ac_ext <<_ACEOF
25012 /* confdefs.h.  */
25013 _ACEOF
25014 cat confdefs.h >>conftest.$ac_ext
25015 cat >>conftest.$ac_ext <<_ACEOF
25016 /* end confdefs.h.  */
25017 $ac_includes_default
25018 typedef dev_t ac__type_new_;
25019 int
25020 main ()
25021 {
25022 if ((ac__type_new_ *) 0)
25023   return 0;
25024 if (sizeof (ac__type_new_))
25025   return 0;
25026   ;
25027   return 0;
25028 }
25029 _ACEOF
25030 rm -f conftest.$ac_objext
25031 if { (ac_try="$ac_compile"
25032 case "(($ac_try" in
25033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25034   *) ac_try_echo=$ac_try;;
25035 esac
25036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25037   (eval "$ac_compile") 2>conftest.er1
25038   ac_status=$?
25039   grep -v '^ *+' conftest.er1 >conftest.err
25040   rm -f conftest.er1
25041   cat conftest.err >&5
25042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25043   (exit $ac_status); } &&
25044          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25045   { (case "(($ac_try" in
25046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25047   *) ac_try_echo=$ac_try;;
25048 esac
25049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25050   (eval "$ac_try") 2>&5
25051   ac_status=$?
25052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25053   (exit $ac_status); }; } &&
25054          { ac_try='test -s conftest.$ac_objext'
25055   { (case "(($ac_try" in
25056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25057   *) ac_try_echo=$ac_try;;
25058 esac
25059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25060   (eval "$ac_try") 2>&5
25061   ac_status=$?
25062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25063   (exit $ac_status); }; }; then
25064   ac_cv_type_dev_t=yes
25065 else
25066   echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069         ac_cv_type_dev_t=no
25070 fi
25071
25072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25073 fi
25074 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25075 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25076 if test $ac_cv_type_dev_t = yes; then
25077   :
25078 else
25079
25080 cat >>confdefs.h <<_ACEOF
25081 #define dev_t unsigned long
25082 _ACEOF
25083
25084 fi
25085
25086 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25087 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25088 if test "${ac_cv_type_daddr_t+set}" = set; then
25089   echo $ECHO_N "(cached) $ECHO_C" >&6
25090 else
25091   cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097 $ac_includes_default
25098 typedef daddr_t ac__type_new_;
25099 int
25100 main ()
25101 {
25102 if ((ac__type_new_ *) 0)
25103   return 0;
25104 if (sizeof (ac__type_new_))
25105   return 0;
25106   ;
25107   return 0;
25108 }
25109 _ACEOF
25110 rm -f conftest.$ac_objext
25111 if { (ac_try="$ac_compile"
25112 case "(($ac_try" in
25113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25114   *) ac_try_echo=$ac_try;;
25115 esac
25116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25117   (eval "$ac_compile") 2>conftest.er1
25118   ac_status=$?
25119   grep -v '^ *+' conftest.er1 >conftest.err
25120   rm -f conftest.er1
25121   cat conftest.err >&5
25122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123   (exit $ac_status); } &&
25124          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25125   { (case "(($ac_try" in
25126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25127   *) ac_try_echo=$ac_try;;
25128 esac
25129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25130   (eval "$ac_try") 2>&5
25131   ac_status=$?
25132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133   (exit $ac_status); }; } &&
25134          { ac_try='test -s conftest.$ac_objext'
25135   { (case "(($ac_try" in
25136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25137   *) ac_try_echo=$ac_try;;
25138 esac
25139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25140   (eval "$ac_try") 2>&5
25141   ac_status=$?
25142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25143   (exit $ac_status); }; }; then
25144   ac_cv_type_daddr_t=yes
25145 else
25146   echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149         ac_cv_type_daddr_t=no
25150 fi
25151
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25153 fi
25154 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25155 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25156 if test $ac_cv_type_daddr_t = yes; then
25157   :
25158 else
25159
25160 cat >>confdefs.h <<_ACEOF
25161 #define daddr_t long
25162 _ACEOF
25163
25164 fi
25165
25166 { echo "$as_me:$LINENO: checking for major_t" >&5
25167 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25168 if test "${ac_cv_type_major_t+set}" = set; then
25169   echo $ECHO_N "(cached) $ECHO_C" >&6
25170 else
25171   cat >conftest.$ac_ext <<_ACEOF
25172 /* confdefs.h.  */
25173 _ACEOF
25174 cat confdefs.h >>conftest.$ac_ext
25175 cat >>conftest.$ac_ext <<_ACEOF
25176 /* end confdefs.h.  */
25177 $ac_includes_default
25178 typedef major_t ac__type_new_;
25179 int
25180 main ()
25181 {
25182 if ((ac__type_new_ *) 0)
25183   return 0;
25184 if (sizeof (ac__type_new_))
25185   return 0;
25186   ;
25187   return 0;
25188 }
25189 _ACEOF
25190 rm -f conftest.$ac_objext
25191 if { (ac_try="$ac_compile"
25192 case "(($ac_try" in
25193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194   *) ac_try_echo=$ac_try;;
25195 esac
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197   (eval "$ac_compile") 2>conftest.er1
25198   ac_status=$?
25199   grep -v '^ *+' conftest.er1 >conftest.err
25200   rm -f conftest.er1
25201   cat conftest.err >&5
25202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203   (exit $ac_status); } &&
25204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25205   { (case "(($ac_try" in
25206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25207   *) ac_try_echo=$ac_try;;
25208 esac
25209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25210   (eval "$ac_try") 2>&5
25211   ac_status=$?
25212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25213   (exit $ac_status); }; } &&
25214          { ac_try='test -s conftest.$ac_objext'
25215   { (case "(($ac_try" in
25216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217   *) ac_try_echo=$ac_try;;
25218 esac
25219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25220   (eval "$ac_try") 2>&5
25221   ac_status=$?
25222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223   (exit $ac_status); }; }; then
25224   ac_cv_type_major_t=yes
25225 else
25226   echo "$as_me: failed program was:" >&5
25227 sed 's/^/| /' conftest.$ac_ext >&5
25228
25229         ac_cv_type_major_t=no
25230 fi
25231
25232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25233 fi
25234 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25235 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25236 if test $ac_cv_type_major_t = yes; then
25237   :
25238 else
25239
25240 cat >>confdefs.h <<_ACEOF
25241 #define major_t int
25242 _ACEOF
25243
25244 fi
25245
25246 { echo "$as_me:$LINENO: checking for minor_t" >&5
25247 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25248 if test "${ac_cv_type_minor_t+set}" = set; then
25249   echo $ECHO_N "(cached) $ECHO_C" >&6
25250 else
25251   cat >conftest.$ac_ext <<_ACEOF
25252 /* confdefs.h.  */
25253 _ACEOF
25254 cat confdefs.h >>conftest.$ac_ext
25255 cat >>conftest.$ac_ext <<_ACEOF
25256 /* end confdefs.h.  */
25257 $ac_includes_default
25258 typedef minor_t ac__type_new_;
25259 int
25260 main ()
25261 {
25262 if ((ac__type_new_ *) 0)
25263   return 0;
25264 if (sizeof (ac__type_new_))
25265   return 0;
25266   ;
25267   return 0;
25268 }
25269 _ACEOF
25270 rm -f conftest.$ac_objext
25271 if { (ac_try="$ac_compile"
25272 case "(($ac_try" in
25273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25274   *) ac_try_echo=$ac_try;;
25275 esac
25276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25277   (eval "$ac_compile") 2>conftest.er1
25278   ac_status=$?
25279   grep -v '^ *+' conftest.er1 >conftest.err
25280   rm -f conftest.er1
25281   cat conftest.err >&5
25282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25283   (exit $ac_status); } &&
25284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25285   { (case "(($ac_try" in
25286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25287   *) ac_try_echo=$ac_try;;
25288 esac
25289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25290   (eval "$ac_try") 2>&5
25291   ac_status=$?
25292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25293   (exit $ac_status); }; } &&
25294          { ac_try='test -s conftest.$ac_objext'
25295   { (case "(($ac_try" in
25296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25297   *) ac_try_echo=$ac_try;;
25298 esac
25299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25300   (eval "$ac_try") 2>&5
25301   ac_status=$?
25302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303   (exit $ac_status); }; }; then
25304   ac_cv_type_minor_t=yes
25305 else
25306   echo "$as_me: failed program was:" >&5
25307 sed 's/^/| /' conftest.$ac_ext >&5
25308
25309         ac_cv_type_minor_t=no
25310 fi
25311
25312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25313 fi
25314 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25315 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25316 if test $ac_cv_type_minor_t = yes; then
25317   :
25318 else
25319
25320 cat >>confdefs.h <<_ACEOF
25321 #define minor_t int
25322 _ACEOF
25323
25324 fi
25325
25326 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25327 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25328 if test "${ac_cv_type_ssize_t+set}" = set; then
25329   echo $ECHO_N "(cached) $ECHO_C" >&6
25330 else
25331   cat >conftest.$ac_ext <<_ACEOF
25332 /* confdefs.h.  */
25333 _ACEOF
25334 cat confdefs.h >>conftest.$ac_ext
25335 cat >>conftest.$ac_ext <<_ACEOF
25336 /* end confdefs.h.  */
25337 $ac_includes_default
25338 typedef ssize_t ac__type_new_;
25339 int
25340 main ()
25341 {
25342 if ((ac__type_new_ *) 0)
25343   return 0;
25344 if (sizeof (ac__type_new_))
25345   return 0;
25346   ;
25347   return 0;
25348 }
25349 _ACEOF
25350 rm -f conftest.$ac_objext
25351 if { (ac_try="$ac_compile"
25352 case "(($ac_try" in
25353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25354   *) ac_try_echo=$ac_try;;
25355 esac
25356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25357   (eval "$ac_compile") 2>conftest.er1
25358   ac_status=$?
25359   grep -v '^ *+' conftest.er1 >conftest.err
25360   rm -f conftest.er1
25361   cat conftest.err >&5
25362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25363   (exit $ac_status); } &&
25364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25365   { (case "(($ac_try" in
25366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367   *) ac_try_echo=$ac_try;;
25368 esac
25369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370   (eval "$ac_try") 2>&5
25371   ac_status=$?
25372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25373   (exit $ac_status); }; } &&
25374          { ac_try='test -s conftest.$ac_objext'
25375   { (case "(($ac_try" in
25376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377   *) ac_try_echo=$ac_try;;
25378 esac
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380   (eval "$ac_try") 2>&5
25381   ac_status=$?
25382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25383   (exit $ac_status); }; }; then
25384   ac_cv_type_ssize_t=yes
25385 else
25386   echo "$as_me: failed program was:" >&5
25387 sed 's/^/| /' conftest.$ac_ext >&5
25388
25389         ac_cv_type_ssize_t=no
25390 fi
25391
25392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25393 fi
25394 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25395 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25396 if test $ac_cv_type_ssize_t = yes; then
25397   :
25398 else
25399
25400 cat >>confdefs.h <<_ACEOF
25401 #define ssize_t int
25402 _ACEOF
25403
25404 fi
25405
25406 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25407 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25408 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25409   echo $ECHO_N "(cached) $ECHO_C" >&6
25410 else
25411   cat >conftest.$ac_ext <<_ACEOF
25412 /* confdefs.h.  */
25413 _ACEOF
25414 cat confdefs.h >>conftest.$ac_ext
25415 cat >>conftest.$ac_ext <<_ACEOF
25416 /* end confdefs.h.  */
25417 $ac_includes_default
25418 int
25419 main ()
25420 {
25421 static struct stat ac_aggr;
25422 if (ac_aggr.st_blocks)
25423 return 0;
25424   ;
25425   return 0;
25426 }
25427 _ACEOF
25428 rm -f conftest.$ac_objext
25429 if { (ac_try="$ac_compile"
25430 case "(($ac_try" in
25431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25432   *) ac_try_echo=$ac_try;;
25433 esac
25434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25435   (eval "$ac_compile") 2>conftest.er1
25436   ac_status=$?
25437   grep -v '^ *+' conftest.er1 >conftest.err
25438   rm -f conftest.er1
25439   cat conftest.err >&5
25440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441   (exit $ac_status); } &&
25442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25443   { (case "(($ac_try" in
25444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445   *) ac_try_echo=$ac_try;;
25446 esac
25447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25448   (eval "$ac_try") 2>&5
25449   ac_status=$?
25450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25451   (exit $ac_status); }; } &&
25452          { ac_try='test -s conftest.$ac_objext'
25453   { (case "(($ac_try" in
25454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25455   *) ac_try_echo=$ac_try;;
25456 esac
25457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25458   (eval "$ac_try") 2>&5
25459   ac_status=$?
25460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25461   (exit $ac_status); }; }; then
25462   ac_cv_member_struct_stat_st_blocks=yes
25463 else
25464   echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25466
25467         cat >conftest.$ac_ext <<_ACEOF
25468 /* confdefs.h.  */
25469 _ACEOF
25470 cat confdefs.h >>conftest.$ac_ext
25471 cat >>conftest.$ac_ext <<_ACEOF
25472 /* end confdefs.h.  */
25473 $ac_includes_default
25474 int
25475 main ()
25476 {
25477 static struct stat ac_aggr;
25478 if (sizeof ac_aggr.st_blocks)
25479 return 0;
25480   ;
25481   return 0;
25482 }
25483 _ACEOF
25484 rm -f conftest.$ac_objext
25485 if { (ac_try="$ac_compile"
25486 case "(($ac_try" in
25487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488   *) ac_try_echo=$ac_try;;
25489 esac
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491   (eval "$ac_compile") 2>conftest.er1
25492   ac_status=$?
25493   grep -v '^ *+' conftest.er1 >conftest.err
25494   rm -f conftest.er1
25495   cat conftest.err >&5
25496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497   (exit $ac_status); } &&
25498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25499   { (case "(($ac_try" in
25500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25501   *) ac_try_echo=$ac_try;;
25502 esac
25503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25504   (eval "$ac_try") 2>&5
25505   ac_status=$?
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); }; } &&
25508          { ac_try='test -s conftest.$ac_objext'
25509   { (case "(($ac_try" in
25510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511   *) ac_try_echo=$ac_try;;
25512 esac
25513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25514   (eval "$ac_try") 2>&5
25515   ac_status=$?
25516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517   (exit $ac_status); }; }; then
25518   ac_cv_member_struct_stat_st_blocks=yes
25519 else
25520   echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523         ac_cv_member_struct_stat_st_blocks=no
25524 fi
25525
25526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25527 fi
25528
25529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25530 fi
25531 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25532 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25533 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25534
25535 cat >>confdefs.h <<_ACEOF
25536 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25537 _ACEOF
25538
25539
25540 cat >>confdefs.h <<\_ACEOF
25541 #define HAVE_ST_BLOCKS 1
25542 _ACEOF
25543
25544 else
25545   case " $LIBOBJS " in
25546   *" fileblocks.$ac_objext "* ) ;;
25547   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25548  ;;
25549 esac
25550
25551 fi
25552
25553
25554 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25555 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25556 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25557   echo $ECHO_N "(cached) $ECHO_C" >&6
25558 else
25559   cat >conftest.$ac_ext <<_ACEOF
25560 /* confdefs.h.  */
25561 _ACEOF
25562 cat confdefs.h >>conftest.$ac_ext
25563 cat >>conftest.$ac_ext <<_ACEOF
25564 /* end confdefs.h.  */
25565 $ac_includes_default
25566 int
25567 main ()
25568 {
25569 static struct stat ac_aggr;
25570 if (ac_aggr.st_rdev)
25571 return 0;
25572   ;
25573   return 0;
25574 }
25575 _ACEOF
25576 rm -f conftest.$ac_objext
25577 if { (ac_try="$ac_compile"
25578 case "(($ac_try" in
25579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580   *) ac_try_echo=$ac_try;;
25581 esac
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583   (eval "$ac_compile") 2>conftest.er1
25584   ac_status=$?
25585   grep -v '^ *+' conftest.er1 >conftest.err
25586   rm -f conftest.er1
25587   cat conftest.err >&5
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); } &&
25590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25591   { (case "(($ac_try" in
25592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25593   *) ac_try_echo=$ac_try;;
25594 esac
25595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25596   (eval "$ac_try") 2>&5
25597   ac_status=$?
25598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); }; } &&
25600          { ac_try='test -s conftest.$ac_objext'
25601   { (case "(($ac_try" in
25602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25603   *) ac_try_echo=$ac_try;;
25604 esac
25605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25606   (eval "$ac_try") 2>&5
25607   ac_status=$?
25608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25609   (exit $ac_status); }; }; then
25610   ac_cv_member_struct_stat_st_rdev=yes
25611 else
25612   echo "$as_me: failed program was:" >&5
25613 sed 's/^/| /' conftest.$ac_ext >&5
25614
25615         cat >conftest.$ac_ext <<_ACEOF
25616 /* confdefs.h.  */
25617 _ACEOF
25618 cat confdefs.h >>conftest.$ac_ext
25619 cat >>conftest.$ac_ext <<_ACEOF
25620 /* end confdefs.h.  */
25621 $ac_includes_default
25622 int
25623 main ()
25624 {
25625 static struct stat ac_aggr;
25626 if (sizeof ac_aggr.st_rdev)
25627 return 0;
25628   ;
25629   return 0;
25630 }
25631 _ACEOF
25632 rm -f conftest.$ac_objext
25633 if { (ac_try="$ac_compile"
25634 case "(($ac_try" in
25635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636   *) ac_try_echo=$ac_try;;
25637 esac
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639   (eval "$ac_compile") 2>conftest.er1
25640   ac_status=$?
25641   grep -v '^ *+' conftest.er1 >conftest.err
25642   rm -f conftest.er1
25643   cat conftest.err >&5
25644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645   (exit $ac_status); } &&
25646          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25647   { (case "(($ac_try" in
25648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25649   *) ac_try_echo=$ac_try;;
25650 esac
25651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25652   (eval "$ac_try") 2>&5
25653   ac_status=$?
25654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655   (exit $ac_status); }; } &&
25656          { ac_try='test -s conftest.$ac_objext'
25657   { (case "(($ac_try" in
25658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659   *) ac_try_echo=$ac_try;;
25660 esac
25661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25662   (eval "$ac_try") 2>&5
25663   ac_status=$?
25664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665   (exit $ac_status); }; }; then
25666   ac_cv_member_struct_stat_st_rdev=yes
25667 else
25668   echo "$as_me: failed program was:" >&5
25669 sed 's/^/| /' conftest.$ac_ext >&5
25670
25671         ac_cv_member_struct_stat_st_rdev=no
25672 fi
25673
25674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25675 fi
25676
25677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25678 fi
25679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25680 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25681 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25682
25683 cat >>confdefs.h <<_ACEOF
25684 #define HAVE_STRUCT_STAT_ST_RDEV 1
25685 _ACEOF
25686
25687
25688 cat >>confdefs.h <<\_ACEOF
25689 #define HAVE_ST_RDEV 1
25690 _ACEOF
25691
25692 fi
25693
25694
25695 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25696 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25697 if test "${ac_cv_struct_tm+set}" = set; then
25698   echo $ECHO_N "(cached) $ECHO_C" >&6
25699 else
25700   cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706 #include <sys/types.h>
25707 #include <time.h>
25708
25709 int
25710 main ()
25711 {
25712 struct tm *tp; tp->tm_sec;
25713   ;
25714   return 0;
25715 }
25716 _ACEOF
25717 rm -f conftest.$ac_objext
25718 if { (ac_try="$ac_compile"
25719 case "(($ac_try" in
25720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25721   *) ac_try_echo=$ac_try;;
25722 esac
25723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25724   (eval "$ac_compile") 2>conftest.er1
25725   ac_status=$?
25726   grep -v '^ *+' conftest.er1 >conftest.err
25727   rm -f conftest.er1
25728   cat conftest.err >&5
25729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25730   (exit $ac_status); } &&
25731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25732   { (case "(($ac_try" in
25733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25734   *) ac_try_echo=$ac_try;;
25735 esac
25736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25737   (eval "$ac_try") 2>&5
25738   ac_status=$?
25739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25740   (exit $ac_status); }; } &&
25741          { ac_try='test -s conftest.$ac_objext'
25742   { (case "(($ac_try" in
25743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25744   *) ac_try_echo=$ac_try;;
25745 esac
25746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25747   (eval "$ac_try") 2>&5
25748   ac_status=$?
25749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25750   (exit $ac_status); }; }; then
25751   ac_cv_struct_tm=time.h
25752 else
25753   echo "$as_me: failed program was:" >&5
25754 sed 's/^/| /' conftest.$ac_ext >&5
25755
25756         ac_cv_struct_tm=sys/time.h
25757 fi
25758
25759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25760 fi
25761 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25762 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25763 if test $ac_cv_struct_tm = sys/time.h; then
25764
25765 cat >>confdefs.h <<\_ACEOF
25766 #define TM_IN_SYS_TIME 1
25767 _ACEOF
25768
25769 fi
25770
25771 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25772 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25773 if test "${ac_cv_c_const+set}" = set; then
25774   echo $ECHO_N "(cached) $ECHO_C" >&6
25775 else
25776   cat >conftest.$ac_ext <<_ACEOF
25777 /* confdefs.h.  */
25778 _ACEOF
25779 cat confdefs.h >>conftest.$ac_ext
25780 cat >>conftest.$ac_ext <<_ACEOF
25781 /* end confdefs.h.  */
25782
25783 int
25784 main ()
25785 {
25786 /* FIXME: Include the comments suggested by Paul. */
25787 #ifndef __cplusplus
25788   /* Ultrix mips cc rejects this.  */
25789   typedef int charset[2];
25790   const charset x;
25791   /* SunOS 4.1.1 cc rejects this.  */
25792   char const *const *ccp;
25793   char **p;
25794   /* NEC SVR4.0.2 mips cc rejects this.  */
25795   struct point {int x, y;};
25796   static struct point const zero = {0,0};
25797   /* AIX XL C 1.02.0.0 rejects this.
25798      It does not let you subtract one const X* pointer from another in
25799      an arm of an if-expression whose if-part is not a constant
25800      expression */
25801   const char *g = "string";
25802   ccp = &g + (g ? g-g : 0);
25803   /* HPUX 7.0 cc rejects these. */
25804   ++ccp;
25805   p = (char**) ccp;
25806   ccp = (char const *const *) p;
25807   { /* SCO 3.2v4 cc rejects this.  */
25808     char *t;
25809     char const *s = 0 ? (char *) 0 : (char const *) 0;
25810
25811     *t++ = 0;
25812     if (s) return 0;
25813   }
25814   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25815     int x[] = {25, 17};
25816     const int *foo = &x[0];
25817     ++foo;
25818   }
25819   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25820     typedef const int *iptr;
25821     iptr p = 0;
25822     ++p;
25823   }
25824   { /* AIX XL C 1.02.0.0 rejects this saying
25825        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25826     struct s { int j; const int *ap[3]; };
25827     struct s *b; b->j = 5;
25828   }
25829   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25830     const int foo = 10;
25831     if (!foo) return 0;
25832   }
25833   return !x[0] && !zero.x;
25834 #endif
25835
25836   ;
25837   return 0;
25838 }
25839 _ACEOF
25840 rm -f conftest.$ac_objext
25841 if { (ac_try="$ac_compile"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_compile") 2>conftest.er1
25848   ac_status=$?
25849   grep -v '^ *+' conftest.er1 >conftest.err
25850   rm -f conftest.er1
25851   cat conftest.err >&5
25852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853   (exit $ac_status); } &&
25854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25855   { (case "(($ac_try" in
25856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25857   *) ac_try_echo=$ac_try;;
25858 esac
25859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25860   (eval "$ac_try") 2>&5
25861   ac_status=$?
25862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863   (exit $ac_status); }; } &&
25864          { ac_try='test -s conftest.$ac_objext'
25865   { (case "(($ac_try" in
25866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25867   *) ac_try_echo=$ac_try;;
25868 esac
25869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25870   (eval "$ac_try") 2>&5
25871   ac_status=$?
25872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25873   (exit $ac_status); }; }; then
25874   ac_cv_c_const=yes
25875 else
25876   echo "$as_me: failed program was:" >&5
25877 sed 's/^/| /' conftest.$ac_ext >&5
25878
25879         ac_cv_c_const=no
25880 fi
25881
25882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25883 fi
25884 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25885 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25886 if test $ac_cv_c_const = no; then
25887
25888 cat >>confdefs.h <<\_ACEOF
25889 #define const
25890 _ACEOF
25891
25892 fi
25893
25894
25895
25896 { echo "$as_me:$LINENO: checking for char" >&5
25897 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25898 if test "${ac_cv_type_char+set}" = set; then
25899   echo $ECHO_N "(cached) $ECHO_C" >&6
25900 else
25901   cat >conftest.$ac_ext <<_ACEOF
25902 /* confdefs.h.  */
25903 _ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h.  */
25907 $ac_includes_default
25908 typedef char ac__type_new_;
25909 int
25910 main ()
25911 {
25912 if ((ac__type_new_ *) 0)
25913   return 0;
25914 if (sizeof (ac__type_new_))
25915   return 0;
25916   ;
25917   return 0;
25918 }
25919 _ACEOF
25920 rm -f conftest.$ac_objext
25921 if { (ac_try="$ac_compile"
25922 case "(($ac_try" in
25923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25924   *) ac_try_echo=$ac_try;;
25925 esac
25926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25927   (eval "$ac_compile") 2>conftest.er1
25928   ac_status=$?
25929   grep -v '^ *+' conftest.er1 >conftest.err
25930   rm -f conftest.er1
25931   cat conftest.err >&5
25932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25933   (exit $ac_status); } &&
25934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25935   { (case "(($ac_try" in
25936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937   *) ac_try_echo=$ac_try;;
25938 esac
25939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25940   (eval "$ac_try") 2>&5
25941   ac_status=$?
25942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25943   (exit $ac_status); }; } &&
25944          { ac_try='test -s conftest.$ac_objext'
25945   { (case "(($ac_try" in
25946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25947   *) ac_try_echo=$ac_try;;
25948 esac
25949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25950   (eval "$ac_try") 2>&5
25951   ac_status=$?
25952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25953   (exit $ac_status); }; }; then
25954   ac_cv_type_char=yes
25955 else
25956   echo "$as_me: failed program was:" >&5
25957 sed 's/^/| /' conftest.$ac_ext >&5
25958
25959         ac_cv_type_char=no
25960 fi
25961
25962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25963 fi
25964 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25965 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25966
25967 { echo "$as_me:$LINENO: checking size of char" >&5
25968 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25969 if test "${ac_cv_sizeof_char+set}" = set; then
25970   echo $ECHO_N "(cached) $ECHO_C" >&6
25971 else
25972   if test "$ac_cv_type_char" = yes; then
25973   # The cast to long int works around a bug in the HP C Compiler
25974   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25975   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25976   # This bug is HP SR number 8606223364.
25977   if test "$cross_compiling" = yes; then
25978   # Depending upon the size, compute the lo and hi bounds.
25979 cat >conftest.$ac_ext <<_ACEOF
25980 /* confdefs.h.  */
25981 _ACEOF
25982 cat confdefs.h >>conftest.$ac_ext
25983 cat >>conftest.$ac_ext <<_ACEOF
25984 /* end confdefs.h.  */
25985 $ac_includes_default
25986                    typedef char ac__type_sizeof_;
25987 int
25988 main ()
25989 {
25990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25991 test_array [0] = 0
25992
25993   ;
25994   return 0;
25995 }
25996 _ACEOF
25997 rm -f conftest.$ac_objext
25998 if { (ac_try="$ac_compile"
25999 case "(($ac_try" in
26000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26001   *) ac_try_echo=$ac_try;;
26002 esac
26003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26004   (eval "$ac_compile") 2>conftest.er1
26005   ac_status=$?
26006   grep -v '^ *+' conftest.er1 >conftest.err
26007   rm -f conftest.er1
26008   cat conftest.err >&5
26009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26010   (exit $ac_status); } &&
26011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26012   { (case "(($ac_try" in
26013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26014   *) ac_try_echo=$ac_try;;
26015 esac
26016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26017   (eval "$ac_try") 2>&5
26018   ac_status=$?
26019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26020   (exit $ac_status); }; } &&
26021          { ac_try='test -s conftest.$ac_objext'
26022   { (case "(($ac_try" in
26023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26024   *) ac_try_echo=$ac_try;;
26025 esac
26026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26027   (eval "$ac_try") 2>&5
26028   ac_status=$?
26029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26030   (exit $ac_status); }; }; then
26031   ac_lo=0 ac_mid=0
26032   while :; do
26033     cat >conftest.$ac_ext <<_ACEOF
26034 /* confdefs.h.  */
26035 _ACEOF
26036 cat confdefs.h >>conftest.$ac_ext
26037 cat >>conftest.$ac_ext <<_ACEOF
26038 /* end confdefs.h.  */
26039 $ac_includes_default
26040                    typedef char ac__type_sizeof_;
26041 int
26042 main ()
26043 {
26044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26045 test_array [0] = 0
26046
26047   ;
26048   return 0;
26049 }
26050 _ACEOF
26051 rm -f conftest.$ac_objext
26052 if { (ac_try="$ac_compile"
26053 case "(($ac_try" in
26054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055   *) ac_try_echo=$ac_try;;
26056 esac
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058   (eval "$ac_compile") 2>conftest.er1
26059   ac_status=$?
26060   grep -v '^ *+' conftest.er1 >conftest.err
26061   rm -f conftest.er1
26062   cat conftest.err >&5
26063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26064   (exit $ac_status); } &&
26065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26066   { (case "(($ac_try" in
26067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068   *) ac_try_echo=$ac_try;;
26069 esac
26070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26071   (eval "$ac_try") 2>&5
26072   ac_status=$?
26073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074   (exit $ac_status); }; } &&
26075          { ac_try='test -s conftest.$ac_objext'
26076   { (case "(($ac_try" in
26077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078   *) ac_try_echo=$ac_try;;
26079 esac
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081   (eval "$ac_try") 2>&5
26082   ac_status=$?
26083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084   (exit $ac_status); }; }; then
26085   ac_hi=$ac_mid; break
26086 else
26087   echo "$as_me: failed program was:" >&5
26088 sed 's/^/| /' conftest.$ac_ext >&5
26089
26090         ac_lo=`expr $ac_mid + 1`
26091                         if test $ac_lo -le $ac_mid; then
26092                           ac_lo= ac_hi=
26093                           break
26094                         fi
26095                         ac_mid=`expr 2 '*' $ac_mid + 1`
26096 fi
26097
26098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26099   done
26100 else
26101   echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26103
26104         cat >conftest.$ac_ext <<_ACEOF
26105 /* confdefs.h.  */
26106 _ACEOF
26107 cat confdefs.h >>conftest.$ac_ext
26108 cat >>conftest.$ac_ext <<_ACEOF
26109 /* end confdefs.h.  */
26110 $ac_includes_default
26111                    typedef char ac__type_sizeof_;
26112 int
26113 main ()
26114 {
26115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26116 test_array [0] = 0
26117
26118   ;
26119   return 0;
26120 }
26121 _ACEOF
26122 rm -f conftest.$ac_objext
26123 if { (ac_try="$ac_compile"
26124 case "(($ac_try" in
26125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126   *) ac_try_echo=$ac_try;;
26127 esac
26128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129   (eval "$ac_compile") 2>conftest.er1
26130   ac_status=$?
26131   grep -v '^ *+' conftest.er1 >conftest.err
26132   rm -f conftest.er1
26133   cat conftest.err >&5
26134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135   (exit $ac_status); } &&
26136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26137   { (case "(($ac_try" in
26138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26139   *) ac_try_echo=$ac_try;;
26140 esac
26141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26142   (eval "$ac_try") 2>&5
26143   ac_status=$?
26144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26145   (exit $ac_status); }; } &&
26146          { ac_try='test -s conftest.$ac_objext'
26147   { (case "(($ac_try" in
26148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26149   *) ac_try_echo=$ac_try;;
26150 esac
26151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26152   (eval "$ac_try") 2>&5
26153   ac_status=$?
26154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26155   (exit $ac_status); }; }; then
26156   ac_hi=-1 ac_mid=-1
26157   while :; do
26158     cat >conftest.$ac_ext <<_ACEOF
26159 /* confdefs.h.  */
26160 _ACEOF
26161 cat confdefs.h >>conftest.$ac_ext
26162 cat >>conftest.$ac_ext <<_ACEOF
26163 /* end confdefs.h.  */
26164 $ac_includes_default
26165                    typedef char ac__type_sizeof_;
26166 int
26167 main ()
26168 {
26169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26170 test_array [0] = 0
26171
26172   ;
26173   return 0;
26174 }
26175 _ACEOF
26176 rm -f conftest.$ac_objext
26177 if { (ac_try="$ac_compile"
26178 case "(($ac_try" in
26179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26180   *) ac_try_echo=$ac_try;;
26181 esac
26182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26183   (eval "$ac_compile") 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } &&
26190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26191   { (case "(($ac_try" in
26192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26193   *) ac_try_echo=$ac_try;;
26194 esac
26195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26196   (eval "$ac_try") 2>&5
26197   ac_status=$?
26198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199   (exit $ac_status); }; } &&
26200          { ac_try='test -s conftest.$ac_objext'
26201   { (case "(($ac_try" in
26202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26203   *) ac_try_echo=$ac_try;;
26204 esac
26205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26206   (eval "$ac_try") 2>&5
26207   ac_status=$?
26208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26209   (exit $ac_status); }; }; then
26210   ac_lo=$ac_mid; break
26211 else
26212   echo "$as_me: failed program was:" >&5
26213 sed 's/^/| /' conftest.$ac_ext >&5
26214
26215         ac_hi=`expr '(' $ac_mid ')' - 1`
26216                         if test $ac_mid -le $ac_hi; then
26217                           ac_lo= ac_hi=
26218                           break
26219                         fi
26220                         ac_mid=`expr 2 '*' $ac_mid`
26221 fi
26222
26223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26224   done
26225 else
26226   echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26228
26229         ac_lo= ac_hi=
26230 fi
26231
26232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 fi
26234
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26236 # Binary search between lo and hi bounds.
26237 while test "x$ac_lo" != "x$ac_hi"; do
26238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26239   cat >conftest.$ac_ext <<_ACEOF
26240 /* confdefs.h.  */
26241 _ACEOF
26242 cat confdefs.h >>conftest.$ac_ext
26243 cat >>conftest.$ac_ext <<_ACEOF
26244 /* end confdefs.h.  */
26245 $ac_includes_default
26246                    typedef char ac__type_sizeof_;
26247 int
26248 main ()
26249 {
26250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26251 test_array [0] = 0
26252
26253   ;
26254   return 0;
26255 }
26256 _ACEOF
26257 rm -f conftest.$ac_objext
26258 if { (ac_try="$ac_compile"
26259 case "(($ac_try" in
26260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261   *) ac_try_echo=$ac_try;;
26262 esac
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264   (eval "$ac_compile") 2>conftest.er1
26265   ac_status=$?
26266   grep -v '^ *+' conftest.er1 >conftest.err
26267   rm -f conftest.er1
26268   cat conftest.err >&5
26269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270   (exit $ac_status); } &&
26271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26272   { (case "(($ac_try" in
26273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26274   *) ac_try_echo=$ac_try;;
26275 esac
26276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26277   (eval "$ac_try") 2>&5
26278   ac_status=$?
26279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26280   (exit $ac_status); }; } &&
26281          { ac_try='test -s conftest.$ac_objext'
26282   { (case "(($ac_try" in
26283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26284   *) ac_try_echo=$ac_try;;
26285 esac
26286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26287   (eval "$ac_try") 2>&5
26288   ac_status=$?
26289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290   (exit $ac_status); }; }; then
26291   ac_hi=$ac_mid
26292 else
26293   echo "$as_me: failed program was:" >&5
26294 sed 's/^/| /' conftest.$ac_ext >&5
26295
26296         ac_lo=`expr '(' $ac_mid ')' + 1`
26297 fi
26298
26299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26300 done
26301 case $ac_lo in
26302 ?*) ac_cv_sizeof_char=$ac_lo;;
26303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26304 See \`config.log' for more details." >&5
26305 echo "$as_me: error: cannot compute sizeof (char)
26306 See \`config.log' for more details." >&2;}
26307    { (exit 77); exit 77; }; } ;;
26308 esac
26309 else
26310   cat >conftest.$ac_ext <<_ACEOF
26311 /* confdefs.h.  */
26312 _ACEOF
26313 cat confdefs.h >>conftest.$ac_ext
26314 cat >>conftest.$ac_ext <<_ACEOF
26315 /* end confdefs.h.  */
26316 $ac_includes_default
26317                    typedef char ac__type_sizeof_;
26318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26320 #include <stdio.h>
26321 #include <stdlib.h>
26322 int
26323 main ()
26324 {
26325
26326   FILE *f = fopen ("conftest.val", "w");
26327   if (! f)
26328     return 1;
26329   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26330     {
26331       long int i = longval ();
26332       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26333         return 1;
26334       fprintf (f, "%ld\n", i);
26335     }
26336   else
26337     {
26338       unsigned long int i = ulongval ();
26339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26340         return 1;
26341       fprintf (f, "%lu\n", i);
26342     }
26343   return ferror (f) || fclose (f) != 0;
26344
26345   ;
26346   return 0;
26347 }
26348 _ACEOF
26349 rm -f conftest$ac_exeext
26350 if { (ac_try="$ac_link"
26351 case "(($ac_try" in
26352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26353   *) ac_try_echo=$ac_try;;
26354 esac
26355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26356   (eval "$ac_link") 2>&5
26357   ac_status=$?
26358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26360   { (case "(($ac_try" in
26361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26362   *) ac_try_echo=$ac_try;;
26363 esac
26364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26365   (eval "$ac_try") 2>&5
26366   ac_status=$?
26367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368   (exit $ac_status); }; }; then
26369   ac_cv_sizeof_char=`cat conftest.val`
26370 else
26371   echo "$as_me: program exited with status $ac_status" >&5
26372 echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26374
26375 ( exit $ac_status )
26376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26377 See \`config.log' for more details." >&5
26378 echo "$as_me: error: cannot compute sizeof (char)
26379 See \`config.log' for more details." >&2;}
26380    { (exit 77); exit 77; }; }
26381 fi
26382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26383 fi
26384 rm -f conftest.val
26385 else
26386   ac_cv_sizeof_char=0
26387 fi
26388 fi
26389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26390 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26391 cat >>confdefs.h <<_ACEOF
26392 #define SIZEOF_CHAR $ac_cv_sizeof_char
26393 _ACEOF
26394
26395
26396 { echo "$as_me:$LINENO: checking for short int" >&5
26397 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26398 if test "${ac_cv_type_short_int+set}" = set; then
26399   echo $ECHO_N "(cached) $ECHO_C" >&6
26400 else
26401   cat >conftest.$ac_ext <<_ACEOF
26402 /* confdefs.h.  */
26403 _ACEOF
26404 cat confdefs.h >>conftest.$ac_ext
26405 cat >>conftest.$ac_ext <<_ACEOF
26406 /* end confdefs.h.  */
26407 $ac_includes_default
26408 typedef short int ac__type_new_;
26409 int
26410 main ()
26411 {
26412 if ((ac__type_new_ *) 0)
26413   return 0;
26414 if (sizeof (ac__type_new_))
26415   return 0;
26416   ;
26417   return 0;
26418 }
26419 _ACEOF
26420 rm -f conftest.$ac_objext
26421 if { (ac_try="$ac_compile"
26422 case "(($ac_try" in
26423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26424   *) ac_try_echo=$ac_try;;
26425 esac
26426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26427   (eval "$ac_compile") 2>conftest.er1
26428   ac_status=$?
26429   grep -v '^ *+' conftest.er1 >conftest.err
26430   rm -f conftest.er1
26431   cat conftest.err >&5
26432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26433   (exit $ac_status); } &&
26434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26435   { (case "(($ac_try" in
26436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26437   *) ac_try_echo=$ac_try;;
26438 esac
26439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26440   (eval "$ac_try") 2>&5
26441   ac_status=$?
26442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443   (exit $ac_status); }; } &&
26444          { ac_try='test -s conftest.$ac_objext'
26445   { (case "(($ac_try" in
26446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26447   *) ac_try_echo=$ac_try;;
26448 esac
26449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26450   (eval "$ac_try") 2>&5
26451   ac_status=$?
26452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26453   (exit $ac_status); }; }; then
26454   ac_cv_type_short_int=yes
26455 else
26456   echo "$as_me: failed program was:" >&5
26457 sed 's/^/| /' conftest.$ac_ext >&5
26458
26459         ac_cv_type_short_int=no
26460 fi
26461
26462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26463 fi
26464 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26465 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26466
26467 { echo "$as_me:$LINENO: checking size of short int" >&5
26468 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26469 if test "${ac_cv_sizeof_short_int+set}" = set; then
26470   echo $ECHO_N "(cached) $ECHO_C" >&6
26471 else
26472   if test "$ac_cv_type_short_int" = yes; then
26473   # The cast to long int works around a bug in the HP C Compiler
26474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26476   # This bug is HP SR number 8606223364.
26477   if test "$cross_compiling" = yes; then
26478   # Depending upon the size, compute the lo and hi bounds.
26479 cat >conftest.$ac_ext <<_ACEOF
26480 /* confdefs.h.  */
26481 _ACEOF
26482 cat confdefs.h >>conftest.$ac_ext
26483 cat >>conftest.$ac_ext <<_ACEOF
26484 /* end confdefs.h.  */
26485 $ac_includes_default
26486                    typedef short int ac__type_sizeof_;
26487 int
26488 main ()
26489 {
26490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26491 test_array [0] = 0
26492
26493   ;
26494   return 0;
26495 }
26496 _ACEOF
26497 rm -f conftest.$ac_objext
26498 if { (ac_try="$ac_compile"
26499 case "(($ac_try" in
26500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26501   *) ac_try_echo=$ac_try;;
26502 esac
26503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26504   (eval "$ac_compile") 2>conftest.er1
26505   ac_status=$?
26506   grep -v '^ *+' conftest.er1 >conftest.err
26507   rm -f conftest.er1
26508   cat conftest.err >&5
26509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26510   (exit $ac_status); } &&
26511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26512   { (case "(($ac_try" in
26513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514   *) ac_try_echo=$ac_try;;
26515 esac
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517   (eval "$ac_try") 2>&5
26518   ac_status=$?
26519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26520   (exit $ac_status); }; } &&
26521          { ac_try='test -s conftest.$ac_objext'
26522   { (case "(($ac_try" in
26523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524   *) ac_try_echo=$ac_try;;
26525 esac
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527   (eval "$ac_try") 2>&5
26528   ac_status=$?
26529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26530   (exit $ac_status); }; }; then
26531   ac_lo=0 ac_mid=0
26532   while :; do
26533     cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h.  */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h.  */
26539 $ac_includes_default
26540                    typedef short int ac__type_sizeof_;
26541 int
26542 main ()
26543 {
26544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26545 test_array [0] = 0
26546
26547   ;
26548   return 0;
26549 }
26550 _ACEOF
26551 rm -f conftest.$ac_objext
26552 if { (ac_try="$ac_compile"
26553 case "(($ac_try" in
26554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26555   *) ac_try_echo=$ac_try;;
26556 esac
26557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26558   (eval "$ac_compile") 2>conftest.er1
26559   ac_status=$?
26560   grep -v '^ *+' conftest.er1 >conftest.err
26561   rm -f conftest.er1
26562   cat conftest.err >&5
26563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26564   (exit $ac_status); } &&
26565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26566   { (case "(($ac_try" in
26567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568   *) ac_try_echo=$ac_try;;
26569 esac
26570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26571   (eval "$ac_try") 2>&5
26572   ac_status=$?
26573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26574   (exit $ac_status); }; } &&
26575          { ac_try='test -s conftest.$ac_objext'
26576   { (case "(($ac_try" in
26577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26578   *) ac_try_echo=$ac_try;;
26579 esac
26580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26581   (eval "$ac_try") 2>&5
26582   ac_status=$?
26583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26584   (exit $ac_status); }; }; then
26585   ac_hi=$ac_mid; break
26586 else
26587   echo "$as_me: failed program was:" >&5
26588 sed 's/^/| /' conftest.$ac_ext >&5
26589
26590         ac_lo=`expr $ac_mid + 1`
26591                         if test $ac_lo -le $ac_mid; then
26592                           ac_lo= ac_hi=
26593                           break
26594                         fi
26595                         ac_mid=`expr 2 '*' $ac_mid + 1`
26596 fi
26597
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599   done
26600 else
26601   echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26603
26604         cat >conftest.$ac_ext <<_ACEOF
26605 /* confdefs.h.  */
26606 _ACEOF
26607 cat confdefs.h >>conftest.$ac_ext
26608 cat >>conftest.$ac_ext <<_ACEOF
26609 /* end confdefs.h.  */
26610 $ac_includes_default
26611                    typedef short int ac__type_sizeof_;
26612 int
26613 main ()
26614 {
26615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26616 test_array [0] = 0
26617
26618   ;
26619   return 0;
26620 }
26621 _ACEOF
26622 rm -f conftest.$ac_objext
26623 if { (ac_try="$ac_compile"
26624 case "(($ac_try" in
26625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26626   *) ac_try_echo=$ac_try;;
26627 esac
26628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26629   (eval "$ac_compile") 2>conftest.er1
26630   ac_status=$?
26631   grep -v '^ *+' conftest.er1 >conftest.err
26632   rm -f conftest.er1
26633   cat conftest.err >&5
26634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635   (exit $ac_status); } &&
26636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26637   { (case "(($ac_try" in
26638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639   *) ac_try_echo=$ac_try;;
26640 esac
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642   (eval "$ac_try") 2>&5
26643   ac_status=$?
26644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26645   (exit $ac_status); }; } &&
26646          { ac_try='test -s conftest.$ac_objext'
26647   { (case "(($ac_try" in
26648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649   *) ac_try_echo=$ac_try;;
26650 esac
26651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26652   (eval "$ac_try") 2>&5
26653   ac_status=$?
26654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26655   (exit $ac_status); }; }; then
26656   ac_hi=-1 ac_mid=-1
26657   while :; do
26658     cat >conftest.$ac_ext <<_ACEOF
26659 /* confdefs.h.  */
26660 _ACEOF
26661 cat confdefs.h >>conftest.$ac_ext
26662 cat >>conftest.$ac_ext <<_ACEOF
26663 /* end confdefs.h.  */
26664 $ac_includes_default
26665                    typedef short int ac__type_sizeof_;
26666 int
26667 main ()
26668 {
26669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26670 test_array [0] = 0
26671
26672   ;
26673   return 0;
26674 }
26675 _ACEOF
26676 rm -f conftest.$ac_objext
26677 if { (ac_try="$ac_compile"
26678 case "(($ac_try" in
26679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26680   *) ac_try_echo=$ac_try;;
26681 esac
26682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26683   (eval "$ac_compile") 2>conftest.er1
26684   ac_status=$?
26685   grep -v '^ *+' conftest.er1 >conftest.err
26686   rm -f conftest.er1
26687   cat conftest.err >&5
26688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26689   (exit $ac_status); } &&
26690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26691   { (case "(($ac_try" in
26692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693   *) ac_try_echo=$ac_try;;
26694 esac
26695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26696   (eval "$ac_try") 2>&5
26697   ac_status=$?
26698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26699   (exit $ac_status); }; } &&
26700          { ac_try='test -s conftest.$ac_objext'
26701   { (case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706   (eval "$ac_try") 2>&5
26707   ac_status=$?
26708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26709   (exit $ac_status); }; }; then
26710   ac_lo=$ac_mid; break
26711 else
26712   echo "$as_me: failed program was:" >&5
26713 sed 's/^/| /' conftest.$ac_ext >&5
26714
26715         ac_hi=`expr '(' $ac_mid ')' - 1`
26716                         if test $ac_mid -le $ac_hi; then
26717                           ac_lo= ac_hi=
26718                           break
26719                         fi
26720                         ac_mid=`expr 2 '*' $ac_mid`
26721 fi
26722
26723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26724   done
26725 else
26726   echo "$as_me: failed program was:" >&5
26727 sed 's/^/| /' conftest.$ac_ext >&5
26728
26729         ac_lo= ac_hi=
26730 fi
26731
26732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26733 fi
26734
26735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26736 # Binary search between lo and hi bounds.
26737 while test "x$ac_lo" != "x$ac_hi"; do
26738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26739   cat >conftest.$ac_ext <<_ACEOF
26740 /* confdefs.h.  */
26741 _ACEOF
26742 cat confdefs.h >>conftest.$ac_ext
26743 cat >>conftest.$ac_ext <<_ACEOF
26744 /* end confdefs.h.  */
26745 $ac_includes_default
26746                    typedef short int ac__type_sizeof_;
26747 int
26748 main ()
26749 {
26750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26751 test_array [0] = 0
26752
26753   ;
26754   return 0;
26755 }
26756 _ACEOF
26757 rm -f conftest.$ac_objext
26758 if { (ac_try="$ac_compile"
26759 case "(($ac_try" in
26760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26761   *) ac_try_echo=$ac_try;;
26762 esac
26763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26764   (eval "$ac_compile") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } &&
26771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26772   { (case "(($ac_try" in
26773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26774   *) ac_try_echo=$ac_try;;
26775 esac
26776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26777   (eval "$ac_try") 2>&5
26778   ac_status=$?
26779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780   (exit $ac_status); }; } &&
26781          { ac_try='test -s conftest.$ac_objext'
26782   { (case "(($ac_try" in
26783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26784   *) ac_try_echo=$ac_try;;
26785 esac
26786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26787   (eval "$ac_try") 2>&5
26788   ac_status=$?
26789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26790   (exit $ac_status); }; }; then
26791   ac_hi=$ac_mid
26792 else
26793   echo "$as_me: failed program was:" >&5
26794 sed 's/^/| /' conftest.$ac_ext >&5
26795
26796         ac_lo=`expr '(' $ac_mid ')' + 1`
26797 fi
26798
26799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26800 done
26801 case $ac_lo in
26802 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26804 See \`config.log' for more details." >&5
26805 echo "$as_me: error: cannot compute sizeof (short int)
26806 See \`config.log' for more details." >&2;}
26807    { (exit 77); exit 77; }; } ;;
26808 esac
26809 else
26810   cat >conftest.$ac_ext <<_ACEOF
26811 /* confdefs.h.  */
26812 _ACEOF
26813 cat confdefs.h >>conftest.$ac_ext
26814 cat >>conftest.$ac_ext <<_ACEOF
26815 /* end confdefs.h.  */
26816 $ac_includes_default
26817                    typedef short int ac__type_sizeof_;
26818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26820 #include <stdio.h>
26821 #include <stdlib.h>
26822 int
26823 main ()
26824 {
26825
26826   FILE *f = fopen ("conftest.val", "w");
26827   if (! f)
26828     return 1;
26829   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26830     {
26831       long int i = longval ();
26832       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26833         return 1;
26834       fprintf (f, "%ld\n", i);
26835     }
26836   else
26837     {
26838       unsigned long int i = ulongval ();
26839       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26840         return 1;
26841       fprintf (f, "%lu\n", i);
26842     }
26843   return ferror (f) || fclose (f) != 0;
26844
26845   ;
26846   return 0;
26847 }
26848 _ACEOF
26849 rm -f conftest$ac_exeext
26850 if { (ac_try="$ac_link"
26851 case "(($ac_try" in
26852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26853   *) ac_try_echo=$ac_try;;
26854 esac
26855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26856   (eval "$ac_link") 2>&5
26857   ac_status=$?
26858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26860   { (case "(($ac_try" in
26861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26862   *) ac_try_echo=$ac_try;;
26863 esac
26864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26865   (eval "$ac_try") 2>&5
26866   ac_status=$?
26867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868   (exit $ac_status); }; }; then
26869   ac_cv_sizeof_short_int=`cat conftest.val`
26870 else
26871   echo "$as_me: program exited with status $ac_status" >&5
26872 echo "$as_me: failed program was:" >&5
26873 sed 's/^/| /' conftest.$ac_ext >&5
26874
26875 ( exit $ac_status )
26876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26877 See \`config.log' for more details." >&5
26878 echo "$as_me: error: cannot compute sizeof (short int)
26879 See \`config.log' for more details." >&2;}
26880    { (exit 77); exit 77; }; }
26881 fi
26882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26883 fi
26884 rm -f conftest.val
26885 else
26886   ac_cv_sizeof_short_int=0
26887 fi
26888 fi
26889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26890 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26891 cat >>confdefs.h <<_ACEOF
26892 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26893 _ACEOF
26894
26895
26896 { echo "$as_me:$LINENO: checking for int" >&5
26897 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26898 if test "${ac_cv_type_int+set}" = set; then
26899   echo $ECHO_N "(cached) $ECHO_C" >&6
26900 else
26901   cat >conftest.$ac_ext <<_ACEOF
26902 /* confdefs.h.  */
26903 _ACEOF
26904 cat confdefs.h >>conftest.$ac_ext
26905 cat >>conftest.$ac_ext <<_ACEOF
26906 /* end confdefs.h.  */
26907 $ac_includes_default
26908 typedef int ac__type_new_;
26909 int
26910 main ()
26911 {
26912 if ((ac__type_new_ *) 0)
26913   return 0;
26914 if (sizeof (ac__type_new_))
26915   return 0;
26916   ;
26917   return 0;
26918 }
26919 _ACEOF
26920 rm -f conftest.$ac_objext
26921 if { (ac_try="$ac_compile"
26922 case "(($ac_try" in
26923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26924   *) ac_try_echo=$ac_try;;
26925 esac
26926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26927   (eval "$ac_compile") 2>conftest.er1
26928   ac_status=$?
26929   grep -v '^ *+' conftest.er1 >conftest.err
26930   rm -f conftest.er1
26931   cat conftest.err >&5
26932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26933   (exit $ac_status); } &&
26934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26935   { (case "(($ac_try" in
26936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937   *) ac_try_echo=$ac_try;;
26938 esac
26939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26940   (eval "$ac_try") 2>&5
26941   ac_status=$?
26942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943   (exit $ac_status); }; } &&
26944          { ac_try='test -s conftest.$ac_objext'
26945   { (case "(($ac_try" in
26946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26947   *) ac_try_echo=$ac_try;;
26948 esac
26949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26950   (eval "$ac_try") 2>&5
26951   ac_status=$?
26952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26953   (exit $ac_status); }; }; then
26954   ac_cv_type_int=yes
26955 else
26956   echo "$as_me: failed program was:" >&5
26957 sed 's/^/| /' conftest.$ac_ext >&5
26958
26959         ac_cv_type_int=no
26960 fi
26961
26962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963 fi
26964 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26965 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26966
26967 { echo "$as_me:$LINENO: checking size of int" >&5
26968 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26969 if test "${ac_cv_sizeof_int+set}" = set; then
26970   echo $ECHO_N "(cached) $ECHO_C" >&6
26971 else
26972   if test "$ac_cv_type_int" = yes; then
26973   # The cast to long int works around a bug in the HP C Compiler
26974   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26975   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26976   # This bug is HP SR number 8606223364.
26977   if test "$cross_compiling" = yes; then
26978   # Depending upon the size, compute the lo and hi bounds.
26979 cat >conftest.$ac_ext <<_ACEOF
26980 /* confdefs.h.  */
26981 _ACEOF
26982 cat confdefs.h >>conftest.$ac_ext
26983 cat >>conftest.$ac_ext <<_ACEOF
26984 /* end confdefs.h.  */
26985 $ac_includes_default
26986                    typedef int ac__type_sizeof_;
26987 int
26988 main ()
26989 {
26990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26991 test_array [0] = 0
26992
26993   ;
26994   return 0;
26995 }
26996 _ACEOF
26997 rm -f conftest.$ac_objext
26998 if { (ac_try="$ac_compile"
26999 case "(($ac_try" in
27000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27001   *) ac_try_echo=$ac_try;;
27002 esac
27003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27004   (eval "$ac_compile") 2>conftest.er1
27005   ac_status=$?
27006   grep -v '^ *+' conftest.er1 >conftest.err
27007   rm -f conftest.er1
27008   cat conftest.err >&5
27009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27010   (exit $ac_status); } &&
27011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27012   { (case "(($ac_try" in
27013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27014   *) ac_try_echo=$ac_try;;
27015 esac
27016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27017   (eval "$ac_try") 2>&5
27018   ac_status=$?
27019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020   (exit $ac_status); }; } &&
27021          { ac_try='test -s conftest.$ac_objext'
27022   { (case "(($ac_try" in
27023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27024   *) ac_try_echo=$ac_try;;
27025 esac
27026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27027   (eval "$ac_try") 2>&5
27028   ac_status=$?
27029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030   (exit $ac_status); }; }; then
27031   ac_lo=0 ac_mid=0
27032   while :; do
27033     cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h.  */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h.  */
27039 $ac_includes_default
27040                    typedef int ac__type_sizeof_;
27041 int
27042 main ()
27043 {
27044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27045 test_array [0] = 0
27046
27047   ;
27048   return 0;
27049 }
27050 _ACEOF
27051 rm -f conftest.$ac_objext
27052 if { (ac_try="$ac_compile"
27053 case "(($ac_try" in
27054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27055   *) ac_try_echo=$ac_try;;
27056 esac
27057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27058   (eval "$ac_compile") 2>conftest.er1
27059   ac_status=$?
27060   grep -v '^ *+' conftest.er1 >conftest.err
27061   rm -f conftest.er1
27062   cat conftest.err >&5
27063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064   (exit $ac_status); } &&
27065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27066   { (case "(($ac_try" in
27067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068   *) ac_try_echo=$ac_try;;
27069 esac
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071   (eval "$ac_try") 2>&5
27072   ac_status=$?
27073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27074   (exit $ac_status); }; } &&
27075          { ac_try='test -s conftest.$ac_objext'
27076   { (case "(($ac_try" in
27077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078   *) ac_try_echo=$ac_try;;
27079 esac
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081   (eval "$ac_try") 2>&5
27082   ac_status=$?
27083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27084   (exit $ac_status); }; }; then
27085   ac_hi=$ac_mid; break
27086 else
27087   echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27089
27090         ac_lo=`expr $ac_mid + 1`
27091                         if test $ac_lo -le $ac_mid; then
27092                           ac_lo= ac_hi=
27093                           break
27094                         fi
27095                         ac_mid=`expr 2 '*' $ac_mid + 1`
27096 fi
27097
27098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27099   done
27100 else
27101   echo "$as_me: failed program was:" >&5
27102 sed 's/^/| /' conftest.$ac_ext >&5
27103
27104         cat >conftest.$ac_ext <<_ACEOF
27105 /* confdefs.h.  */
27106 _ACEOF
27107 cat confdefs.h >>conftest.$ac_ext
27108 cat >>conftest.$ac_ext <<_ACEOF
27109 /* end confdefs.h.  */
27110 $ac_includes_default
27111                    typedef int ac__type_sizeof_;
27112 int
27113 main ()
27114 {
27115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27116 test_array [0] = 0
27117
27118   ;
27119   return 0;
27120 }
27121 _ACEOF
27122 rm -f conftest.$ac_objext
27123 if { (ac_try="$ac_compile"
27124 case "(($ac_try" in
27125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27126   *) ac_try_echo=$ac_try;;
27127 esac
27128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27129   (eval "$ac_compile") 2>conftest.er1
27130   ac_status=$?
27131   grep -v '^ *+' conftest.er1 >conftest.err
27132   rm -f conftest.er1
27133   cat conftest.err >&5
27134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27135   (exit $ac_status); } &&
27136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27137   { (case "(($ac_try" in
27138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27139   *) ac_try_echo=$ac_try;;
27140 esac
27141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27142   (eval "$ac_try") 2>&5
27143   ac_status=$?
27144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145   (exit $ac_status); }; } &&
27146          { ac_try='test -s conftest.$ac_objext'
27147   { (case "(($ac_try" in
27148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27149   *) ac_try_echo=$ac_try;;
27150 esac
27151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27152   (eval "$ac_try") 2>&5
27153   ac_status=$?
27154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155   (exit $ac_status); }; }; then
27156   ac_hi=-1 ac_mid=-1
27157   while :; do
27158     cat >conftest.$ac_ext <<_ACEOF
27159 /* confdefs.h.  */
27160 _ACEOF
27161 cat confdefs.h >>conftest.$ac_ext
27162 cat >>conftest.$ac_ext <<_ACEOF
27163 /* end confdefs.h.  */
27164 $ac_includes_default
27165                    typedef int ac__type_sizeof_;
27166 int
27167 main ()
27168 {
27169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27170 test_array [0] = 0
27171
27172   ;
27173   return 0;
27174 }
27175 _ACEOF
27176 rm -f conftest.$ac_objext
27177 if { (ac_try="$ac_compile"
27178 case "(($ac_try" in
27179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27180   *) ac_try_echo=$ac_try;;
27181 esac
27182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27183   (eval "$ac_compile") 2>conftest.er1
27184   ac_status=$?
27185   grep -v '^ *+' conftest.er1 >conftest.err
27186   rm -f conftest.er1
27187   cat conftest.err >&5
27188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27189   (exit $ac_status); } &&
27190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27191   { (case "(($ac_try" in
27192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27193   *) ac_try_echo=$ac_try;;
27194 esac
27195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27196   (eval "$ac_try") 2>&5
27197   ac_status=$?
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); }; } &&
27200          { ac_try='test -s conftest.$ac_objext'
27201   { (case "(($ac_try" in
27202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27203   *) ac_try_echo=$ac_try;;
27204 esac
27205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27206   (eval "$ac_try") 2>&5
27207   ac_status=$?
27208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209   (exit $ac_status); }; }; then
27210   ac_lo=$ac_mid; break
27211 else
27212   echo "$as_me: failed program was:" >&5
27213 sed 's/^/| /' conftest.$ac_ext >&5
27214
27215         ac_hi=`expr '(' $ac_mid ')' - 1`
27216                         if test $ac_mid -le $ac_hi; then
27217                           ac_lo= ac_hi=
27218                           break
27219                         fi
27220                         ac_mid=`expr 2 '*' $ac_mid`
27221 fi
27222
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27224   done
27225 else
27226   echo "$as_me: failed program was:" >&5
27227 sed 's/^/| /' conftest.$ac_ext >&5
27228
27229         ac_lo= ac_hi=
27230 fi
27231
27232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27233 fi
27234
27235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27236 # Binary search between lo and hi bounds.
27237 while test "x$ac_lo" != "x$ac_hi"; do
27238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27239   cat >conftest.$ac_ext <<_ACEOF
27240 /* confdefs.h.  */
27241 _ACEOF
27242 cat confdefs.h >>conftest.$ac_ext
27243 cat >>conftest.$ac_ext <<_ACEOF
27244 /* end confdefs.h.  */
27245 $ac_includes_default
27246                    typedef int ac__type_sizeof_;
27247 int
27248 main ()
27249 {
27250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27251 test_array [0] = 0
27252
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 rm -f conftest.$ac_objext
27258 if { (ac_try="$ac_compile"
27259 case "(($ac_try" in
27260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27261   *) ac_try_echo=$ac_try;;
27262 esac
27263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27264   (eval "$ac_compile") 2>conftest.er1
27265   ac_status=$?
27266   grep -v '^ *+' conftest.er1 >conftest.err
27267   rm -f conftest.er1
27268   cat conftest.err >&5
27269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27270   (exit $ac_status); } &&
27271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27272   { (case "(($ac_try" in
27273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27274   *) ac_try_echo=$ac_try;;
27275 esac
27276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27277   (eval "$ac_try") 2>&5
27278   ac_status=$?
27279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27280   (exit $ac_status); }; } &&
27281          { ac_try='test -s conftest.$ac_objext'
27282   { (case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_try") 2>&5
27288   ac_status=$?
27289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27290   (exit $ac_status); }; }; then
27291   ac_hi=$ac_mid
27292 else
27293   echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27295
27296         ac_lo=`expr '(' $ac_mid ')' + 1`
27297 fi
27298
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300 done
27301 case $ac_lo in
27302 ?*) ac_cv_sizeof_int=$ac_lo;;
27303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27304 See \`config.log' for more details." >&5
27305 echo "$as_me: error: cannot compute sizeof (int)
27306 See \`config.log' for more details." >&2;}
27307    { (exit 77); exit 77; }; } ;;
27308 esac
27309 else
27310   cat >conftest.$ac_ext <<_ACEOF
27311 /* confdefs.h.  */
27312 _ACEOF
27313 cat confdefs.h >>conftest.$ac_ext
27314 cat >>conftest.$ac_ext <<_ACEOF
27315 /* end confdefs.h.  */
27316 $ac_includes_default
27317                    typedef int ac__type_sizeof_;
27318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27320 #include <stdio.h>
27321 #include <stdlib.h>
27322 int
27323 main ()
27324 {
27325
27326   FILE *f = fopen ("conftest.val", "w");
27327   if (! f)
27328     return 1;
27329   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27330     {
27331       long int i = longval ();
27332       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27333         return 1;
27334       fprintf (f, "%ld\n", i);
27335     }
27336   else
27337     {
27338       unsigned long int i = ulongval ();
27339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27340         return 1;
27341       fprintf (f, "%lu\n", i);
27342     }
27343   return ferror (f) || fclose (f) != 0;
27344
27345   ;
27346   return 0;
27347 }
27348 _ACEOF
27349 rm -f conftest$ac_exeext
27350 if { (ac_try="$ac_link"
27351 case "(($ac_try" in
27352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27353   *) ac_try_echo=$ac_try;;
27354 esac
27355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27356   (eval "$ac_link") 2>&5
27357   ac_status=$?
27358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27360   { (case "(($ac_try" in
27361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362   *) ac_try_echo=$ac_try;;
27363 esac
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365   (eval "$ac_try") 2>&5
27366   ac_status=$?
27367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27368   (exit $ac_status); }; }; then
27369   ac_cv_sizeof_int=`cat conftest.val`
27370 else
27371   echo "$as_me: program exited with status $ac_status" >&5
27372 echo "$as_me: failed program was:" >&5
27373 sed 's/^/| /' conftest.$ac_ext >&5
27374
27375 ( exit $ac_status )
27376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27377 See \`config.log' for more details." >&5
27378 echo "$as_me: error: cannot compute sizeof (int)
27379 See \`config.log' for more details." >&2;}
27380    { (exit 77); exit 77; }; }
27381 fi
27382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27383 fi
27384 rm -f conftest.val
27385 else
27386   ac_cv_sizeof_int=0
27387 fi
27388 fi
27389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27390 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27391 cat >>confdefs.h <<_ACEOF
27392 #define SIZEOF_INT $ac_cv_sizeof_int
27393 _ACEOF
27394
27395
27396 { echo "$as_me:$LINENO: checking for long int" >&5
27397 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27398 if test "${ac_cv_type_long_int+set}" = set; then
27399   echo $ECHO_N "(cached) $ECHO_C" >&6
27400 else
27401   cat >conftest.$ac_ext <<_ACEOF
27402 /* confdefs.h.  */
27403 _ACEOF
27404 cat confdefs.h >>conftest.$ac_ext
27405 cat >>conftest.$ac_ext <<_ACEOF
27406 /* end confdefs.h.  */
27407 $ac_includes_default
27408 typedef long int ac__type_new_;
27409 int
27410 main ()
27411 {
27412 if ((ac__type_new_ *) 0)
27413   return 0;
27414 if (sizeof (ac__type_new_))
27415   return 0;
27416   ;
27417   return 0;
27418 }
27419 _ACEOF
27420 rm -f conftest.$ac_objext
27421 if { (ac_try="$ac_compile"
27422 case "(($ac_try" in
27423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27424   *) ac_try_echo=$ac_try;;
27425 esac
27426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27427   (eval "$ac_compile") 2>conftest.er1
27428   ac_status=$?
27429   grep -v '^ *+' conftest.er1 >conftest.err
27430   rm -f conftest.er1
27431   cat conftest.err >&5
27432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27433   (exit $ac_status); } &&
27434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27435   { (case "(($ac_try" in
27436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27437   *) ac_try_echo=$ac_try;;
27438 esac
27439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27440   (eval "$ac_try") 2>&5
27441   ac_status=$?
27442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27443   (exit $ac_status); }; } &&
27444          { ac_try='test -s conftest.$ac_objext'
27445   { (case "(($ac_try" in
27446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27447   *) ac_try_echo=$ac_try;;
27448 esac
27449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27450   (eval "$ac_try") 2>&5
27451   ac_status=$?
27452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27453   (exit $ac_status); }; }; then
27454   ac_cv_type_long_int=yes
27455 else
27456   echo "$as_me: failed program was:" >&5
27457 sed 's/^/| /' conftest.$ac_ext >&5
27458
27459         ac_cv_type_long_int=no
27460 fi
27461
27462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27463 fi
27464 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27465 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27466
27467 { echo "$as_me:$LINENO: checking size of long int" >&5
27468 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27469 if test "${ac_cv_sizeof_long_int+set}" = set; then
27470   echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472   if test "$ac_cv_type_long_int" = yes; then
27473   # The cast to long int works around a bug in the HP C Compiler
27474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27476   # This bug is HP SR number 8606223364.
27477   if test "$cross_compiling" = yes; then
27478   # Depending upon the size, compute the lo and hi bounds.
27479 cat >conftest.$ac_ext <<_ACEOF
27480 /* confdefs.h.  */
27481 _ACEOF
27482 cat confdefs.h >>conftest.$ac_ext
27483 cat >>conftest.$ac_ext <<_ACEOF
27484 /* end confdefs.h.  */
27485 $ac_includes_default
27486                    typedef long int ac__type_sizeof_;
27487 int
27488 main ()
27489 {
27490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27491 test_array [0] = 0
27492
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 rm -f conftest.$ac_objext
27498 if { (ac_try="$ac_compile"
27499 case "(($ac_try" in
27500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27501   *) ac_try_echo=$ac_try;;
27502 esac
27503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27504   (eval "$ac_compile") 2>conftest.er1
27505   ac_status=$?
27506   grep -v '^ *+' conftest.er1 >conftest.err
27507   rm -f conftest.er1
27508   cat conftest.err >&5
27509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27510   (exit $ac_status); } &&
27511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27512   { (case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_try") 2>&5
27518   ac_status=$?
27519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520   (exit $ac_status); }; } &&
27521          { ac_try='test -s conftest.$ac_objext'
27522   { (case "(($ac_try" in
27523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27524   *) ac_try_echo=$ac_try;;
27525 esac
27526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27527   (eval "$ac_try") 2>&5
27528   ac_status=$?
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); }; }; then
27531   ac_lo=0 ac_mid=0
27532   while :; do
27533     cat >conftest.$ac_ext <<_ACEOF
27534 /* confdefs.h.  */
27535 _ACEOF
27536 cat confdefs.h >>conftest.$ac_ext
27537 cat >>conftest.$ac_ext <<_ACEOF
27538 /* end confdefs.h.  */
27539 $ac_includes_default
27540                    typedef long int ac__type_sizeof_;
27541 int
27542 main ()
27543 {
27544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27545 test_array [0] = 0
27546
27547   ;
27548   return 0;
27549 }
27550 _ACEOF
27551 rm -f conftest.$ac_objext
27552 if { (ac_try="$ac_compile"
27553 case "(($ac_try" in
27554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27555   *) ac_try_echo=$ac_try;;
27556 esac
27557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27558   (eval "$ac_compile") 2>conftest.er1
27559   ac_status=$?
27560   grep -v '^ *+' conftest.er1 >conftest.err
27561   rm -f conftest.er1
27562   cat conftest.err >&5
27563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27564   (exit $ac_status); } &&
27565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27566   { (case "(($ac_try" in
27567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27568   *) ac_try_echo=$ac_try;;
27569 esac
27570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27571   (eval "$ac_try") 2>&5
27572   ac_status=$?
27573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27574   (exit $ac_status); }; } &&
27575          { ac_try='test -s conftest.$ac_objext'
27576   { (case "(($ac_try" in
27577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27578   *) ac_try_echo=$ac_try;;
27579 esac
27580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27581   (eval "$ac_try") 2>&5
27582   ac_status=$?
27583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27584   (exit $ac_status); }; }; then
27585   ac_hi=$ac_mid; break
27586 else
27587   echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27589
27590         ac_lo=`expr $ac_mid + 1`
27591                         if test $ac_lo -le $ac_mid; then
27592                           ac_lo= ac_hi=
27593                           break
27594                         fi
27595                         ac_mid=`expr 2 '*' $ac_mid + 1`
27596 fi
27597
27598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27599   done
27600 else
27601   echo "$as_me: failed program was:" >&5
27602 sed 's/^/| /' conftest.$ac_ext >&5
27603
27604         cat >conftest.$ac_ext <<_ACEOF
27605 /* confdefs.h.  */
27606 _ACEOF
27607 cat confdefs.h >>conftest.$ac_ext
27608 cat >>conftest.$ac_ext <<_ACEOF
27609 /* end confdefs.h.  */
27610 $ac_includes_default
27611                    typedef long int ac__type_sizeof_;
27612 int
27613 main ()
27614 {
27615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27616 test_array [0] = 0
27617
27618   ;
27619   return 0;
27620 }
27621 _ACEOF
27622 rm -f conftest.$ac_objext
27623 if { (ac_try="$ac_compile"
27624 case "(($ac_try" in
27625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27626   *) ac_try_echo=$ac_try;;
27627 esac
27628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27629   (eval "$ac_compile") 2>conftest.er1
27630   ac_status=$?
27631   grep -v '^ *+' conftest.er1 >conftest.err
27632   rm -f conftest.er1
27633   cat conftest.err >&5
27634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27635   (exit $ac_status); } &&
27636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27637   { (case "(($ac_try" in
27638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27639   *) ac_try_echo=$ac_try;;
27640 esac
27641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27642   (eval "$ac_try") 2>&5
27643   ac_status=$?
27644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27645   (exit $ac_status); }; } &&
27646          { ac_try='test -s conftest.$ac_objext'
27647   { (case "(($ac_try" in
27648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27649   *) ac_try_echo=$ac_try;;
27650 esac
27651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27652   (eval "$ac_try") 2>&5
27653   ac_status=$?
27654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655   (exit $ac_status); }; }; then
27656   ac_hi=-1 ac_mid=-1
27657   while :; do
27658     cat >conftest.$ac_ext <<_ACEOF
27659 /* confdefs.h.  */
27660 _ACEOF
27661 cat confdefs.h >>conftest.$ac_ext
27662 cat >>conftest.$ac_ext <<_ACEOF
27663 /* end confdefs.h.  */
27664 $ac_includes_default
27665                    typedef long int ac__type_sizeof_;
27666 int
27667 main ()
27668 {
27669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27670 test_array [0] = 0
27671
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 rm -f conftest.$ac_objext
27677 if { (ac_try="$ac_compile"
27678 case "(($ac_try" in
27679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27680   *) ac_try_echo=$ac_try;;
27681 esac
27682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27683   (eval "$ac_compile") 2>conftest.er1
27684   ac_status=$?
27685   grep -v '^ *+' conftest.er1 >conftest.err
27686   rm -f conftest.er1
27687   cat conftest.err >&5
27688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27689   (exit $ac_status); } &&
27690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27691   { (case "(($ac_try" in
27692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693   *) ac_try_echo=$ac_try;;
27694 esac
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696   (eval "$ac_try") 2>&5
27697   ac_status=$?
27698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27699   (exit $ac_status); }; } &&
27700          { ac_try='test -s conftest.$ac_objext'
27701   { (case "(($ac_try" in
27702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27703   *) ac_try_echo=$ac_try;;
27704 esac
27705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27706   (eval "$ac_try") 2>&5
27707   ac_status=$?
27708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27709   (exit $ac_status); }; }; then
27710   ac_lo=$ac_mid; break
27711 else
27712   echo "$as_me: failed program was:" >&5
27713 sed 's/^/| /' conftest.$ac_ext >&5
27714
27715         ac_hi=`expr '(' $ac_mid ')' - 1`
27716                         if test $ac_mid -le $ac_hi; then
27717                           ac_lo= ac_hi=
27718                           break
27719                         fi
27720                         ac_mid=`expr 2 '*' $ac_mid`
27721 fi
27722
27723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27724   done
27725 else
27726   echo "$as_me: failed program was:" >&5
27727 sed 's/^/| /' conftest.$ac_ext >&5
27728
27729         ac_lo= ac_hi=
27730 fi
27731
27732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27733 fi
27734
27735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27736 # Binary search between lo and hi bounds.
27737 while test "x$ac_lo" != "x$ac_hi"; do
27738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27739   cat >conftest.$ac_ext <<_ACEOF
27740 /* confdefs.h.  */
27741 _ACEOF
27742 cat confdefs.h >>conftest.$ac_ext
27743 cat >>conftest.$ac_ext <<_ACEOF
27744 /* end confdefs.h.  */
27745 $ac_includes_default
27746                    typedef long int ac__type_sizeof_;
27747 int
27748 main ()
27749 {
27750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27751 test_array [0] = 0
27752
27753   ;
27754   return 0;
27755 }
27756 _ACEOF
27757 rm -f conftest.$ac_objext
27758 if { (ac_try="$ac_compile"
27759 case "(($ac_try" in
27760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27761   *) ac_try_echo=$ac_try;;
27762 esac
27763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27764   (eval "$ac_compile") 2>conftest.er1
27765   ac_status=$?
27766   grep -v '^ *+' conftest.er1 >conftest.err
27767   rm -f conftest.er1
27768   cat conftest.err >&5
27769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27770   (exit $ac_status); } &&
27771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27772   { (case "(($ac_try" in
27773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27774   *) ac_try_echo=$ac_try;;
27775 esac
27776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27777   (eval "$ac_try") 2>&5
27778   ac_status=$?
27779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27780   (exit $ac_status); }; } &&
27781          { ac_try='test -s conftest.$ac_objext'
27782   { (case "(($ac_try" in
27783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27784   *) ac_try_echo=$ac_try;;
27785 esac
27786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27787   (eval "$ac_try") 2>&5
27788   ac_status=$?
27789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27790   (exit $ac_status); }; }; then
27791   ac_hi=$ac_mid
27792 else
27793   echo "$as_me: failed program was:" >&5
27794 sed 's/^/| /' conftest.$ac_ext >&5
27795
27796         ac_lo=`expr '(' $ac_mid ')' + 1`
27797 fi
27798
27799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27800 done
27801 case $ac_lo in
27802 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27804 See \`config.log' for more details." >&5
27805 echo "$as_me: error: cannot compute sizeof (long int)
27806 See \`config.log' for more details." >&2;}
27807    { (exit 77); exit 77; }; } ;;
27808 esac
27809 else
27810   cat >conftest.$ac_ext <<_ACEOF
27811 /* confdefs.h.  */
27812 _ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h.  */
27816 $ac_includes_default
27817                    typedef long int ac__type_sizeof_;
27818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27820 #include <stdio.h>
27821 #include <stdlib.h>
27822 int
27823 main ()
27824 {
27825
27826   FILE *f = fopen ("conftest.val", "w");
27827   if (! f)
27828     return 1;
27829   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27830     {
27831       long int i = longval ();
27832       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27833         return 1;
27834       fprintf (f, "%ld\n", i);
27835     }
27836   else
27837     {
27838       unsigned long int i = ulongval ();
27839       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27840         return 1;
27841       fprintf (f, "%lu\n", i);
27842     }
27843   return ferror (f) || fclose (f) != 0;
27844
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 rm -f conftest$ac_exeext
27850 if { (ac_try="$ac_link"
27851 case "(($ac_try" in
27852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27853   *) ac_try_echo=$ac_try;;
27854 esac
27855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27856   (eval "$ac_link") 2>&5
27857   ac_status=$?
27858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27860   { (case "(($ac_try" in
27861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27862   *) ac_try_echo=$ac_try;;
27863 esac
27864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27865   (eval "$ac_try") 2>&5
27866   ac_status=$?
27867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868   (exit $ac_status); }; }; then
27869   ac_cv_sizeof_long_int=`cat conftest.val`
27870 else
27871   echo "$as_me: program exited with status $ac_status" >&5
27872 echo "$as_me: failed program was:" >&5
27873 sed 's/^/| /' conftest.$ac_ext >&5
27874
27875 ( exit $ac_status )
27876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27877 See \`config.log' for more details." >&5
27878 echo "$as_me: error: cannot compute sizeof (long int)
27879 See \`config.log' for more details." >&2;}
27880    { (exit 77); exit 77; }; }
27881 fi
27882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27883 fi
27884 rm -f conftest.val
27885 else
27886   ac_cv_sizeof_long_int=0
27887 fi
27888 fi
27889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27890 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27891 cat >>confdefs.h <<_ACEOF
27892 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27893 _ACEOF
27894
27895
27896 { echo "$as_me:$LINENO: checking for long long int" >&5
27897 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27898 if test "${ac_cv_type_long_long_int+set}" = set; then
27899   echo $ECHO_N "(cached) $ECHO_C" >&6
27900 else
27901   cat >conftest.$ac_ext <<_ACEOF
27902 /* confdefs.h.  */
27903 _ACEOF
27904 cat confdefs.h >>conftest.$ac_ext
27905 cat >>conftest.$ac_ext <<_ACEOF
27906 /* end confdefs.h.  */
27907 $ac_includes_default
27908 typedef long long int ac__type_new_;
27909 int
27910 main ()
27911 {
27912 if ((ac__type_new_ *) 0)
27913   return 0;
27914 if (sizeof (ac__type_new_))
27915   return 0;
27916   ;
27917   return 0;
27918 }
27919 _ACEOF
27920 rm -f conftest.$ac_objext
27921 if { (ac_try="$ac_compile"
27922 case "(($ac_try" in
27923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924   *) ac_try_echo=$ac_try;;
27925 esac
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927   (eval "$ac_compile") 2>conftest.er1
27928   ac_status=$?
27929   grep -v '^ *+' conftest.er1 >conftest.err
27930   rm -f conftest.er1
27931   cat conftest.err >&5
27932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933   (exit $ac_status); } &&
27934          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27935   { (case "(($ac_try" in
27936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27937   *) ac_try_echo=$ac_try;;
27938 esac
27939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27940   (eval "$ac_try") 2>&5
27941   ac_status=$?
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); }; } &&
27944          { ac_try='test -s conftest.$ac_objext'
27945   { (case "(($ac_try" in
27946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27947   *) ac_try_echo=$ac_try;;
27948 esac
27949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27950   (eval "$ac_try") 2>&5
27951   ac_status=$?
27952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953   (exit $ac_status); }; }; then
27954   ac_cv_type_long_long_int=yes
27955 else
27956   echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.$ac_ext >&5
27958
27959         ac_cv_type_long_long_int=no
27960 fi
27961
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963 fi
27964 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27965 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27966
27967 { echo "$as_me:$LINENO: checking size of long long int" >&5
27968 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27969 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27970   echo $ECHO_N "(cached) $ECHO_C" >&6
27971 else
27972   if test "$ac_cv_type_long_long_int" = yes; then
27973   # The cast to long int works around a bug in the HP C Compiler
27974   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27975   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27976   # This bug is HP SR number 8606223364.
27977   if test "$cross_compiling" = yes; then
27978   # Depending upon the size, compute the lo and hi bounds.
27979 cat >conftest.$ac_ext <<_ACEOF
27980 /* confdefs.h.  */
27981 _ACEOF
27982 cat confdefs.h >>conftest.$ac_ext
27983 cat >>conftest.$ac_ext <<_ACEOF
27984 /* end confdefs.h.  */
27985 $ac_includes_default
27986                    typedef long long int ac__type_sizeof_;
27987 int
27988 main ()
27989 {
27990 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27991 test_array [0] = 0
27992
27993   ;
27994   return 0;
27995 }
27996 _ACEOF
27997 rm -f conftest.$ac_objext
27998 if { (ac_try="$ac_compile"
27999 case "(($ac_try" in
28000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28001   *) ac_try_echo=$ac_try;;
28002 esac
28003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28004   (eval "$ac_compile") 2>conftest.er1
28005   ac_status=$?
28006   grep -v '^ *+' conftest.er1 >conftest.err
28007   rm -f conftest.er1
28008   cat conftest.err >&5
28009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28010   (exit $ac_status); } &&
28011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28012   { (case "(($ac_try" in
28013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28014   *) ac_try_echo=$ac_try;;
28015 esac
28016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28017   (eval "$ac_try") 2>&5
28018   ac_status=$?
28019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28020   (exit $ac_status); }; } &&
28021          { ac_try='test -s conftest.$ac_objext'
28022   { (case "(($ac_try" in
28023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28024   *) ac_try_echo=$ac_try;;
28025 esac
28026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28027   (eval "$ac_try") 2>&5
28028   ac_status=$?
28029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28030   (exit $ac_status); }; }; then
28031   ac_lo=0 ac_mid=0
28032   while :; do
28033     cat >conftest.$ac_ext <<_ACEOF
28034 /* confdefs.h.  */
28035 _ACEOF
28036 cat confdefs.h >>conftest.$ac_ext
28037 cat >>conftest.$ac_ext <<_ACEOF
28038 /* end confdefs.h.  */
28039 $ac_includes_default
28040                    typedef long long int ac__type_sizeof_;
28041 int
28042 main ()
28043 {
28044 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28045 test_array [0] = 0
28046
28047   ;
28048   return 0;
28049 }
28050 _ACEOF
28051 rm -f conftest.$ac_objext
28052 if { (ac_try="$ac_compile"
28053 case "(($ac_try" in
28054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28055   *) ac_try_echo=$ac_try;;
28056 esac
28057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28058   (eval "$ac_compile") 2>conftest.er1
28059   ac_status=$?
28060   grep -v '^ *+' conftest.er1 >conftest.err
28061   rm -f conftest.er1
28062   cat conftest.err >&5
28063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28064   (exit $ac_status); } &&
28065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28066   { (case "(($ac_try" in
28067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28068   *) ac_try_echo=$ac_try;;
28069 esac
28070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28071   (eval "$ac_try") 2>&5
28072   ac_status=$?
28073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074   (exit $ac_status); }; } &&
28075          { ac_try='test -s conftest.$ac_objext'
28076   { (case "(($ac_try" in
28077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28078   *) ac_try_echo=$ac_try;;
28079 esac
28080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28081   (eval "$ac_try") 2>&5
28082   ac_status=$?
28083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28084   (exit $ac_status); }; }; then
28085   ac_hi=$ac_mid; break
28086 else
28087   echo "$as_me: failed program was:" >&5
28088 sed 's/^/| /' conftest.$ac_ext >&5
28089
28090         ac_lo=`expr $ac_mid + 1`
28091                         if test $ac_lo -le $ac_mid; then
28092                           ac_lo= ac_hi=
28093                           break
28094                         fi
28095                         ac_mid=`expr 2 '*' $ac_mid + 1`
28096 fi
28097
28098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28099   done
28100 else
28101   echo "$as_me: failed program was:" >&5
28102 sed 's/^/| /' conftest.$ac_ext >&5
28103
28104         cat >conftest.$ac_ext <<_ACEOF
28105 /* confdefs.h.  */
28106 _ACEOF
28107 cat confdefs.h >>conftest.$ac_ext
28108 cat >>conftest.$ac_ext <<_ACEOF
28109 /* end confdefs.h.  */
28110 $ac_includes_default
28111                    typedef long long int ac__type_sizeof_;
28112 int
28113 main ()
28114 {
28115 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28116 test_array [0] = 0
28117
28118   ;
28119   return 0;
28120 }
28121 _ACEOF
28122 rm -f conftest.$ac_objext
28123 if { (ac_try="$ac_compile"
28124 case "(($ac_try" in
28125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28126   *) ac_try_echo=$ac_try;;
28127 esac
28128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28129   (eval "$ac_compile") 2>conftest.er1
28130   ac_status=$?
28131   grep -v '^ *+' conftest.er1 >conftest.err
28132   rm -f conftest.er1
28133   cat conftest.err >&5
28134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135   (exit $ac_status); } &&
28136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28137   { (case "(($ac_try" in
28138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28139   *) ac_try_echo=$ac_try;;
28140 esac
28141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28142   (eval "$ac_try") 2>&5
28143   ac_status=$?
28144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145   (exit $ac_status); }; } &&
28146          { ac_try='test -s conftest.$ac_objext'
28147   { (case "(($ac_try" in
28148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28149   *) ac_try_echo=$ac_try;;
28150 esac
28151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28152   (eval "$ac_try") 2>&5
28153   ac_status=$?
28154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155   (exit $ac_status); }; }; then
28156   ac_hi=-1 ac_mid=-1
28157   while :; do
28158     cat >conftest.$ac_ext <<_ACEOF
28159 /* confdefs.h.  */
28160 _ACEOF
28161 cat confdefs.h >>conftest.$ac_ext
28162 cat >>conftest.$ac_ext <<_ACEOF
28163 /* end confdefs.h.  */
28164 $ac_includes_default
28165                    typedef long long int ac__type_sizeof_;
28166 int
28167 main ()
28168 {
28169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28170 test_array [0] = 0
28171
28172   ;
28173   return 0;
28174 }
28175 _ACEOF
28176 rm -f conftest.$ac_objext
28177 if { (ac_try="$ac_compile"
28178 case "(($ac_try" in
28179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28180   *) ac_try_echo=$ac_try;;
28181 esac
28182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28183   (eval "$ac_compile") 2>conftest.er1
28184   ac_status=$?
28185   grep -v '^ *+' conftest.er1 >conftest.err
28186   rm -f conftest.er1
28187   cat conftest.err >&5
28188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189   (exit $ac_status); } &&
28190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28191   { (case "(($ac_try" in
28192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28193   *) ac_try_echo=$ac_try;;
28194 esac
28195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28196   (eval "$ac_try") 2>&5
28197   ac_status=$?
28198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28199   (exit $ac_status); }; } &&
28200          { ac_try='test -s conftest.$ac_objext'
28201   { (case "(($ac_try" in
28202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203   *) ac_try_echo=$ac_try;;
28204 esac
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206   (eval "$ac_try") 2>&5
28207   ac_status=$?
28208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28209   (exit $ac_status); }; }; then
28210   ac_lo=$ac_mid; break
28211 else
28212   echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28214
28215         ac_hi=`expr '(' $ac_mid ')' - 1`
28216                         if test $ac_mid -le $ac_hi; then
28217                           ac_lo= ac_hi=
28218                           break
28219                         fi
28220                         ac_mid=`expr 2 '*' $ac_mid`
28221 fi
28222
28223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28224   done
28225 else
28226   echo "$as_me: failed program was:" >&5
28227 sed 's/^/| /' conftest.$ac_ext >&5
28228
28229         ac_lo= ac_hi=
28230 fi
28231
28232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28233 fi
28234
28235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28236 # Binary search between lo and hi bounds.
28237 while test "x$ac_lo" != "x$ac_hi"; do
28238   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28239   cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245 $ac_includes_default
28246                    typedef long long int ac__type_sizeof_;
28247 int
28248 main ()
28249 {
28250 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28251 test_array [0] = 0
28252
28253   ;
28254   return 0;
28255 }
28256 _ACEOF
28257 rm -f conftest.$ac_objext
28258 if { (ac_try="$ac_compile"
28259 case "(($ac_try" in
28260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28261   *) ac_try_echo=$ac_try;;
28262 esac
28263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28264   (eval "$ac_compile") 2>conftest.er1
28265   ac_status=$?
28266   grep -v '^ *+' conftest.er1 >conftest.err
28267   rm -f conftest.er1
28268   cat conftest.err >&5
28269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270   (exit $ac_status); } &&
28271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28272   { (case "(($ac_try" in
28273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28274   *) ac_try_echo=$ac_try;;
28275 esac
28276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28277   (eval "$ac_try") 2>&5
28278   ac_status=$?
28279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28280   (exit $ac_status); }; } &&
28281          { ac_try='test -s conftest.$ac_objext'
28282   { (case "(($ac_try" in
28283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28284   *) ac_try_echo=$ac_try;;
28285 esac
28286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28287   (eval "$ac_try") 2>&5
28288   ac_status=$?
28289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); }; }; then
28291   ac_hi=$ac_mid
28292 else
28293   echo "$as_me: failed program was:" >&5
28294 sed 's/^/| /' conftest.$ac_ext >&5
28295
28296         ac_lo=`expr '(' $ac_mid ')' + 1`
28297 fi
28298
28299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28300 done
28301 case $ac_lo in
28302 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28303 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28304 See \`config.log' for more details." >&5
28305 echo "$as_me: error: cannot compute sizeof (long long int)
28306 See \`config.log' for more details." >&2;}
28307    { (exit 77); exit 77; }; } ;;
28308 esac
28309 else
28310   cat >conftest.$ac_ext <<_ACEOF
28311 /* confdefs.h.  */
28312 _ACEOF
28313 cat confdefs.h >>conftest.$ac_ext
28314 cat >>conftest.$ac_ext <<_ACEOF
28315 /* end confdefs.h.  */
28316 $ac_includes_default
28317                    typedef long long int ac__type_sizeof_;
28318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28320 #include <stdio.h>
28321 #include <stdlib.h>
28322 int
28323 main ()
28324 {
28325
28326   FILE *f = fopen ("conftest.val", "w");
28327   if (! f)
28328     return 1;
28329   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28330     {
28331       long int i = longval ();
28332       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28333         return 1;
28334       fprintf (f, "%ld\n", i);
28335     }
28336   else
28337     {
28338       unsigned long int i = ulongval ();
28339       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28340         return 1;
28341       fprintf (f, "%lu\n", i);
28342     }
28343   return ferror (f) || fclose (f) != 0;
28344
28345   ;
28346   return 0;
28347 }
28348 _ACEOF
28349 rm -f conftest$ac_exeext
28350 if { (ac_try="$ac_link"
28351 case "(($ac_try" in
28352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353   *) ac_try_echo=$ac_try;;
28354 esac
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356   (eval "$ac_link") 2>&5
28357   ac_status=$?
28358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28360   { (case "(($ac_try" in
28361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362   *) ac_try_echo=$ac_try;;
28363 esac
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365   (eval "$ac_try") 2>&5
28366   ac_status=$?
28367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368   (exit $ac_status); }; }; then
28369   ac_cv_sizeof_long_long_int=`cat conftest.val`
28370 else
28371   echo "$as_me: program exited with status $ac_status" >&5
28372 echo "$as_me: failed program was:" >&5
28373 sed 's/^/| /' conftest.$ac_ext >&5
28374
28375 ( exit $ac_status )
28376 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28377 See \`config.log' for more details." >&5
28378 echo "$as_me: error: cannot compute sizeof (long long int)
28379 See \`config.log' for more details." >&2;}
28380    { (exit 77); exit 77; }; }
28381 fi
28382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28383 fi
28384 rm -f conftest.val
28385 else
28386   ac_cv_sizeof_long_long_int=0
28387 fi
28388 fi
28389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28390 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28391 cat >>confdefs.h <<_ACEOF
28392 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28393 _ACEOF
28394
28395
28396 { echo "$as_me:$LINENO: checking for int *" >&5
28397 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28398 if test "${ac_cv_type_int_p+set}" = set; then
28399   echo $ECHO_N "(cached) $ECHO_C" >&6
28400 else
28401   cat >conftest.$ac_ext <<_ACEOF
28402 /* confdefs.h.  */
28403 _ACEOF
28404 cat confdefs.h >>conftest.$ac_ext
28405 cat >>conftest.$ac_ext <<_ACEOF
28406 /* end confdefs.h.  */
28407 $ac_includes_default
28408 typedef int * ac__type_new_;
28409 int
28410 main ()
28411 {
28412 if ((ac__type_new_ *) 0)
28413   return 0;
28414 if (sizeof (ac__type_new_))
28415   return 0;
28416   ;
28417   return 0;
28418 }
28419 _ACEOF
28420 rm -f conftest.$ac_objext
28421 if { (ac_try="$ac_compile"
28422 case "(($ac_try" in
28423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424   *) ac_try_echo=$ac_try;;
28425 esac
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427   (eval "$ac_compile") 2>conftest.er1
28428   ac_status=$?
28429   grep -v '^ *+' conftest.er1 >conftest.err
28430   rm -f conftest.er1
28431   cat conftest.err >&5
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); } &&
28434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28435   { (case "(($ac_try" in
28436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28437   *) ac_try_echo=$ac_try;;
28438 esac
28439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28440   (eval "$ac_try") 2>&5
28441   ac_status=$?
28442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28443   (exit $ac_status); }; } &&
28444          { ac_try='test -s conftest.$ac_objext'
28445   { (case "(($ac_try" in
28446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28447   *) ac_try_echo=$ac_try;;
28448 esac
28449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28450   (eval "$ac_try") 2>&5
28451   ac_status=$?
28452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28453   (exit $ac_status); }; }; then
28454   ac_cv_type_int_p=yes
28455 else
28456   echo "$as_me: failed program was:" >&5
28457 sed 's/^/| /' conftest.$ac_ext >&5
28458
28459         ac_cv_type_int_p=no
28460 fi
28461
28462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28463 fi
28464 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28465 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28466
28467 { echo "$as_me:$LINENO: checking size of int *" >&5
28468 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28469 if test "${ac_cv_sizeof_int_p+set}" = set; then
28470   echo $ECHO_N "(cached) $ECHO_C" >&6
28471 else
28472   if test "$ac_cv_type_int_p" = yes; then
28473   # The cast to long int works around a bug in the HP C Compiler
28474   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28475   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28476   # This bug is HP SR number 8606223364.
28477   if test "$cross_compiling" = yes; then
28478   # Depending upon the size, compute the lo and hi bounds.
28479 cat >conftest.$ac_ext <<_ACEOF
28480 /* confdefs.h.  */
28481 _ACEOF
28482 cat confdefs.h >>conftest.$ac_ext
28483 cat >>conftest.$ac_ext <<_ACEOF
28484 /* end confdefs.h.  */
28485 $ac_includes_default
28486                    typedef int * ac__type_sizeof_;
28487 int
28488 main ()
28489 {
28490 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28491 test_array [0] = 0
28492
28493   ;
28494   return 0;
28495 }
28496 _ACEOF
28497 rm -f conftest.$ac_objext
28498 if { (ac_try="$ac_compile"
28499 case "(($ac_try" in
28500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28501   *) ac_try_echo=$ac_try;;
28502 esac
28503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28504   (eval "$ac_compile") 2>conftest.er1
28505   ac_status=$?
28506   grep -v '^ *+' conftest.er1 >conftest.err
28507   rm -f conftest.er1
28508   cat conftest.err >&5
28509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510   (exit $ac_status); } &&
28511          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28512   { (case "(($ac_try" in
28513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28514   *) ac_try_echo=$ac_try;;
28515 esac
28516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28517   (eval "$ac_try") 2>&5
28518   ac_status=$?
28519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28520   (exit $ac_status); }; } &&
28521          { ac_try='test -s conftest.$ac_objext'
28522   { (case "(($ac_try" in
28523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28524   *) ac_try_echo=$ac_try;;
28525 esac
28526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28527   (eval "$ac_try") 2>&5
28528   ac_status=$?
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); }; }; then
28531   ac_lo=0 ac_mid=0
28532   while :; do
28533     cat >conftest.$ac_ext <<_ACEOF
28534 /* confdefs.h.  */
28535 _ACEOF
28536 cat confdefs.h >>conftest.$ac_ext
28537 cat >>conftest.$ac_ext <<_ACEOF
28538 /* end confdefs.h.  */
28539 $ac_includes_default
28540                    typedef int * ac__type_sizeof_;
28541 int
28542 main ()
28543 {
28544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28545 test_array [0] = 0
28546
28547   ;
28548   return 0;
28549 }
28550 _ACEOF
28551 rm -f conftest.$ac_objext
28552 if { (ac_try="$ac_compile"
28553 case "(($ac_try" in
28554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28555   *) ac_try_echo=$ac_try;;
28556 esac
28557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28558   (eval "$ac_compile") 2>conftest.er1
28559   ac_status=$?
28560   grep -v '^ *+' conftest.er1 >conftest.err
28561   rm -f conftest.er1
28562   cat conftest.err >&5
28563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28564   (exit $ac_status); } &&
28565          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28566   { (case "(($ac_try" in
28567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28568   *) ac_try_echo=$ac_try;;
28569 esac
28570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28571   (eval "$ac_try") 2>&5
28572   ac_status=$?
28573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28574   (exit $ac_status); }; } &&
28575          { ac_try='test -s conftest.$ac_objext'
28576   { (case "(($ac_try" in
28577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28578   *) ac_try_echo=$ac_try;;
28579 esac
28580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28581   (eval "$ac_try") 2>&5
28582   ac_status=$?
28583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584   (exit $ac_status); }; }; then
28585   ac_hi=$ac_mid; break
28586 else
28587   echo "$as_me: failed program was:" >&5
28588 sed 's/^/| /' conftest.$ac_ext >&5
28589
28590         ac_lo=`expr $ac_mid + 1`
28591                         if test $ac_lo -le $ac_mid; then
28592                           ac_lo= ac_hi=
28593                           break
28594                         fi
28595                         ac_mid=`expr 2 '*' $ac_mid + 1`
28596 fi
28597
28598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28599   done
28600 else
28601   echo "$as_me: failed program was:" >&5
28602 sed 's/^/| /' conftest.$ac_ext >&5
28603
28604         cat >conftest.$ac_ext <<_ACEOF
28605 /* confdefs.h.  */
28606 _ACEOF
28607 cat confdefs.h >>conftest.$ac_ext
28608 cat >>conftest.$ac_ext <<_ACEOF
28609 /* end confdefs.h.  */
28610 $ac_includes_default
28611                    typedef int * ac__type_sizeof_;
28612 int
28613 main ()
28614 {
28615 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28616 test_array [0] = 0
28617
28618   ;
28619   return 0;
28620 }
28621 _ACEOF
28622 rm -f conftest.$ac_objext
28623 if { (ac_try="$ac_compile"
28624 case "(($ac_try" in
28625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28626   *) ac_try_echo=$ac_try;;
28627 esac
28628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28629   (eval "$ac_compile") 2>conftest.er1
28630   ac_status=$?
28631   grep -v '^ *+' conftest.er1 >conftest.err
28632   rm -f conftest.er1
28633   cat conftest.err >&5
28634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28635   (exit $ac_status); } &&
28636          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28637   { (case "(($ac_try" in
28638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28639   *) ac_try_echo=$ac_try;;
28640 esac
28641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28642   (eval "$ac_try") 2>&5
28643   ac_status=$?
28644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645   (exit $ac_status); }; } &&
28646          { ac_try='test -s conftest.$ac_objext'
28647   { (case "(($ac_try" in
28648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28649   *) ac_try_echo=$ac_try;;
28650 esac
28651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28652   (eval "$ac_try") 2>&5
28653   ac_status=$?
28654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28655   (exit $ac_status); }; }; then
28656   ac_hi=-1 ac_mid=-1
28657   while :; do
28658     cat >conftest.$ac_ext <<_ACEOF
28659 /* confdefs.h.  */
28660 _ACEOF
28661 cat confdefs.h >>conftest.$ac_ext
28662 cat >>conftest.$ac_ext <<_ACEOF
28663 /* end confdefs.h.  */
28664 $ac_includes_default
28665                    typedef int * ac__type_sizeof_;
28666 int
28667 main ()
28668 {
28669 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28670 test_array [0] = 0
28671
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext
28677 if { (ac_try="$ac_compile"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_compile") 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } &&
28690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28691   { (case "(($ac_try" in
28692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28693   *) ac_try_echo=$ac_try;;
28694 esac
28695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28696   (eval "$ac_try") 2>&5
28697   ac_status=$?
28698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28699   (exit $ac_status); }; } &&
28700          { ac_try='test -s conftest.$ac_objext'
28701   { (case "(($ac_try" in
28702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28703   *) ac_try_echo=$ac_try;;
28704 esac
28705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28706   (eval "$ac_try") 2>&5
28707   ac_status=$?
28708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709   (exit $ac_status); }; }; then
28710   ac_lo=$ac_mid; break
28711 else
28712   echo "$as_me: failed program was:" >&5
28713 sed 's/^/| /' conftest.$ac_ext >&5
28714
28715         ac_hi=`expr '(' $ac_mid ')' - 1`
28716                         if test $ac_mid -le $ac_hi; then
28717                           ac_lo= ac_hi=
28718                           break
28719                         fi
28720                         ac_mid=`expr 2 '*' $ac_mid`
28721 fi
28722
28723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28724   done
28725 else
28726   echo "$as_me: failed program was:" >&5
28727 sed 's/^/| /' conftest.$ac_ext >&5
28728
28729         ac_lo= ac_hi=
28730 fi
28731
28732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28733 fi
28734
28735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28736 # Binary search between lo and hi bounds.
28737 while test "x$ac_lo" != "x$ac_hi"; do
28738   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28739   cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745 $ac_includes_default
28746                    typedef int * ac__type_sizeof_;
28747 int
28748 main ()
28749 {
28750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28751 test_array [0] = 0
28752
28753   ;
28754   return 0;
28755 }
28756 _ACEOF
28757 rm -f conftest.$ac_objext
28758 if { (ac_try="$ac_compile"
28759 case "(($ac_try" in
28760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28761   *) ac_try_echo=$ac_try;;
28762 esac
28763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28764   (eval "$ac_compile") 2>conftest.er1
28765   ac_status=$?
28766   grep -v '^ *+' conftest.er1 >conftest.err
28767   rm -f conftest.er1
28768   cat conftest.err >&5
28769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770   (exit $ac_status); } &&
28771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28772   { (case "(($ac_try" in
28773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28774   *) ac_try_echo=$ac_try;;
28775 esac
28776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28777   (eval "$ac_try") 2>&5
28778   ac_status=$?
28779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28780   (exit $ac_status); }; } &&
28781          { ac_try='test -s conftest.$ac_objext'
28782   { (case "(($ac_try" in
28783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28784   *) ac_try_echo=$ac_try;;
28785 esac
28786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28787   (eval "$ac_try") 2>&5
28788   ac_status=$?
28789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28790   (exit $ac_status); }; }; then
28791   ac_hi=$ac_mid
28792 else
28793   echo "$as_me: failed program was:" >&5
28794 sed 's/^/| /' conftest.$ac_ext >&5
28795
28796         ac_lo=`expr '(' $ac_mid ')' + 1`
28797 fi
28798
28799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28800 done
28801 case $ac_lo in
28802 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28803 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28804 See \`config.log' for more details." >&5
28805 echo "$as_me: error: cannot compute sizeof (int *)
28806 See \`config.log' for more details." >&2;}
28807    { (exit 77); exit 77; }; } ;;
28808 esac
28809 else
28810   cat >conftest.$ac_ext <<_ACEOF
28811 /* confdefs.h.  */
28812 _ACEOF
28813 cat confdefs.h >>conftest.$ac_ext
28814 cat >>conftest.$ac_ext <<_ACEOF
28815 /* end confdefs.h.  */
28816 $ac_includes_default
28817                    typedef int * ac__type_sizeof_;
28818 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28819 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28820 #include <stdio.h>
28821 #include <stdlib.h>
28822 int
28823 main ()
28824 {
28825
28826   FILE *f = fopen ("conftest.val", "w");
28827   if (! f)
28828     return 1;
28829   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28830     {
28831       long int i = longval ();
28832       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28833         return 1;
28834       fprintf (f, "%ld\n", i);
28835     }
28836   else
28837     {
28838       unsigned long int i = ulongval ();
28839       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28840         return 1;
28841       fprintf (f, "%lu\n", i);
28842     }
28843   return ferror (f) || fclose (f) != 0;
28844
28845   ;
28846   return 0;
28847 }
28848 _ACEOF
28849 rm -f conftest$ac_exeext
28850 if { (ac_try="$ac_link"
28851 case "(($ac_try" in
28852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28853   *) ac_try_echo=$ac_try;;
28854 esac
28855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28856   (eval "$ac_link") 2>&5
28857   ac_status=$?
28858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28860   { (case "(($ac_try" in
28861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28862   *) ac_try_echo=$ac_try;;
28863 esac
28864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28865   (eval "$ac_try") 2>&5
28866   ac_status=$?
28867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28868   (exit $ac_status); }; }; then
28869   ac_cv_sizeof_int_p=`cat conftest.val`
28870 else
28871   echo "$as_me: program exited with status $ac_status" >&5
28872 echo "$as_me: failed program was:" >&5
28873 sed 's/^/| /' conftest.$ac_ext >&5
28874
28875 ( exit $ac_status )
28876 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28877 See \`config.log' for more details." >&5
28878 echo "$as_me: error: cannot compute sizeof (int *)
28879 See \`config.log' for more details." >&2;}
28880    { (exit 77); exit 77; }; }
28881 fi
28882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28883 fi
28884 rm -f conftest.val
28885 else
28886   ac_cv_sizeof_int_p=0
28887 fi
28888 fi
28889 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28890 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28891 cat >>confdefs.h <<_ACEOF
28892 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28893 _ACEOF
28894
28895
28896
28897 # Check for sys/types.h types
28898 { echo "$as_me:$LINENO: checking for u_int type" >&5
28899 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28900 if test "${ac_cv_have_u_int+set}" = set; then
28901   echo $ECHO_N "(cached) $ECHO_C" >&6
28902 else
28903
28904     cat >conftest.$ac_ext <<_ACEOF
28905 /* confdefs.h.  */
28906 _ACEOF
28907 cat confdefs.h >>conftest.$ac_ext
28908 cat >>conftest.$ac_ext <<_ACEOF
28909 /* end confdefs.h.  */
28910  #include <sys/types.h>
28911 int
28912 main ()
28913 {
28914  u_int a; a = 1;
28915   ;
28916   return 0;
28917 }
28918 _ACEOF
28919 rm -f conftest.$ac_objext
28920 if { (ac_try="$ac_compile"
28921 case "(($ac_try" in
28922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28923   *) ac_try_echo=$ac_try;;
28924 esac
28925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28926   (eval "$ac_compile") 2>conftest.er1
28927   ac_status=$?
28928   grep -v '^ *+' conftest.er1 >conftest.err
28929   rm -f conftest.er1
28930   cat conftest.err >&5
28931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28932   (exit $ac_status); } &&
28933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28934   { (case "(($ac_try" in
28935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28936   *) ac_try_echo=$ac_try;;
28937 esac
28938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28939   (eval "$ac_try") 2>&5
28940   ac_status=$?
28941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942   (exit $ac_status); }; } &&
28943          { ac_try='test -s conftest.$ac_objext'
28944   { (case "(($ac_try" in
28945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28946   *) ac_try_echo=$ac_try;;
28947 esac
28948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28949   (eval "$ac_try") 2>&5
28950   ac_status=$?
28951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28952   (exit $ac_status); }; }; then
28953    ac_cv_have_u_int="yes"
28954 else
28955   echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.$ac_ext >&5
28957
28958          ac_cv_have_u_int="no"
28959
28960 fi
28961
28962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28963
28964 fi
28965 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28966 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28967 if test "x$ac_cv_have_u_int" = "xyes" ; then
28968    cat >>confdefs.h <<\_ACEOF
28969 #define HAVE_U_INT 1
28970 _ACEOF
28971
28972    have_u_int=1
28973 fi
28974
28975 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28976 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28977 if test "${ac_cv_have_intmax_t+set}" = set; then
28978   echo $ECHO_N "(cached) $ECHO_C" >&6
28979 else
28980
28981    cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28987  #include <sys/types.h>
28988 int
28989 main ()
28990 {
28991  intmax_t a; a = 1;
28992   ;
28993   return 0;
28994 }
28995 _ACEOF
28996 rm -f conftest.$ac_objext
28997 if { (ac_try="$ac_compile"
28998 case "(($ac_try" in
28999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29000   *) ac_try_echo=$ac_try;;
29001 esac
29002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29003   (eval "$ac_compile") 2>conftest.er1
29004   ac_status=$?
29005   grep -v '^ *+' conftest.er1 >conftest.err
29006   rm -f conftest.er1
29007   cat conftest.err >&5
29008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29009   (exit $ac_status); } &&
29010          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29011   { (case "(($ac_try" in
29012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29013   *) ac_try_echo=$ac_try;;
29014 esac
29015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29016   (eval "$ac_try") 2>&5
29017   ac_status=$?
29018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29019   (exit $ac_status); }; } &&
29020          { ac_try='test -s conftest.$ac_objext'
29021   { (case "(($ac_try" in
29022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023   *) ac_try_echo=$ac_try;;
29024 esac
29025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29026   (eval "$ac_try") 2>&5
29027   ac_status=$?
29028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029   (exit $ac_status); }; }; then
29030    ac_cv_have_intmax_t="yes"
29031 else
29032   echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29034
29035
29036          cat >conftest.$ac_ext <<_ACEOF
29037 /* confdefs.h.  */
29038 _ACEOF
29039 cat confdefs.h >>conftest.$ac_ext
29040 cat >>conftest.$ac_ext <<_ACEOF
29041 /* end confdefs.h.  */
29042  #include <stdint.h>
29043 int
29044 main ()
29045 {
29046  intmax_t a; a = 1;
29047   ;
29048   return 0;
29049 }
29050 _ACEOF
29051 rm -f conftest.$ac_objext
29052 if { (ac_try="$ac_compile"
29053 case "(($ac_try" in
29054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29055   *) ac_try_echo=$ac_try;;
29056 esac
29057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29058   (eval "$ac_compile") 2>conftest.er1
29059   ac_status=$?
29060   grep -v '^ *+' conftest.er1 >conftest.err
29061   rm -f conftest.er1
29062   cat conftest.err >&5
29063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29064   (exit $ac_status); } &&
29065          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29066   { (case "(($ac_try" in
29067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29068   *) ac_try_echo=$ac_try;;
29069 esac
29070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29071   (eval "$ac_try") 2>&5
29072   ac_status=$?
29073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29074   (exit $ac_status); }; } &&
29075          { ac_try='test -s conftest.$ac_objext'
29076   { (case "(($ac_try" in
29077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29078   *) ac_try_echo=$ac_try;;
29079 esac
29080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29081   (eval "$ac_try") 2>&5
29082   ac_status=$?
29083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29084   (exit $ac_status); }; }; then
29085    ac_cv_have_intmax_t="yes"
29086 else
29087   echo "$as_me: failed program was:" >&5
29088 sed 's/^/| /' conftest.$ac_ext >&5
29089
29090          ac_cv_have_intmax_t="no"
29091
29092 fi
29093
29094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29095
29096
29097 fi
29098
29099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29100
29101
29102 fi
29103 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29104 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29105 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29106    cat >>confdefs.h <<\_ACEOF
29107 #define HAVE_INTMAX_T 1
29108 _ACEOF
29109
29110    have_intmax_t=1
29111 fi
29112
29113
29114 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29115 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29116 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29117   echo $ECHO_N "(cached) $ECHO_C" >&6
29118 else
29119
29120    cat >conftest.$ac_ext <<_ACEOF
29121 /* confdefs.h.  */
29122 _ACEOF
29123 cat confdefs.h >>conftest.$ac_ext
29124 cat >>conftest.$ac_ext <<_ACEOF
29125 /* end confdefs.h.  */
29126  #include <sys/types.h>
29127 int
29128 main ()
29129 {
29130  u_intmax_t a; a = 1;
29131   ;
29132   return 0;
29133 }
29134 _ACEOF
29135 rm -f conftest.$ac_objext
29136 if { (ac_try="$ac_compile"
29137 case "(($ac_try" in
29138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139   *) ac_try_echo=$ac_try;;
29140 esac
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142   (eval "$ac_compile") 2>conftest.er1
29143   ac_status=$?
29144   grep -v '^ *+' conftest.er1 >conftest.err
29145   rm -f conftest.er1
29146   cat conftest.err >&5
29147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148   (exit $ac_status); } &&
29149          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29150   { (case "(($ac_try" in
29151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152   *) ac_try_echo=$ac_try;;
29153 esac
29154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29155   (eval "$ac_try") 2>&5
29156   ac_status=$?
29157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29158   (exit $ac_status); }; } &&
29159          { ac_try='test -s conftest.$ac_objext'
29160   { (case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_try") 2>&5
29166   ac_status=$?
29167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168   (exit $ac_status); }; }; then
29169    ac_cv_have_u_intmax_t="yes"
29170 else
29171   echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174
29175          cat >conftest.$ac_ext <<_ACEOF
29176 /* confdefs.h.  */
29177 _ACEOF
29178 cat confdefs.h >>conftest.$ac_ext
29179 cat >>conftest.$ac_ext <<_ACEOF
29180 /* end confdefs.h.  */
29181  #include <stdint.h>
29182 int
29183 main ()
29184 {
29185  u_intmax_t a; a = 1;
29186   ;
29187   return 0;
29188 }
29189 _ACEOF
29190 rm -f conftest.$ac_objext
29191 if { (ac_try="$ac_compile"
29192 case "(($ac_try" in
29193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29194   *) ac_try_echo=$ac_try;;
29195 esac
29196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29197   (eval "$ac_compile") 2>conftest.er1
29198   ac_status=$?
29199   grep -v '^ *+' conftest.er1 >conftest.err
29200   rm -f conftest.er1
29201   cat conftest.err >&5
29202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203   (exit $ac_status); } &&
29204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29205   { (case "(($ac_try" in
29206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29207   *) ac_try_echo=$ac_try;;
29208 esac
29209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29210   (eval "$ac_try") 2>&5
29211   ac_status=$?
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); }; } &&
29214          { ac_try='test -s conftest.$ac_objext'
29215   { (case "(($ac_try" in
29216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29217   *) ac_try_echo=$ac_try;;
29218 esac
29219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29220   (eval "$ac_try") 2>&5
29221   ac_status=$?
29222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29223   (exit $ac_status); }; }; then
29224    ac_cv_have_u_intmax_t="yes"
29225 else
29226   echo "$as_me: failed program was:" >&5
29227 sed 's/^/| /' conftest.$ac_ext >&5
29228
29229          ac_cv_have_u_intmax_t="no"
29230
29231 fi
29232
29233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29234
29235
29236 fi
29237
29238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29239
29240 fi
29241 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29242 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29243 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29244    cat >>confdefs.h <<\_ACEOF
29245 #define HAVE_U_INTMAX_T 1
29246 _ACEOF
29247
29248    have_u_intmax_t=1
29249 fi
29250
29251
29252 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29253 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29254 if test "${ac_cv_have_intxx_t+set}" = set; then
29255   echo $ECHO_N "(cached) $ECHO_C" >&6
29256 else
29257
29258    cat >conftest.$ac_ext <<_ACEOF
29259 /* confdefs.h.  */
29260 _ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h.  */
29264  #include <sys/types.h>
29265 int
29266 main ()
29267 {
29268  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 rm -f conftest.$ac_objext
29274 if { (ac_try="$ac_compile"
29275 case "(($ac_try" in
29276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277   *) ac_try_echo=$ac_try;;
29278 esac
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280   (eval "$ac_compile") 2>conftest.er1
29281   ac_status=$?
29282   grep -v '^ *+' conftest.er1 >conftest.err
29283   rm -f conftest.er1
29284   cat conftest.err >&5
29285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286   (exit $ac_status); } &&
29287          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29288   { (case "(($ac_try" in
29289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290   *) ac_try_echo=$ac_try;;
29291 esac
29292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29293   (eval "$ac_try") 2>&5
29294   ac_status=$?
29295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29296   (exit $ac_status); }; } &&
29297          { ac_try='test -s conftest.$ac_objext'
29298   { (case "(($ac_try" in
29299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29300   *) ac_try_echo=$ac_try;;
29301 esac
29302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29303   (eval "$ac_try") 2>&5
29304   ac_status=$?
29305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29306   (exit $ac_status); }; }; then
29307    ac_cv_have_intxx_t="yes"
29308 else
29309   echo "$as_me: failed program was:" >&5
29310 sed 's/^/| /' conftest.$ac_ext >&5
29311
29312          ac_cv_have_intxx_t="no"
29313
29314 fi
29315
29316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29317
29318 fi
29319 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29320 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29321 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29322    cat >>confdefs.h <<\_ACEOF
29323 #define HAVE_INTXX_T 1
29324 _ACEOF
29325
29326    have_intxx_t=1
29327 fi
29328
29329 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29330 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29331 if test "${ac_cv_have_int64_t+set}" = set; then
29332   echo $ECHO_N "(cached) $ECHO_C" >&6
29333 else
29334
29335    cat >conftest.$ac_ext <<_ACEOF
29336 /* confdefs.h.  */
29337 _ACEOF
29338 cat confdefs.h >>conftest.$ac_ext
29339 cat >>conftest.$ac_ext <<_ACEOF
29340 /* end confdefs.h.  */
29341  #include <sys/types.h>
29342 int
29343 main ()
29344 {
29345  int64_t a; a = 1;
29346   ;
29347   return 0;
29348 }
29349 _ACEOF
29350 rm -f conftest.$ac_objext
29351 if { (ac_try="$ac_compile"
29352 case "(($ac_try" in
29353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29354   *) ac_try_echo=$ac_try;;
29355 esac
29356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29357   (eval "$ac_compile") 2>conftest.er1
29358   ac_status=$?
29359   grep -v '^ *+' conftest.er1 >conftest.err
29360   rm -f conftest.er1
29361   cat conftest.err >&5
29362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363   (exit $ac_status); } &&
29364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29365   { (case "(($ac_try" in
29366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29367   *) ac_try_echo=$ac_try;;
29368 esac
29369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29370   (eval "$ac_try") 2>&5
29371   ac_status=$?
29372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373   (exit $ac_status); }; } &&
29374          { ac_try='test -s conftest.$ac_objext'
29375   { (case "(($ac_try" in
29376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29377   *) ac_try_echo=$ac_try;;
29378 esac
29379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29380   (eval "$ac_try") 2>&5
29381   ac_status=$?
29382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29383   (exit $ac_status); }; }; then
29384    ac_cv_have_int64_t="yes"
29385 else
29386   echo "$as_me: failed program was:" >&5
29387 sed 's/^/| /' conftest.$ac_ext >&5
29388
29389          ac_cv_have_int64_t="no"
29390
29391 fi
29392
29393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29394
29395 fi
29396 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29397 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29398 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29399    cat >>confdefs.h <<\_ACEOF
29400 #define HAVE_INT64_T 1
29401 _ACEOF
29402
29403    have_int64_t=1
29404 fi
29405
29406 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29407 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29408 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29409   echo $ECHO_N "(cached) $ECHO_C" >&6
29410 else
29411
29412    cat >conftest.$ac_ext <<_ACEOF
29413 /* confdefs.h.  */
29414 _ACEOF
29415 cat confdefs.h >>conftest.$ac_ext
29416 cat >>conftest.$ac_ext <<_ACEOF
29417 /* end confdefs.h.  */
29418  #include <sys/types.h>
29419 int
29420 main ()
29421 {
29422  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29423   ;
29424   return 0;
29425 }
29426 _ACEOF
29427 rm -f conftest.$ac_objext
29428 if { (ac_try="$ac_compile"
29429 case "(($ac_try" in
29430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29431   *) ac_try_echo=$ac_try;;
29432 esac
29433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29434   (eval "$ac_compile") 2>conftest.er1
29435   ac_status=$?
29436   grep -v '^ *+' conftest.er1 >conftest.err
29437   rm -f conftest.er1
29438   cat conftest.err >&5
29439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29440   (exit $ac_status); } &&
29441          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29442   { (case "(($ac_try" in
29443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29444   *) ac_try_echo=$ac_try;;
29445 esac
29446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29447   (eval "$ac_try") 2>&5
29448   ac_status=$?
29449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29450   (exit $ac_status); }; } &&
29451          { ac_try='test -s conftest.$ac_objext'
29452   { (case "(($ac_try" in
29453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29454   *) ac_try_echo=$ac_try;;
29455 esac
29456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29457   (eval "$ac_try") 2>&5
29458   ac_status=$?
29459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29460   (exit $ac_status); }; }; then
29461    ac_cv_have_u_intxx_t="yes"
29462 else
29463   echo "$as_me: failed program was:" >&5
29464 sed 's/^/| /' conftest.$ac_ext >&5
29465
29466          ac_cv_have_u_intxx_t="no"
29467
29468 fi
29469
29470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29471
29472 fi
29473 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29474 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29475 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29476    cat >>confdefs.h <<\_ACEOF
29477 #define HAVE_U_INTXX_T 1
29478 _ACEOF
29479
29480    have_u_intxx_t=1
29481 fi
29482
29483 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29484 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29485 if test "${ac_cv_have_u_int64_t+set}" = set; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488
29489    cat >conftest.$ac_ext <<_ACEOF
29490 /* confdefs.h.  */
29491 _ACEOF
29492 cat confdefs.h >>conftest.$ac_ext
29493 cat >>conftest.$ac_ext <<_ACEOF
29494 /* end confdefs.h.  */
29495  #include <sys/types.h>
29496 int
29497 main ()
29498 {
29499  u_int64_t a; a = 1;
29500   ;
29501   return 0;
29502 }
29503 _ACEOF
29504 rm -f conftest.$ac_objext
29505 if { (ac_try="$ac_compile"
29506 case "(($ac_try" in
29507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29508   *) ac_try_echo=$ac_try;;
29509 esac
29510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29511   (eval "$ac_compile") 2>conftest.er1
29512   ac_status=$?
29513   grep -v '^ *+' conftest.er1 >conftest.err
29514   rm -f conftest.er1
29515   cat conftest.err >&5
29516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517   (exit $ac_status); } &&
29518          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29519   { (case "(($ac_try" in
29520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29521   *) ac_try_echo=$ac_try;;
29522 esac
29523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29524   (eval "$ac_try") 2>&5
29525   ac_status=$?
29526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29527   (exit $ac_status); }; } &&
29528          { ac_try='test -s conftest.$ac_objext'
29529   { (case "(($ac_try" in
29530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29531   *) ac_try_echo=$ac_try;;
29532 esac
29533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29534   (eval "$ac_try") 2>&5
29535   ac_status=$?
29536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29537   (exit $ac_status); }; }; then
29538    ac_cv_have_u_int64_t="yes"
29539 else
29540   echo "$as_me: failed program was:" >&5
29541 sed 's/^/| /' conftest.$ac_ext >&5
29542
29543          ac_cv_have_u_int64_t="no"
29544
29545 fi
29546
29547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29548
29549 fi
29550 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29551 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29552 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29553    cat >>confdefs.h <<\_ACEOF
29554 #define HAVE_U_INT64_T 1
29555 _ACEOF
29556
29557    have_u_int64_t=1
29558 fi
29559
29560 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29561            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29562 then
29563    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29564 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29565    cat >conftest.$ac_ext <<_ACEOF
29566 /* confdefs.h.  */
29567 _ACEOF
29568 cat confdefs.h >>conftest.$ac_ext
29569 cat >>conftest.$ac_ext <<_ACEOF
29570 /* end confdefs.h.  */
29571  #include <sys/bitypes.h>
29572 int
29573 main ()
29574 {
29575  int8_t a; int16_t b; int32_t c;
29576         u_int8_t e; u_int16_t f; u_int32_t g;
29577         a = b = c = e = f = g = 1;
29578   ;
29579   return 0;
29580 }
29581 _ACEOF
29582 rm -f conftest.$ac_objext
29583 if { (ac_try="$ac_compile"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589   (eval "$ac_compile") 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } &&
29596          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29597   { (case "(($ac_try" in
29598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29599   *) ac_try_echo=$ac_try;;
29600 esac
29601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29602   (eval "$ac_try") 2>&5
29603   ac_status=$?
29604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605   (exit $ac_status); }; } &&
29606          { ac_try='test -s conftest.$ac_objext'
29607   { (case "(($ac_try" in
29608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29609   *) ac_try_echo=$ac_try;;
29610 esac
29611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29612   (eval "$ac_try") 2>&5
29613   ac_status=$?
29614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29615   (exit $ac_status); }; }; then
29616    cat >>confdefs.h <<\_ACEOF
29617 #define HAVE_U_INTXX_T 1
29618 _ACEOF
29619
29620         cat >>confdefs.h <<\_ACEOF
29621 #define HAVE_INTXX_T 1
29622 _ACEOF
29623
29624         cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_SYS_BITYPES_H 1
29626 _ACEOF
29627
29628         { echo "$as_me:$LINENO: result: yes" >&5
29629 echo "${ECHO_T}yes" >&6; }
29630 else
29631   echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.$ac_ext >&5
29633
29634          { echo "$as_me:$LINENO: result: no" >&5
29635 echo "${ECHO_T}no" >&6; }
29636
29637 fi
29638
29639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29640 fi
29641
29642 if test -z "$have_u_intxx_t" ; then
29643    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29644 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29645 if test "${ac_cv_have_uintxx_t+set}" = set; then
29646   echo $ECHO_N "(cached) $ECHO_C" >&6
29647 else
29648
29649       cat >conftest.$ac_ext <<_ACEOF
29650 /* confdefs.h.  */
29651 _ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h.  */
29655  #include <sys/types.h>
29656 int
29657 main ()
29658 {
29659  uint8_t a; uint16_t b;
29660            uint32_t c; a = b = c = 1;
29661   ;
29662   return 0;
29663 }
29664 _ACEOF
29665 rm -f conftest.$ac_objext
29666 if { (ac_try="$ac_compile"
29667 case "(($ac_try" in
29668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29669   *) ac_try_echo=$ac_try;;
29670 esac
29671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29672   (eval "$ac_compile") 2>conftest.er1
29673   ac_status=$?
29674   grep -v '^ *+' conftest.er1 >conftest.err
29675   rm -f conftest.er1
29676   cat conftest.err >&5
29677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29678   (exit $ac_status); } &&
29679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29680   { (case "(($ac_try" in
29681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29682   *) ac_try_echo=$ac_try;;
29683 esac
29684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29685   (eval "$ac_try") 2>&5
29686   ac_status=$?
29687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688   (exit $ac_status); }; } &&
29689          { ac_try='test -s conftest.$ac_objext'
29690   { (case "(($ac_try" in
29691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29692   *) ac_try_echo=$ac_try;;
29693 esac
29694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29695   (eval "$ac_try") 2>&5
29696   ac_status=$?
29697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29698   (exit $ac_status); }; }; then
29699    ac_cv_have_uintxx_t="yes"
29700 else
29701   echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29703
29704          ac_cv_have_uintxx_t="no"
29705
29706 fi
29707
29708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29709
29710 fi
29711 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29712 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29713    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29714       cat >>confdefs.h <<\_ACEOF
29715 #define HAVE_UINTXX_T 1
29716 _ACEOF
29717
29718    fi
29719 fi
29720
29721 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29722           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29723 then
29724    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29725 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29726    cat >conftest.$ac_ext <<_ACEOF
29727 /* confdefs.h.  */
29728 _ACEOF
29729 cat confdefs.h >>conftest.$ac_ext
29730 cat >>conftest.$ac_ext <<_ACEOF
29731 /* end confdefs.h.  */
29732  #include <sys/bitypes.h>
29733 int
29734 main ()
29735 {
29736  int64_t a; u_int64_t b;
29737        a = b = 1;
29738   ;
29739   return 0;
29740 }
29741 _ACEOF
29742 rm -f conftest.$ac_objext
29743 if { (ac_try="$ac_compile"
29744 case "(($ac_try" in
29745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29746   *) ac_try_echo=$ac_try;;
29747 esac
29748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29749   (eval "$ac_compile") 2>conftest.er1
29750   ac_status=$?
29751   grep -v '^ *+' conftest.er1 >conftest.err
29752   rm -f conftest.er1
29753   cat conftest.err >&5
29754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29755   (exit $ac_status); } &&
29756          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29757   { (case "(($ac_try" in
29758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29759   *) ac_try_echo=$ac_try;;
29760 esac
29761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29762   (eval "$ac_try") 2>&5
29763   ac_status=$?
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); }; } &&
29766          { ac_try='test -s conftest.$ac_objext'
29767   { (case "(($ac_try" in
29768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29769   *) ac_try_echo=$ac_try;;
29770 esac
29771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29772   (eval "$ac_try") 2>&5
29773   ac_status=$?
29774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29775   (exit $ac_status); }; }; then
29776    cat >>confdefs.h <<\_ACEOF
29777 #define HAVE_U_INT64_T 1
29778 _ACEOF
29779
29780        cat >>confdefs.h <<\_ACEOF
29781 #define HAVE_INT64_T 1
29782 _ACEOF
29783
29784        { echo "$as_me:$LINENO: result: yes" >&5
29785 echo "${ECHO_T}yes" >&6; }
29786 else
29787   echo "$as_me: failed program was:" >&5
29788 sed 's/^/| /' conftest.$ac_ext >&5
29789
29790          { echo "$as_me:$LINENO: result: no" >&5
29791 echo "${ECHO_T}no" >&6; }
29792
29793 fi
29794
29795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29796 fi
29797
29798 if (test -z "$have_uintxx_t" && \
29799           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29800 then
29801    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29802 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29803    cat >conftest.$ac_ext <<_ACEOF
29804 /* confdefs.h.  */
29805 _ACEOF
29806 cat confdefs.h >>conftest.$ac_ext
29807 cat >>conftest.$ac_ext <<_ACEOF
29808 /* end confdefs.h.  */
29809  #include <sys/bitypes.h>
29810 int
29811 main ()
29812 {
29813  uint8_t a; uint16_t b;
29814           uint32_t c; a = b = c = 1;
29815   ;
29816   return 0;
29817 }
29818 _ACEOF
29819 rm -f conftest.$ac_objext
29820 if { (ac_try="$ac_compile"
29821 case "(($ac_try" in
29822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29823   *) ac_try_echo=$ac_try;;
29824 esac
29825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29826   (eval "$ac_compile") 2>conftest.er1
29827   ac_status=$?
29828   grep -v '^ *+' conftest.er1 >conftest.err
29829   rm -f conftest.er1
29830   cat conftest.err >&5
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); } &&
29833          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29834   { (case "(($ac_try" in
29835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29836   *) ac_try_echo=$ac_try;;
29837 esac
29838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29839   (eval "$ac_try") 2>&5
29840   ac_status=$?
29841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29842   (exit $ac_status); }; } &&
29843          { ac_try='test -s conftest.$ac_objext'
29844   { (case "(($ac_try" in
29845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846   *) ac_try_echo=$ac_try;;
29847 esac
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849   (eval "$ac_try") 2>&5
29850   ac_status=$?
29851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852   (exit $ac_status); }; }; then
29853    cat >>confdefs.h <<\_ACEOF
29854 #define HAVE_UINTXX_T 1
29855 _ACEOF
29856
29857        { echo "$as_me:$LINENO: result: yes" >&5
29858 echo "${ECHO_T}yes" >&6; }
29859 else
29860   echo "$as_me: failed program was:" >&5
29861 sed 's/^/| /' conftest.$ac_ext >&5
29862
29863          { echo "$as_me:$LINENO: result: no" >&5
29864 echo "${ECHO_T}no" >&6; }
29865
29866 fi
29867
29868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29869
29870 fi
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888 for ac_func in \
29889         fork \
29890         getcwd \
29891         gethostname \
29892         getpid \
29893         gettimeofday \
29894         setpgid \
29895         setpgrp \
29896         setsid \
29897         signal \
29898         strerror \
29899         strncmp \
29900         strncpy \
29901         vfprintf \
29902
29903 do
29904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29908   echo $ECHO_N "(cached) $ECHO_C" >&6
29909 else
29910   cat >conftest.$ac_ext <<_ACEOF
29911 /* confdefs.h.  */
29912 _ACEOF
29913 cat confdefs.h >>conftest.$ac_ext
29914 cat >>conftest.$ac_ext <<_ACEOF
29915 /* end confdefs.h.  */
29916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29917    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29918 #define $ac_func innocuous_$ac_func
29919
29920 /* System header to define __stub macros and hopefully few prototypes,
29921     which can conflict with char $ac_func (); below.
29922     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29923     <limits.h> exists even on freestanding compilers.  */
29924
29925 #ifdef __STDC__
29926 # include <limits.h>
29927 #else
29928 # include <assert.h>
29929 #endif
29930
29931 #undef $ac_func
29932
29933 /* Override any GCC internal prototype to avoid an error.
29934    Use char because int might match the return type of a GCC
29935    builtin and then its argument prototype would still apply.  */
29936 #ifdef __cplusplus
29937 extern "C"
29938 #endif
29939 char $ac_func ();
29940 /* The GNU C library defines this for functions which it implements
29941     to always fail with ENOSYS.  Some functions are actually named
29942     something starting with __ and the normal name is an alias.  */
29943 #if defined __stub_$ac_func || defined __stub___$ac_func
29944 choke me
29945 #endif
29946
29947 int
29948 main ()
29949 {
29950 return $ac_func ();
29951   ;
29952   return 0;
29953 }
29954 _ACEOF
29955 rm -f conftest.$ac_objext conftest$ac_exeext
29956 if { (ac_try="$ac_link"
29957 case "(($ac_try" in
29958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29959   *) ac_try_echo=$ac_try;;
29960 esac
29961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29962   (eval "$ac_link") 2>conftest.er1
29963   ac_status=$?
29964   grep -v '^ *+' conftest.er1 >conftest.err
29965   rm -f conftest.er1
29966   cat conftest.err >&5
29967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29968   (exit $ac_status); } &&
29969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29970   { (case "(($ac_try" in
29971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972   *) ac_try_echo=$ac_try;;
29973 esac
29974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29975   (eval "$ac_try") 2>&5
29976   ac_status=$?
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); }; } &&
29979          { ac_try='test -s conftest$ac_exeext'
29980   { (case "(($ac_try" in
29981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982   *) ac_try_echo=$ac_try;;
29983 esac
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985   (eval "$ac_try") 2>&5
29986   ac_status=$?
29987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29988   (exit $ac_status); }; }; then
29989   eval "$as_ac_var=yes"
29990 else
29991   echo "$as_me: failed program was:" >&5
29992 sed 's/^/| /' conftest.$ac_ext >&5
29993
29994         eval "$as_ac_var=no"
29995 fi
29996
29997 rm -f core conftest.err conftest.$ac_objext \
29998       conftest$ac_exeext conftest.$ac_ext
29999 fi
30000 ac_res=`eval echo '${'$as_ac_var'}'`
30001                { echo "$as_me:$LINENO: result: $ac_res" >&5
30002 echo "${ECHO_T}$ac_res" >&6; }
30003 if test `eval echo '${'$as_ac_var'}'` = yes; then
30004   cat >>confdefs.h <<_ACEOF
30005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30006 _ACEOF
30007
30008 else
30009   echo 'configure: cannot find needed function.'; exit 1
30010
30011 fi
30012 done
30013
30014
30015
30016 for ac_func in fchdir
30017 do
30018 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30019 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30020 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30021 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30022   echo $ECHO_N "(cached) $ECHO_C" >&6
30023 else
30024   cat >conftest.$ac_ext <<_ACEOF
30025 /* confdefs.h.  */
30026 _ACEOF
30027 cat confdefs.h >>conftest.$ac_ext
30028 cat >>conftest.$ac_ext <<_ACEOF
30029 /* end confdefs.h.  */
30030 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30031    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30032 #define $ac_func innocuous_$ac_func
30033
30034 /* System header to define __stub macros and hopefully few prototypes,
30035     which can conflict with char $ac_func (); below.
30036     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30037     <limits.h> exists even on freestanding compilers.  */
30038
30039 #ifdef __STDC__
30040 # include <limits.h>
30041 #else
30042 # include <assert.h>
30043 #endif
30044
30045 #undef $ac_func
30046
30047 /* Override any GCC internal prototype to avoid an error.
30048    Use char because int might match the return type of a GCC
30049    builtin and then its argument prototype would still apply.  */
30050 #ifdef __cplusplus
30051 extern "C"
30052 #endif
30053 char $ac_func ();
30054 /* The GNU C library defines this for functions which it implements
30055     to always fail with ENOSYS.  Some functions are actually named
30056     something starting with __ and the normal name is an alias.  */
30057 #if defined __stub_$ac_func || defined __stub___$ac_func
30058 choke me
30059 #endif
30060
30061 int
30062 main ()
30063 {
30064 return $ac_func ();
30065   ;
30066   return 0;
30067 }
30068 _ACEOF
30069 rm -f conftest.$ac_objext conftest$ac_exeext
30070 if { (ac_try="$ac_link"
30071 case "(($ac_try" in
30072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30073   *) ac_try_echo=$ac_try;;
30074 esac
30075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30076   (eval "$ac_link") 2>conftest.er1
30077   ac_status=$?
30078   grep -v '^ *+' conftest.er1 >conftest.err
30079   rm -f conftest.er1
30080   cat conftest.err >&5
30081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30082   (exit $ac_status); } &&
30083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30084   { (case "(($ac_try" in
30085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086   *) ac_try_echo=$ac_try;;
30087 esac
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089   (eval "$ac_try") 2>&5
30090   ac_status=$?
30091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30092   (exit $ac_status); }; } &&
30093          { ac_try='test -s conftest$ac_exeext'
30094   { (case "(($ac_try" in
30095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30096   *) ac_try_echo=$ac_try;;
30097 esac
30098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30099   (eval "$ac_try") 2>&5
30100   ac_status=$?
30101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102   (exit $ac_status); }; }; then
30103   eval "$as_ac_var=yes"
30104 else
30105   echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30107
30108         eval "$as_ac_var=no"
30109 fi
30110
30111 rm -f core conftest.err conftest.$ac_objext \
30112       conftest$ac_exeext conftest.$ac_ext
30113 fi
30114 ac_res=`eval echo '${'$as_ac_var'}'`
30115                { echo "$as_me:$LINENO: result: $ac_res" >&5
30116 echo "${ECHO_T}$ac_res" >&6; }
30117 if test `eval echo '${'$as_ac_var'}'` = yes; then
30118   cat >>confdefs.h <<_ACEOF
30119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30120 _ACEOF
30121  cat >>confdefs.h <<\_ACEOF
30122 #define HAVE_FCHDIR 1
30123 _ACEOF
30124
30125 fi
30126 done
30127
30128
30129 for ac_func in strtoll
30130 do
30131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30135   echo $ECHO_N "(cached) $ECHO_C" >&6
30136 else
30137   cat >conftest.$ac_ext <<_ACEOF
30138 /* confdefs.h.  */
30139 _ACEOF
30140 cat confdefs.h >>conftest.$ac_ext
30141 cat >>conftest.$ac_ext <<_ACEOF
30142 /* end confdefs.h.  */
30143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30145 #define $ac_func innocuous_$ac_func
30146
30147 /* System header to define __stub macros and hopefully few prototypes,
30148     which can conflict with char $ac_func (); below.
30149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30150     <limits.h> exists even on freestanding compilers.  */
30151
30152 #ifdef __STDC__
30153 # include <limits.h>
30154 #else
30155 # include <assert.h>
30156 #endif
30157
30158 #undef $ac_func
30159
30160 /* Override any GCC internal prototype to avoid an error.
30161    Use char because int might match the return type of a GCC
30162    builtin and then its argument prototype would still apply.  */
30163 #ifdef __cplusplus
30164 extern "C"
30165 #endif
30166 char $ac_func ();
30167 /* The GNU C library defines this for functions which it implements
30168     to always fail with ENOSYS.  Some functions are actually named
30169     something starting with __ and the normal name is an alias.  */
30170 #if defined __stub_$ac_func || defined __stub___$ac_func
30171 choke me
30172 #endif
30173
30174 int
30175 main ()
30176 {
30177 return $ac_func ();
30178   ;
30179   return 0;
30180 }
30181 _ACEOF
30182 rm -f conftest.$ac_objext conftest$ac_exeext
30183 if { (ac_try="$ac_link"
30184 case "(($ac_try" in
30185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30186   *) ac_try_echo=$ac_try;;
30187 esac
30188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30189   (eval "$ac_link") 2>conftest.er1
30190   ac_status=$?
30191   grep -v '^ *+' conftest.er1 >conftest.err
30192   rm -f conftest.er1
30193   cat conftest.err >&5
30194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30195   (exit $ac_status); } &&
30196          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30197   { (case "(($ac_try" in
30198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30199   *) ac_try_echo=$ac_try;;
30200 esac
30201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30202   (eval "$ac_try") 2>&5
30203   ac_status=$?
30204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30205   (exit $ac_status); }; } &&
30206          { ac_try='test -s conftest$ac_exeext'
30207   { (case "(($ac_try" in
30208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30209   *) ac_try_echo=$ac_try;;
30210 esac
30211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30212   (eval "$ac_try") 2>&5
30213   ac_status=$?
30214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215   (exit $ac_status); }; }; then
30216   eval "$as_ac_var=yes"
30217 else
30218   echo "$as_me: failed program was:" >&5
30219 sed 's/^/| /' conftest.$ac_ext >&5
30220
30221         eval "$as_ac_var=no"
30222 fi
30223
30224 rm -f core conftest.err conftest.$ac_objext \
30225       conftest$ac_exeext conftest.$ac_ext
30226 fi
30227 ac_res=`eval echo '${'$as_ac_var'}'`
30228                { echo "$as_me:$LINENO: result: $ac_res" >&5
30229 echo "${ECHO_T}$ac_res" >&6; }
30230 if test `eval echo '${'$as_ac_var'}'` = yes; then
30231   cat >>confdefs.h <<_ACEOF
30232 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30233 _ACEOF
30234  cat >>confdefs.h <<\_ACEOF
30235 #define HAVE_STRTOLL 1
30236 _ACEOF
30237
30238 fi
30239 done
30240
30241
30242 for ac_func in posix_fadvise
30243 do
30244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30248   echo $ECHO_N "(cached) $ECHO_C" >&6
30249 else
30250   cat >conftest.$ac_ext <<_ACEOF
30251 /* confdefs.h.  */
30252 _ACEOF
30253 cat confdefs.h >>conftest.$ac_ext
30254 cat >>conftest.$ac_ext <<_ACEOF
30255 /* end confdefs.h.  */
30256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30257    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30258 #define $ac_func innocuous_$ac_func
30259
30260 /* System header to define __stub macros and hopefully few prototypes,
30261     which can conflict with char $ac_func (); below.
30262     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30263     <limits.h> exists even on freestanding compilers.  */
30264
30265 #ifdef __STDC__
30266 # include <limits.h>
30267 #else
30268 # include <assert.h>
30269 #endif
30270
30271 #undef $ac_func
30272
30273 /* Override any GCC internal prototype to avoid an error.
30274    Use char because int might match the return type of a GCC
30275    builtin and then its argument prototype would still apply.  */
30276 #ifdef __cplusplus
30277 extern "C"
30278 #endif
30279 char $ac_func ();
30280 /* The GNU C library defines this for functions which it implements
30281     to always fail with ENOSYS.  Some functions are actually named
30282     something starting with __ and the normal name is an alias.  */
30283 #if defined __stub_$ac_func || defined __stub___$ac_func
30284 choke me
30285 #endif
30286
30287 int
30288 main ()
30289 {
30290 return $ac_func ();
30291   ;
30292   return 0;
30293 }
30294 _ACEOF
30295 rm -f conftest.$ac_objext conftest$ac_exeext
30296 if { (ac_try="$ac_link"
30297 case "(($ac_try" in
30298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30299   *) ac_try_echo=$ac_try;;
30300 esac
30301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30302   (eval "$ac_link") 2>conftest.er1
30303   ac_status=$?
30304   grep -v '^ *+' conftest.er1 >conftest.err
30305   rm -f conftest.er1
30306   cat conftest.err >&5
30307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308   (exit $ac_status); } &&
30309          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30310   { (case "(($ac_try" in
30311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30312   *) ac_try_echo=$ac_try;;
30313 esac
30314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30315   (eval "$ac_try") 2>&5
30316   ac_status=$?
30317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318   (exit $ac_status); }; } &&
30319          { ac_try='test -s conftest$ac_exeext'
30320   { (case "(($ac_try" in
30321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322   *) ac_try_echo=$ac_try;;
30323 esac
30324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30325   (eval "$ac_try") 2>&5
30326   ac_status=$?
30327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328   (exit $ac_status); }; }; then
30329   eval "$as_ac_var=yes"
30330 else
30331   echo "$as_me: failed program was:" >&5
30332 sed 's/^/| /' conftest.$ac_ext >&5
30333
30334         eval "$as_ac_var=no"
30335 fi
30336
30337 rm -f core conftest.err conftest.$ac_objext \
30338       conftest$ac_exeext conftest.$ac_ext
30339 fi
30340 ac_res=`eval echo '${'$as_ac_var'}'`
30341                { echo "$as_me:$LINENO: result: $ac_res" >&5
30342 echo "${ECHO_T}$ac_res" >&6; }
30343 if test `eval echo '${'$as_ac_var'}'` = yes; then
30344   cat >>confdefs.h <<_ACEOF
30345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30346 _ACEOF
30347
30348 fi
30349 done
30350
30351
30352 for ac_func in fdatasync
30353 do
30354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30358   echo $ECHO_N "(cached) $ECHO_C" >&6
30359 else
30360   cat >conftest.$ac_ext <<_ACEOF
30361 /* confdefs.h.  */
30362 _ACEOF
30363 cat confdefs.h >>conftest.$ac_ext
30364 cat >>conftest.$ac_ext <<_ACEOF
30365 /* end confdefs.h.  */
30366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30368 #define $ac_func innocuous_$ac_func
30369
30370 /* System header to define __stub macros and hopefully few prototypes,
30371     which can conflict with char $ac_func (); below.
30372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30373     <limits.h> exists even on freestanding compilers.  */
30374
30375 #ifdef __STDC__
30376 # include <limits.h>
30377 #else
30378 # include <assert.h>
30379 #endif
30380
30381 #undef $ac_func
30382
30383 /* Override any GCC internal prototype to avoid an error.
30384    Use char because int might match the return type of a GCC
30385    builtin and then its argument prototype would still apply.  */
30386 #ifdef __cplusplus
30387 extern "C"
30388 #endif
30389 char $ac_func ();
30390 /* The GNU C library defines this for functions which it implements
30391     to always fail with ENOSYS.  Some functions are actually named
30392     something starting with __ and the normal name is an alias.  */
30393 #if defined __stub_$ac_func || defined __stub___$ac_func
30394 choke me
30395 #endif
30396
30397 int
30398 main ()
30399 {
30400 return $ac_func ();
30401   ;
30402   return 0;
30403 }
30404 _ACEOF
30405 rm -f conftest.$ac_objext conftest$ac_exeext
30406 if { (ac_try="$ac_link"
30407 case "(($ac_try" in
30408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30409   *) ac_try_echo=$ac_try;;
30410 esac
30411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30412   (eval "$ac_link") 2>conftest.er1
30413   ac_status=$?
30414   grep -v '^ *+' conftest.er1 >conftest.err
30415   rm -f conftest.er1
30416   cat conftest.err >&5
30417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30418   (exit $ac_status); } &&
30419          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30420   { (case "(($ac_try" in
30421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422   *) ac_try_echo=$ac_try;;
30423 esac
30424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30425   (eval "$ac_try") 2>&5
30426   ac_status=$?
30427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428   (exit $ac_status); }; } &&
30429          { ac_try='test -s conftest$ac_exeext'
30430   { (case "(($ac_try" in
30431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30432   *) ac_try_echo=$ac_try;;
30433 esac
30434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30435   (eval "$ac_try") 2>&5
30436   ac_status=$?
30437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30438   (exit $ac_status); }; }; then
30439   eval "$as_ac_var=yes"
30440 else
30441   echo "$as_me: failed program was:" >&5
30442 sed 's/^/| /' conftest.$ac_ext >&5
30443
30444         eval "$as_ac_var=no"
30445 fi
30446
30447 rm -f core conftest.err conftest.$ac_objext \
30448       conftest$ac_exeext conftest.$ac_ext
30449 fi
30450 ac_res=`eval echo '${'$as_ac_var'}'`
30451                { echo "$as_me:$LINENO: result: $ac_res" >&5
30452 echo "${ECHO_T}$ac_res" >&6; }
30453 if test `eval echo '${'$as_ac_var'}'` = yes; then
30454   cat >>confdefs.h <<_ACEOF
30455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30456 _ACEOF
30457
30458 fi
30459 done
30460
30461
30462
30463 for ac_func in chflags
30464 do
30465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30469   echo $ECHO_N "(cached) $ECHO_C" >&6
30470 else
30471   cat >conftest.$ac_ext <<_ACEOF
30472 /* confdefs.h.  */
30473 _ACEOF
30474 cat confdefs.h >>conftest.$ac_ext
30475 cat >>conftest.$ac_ext <<_ACEOF
30476 /* end confdefs.h.  */
30477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30479 #define $ac_func innocuous_$ac_func
30480
30481 /* System header to define __stub macros and hopefully few prototypes,
30482     which can conflict with char $ac_func (); below.
30483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30484     <limits.h> exists even on freestanding compilers.  */
30485
30486 #ifdef __STDC__
30487 # include <limits.h>
30488 #else
30489 # include <assert.h>
30490 #endif
30491
30492 #undef $ac_func
30493
30494 /* Override any GCC internal prototype to avoid an error.
30495    Use char because int might match the return type of a GCC
30496    builtin and then its argument prototype would still apply.  */
30497 #ifdef __cplusplus
30498 extern "C"
30499 #endif
30500 char $ac_func ();
30501 /* The GNU C library defines this for functions which it implements
30502     to always fail with ENOSYS.  Some functions are actually named
30503     something starting with __ and the normal name is an alias.  */
30504 #if defined __stub_$ac_func || defined __stub___$ac_func
30505 choke me
30506 #endif
30507
30508 int
30509 main ()
30510 {
30511 return $ac_func ();
30512   ;
30513   return 0;
30514 }
30515 _ACEOF
30516 rm -f conftest.$ac_objext conftest$ac_exeext
30517 if { (ac_try="$ac_link"
30518 case "(($ac_try" in
30519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30520   *) ac_try_echo=$ac_try;;
30521 esac
30522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30523   (eval "$ac_link") 2>conftest.er1
30524   ac_status=$?
30525   grep -v '^ *+' conftest.er1 >conftest.err
30526   rm -f conftest.er1
30527   cat conftest.err >&5
30528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529   (exit $ac_status); } &&
30530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30531   { (case "(($ac_try" in
30532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30533   *) ac_try_echo=$ac_try;;
30534 esac
30535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30536   (eval "$ac_try") 2>&5
30537   ac_status=$?
30538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539   (exit $ac_status); }; } &&
30540          { ac_try='test -s conftest$ac_exeext'
30541   { (case "(($ac_try" in
30542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30543   *) ac_try_echo=$ac_try;;
30544 esac
30545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30546   (eval "$ac_try") 2>&5
30547   ac_status=$?
30548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30549   (exit $ac_status); }; }; then
30550   eval "$as_ac_var=yes"
30551 else
30552   echo "$as_me: failed program was:" >&5
30553 sed 's/^/| /' conftest.$ac_ext >&5
30554
30555         eval "$as_ac_var=no"
30556 fi
30557
30558 rm -f core conftest.err conftest.$ac_objext \
30559       conftest$ac_exeext conftest.$ac_ext
30560 fi
30561 ac_res=`eval echo '${'$as_ac_var'}'`
30562                { echo "$as_me:$LINENO: result: $ac_res" >&5
30563 echo "${ECHO_T}$ac_res" >&6; }
30564 if test `eval echo '${'$as_ac_var'}'` = yes; then
30565   cat >>confdefs.h <<_ACEOF
30566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30567 _ACEOF
30568
30569 fi
30570 done
30571
30572
30573
30574
30575
30576
30577 for ac_func in snprintf vsnprintf gethostid fseeko
30578 do
30579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30580 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30582 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30583   echo $ECHO_N "(cached) $ECHO_C" >&6
30584 else
30585   cat >conftest.$ac_ext <<_ACEOF
30586 /* confdefs.h.  */
30587 _ACEOF
30588 cat confdefs.h >>conftest.$ac_ext
30589 cat >>conftest.$ac_ext <<_ACEOF
30590 /* end confdefs.h.  */
30591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30593 #define $ac_func innocuous_$ac_func
30594
30595 /* System header to define __stub macros and hopefully few prototypes,
30596     which can conflict with char $ac_func (); below.
30597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30598     <limits.h> exists even on freestanding compilers.  */
30599
30600 #ifdef __STDC__
30601 # include <limits.h>
30602 #else
30603 # include <assert.h>
30604 #endif
30605
30606 #undef $ac_func
30607
30608 /* Override any GCC internal prototype to avoid an error.
30609    Use char because int might match the return type of a GCC
30610    builtin and then its argument prototype would still apply.  */
30611 #ifdef __cplusplus
30612 extern "C"
30613 #endif
30614 char $ac_func ();
30615 /* The GNU C library defines this for functions which it implements
30616     to always fail with ENOSYS.  Some functions are actually named
30617     something starting with __ and the normal name is an alias.  */
30618 #if defined __stub_$ac_func || defined __stub___$ac_func
30619 choke me
30620 #endif
30621
30622 int
30623 main ()
30624 {
30625 return $ac_func ();
30626   ;
30627   return 0;
30628 }
30629 _ACEOF
30630 rm -f conftest.$ac_objext conftest$ac_exeext
30631 if { (ac_try="$ac_link"
30632 case "(($ac_try" in
30633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30634   *) ac_try_echo=$ac_try;;
30635 esac
30636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30637   (eval "$ac_link") 2>conftest.er1
30638   ac_status=$?
30639   grep -v '^ *+' conftest.er1 >conftest.err
30640   rm -f conftest.er1
30641   cat conftest.err >&5
30642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643   (exit $ac_status); } &&
30644          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30645   { (case "(($ac_try" in
30646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30647   *) ac_try_echo=$ac_try;;
30648 esac
30649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30650   (eval "$ac_try") 2>&5
30651   ac_status=$?
30652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653   (exit $ac_status); }; } &&
30654          { ac_try='test -s conftest$ac_exeext'
30655   { (case "(($ac_try" in
30656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30657   *) ac_try_echo=$ac_try;;
30658 esac
30659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30660   (eval "$ac_try") 2>&5
30661   ac_status=$?
30662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30663   (exit $ac_status); }; }; then
30664   eval "$as_ac_var=yes"
30665 else
30666   echo "$as_me: failed program was:" >&5
30667 sed 's/^/| /' conftest.$ac_ext >&5
30668
30669         eval "$as_ac_var=no"
30670 fi
30671
30672 rm -f core conftest.err conftest.$ac_objext \
30673       conftest$ac_exeext conftest.$ac_ext
30674 fi
30675 ac_res=`eval echo '${'$as_ac_var'}'`
30676                { echo "$as_me:$LINENO: result: $ac_res" >&5
30677 echo "${ECHO_T}$ac_res" >&6; }
30678 if test `eval echo '${'$as_ac_var'}'` = yes; then
30679   cat >>confdefs.h <<_ACEOF
30680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30681 _ACEOF
30682
30683 fi
30684 done
30685
30686
30687
30688
30689
30690
30691 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30692 do
30693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30697   echo $ECHO_N "(cached) $ECHO_C" >&6
30698 else
30699   cat >conftest.$ac_ext <<_ACEOF
30700 /* confdefs.h.  */
30701 _ACEOF
30702 cat confdefs.h >>conftest.$ac_ext
30703 cat >>conftest.$ac_ext <<_ACEOF
30704 /* end confdefs.h.  */
30705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30707 #define $ac_func innocuous_$ac_func
30708
30709 /* System header to define __stub macros and hopefully few prototypes,
30710     which can conflict with char $ac_func (); below.
30711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30712     <limits.h> exists even on freestanding compilers.  */
30713
30714 #ifdef __STDC__
30715 # include <limits.h>
30716 #else
30717 # include <assert.h>
30718 #endif
30719
30720 #undef $ac_func
30721
30722 /* Override any GCC internal prototype to avoid an error.
30723    Use char because int might match the return type of a GCC
30724    builtin and then its argument prototype would still apply.  */
30725 #ifdef __cplusplus
30726 extern "C"
30727 #endif
30728 char $ac_func ();
30729 /* The GNU C library defines this for functions which it implements
30730     to always fail with ENOSYS.  Some functions are actually named
30731     something starting with __ and the normal name is an alias.  */
30732 #if defined __stub_$ac_func || defined __stub___$ac_func
30733 choke me
30734 #endif
30735
30736 int
30737 main ()
30738 {
30739 return $ac_func ();
30740   ;
30741   return 0;
30742 }
30743 _ACEOF
30744 rm -f conftest.$ac_objext conftest$ac_exeext
30745 if { (ac_try="$ac_link"
30746 case "(($ac_try" in
30747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30748   *) ac_try_echo=$ac_try;;
30749 esac
30750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30751   (eval "$ac_link") 2>conftest.er1
30752   ac_status=$?
30753   grep -v '^ *+' conftest.er1 >conftest.err
30754   rm -f conftest.er1
30755   cat conftest.err >&5
30756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757   (exit $ac_status); } &&
30758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30759   { (case "(($ac_try" in
30760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30761   *) ac_try_echo=$ac_try;;
30762 esac
30763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30764   (eval "$ac_try") 2>&5
30765   ac_status=$?
30766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30767   (exit $ac_status); }; } &&
30768          { ac_try='test -s conftest$ac_exeext'
30769   { (case "(($ac_try" in
30770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30771   *) ac_try_echo=$ac_try;;
30772 esac
30773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30774   (eval "$ac_try") 2>&5
30775   ac_status=$?
30776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777   (exit $ac_status); }; }; then
30778   eval "$as_ac_var=yes"
30779 else
30780   echo "$as_me: failed program was:" >&5
30781 sed 's/^/| /' conftest.$ac_ext >&5
30782
30783         eval "$as_ac_var=no"
30784 fi
30785
30786 rm -f core conftest.err conftest.$ac_objext \
30787       conftest$ac_exeext conftest.$ac_ext
30788 fi
30789 ac_res=`eval echo '${'$as_ac_var'}'`
30790                { echo "$as_me:$LINENO: result: $ac_res" >&5
30791 echo "${ECHO_T}$ac_res" >&6; }
30792 if test `eval echo '${'$as_ac_var'}'` = yes; then
30793   cat >>confdefs.h <<_ACEOF
30794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30795 _ACEOF
30796
30797 fi
30798 done
30799
30800
30801 # If resolver functions are not in libc check for -lnsl or -lresolv.
30802 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30803 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30804 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30805   echo $ECHO_N "(cached) $ECHO_C" >&6
30806 else
30807   cat >conftest.$ac_ext <<_ACEOF
30808 /* confdefs.h.  */
30809 _ACEOF
30810 cat confdefs.h >>conftest.$ac_ext
30811 cat >>conftest.$ac_ext <<_ACEOF
30812 /* end confdefs.h.  */
30813 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30814    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30815 #define gethostbyname_r innocuous_gethostbyname_r
30816
30817 /* System header to define __stub macros and hopefully few prototypes,
30818     which can conflict with char gethostbyname_r (); below.
30819     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30820     <limits.h> exists even on freestanding compilers.  */
30821
30822 #ifdef __STDC__
30823 # include <limits.h>
30824 #else
30825 # include <assert.h>
30826 #endif
30827
30828 #undef gethostbyname_r
30829
30830 /* Override any GCC internal prototype to avoid an error.
30831    Use char because int might match the return type of a GCC
30832    builtin and then its argument prototype would still apply.  */
30833 #ifdef __cplusplus
30834 extern "C"
30835 #endif
30836 char gethostbyname_r ();
30837 /* The GNU C library defines this for functions which it implements
30838     to always fail with ENOSYS.  Some functions are actually named
30839     something starting with __ and the normal name is an alias.  */
30840 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30841 choke me
30842 #endif
30843
30844 int
30845 main ()
30846 {
30847 return gethostbyname_r ();
30848   ;
30849   return 0;
30850 }
30851 _ACEOF
30852 rm -f conftest.$ac_objext conftest$ac_exeext
30853 if { (ac_try="$ac_link"
30854 case "(($ac_try" in
30855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30856   *) ac_try_echo=$ac_try;;
30857 esac
30858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30859   (eval "$ac_link") 2>conftest.er1
30860   ac_status=$?
30861   grep -v '^ *+' conftest.er1 >conftest.err
30862   rm -f conftest.er1
30863   cat conftest.err >&5
30864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30865   (exit $ac_status); } &&
30866          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30867   { (case "(($ac_try" in
30868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30869   *) ac_try_echo=$ac_try;;
30870 esac
30871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30872   (eval "$ac_try") 2>&5
30873   ac_status=$?
30874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30875   (exit $ac_status); }; } &&
30876          { ac_try='test -s conftest$ac_exeext'
30877   { (case "(($ac_try" in
30878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30879   *) ac_try_echo=$ac_try;;
30880 esac
30881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30882   (eval "$ac_try") 2>&5
30883   ac_status=$?
30884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885   (exit $ac_status); }; }; then
30886   ac_cv_func_gethostbyname_r=yes
30887 else
30888   echo "$as_me: failed program was:" >&5
30889 sed 's/^/| /' conftest.$ac_ext >&5
30890
30891         ac_cv_func_gethostbyname_r=no
30892 fi
30893
30894 rm -f core conftest.err conftest.$ac_objext \
30895       conftest$ac_exeext conftest.$ac_ext
30896 fi
30897 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30898 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30899 if test $ac_cv_func_gethostbyname_r = yes; then
30900   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30901 echo "${ECHO_T}using libc's resolver" >&6; }
30902 else
30903
30904 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30905 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30906 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30907   echo $ECHO_N "(cached) $ECHO_C" >&6
30908 else
30909   ac_check_lib_save_LIBS=$LIBS
30910 LIBS="-lnsl  $LIBS"
30911 cat >conftest.$ac_ext <<_ACEOF
30912 /* confdefs.h.  */
30913 _ACEOF
30914 cat confdefs.h >>conftest.$ac_ext
30915 cat >>conftest.$ac_ext <<_ACEOF
30916 /* end confdefs.h.  */
30917
30918 /* Override any GCC internal prototype to avoid an error.
30919    Use char because int might match the return type of a GCC
30920    builtin and then its argument prototype would still apply.  */
30921 #ifdef __cplusplus
30922 extern "C"
30923 #endif
30924 char gethostbyname_r ();
30925 int
30926 main ()
30927 {
30928 return gethostbyname_r ();
30929   ;
30930   return 0;
30931 }
30932 _ACEOF
30933 rm -f conftest.$ac_objext conftest$ac_exeext
30934 if { (ac_try="$ac_link"
30935 case "(($ac_try" in
30936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30937   *) ac_try_echo=$ac_try;;
30938 esac
30939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30940   (eval "$ac_link") 2>conftest.er1
30941   ac_status=$?
30942   grep -v '^ *+' conftest.er1 >conftest.err
30943   rm -f conftest.er1
30944   cat conftest.err >&5
30945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946   (exit $ac_status); } &&
30947          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30948   { (case "(($ac_try" in
30949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30950   *) ac_try_echo=$ac_try;;
30951 esac
30952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30953   (eval "$ac_try") 2>&5
30954   ac_status=$?
30955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30956   (exit $ac_status); }; } &&
30957          { ac_try='test -s conftest$ac_exeext'
30958   { (case "(($ac_try" in
30959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30960   *) ac_try_echo=$ac_try;;
30961 esac
30962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30963   (eval "$ac_try") 2>&5
30964   ac_status=$?
30965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30966   (exit $ac_status); }; }; then
30967   ac_cv_lib_nsl_gethostbyname_r=yes
30968 else
30969   echo "$as_me: failed program was:" >&5
30970 sed 's/^/| /' conftest.$ac_ext >&5
30971
30972         ac_cv_lib_nsl_gethostbyname_r=no
30973 fi
30974
30975 rm -f core conftest.err conftest.$ac_objext \
30976       conftest$ac_exeext conftest.$ac_ext
30977 LIBS=$ac_check_lib_save_LIBS
30978 fi
30979 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30980 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30981 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30982   cat >>confdefs.h <<_ACEOF
30983 #define HAVE_LIBNSL 1
30984 _ACEOF
30985
30986   LIBS="-lnsl $LIBS"
30987
30988 fi
30989
30990
30991 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30992 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30993 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30994   echo $ECHO_N "(cached) $ECHO_C" >&6
30995 else
30996   ac_check_lib_save_LIBS=$LIBS
30997 LIBS="-lresolv  $LIBS"
30998 cat >conftest.$ac_ext <<_ACEOF
30999 /* confdefs.h.  */
31000 _ACEOF
31001 cat confdefs.h >>conftest.$ac_ext
31002 cat >>conftest.$ac_ext <<_ACEOF
31003 /* end confdefs.h.  */
31004
31005 /* Override any GCC internal prototype to avoid an error.
31006    Use char because int might match the return type of a GCC
31007    builtin and then its argument prototype would still apply.  */
31008 #ifdef __cplusplus
31009 extern "C"
31010 #endif
31011 char gethostbyname_r ();
31012 int
31013 main ()
31014 {
31015 return gethostbyname_r ();
31016   ;
31017   return 0;
31018 }
31019 _ACEOF
31020 rm -f conftest.$ac_objext conftest$ac_exeext
31021 if { (ac_try="$ac_link"
31022 case "(($ac_try" in
31023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024   *) ac_try_echo=$ac_try;;
31025 esac
31026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31027   (eval "$ac_link") 2>conftest.er1
31028   ac_status=$?
31029   grep -v '^ *+' conftest.er1 >conftest.err
31030   rm -f conftest.er1
31031   cat conftest.err >&5
31032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); } &&
31034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31035   { (case "(($ac_try" in
31036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31037   *) ac_try_echo=$ac_try;;
31038 esac
31039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31040   (eval "$ac_try") 2>&5
31041   ac_status=$?
31042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043   (exit $ac_status); }; } &&
31044          { ac_try='test -s conftest$ac_exeext'
31045   { (case "(($ac_try" in
31046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31047   *) ac_try_echo=$ac_try;;
31048 esac
31049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31050   (eval "$ac_try") 2>&5
31051   ac_status=$?
31052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053   (exit $ac_status); }; }; then
31054   ac_cv_lib_resolv_gethostbyname_r=yes
31055 else
31056   echo "$as_me: failed program was:" >&5
31057 sed 's/^/| /' conftest.$ac_ext >&5
31058
31059         ac_cv_lib_resolv_gethostbyname_r=no
31060 fi
31061
31062 rm -f core conftest.err conftest.$ac_objext \
31063       conftest$ac_exeext conftest.$ac_ext
31064 LIBS=$ac_check_lib_save_LIBS
31065 fi
31066 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31067 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31068 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31069   cat >>confdefs.h <<_ACEOF
31070 #define HAVE_LIBRESOLV 1
31071 _ACEOF
31072
31073   LIBS="-lresolv $LIBS"
31074
31075 fi
31076
31077 fi
31078
31079
31080
31081
31082
31083 for ac_func in inet_pton
31084 do
31085 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31086 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31087 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31088 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31089   echo $ECHO_N "(cached) $ECHO_C" >&6
31090 else
31091   cat >conftest.$ac_ext <<_ACEOF
31092 /* confdefs.h.  */
31093 _ACEOF
31094 cat confdefs.h >>conftest.$ac_ext
31095 cat >>conftest.$ac_ext <<_ACEOF
31096 /* end confdefs.h.  */
31097 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31099 #define $ac_func innocuous_$ac_func
31100
31101 /* System header to define __stub macros and hopefully few prototypes,
31102     which can conflict with char $ac_func (); below.
31103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31104     <limits.h> exists even on freestanding compilers.  */
31105
31106 #ifdef __STDC__
31107 # include <limits.h>
31108 #else
31109 # include <assert.h>
31110 #endif
31111
31112 #undef $ac_func
31113
31114 /* Override any GCC internal prototype to avoid an error.
31115    Use char because int might match the return type of a GCC
31116    builtin and then its argument prototype would still apply.  */
31117 #ifdef __cplusplus
31118 extern "C"
31119 #endif
31120 char $ac_func ();
31121 /* The GNU C library defines this for functions which it implements
31122     to always fail with ENOSYS.  Some functions are actually named
31123     something starting with __ and the normal name is an alias.  */
31124 #if defined __stub_$ac_func || defined __stub___$ac_func
31125 choke me
31126 #endif
31127
31128 int
31129 main ()
31130 {
31131 return $ac_func ();
31132   ;
31133   return 0;
31134 }
31135 _ACEOF
31136 rm -f conftest.$ac_objext conftest$ac_exeext
31137 if { (ac_try="$ac_link"
31138 case "(($ac_try" in
31139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31140   *) ac_try_echo=$ac_try;;
31141 esac
31142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31143   (eval "$ac_link") 2>conftest.er1
31144   ac_status=$?
31145   grep -v '^ *+' conftest.er1 >conftest.err
31146   rm -f conftest.er1
31147   cat conftest.err >&5
31148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31149   (exit $ac_status); } &&
31150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31151   { (case "(($ac_try" in
31152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153   *) ac_try_echo=$ac_try;;
31154 esac
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156   (eval "$ac_try") 2>&5
31157   ac_status=$?
31158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31159   (exit $ac_status); }; } &&
31160          { ac_try='test -s conftest$ac_exeext'
31161   { (case "(($ac_try" in
31162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31163   *) ac_try_echo=$ac_try;;
31164 esac
31165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31166   (eval "$ac_try") 2>&5
31167   ac_status=$?
31168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31169   (exit $ac_status); }; }; then
31170   eval "$as_ac_var=yes"
31171 else
31172   echo "$as_me: failed program was:" >&5
31173 sed 's/^/| /' conftest.$ac_ext >&5
31174
31175         eval "$as_ac_var=no"
31176 fi
31177
31178 rm -f core conftest.err conftest.$ac_objext \
31179       conftest$ac_exeext conftest.$ac_ext
31180 fi
31181 ac_res=`eval echo '${'$as_ac_var'}'`
31182                { echo "$as_me:$LINENO: result: $ac_res" >&5
31183 echo "${ECHO_T}$ac_res" >&6; }
31184 if test `eval echo '${'$as_ac_var'}'` = yes; then
31185   cat >>confdefs.h <<_ACEOF
31186 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31187 _ACEOF
31188  cat >>confdefs.h <<\_ACEOF
31189 #define HAVE_INET_PTON 1
31190 _ACEOF
31191
31192 fi
31193 done
31194
31195
31196 for ac_func in inet_ntop
31197 do
31198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31202   echo $ECHO_N "(cached) $ECHO_C" >&6
31203 else
31204   cat >conftest.$ac_ext <<_ACEOF
31205 /* confdefs.h.  */
31206 _ACEOF
31207 cat confdefs.h >>conftest.$ac_ext
31208 cat >>conftest.$ac_ext <<_ACEOF
31209 /* end confdefs.h.  */
31210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31212 #define $ac_func innocuous_$ac_func
31213
31214 /* System header to define __stub macros and hopefully few prototypes,
31215     which can conflict with char $ac_func (); below.
31216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31217     <limits.h> exists even on freestanding compilers.  */
31218
31219 #ifdef __STDC__
31220 # include <limits.h>
31221 #else
31222 # include <assert.h>
31223 #endif
31224
31225 #undef $ac_func
31226
31227 /* Override any GCC internal prototype to avoid an error.
31228    Use char because int might match the return type of a GCC
31229    builtin and then its argument prototype would still apply.  */
31230 #ifdef __cplusplus
31231 extern "C"
31232 #endif
31233 char $ac_func ();
31234 /* The GNU C library defines this for functions which it implements
31235     to always fail with ENOSYS.  Some functions are actually named
31236     something starting with __ and the normal name is an alias.  */
31237 #if defined __stub_$ac_func || defined __stub___$ac_func
31238 choke me
31239 #endif
31240
31241 int
31242 main ()
31243 {
31244 return $ac_func ();
31245   ;
31246   return 0;
31247 }
31248 _ACEOF
31249 rm -f conftest.$ac_objext conftest$ac_exeext
31250 if { (ac_try="$ac_link"
31251 case "(($ac_try" in
31252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31253   *) ac_try_echo=$ac_try;;
31254 esac
31255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31256   (eval "$ac_link") 2>conftest.er1
31257   ac_status=$?
31258   grep -v '^ *+' conftest.er1 >conftest.err
31259   rm -f conftest.er1
31260   cat conftest.err >&5
31261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31262   (exit $ac_status); } &&
31263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31264   { (case "(($ac_try" in
31265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266   *) ac_try_echo=$ac_try;;
31267 esac
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269   (eval "$ac_try") 2>&5
31270   ac_status=$?
31271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272   (exit $ac_status); }; } &&
31273          { ac_try='test -s conftest$ac_exeext'
31274   { (case "(($ac_try" in
31275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31276   *) ac_try_echo=$ac_try;;
31277 esac
31278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31279   (eval "$ac_try") 2>&5
31280   ac_status=$?
31281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31282   (exit $ac_status); }; }; then
31283   eval "$as_ac_var=yes"
31284 else
31285   echo "$as_me: failed program was:" >&5
31286 sed 's/^/| /' conftest.$ac_ext >&5
31287
31288         eval "$as_ac_var=no"
31289 fi
31290
31291 rm -f core conftest.err conftest.$ac_objext \
31292       conftest$ac_exeext conftest.$ac_ext
31293 fi
31294 ac_res=`eval echo '${'$as_ac_var'}'`
31295                { echo "$as_me:$LINENO: result: $ac_res" >&5
31296 echo "${ECHO_T}$ac_res" >&6; }
31297 if test `eval echo '${'$as_ac_var'}'` = yes; then
31298   cat >>confdefs.h <<_ACEOF
31299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31300 _ACEOF
31301  cat >>confdefs.h <<\_ACEOF
31302 #define HAVE_INET_NTOP 1
31303 _ACEOF
31304
31305 fi
31306 done
31307
31308
31309 for ac_func in gethostbyname2
31310 do
31311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31315   echo $ECHO_N "(cached) $ECHO_C" >&6
31316 else
31317   cat >conftest.$ac_ext <<_ACEOF
31318 /* confdefs.h.  */
31319 _ACEOF
31320 cat confdefs.h >>conftest.$ac_ext
31321 cat >>conftest.$ac_ext <<_ACEOF
31322 /* end confdefs.h.  */
31323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31325 #define $ac_func innocuous_$ac_func
31326
31327 /* System header to define __stub macros and hopefully few prototypes,
31328     which can conflict with char $ac_func (); below.
31329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31330     <limits.h> exists even on freestanding compilers.  */
31331
31332 #ifdef __STDC__
31333 # include <limits.h>
31334 #else
31335 # include <assert.h>
31336 #endif
31337
31338 #undef $ac_func
31339
31340 /* Override any GCC internal prototype to avoid an error.
31341    Use char because int might match the return type of a GCC
31342    builtin and then its argument prototype would still apply.  */
31343 #ifdef __cplusplus
31344 extern "C"
31345 #endif
31346 char $ac_func ();
31347 /* The GNU C library defines this for functions which it implements
31348     to always fail with ENOSYS.  Some functions are actually named
31349     something starting with __ and the normal name is an alias.  */
31350 #if defined __stub_$ac_func || defined __stub___$ac_func
31351 choke me
31352 #endif
31353
31354 int
31355 main ()
31356 {
31357 return $ac_func ();
31358   ;
31359   return 0;
31360 }
31361 _ACEOF
31362 rm -f conftest.$ac_objext conftest$ac_exeext
31363 if { (ac_try="$ac_link"
31364 case "(($ac_try" in
31365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31366   *) ac_try_echo=$ac_try;;
31367 esac
31368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31369   (eval "$ac_link") 2>conftest.er1
31370   ac_status=$?
31371   grep -v '^ *+' conftest.er1 >conftest.err
31372   rm -f conftest.er1
31373   cat conftest.err >&5
31374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31375   (exit $ac_status); } &&
31376          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31377   { (case "(($ac_try" in
31378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31379   *) ac_try_echo=$ac_try;;
31380 esac
31381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31382   (eval "$ac_try") 2>&5
31383   ac_status=$?
31384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385   (exit $ac_status); }; } &&
31386          { ac_try='test -s conftest$ac_exeext'
31387   { (case "(($ac_try" in
31388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31389   *) ac_try_echo=$ac_try;;
31390 esac
31391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31392   (eval "$ac_try") 2>&5
31393   ac_status=$?
31394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31395   (exit $ac_status); }; }; then
31396   eval "$as_ac_var=yes"
31397 else
31398   echo "$as_me: failed program was:" >&5
31399 sed 's/^/| /' conftest.$ac_ext >&5
31400
31401         eval "$as_ac_var=no"
31402 fi
31403
31404 rm -f core conftest.err conftest.$ac_objext \
31405       conftest$ac_exeext conftest.$ac_ext
31406 fi
31407 ac_res=`eval echo '${'$as_ac_var'}'`
31408                { echo "$as_me:$LINENO: result: $ac_res" >&5
31409 echo "${ECHO_T}$ac_res" >&6; }
31410 if test `eval echo '${'$as_ac_var'}'` = yes; then
31411   cat >>confdefs.h <<_ACEOF
31412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31413 _ACEOF
31414  cat >>confdefs.h <<\_ACEOF
31415 #define HAVE_GETHOSTBYNAME2 1
31416 _ACEOF
31417
31418 fi
31419 done
31420
31421
31422 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31423 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31424 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31425   echo $ECHO_N "(cached) $ECHO_C" >&6
31426 else
31427   cat >conftest.$ac_ext <<_ACEOF
31428 /* confdefs.h.  */
31429 _ACEOF
31430 cat confdefs.h >>conftest.$ac_ext
31431 cat >>conftest.$ac_ext <<_ACEOF
31432 /* end confdefs.h.  */
31433 #include <sys/socket.h>
31434 int
31435 main ()
31436 {
31437 struct sockaddr s; s.sa_len;
31438   ;
31439   return 0;
31440 }
31441 _ACEOF
31442 rm -f conftest.$ac_objext
31443 if { (ac_try="$ac_compile"
31444 case "(($ac_try" in
31445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31446   *) ac_try_echo=$ac_try;;
31447 esac
31448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31449   (eval "$ac_compile") 2>conftest.er1
31450   ac_status=$?
31451   grep -v '^ *+' conftest.er1 >conftest.err
31452   rm -f conftest.er1
31453   cat conftest.err >&5
31454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455   (exit $ac_status); } &&
31456          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31457   { (case "(($ac_try" in
31458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31459   *) ac_try_echo=$ac_try;;
31460 esac
31461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31462   (eval "$ac_try") 2>&5
31463   ac_status=$?
31464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465   (exit $ac_status); }; } &&
31466          { ac_try='test -s conftest.$ac_objext'
31467   { (case "(($ac_try" in
31468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31469   *) ac_try_echo=$ac_try;;
31470 esac
31471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31472   (eval "$ac_try") 2>&5
31473   ac_status=$?
31474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31475   (exit $ac_status); }; }; then
31476   ac_cv_struct_sockaddr_sa_len=yes
31477 else
31478   echo "$as_me: failed program was:" >&5
31479 sed 's/^/| /' conftest.$ac_ext >&5
31480
31481         ac_cv_struct_sockaddr_sa_len=no
31482 fi
31483
31484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31485 fi
31486 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31487 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31488
31489  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31490
31491 cat >>confdefs.h <<\_ACEOF
31492 #define HAVE_SA_LEN 1
31493 _ACEOF
31494
31495  fi
31496
31497
31498
31499
31500
31501 for ac_func in strftime
31502 do
31503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31504 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31506 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31507   echo $ECHO_N "(cached) $ECHO_C" >&6
31508 else
31509   cat >conftest.$ac_ext <<_ACEOF
31510 /* confdefs.h.  */
31511 _ACEOF
31512 cat confdefs.h >>conftest.$ac_ext
31513 cat >>conftest.$ac_ext <<_ACEOF
31514 /* end confdefs.h.  */
31515 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31516    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31517 #define $ac_func innocuous_$ac_func
31518
31519 /* System header to define __stub macros and hopefully few prototypes,
31520     which can conflict with char $ac_func (); below.
31521     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31522     <limits.h> exists even on freestanding compilers.  */
31523
31524 #ifdef __STDC__
31525 # include <limits.h>
31526 #else
31527 # include <assert.h>
31528 #endif
31529
31530 #undef $ac_func
31531
31532 /* Override any GCC internal prototype to avoid an error.
31533    Use char because int might match the return type of a GCC
31534    builtin and then its argument prototype would still apply.  */
31535 #ifdef __cplusplus
31536 extern "C"
31537 #endif
31538 char $ac_func ();
31539 /* The GNU C library defines this for functions which it implements
31540     to always fail with ENOSYS.  Some functions are actually named
31541     something starting with __ and the normal name is an alias.  */
31542 #if defined __stub_$ac_func || defined __stub___$ac_func
31543 choke me
31544 #endif
31545
31546 int
31547 main ()
31548 {
31549 return $ac_func ();
31550   ;
31551   return 0;
31552 }
31553 _ACEOF
31554 rm -f conftest.$ac_objext conftest$ac_exeext
31555 if { (ac_try="$ac_link"
31556 case "(($ac_try" in
31557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558   *) ac_try_echo=$ac_try;;
31559 esac
31560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31561   (eval "$ac_link") 2>conftest.er1
31562   ac_status=$?
31563   grep -v '^ *+' conftest.er1 >conftest.err
31564   rm -f conftest.er1
31565   cat conftest.err >&5
31566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31567   (exit $ac_status); } &&
31568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31569   { (case "(($ac_try" in
31570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571   *) ac_try_echo=$ac_try;;
31572 esac
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574   (eval "$ac_try") 2>&5
31575   ac_status=$?
31576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31577   (exit $ac_status); }; } &&
31578          { ac_try='test -s conftest$ac_exeext'
31579   { (case "(($ac_try" in
31580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581   *) ac_try_echo=$ac_try;;
31582 esac
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584   (eval "$ac_try") 2>&5
31585   ac_status=$?
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); }; }; then
31588   eval "$as_ac_var=yes"
31589 else
31590   echo "$as_me: failed program was:" >&5
31591 sed 's/^/| /' conftest.$ac_ext >&5
31592
31593         eval "$as_ac_var=no"
31594 fi
31595
31596 rm -f core conftest.err conftest.$ac_objext \
31597       conftest$ac_exeext conftest.$ac_ext
31598 fi
31599 ac_res=`eval echo '${'$as_ac_var'}'`
31600                { echo "$as_me:$LINENO: result: $ac_res" >&5
31601 echo "${ECHO_T}$ac_res" >&6; }
31602 if test `eval echo '${'$as_ac_var'}'` = yes; then
31603   cat >>confdefs.h <<_ACEOF
31604 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31605 _ACEOF
31606
31607 else
31608   # strftime is in -lintl on SCO UNIX.
31609 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31610 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31611 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31612   echo $ECHO_N "(cached) $ECHO_C" >&6
31613 else
31614   ac_check_lib_save_LIBS=$LIBS
31615 LIBS="-lintl  $LIBS"
31616 cat >conftest.$ac_ext <<_ACEOF
31617 /* confdefs.h.  */
31618 _ACEOF
31619 cat confdefs.h >>conftest.$ac_ext
31620 cat >>conftest.$ac_ext <<_ACEOF
31621 /* end confdefs.h.  */
31622
31623 /* Override any GCC internal prototype to avoid an error.
31624    Use char because int might match the return type of a GCC
31625    builtin and then its argument prototype would still apply.  */
31626 #ifdef __cplusplus
31627 extern "C"
31628 #endif
31629 char strftime ();
31630 int
31631 main ()
31632 {
31633 return strftime ();
31634   ;
31635   return 0;
31636 }
31637 _ACEOF
31638 rm -f conftest.$ac_objext conftest$ac_exeext
31639 if { (ac_try="$ac_link"
31640 case "(($ac_try" in
31641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31642   *) ac_try_echo=$ac_try;;
31643 esac
31644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31645   (eval "$ac_link") 2>conftest.er1
31646   ac_status=$?
31647   grep -v '^ *+' conftest.er1 >conftest.err
31648   rm -f conftest.er1
31649   cat conftest.err >&5
31650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31651   (exit $ac_status); } &&
31652          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31653   { (case "(($ac_try" in
31654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31655   *) ac_try_echo=$ac_try;;
31656 esac
31657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31658   (eval "$ac_try") 2>&5
31659   ac_status=$?
31660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31661   (exit $ac_status); }; } &&
31662          { ac_try='test -s conftest$ac_exeext'
31663   { (case "(($ac_try" in
31664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31665   *) ac_try_echo=$ac_try;;
31666 esac
31667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31668   (eval "$ac_try") 2>&5
31669   ac_status=$?
31670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31671   (exit $ac_status); }; }; then
31672   ac_cv_lib_intl_strftime=yes
31673 else
31674   echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.$ac_ext >&5
31676
31677         ac_cv_lib_intl_strftime=no
31678 fi
31679
31680 rm -f core conftest.err conftest.$ac_objext \
31681       conftest$ac_exeext conftest.$ac_ext
31682 LIBS=$ac_check_lib_save_LIBS
31683 fi
31684 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31685 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31686 if test $ac_cv_lib_intl_strftime = yes; then
31687   cat >>confdefs.h <<\_ACEOF
31688 #define HAVE_STRFTIME 1
31689 _ACEOF
31690
31691 LIBS="-lintl $LIBS"
31692 fi
31693
31694 fi
31695 done
31696
31697
31698 for ac_func in vprintf
31699 do
31700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31701 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31704   echo $ECHO_N "(cached) $ECHO_C" >&6
31705 else
31706   cat >conftest.$ac_ext <<_ACEOF
31707 /* confdefs.h.  */
31708 _ACEOF
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h.  */
31712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31714 #define $ac_func innocuous_$ac_func
31715
31716 /* System header to define __stub macros and hopefully few prototypes,
31717     which can conflict with char $ac_func (); below.
31718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31719     <limits.h> exists even on freestanding compilers.  */
31720
31721 #ifdef __STDC__
31722 # include <limits.h>
31723 #else
31724 # include <assert.h>
31725 #endif
31726
31727 #undef $ac_func
31728
31729 /* Override any GCC internal prototype to avoid an error.
31730    Use char because int might match the return type of a GCC
31731    builtin and then its argument prototype would still apply.  */
31732 #ifdef __cplusplus
31733 extern "C"
31734 #endif
31735 char $ac_func ();
31736 /* The GNU C library defines this for functions which it implements
31737     to always fail with ENOSYS.  Some functions are actually named
31738     something starting with __ and the normal name is an alias.  */
31739 #if defined __stub_$ac_func || defined __stub___$ac_func
31740 choke me
31741 #endif
31742
31743 int
31744 main ()
31745 {
31746 return $ac_func ();
31747   ;
31748   return 0;
31749 }
31750 _ACEOF
31751 rm -f conftest.$ac_objext conftest$ac_exeext
31752 if { (ac_try="$ac_link"
31753 case "(($ac_try" in
31754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31755   *) ac_try_echo=$ac_try;;
31756 esac
31757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31758   (eval "$ac_link") 2>conftest.er1
31759   ac_status=$?
31760   grep -v '^ *+' conftest.er1 >conftest.err
31761   rm -f conftest.er1
31762   cat conftest.err >&5
31763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31764   (exit $ac_status); } &&
31765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31766   { (case "(($ac_try" in
31767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31768   *) ac_try_echo=$ac_try;;
31769 esac
31770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31771   (eval "$ac_try") 2>&5
31772   ac_status=$?
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); }; } &&
31775          { ac_try='test -s conftest$ac_exeext'
31776   { (case "(($ac_try" in
31777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31778   *) ac_try_echo=$ac_try;;
31779 esac
31780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31781   (eval "$ac_try") 2>&5
31782   ac_status=$?
31783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31784   (exit $ac_status); }; }; then
31785   eval "$as_ac_var=yes"
31786 else
31787   echo "$as_me: failed program was:" >&5
31788 sed 's/^/| /' conftest.$ac_ext >&5
31789
31790         eval "$as_ac_var=no"
31791 fi
31792
31793 rm -f core conftest.err conftest.$ac_objext \
31794       conftest$ac_exeext conftest.$ac_ext
31795 fi
31796 ac_res=`eval echo '${'$as_ac_var'}'`
31797                { echo "$as_me:$LINENO: result: $ac_res" >&5
31798 echo "${ECHO_T}$ac_res" >&6; }
31799 if test `eval echo '${'$as_ac_var'}'` = yes; then
31800   cat >>confdefs.h <<_ACEOF
31801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31802 _ACEOF
31803
31804 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31805 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31806 if test "${ac_cv_func__doprnt+set}" = set; then
31807   echo $ECHO_N "(cached) $ECHO_C" >&6
31808 else
31809   cat >conftest.$ac_ext <<_ACEOF
31810 /* confdefs.h.  */
31811 _ACEOF
31812 cat confdefs.h >>conftest.$ac_ext
31813 cat >>conftest.$ac_ext <<_ACEOF
31814 /* end confdefs.h.  */
31815 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31816    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31817 #define _doprnt innocuous__doprnt
31818
31819 /* System header to define __stub macros and hopefully few prototypes,
31820     which can conflict with char _doprnt (); below.
31821     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31822     <limits.h> exists even on freestanding compilers.  */
31823
31824 #ifdef __STDC__
31825 # include <limits.h>
31826 #else
31827 # include <assert.h>
31828 #endif
31829
31830 #undef _doprnt
31831
31832 /* Override any GCC internal prototype to avoid an error.
31833    Use char because int might match the return type of a GCC
31834    builtin and then its argument prototype would still apply.  */
31835 #ifdef __cplusplus
31836 extern "C"
31837 #endif
31838 char _doprnt ();
31839 /* The GNU C library defines this for functions which it implements
31840     to always fail with ENOSYS.  Some functions are actually named
31841     something starting with __ and the normal name is an alias.  */
31842 #if defined __stub__doprnt || defined __stub____doprnt
31843 choke me
31844 #endif
31845
31846 int
31847 main ()
31848 {
31849 return _doprnt ();
31850   ;
31851   return 0;
31852 }
31853 _ACEOF
31854 rm -f conftest.$ac_objext conftest$ac_exeext
31855 if { (ac_try="$ac_link"
31856 case "(($ac_try" in
31857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31858   *) ac_try_echo=$ac_try;;
31859 esac
31860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31861   (eval "$ac_link") 2>conftest.er1
31862   ac_status=$?
31863   grep -v '^ *+' conftest.er1 >conftest.err
31864   rm -f conftest.er1
31865   cat conftest.err >&5
31866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31867   (exit $ac_status); } &&
31868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31869   { (case "(($ac_try" in
31870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31871   *) ac_try_echo=$ac_try;;
31872 esac
31873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31874   (eval "$ac_try") 2>&5
31875   ac_status=$?
31876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31877   (exit $ac_status); }; } &&
31878          { ac_try='test -s conftest$ac_exeext'
31879   { (case "(($ac_try" in
31880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31881   *) ac_try_echo=$ac_try;;
31882 esac
31883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31884   (eval "$ac_try") 2>&5
31885   ac_status=$?
31886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887   (exit $ac_status); }; }; then
31888   ac_cv_func__doprnt=yes
31889 else
31890   echo "$as_me: failed program was:" >&5
31891 sed 's/^/| /' conftest.$ac_ext >&5
31892
31893         ac_cv_func__doprnt=no
31894 fi
31895
31896 rm -f core conftest.err conftest.$ac_objext \
31897       conftest$ac_exeext conftest.$ac_ext
31898 fi
31899 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31900 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31901 if test $ac_cv_func__doprnt = yes; then
31902
31903 cat >>confdefs.h <<\_ACEOF
31904 #define HAVE_DOPRNT 1
31905 _ACEOF
31906
31907 fi
31908
31909 fi
31910 done
31911
31912
31913 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31914 # for constant arguments.  Useless!
31915 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31916 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31917 if test "${ac_cv_working_alloca_h+set}" = set; then
31918   echo $ECHO_N "(cached) $ECHO_C" >&6
31919 else
31920   cat >conftest.$ac_ext <<_ACEOF
31921 /* confdefs.h.  */
31922 _ACEOF
31923 cat confdefs.h >>conftest.$ac_ext
31924 cat >>conftest.$ac_ext <<_ACEOF
31925 /* end confdefs.h.  */
31926 #include <alloca.h>
31927 int
31928 main ()
31929 {
31930 char *p = (char *) alloca (2 * sizeof (int));
31931                           if (p) return 0;
31932   ;
31933   return 0;
31934 }
31935 _ACEOF
31936 rm -f conftest.$ac_objext conftest$ac_exeext
31937 if { (ac_try="$ac_link"
31938 case "(($ac_try" in
31939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31940   *) ac_try_echo=$ac_try;;
31941 esac
31942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31943   (eval "$ac_link") 2>conftest.er1
31944   ac_status=$?
31945   grep -v '^ *+' conftest.er1 >conftest.err
31946   rm -f conftest.er1
31947   cat conftest.err >&5
31948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949   (exit $ac_status); } &&
31950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31951   { (case "(($ac_try" in
31952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31953   *) ac_try_echo=$ac_try;;
31954 esac
31955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31956   (eval "$ac_try") 2>&5
31957   ac_status=$?
31958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959   (exit $ac_status); }; } &&
31960          { ac_try='test -s conftest$ac_exeext'
31961   { (case "(($ac_try" in
31962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31963   *) ac_try_echo=$ac_try;;
31964 esac
31965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31966   (eval "$ac_try") 2>&5
31967   ac_status=$?
31968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31969   (exit $ac_status); }; }; then
31970   ac_cv_working_alloca_h=yes
31971 else
31972   echo "$as_me: failed program was:" >&5
31973 sed 's/^/| /' conftest.$ac_ext >&5
31974
31975         ac_cv_working_alloca_h=no
31976 fi
31977
31978 rm -f core conftest.err conftest.$ac_objext \
31979       conftest$ac_exeext conftest.$ac_ext
31980 fi
31981 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31982 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31983 if test $ac_cv_working_alloca_h = yes; then
31984
31985 cat >>confdefs.h <<\_ACEOF
31986 #define HAVE_ALLOCA_H 1
31987 _ACEOF
31988
31989 fi
31990
31991 { echo "$as_me:$LINENO: checking for alloca" >&5
31992 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31993 if test "${ac_cv_func_alloca_works+set}" = set; then
31994   echo $ECHO_N "(cached) $ECHO_C" >&6
31995 else
31996   cat >conftest.$ac_ext <<_ACEOF
31997 /* confdefs.h.  */
31998 _ACEOF
31999 cat confdefs.h >>conftest.$ac_ext
32000 cat >>conftest.$ac_ext <<_ACEOF
32001 /* end confdefs.h.  */
32002 #ifdef __GNUC__
32003 # define alloca __builtin_alloca
32004 #else
32005 # ifdef _MSC_VER
32006 #  include <malloc.h>
32007 #  define alloca _alloca
32008 # else
32009 #  if HAVE_ALLOCA_H
32010 #   include <alloca.h>
32011 #  else
32012 #   ifdef _AIX
32013  #pragma alloca
32014 #   else
32015 #    ifndef alloca /* predefined by HP cc +Olibcalls */
32016 char *alloca ();
32017 #    endif
32018 #   endif
32019 #  endif
32020 # endif
32021 #endif
32022
32023 int
32024 main ()
32025 {
32026 char *p = (char *) alloca (1);
32027                                     if (p) return 0;
32028   ;
32029   return 0;
32030 }
32031 _ACEOF
32032 rm -f conftest.$ac_objext conftest$ac_exeext
32033 if { (ac_try="$ac_link"
32034 case "(($ac_try" in
32035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32036   *) ac_try_echo=$ac_try;;
32037 esac
32038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32039   (eval "$ac_link") 2>conftest.er1
32040   ac_status=$?
32041   grep -v '^ *+' conftest.er1 >conftest.err
32042   rm -f conftest.er1
32043   cat conftest.err >&5
32044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045   (exit $ac_status); } &&
32046          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32047   { (case "(($ac_try" in
32048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32049   *) ac_try_echo=$ac_try;;
32050 esac
32051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32052   (eval "$ac_try") 2>&5
32053   ac_status=$?
32054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32055   (exit $ac_status); }; } &&
32056          { ac_try='test -s conftest$ac_exeext'
32057   { (case "(($ac_try" in
32058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32059   *) ac_try_echo=$ac_try;;
32060 esac
32061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32062   (eval "$ac_try") 2>&5
32063   ac_status=$?
32064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32065   (exit $ac_status); }; }; then
32066   ac_cv_func_alloca_works=yes
32067 else
32068   echo "$as_me: failed program was:" >&5
32069 sed 's/^/| /' conftest.$ac_ext >&5
32070
32071         ac_cv_func_alloca_works=no
32072 fi
32073
32074 rm -f core conftest.err conftest.$ac_objext \
32075       conftest$ac_exeext conftest.$ac_ext
32076 fi
32077 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32078 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32079
32080 if test $ac_cv_func_alloca_works = yes; then
32081
32082 cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_ALLOCA 1
32084 _ACEOF
32085
32086 else
32087   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32088 # that cause trouble.  Some versions do not even contain alloca or
32089 # contain a buggy version.  If you still want to use their alloca,
32090 # use ar to extract alloca.o from them instead of compiling alloca.c.
32091
32092 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32093
32094 cat >>confdefs.h <<\_ACEOF
32095 #define C_ALLOCA 1
32096 _ACEOF
32097
32098
32099 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32100 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32101 if test "${ac_cv_os_cray+set}" = set; then
32102   echo $ECHO_N "(cached) $ECHO_C" >&6
32103 else
32104   cat >conftest.$ac_ext <<_ACEOF
32105 /* confdefs.h.  */
32106 _ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h.  */
32110 #if defined CRAY && ! defined CRAY2
32111 webecray
32112 #else
32113 wenotbecray
32114 #endif
32115
32116 _ACEOF
32117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32118   $EGREP "webecray" >/dev/null 2>&1; then
32119   ac_cv_os_cray=yes
32120 else
32121   ac_cv_os_cray=no
32122 fi
32123 rm -f conftest*
32124
32125 fi
32126 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32127 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32128 if test $ac_cv_os_cray = yes; then
32129   for ac_func in _getb67 GETB67 getb67; do
32130     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32131 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32133 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32134   echo $ECHO_N "(cached) $ECHO_C" >&6
32135 else
32136   cat >conftest.$ac_ext <<_ACEOF
32137 /* confdefs.h.  */
32138 _ACEOF
32139 cat confdefs.h >>conftest.$ac_ext
32140 cat >>conftest.$ac_ext <<_ACEOF
32141 /* end confdefs.h.  */
32142 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32143    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32144 #define $ac_func innocuous_$ac_func
32145
32146 /* System header to define __stub macros and hopefully few prototypes,
32147     which can conflict with char $ac_func (); below.
32148     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32149     <limits.h> exists even on freestanding compilers.  */
32150
32151 #ifdef __STDC__
32152 # include <limits.h>
32153 #else
32154 # include <assert.h>
32155 #endif
32156
32157 #undef $ac_func
32158
32159 /* Override any GCC internal prototype to avoid an error.
32160    Use char because int might match the return type of a GCC
32161    builtin and then its argument prototype would still apply.  */
32162 #ifdef __cplusplus
32163 extern "C"
32164 #endif
32165 char $ac_func ();
32166 /* The GNU C library defines this for functions which it implements
32167     to always fail with ENOSYS.  Some functions are actually named
32168     something starting with __ and the normal name is an alias.  */
32169 #if defined __stub_$ac_func || defined __stub___$ac_func
32170 choke me
32171 #endif
32172
32173 int
32174 main ()
32175 {
32176 return $ac_func ();
32177   ;
32178   return 0;
32179 }
32180 _ACEOF
32181 rm -f conftest.$ac_objext conftest$ac_exeext
32182 if { (ac_try="$ac_link"
32183 case "(($ac_try" in
32184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32185   *) ac_try_echo=$ac_try;;
32186 esac
32187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32188   (eval "$ac_link") 2>conftest.er1
32189   ac_status=$?
32190   grep -v '^ *+' conftest.er1 >conftest.err
32191   rm -f conftest.er1
32192   cat conftest.err >&5
32193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194   (exit $ac_status); } &&
32195          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32196   { (case "(($ac_try" in
32197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32198   *) ac_try_echo=$ac_try;;
32199 esac
32200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32201   (eval "$ac_try") 2>&5
32202   ac_status=$?
32203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32204   (exit $ac_status); }; } &&
32205          { ac_try='test -s conftest$ac_exeext'
32206   { (case "(($ac_try" in
32207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32208   *) ac_try_echo=$ac_try;;
32209 esac
32210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32211   (eval "$ac_try") 2>&5
32212   ac_status=$?
32213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32214   (exit $ac_status); }; }; then
32215   eval "$as_ac_var=yes"
32216 else
32217   echo "$as_me: failed program was:" >&5
32218 sed 's/^/| /' conftest.$ac_ext >&5
32219
32220         eval "$as_ac_var=no"
32221 fi
32222
32223 rm -f core conftest.err conftest.$ac_objext \
32224       conftest$ac_exeext conftest.$ac_ext
32225 fi
32226 ac_res=`eval echo '${'$as_ac_var'}'`
32227                { echo "$as_me:$LINENO: result: $ac_res" >&5
32228 echo "${ECHO_T}$ac_res" >&6; }
32229 if test `eval echo '${'$as_ac_var'}'` = yes; then
32230
32231 cat >>confdefs.h <<_ACEOF
32232 #define CRAY_STACKSEG_END $ac_func
32233 _ACEOF
32234
32235     break
32236 fi
32237
32238   done
32239 fi
32240
32241 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32242 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32243 if test "${ac_cv_c_stack_direction+set}" = set; then
32244   echo $ECHO_N "(cached) $ECHO_C" >&6
32245 else
32246   if test "$cross_compiling" = yes; then
32247   ac_cv_c_stack_direction=0
32248 else
32249   cat >conftest.$ac_ext <<_ACEOF
32250 /* confdefs.h.  */
32251 _ACEOF
32252 cat confdefs.h >>conftest.$ac_ext
32253 cat >>conftest.$ac_ext <<_ACEOF
32254 /* end confdefs.h.  */
32255 $ac_includes_default
32256 int
32257 find_stack_direction ()
32258 {
32259   static char *addr = 0;
32260   auto char dummy;
32261   if (addr == 0)
32262     {
32263       addr = &dummy;
32264       return find_stack_direction ();
32265     }
32266   else
32267     return (&dummy > addr) ? 1 : -1;
32268 }
32269
32270 int
32271 main ()
32272 {
32273   return find_stack_direction () < 0;
32274 }
32275 _ACEOF
32276 rm -f conftest$ac_exeext
32277 if { (ac_try="$ac_link"
32278 case "(($ac_try" in
32279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32280   *) ac_try_echo=$ac_try;;
32281 esac
32282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32283   (eval "$ac_link") 2>&5
32284   ac_status=$?
32285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32287   { (case "(($ac_try" in
32288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32289   *) ac_try_echo=$ac_try;;
32290 esac
32291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32292   (eval "$ac_try") 2>&5
32293   ac_status=$?
32294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32295   (exit $ac_status); }; }; then
32296   ac_cv_c_stack_direction=1
32297 else
32298   echo "$as_me: program exited with status $ac_status" >&5
32299 echo "$as_me: failed program was:" >&5
32300 sed 's/^/| /' conftest.$ac_ext >&5
32301
32302 ( exit $ac_status )
32303 ac_cv_c_stack_direction=-1
32304 fi
32305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32306 fi
32307
32308
32309 fi
32310 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32311 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32312
32313 cat >>confdefs.h <<_ACEOF
32314 #define STACK_DIRECTION $ac_cv_c_stack_direction
32315 _ACEOF
32316
32317
32318 fi
32319
32320 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32321 # -lseq on Dynix/PTX, -lgen on Unixware.
32322 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32323 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32324 if test "${ac_cv_search_getmntent+set}" = set; then
32325   echo $ECHO_N "(cached) $ECHO_C" >&6
32326 else
32327   ac_func_search_save_LIBS=$LIBS
32328 cat >conftest.$ac_ext <<_ACEOF
32329 /* confdefs.h.  */
32330 _ACEOF
32331 cat confdefs.h >>conftest.$ac_ext
32332 cat >>conftest.$ac_ext <<_ACEOF
32333 /* end confdefs.h.  */
32334
32335 /* Override any GCC internal prototype to avoid an error.
32336    Use char because int might match the return type of a GCC
32337    builtin and then its argument prototype would still apply.  */
32338 #ifdef __cplusplus
32339 extern "C"
32340 #endif
32341 char getmntent ();
32342 int
32343 main ()
32344 {
32345 return getmntent ();
32346   ;
32347   return 0;
32348 }
32349 _ACEOF
32350 for ac_lib in '' sun seq gen; do
32351   if test -z "$ac_lib"; then
32352     ac_res="none required"
32353   else
32354     ac_res=-l$ac_lib
32355     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32356   fi
32357   rm -f conftest.$ac_objext conftest$ac_exeext
32358 if { (ac_try="$ac_link"
32359 case "(($ac_try" in
32360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32361   *) ac_try_echo=$ac_try;;
32362 esac
32363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32364   (eval "$ac_link") 2>conftest.er1
32365   ac_status=$?
32366   grep -v '^ *+' conftest.er1 >conftest.err
32367   rm -f conftest.er1
32368   cat conftest.err >&5
32369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32370   (exit $ac_status); } &&
32371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32372   { (case "(($ac_try" in
32373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32374   *) ac_try_echo=$ac_try;;
32375 esac
32376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32377   (eval "$ac_try") 2>&5
32378   ac_status=$?
32379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32380   (exit $ac_status); }; } &&
32381          { ac_try='test -s conftest$ac_exeext'
32382   { (case "(($ac_try" in
32383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32384   *) ac_try_echo=$ac_try;;
32385 esac
32386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32387   (eval "$ac_try") 2>&5
32388   ac_status=$?
32389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32390   (exit $ac_status); }; }; then
32391   ac_cv_search_getmntent=$ac_res
32392 else
32393   echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32395
32396
32397 fi
32398
32399 rm -f core conftest.err conftest.$ac_objext \
32400       conftest$ac_exeext
32401   if test "${ac_cv_search_getmntent+set}" = set; then
32402   break
32403 fi
32404 done
32405 if test "${ac_cv_search_getmntent+set}" = set; then
32406   :
32407 else
32408   ac_cv_search_getmntent=no
32409 fi
32410 rm conftest.$ac_ext
32411 LIBS=$ac_func_search_save_LIBS
32412 fi
32413 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32414 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32415 ac_res=$ac_cv_search_getmntent
32416 if test "$ac_res" != no; then
32417   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32418
32419 fi
32420
32421
32422 for ac_func in getmntent
32423 do
32424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32428   echo $ECHO_N "(cached) $ECHO_C" >&6
32429 else
32430   cat >conftest.$ac_ext <<_ACEOF
32431 /* confdefs.h.  */
32432 _ACEOF
32433 cat confdefs.h >>conftest.$ac_ext
32434 cat >>conftest.$ac_ext <<_ACEOF
32435 /* end confdefs.h.  */
32436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32438 #define $ac_func innocuous_$ac_func
32439
32440 /* System header to define __stub macros and hopefully few prototypes,
32441     which can conflict with char $ac_func (); below.
32442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32443     <limits.h> exists even on freestanding compilers.  */
32444
32445 #ifdef __STDC__
32446 # include <limits.h>
32447 #else
32448 # include <assert.h>
32449 #endif
32450
32451 #undef $ac_func
32452
32453 /* Override any GCC internal prototype to avoid an error.
32454    Use char because int might match the return type of a GCC
32455    builtin and then its argument prototype would still apply.  */
32456 #ifdef __cplusplus
32457 extern "C"
32458 #endif
32459 char $ac_func ();
32460 /* The GNU C library defines this for functions which it implements
32461     to always fail with ENOSYS.  Some functions are actually named
32462     something starting with __ and the normal name is an alias.  */
32463 #if defined __stub_$ac_func || defined __stub___$ac_func
32464 choke me
32465 #endif
32466
32467 int
32468 main ()
32469 {
32470 return $ac_func ();
32471   ;
32472   return 0;
32473 }
32474 _ACEOF
32475 rm -f conftest.$ac_objext conftest$ac_exeext
32476 if { (ac_try="$ac_link"
32477 case "(($ac_try" in
32478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32479   *) ac_try_echo=$ac_try;;
32480 esac
32481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32482   (eval "$ac_link") 2>conftest.er1
32483   ac_status=$?
32484   grep -v '^ *+' conftest.er1 >conftest.err
32485   rm -f conftest.er1
32486   cat conftest.err >&5
32487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32488   (exit $ac_status); } &&
32489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32490   { (case "(($ac_try" in
32491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32492   *) ac_try_echo=$ac_try;;
32493 esac
32494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32495   (eval "$ac_try") 2>&5
32496   ac_status=$?
32497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32498   (exit $ac_status); }; } &&
32499          { ac_try='test -s conftest$ac_exeext'
32500   { (case "(($ac_try" in
32501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32502   *) ac_try_echo=$ac_try;;
32503 esac
32504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32505   (eval "$ac_try") 2>&5
32506   ac_status=$?
32507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32508   (exit $ac_status); }; }; then
32509   eval "$as_ac_var=yes"
32510 else
32511   echo "$as_me: failed program was:" >&5
32512 sed 's/^/| /' conftest.$ac_ext >&5
32513
32514         eval "$as_ac_var=no"
32515 fi
32516
32517 rm -f core conftest.err conftest.$ac_objext \
32518       conftest$ac_exeext conftest.$ac_ext
32519 fi
32520 ac_res=`eval echo '${'$as_ac_var'}'`
32521                { echo "$as_me:$LINENO: result: $ac_res" >&5
32522 echo "${ECHO_T}$ac_res" >&6; }
32523 if test `eval echo '${'$as_ac_var'}'` = yes; then
32524   cat >>confdefs.h <<_ACEOF
32525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32526 _ACEOF
32527
32528 fi
32529 done
32530
32531
32532 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32533 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32534 if test "${ac_cv_func_closedir_void+set}" = set; then
32535   echo $ECHO_N "(cached) $ECHO_C" >&6
32536 else
32537   if test "$cross_compiling" = yes; then
32538   ac_cv_func_closedir_void=yes
32539 else
32540   cat >conftest.$ac_ext <<_ACEOF
32541 /* confdefs.h.  */
32542 _ACEOF
32543 cat confdefs.h >>conftest.$ac_ext
32544 cat >>conftest.$ac_ext <<_ACEOF
32545 /* end confdefs.h.  */
32546 $ac_includes_default
32547 #include <$ac_header_dirent>
32548 #ifndef __cplusplus
32549 int closedir ();
32550 #endif
32551
32552 int
32553 main ()
32554 {
32555 return closedir (opendir (".")) != 0;
32556   ;
32557   return 0;
32558 }
32559 _ACEOF
32560 rm -f conftest$ac_exeext
32561 if { (ac_try="$ac_link"
32562 case "(($ac_try" in
32563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32564   *) ac_try_echo=$ac_try;;
32565 esac
32566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32567   (eval "$ac_link") 2>&5
32568   ac_status=$?
32569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32571   { (case "(($ac_try" in
32572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32573   *) ac_try_echo=$ac_try;;
32574 esac
32575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32576   (eval "$ac_try") 2>&5
32577   ac_status=$?
32578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32579   (exit $ac_status); }; }; then
32580   ac_cv_func_closedir_void=no
32581 else
32582   echo "$as_me: program exited with status $ac_status" >&5
32583 echo "$as_me: failed program was:" >&5
32584 sed 's/^/| /' conftest.$ac_ext >&5
32585
32586 ( exit $ac_status )
32587 ac_cv_func_closedir_void=yes
32588 fi
32589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32590 fi
32591
32592
32593 fi
32594 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32595 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32596 if test $ac_cv_func_closedir_void = yes; then
32597
32598 cat >>confdefs.h <<\_ACEOF
32599 #define CLOSEDIR_VOID 1
32600 _ACEOF
32601
32602 fi
32603
32604 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32605 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32606 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32607   echo $ECHO_N "(cached) $ECHO_C" >&6
32608 else
32609   if test "$cross_compiling" = yes; then
32610   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32611 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32612    { (exit 1); exit 1; }; }
32613 else
32614   cat >conftest.$ac_ext <<_ACEOF
32615 /* confdefs.h.  */
32616 _ACEOF
32617 cat confdefs.h >>conftest.$ac_ext
32618 cat >>conftest.$ac_ext <<_ACEOF
32619 /* end confdefs.h.  */
32620 $ac_includes_default
32621 int
32622 main ()
32623 {
32624 /* If this system has a BSD-style setpgrp which takes arguments,
32625   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32626   exit successfully. */
32627   return setpgrp (1,1) != -1;
32628   ;
32629   return 0;
32630 }
32631 _ACEOF
32632 rm -f conftest$ac_exeext
32633 if { (ac_try="$ac_link"
32634 case "(($ac_try" in
32635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636   *) ac_try_echo=$ac_try;;
32637 esac
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639   (eval "$ac_link") 2>&5
32640   ac_status=$?
32641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32643   { (case "(($ac_try" in
32644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32645   *) ac_try_echo=$ac_try;;
32646 esac
32647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32648   (eval "$ac_try") 2>&5
32649   ac_status=$?
32650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32651   (exit $ac_status); }; }; then
32652   ac_cv_func_setpgrp_void=no
32653 else
32654   echo "$as_me: program exited with status $ac_status" >&5
32655 echo "$as_me: failed program was:" >&5
32656 sed 's/^/| /' conftest.$ac_ext >&5
32657
32658 ( exit $ac_status )
32659 ac_cv_func_setpgrp_void=yes
32660 fi
32661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32662 fi
32663
32664
32665 fi
32666 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32667 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32668 if test $ac_cv_func_setpgrp_void = yes; then
32669
32670 cat >>confdefs.h <<\_ACEOF
32671 #define SETPGRP_VOID 1
32672 _ACEOF
32673
32674 fi
32675                       # AC_FUNC_FNMATCH    dnl use local version
32676
32677
32678 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32679 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32680 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32681   echo $ECHO_N "(cached) $ECHO_C" >&6
32682 else
32683   ac_check_lib_save_LIBS=$LIBS
32684 LIBS="-lintl  $LIBS"
32685 cat >conftest.$ac_ext <<_ACEOF
32686 /* confdefs.h.  */
32687 _ACEOF
32688 cat confdefs.h >>conftest.$ac_ext
32689 cat >>conftest.$ac_ext <<_ACEOF
32690 /* end confdefs.h.  */
32691
32692 /* Override any GCC internal prototype to avoid an error.
32693    Use char because int might match the return type of a GCC
32694    builtin and then its argument prototype would still apply.  */
32695 #ifdef __cplusplus
32696 extern "C"
32697 #endif
32698 char gettext ();
32699 int
32700 main ()
32701 {
32702 return gettext ();
32703   ;
32704   return 0;
32705 }
32706 _ACEOF
32707 rm -f conftest.$ac_objext conftest$ac_exeext
32708 if { (ac_try="$ac_link"
32709 case "(($ac_try" in
32710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32711   *) ac_try_echo=$ac_try;;
32712 esac
32713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32714   (eval "$ac_link") 2>conftest.er1
32715   ac_status=$?
32716   grep -v '^ *+' conftest.er1 >conftest.err
32717   rm -f conftest.er1
32718   cat conftest.err >&5
32719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32720   (exit $ac_status); } &&
32721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32722   { (case "(($ac_try" in
32723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32724   *) ac_try_echo=$ac_try;;
32725 esac
32726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32727   (eval "$ac_try") 2>&5
32728   ac_status=$?
32729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32730   (exit $ac_status); }; } &&
32731          { ac_try='test -s conftest$ac_exeext'
32732   { (case "(($ac_try" in
32733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32734   *) ac_try_echo=$ac_try;;
32735 esac
32736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32737   (eval "$ac_try") 2>&5
32738   ac_status=$?
32739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32740   (exit $ac_status); }; }; then
32741   ac_cv_lib_intl_gettext=yes
32742 else
32743   echo "$as_me: failed program was:" >&5
32744 sed 's/^/| /' conftest.$ac_ext >&5
32745
32746         ac_cv_lib_intl_gettext=no
32747 fi
32748
32749 rm -f core conftest.err conftest.$ac_objext \
32750       conftest$ac_exeext conftest.$ac_ext
32751 LIBS=$ac_check_lib_save_LIBS
32752 fi
32753 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32754 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32755 if test $ac_cv_lib_intl_gettext = yes; then
32756   LIBS="$LIBS -lintl"
32757 fi
32758
32759
32760
32761
32762 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32763 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32764 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32765   echo $ECHO_N "(cached) $ECHO_C" >&6
32766 else
32767   ac_check_lib_save_LIBS=$LIBS
32768 LIBS="-lsun  $LIBS"
32769 cat >conftest.$ac_ext <<_ACEOF
32770 /* confdefs.h.  */
32771 _ACEOF
32772 cat confdefs.h >>conftest.$ac_ext
32773 cat >>conftest.$ac_ext <<_ACEOF
32774 /* end confdefs.h.  */
32775
32776 /* Override any GCC internal prototype to avoid an error.
32777    Use char because int might match the return type of a GCC
32778    builtin and then its argument prototype would still apply.  */
32779 #ifdef __cplusplus
32780 extern "C"
32781 #endif
32782 char getpwnam ();
32783 int
32784 main ()
32785 {
32786 return getpwnam ();
32787   ;
32788   return 0;
32789 }
32790 _ACEOF
32791 rm -f conftest.$ac_objext conftest$ac_exeext
32792 if { (ac_try="$ac_link"
32793 case "(($ac_try" in
32794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795   *) ac_try_echo=$ac_try;;
32796 esac
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798   (eval "$ac_link") 2>conftest.er1
32799   ac_status=$?
32800   grep -v '^ *+' conftest.er1 >conftest.err
32801   rm -f conftest.er1
32802   cat conftest.err >&5
32803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804   (exit $ac_status); } &&
32805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32806   { (case "(($ac_try" in
32807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32808   *) ac_try_echo=$ac_try;;
32809 esac
32810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32811   (eval "$ac_try") 2>&5
32812   ac_status=$?
32813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32814   (exit $ac_status); }; } &&
32815          { ac_try='test -s conftest$ac_exeext'
32816   { (case "(($ac_try" in
32817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32818   *) ac_try_echo=$ac_try;;
32819 esac
32820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32821   (eval "$ac_try") 2>&5
32822   ac_status=$?
32823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32824   (exit $ac_status); }; }; then
32825   ac_cv_lib_sun_getpwnam=yes
32826 else
32827   echo "$as_me: failed program was:" >&5
32828 sed 's/^/| /' conftest.$ac_ext >&5
32829
32830         ac_cv_lib_sun_getpwnam=no
32831 fi
32832
32833 rm -f core conftest.err conftest.$ac_objext \
32834       conftest$ac_exeext conftest.$ac_ext
32835 LIBS=$ac_check_lib_save_LIBS
32836 fi
32837 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32838 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32839 if test $ac_cv_lib_sun_getpwnam = yes; then
32840   cat >>confdefs.h <<_ACEOF
32841 #define HAVE_LIBSUN 1
32842 _ACEOF
32843
32844   LIBS="-lsun $LIBS"
32845
32846 fi
32847
32848
32849
32850 for ac_header in zlib.h
32851 do
32852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32857   echo $ECHO_N "(cached) $ECHO_C" >&6
32858 fi
32859 ac_res=`eval echo '${'$as_ac_Header'}'`
32860                { echo "$as_me:$LINENO: result: $ac_res" >&5
32861 echo "${ECHO_T}$ac_res" >&6; }
32862 else
32863   # Is the header compilable?
32864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32866 cat >conftest.$ac_ext <<_ACEOF
32867 /* confdefs.h.  */
32868 _ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h.  */
32872 $ac_includes_default
32873 #include <$ac_header>
32874 _ACEOF
32875 rm -f conftest.$ac_objext
32876 if { (ac_try="$ac_compile"
32877 case "(($ac_try" in
32878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32879   *) ac_try_echo=$ac_try;;
32880 esac
32881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32882   (eval "$ac_compile") 2>conftest.er1
32883   ac_status=$?
32884   grep -v '^ *+' conftest.er1 >conftest.err
32885   rm -f conftest.er1
32886   cat conftest.err >&5
32887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888   (exit $ac_status); } &&
32889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32890   { (case "(($ac_try" in
32891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32892   *) ac_try_echo=$ac_try;;
32893 esac
32894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32895   (eval "$ac_try") 2>&5
32896   ac_status=$?
32897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32898   (exit $ac_status); }; } &&
32899          { ac_try='test -s conftest.$ac_objext'
32900   { (case "(($ac_try" in
32901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32902   *) ac_try_echo=$ac_try;;
32903 esac
32904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32905   (eval "$ac_try") 2>&5
32906   ac_status=$?
32907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32908   (exit $ac_status); }; }; then
32909   ac_header_compiler=yes
32910 else
32911   echo "$as_me: failed program was:" >&5
32912 sed 's/^/| /' conftest.$ac_ext >&5
32913
32914         ac_header_compiler=no
32915 fi
32916
32917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32919 echo "${ECHO_T}$ac_header_compiler" >&6; }
32920
32921 # Is the header present?
32922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32924 cat >conftest.$ac_ext <<_ACEOF
32925 /* confdefs.h.  */
32926 _ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h.  */
32930 #include <$ac_header>
32931 _ACEOF
32932 if { (ac_try="$ac_cpp conftest.$ac_ext"
32933 case "(($ac_try" in
32934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32935   *) ac_try_echo=$ac_try;;
32936 esac
32937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32939   ac_status=$?
32940   grep -v '^ *+' conftest.er1 >conftest.err
32941   rm -f conftest.er1
32942   cat conftest.err >&5
32943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32944   (exit $ac_status); } >/dev/null; then
32945   if test -s conftest.err; then
32946     ac_cpp_err=$ac_c_preproc_warn_flag
32947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32948   else
32949     ac_cpp_err=
32950   fi
32951 else
32952   ac_cpp_err=yes
32953 fi
32954 if test -z "$ac_cpp_err"; then
32955   ac_header_preproc=yes
32956 else
32957   echo "$as_me: failed program was:" >&5
32958 sed 's/^/| /' conftest.$ac_ext >&5
32959
32960   ac_header_preproc=no
32961 fi
32962
32963 rm -f conftest.err conftest.$ac_ext
32964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32965 echo "${ECHO_T}$ac_header_preproc" >&6; }
32966
32967 # So?  What about this header?
32968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32969   yes:no: )
32970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32974     ac_header_preproc=yes
32975     ;;
32976   no:yes:* )
32977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32989
32990     ;;
32991 esac
32992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32995   echo $ECHO_N "(cached) $ECHO_C" >&6
32996 else
32997   eval "$as_ac_Header=\$ac_header_preproc"
32998 fi
32999 ac_res=`eval echo '${'$as_ac_Header'}'`
33000                { echo "$as_me:$LINENO: result: $ac_res" >&5
33001 echo "${ECHO_T}$ac_res" >&6; }
33002
33003 fi
33004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
33005   cat >>confdefs.h <<_ACEOF
33006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33007 _ACEOF
33008
33009 fi
33010
33011 done
33012
33013 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
33014 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
33015 if test "${ac_cv_lib_z_deflate+set}" = set; then
33016   echo $ECHO_N "(cached) $ECHO_C" >&6
33017 else
33018   ac_check_lib_save_LIBS=$LIBS
33019 LIBS="-lz  $LIBS"
33020 cat >conftest.$ac_ext <<_ACEOF
33021 /* confdefs.h.  */
33022 _ACEOF
33023 cat confdefs.h >>conftest.$ac_ext
33024 cat >>conftest.$ac_ext <<_ACEOF
33025 /* end confdefs.h.  */
33026
33027 /* Override any GCC internal prototype to avoid an error.
33028    Use char because int might match the return type of a GCC
33029    builtin and then its argument prototype would still apply.  */
33030 #ifdef __cplusplus
33031 extern "C"
33032 #endif
33033 char deflate ();
33034 int
33035 main ()
33036 {
33037 return deflate ();
33038   ;
33039   return 0;
33040 }
33041 _ACEOF
33042 rm -f conftest.$ac_objext conftest$ac_exeext
33043 if { (ac_try="$ac_link"
33044 case "(($ac_try" in
33045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33046   *) ac_try_echo=$ac_try;;
33047 esac
33048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33049   (eval "$ac_link") 2>conftest.er1
33050   ac_status=$?
33051   grep -v '^ *+' conftest.er1 >conftest.err
33052   rm -f conftest.er1
33053   cat conftest.err >&5
33054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33055   (exit $ac_status); } &&
33056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33057   { (case "(($ac_try" in
33058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33059   *) ac_try_echo=$ac_try;;
33060 esac
33061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33062   (eval "$ac_try") 2>&5
33063   ac_status=$?
33064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33065   (exit $ac_status); }; } &&
33066          { ac_try='test -s conftest$ac_exeext'
33067   { (case "(($ac_try" in
33068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33069   *) ac_try_echo=$ac_try;;
33070 esac
33071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33072   (eval "$ac_try") 2>&5
33073   ac_status=$?
33074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33075   (exit $ac_status); }; }; then
33076   ac_cv_lib_z_deflate=yes
33077 else
33078   echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081         ac_cv_lib_z_deflate=no
33082 fi
33083
33084 rm -f core conftest.err conftest.$ac_objext \
33085       conftest$ac_exeext conftest.$ac_ext
33086 LIBS=$ac_check_lib_save_LIBS
33087 fi
33088 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33089 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33090 if test $ac_cv_lib_z_deflate = yes; then
33091   FDLIBS="-lz"
33092 fi
33093
33094 have_zlib=no
33095 if test x$FDLIBS = x-lz; then
33096   cat >>confdefs.h <<\_ACEOF
33097 #define HAVE_LIBZ 1
33098 _ACEOF
33099
33100   have_zlib=yes
33101 fi
33102
33103 #
33104 # Check for ACL libraries
33105 #
33106 have_acl=no
33107 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33108   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33109 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33110 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33111   echo $ECHO_N "(cached) $ECHO_C" >&6
33112 fi
33113 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33114 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33115 else
33116   # Is the header compilable?
33117 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33118 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33119 cat >conftest.$ac_ext <<_ACEOF
33120 /* confdefs.h.  */
33121 _ACEOF
33122 cat confdefs.h >>conftest.$ac_ext
33123 cat >>conftest.$ac_ext <<_ACEOF
33124 /* end confdefs.h.  */
33125 $ac_includes_default
33126 #include <sys/acl.h>
33127 _ACEOF
33128 rm -f conftest.$ac_objext
33129 if { (ac_try="$ac_compile"
33130 case "(($ac_try" in
33131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132   *) ac_try_echo=$ac_try;;
33133 esac
33134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33135   (eval "$ac_compile") 2>conftest.er1
33136   ac_status=$?
33137   grep -v '^ *+' conftest.er1 >conftest.err
33138   rm -f conftest.er1
33139   cat conftest.err >&5
33140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141   (exit $ac_status); } &&
33142          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33143   { (case "(($ac_try" in
33144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33145   *) ac_try_echo=$ac_try;;
33146 esac
33147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33148   (eval "$ac_try") 2>&5
33149   ac_status=$?
33150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33151   (exit $ac_status); }; } &&
33152          { ac_try='test -s conftest.$ac_objext'
33153   { (case "(($ac_try" in
33154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33155   *) ac_try_echo=$ac_try;;
33156 esac
33157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33158   (eval "$ac_try") 2>&5
33159   ac_status=$?
33160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161   (exit $ac_status); }; }; then
33162   ac_header_compiler=yes
33163 else
33164   echo "$as_me: failed program was:" >&5
33165 sed 's/^/| /' conftest.$ac_ext >&5
33166
33167         ac_header_compiler=no
33168 fi
33169
33170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33172 echo "${ECHO_T}$ac_header_compiler" >&6; }
33173
33174 # Is the header present?
33175 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33176 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33177 cat >conftest.$ac_ext <<_ACEOF
33178 /* confdefs.h.  */
33179 _ACEOF
33180 cat confdefs.h >>conftest.$ac_ext
33181 cat >>conftest.$ac_ext <<_ACEOF
33182 /* end confdefs.h.  */
33183 #include <sys/acl.h>
33184 _ACEOF
33185 if { (ac_try="$ac_cpp conftest.$ac_ext"
33186 case "(($ac_try" in
33187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33188   *) ac_try_echo=$ac_try;;
33189 esac
33190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33191   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33192   ac_status=$?
33193   grep -v '^ *+' conftest.er1 >conftest.err
33194   rm -f conftest.er1
33195   cat conftest.err >&5
33196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197   (exit $ac_status); } >/dev/null; then
33198   if test -s conftest.err; then
33199     ac_cpp_err=$ac_c_preproc_warn_flag
33200     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33201   else
33202     ac_cpp_err=
33203   fi
33204 else
33205   ac_cpp_err=yes
33206 fi
33207 if test -z "$ac_cpp_err"; then
33208   ac_header_preproc=yes
33209 else
33210   echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33212
33213   ac_header_preproc=no
33214 fi
33215
33216 rm -f conftest.err conftest.$ac_ext
33217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33218 echo "${ECHO_T}$ac_header_preproc" >&6; }
33219
33220 # So?  What about this header?
33221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33222   yes:no: )
33223     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33224 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33225     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33226 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33227     ac_header_preproc=yes
33228     ;;
33229   no:yes:* )
33230     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33231 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33232     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33233 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33234     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33235 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33236     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33237 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33238     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33239 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33240     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33241 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33242
33243     ;;
33244 esac
33245 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33246 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33247 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33248   echo $ECHO_N "(cached) $ECHO_C" >&6
33249 else
33250   ac_cv_header_sys_acl_h=$ac_header_preproc
33251 fi
33252 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33253 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33254
33255 fi
33256
33257
33258 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33259 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33260 if test "${ac_cv_func_acl_get_file+set}" = set; then
33261   echo $ECHO_N "(cached) $ECHO_C" >&6
33262 else
33263   cat >conftest.$ac_ext <<_ACEOF
33264 /* confdefs.h.  */
33265 _ACEOF
33266 cat confdefs.h >>conftest.$ac_ext
33267 cat >>conftest.$ac_ext <<_ACEOF
33268 /* end confdefs.h.  */
33269 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33271 #define acl_get_file innocuous_acl_get_file
33272
33273 /* System header to define __stub macros and hopefully few prototypes,
33274     which can conflict with char acl_get_file (); below.
33275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33276     <limits.h> exists even on freestanding compilers.  */
33277
33278 #ifdef __STDC__
33279 # include <limits.h>
33280 #else
33281 # include <assert.h>
33282 #endif
33283
33284 #undef acl_get_file
33285
33286 /* Override any GCC internal prototype to avoid an error.
33287    Use char because int might match the return type of a GCC
33288    builtin and then its argument prototype would still apply.  */
33289 #ifdef __cplusplus
33290 extern "C"
33291 #endif
33292 char acl_get_file ();
33293 /* The GNU C library defines this for functions which it implements
33294     to always fail with ENOSYS.  Some functions are actually named
33295     something starting with __ and the normal name is an alias.  */
33296 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33297 choke me
33298 #endif
33299
33300 int
33301 main ()
33302 {
33303 return acl_get_file ();
33304   ;
33305   return 0;
33306 }
33307 _ACEOF
33308 rm -f conftest.$ac_objext conftest$ac_exeext
33309 if { (ac_try="$ac_link"
33310 case "(($ac_try" in
33311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33312   *) ac_try_echo=$ac_try;;
33313 esac
33314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33315   (eval "$ac_link") 2>conftest.er1
33316   ac_status=$?
33317   grep -v '^ *+' conftest.er1 >conftest.err
33318   rm -f conftest.er1
33319   cat conftest.err >&5
33320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321   (exit $ac_status); } &&
33322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33323   { (case "(($ac_try" in
33324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33325   *) ac_try_echo=$ac_try;;
33326 esac
33327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33328   (eval "$ac_try") 2>&5
33329   ac_status=$?
33330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33331   (exit $ac_status); }; } &&
33332          { ac_try='test -s conftest$ac_exeext'
33333   { (case "(($ac_try" in
33334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33335   *) ac_try_echo=$ac_try;;
33336 esac
33337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33338   (eval "$ac_try") 2>&5
33339   ac_status=$?
33340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33341   (exit $ac_status); }; }; then
33342   ac_cv_func_acl_get_file=yes
33343 else
33344   echo "$as_me: failed program was:" >&5
33345 sed 's/^/| /' conftest.$ac_ext >&5
33346
33347         ac_cv_func_acl_get_file=no
33348 fi
33349
33350 rm -f core conftest.err conftest.$ac_objext \
33351       conftest$ac_exeext conftest.$ac_ext
33352 fi
33353 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33354 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33355 if test $ac_cv_func_acl_get_file = yes; then
33356   have_acl=yes
33357 else
33358   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33359 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33360 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33361   echo $ECHO_N "(cached) $ECHO_C" >&6
33362 else
33363   ac_check_lib_save_LIBS=$LIBS
33364 LIBS="-lacl  $LIBS"
33365 cat >conftest.$ac_ext <<_ACEOF
33366 /* confdefs.h.  */
33367 _ACEOF
33368 cat confdefs.h >>conftest.$ac_ext
33369 cat >>conftest.$ac_ext <<_ACEOF
33370 /* end confdefs.h.  */
33371
33372 /* Override any GCC internal prototype to avoid an error.
33373    Use char because int might match the return type of a GCC
33374    builtin and then its argument prototype would still apply.  */
33375 #ifdef __cplusplus
33376 extern "C"
33377 #endif
33378 char acl_get_file ();
33379 int
33380 main ()
33381 {
33382 return acl_get_file ();
33383   ;
33384   return 0;
33385 }
33386 _ACEOF
33387 rm -f conftest.$ac_objext conftest$ac_exeext
33388 if { (ac_try="$ac_link"
33389 case "(($ac_try" in
33390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33391   *) ac_try_echo=$ac_try;;
33392 esac
33393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33394   (eval "$ac_link") 2>conftest.er1
33395   ac_status=$?
33396   grep -v '^ *+' conftest.er1 >conftest.err
33397   rm -f conftest.er1
33398   cat conftest.err >&5
33399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33400   (exit $ac_status); } &&
33401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33402   { (case "(($ac_try" in
33403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33404   *) ac_try_echo=$ac_try;;
33405 esac
33406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33407   (eval "$ac_try") 2>&5
33408   ac_status=$?
33409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410   (exit $ac_status); }; } &&
33411          { ac_try='test -s conftest$ac_exeext'
33412   { (case "(($ac_try" in
33413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33414   *) ac_try_echo=$ac_try;;
33415 esac
33416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33417   (eval "$ac_try") 2>&5
33418   ac_status=$?
33419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420   (exit $ac_status); }; }; then
33421   ac_cv_lib_acl_acl_get_file=yes
33422 else
33423   echo "$as_me: failed program was:" >&5
33424 sed 's/^/| /' conftest.$ac_ext >&5
33425
33426         ac_cv_lib_acl_acl_get_file=no
33427 fi
33428
33429 rm -f core conftest.err conftest.$ac_objext \
33430       conftest$ac_exeext conftest.$ac_ext
33431 LIBS=$ac_check_lib_save_LIBS
33432 fi
33433 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33434 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33435 if test $ac_cv_lib_acl_acl_get_file = yes; then
33436   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33437 else
33438   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33439 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33440 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33441   echo $ECHO_N "(cached) $ECHO_C" >&6
33442 else
33443   ac_check_lib_save_LIBS=$LIBS
33444 LIBS="-lsec  $LIBS"
33445 cat >conftest.$ac_ext <<_ACEOF
33446 /* confdefs.h.  */
33447 _ACEOF
33448 cat confdefs.h >>conftest.$ac_ext
33449 cat >>conftest.$ac_ext <<_ACEOF
33450 /* end confdefs.h.  */
33451
33452 /* Override any GCC internal prototype to avoid an error.
33453    Use char because int might match the return type of a GCC
33454    builtin and then its argument prototype would still apply.  */
33455 #ifdef __cplusplus
33456 extern "C"
33457 #endif
33458 char acltotext ();
33459 int
33460 main ()
33461 {
33462 return acltotext ();
33463   ;
33464   return 0;
33465 }
33466 _ACEOF
33467 rm -f conftest.$ac_objext conftest$ac_exeext
33468 if { (ac_try="$ac_link"
33469 case "(($ac_try" in
33470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33471   *) ac_try_echo=$ac_try;;
33472 esac
33473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33474   (eval "$ac_link") 2>conftest.er1
33475   ac_status=$?
33476   grep -v '^ *+' conftest.er1 >conftest.err
33477   rm -f conftest.er1
33478   cat conftest.err >&5
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); } &&
33481          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33482   { (case "(($ac_try" in
33483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33484   *) ac_try_echo=$ac_try;;
33485 esac
33486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33487   (eval "$ac_try") 2>&5
33488   ac_status=$?
33489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33490   (exit $ac_status); }; } &&
33491          { ac_try='test -s conftest$ac_exeext'
33492   { (case "(($ac_try" in
33493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494   *) ac_try_echo=$ac_try;;
33495 esac
33496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497   (eval "$ac_try") 2>&5
33498   ac_status=$?
33499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500   (exit $ac_status); }; }; then
33501   ac_cv_lib_sec_acltotext=yes
33502 else
33503   echo "$as_me: failed program was:" >&5
33504 sed 's/^/| /' conftest.$ac_ext >&5
33505
33506         ac_cv_lib_sec_acltotext=no
33507 fi
33508
33509 rm -f core conftest.err conftest.$ac_objext \
33510       conftest$ac_exeext conftest.$ac_ext
33511 LIBS=$ac_check_lib_save_LIBS
33512 fi
33513 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33514 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33515 if test $ac_cv_lib_sec_acltotext = yes; then
33516   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33517 fi
33518
33519
33520 fi
33521
33522
33523 fi
33524
33525 if test $have_acl = yes; then
33526    cat >>confdefs.h <<\_ACEOF
33527 #define HAVE_ACL 1
33528 _ACEOF
33529
33530 fi
33531
33532 PTHREAD_LIB=""
33533 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33534 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33535 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33536   echo $ECHO_N "(cached) $ECHO_C" >&6
33537 else
33538   ac_check_lib_save_LIBS=$LIBS
33539 LIBS="-lpthread  $LIBS"
33540 cat >conftest.$ac_ext <<_ACEOF
33541 /* confdefs.h.  */
33542 _ACEOF
33543 cat confdefs.h >>conftest.$ac_ext
33544 cat >>conftest.$ac_ext <<_ACEOF
33545 /* end confdefs.h.  */
33546
33547 /* Override any GCC internal prototype to avoid an error.
33548    Use char because int might match the return type of a GCC
33549    builtin and then its argument prototype would still apply.  */
33550 #ifdef __cplusplus
33551 extern "C"
33552 #endif
33553 char pthread_create ();
33554 int
33555 main ()
33556 {
33557 return pthread_create ();
33558   ;
33559   return 0;
33560 }
33561 _ACEOF
33562 rm -f conftest.$ac_objext conftest$ac_exeext
33563 if { (ac_try="$ac_link"
33564 case "(($ac_try" in
33565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33566   *) ac_try_echo=$ac_try;;
33567 esac
33568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33569   (eval "$ac_link") 2>conftest.er1
33570   ac_status=$?
33571   grep -v '^ *+' conftest.er1 >conftest.err
33572   rm -f conftest.er1
33573   cat conftest.err >&5
33574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575   (exit $ac_status); } &&
33576          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33577   { (case "(($ac_try" in
33578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33579   *) ac_try_echo=$ac_try;;
33580 esac
33581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33582   (eval "$ac_try") 2>&5
33583   ac_status=$?
33584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33585   (exit $ac_status); }; } &&
33586          { ac_try='test -s conftest$ac_exeext'
33587   { (case "(($ac_try" in
33588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33589   *) ac_try_echo=$ac_try;;
33590 esac
33591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33592   (eval "$ac_try") 2>&5
33593   ac_status=$?
33594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33595   (exit $ac_status); }; }; then
33596   ac_cv_lib_pthread_pthread_create=yes
33597 else
33598   echo "$as_me: failed program was:" >&5
33599 sed 's/^/| /' conftest.$ac_ext >&5
33600
33601         ac_cv_lib_pthread_pthread_create=no
33602 fi
33603
33604 rm -f core conftest.err conftest.$ac_objext \
33605       conftest$ac_exeext conftest.$ac_ext
33606 LIBS=$ac_check_lib_save_LIBS
33607 fi
33608 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33609 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33610 if test $ac_cv_lib_pthread_pthread_create = yes; then
33611   PTHREAD_LIB="-lpthread"
33612 else
33613   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33614 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33615 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33616   echo $ECHO_N "(cached) $ECHO_C" >&6
33617 else
33618   ac_check_lib_save_LIBS=$LIBS
33619 LIBS="-lpthreads  $LIBS"
33620 cat >conftest.$ac_ext <<_ACEOF
33621 /* confdefs.h.  */
33622 _ACEOF
33623 cat confdefs.h >>conftest.$ac_ext
33624 cat >>conftest.$ac_ext <<_ACEOF
33625 /* end confdefs.h.  */
33626
33627 /* Override any GCC internal prototype to avoid an error.
33628    Use char because int might match the return type of a GCC
33629    builtin and then its argument prototype would still apply.  */
33630 #ifdef __cplusplus
33631 extern "C"
33632 #endif
33633 char pthread_create ();
33634 int
33635 main ()
33636 {
33637 return pthread_create ();
33638   ;
33639   return 0;
33640 }
33641 _ACEOF
33642 rm -f conftest.$ac_objext conftest$ac_exeext
33643 if { (ac_try="$ac_link"
33644 case "(($ac_try" in
33645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33646   *) ac_try_echo=$ac_try;;
33647 esac
33648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33649   (eval "$ac_link") 2>conftest.er1
33650   ac_status=$?
33651   grep -v '^ *+' conftest.er1 >conftest.err
33652   rm -f conftest.er1
33653   cat conftest.err >&5
33654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655   (exit $ac_status); } &&
33656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33657   { (case "(($ac_try" in
33658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33659   *) ac_try_echo=$ac_try;;
33660 esac
33661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33662   (eval "$ac_try") 2>&5
33663   ac_status=$?
33664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33665   (exit $ac_status); }; } &&
33666          { ac_try='test -s conftest$ac_exeext'
33667   { (case "(($ac_try" in
33668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33669   *) ac_try_echo=$ac_try;;
33670 esac
33671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33672   (eval "$ac_try") 2>&5
33673   ac_status=$?
33674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33675   (exit $ac_status); }; }; then
33676   ac_cv_lib_pthreads_pthread_create=yes
33677 else
33678   echo "$as_me: failed program was:" >&5
33679 sed 's/^/| /' conftest.$ac_ext >&5
33680
33681         ac_cv_lib_pthreads_pthread_create=no
33682 fi
33683
33684 rm -f core conftest.err conftest.$ac_objext \
33685       conftest$ac_exeext conftest.$ac_ext
33686 LIBS=$ac_check_lib_save_LIBS
33687 fi
33688 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33689 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33690 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33691   PTHREAD_LIB="-lpthreads"
33692 else
33693   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33694 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33695 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33696   echo $ECHO_N "(cached) $ECHO_C" >&6
33697 else
33698   ac_check_lib_save_LIBS=$LIBS
33699 LIBS="-lc_r  $LIBS"
33700 cat >conftest.$ac_ext <<_ACEOF
33701 /* confdefs.h.  */
33702 _ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h.  */
33706
33707 /* Override any GCC internal prototype to avoid an error.
33708    Use char because int might match the return type of a GCC
33709    builtin and then its argument prototype would still apply.  */
33710 #ifdef __cplusplus
33711 extern "C"
33712 #endif
33713 char pthread_create ();
33714 int
33715 main ()
33716 {
33717 return pthread_create ();
33718   ;
33719   return 0;
33720 }
33721 _ACEOF
33722 rm -f conftest.$ac_objext conftest$ac_exeext
33723 if { (ac_try="$ac_link"
33724 case "(($ac_try" in
33725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33726   *) ac_try_echo=$ac_try;;
33727 esac
33728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33729   (eval "$ac_link") 2>conftest.er1
33730   ac_status=$?
33731   grep -v '^ *+' conftest.er1 >conftest.err
33732   rm -f conftest.er1
33733   cat conftest.err >&5
33734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735   (exit $ac_status); } &&
33736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33737   { (case "(($ac_try" in
33738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33739   *) ac_try_echo=$ac_try;;
33740 esac
33741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33742   (eval "$ac_try") 2>&5
33743   ac_status=$?
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); }; } &&
33746          { ac_try='test -s conftest$ac_exeext'
33747   { (case "(($ac_try" in
33748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33749   *) ac_try_echo=$ac_try;;
33750 esac
33751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33752   (eval "$ac_try") 2>&5
33753   ac_status=$?
33754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33755   (exit $ac_status); }; }; then
33756   ac_cv_lib_c_r_pthread_create=yes
33757 else
33758   echo "$as_me: failed program was:" >&5
33759 sed 's/^/| /' conftest.$ac_ext >&5
33760
33761         ac_cv_lib_c_r_pthread_create=no
33762 fi
33763
33764 rm -f core conftest.err conftest.$ac_objext \
33765       conftest$ac_exeext conftest.$ac_ext
33766 LIBS=$ac_check_lib_save_LIBS
33767 fi
33768 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33769 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33770 if test $ac_cv_lib_c_r_pthread_create = yes; then
33771   PTHREAD_LIB="-lc_r"
33772 else
33773   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33774 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33775 if test "${ac_cv_func_pthread_create+set}" = set; then
33776   echo $ECHO_N "(cached) $ECHO_C" >&6
33777 else
33778   cat >conftest.$ac_ext <<_ACEOF
33779 /* confdefs.h.  */
33780 _ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h.  */
33784 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33785    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33786 #define pthread_create innocuous_pthread_create
33787
33788 /* System header to define __stub macros and hopefully few prototypes,
33789     which can conflict with char pthread_create (); below.
33790     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33791     <limits.h> exists even on freestanding compilers.  */
33792
33793 #ifdef __STDC__
33794 # include <limits.h>
33795 #else
33796 # include <assert.h>
33797 #endif
33798
33799 #undef pthread_create
33800
33801 /* Override any GCC internal prototype to avoid an error.
33802    Use char because int might match the return type of a GCC
33803    builtin and then its argument prototype would still apply.  */
33804 #ifdef __cplusplus
33805 extern "C"
33806 #endif
33807 char pthread_create ();
33808 /* The GNU C library defines this for functions which it implements
33809     to always fail with ENOSYS.  Some functions are actually named
33810     something starting with __ and the normal name is an alias.  */
33811 #if defined __stub_pthread_create || defined __stub___pthread_create
33812 choke me
33813 #endif
33814
33815 int
33816 main ()
33817 {
33818 return pthread_create ();
33819   ;
33820   return 0;
33821 }
33822 _ACEOF
33823 rm -f conftest.$ac_objext conftest$ac_exeext
33824 if { (ac_try="$ac_link"
33825 case "(($ac_try" in
33826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827   *) ac_try_echo=$ac_try;;
33828 esac
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830   (eval "$ac_link") 2>conftest.er1
33831   ac_status=$?
33832   grep -v '^ *+' conftest.er1 >conftest.err
33833   rm -f conftest.er1
33834   cat conftest.err >&5
33835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836   (exit $ac_status); } &&
33837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33838   { (case "(($ac_try" in
33839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33840   *) ac_try_echo=$ac_try;;
33841 esac
33842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33843   (eval "$ac_try") 2>&5
33844   ac_status=$?
33845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33846   (exit $ac_status); }; } &&
33847          { ac_try='test -s conftest$ac_exeext'
33848   { (case "(($ac_try" in
33849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33850   *) ac_try_echo=$ac_try;;
33851 esac
33852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33853   (eval "$ac_try") 2>&5
33854   ac_status=$?
33855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33856   (exit $ac_status); }; }; then
33857   ac_cv_func_pthread_create=yes
33858 else
33859   echo "$as_me: failed program was:" >&5
33860 sed 's/^/| /' conftest.$ac_ext >&5
33861
33862         ac_cv_func_pthread_create=no
33863 fi
33864
33865 rm -f core conftest.err conftest.$ac_objext \
33866       conftest$ac_exeext conftest.$ac_ext
33867 fi
33868 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33869 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33870
33871
33872 fi
33873
33874
33875 fi
33876
33877
33878 fi
33879
33880
33881
33882 cat >>confdefs.h <<\_ACEOF
33883 #define FDLIBS 1
33884 _ACEOF
33885
33886
33887
33888 CFLAGS=${CFLAGS--O}
33889
33890 if test x$have_gcc = xyes ; then
33891    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33892    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33893 fi
33894 LDFLAGS=${LDFLAGS--O}
33895 DB_LIBS="${SQL_LFLAGS}"
33896 CPPFLAGS="$CPPFLAGS"
33897 CFLAGS="$CFLAGS"
33898
33899
33900
33901
33902
33903
33904
33905
33906
33907
33908
33909
33910
33911
33912
33913
33914 OBJLIST=
33915
33916
33917 lld="lld"
33918 llu="llu"
33919
33920 WCFLAGS=
33921 WLDFLAGS=
33922
33923 #
33924 # Finally we set appropriate distribution specific
33925 #  variables and defaults
33926 #
33927 # PFILES are platform specific files
33928 PFILES="platforms/Makefile"
33929 PSCMD="ps -e"
33930 WIN32=
33931 MACOSX=
33932 hostname=`uname -n | cut -d '.' -f 1`
33933 if test x${hostname} = x ; then
33934   hostname="localhost"
33935 fi
33936 case "$DISTNAME" in
33937 aix)
33938         DISTVER=`uname -r`
33939         PSCMD="ps -e -o pid,comm"
33940         PFILES="${PFILES} \
33941            platforms/aix/Makefile"
33942         TAPEDRIVE="/dev/rmt0.1"
33943   ;;
33944 alpha)
33945         DISTVER=`uname -r`
33946         PTHREAD_LIB="-lpthread -lexc"
33947         if test "${CC}" = "gcc" ; then
33948            lld="lld"
33949            llu="llu"
33950         else
33951            lld="ld"
33952            llu="lu"
33953         fi
33954         TAPEDRIVE="/dev/nrmt0"
33955   ;;
33956 bsdi)
33957         DISTVER=`uname -a |awk '{print $3}'`
33958         TAPEDRIVE="/dev/nrmt0"
33959         PTHREAD_LIB="-pthread"
33960         CFLAGS="${CFLAGS} -pthread"
33961         PSCMD="ps -ax -o pid,command"
33962         lld="qd"
33963         llu="qu"
33964         PFILES="${PFILES} \
33965             platforms/bsdi/Makefile \
33966             platforms/bsdi/bacula-fd \
33967             platforms/bsdi/bacula-sd \
33968             platforms/bsdi/bacula-dir"
33969         largefile_support="yes"
33970   ;;
33971 cygwin)
33972         DISTVER=`uname -a |awk '{print $3}'`
33973         TAPEDRIVE="/dev/nrst0"
33974         WIN32=win32
33975         WCFLAGS="-mwindows"
33976         WLDFLAGS="-mwindows"
33977   ;;
33978 darwin)
33979         DISTVER=`uname -r`
33980         TAPEDRIVE="/dev/nst0"
33981         PSCMD="ps -e -o pid,command"
33982         MACOSX=macosx
33983         PFILES="${PFILES} \
33984            platforms/darwin/Makefile"
33985   ;;
33986 debian)
33987         DISTVER=`cat /etc/debian_version`
33988         TAPEDRIVE="/dev/nrst0"
33989         PSCMD="ps -e -o pid,command"
33990   ;;
33991 freebsd)
33992         DISTVER=`uname -a |awk '{print $3}'`
33993         VER=`echo $DISTVER | cut -c 1`
33994         if test x$VER = x4 ; then
33995            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33996            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33997         fi
33998         lld="qd"
33999         llu="qu"
34000         TAPEDRIVE="/dev/nrsa0"
34001         PSCMD="ps -ax -o pid,command"
34002         PFILES="${PFILES} \
34003             platforms/freebsd/Makefile \
34004             platforms/freebsd/bacula-fd \
34005             platforms/freebsd/bacula-sd \
34006             platforms/freebsd/bacula-dir"
34007         largefile_support="yes"
34008   ;;
34009 hpux)
34010         PSCMD="UNIX95=1 ps -e -o pid,comm"
34011         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
34012         DISTVER=`uname -r`
34013         TAPEDRIVE="/dev/rmt/0hnb"
34014         PTHREAD_LIB="-lpthread"
34015         cat >>confdefs.h <<\_ACEOF
34016 #define _INCLUDE_LONGLONG 1
34017 _ACEOF
34018
34019   ;;
34020 irix)
34021         DISTVER=`uname -r`
34022         TAPEDRIVE="/dev/rmt/0cbn"
34023         PSCMD="ps -e -o pid,comm"
34024         PFILES="${PFILES} \
34025             platforms/irix/Makefile \
34026             platforms/irix/bacula-fd \
34027             platforms/irix/bacula-sd \
34028             platforms/irix/bacula-dir"
34029   ;;
34030 netbsd)
34031         DISTVER=`uname -a |awk '{print $3}'`
34032         lld="qd"
34033         llu="qu"
34034         TAPEDRIVE="/dev/nrst0"
34035         PSCMD="ps -ax -o pid,command"
34036         PTHREAD_LIB="-pthread"
34037         CFLAGS="${CFLAGS} -pthread"
34038   ;;
34039 openbsd)
34040         DISTVER=`uname -a |awk '{print $3}'`
34041         lld="qd"
34042         llu="qu"
34043         TAPEDRIVE="/dev/nrst0"
34044         PSCMD="ps -ax -o pid,command"
34045         PTHREAD_LIB="-pthread"
34046         CFLAGS="${CFLAGS} -pthread"
34047         PFILES="${PFILES} \
34048             platforms/openbsd/Makefile \
34049             platforms/openbsd/bacula-fd \
34050             platforms/openbsd/bacula-sd \
34051             platforms/openbsd/bacula-dir"
34052   ;;
34053 redhat)
34054         if test -f /etc/whitebox-release ; then
34055            f=/etc/whitebox-release
34056         else
34057            f=/etc/redhat-release
34058         fi
34059         if test `cat $f | grep release |\
34060                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34061            DISTVER="Enterprise "`cat $f | grep release |\
34062                     cut -f 6 -d ' '`
34063         else
34064             DISTVER=`cat /etc/redhat-release | grep release |\
34065                      cut -f 5 -d ' '`
34066         fi
34067         TAPEDRIVE="/dev/nst0"
34068         PSCMD="ps -e -o pid,command"
34069         PFILES="${PFILES} \
34070             platforms/redhat/Makefile \
34071             platforms/redhat/bacula-fd \
34072             platforms/redhat/bacula-sd \
34073             platforms/redhat/bacula-dir \
34074             platforms/redhat/bacula.spec \
34075             "
34076   ;;
34077 mandrake)
34078         DISTVER=`cat /etc/mandrake-release | grep release |\
34079            cut -f 5 -d ' '`
34080         TAPEDRIVE="/dev/nst0"
34081         PSCMD="ps -e -o pid,command"
34082         PFILES="${PFILES} \
34083             platforms/mandrake/Makefile \
34084             platforms/mandrake/bacula-fd \
34085             platforms/mandrake/bacula-sd \
34086             platforms/mandrake/bacula-dir \
34087             platforms/mandrake/bacula.spec \
34088             "
34089   ;;
34090 gentoo)
34091         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34092         TAPEDRIVE="/dev/nst0"
34093         PSCMD="ps -e -o pid,command"
34094         PFILES="${PFILES} \
34095             platforms/gentoo/Makefile \
34096          platforms/gentoo/bacula-init \
34097             platforms/gentoo/bacula-fd \
34098             platforms/gentoo/bacula-sd \
34099             platforms/gentoo/bacula-dir"
34100   ;;
34101 slackware)
34102         DISTVER=`cat /etc/slackware-version`
34103         TAPEDRIVE="/dev/nst0"
34104         PSCMD="ps -e -o pid,command"
34105         PFILES="${PFILES} \
34106             platforms/slackware/Makefile \
34107             platforms/slackware/rc.bacula-fd \
34108             platforms/slackware/rc.bacula-sd \
34109             platforms/slackware/rc.bacula-dir\
34110             platforms/slackware/functions.bacula"
34111   ;;
34112 solaris)
34113         DISTVER=`uname -r`
34114         TAPEDRIVE="/dev/rmt/0cbn"
34115         PSCMD="ps -e -o pid,comm"
34116         PFILES="${PFILES} \
34117             platforms/solaris/Makefile \
34118             platforms/solaris/bacula-fd \
34119             platforms/solaris/bacula-sd \
34120             platforms/solaris/bacula-dir"
34121         if test x$DISTVER = x5.6 ; then
34122             cat >>confdefs.h <<\_ACEOF
34123 #define HAVE_OLD_SOCKOPT 1
34124 _ACEOF
34125
34126         fi
34127         LIBS="$LIBS -lresolv"
34128   ;;
34129 suse)
34130         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34131             cut -f 3 -d ' '`
34132         TAPEDRIVE="/dev/nst0"
34133         PSCMD="ps -e -o pid,command"
34134         PFILES="${PFILES} \
34135             platforms/suse/Makefile \
34136             platforms/suse/bacula-fd \
34137             platforms/suse/bacula-sd \
34138             platforms/suse/bacula-dir \
34139             platforms/suse/bacula \
34140             platforms/suse/bacula.spec"
34141   ;;
34142 suse5)
34143         DISTNAME=suse
34144         DISTVER=5.x
34145         TAPEDRIVE="/dev/nst0"
34146         PSCMD="ps -e -o pid,command"
34147         PFILES="${PFILES} \
34148             platforms/suse/Makefile \
34149             platforms/suse/bacula-fd \
34150             platforms/suse/bacula-sd \
34151             platforms/suse/bacula-dir"
34152   ;;
34153 unknown)
34154         DISTVER=unknown
34155         TAPEDRIVE="/dev/nst0"
34156   ;;
34157 *)
34158   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34159   ;;
34160 esac
34161
34162
34163
34164 LIBS="$PTHREAD_LIB $LIBS"
34165
34166 cat >>confdefs.h <<_ACEOF
34167 #define lld "$lld"
34168 _ACEOF
34169
34170 cat >>confdefs.h <<_ACEOF
34171 #define llu "$llu"
34172 _ACEOF
34173
34174
34175
34176
34177
34178
34179
34180
34181 MCOMMON=./autoconf/Make.common
34182
34183
34184 if test "x${subsysdir}" = "x${sbindir}" ; then
34185    echo " "
34186    echo " "
34187    echo "You have set both --sbindir and --with-subsys-dir"
34188    echo "  equal to: ${subsysdir} "
34189    echo "This is not permitted. Please reconfigure."
34190    echo " "
34191    echo "Aborting configuration ..."
34192    echo " "
34193    echo " "
34194    exit 1
34195 fi
34196
34197 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"
34198
34199 ac_config_commands="$ac_config_commands default"
34200
34201 cat >confcache <<\_ACEOF
34202 # This file is a shell script that caches the results of configure
34203 # tests run on this system so they can be shared between configure
34204 # scripts and configure runs, see configure's option --config-cache.
34205 # It is not useful on other systems.  If it contains results you don't
34206 # want to keep, you may remove or edit it.
34207 #
34208 # config.status only pays attention to the cache file if you give it
34209 # the --recheck option to rerun configure.
34210 #
34211 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34212 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34213 # following values.
34214
34215 _ACEOF
34216
34217 # The following way of writing the cache mishandles newlines in values,
34218 # but we know of no workaround that is simple, portable, and efficient.
34219 # So, we kill variables containing newlines.
34220 # Ultrix sh set writes to stderr and can't be redirected directly,
34221 # and sets the high bit in the cache file unless we assign to the vars.
34222 (
34223   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34224     eval ac_val=\$$ac_var
34225     case $ac_val in #(
34226     *${as_nl}*)
34227       case $ac_var in #(
34228       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34229 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34230       esac
34231       case $ac_var in #(
34232       _ | IFS | as_nl) ;; #(
34233       *) $as_unset $ac_var ;;
34234       esac ;;
34235     esac
34236   done
34237
34238   (set) 2>&1 |
34239     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34240     *${as_nl}ac_space=\ *)
34241       # `set' does not quote correctly, so add quotes (double-quote
34242       # substitution turns \\\\ into \\, and sed turns \\ into \).
34243       sed -n \
34244         "s/'/'\\\\''/g;
34245           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34246       ;; #(
34247     *)
34248       # `set' quotes correctly as required by POSIX, so do not add quotes.
34249       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34250       ;;
34251     esac |
34252     sort
34253 ) |
34254   sed '
34255      /^ac_cv_env_/b end
34256      t clear
34257      :clear
34258      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34259      t end
34260      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34261      :end' >>confcache
34262 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34263   if test -w "$cache_file"; then
34264     test "x$cache_file" != "x/dev/null" &&
34265       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34266 echo "$as_me: updating cache $cache_file" >&6;}
34267     cat confcache >$cache_file
34268   else
34269     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34270 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34271   fi
34272 fi
34273 rm -f confcache
34274
34275 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34276 # Let make expand exec_prefix.
34277 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34278
34279 DEFS=-DHAVE_CONFIG_H
34280
34281 ac_libobjs=
34282 ac_ltlibobjs=
34283 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34284   # 1. Remove the extension, and $U if already installed.
34285   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34286   ac_i=`echo "$ac_i" | sed "$ac_script"`
34287   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34288   #    will be set to the directory where LIBOBJS objects are built.
34289   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34290   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34291 done
34292 LIBOBJS=$ac_libobjs
34293
34294 LTLIBOBJS=$ac_ltlibobjs
34295
34296
34297
34298 : ${CONFIG_STATUS=./config.status}
34299 ac_clean_files_save=$ac_clean_files
34300 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34301 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34302 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34303 cat >$CONFIG_STATUS <<_ACEOF
34304 #! $SHELL
34305 # Generated by $as_me.
34306 # Run this file to recreate the current configuration.
34307 # Compiler output produced by configure, useful for debugging
34308 # configure, is in config.log if it exists.
34309
34310 debug=false
34311 ac_cs_recheck=false
34312 ac_cs_silent=false
34313 SHELL=\${CONFIG_SHELL-$SHELL}
34314 _ACEOF
34315
34316 cat >>$CONFIG_STATUS <<\_ACEOF
34317 ## --------------------- ##
34318 ## M4sh Initialization.  ##
34319 ## --------------------- ##
34320
34321 # Be Bourne compatible
34322 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34323   emulate sh
34324   NULLCMD=:
34325   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34326   # is contrary to our usage.  Disable this feature.
34327   alias -g '${1+"$@"}'='"$@"'
34328   setopt NO_GLOB_SUBST
34329 else
34330   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34331 fi
34332 BIN_SH=xpg4; export BIN_SH # for Tru64
34333 DUALCASE=1; export DUALCASE # for MKS sh
34334
34335
34336 # PATH needs CR
34337 # Avoid depending upon Character Ranges.
34338 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34339 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34340 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34341 as_cr_digits='0123456789'
34342 as_cr_alnum=$as_cr_Letters$as_cr_digits
34343
34344 # The user is always right.
34345 if test "${PATH_SEPARATOR+set}" != set; then
34346   echo "#! /bin/sh" >conf$$.sh
34347   echo  "exit 0"   >>conf$$.sh
34348   chmod +x conf$$.sh
34349   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34350     PATH_SEPARATOR=';'
34351   else
34352     PATH_SEPARATOR=:
34353   fi
34354   rm -f conf$$.sh
34355 fi
34356
34357 # Support unset when possible.
34358 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34359   as_unset=unset
34360 else
34361   as_unset=false
34362 fi
34363
34364
34365 # IFS
34366 # We need space, tab and new line, in precisely that order.  Quoting is
34367 # there to prevent editors from complaining about space-tab.
34368 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34369 # splitting by setting IFS to empty value.)
34370 as_nl='
34371 '
34372 IFS=" ""        $as_nl"
34373
34374 # Find who we are.  Look in the path if we contain no directory separator.
34375 case $0 in
34376   *[\\/]* ) as_myself=$0 ;;
34377   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34378 for as_dir in $PATH
34379 do
34380   IFS=$as_save_IFS
34381   test -z "$as_dir" && as_dir=.
34382   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34383 done
34384 IFS=$as_save_IFS
34385
34386      ;;
34387 esac
34388 # We did not find ourselves, most probably we were run as `sh COMMAND'
34389 # in which case we are not to be found in the path.
34390 if test "x$as_myself" = x; then
34391   as_myself=$0
34392 fi
34393 if test ! -f "$as_myself"; then
34394   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34395   { (exit 1); exit 1; }
34396 fi
34397
34398 # Work around bugs in pre-3.0 UWIN ksh.
34399 for as_var in ENV MAIL MAILPATH
34400 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34401 done
34402 PS1='$ '
34403 PS2='> '
34404 PS4='+ '
34405
34406 # NLS nuisances.
34407 for as_var in \
34408   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34409   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34410   LC_TELEPHONE LC_TIME
34411 do
34412   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34413     eval $as_var=C; export $as_var
34414   else
34415     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34416   fi
34417 done
34418
34419 # Required to use basename.
34420 if expr a : '\(a\)' >/dev/null 2>&1 &&
34421    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34422   as_expr=expr
34423 else
34424   as_expr=false
34425 fi
34426
34427 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34428   as_basename=basename
34429 else
34430   as_basename=false
34431 fi
34432
34433
34434 # Name of the executable.
34435 as_me=`$as_basename -- "$0" ||
34436 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34437          X"$0" : 'X\(//\)$' \| \
34438          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34439 echo X/"$0" |
34440     sed '/^.*\/\([^/][^/]*\)\/*$/{
34441             s//\1/
34442             q
34443           }
34444           /^X\/\(\/\/\)$/{
34445             s//\1/
34446             q
34447           }
34448           /^X\/\(\/\).*/{
34449             s//\1/
34450             q
34451           }
34452           s/.*/./; q'`
34453
34454 # CDPATH.
34455 $as_unset CDPATH
34456
34457
34458
34459   as_lineno_1=$LINENO
34460   as_lineno_2=$LINENO
34461   test "x$as_lineno_1" != "x$as_lineno_2" &&
34462   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34463
34464   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34465   # uniformly replaced by the line number.  The first 'sed' inserts a
34466   # line-number line after each line using $LINENO; the second 'sed'
34467   # does the real work.  The second script uses 'N' to pair each
34468   # line-number line with the line containing $LINENO, and appends
34469   # trailing '-' during substitution so that $LINENO is not a special
34470   # case at line end.
34471   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34472   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34473   # E. McMahon (1931-1989) for sed's syntax.  :-)
34474   sed -n '
34475     p
34476     /[$]LINENO/=
34477   ' <$as_myself |
34478     sed '
34479       s/[$]LINENO.*/&-/
34480       t lineno
34481       b
34482       :lineno
34483       N
34484       :loop
34485       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34486       t loop
34487       s/-\n.*//
34488     ' >$as_me.lineno &&
34489   chmod +x "$as_me.lineno" ||
34490     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34491    { (exit 1); exit 1; }; }
34492
34493   # Don't try to exec as it changes $[0], causing all sort of problems
34494   # (the dirname of $[0] is not the place where we might find the
34495   # original and so on.  Autoconf is especially sensitive to this).
34496   . "./$as_me.lineno"
34497   # Exit status is that of the last command.
34498   exit
34499 }
34500
34501
34502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34503   as_dirname=dirname
34504 else
34505   as_dirname=false
34506 fi
34507
34508 ECHO_C= ECHO_N= ECHO_T=
34509 case `echo -n x` in
34510 -n*)
34511   case `echo 'x\c'` in
34512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34513   *)   ECHO_C='\c';;
34514   esac;;
34515 *)
34516   ECHO_N='-n';;
34517 esac
34518
34519 if expr a : '\(a\)' >/dev/null 2>&1 &&
34520    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34521   as_expr=expr
34522 else
34523   as_expr=false
34524 fi
34525
34526 rm -f conf$$ conf$$.exe conf$$.file
34527 if test -d conf$$.dir; then
34528   rm -f conf$$.dir/conf$$.file
34529 else
34530   rm -f conf$$.dir
34531   mkdir conf$$.dir
34532 fi
34533 echo >conf$$.file
34534 if ln -s conf$$.file conf$$ 2>/dev/null; then
34535   as_ln_s='ln -s'
34536   # ... but there are two gotchas:
34537   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34538   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34539   # In both cases, we have to default to `cp -p'.
34540   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34541     as_ln_s='cp -p'
34542 elif ln conf$$.file conf$$ 2>/dev/null; then
34543   as_ln_s=ln
34544 else
34545   as_ln_s='cp -p'
34546 fi
34547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34548 rmdir conf$$.dir 2>/dev/null
34549
34550 if mkdir -p . 2>/dev/null; then
34551   as_mkdir_p=:
34552 else
34553   test -d ./-p && rmdir ./-p
34554   as_mkdir_p=false
34555 fi
34556
34557 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34558 # systems may use methods other than mode bits to determine executability.
34559 cat >conf$$.file <<_ASEOF
34560 #! /bin/sh
34561 exit 0
34562 _ASEOF
34563 chmod +x conf$$.file
34564 if test -x conf$$.file >/dev/null 2>&1; then
34565   as_executable_p="test -x"
34566 else
34567   as_executable_p=:
34568 fi
34569 rm -f conf$$.file
34570
34571 # Sed expression to map a string onto a valid CPP name.
34572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34573
34574 # Sed expression to map a string onto a valid variable name.
34575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34576
34577
34578 exec 6>&1
34579
34580 # Save the log message, to keep $[0] and so on meaningful, and to
34581 # report actual input values of CONFIG_FILES etc. instead of their
34582 # values after options handling.
34583 ac_log="
34584 This file was extended by $as_me, which was
34585 generated by GNU Autoconf 2.60.  Invocation command line was
34586
34587   CONFIG_FILES    = $CONFIG_FILES
34588   CONFIG_HEADERS  = $CONFIG_HEADERS
34589   CONFIG_LINKS    = $CONFIG_LINKS
34590   CONFIG_COMMANDS = $CONFIG_COMMANDS
34591   $ $0 $@
34592
34593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34594 "
34595
34596 _ACEOF
34597
34598 cat >>$CONFIG_STATUS <<_ACEOF
34599 # Files that config.status was made for.
34600 config_files="$ac_config_files"
34601 config_headers="$ac_config_headers"
34602 config_commands="$ac_config_commands"
34603
34604 _ACEOF
34605
34606 cat >>$CONFIG_STATUS <<\_ACEOF
34607 ac_cs_usage="\
34608 \`$as_me' instantiates files from templates according to the
34609 current configuration.
34610
34611 Usage: $0 [OPTIONS] [FILE]...
34612
34613   -h, --help       print this help, then exit
34614   -V, --version    print version number, then exit
34615   -q, --quiet      do not print progress messages
34616   -d, --debug      don't remove temporary files
34617       --recheck    update $as_me by reconfiguring in the same conditions
34618   --file=FILE[:TEMPLATE]
34619                    instantiate the configuration file FILE
34620   --header=FILE[:TEMPLATE]
34621                    instantiate the configuration header FILE
34622
34623 Configuration files:
34624 $config_files
34625
34626 Configuration headers:
34627 $config_headers
34628
34629 Configuration commands:
34630 $config_commands
34631
34632 Report bugs to <bug-autoconf@gnu.org>."
34633
34634 _ACEOF
34635 cat >>$CONFIG_STATUS <<_ACEOF
34636 ac_cs_version="\\
34637 config.status
34638 configured by $0, generated by GNU Autoconf 2.60,
34639   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34640
34641 Copyright (C) 2006 Free Software Foundation, Inc.
34642 This config.status script is free software; the Free Software Foundation
34643 gives unlimited permission to copy, distribute and modify it."
34644
34645 ac_pwd='$ac_pwd'
34646 srcdir='$srcdir'
34647 INSTALL='$INSTALL'
34648 _ACEOF
34649
34650 cat >>$CONFIG_STATUS <<\_ACEOF
34651 # If no file are specified by the user, then we need to provide default
34652 # value.  By we need to know if files were specified by the user.
34653 ac_need_defaults=:
34654 while test $# != 0
34655 do
34656   case $1 in
34657   --*=*)
34658     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34659     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34660     ac_shift=:
34661     ;;
34662   *)
34663     ac_option=$1
34664     ac_optarg=$2
34665     ac_shift=shift
34666     ;;
34667   esac
34668
34669   case $ac_option in
34670   # Handling of the options.
34671   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34672     ac_cs_recheck=: ;;
34673   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34674     echo "$ac_cs_version"; exit ;;
34675   --debug | --debu | --deb | --de | --d | -d )
34676     debug=: ;;
34677   --file | --fil | --fi | --f )
34678     $ac_shift
34679     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34680     ac_need_defaults=false;;
34681   --header | --heade | --head | --hea )
34682     $ac_shift
34683     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34684     ac_need_defaults=false;;
34685   --he | --h)
34686     # Conflict between --help and --header
34687     { echo "$as_me: error: ambiguous option: $1
34688 Try \`$0 --help' for more information." >&2
34689    { (exit 1); exit 1; }; };;
34690   --help | --hel | -h )
34691     echo "$ac_cs_usage"; exit ;;
34692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34693   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34694     ac_cs_silent=: ;;
34695
34696   # This is an error.
34697   -*) { echo "$as_me: error: unrecognized option: $1
34698 Try \`$0 --help' for more information." >&2
34699    { (exit 1); exit 1; }; } ;;
34700
34701   *) ac_config_targets="$ac_config_targets $1"
34702      ac_need_defaults=false ;;
34703
34704   esac
34705   shift
34706 done
34707
34708 ac_configure_extra_args=
34709
34710 if $ac_cs_silent; then
34711   exec 6>/dev/null
34712   ac_configure_extra_args="$ac_configure_extra_args --silent"
34713 fi
34714
34715 _ACEOF
34716 cat >>$CONFIG_STATUS <<_ACEOF
34717 if \$ac_cs_recheck; then
34718   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34719   CONFIG_SHELL=$SHELL
34720   export CONFIG_SHELL
34721   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34722 fi
34723
34724 _ACEOF
34725 cat >>$CONFIG_STATUS <<\_ACEOF
34726 exec 5>>config.log
34727 {
34728   echo
34729   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34730 ## Running $as_me. ##
34731 _ASBOX
34732   echo "$ac_log"
34733 } >&5
34734
34735 _ACEOF
34736 cat >>$CONFIG_STATUS <<_ACEOF
34737 #
34738 # INIT-COMMANDS
34739 #
34740 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34741     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34742     # from automake.
34743     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34744     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34745     LINGUAS="${LINGUAS-%UNSET%}"
34746
34747
34748 _ACEOF
34749
34750 cat >>$CONFIG_STATUS <<\_ACEOF
34751
34752 # Handling of arguments.
34753 for ac_config_target in $ac_config_targets
34754 do
34755   case $ac_config_target in
34756     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34757     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34758     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34759     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34760     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34761     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34762     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34763     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34764     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34765     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34766     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34767     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34768     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34769     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34770     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34771     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34772     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34773     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34774     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34775     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34776     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34777     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34778     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34779     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34780     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34781     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34782     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34783     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34784     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34785     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34786     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34787     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34788     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34789     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34790     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34791     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34792     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34793     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34794     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34795     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34796     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34797     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34798     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34799     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34800     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34801     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34802     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34803     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34804     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34805     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34806     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34807     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34808     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34809     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34810     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34811     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34812     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34813     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34814     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34815     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34816     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34817     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34818     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34819     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34820     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34821     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34822     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34823     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34824     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34825     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34826     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34827     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34828     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34829     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34830     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34831     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34832     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34833     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34834     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34835     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34836     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34837     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34838     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34839     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34840     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34841     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34842     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34843     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34844     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34845     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34846     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34847     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34848     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34849     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34850     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34851     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34852     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34853     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34854     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34855     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34856     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34857     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34858     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34859     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34860     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34861     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34862
34863   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34864 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34865    { (exit 1); exit 1; }; };;
34866   esac
34867 done
34868
34869
34870 # If the user did not use the arguments to specify the items to instantiate,
34871 # then the envvar interface is used.  Set only those that are not.
34872 # We use the long form for the default assignment because of an extremely
34873 # bizarre bug on SunOS 4.1.3.
34874 if $ac_need_defaults; then
34875   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34876   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34877   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34878 fi
34879
34880 # Have a temporary directory for convenience.  Make it in the build tree
34881 # simply because there is no reason against having it here, and in addition,
34882 # creating and moving files from /tmp can sometimes cause problems.
34883 # Hook for its removal unless debugging.
34884 # Note that there is a small window in which the directory will not be cleaned:
34885 # after its creation but before its name has been assigned to `$tmp'.
34886 $debug ||
34887 {
34888   tmp=
34889   trap 'exit_status=$?
34890   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34891 ' 0
34892   trap '{ (exit 1); exit 1; }' 1 2 13 15
34893 }
34894 # Create a (secure) tmp directory for tmp files.
34895
34896 {
34897   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34898   test -n "$tmp" && test -d "$tmp"
34899 }  ||
34900 {
34901   tmp=./conf$$-$RANDOM
34902   (umask 077 && mkdir "$tmp")
34903 } ||
34904 {
34905    echo "$me: cannot create a temporary directory in ." >&2
34906    { (exit 1); exit 1; }
34907 }
34908
34909 #
34910 # Set up the sed scripts for CONFIG_FILES section.
34911 #
34912
34913 # No need to generate the scripts if there are no CONFIG_FILES.
34914 # This happens for instance when ./config.status config.h
34915 if test -n "$CONFIG_FILES"; then
34916
34917 _ACEOF
34918
34919 # Create sed commands to just substitute file output variables.
34920
34921 # Remaining file output variables are in a fragment that also has non-file
34922 # output varibles.
34923
34924
34925
34926 ac_delim='%!_!# '
34927 for ac_last_try in false false false false false :; do
34928   cat >conf$$subs.sed <<_ACEOF
34929 SHELL!$SHELL$ac_delim
34930 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34931 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34932 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34933 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34934 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34935 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34936 exec_prefix!$exec_prefix$ac_delim
34937 prefix!$prefix$ac_delim
34938 program_transform_name!$program_transform_name$ac_delim
34939 bindir!$bindir$ac_delim
34940 sbindir!$sbindir$ac_delim
34941 libexecdir!$libexecdir$ac_delim
34942 datarootdir!$datarootdir$ac_delim
34943 datadir!$datadir$ac_delim
34944 sysconfdir!$sysconfdir$ac_delim
34945 sharedstatedir!$sharedstatedir$ac_delim
34946 localstatedir!$localstatedir$ac_delim
34947 includedir!$includedir$ac_delim
34948 oldincludedir!$oldincludedir$ac_delim
34949 docdir!$docdir$ac_delim
34950 infodir!$infodir$ac_delim
34951 htmldir!$htmldir$ac_delim
34952 dvidir!$dvidir$ac_delim
34953 pdfdir!$pdfdir$ac_delim
34954 psdir!$psdir$ac_delim
34955 libdir!$libdir$ac_delim
34956 localedir!$localedir$ac_delim
34957 mandir!$mandir$ac_delim
34958 DEFS!$DEFS$ac_delim
34959 ECHO_C!$ECHO_C$ac_delim
34960 ECHO_N!$ECHO_N$ac_delim
34961 ECHO_T!$ECHO_T$ac_delim
34962 LIBS!$LIBS$ac_delim
34963 build_alias!$build_alias$ac_delim
34964 host_alias!$host_alias$ac_delim
34965 target_alias!$target_alias$ac_delim
34966 BUILD_DIR!$BUILD_DIR$ac_delim
34967 TOP_DIR!$TOP_DIR$ac_delim
34968 TRUEPRG!$TRUEPRG$ac_delim
34969 FALSEPRG!$FALSEPRG$ac_delim
34970 VERSION!$VERSION$ac_delim
34971 DATE!$DATE$ac_delim
34972 LSMDATE!$LSMDATE$ac_delim
34973 CC!$CC$ac_delim
34974 CFLAGS!$CFLAGS$ac_delim
34975 LDFLAGS!$LDFLAGS$ac_delim
34976 CPPFLAGS!$CPPFLAGS$ac_delim
34977 ac_ct_CC!$ac_ct_CC$ac_delim
34978 EXEEXT!$EXEEXT$ac_delim
34979 OBJEXT!$OBJEXT$ac_delim
34980 CXX!$CXX$ac_delim
34981 CXXFLAGS!$CXXFLAGS$ac_delim
34982 ac_ct_CXX!$ac_ct_CXX$ac_delim
34983 CPP!$CPP$ac_delim
34984 GREP!$GREP$ac_delim
34985 EGREP!$EGREP$ac_delim
34986 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34987 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34988 INSTALL_DATA!$INSTALL_DATA$ac_delim
34989 RANLIB!$RANLIB$ac_delim
34990 MV!$MV$ac_delim
34991 RM!$RM$ac_delim
34992 CP!$CP$ac_delim
34993 SED!$SED$ac_delim
34994 ECHO!$ECHO$ac_delim
34995 CMP!$CMP$ac_delim
34996 TBL!$TBL$ac_delim
34997 AR!$AR$ac_delim
34998 OPENSSL!$OPENSSL$ac_delim
34999 MTX!$MTX$ac_delim
35000 DD!$DD$ac_delim
35001 MKISOFS!$MKISOFS$ac_delim
35002 PYTHON!$PYTHON$ac_delim
35003 GROWISOFS!$GROWISOFS$ac_delim
35004 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
35005 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
35006 PKGCONFIG!$PKGCONFIG$ac_delim
35007 WXCONFIG!$WXCONFIG$ac_delim
35008 WXFLAGS!$WXFLAGS$ac_delim
35009 CDRECORD!$CDRECORD$ac_delim
35010 PIDOF!$PIDOF$ac_delim
35011 AWK!$AWK$ac_delim
35012 ARFLAGS!$ARFLAGS$ac_delim
35013 MAKE_SHELL!$MAKE_SHELL$ac_delim
35014 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
35015 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
35016 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
35017 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
35018 build!$build$ac_delim
35019 build_cpu!$build_cpu$ac_delim
35020 build_vendor!$build_vendor$ac_delim
35021 build_os!$build_os$ac_delim
35022 host!$host$ac_delim
35023 _ACEOF
35024
35025   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
35026     break
35027   elif $ac_last_try; then
35028     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35029 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35030    { (exit 1); exit 1; }; }
35031   else
35032     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35033   fi
35034 done
35035
35036 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35037 if test -n "$ac_eof"; then
35038   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35039   ac_eof=`expr $ac_eof + 1`
35040 fi
35041
35042 cat >>$CONFIG_STATUS <<_ACEOF
35043 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35044 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35045 /^[      ]*@MCOMMON@[    ]*$/{
35046 r $MCOMMON
35047 d
35048 }
35049 _ACEOF
35050 sed '
35051 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35052 s/^/s,@/; s/!/@,|#_!!_#|/
35053 :n
35054 t n
35055 s/'"$ac_delim"'$/,g/; t
35056 s/$/\\/; p
35057 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35058 ' >>$CONFIG_STATUS <conf$$subs.sed
35059 rm -f conf$$subs.sed
35060 cat >>$CONFIG_STATUS <<_ACEOF
35061 CEOF$ac_eof
35062 _ACEOF
35063
35064
35065 ac_delim='%!_!# '
35066 for ac_last_try in false false false false false :; do
35067   cat >conf$$subs.sed <<_ACEOF
35068 host_cpu!$host_cpu$ac_delim
35069 host_vendor!$host_vendor$ac_delim
35070 host_os!$host_os$ac_delim
35071 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35072 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35073 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35074 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35075 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35076 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35077 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35078 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35079 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35080 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35081 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35082 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35083 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35084 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35085 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35086 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35087 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35088 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35089 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35090 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35091 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35092 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35093 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35094 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35095 SET_MAKE!$SET_MAKE$ac_delim
35096 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35097 USE_NLS!$USE_NLS$ac_delim
35098 MSGFMT!$MSGFMT$ac_delim
35099 GMSGFMT!$GMSGFMT$ac_delim
35100 XGETTEXT!$XGETTEXT$ac_delim
35101 MSGMERGE!$MSGMERGE$ac_delim
35102 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35103 LIBICONV!$LIBICONV$ac_delim
35104 LTLIBICONV!$LTLIBICONV$ac_delim
35105 INTLLIBS!$INTLLIBS$ac_delim
35106 LIBINTL!$LIBINTL$ac_delim
35107 LTLIBINTL!$LTLIBINTL$ac_delim
35108 POSUB!$POSUB$ac_delim
35109 GLIBC2!$GLIBC2$ac_delim
35110 ALLOCA!$ALLOCA$ac_delim
35111 GLIBC21!$GLIBC21$ac_delim
35112 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35113 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35114 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35115 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35116 INTLBISON!$INTLBISON$ac_delim
35117 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35118 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35119 CATOBJEXT!$CATOBJEXT$ac_delim
35120 DATADIRNAME!$DATADIRNAME$ac_delim
35121 INSTOBJEXT!$INSTOBJEXT$ac_delim
35122 GENCAT!$GENCAT$ac_delim
35123 INTLOBJS!$INTLOBJS$ac_delim
35124 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35125 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35126 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35127 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35128 GNOME_LIBS!$GNOME_LIBS$ac_delim
35129 GNOME_DIR!$GNOME_DIR$ac_delim
35130 BAT_DIR!$BAT_DIR$ac_delim
35131 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35132 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35133 WX_DIR!$WX_DIR$ac_delim
35134 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35135 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35136 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35137 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35138 STATIC_FD!$STATIC_FD$ac_delim
35139 STATIC_SD!$STATIC_SD$ac_delim
35140 STATIC_DIR!$STATIC_DIR$ac_delim
35141 STATIC_CONS!$STATIC_CONS$ac_delim
35142 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35143 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35144 ALL_DIRS!$ALL_DIRS$ac_delim
35145 DIRD_DIR!$DIRD_DIR$ac_delim
35146 DIR_TOOLS!$DIR_TOOLS$ac_delim
35147 STORED_DIR!$STORED_DIR$ac_delim
35148 CONS_INC!$CONS_INC$ac_delim
35149 CONS_OBJ!$CONS_OBJ$ac_delim
35150 CONS_SRC!$CONS_SRC$ac_delim
35151 CONS_LIBS!$CONS_LIBS$ac_delim
35152 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35153 READLINE_SRC!$READLINE_SRC$ac_delim
35154 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35155 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35156 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35157 OPENSSL_INC!$OPENSSL_INC$ac_delim
35158 working_dir!$working_dir$ac_delim
35159 scriptdir!$scriptdir$ac_delim
35160 dump_email!$dump_email$ac_delim
35161 job_email!$job_email$ac_delim
35162 smtp_host!$smtp_host$ac_delim
35163 piddir!$piddir$ac_delim
35164 subsysdir!$subsysdir$ac_delim
35165 _ACEOF
35166
35167   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35168     break
35169   elif $ac_last_try; then
35170     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35171 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35172    { (exit 1); exit 1; }; }
35173   else
35174     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35175   fi
35176 done
35177
35178 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35179 if test -n "$ac_eof"; then
35180   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35181   ac_eof=`expr $ac_eof + 1`
35182 fi
35183
35184 cat >>$CONFIG_STATUS <<_ACEOF
35185 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35187 _ACEOF
35188 sed '
35189 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35190 s/^/s,@/; s/!/@,|#_!!_#|/
35191 :n
35192 t n
35193 s/'"$ac_delim"'$/,g/; t
35194 s/$/\\/; p
35195 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35196 ' >>$CONFIG_STATUS <conf$$subs.sed
35197 rm -f conf$$subs.sed
35198 cat >>$CONFIG_STATUS <<_ACEOF
35199 CEOF$ac_eof
35200 _ACEOF
35201
35202
35203 ac_delim='%!_!# '
35204 for ac_last_try in false false false false false :; do
35205   cat >conf$$subs.sed <<_ACEOF
35206 baseport!$baseport$ac_delim
35207 dir_port!$dir_port$ac_delim
35208 fd_port!$fd_port$ac_delim
35209 sd_port!$sd_port$ac_delim
35210 dir_password!$dir_password$ac_delim
35211 fd_password!$fd_password$ac_delim
35212 sd_password!$sd_password$ac_delim
35213 mon_dir_password!$mon_dir_password$ac_delim
35214 mon_fd_password!$mon_fd_password$ac_delim
35215 mon_sd_password!$mon_sd_password$ac_delim
35216 db_name!$db_name$ac_delim
35217 db_user!$db_user$ac_delim
35218 dir_user!$dir_user$ac_delim
35219 dir_group!$dir_group$ac_delim
35220 sd_user!$sd_user$ac_delim
35221 sd_group!$sd_group$ac_delim
35222 fd_user!$fd_user$ac_delim
35223 fd_group!$fd_group$ac_delim
35224 SBINPERM!$SBINPERM$ac_delim
35225 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35226 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35227 SQL_BINDIR!$SQL_BINDIR$ac_delim
35228 cats!$cats$ac_delim
35229 DB_TYPE!$DB_TYPE$ac_delim
35230 GETCONF!$GETCONF$ac_delim
35231 XMKMF!$XMKMF$ac_delim
35232 X_CFLAGS!$X_CFLAGS$ac_delim
35233 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35234 X_LIBS!$X_LIBS$ac_delim
35235 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35236 LIBOBJS!$LIBOBJS$ac_delim
35237 FDLIBS!$FDLIBS$ac_delim
35238 DEBUG!$DEBUG$ac_delim
35239 DINCLUDE!$DINCLUDE$ac_delim
35240 DLIB!$DLIB$ac_delim
35241 DB_LIBS!$DB_LIBS$ac_delim
35242 WCFLAGS!$WCFLAGS$ac_delim
35243 WLDFLAGS!$WLDFLAGS$ac_delim
35244 WRAPLIBS!$WRAPLIBS$ac_delim
35245 OBJLIST!$OBJLIST$ac_delim
35246 hostname!$hostname$ac_delim
35247 TAPEDRIVE!$TAPEDRIVE$ac_delim
35248 PSCMD!$PSCMD$ac_delim
35249 WIN32!$WIN32$ac_delim
35250 MACOSX!$MACOSX$ac_delim
35251 DISTNAME!$DISTNAME$ac_delim
35252 DISTVER!$DISTVER$ac_delim
35253 LTLIBOBJS!$LTLIBOBJS$ac_delim
35254 _ACEOF
35255
35256   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
35257     break
35258   elif $ac_last_try; then
35259     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35260 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35261    { (exit 1); exit 1; }; }
35262   else
35263     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35264   fi
35265 done
35266
35267 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35268 if test -n "$ac_eof"; then
35269   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35270   ac_eof=`expr $ac_eof + 1`
35271 fi
35272
35273 cat >>$CONFIG_STATUS <<_ACEOF
35274 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35275 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35276 _ACEOF
35277 sed '
35278 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35279 s/^/s,@/; s/!/@,|#_!!_#|/
35280 :n
35281 t n
35282 s/'"$ac_delim"'$/,g/; t
35283 s/$/\\/; p
35284 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35285 ' >>$CONFIG_STATUS <conf$$subs.sed
35286 rm -f conf$$subs.sed
35287 cat >>$CONFIG_STATUS <<_ACEOF
35288 :end
35289 s/|#_!!_#|//g
35290 CEOF$ac_eof
35291 _ACEOF
35292
35293
35294 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35295 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35296 # trailing colons and then remove the whole line if VPATH becomes empty
35297 # (actually we leave an empty line to preserve line numbers).
35298 if test "x$srcdir" = x.; then
35299   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35300 s/:*\$(srcdir):*/:/
35301 s/:*\${srcdir}:*/:/
35302 s/:*@srcdir@:*/:/
35303 s/^\([^=]*=[     ]*\):*/\1/
35304 s/:*$//
35305 s/^[^=]*=[       ]*$//
35306 }'
35307 fi
35308
35309 cat >>$CONFIG_STATUS <<\_ACEOF
35310 fi # test -n "$CONFIG_FILES"
35311
35312
35313 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35314 do
35315   case $ac_tag in
35316   :[FHLC]) ac_mode=$ac_tag; continue;;
35317   esac
35318   case $ac_mode$ac_tag in
35319   :[FHL]*:*);;
35320   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35321 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35322    { (exit 1); exit 1; }; };;
35323   :[FH]-) ac_tag=-:-;;
35324   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35325   esac
35326   ac_save_IFS=$IFS
35327   IFS=:
35328   set x $ac_tag
35329   IFS=$ac_save_IFS
35330   shift
35331   ac_file=$1
35332   shift
35333
35334   case $ac_mode in
35335   :L) ac_source=$1;;
35336   :[FH])
35337     ac_file_inputs=
35338     for ac_f
35339     do
35340       case $ac_f in
35341       -) ac_f="$tmp/stdin";;
35342       *) # Look for the file first in the build tree, then in the source tree
35343          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35344          # because $ac_f cannot contain `:'.
35345          test -f "$ac_f" ||
35346            case $ac_f in
35347            [\\/$]*) false;;
35348            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35349            esac ||
35350            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35351 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35352    { (exit 1); exit 1; }; };;
35353       esac
35354       ac_file_inputs="$ac_file_inputs $ac_f"
35355     done
35356
35357     # Let's still pretend it is `configure' which instantiates (i.e., don't
35358     # use $as_me), people would be surprised to read:
35359     #    /* config.h.  Generated by config.status.  */
35360     configure_input="Generated from "`IFS=:
35361           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35362     if test x"$ac_file" != x-; then
35363       configure_input="$ac_file.  $configure_input"
35364       { echo "$as_me:$LINENO: creating $ac_file" >&5
35365 echo "$as_me: creating $ac_file" >&6;}
35366     fi
35367
35368     case $ac_tag in
35369     *:-:* | *:-) cat >"$tmp/stdin";;
35370     esac
35371     ;;
35372   esac
35373
35374   ac_dir=`$as_dirname -- "$ac_file" ||
35375 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35376          X"$ac_file" : 'X\(//\)[^/]' \| \
35377          X"$ac_file" : 'X\(//\)$' \| \
35378          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35379 echo X"$ac_file" |
35380     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35381             s//\1/
35382             q
35383           }
35384           /^X\(\/\/\)[^/].*/{
35385             s//\1/
35386             q
35387           }
35388           /^X\(\/\/\)$/{
35389             s//\1/
35390             q
35391           }
35392           /^X\(\/\).*/{
35393             s//\1/
35394             q
35395           }
35396           s/.*/./; q'`
35397   { as_dir="$ac_dir"
35398   case $as_dir in #(
35399   -*) as_dir=./$as_dir;;
35400   esac
35401   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35402     as_dirs=
35403     while :; do
35404       case $as_dir in #(
35405       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35406       *) as_qdir=$as_dir;;
35407       esac
35408       as_dirs="'$as_qdir' $as_dirs"
35409       as_dir=`$as_dirname -- "$as_dir" ||
35410 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35411          X"$as_dir" : 'X\(//\)[^/]' \| \
35412          X"$as_dir" : 'X\(//\)$' \| \
35413          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35414 echo X"$as_dir" |
35415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35416             s//\1/
35417             q
35418           }
35419           /^X\(\/\/\)[^/].*/{
35420             s//\1/
35421             q
35422           }
35423           /^X\(\/\/\)$/{
35424             s//\1/
35425             q
35426           }
35427           /^X\(\/\).*/{
35428             s//\1/
35429             q
35430           }
35431           s/.*/./; q'`
35432       test -d "$as_dir" && break
35433     done
35434     test -z "$as_dirs" || eval "mkdir $as_dirs"
35435   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35436 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35437    { (exit 1); exit 1; }; }; }
35438   ac_builddir=.
35439
35440 case "$ac_dir" in
35441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35442 *)
35443   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35444   # A ".." for each directory in $ac_dir_suffix.
35445   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35446   case $ac_top_builddir_sub in
35447   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35448   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35449   esac ;;
35450 esac
35451 ac_abs_top_builddir=$ac_pwd
35452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35453 # for backward compatibility:
35454 ac_top_builddir=$ac_top_build_prefix
35455
35456 case $srcdir in
35457   .)  # We are building in place.
35458     ac_srcdir=.
35459     ac_top_srcdir=$ac_top_builddir_sub
35460     ac_abs_top_srcdir=$ac_pwd ;;
35461   [\\/]* | ?:[\\/]* )  # Absolute name.
35462     ac_srcdir=$srcdir$ac_dir_suffix;
35463     ac_top_srcdir=$srcdir
35464     ac_abs_top_srcdir=$srcdir ;;
35465   *) # Relative name.
35466     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35467     ac_top_srcdir=$ac_top_build_prefix$srcdir
35468     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35469 esac
35470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35471
35472
35473   case $ac_mode in
35474   :F)
35475   #
35476   # CONFIG_FILE
35477   #
35478
35479   case $INSTALL in
35480   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35481   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35482   esac
35483 _ACEOF
35484
35485 cat >>$CONFIG_STATUS <<\_ACEOF
35486 # If the template does not know about datarootdir, expand it.
35487 # FIXME: This hack should be removed a few years after 2.60.
35488 ac_datarootdir_hack=; ac_datarootdir_seen=
35489
35490 case `sed -n '/datarootdir/ {
35491   p
35492   q
35493 }
35494 /@datadir@/p
35495 /@docdir@/p
35496 /@infodir@/p
35497 /@localedir@/p
35498 /@mandir@/p
35499 ' $ac_file_inputs` in
35500 *datarootdir*) ac_datarootdir_seen=yes;;
35501 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35502   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35503 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35504 _ACEOF
35505 cat >>$CONFIG_STATUS <<_ACEOF
35506   ac_datarootdir_hack='
35507   s&@datadir@&$datadir&g
35508   s&@docdir@&$docdir&g
35509   s&@infodir@&$infodir&g
35510   s&@localedir@&$localedir&g
35511   s&@mandir@&$mandir&g
35512     s&\\\${datarootdir}&$datarootdir&g' ;;
35513 esac
35514 _ACEOF
35515
35516 # Neutralize VPATH when `$srcdir' = `.'.
35517 # Shell code in configure.ac might set extrasub.
35518 # FIXME: do we really want to maintain this feature?
35519 cat >>$CONFIG_STATUS <<_ACEOF
35520   sed "$ac_vpsub
35521 $extrasub
35522 _ACEOF
35523 cat >>$CONFIG_STATUS <<\_ACEOF
35524 :t
35525 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35526 s&@configure_input@&$configure_input&;t t
35527 s&@top_builddir@&$ac_top_builddir_sub&;t t
35528 s&@srcdir@&$ac_srcdir&;t t
35529 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35530 s&@top_srcdir@&$ac_top_srcdir&;t t
35531 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35532 s&@builddir@&$ac_builddir&;t t
35533 s&@abs_builddir@&$ac_abs_builddir&;t t
35534 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35535 s&@INSTALL@&$ac_INSTALL&;t t
35536 $ac_datarootdir_hack
35537 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35538
35539 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35540   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35541   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35542   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35543 which seems to be undefined.  Please make sure it is defined." >&5
35544 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35545 which seems to be undefined.  Please make sure it is defined." >&2;}
35546
35547   rm -f "$tmp/stdin"
35548   case $ac_file in
35549   -) cat "$tmp/out"; rm -f "$tmp/out";;
35550   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35551   esac
35552  ;;
35553   :H)
35554   #
35555   # CONFIG_HEADER
35556   #
35557 _ACEOF
35558
35559 # Transform confdefs.h into a sed script `conftest.defines', that
35560 # substitutes the proper values into config.h.in to produce config.h.
35561 rm -f conftest.defines conftest.tail
35562 # First, append a space to every undef/define line, to ease matching.
35563 echo 's/$/ /' >conftest.defines
35564 # Then, protect against being on the right side of a sed subst, or in
35565 # an unquoted here document, in config.status.  If some macros were
35566 # called several times there might be several #defines for the same
35567 # symbol, which is useless.  But do not sort them, since the last
35568 # AC_DEFINE must be honored.
35569 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35570 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35571 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35572 # PARAMS is the parameter list in the macro definition--in most cases, it's
35573 # just an empty string.
35574 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35575 ac_dB='\\)[      (].*,\\1define\\2'
35576 ac_dC=' '
35577 ac_dD=' ,'
35578
35579 uniq confdefs.h |
35580   sed -n '
35581         t rset
35582         :rset
35583         s/^[     ]*#[    ]*define[       ][      ]*//
35584         t ok
35585         d
35586         :ok
35587         s/[\\&,]/\\&/g
35588         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35589         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35590   ' >>conftest.defines
35591
35592 # Remove the space that was appended to ease matching.
35593 # Then replace #undef with comments.  This is necessary, for
35594 # example, in the case of _POSIX_SOURCE, which is predefined and required
35595 # on some systems where configure will not decide to define it.
35596 # (The regexp can be short, since the line contains either #define or #undef.)
35597 echo 's/ $//
35598 s,^[     #]*u.*,/* & */,' >>conftest.defines
35599
35600 # Break up conftest.defines:
35601 ac_max_sed_lines=50
35602
35603 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35604 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35605 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35606 # et cetera.
35607 ac_in='$ac_file_inputs'
35608 ac_out='"$tmp/out1"'
35609 ac_nxt='"$tmp/out2"'
35610
35611 while :
35612 do
35613   # Write a here document:
35614     cat >>$CONFIG_STATUS <<_ACEOF
35615     # First, check the format of the line:
35616     cat >"\$tmp/defines.sed" <<\\CEOF
35617 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35618 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35619 b
35620 :def
35621 _ACEOF
35622   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35623   echo 'CEOF
35624     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35625   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35626   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35627   grep . conftest.tail >/dev/null || break
35628   rm -f conftest.defines
35629   mv conftest.tail conftest.defines
35630 done
35631 rm -f conftest.defines conftest.tail
35632
35633 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35634 cat >>$CONFIG_STATUS <<\_ACEOF
35635   if test x"$ac_file" != x-; then
35636     echo "/* $configure_input  */" >"$tmp/config.h"
35637     cat "$ac_result" >>"$tmp/config.h"
35638     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35639       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35640 echo "$as_me: $ac_file is unchanged" >&6;}
35641     else
35642       rm -f $ac_file
35643       mv "$tmp/config.h" $ac_file
35644     fi
35645   else
35646     echo "/* $configure_input  */"
35647     cat "$ac_result"
35648   fi
35649   rm -f "$tmp/out12"
35650  ;;
35651
35652   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35653 echo "$as_me: executing $ac_file commands" >&6;}
35654  ;;
35655   esac
35656
35657
35658   case $ac_file$ac_mode in
35659     "default-1":C)
35660     for ac_file in $CONFIG_FILES; do
35661       # Support "outfile[:infile[:infile...]]"
35662       case "$ac_file" in
35663         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35664       esac
35665       # PO directories have a Makefile.in generated from Makefile.in.in.
35666       case "$ac_file" in */Makefile.in)
35667         # Adjust a relative srcdir.
35668         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35669         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35670         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35671         # In autoconf-2.13 it is called $ac_given_srcdir.
35672         # In autoconf-2.50 it is called $srcdir.
35673         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35674         case "$ac_given_srcdir" in
35675           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35676           /*) top_srcdir="$ac_given_srcdir" ;;
35677           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35678         esac
35679         # Treat a directory as a PO directory if and only if it has a
35680         # POTFILES.in file. This allows packages to have multiple PO
35681         # directories under different names or in different locations.
35682         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35683           rm -f "$ac_dir/POTFILES"
35684           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35685           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35686           POMAKEFILEDEPS="POTFILES.in"
35687           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35688           # on $ac_dir but don't depend on user-specified configuration
35689           # parameters.
35690           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35691             # The LINGUAS file contains the set of available languages.
35692             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35693               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35694             fi
35695             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35696             # Hide the ALL_LINGUAS assigment from automake.
35697             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35698             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35699           else
35700             # The set of available languages was given in configure.in.
35701             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35702           fi
35703           # Compute POFILES
35704           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35705           # Compute UPDATEPOFILES
35706           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35707           # Compute DUMMYPOFILES
35708           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35709           # Compute GMOFILES
35710           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35711           case "$ac_given_srcdir" in
35712             .) srcdirpre= ;;
35713             *) srcdirpre='$(srcdir)/' ;;
35714           esac
35715           POFILES=
35716           UPDATEPOFILES=
35717           DUMMYPOFILES=
35718           GMOFILES=
35719           for lang in $ALL_LINGUAS; do
35720             POFILES="$POFILES $srcdirpre$lang.po"
35721             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35722             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35723             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35724           done
35725           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35726           # environment variable.
35727           INST_LINGUAS=
35728           if test -n "$ALL_LINGUAS"; then
35729             for presentlang in $ALL_LINGUAS; do
35730               useit=no
35731               if test "%UNSET%" != "$LINGUAS"; then
35732                 desiredlanguages="$LINGUAS"
35733               else
35734                 desiredlanguages="$ALL_LINGUAS"
35735               fi
35736               for desiredlang in $desiredlanguages; do
35737                 # Use the presentlang catalog if desiredlang is
35738                 #   a. equal to presentlang, or
35739                 #   b. a variant of presentlang (because in this case,
35740                 #      presentlang can be used as a fallback for messages
35741                 #      which are not translated in the desiredlang catalog).
35742                 case "$desiredlang" in
35743                   "$presentlang"*) useit=yes;;
35744                 esac
35745               done
35746               if test $useit = yes; then
35747                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35748               fi
35749             done
35750           fi
35751           CATALOGS=
35752           if test -n "$INST_LINGUAS"; then
35753             for lang in $INST_LINGUAS; do
35754               CATALOGS="$CATALOGS $lang.gmo"
35755             done
35756           fi
35757           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35758           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"
35759           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35760             if test -f "$f"; then
35761               case "$f" in
35762                 *.orig | *.bak | *~) ;;
35763                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35764               esac
35765             fi
35766           done
35767         fi
35768         ;;
35769       esac
35770     done ;;
35771     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35772  ;;
35773
35774   esac
35775 done # for ac_tag
35776
35777
35778 { (exit 0); exit 0; }
35779 _ACEOF
35780 chmod +x $CONFIG_STATUS
35781 ac_clean_files=$ac_clean_files_save
35782
35783
35784 # configure is writing to config.log, and then calls config.status.
35785 # config.status does its own redirection, appending to config.log.
35786 # Unfortunately, on DOS this fails, as config.log is still kept open
35787 # by configure, so config.status won't be able to write to it; its
35788 # output is simply discarded.  So we exec the FD to /dev/null,
35789 # effectively closing config.log, so it can be properly (re)opened and
35790 # appended to by config.status.  When coming back to configure, we
35791 # need to make the FD available again.
35792 if test "$no_create" != yes; then
35793   ac_cs_success=:
35794   ac_config_status_args=
35795   test "$silent" = yes &&
35796     ac_config_status_args="$ac_config_status_args --quiet"
35797   exec 5>/dev/null
35798   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35799   exec 5>>config.log
35800   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35801   # would make configure fail if this is the last instruction.
35802   $ac_cs_success || { (exit 1); exit 1; }
35803 fi
35804
35805
35806 cd scripts
35807 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35808 chmod 755 dvd-handler dvd-simulator
35809 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35810 cd ..
35811
35812 c=src/cats
35813
35814 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35815 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35816
35817 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35818 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35819
35820 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35821 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35822
35823 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35824 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35825
35826 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35827 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35828
35829 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35830 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35831
35832 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35833 chmod 755 $c/sqlite
35834 chmod 755 $c/mysql
35835
35836 chmod 755 src/win32/build-depkgs-mingw32
35837
35838 if test "${support_bat}" = "yes" ; then
35839   cd src/qt-console
35840   chmod 755 install_conf_file
35841   qmake
35842 fi
35843
35844
35845 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35846    largefile_support="yes"
35847 fi
35848
35849 #
35850 # A whole lot of hand springs to get the compiler version.
35851 #  This is because gcc changed the output in version 3.0
35852 #
35853 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35854 if test "x${CCVERSION}" = "x" ; then
35855   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35856 fi
35857 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35858 if test x"${CXXVERSION}" = x ; then
35859   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35860 fi
35861
35862 if test "x${subsysdir}" = "x${sbindir}" ; then
35863    echo " "
35864    echo " "
35865    echo "You have set --sbindir and --with-subsys-dir"
35866    echo "  both equal to: ${subsysdir} "
35867    echo "  This is not permitted. Please reconfigure."
35868    echo " "
35869    echo "Aborting configuration ..."
35870    echo " "
35871    echo " "
35872    exit 1
35873 fi
35874
35875 if test "x${db_type}" = "xInternal" ; then
35876    echo " "
35877    echo " "
35878    echo "You have not specified either --enable-client-only or one of the"
35879    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35880    echo "  This is not permitted. Please reconfigure."
35881    echo " "
35882    echo "Aborting the configuration ..."
35883    echo " "
35884    echo " "
35885    exit 1
35886 fi
35887
35888 echo "
35889 Configuration on `date`:
35890
35891   Host:                       $host -- ${DISTNAME} ${DISTVER}
35892   Bacula version:             ${VERSION} (${DATE})
35893   Source code location:       ${srcdir}
35894   Install binaries:           ${sbindir}
35895   Install config files:       ${sysconfdir}
35896   Scripts directory:          ${scriptdir}
35897   Working directory:          ${working_dir}
35898   PID directory:              ${piddir}
35899   Subsys directory:           ${subsysdir}
35900   Man directory:              ${mandir}
35901   Data directory:             ${datadir}
35902   C Compiler:                 ${CC} ${CCVERSION}
35903   C++ Compiler:               ${CXX} ${CXXVERSION}
35904   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35905   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35906   Libraries:                  ${LIBS}
35907   Statically Linked Tools:    ${support_static_tools}
35908   Statically Linked FD:       ${support_static_fd}
35909   Statically Linked SD:       ${support_static_sd}
35910   Statically Linked DIR:      ${support_static_dir}
35911   Statically Linked CONS:     ${support_static_cons}
35912   Database type:              ${db_type}
35913   Database lib:               ${DB_LIBS}
35914   Database name:              ${db_name}
35915   Database user:              ${db_user}
35916
35917   Job Output Email:           ${job_email}
35918   Traceback Email:            ${dump_email}
35919   SMTP Host Address:          ${smtp_host}
35920
35921   Director Port:              ${dir_port}
35922   File daemon Port:           ${fd_port}
35923   Storage daemon Port:        ${sd_port}
35924
35925   Director User:              ${dir_user}
35926   Director Group:             ${dir_group}
35927   Storage Daemon User:        ${sd_user}
35928   Storage DaemonGroup:        ${sd_group}
35929   File Daemon User:           ${fd_user}
35930   File Daemon Group:          ${fd_group}
35931
35932   SQL binaries Directory      ${SQL_BINDIR}
35933
35934   Large file support:         $largefile_support
35935   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35936   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35937   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35938   TLS support:                ${support_tls}
35939   Encryption support:         ${support_crypto}
35940   ZLIB support:               ${have_zlib}
35941   enable-smartalloc:          ${support_smartalloc}
35942   enable-bat:                 ${support_bat}
35943   enable-gnome:               ${support_gnome} ${gnome_version}
35944   enable-bwx-console:         ${support_wx_console} ${wx_version}
35945   enable-tray-monitor:        ${support_tray_monitor}
35946   client-only:                ${build_client_only}
35947   build-dird:                 ${build_dird}
35948   build-stored:               ${build_stored}
35949   ACL support:                ${have_acl}
35950   Python support:             ${support_python} ${PYTHON_LIBS}
35951   Batch insert enabled:       ${support_batch_insert}
35952
35953   " > config.out
35954
35955 cat config.out