]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
kes Turn on Batch insert code by default as it now passes regression.
[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 dir_user
803 dir_group
804 sd_user
805 sd_group
806 fd_user
807 fd_group
808 SBINPERM
809 SQL_LFLAGS
810 SQL_INCLUDE
811 SQL_BINDIR
812 cats
813 DB_NAME
814 GETCONF
815 XMKMF
816 X_CFLAGS
817 X_PRE_LIBS
818 X_LIBS
819 X_EXTRA_LIBS
820 LIBOBJS
821 FDLIBS
822 DEBUG
823 DINCLUDE
824 DLIB
825 DB_LIBS
826 WCFLAGS
827 WLDFLAGS
828 WRAPLIBS
829 OBJLIST
830 hostname
831 TAPEDRIVE
832 PSCMD
833 WIN32
834 MACOSX
835 DISTNAME
836 DISTVER
837 LTLIBOBJS'
838 ac_subst_files='MCOMMON'
839       ac_precious_vars='build_alias
840 host_alias
841 target_alias
842 CC
843 CFLAGS
844 LDFLAGS
845 CPPFLAGS
846 CXX
847 CXXFLAGS
848 CCC
849 CPP
850 WXCONFIG
851 WXFLAGS
852 XMKMF'
853
854
855 # Initialize some variables set by options.
856 ac_init_help=
857 ac_init_version=false
858 # The variables have the same names as the options, with
859 # dashes changed to underlines.
860 cache_file=/dev/null
861 exec_prefix=NONE
862 no_create=
863 no_recursion=
864 prefix=NONE
865 program_prefix=NONE
866 program_suffix=NONE
867 program_transform_name=s,x,x,
868 silent=
869 site=
870 srcdir=
871 verbose=
872 x_includes=NONE
873 x_libraries=NONE
874
875 # Installation directory options.
876 # These are left unexpanded so users can "make install exec_prefix=/foo"
877 # and all the variables that are supposed to be based on exec_prefix
878 # by default will actually change.
879 # Use braces instead of parens because sh, perl, etc. also accept them.
880 # (The list follows the same order as the GNU Coding Standards.)
881 bindir='${exec_prefix}/bin'
882 sbindir='${exec_prefix}/sbin'
883 libexecdir='${exec_prefix}/libexec'
884 datarootdir='${prefix}/share'
885 datadir='${datarootdir}'
886 sysconfdir='${prefix}/etc'
887 sharedstatedir='${prefix}/com'
888 localstatedir='${prefix}/var'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905   # If the previous option needs an argument, assign it.
906   if test -n "$ac_prev"; then
907     eval $ac_prev=\$ac_option
908     ac_prev=
909     continue
910   fi
911
912   case $ac_option in
913   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914   *)    ac_optarg=yes ;;
915   esac
916
917   # Accept the important Cygnus configure options, so we can diagnose typos.
918
919   case $ac_dashdash$ac_option in
920   --)
921     ac_dashdash=yes ;;
922
923   -bindir | --bindir | --bindi | --bind | --bin | --bi)
924     ac_prev=bindir ;;
925   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926     bindir=$ac_optarg ;;
927
928   -build | --build | --buil | --bui | --bu)
929     ac_prev=build_alias ;;
930   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931     build_alias=$ac_optarg ;;
932
933   -cache-file | --cache-file | --cache-fil | --cache-fi \
934   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935     ac_prev=cache_file ;;
936   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938     cache_file=$ac_optarg ;;
939
940   --config-cache | -C)
941     cache_file=config.cache ;;
942
943   -datadir | --datadir | --datadi | --datad)
944     ac_prev=datadir ;;
945   -datadir=* | --datadir=* | --datadi=* | --datad=*)
946     datadir=$ac_optarg ;;
947
948   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949   | --dataroo | --dataro | --datar)
950     ac_prev=datarootdir ;;
951   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953     datarootdir=$ac_optarg ;;
954
955   -disable-* | --disable-*)
956     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957     # Reject names that are not valid shell variable names.
958     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
959       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
960    { (exit 1); exit 1; }; }
961     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
962     eval enable_$ac_feature=no ;;
963
964   -docdir | --docdir | --docdi | --doc | --do)
965     ac_prev=docdir ;;
966   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967     docdir=$ac_optarg ;;
968
969   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970     ac_prev=dvidir ;;
971   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972     dvidir=$ac_optarg ;;
973
974   -enable-* | --enable-*)
975     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
976     # Reject names that are not valid shell variable names.
977     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
978       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
979    { (exit 1); exit 1; }; }
980     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
981     eval enable_$ac_feature=\$ac_optarg ;;
982
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
1103   -program-transform-name=* | --program-transform-name=* \
1104   | --program-transform-nam=* | --program-transform-na=* \
1105   | --program-transform-n=* | --program-transform-=* \
1106   | --program-transform=* | --program-transfor=* \
1107   | --program-transfo=* | --program-transf=* \
1108   | --program-trans=* | --program-tran=* \
1109   | --progr-tra=* | --program-tr=* | --program-t=*)
1110     program_transform_name=$ac_optarg ;;
1111
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1175       { echo "$as_me: error: invalid package name: $ac_package" >&2
1176    { (exit 1); exit 1; }; }
1177     ac_package=`echo $ac_package| sed 's/-/_/g'`
1178     eval with_$ac_package=\$ac_optarg ;;
1179
1180   -without-* | --without-*)
1181     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182     # Reject names that are not valid shell variable names.
1183     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1184       { echo "$as_me: error: invalid package name: $ac_package" >&2
1185    { (exit 1); exit 1; }; }
1186     ac_package=`echo $ac_package | sed 's/-/_/g'`
1187     eval with_$ac_package=no ;;
1188
1189   --x)
1190     # Obsolete; use --with-x.
1191     with_x=yes ;;
1192
1193   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1194   | --x-incl | --x-inc | --x-in | --x-i)
1195     ac_prev=x_includes ;;
1196   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1197   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1198     x_includes=$ac_optarg ;;
1199
1200   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1201   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1202     ac_prev=x_libraries ;;
1203   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1204   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1205     x_libraries=$ac_optarg ;;
1206
1207   -*) { echo "$as_me: error: unrecognized option: $ac_option
1208 Try \`$0 --help' for more information." >&2
1209    { (exit 1); exit 1; }; }
1210     ;;
1211
1212   *=*)
1213     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1216       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1217    { (exit 1); exit 1; }; }
1218     eval $ac_envvar=\$ac_optarg
1219     export $ac_envvar ;;
1220
1221   *)
1222     # FIXME: should be removed in autoconf 3.0.
1223     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1224     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1225       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1226     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1227     ;;
1228
1229   esac
1230 done
1231
1232 if test -n "$ac_prev"; then
1233   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1234   { echo "$as_me: error: missing argument to $ac_option" >&2
1235    { (exit 1); exit 1; }; }
1236 fi
1237
1238 # Be sure to have absolute directory names.
1239 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1240                 datadir sysconfdir sharedstatedir localstatedir includedir \
1241                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1242                 libdir localedir mandir
1243 do
1244   eval ac_val=\$$ac_var
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1250    { (exit 1); exit 1; }; }
1251 done
1252
1253 # There might be people who depend on the old broken behavior: `$host'
1254 # used to hold the argument of --host etc.
1255 # FIXME: To remove some day.
1256 build=$build_alias
1257 host=$host_alias
1258 target=$target_alias
1259
1260 # FIXME: To remove some day.
1261 if test "x$host_alias" != x; then
1262   if test "x$build_alias" = x; then
1263     cross_compiling=maybe
1264     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1265     If a cross compiler is detected then cross compile mode will be used." >&2
1266   elif test "x$build_alias" != "x$host_alias"; then
1267     cross_compiling=yes
1268   fi
1269 fi
1270
1271 ac_tool_prefix=
1272 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273
1274 test "$silent" = yes && exec 6>/dev/null
1275
1276
1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1278 ac_ls_di=`ls -di .` &&
1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1280   { echo "$as_me: error: Working directory cannot be determined" >&2
1281    { (exit 1); exit 1; }; }
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283   { echo "$as_me: error: pwd does not report name of working directory" >&2
1284    { (exit 1); exit 1; }; }
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289   ac_srcdir_defaulted=yes
1290   # Try the directory containing this script, then the parent directory.
1291   ac_confdir=`$as_dirname -- "$0" ||
1292 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293          X"$0" : 'X\(//\)[^/]' \| \
1294          X"$0" : 'X\(//\)$' \| \
1295          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1296 echo X"$0" |
1297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298             s//\1/
1299             q
1300           }
1301           /^X\(\/\/\)[^/].*/{
1302             s//\1/
1303             q
1304           }
1305           /^X\(\/\/\)$/{
1306             s//\1/
1307             q
1308           }
1309           /^X\(\/\).*/{
1310             s//\1/
1311             q
1312           }
1313           s/.*/./; q'`
1314   srcdir=$ac_confdir
1315   if test ! -r "$srcdir/$ac_unique_file"; then
1316     srcdir=..
1317   fi
1318 else
1319   ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1324    { (exit 1); exit 1; }; }
1325 fi
1326 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1329    { (exit 1); exit 1; }; }
1330         pwd)`
1331 # When building in place, set srcdir=.
1332 if test "$ac_abs_confdir" = "$ac_pwd"; then
1333   srcdir=.
1334 fi
1335 # Remove unnecessary trailing slashes from srcdir.
1336 # Double slashes in file names in object file debugging info
1337 # mess up M-x gdb in Emacs.
1338 case $srcdir in
1339 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 esac
1341 for ac_var in $ac_precious_vars; do
1342   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1343   eval ac_env_${ac_var}_value=\$${ac_var}
1344   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1346 done
1347
1348 #
1349 # Report the --help message.
1350 #
1351 if test "$ac_init_help" = "long"; then
1352   # Omit some internal or obsolete options to make the list less imposing.
1353   # This message is too long to be a string in the A/UX 3.1 sh.
1354   cat <<_ACEOF
1355 \`configure' configures this package to adapt to many kinds of systems.
1356
1357 Usage: $0 [OPTION]... [VAR=VALUE]...
1358
1359 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1360 VAR=VALUE.  See below for descriptions of some of the useful variables.
1361
1362 Defaults for the options are specified in brackets.
1363
1364 Configuration:
1365   -h, --help              display this help and exit
1366       --help=short        display options specific to this package
1367       --help=recursive    display the short help of all the included packages
1368   -V, --version           display version information and exit
1369   -q, --quiet, --silent   do not print \`checking...' messages
1370       --cache-file=FILE   cache test results in FILE [disabled]
1371   -C, --config-cache      alias for \`--cache-file=config.cache'
1372   -n, --no-create         do not create output files
1373       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1374
1375 Installation directories:
1376   --prefix=PREFIX         install architecture-independent files in PREFIX
1377                           [$ac_default_prefix]
1378   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1379                           [PREFIX]
1380
1381 By default, \`make install' will install all the files in
1382 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1383 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1384 for instance \`--prefix=\$HOME'.
1385
1386 For better control, use the options below.
1387
1388 Fine tuning of the installation directories:
1389   --bindir=DIR           user executables [EPREFIX/bin]
1390   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1391   --libexecdir=DIR       program executables [EPREFIX/libexec]
1392   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1393   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1394   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1395   --libdir=DIR           object code libraries [EPREFIX/lib]
1396   --includedir=DIR       C header files [PREFIX/include]
1397   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1398   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1399   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1400   --infodir=DIR          info documentation [DATAROOTDIR/info]
1401   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1402   --mandir=DIR           man documentation [DATAROOTDIR/man]
1403   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1404   --htmldir=DIR          html documentation [DOCDIR]
1405   --dvidir=DIR           dvi documentation [DOCDIR]
1406   --pdfdir=DIR           pdf documentation [DOCDIR]
1407   --psdir=DIR            ps documentation [DOCDIR]
1408 _ACEOF
1409
1410   cat <<\_ACEOF
1411
1412 X features:
1413   --x-includes=DIR    X include files are in DIR
1414   --x-libraries=DIR   X library files are in DIR
1415
1416 System types:
1417   --build=BUILD     configure for building on BUILD [guessed]
1418   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423
1424   cat <<\_ACEOF
1425
1426 Optional Features:
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --disable-nls           do not use Native Language Support
1430   --disable-rpath         do not hardcode runtime library paths
1431   --enable-gnome          enable build of gnome-console GUI disabled
1432   --enable-bat  enable build of bat Qt4 GUI disabled
1433   --enable-wx-console     enable build of wxWidgets console disabled
1434   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1435   --enable-smartalloc     enable smartalloc debugging support disabled
1436   --enable-static-tools   enable static tape tools disabled
1437   --enable-static-fd      enable static File daemon disabled
1438   --enable-static-sd      enable static Storage daemon disabled
1439   --enable-static-dir     enable static Director disabled
1440   --enable-static-cons    enable static Console disabled
1441   --enable-client-only    build client (File daemon) only disabled
1442   --enable-build-dird     enable building of dird (Director) enabled
1443   --enable-build-stored   enable building of stored (Storage daemon) enabled
1444  --disable-conio disable conio support enabled
1445
1446   --enable-ipv6             enable ipv6 support enabled
1447
1448   --disable-readline      disable readline support disable
1449
1450   --disable-largefile     omit support for large files
1451
1452 Optional Packages:
1453   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1454   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1455   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1456   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1457   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1458   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1459   --without-libintl-prefix     don't search for libintl in includedir and libdir
1460   --with-included-gettext use the GNU gettext library included here
1461  --with-readline[=DIR]         specify readline library directory
1462
1463   --with-python[=DIR]   Include Python support.  DIR is the Python base
1464                           install directory, default is to search through
1465                           a number of common places for the Python files.
1466   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1467   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1468   --with-working-dir=PATH        specify path of Bacula working directory
1469   --with-scriptdir=PATH    specify path of Bacula scripts directory
1470   --with-dump-email=EMAIL        dump email address
1471   --with-job-email=EMAIL         job output email address
1472   --with-smtp-host=HOST          SMTP mail host address
1473   --with-pid-dir=PATH            specify location of Bacula pid files
1474   --with-subsys-dir=PATH         specify location of Bacula subsys file
1475   --with-baseport=PORT           specify base port address for daemons
1476   --with-dir-password=PASSWORD   specify Director's password
1477   --with-fd-password=PASSWORD    specify Client's password
1478   --with-sd-password=PASSWORD    specify Storage daemon's password
1479   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1480   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1481   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1482   --with-dir-user=USER           specify user for Director daemon
1483   --with-dir-group=GROUP                 specify group for Director daemon
1484   --with-sd-user=USER            specify user for Storage daemon
1485   --with-sd-group=GROUP          specify group for Storage daemon
1486   --with-fd-user=USER            specify user for File daemon
1487   --with-fd-group=GROUP          specify group for File daemon
1488   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1489   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1490                           base install directory, defaults to /usr/local/pgsql
1491
1492   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1493                           install directory, default is to search through
1494                           a number of common places for the MySQL files.
1495
1496   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1497                           install directory, default is to search through
1498                           a number of common places for the MySQL files.
1499
1500   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1501                           install directory, default is to search through
1502                           a number of common places for the SQLite3 files.
1503
1504   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1505                           install directory, default is to search through
1506                           a number of common places for the SQLite files.
1507   --with-x                use the X Window System
1508
1509 Some influential environment variables:
1510   CC          C compiler command
1511   CFLAGS      C compiler flags
1512   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513               nonstandard directory <lib dir>
1514   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CXX         C++ compiler command
1517   CXXFLAGS    C++ compiler flags
1518   CPP         C preprocessor
1519   WXCONFIG    wx-config command. On some systems, you must set it to
1520               wx-config-2.6 to use wxWidgets 2.6.
1521   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1522   XMKMF       Path to xmkmf, Makefile generator for X Window System
1523
1524 Use these variables to override the choices made by `configure' or to help
1525 it to find libraries and programs with nonstandard names/locations.
1526
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532   # If there are subdirs, report their specific --help.
1533   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534     test -d "$ac_dir" || continue
1535     ac_builddir=.
1536
1537 case "$ac_dir" in
1538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *)
1540   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1541   # A ".." for each directory in $ac_dir_suffix.
1542   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1543   case $ac_top_builddir_sub in
1544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1546   esac ;;
1547 esac
1548 ac_abs_top_builddir=$ac_pwd
1549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1550 # for backward compatibility:
1551 ac_top_builddir=$ac_top_build_prefix
1552
1553 case $srcdir in
1554   .)  # We are building in place.
1555     ac_srcdir=.
1556     ac_top_srcdir=$ac_top_builddir_sub
1557     ac_abs_top_srcdir=$ac_pwd ;;
1558   [\\/]* | ?:[\\/]* )  # Absolute name.
1559     ac_srcdir=$srcdir$ac_dir_suffix;
1560     ac_top_srcdir=$srcdir
1561     ac_abs_top_srcdir=$srcdir ;;
1562   *) # Relative name.
1563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1564     ac_top_srcdir=$ac_top_build_prefix$srcdir
1565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1566 esac
1567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1568
1569     cd "$ac_dir" || { ac_status=$?; continue; }
1570     # Check for guested configure.
1571     if test -f "$ac_srcdir/configure.gnu"; then
1572       echo &&
1573       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1574     elif test -f "$ac_srcdir/configure"; then
1575       echo &&
1576       $SHELL "$ac_srcdir/configure" --help=recursive
1577     else
1578       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1579     fi || ac_status=$?
1580     cd "$ac_pwd" || { ac_status=$?; break; }
1581   done
1582 fi
1583
1584 test -n "$ac_init_help" && exit $ac_status
1585 if $ac_init_version; then
1586   cat <<\_ACEOF
1587 configure
1588 generated by GNU Autoconf 2.60
1589
1590 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1591 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1592 This configure script is free software; the Free Software Foundation
1593 gives unlimited permission to copy, distribute and modify it.
1594 _ACEOF
1595   exit
1596 fi
1597 cat >config.log <<_ACEOF
1598 This file contains any messages produced by compilers while
1599 running configure, to aid debugging if configure makes a mistake.
1600
1601 It was created by $as_me, which was
1602 generated by GNU Autoconf 2.60.  Invocation command line was
1603
1604   $ $0 $@
1605
1606 _ACEOF
1607 exec 5>>config.log
1608 {
1609 cat <<_ASUNAME
1610 ## --------- ##
1611 ## Platform. ##
1612 ## --------- ##
1613
1614 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1615 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1616 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1617 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1618 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1619
1620 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1621 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1622
1623 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1624 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1625 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1626 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1627 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1628 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1629 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1630
1631 _ASUNAME
1632
1633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 for as_dir in $PATH
1635 do
1636   IFS=$as_save_IFS
1637   test -z "$as_dir" && as_dir=.
1638   echo "PATH: $as_dir"
1639 done
1640 IFS=$as_save_IFS
1641
1642 } >&5
1643
1644 cat >&5 <<_ACEOF
1645
1646
1647 ## ----------- ##
1648 ## Core tests. ##
1649 ## ----------- ##
1650
1651 _ACEOF
1652
1653
1654 # Keep a trace of the command line.
1655 # Strip out --no-create and --no-recursion so they do not pile up.
1656 # Strip out --silent because we don't want to record it for future runs.
1657 # Also quote any args containing shell meta-characters.
1658 # Make two passes to allow for proper duplicate-argument suppression.
1659 ac_configure_args=
1660 ac_configure_args0=
1661 ac_configure_args1=
1662 ac_must_keep_next=false
1663 for ac_pass in 1 2
1664 do
1665   for ac_arg
1666   do
1667     case $ac_arg in
1668     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1669     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1670     | -silent | --silent | --silen | --sile | --sil)
1671       continue ;;
1672     *\'*)
1673       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1674     esac
1675     case $ac_pass in
1676     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1677     2)
1678       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1679       if test $ac_must_keep_next = true; then
1680         ac_must_keep_next=false # Got value, back to normal.
1681       else
1682         case $ac_arg in
1683           *=* | --config-cache | -C | -disable-* | --disable-* \
1684           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1685           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1686           | -with-* | --with-* | -without-* | --without-* | --x)
1687             case "$ac_configure_args0 " in
1688               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1689             esac
1690             ;;
1691           -* ) ac_must_keep_next=true ;;
1692         esac
1693       fi
1694       ac_configure_args="$ac_configure_args '$ac_arg'"
1695       ;;
1696     esac
1697   done
1698 done
1699 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1700 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1701
1702 # When interrupted or exit'd, cleanup temporary files, and complete
1703 # config.log.  We remove comments because anyway the quotes in there
1704 # would cause problems or look ugly.
1705 # WARNING: Use '\'' to represent an apostrophe within the trap.
1706 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1707 trap 'exit_status=$?
1708   # Save into config.log some information that might help in debugging.
1709   {
1710     echo
1711
1712     cat <<\_ASBOX
1713 ## ---------------- ##
1714 ## Cache variables. ##
1715 ## ---------------- ##
1716 _ASBOX
1717     echo
1718     # The following way of writing the cache mishandles newlines in values,
1719 (
1720   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1721     eval ac_val=\$$ac_var
1722     case $ac_val in #(
1723     *${as_nl}*)
1724       case $ac_var in #(
1725       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1726 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1727       esac
1728       case $ac_var in #(
1729       _ | IFS | as_nl) ;; #(
1730       *) $as_unset $ac_var ;;
1731       esac ;;
1732     esac
1733   done
1734   (set) 2>&1 |
1735     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1736     *${as_nl}ac_space=\ *)
1737       sed -n \
1738         "s/'\''/'\''\\\\'\'''\''/g;
1739           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1740       ;; #(
1741     *)
1742       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1743       ;;
1744     esac |
1745     sort
1746 )
1747     echo
1748
1749     cat <<\_ASBOX
1750 ## ----------------- ##
1751 ## Output variables. ##
1752 ## ----------------- ##
1753 _ASBOX
1754     echo
1755     for ac_var in $ac_subst_vars
1756     do
1757       eval ac_val=\$$ac_var
1758       case $ac_val in
1759       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760       esac
1761       echo "$ac_var='\''$ac_val'\''"
1762     done | sort
1763     echo
1764
1765     if test -n "$ac_subst_files"; then
1766       cat <<\_ASBOX
1767 ## ------------------- ##
1768 ## File substitutions. ##
1769 ## ------------------- ##
1770 _ASBOX
1771       echo
1772       for ac_var in $ac_subst_files
1773       do
1774         eval ac_val=\$$ac_var
1775         case $ac_val in
1776         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777         esac
1778         echo "$ac_var='\''$ac_val'\''"
1779       done | sort
1780       echo
1781     fi
1782
1783     if test -s confdefs.h; then
1784       cat <<\_ASBOX
1785 ## ----------- ##
1786 ## confdefs.h. ##
1787 ## ----------- ##
1788 _ASBOX
1789       echo
1790       cat confdefs.h
1791       echo
1792     fi
1793     test "$ac_signal" != 0 &&
1794       echo "$as_me: caught signal $ac_signal"
1795     echo "$as_me: exit $exit_status"
1796   } >&5
1797   rm -f core *.core core.conftest.* &&
1798     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1799     exit $exit_status
1800 ' 0
1801 for ac_signal in 1 2 13 15; do
1802   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1803 done
1804 ac_signal=0
1805
1806 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1807 rm -f -r conftest* confdefs.h
1808
1809 # Predefined preprocessor variables.
1810
1811 cat >>confdefs.h <<_ACEOF
1812 #define PACKAGE_NAME "$PACKAGE_NAME"
1813 _ACEOF
1814
1815
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1818 _ACEOF
1819
1820
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1823 _ACEOF
1824
1825
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_STRING "$PACKAGE_STRING"
1828 _ACEOF
1829
1830
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1833 _ACEOF
1834
1835
1836 # Let the site file select an alternate cache file if it wants to.
1837 # Prefer explicitly selected file to automatically selected ones.
1838 if test -n "$CONFIG_SITE"; then
1839   set x "$CONFIG_SITE"
1840 elif test "x$prefix" != xNONE; then
1841   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1842 else
1843   set x "$ac_default_prefix/share/config.site" \
1844         "$ac_default_prefix/etc/config.site"
1845 fi
1846 shift
1847 for ac_site_file
1848 do
1849   if test -r "$ac_site_file"; then
1850     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1851 echo "$as_me: loading site script $ac_site_file" >&6;}
1852     sed 's/^/| /' "$ac_site_file" >&5
1853     . "$ac_site_file"
1854   fi
1855 done
1856
1857 if test -r "$cache_file"; then
1858   # Some versions of bash will fail to source /dev/null (special
1859   # files actually), so we avoid doing that.
1860   if test -f "$cache_file"; then
1861     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1862 echo "$as_me: loading cache $cache_file" >&6;}
1863     case $cache_file in
1864       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1865       *)                      . "./$cache_file";;
1866     esac
1867   fi
1868 else
1869   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1870 echo "$as_me: creating cache $cache_file" >&6;}
1871   >$cache_file
1872 fi
1873
1874 # Check that the precious variables saved in the cache have kept the same
1875 # value.
1876 ac_cache_corrupted=false
1877 for ac_var in $ac_precious_vars; do
1878   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1879   eval ac_new_set=\$ac_env_${ac_var}_set
1880   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1881   eval ac_new_val=\$ac_env_${ac_var}_value
1882   case $ac_old_set,$ac_new_set in
1883     set,)
1884       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1885 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1886       ac_cache_corrupted=: ;;
1887     ,set)
1888       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1890       ac_cache_corrupted=: ;;
1891     ,);;
1892     *)
1893       if test "x$ac_old_val" != "x$ac_new_val"; then
1894         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1895 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1896         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1897 echo "$as_me:   former value:  $ac_old_val" >&2;}
1898         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1899 echo "$as_me:   current value: $ac_new_val" >&2;}
1900         ac_cache_corrupted=:
1901       fi;;
1902   esac
1903   # Pass precious variables to config.status.
1904   if test "$ac_new_set" = set; then
1905     case $ac_new_val in
1906     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1907     *) ac_arg=$ac_var=$ac_new_val ;;
1908     esac
1909     case " $ac_configure_args " in
1910       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1911       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1912     esac
1913   fi
1914 done
1915 if $ac_cache_corrupted; then
1916   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1917 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1918   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1919 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1920    { (exit 1); exit 1; }; }
1921 fi
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939 ac_ext=c
1940 ac_cpp='$CPP $CPPFLAGS'
1941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944
1945
1946 BUILD_DIR=`pwd`
1947 cd ..
1948 TOP_DIR=`pwd`
1949 cd ${BUILD_DIR}
1950
1951
1952 ac_aux_dir=
1953 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1954   if test -f "$ac_dir/install-sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install-sh -c"
1957     break
1958   elif test -f "$ac_dir/install.sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install.sh -c"
1961     break
1962   elif test -f "$ac_dir/shtool"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/shtool install -c"
1965     break
1966   fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1970 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1981
1982
1983 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1984
1985
1986
1987
1988
1989 for ac_prog in true
1990 do
1991   # Extract the first word of "$ac_prog", so it can be a program name with args.
1992 set dummy $ac_prog; ac_word=$2
1993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1995 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1996   echo $ECHO_N "(cached) $ECHO_C" >&6
1997 else
1998   case $TRUEPRG in
1999   [\\/]* | ?:[\\/]*)
2000   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2001   ;;
2002   *)
2003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2004 for as_dir in $PATH
2005 do
2006   IFS=$as_save_IFS
2007   test -z "$as_dir" && as_dir=.
2008   for ac_exec_ext in '' $ac_executable_extensions; do
2009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2010     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2011     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2012     break 2
2013   fi
2014 done
2015 done
2016 IFS=$as_save_IFS
2017
2018   ;;
2019 esac
2020 fi
2021 TRUEPRG=$ac_cv_path_TRUEPRG
2022 if test -n "$TRUEPRG"; then
2023   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2024 echo "${ECHO_T}$TRUEPRG" >&6; }
2025 else
2026   { echo "$as_me:$LINENO: result: no" >&5
2027 echo "${ECHO_T}no" >&6; }
2028 fi
2029
2030
2031   test -n "$TRUEPRG" && break
2032 done
2033 test -n "$TRUEPRG" || TRUEPRG=":"
2034
2035 for ac_prog in false
2036 do
2037   # Extract the first word of "$ac_prog", so it can be a program name with args.
2038 set dummy $ac_prog; ac_word=$2
2039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2041 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2042   echo $ECHO_N "(cached) $ECHO_C" >&6
2043 else
2044   case $FALSEPRG in
2045   [\\/]* | ?:[\\/]*)
2046   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2047   ;;
2048   *)
2049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 for as_dir in $PATH
2051 do
2052   IFS=$as_save_IFS
2053   test -z "$as_dir" && as_dir=.
2054   for ac_exec_ext in '' $ac_executable_extensions; do
2055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2056     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2057     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2058     break 2
2059   fi
2060 done
2061 done
2062 IFS=$as_save_IFS
2063
2064   ;;
2065 esac
2066 fi
2067 FALSEPRG=$ac_cv_path_FALSEPRG
2068 if test -n "$FALSEPRG"; then
2069   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2070 echo "${ECHO_T}$FALSEPRG" >&6; }
2071 else
2072   { echo "$as_me:$LINENO: result: no" >&5
2073 echo "${ECHO_T}no" >&6; }
2074 fi
2075
2076
2077   test -n "$FALSEPRG" && break
2078 done
2079 test -n "$FALSEPRG" || FALSEPRG=":"
2080
2081
2082 #AC_CANONICAL_HOST
2083
2084 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2085 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2086 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2087 echo "configuring for bacula $VERSION ($DATE)"
2088
2089
2090
2091 ac_ext=c
2092 ac_cpp='$CPP $CPPFLAGS'
2093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2096 if test -n "$ac_tool_prefix"; then
2097   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2101 if test "${ac_cv_prog_CC+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test -n "$CC"; then
2105   ac_cv_prog_CC="$CC" # Let the user override the test.
2106 else
2107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2108 for as_dir in $PATH
2109 do
2110   IFS=$as_save_IFS
2111   test -z "$as_dir" && as_dir=.
2112   for ac_exec_ext in '' $ac_executable_extensions; do
2113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2114     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2115     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2116     break 2
2117   fi
2118 done
2119 done
2120 IFS=$as_save_IFS
2121
2122 fi
2123 fi
2124 CC=$ac_cv_prog_CC
2125 if test -n "$CC"; then
2126   { echo "$as_me:$LINENO: result: $CC" >&5
2127 echo "${ECHO_T}$CC" >&6; }
2128 else
2129   { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2131 fi
2132
2133
2134 fi
2135 if test -z "$ac_cv_prog_CC"; then
2136   ac_ct_CC=$CC
2137   # Extract the first word of "gcc", so it can be a program name with args.
2138 set dummy gcc; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2142   echo $ECHO_N "(cached) $ECHO_C" >&6
2143 else
2144   if test -n "$ac_ct_CC"; then
2145   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2146 else
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2148 for as_dir in $PATH
2149 do
2150   IFS=$as_save_IFS
2151   test -z "$as_dir" && as_dir=.
2152   for ac_exec_ext in '' $ac_executable_extensions; do
2153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2154     ac_cv_prog_ac_ct_CC="gcc"
2155     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156     break 2
2157   fi
2158 done
2159 done
2160 IFS=$as_save_IFS
2161
2162 fi
2163 fi
2164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165 if test -n "$ac_ct_CC"; then
2166   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167 echo "${ECHO_T}$ac_ct_CC" >&6; }
2168 else
2169   { echo "$as_me:$LINENO: result: no" >&5
2170 echo "${ECHO_T}no" >&6; }
2171 fi
2172
2173   if test "x$ac_ct_CC" = x; then
2174     CC=""
2175   else
2176     case $cross_compiling:$ac_tool_warned in
2177 yes:)
2178 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet.  If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&5
2181 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet.  If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2184 ac_tool_warned=yes ;;
2185 esac
2186     CC=$ac_ct_CC
2187   fi
2188 else
2189   CC="$ac_cv_prog_CC"
2190 fi
2191
2192 if test -z "$CC"; then
2193           if test -n "$ac_tool_prefix"; then
2194     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201   if test -n "$CC"; then
2202   ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2211     ac_cv_prog_CC="${ac_tool_prefix}cc"
2212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223   { echo "$as_me:$LINENO: result: $CC" >&5
2224 echo "${ECHO_T}$CC" >&6; }
2225 else
2226   { echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6; }
2228 fi
2229
2230
2231   fi
2232 fi
2233 if test -z "$CC"; then
2234   # Extract the first word of "cc", so it can be a program name with args.
2235 set dummy cc; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239   echo $ECHO_N "(cached) $ECHO_C" >&6
2240 else
2241   if test -n "$CC"; then
2242   ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244   ac_prog_rejected=no
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2252     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2253        ac_prog_rejected=yes
2254        continue
2255      fi
2256     ac_cv_prog_CC="cc"
2257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258     break 2
2259   fi
2260 done
2261 done
2262 IFS=$as_save_IFS
2263
2264 if test $ac_prog_rejected = yes; then
2265   # We found a bogon in the path, so make sure we never use it.
2266   set dummy $ac_cv_prog_CC
2267   shift
2268   if test $# != 0; then
2269     # We chose a different compiler from the bogus one.
2270     # However, it has the same basename, so the bogon will be chosen
2271     # first if we set CC to just the basename; use the full file name.
2272     shift
2273     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2274   fi
2275 fi
2276 fi
2277 fi
2278 CC=$ac_cv_prog_CC
2279 if test -n "$CC"; then
2280   { echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6; }
2282 else
2283   { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2285 fi
2286
2287
2288 fi
2289 if test -z "$CC"; then
2290   if test -n "$ac_tool_prefix"; then
2291   for ac_prog in cl.exe
2292   do
2293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298   echo $ECHO_N "(cached) $ECHO_C" >&6
2299 else
2300   if test -n "$CC"; then
2301   ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322   { echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6; }
2324 else
2325   { echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6; }
2327 fi
2328
2329
2330     test -n "$CC" && break
2331   done
2332 fi
2333 if test -z "$CC"; then
2334   ac_ct_CC=$CC
2335   for ac_prog in cl.exe
2336 do
2337   # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342   echo $ECHO_N "(cached) $ECHO_C" >&6
2343 else
2344   if test -n "$ac_ct_CC"; then
2345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_ac_ct_CC="$ac_prog"
2355     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 echo "${ECHO_T}$ac_ct_CC" >&6; }
2368 else
2369   { echo "$as_me:$LINENO: result: no" >&5
2370 echo "${ECHO_T}no" >&6; }
2371 fi
2372
2373
2374   test -n "$ac_ct_CC" && break
2375 done
2376
2377   if test "x$ac_ct_CC" = x; then
2378     CC=""
2379   else
2380     case $cross_compiling:$ac_tool_warned in
2381 yes:)
2382 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet.  If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&5
2385 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2386 whose name does not start with the host triplet.  If you think this
2387 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2388 ac_tool_warned=yes ;;
2389 esac
2390     CC=$ac_ct_CC
2391   fi
2392 fi
2393
2394 fi
2395
2396
2397 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401    { (exit 1); exit 1; }; }
2402
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO: checking for C compiler version" >&5
2405 ac_compiler=`set X $ac_compile; echo $2`
2406 { (ac_try="$ac_compiler --version >&5"
2407 case "(($ac_try" in
2408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2409   *) ac_try_echo=$ac_try;;
2410 esac
2411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2412   (eval "$ac_compiler --version >&5") 2>&5
2413   ac_status=$?
2414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }
2416 { (ac_try="$ac_compiler -v >&5"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_compiler -v >&5") 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }
2426 { (ac_try="$ac_compiler -V >&5"
2427 case "(($ac_try" in
2428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429   *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432   (eval "$ac_compiler -V >&5") 2>&5
2433   ac_status=$?
2434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435   (exit $ac_status); }
2436
2437 cat >conftest.$ac_ext <<_ACEOF
2438 /* confdefs.h.  */
2439 _ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h.  */
2443
2444 int
2445 main ()
2446 {
2447
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
2452 ac_clean_files_save=$ac_clean_files
2453 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2454 # Try to create an executable without -o first, disregard a.out.
2455 # It will help us diagnose broken compilers, and finding out an intuition
2456 # of exeext.
2457 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2458 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2459 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2460 #
2461 # List of possible output files, starting from the most likely.
2462 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2463 # only as a last resort.  b.out is created by i960 compilers.
2464 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2465 #
2466 # The IRIX 6 linker writes into existing files which may not be
2467 # executable, retaining their permissions.  Remove them first so a
2468 # subsequent execution test works.
2469 ac_rmfiles=
2470 for ac_file in $ac_files
2471 do
2472   case $ac_file in
2473     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2474     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2475   esac
2476 done
2477 rm -f $ac_rmfiles
2478
2479 if { (ac_try="$ac_link_default"
2480 case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_link_default") 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; then
2489   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2491 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2492 # so that the user can short-circuit this test for compilers unknown to
2493 # Autoconf.
2494 for ac_file in $ac_files
2495 do
2496   test -f "$ac_file" || continue
2497   case $ac_file in
2498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2499         ;;
2500     [ab].out )
2501         # We found the default executable, but exeext='' is most
2502         # certainly right.
2503         break;;
2504     *.* )
2505         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2506         then :; else
2507            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2508         fi
2509         # We set ac_cv_exeext here because the later test for it is not
2510         # safe: cross compilers may not add the suffix if given an `-o'
2511         # argument, so we may need to know it at that point already.
2512         # Even if this section looks crufty: it has the advantage of
2513         # actually working.
2514         break;;
2515     * )
2516         break;;
2517   esac
2518 done
2519 test "$ac_cv_exeext" = no && ac_cv_exeext=
2520
2521 else
2522   echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&5
2527 echo "$as_me: error: C compiler cannot create executables
2528 See \`config.log' for more details." >&2;}
2529    { (exit 77); exit 77; }; }
2530 fi
2531
2532 ac_exeext=$ac_cv_exeext
2533 { echo "$as_me:$LINENO: result: $ac_file" >&5
2534 echo "${ECHO_T}$ac_file" >&6; }
2535
2536 # Check that the compiler produces executables we can run.  If not, either
2537 # the compiler is broken, or we cross compile.
2538 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2539 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2540 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2541 # If not cross compiling, check that we can run a simple program.
2542 if test "$cross_compiling" != yes; then
2543   if { ac_try='./$ac_file'
2544   { (case "(($ac_try" in
2545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546   *) ac_try_echo=$ac_try;;
2547 esac
2548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549   (eval "$ac_try") 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553     cross_compiling=no
2554   else
2555     if test "$cross_compiling" = maybe; then
2556         cross_compiling=yes
2557     else
2558         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2559 If you meant to cross compile, use \`--host'.
2560 See \`config.log' for more details." >&5
2561 echo "$as_me: error: cannot run C compiled programs.
2562 If you meant to cross compile, use \`--host'.
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565     fi
2566   fi
2567 fi
2568 { echo "$as_me:$LINENO: result: yes" >&5
2569 echo "${ECHO_T}yes" >&6; }
2570
2571 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2572 ac_clean_files=$ac_clean_files_save
2573 # Check that the compiler produces executables we can run.  If not, either
2574 # the compiler is broken, or we cross compile.
2575 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2576 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2577 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2578 echo "${ECHO_T}$cross_compiling" >&6; }
2579
2580 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2581 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2582 if { (ac_try="$ac_link"
2583 case "(($ac_try" in
2584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585   *) ac_try_echo=$ac_try;;
2586 esac
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588   (eval "$ac_link") 2>&5
2589   ac_status=$?
2590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591   (exit $ac_status); }; then
2592   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2593 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2594 # work properly (i.e., refer to `conftest.exe'), while it won't with
2595 # `rm'.
2596 for ac_file in conftest.exe conftest conftest.*; do
2597   test -f "$ac_file" || continue
2598   case $ac_file in
2599     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2600     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2601           break;;
2602     * ) break;;
2603   esac
2604 done
2605 else
2606   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2607 See \`config.log' for more details." >&5
2608 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2609 See \`config.log' for more details." >&2;}
2610    { (exit 1); exit 1; }; }
2611 fi
2612
2613 rm -f conftest$ac_cv_exeext
2614 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2615 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2616
2617 rm -f conftest.$ac_ext
2618 EXEEXT=$ac_cv_exeext
2619 ac_exeext=$EXEEXT
2620 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2621 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2622 if test "${ac_cv_objext+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2631
2632 int
2633 main ()
2634 {
2635
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 rm -f conftest.o conftest.obj
2641 if { (ac_try="$ac_compile"
2642 case "(($ac_try" in
2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644   *) ac_try_echo=$ac_try;;
2645 esac
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647   (eval "$ac_compile") 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; then
2651   for ac_file in conftest.o conftest.obj conftest.*; do
2652   test -f "$ac_file" || continue;
2653   case $ac_file in
2654     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2655     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2656        break;;
2657   esac
2658 done
2659 else
2660   echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2664 See \`config.log' for more details." >&5
2665 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2666 See \`config.log' for more details." >&2;}
2667    { (exit 1); exit 1; }; }
2668 fi
2669
2670 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2671 fi
2672 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2673 echo "${ECHO_T}$ac_cv_objext" >&6; }
2674 OBJEXT=$ac_cv_objext
2675 ac_objext=$OBJEXT
2676 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2677 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2678 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2679   echo $ECHO_N "(cached) $ECHO_C" >&6
2680 else
2681   cat >conftest.$ac_ext <<_ACEOF
2682 /* confdefs.h.  */
2683 _ACEOF
2684 cat confdefs.h >>conftest.$ac_ext
2685 cat >>conftest.$ac_ext <<_ACEOF
2686 /* end confdefs.h.  */
2687
2688 int
2689 main ()
2690 {
2691 #ifndef __GNUC__
2692        choke me
2693 #endif
2694
2695   ;
2696   return 0;
2697 }
2698 _ACEOF
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2701 case "(($ac_try" in
2702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703   *) ac_try_echo=$ac_try;;
2704 esac
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706   (eval "$ac_compile") 2>conftest.er1
2707   ac_status=$?
2708   grep -v '^ *+' conftest.er1 >conftest.err
2709   rm -f conftest.er1
2710   cat conftest.err >&5
2711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712   (exit $ac_status); } &&
2713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2714   { (case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_try") 2>&5
2720   ac_status=$?
2721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722   (exit $ac_status); }; } &&
2723          { ac_try='test -s conftest.$ac_objext'
2724   { (case "(($ac_try" in
2725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726   *) ac_try_echo=$ac_try;;
2727 esac
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729   (eval "$ac_try") 2>&5
2730   ac_status=$?
2731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732   (exit $ac_status); }; }; then
2733   ac_compiler_gnu=yes
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738         ac_compiler_gnu=no
2739 fi
2740
2741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2743
2744 fi
2745 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2746 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2747 GCC=`test $ac_compiler_gnu = yes && echo yes`
2748 ac_test_CFLAGS=${CFLAGS+set}
2749 ac_save_CFLAGS=$CFLAGS
2750 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2751 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2752 if test "${ac_cv_prog_cc_g+set}" = set; then
2753   echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755   ac_save_c_werror_flag=$ac_c_werror_flag
2756    ac_c_werror_flag=yes
2757    ac_cv_prog_cc_g=no
2758    CFLAGS="-g"
2759    cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h.  */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h.  */
2765
2766 int
2767 main ()
2768 {
2769
2770   ;
2771   return 0;
2772 }
2773 _ACEOF
2774 rm -f conftest.$ac_objext
2775 if { (ac_try="$ac_compile"
2776 case "(($ac_try" in
2777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778   *) ac_try_echo=$ac_try;;
2779 esac
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781   (eval "$ac_compile") 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2789   { (case "(($ac_try" in
2790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791   *) ac_try_echo=$ac_try;;
2792 esac
2793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2794   (eval "$ac_try") 2>&5
2795   ac_status=$?
2796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797   (exit $ac_status); }; } &&
2798          { ac_try='test -s conftest.$ac_objext'
2799   { (case "(($ac_try" in
2800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801   *) ac_try_echo=$ac_try;;
2802 esac
2803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804   (eval "$ac_try") 2>&5
2805   ac_status=$?
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); }; }; then
2808   ac_cv_prog_cc_g=yes
2809 else
2810   echo "$as_me: failed program was:" >&5
2811 sed 's/^/| /' conftest.$ac_ext >&5
2812
2813         CFLAGS=""
2814       cat >conftest.$ac_ext <<_ACEOF
2815 /* confdefs.h.  */
2816 _ACEOF
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h.  */
2820
2821 int
2822 main ()
2823 {
2824
2825   ;
2826   return 0;
2827 }
2828 _ACEOF
2829 rm -f conftest.$ac_objext
2830 if { (ac_try="$ac_compile"
2831 case "(($ac_try" in
2832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2833   *) ac_try_echo=$ac_try;;
2834 esac
2835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2836   (eval "$ac_compile") 2>conftest.er1
2837   ac_status=$?
2838   grep -v '^ *+' conftest.er1 >conftest.err
2839   rm -f conftest.er1
2840   cat conftest.err >&5
2841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842   (exit $ac_status); } &&
2843          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2844   { (case "(($ac_try" in
2845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2846   *) ac_try_echo=$ac_try;;
2847 esac
2848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2849   (eval "$ac_try") 2>&5
2850   ac_status=$?
2851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852   (exit $ac_status); }; } &&
2853          { ac_try='test -s conftest.$ac_objext'
2854   { (case "(($ac_try" in
2855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856   *) ac_try_echo=$ac_try;;
2857 esac
2858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2859   (eval "$ac_try") 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   :
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868         ac_c_werror_flag=$ac_save_c_werror_flag
2869          CFLAGS="-g"
2870          cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h.  */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h.  */
2876
2877 int
2878 main ()
2879 {
2880
2881   ;
2882   return 0;
2883 }
2884 _ACEOF
2885 rm -f conftest.$ac_objext
2886 if { (ac_try="$ac_compile"
2887 case "(($ac_try" in
2888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889   *) ac_try_echo=$ac_try;;
2890 esac
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892   (eval "$ac_compile") 2>conftest.er1
2893   ac_status=$?
2894   grep -v '^ *+' conftest.er1 >conftest.err
2895   rm -f conftest.er1
2896   cat conftest.err >&5
2897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898   (exit $ac_status); } &&
2899          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2900   { (case "(($ac_try" in
2901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902   *) ac_try_echo=$ac_try;;
2903 esac
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905   (eval "$ac_try") 2>&5
2906   ac_status=$?
2907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908   (exit $ac_status); }; } &&
2909          { ac_try='test -s conftest.$ac_objext'
2910   { (case "(($ac_try" in
2911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912   *) ac_try_echo=$ac_try;;
2913 esac
2914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2915   (eval "$ac_try") 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; }; then
2919   ac_cv_prog_cc_g=yes
2920 else
2921   echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2923
2924
2925 fi
2926
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 fi
2929
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 fi
2932
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934    ac_c_werror_flag=$ac_save_c_werror_flag
2935 fi
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2938 if test "$ac_test_CFLAGS" = set; then
2939   CFLAGS=$ac_save_CFLAGS
2940 elif test $ac_cv_prog_cc_g = yes; then
2941   if test "$GCC" = yes; then
2942     CFLAGS="-g -O2"
2943   else
2944     CFLAGS="-g"
2945   fi
2946 else
2947   if test "$GCC" = yes; then
2948     CFLAGS="-O2"
2949   else
2950     CFLAGS=
2951   fi
2952 fi
2953 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2954 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2955 if test "${ac_cv_prog_cc_c89+set}" = set; then
2956   echo $ECHO_N "(cached) $ECHO_C" >&6
2957 else
2958   ac_cv_prog_cc_c89=no
2959 ac_save_CC=$CC
2960 cat >conftest.$ac_ext <<_ACEOF
2961 /* confdefs.h.  */
2962 _ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h.  */
2966 #include <stdarg.h>
2967 #include <stdio.h>
2968 #include <sys/types.h>
2969 #include <sys/stat.h>
2970 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2971 struct buf { int x; };
2972 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2973 static char *e (p, i)
2974      char **p;
2975      int i;
2976 {
2977   return p[i];
2978 }
2979 static char *f (char * (*g) (char **, int), char **p, ...)
2980 {
2981   char *s;
2982   va_list v;
2983   va_start (v,p);
2984   s = g (p, va_arg (v,int));
2985   va_end (v);
2986   return s;
2987 }
2988
2989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2990    function prototypes and stuff, but not '\xHH' hex character constants.
2991    These don't provoke an error unfortunately, instead are silently treated
2992    as 'x'.  The following induces an error, until -std is added to get
2993    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2994    array size at least.  It's necessary to write '\x00'==0 to get something
2995    that's true only with -std.  */
2996 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2997
2998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2999    inside strings and character constants.  */
3000 #define FOO(x) 'x'
3001 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3002
3003 int test (int i, double x);
3004 struct s1 {int (*f) (int a);};
3005 struct s2 {int (*f) (double a);};
3006 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3007 int argc;
3008 char **argv;
3009 int
3010 main ()
3011 {
3012 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3018         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3019 do
3020   CC="$ac_save_CC $ac_arg"
3021   rm -f conftest.$ac_objext
3022 if { (ac_try="$ac_compile"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compile") 2>conftest.er1
3029   ac_status=$?
3030   grep -v '^ *+' conftest.er1 >conftest.err
3031   rm -f conftest.er1
3032   cat conftest.err >&5
3033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034   (exit $ac_status); } &&
3035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3036   { (case "(($ac_try" in
3037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038   *) ac_try_echo=$ac_try;;
3039 esac
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041   (eval "$ac_try") 2>&5
3042   ac_status=$?
3043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044   (exit $ac_status); }; } &&
3045          { ac_try='test -s conftest.$ac_objext'
3046   { (case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_try") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }; }; then
3055   ac_cv_prog_cc_c89=$ac_arg
3056 else
3057   echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060
3061 fi
3062
3063 rm -f core conftest.err conftest.$ac_objext
3064   test "x$ac_cv_prog_cc_c89" != "xno" && break
3065 done
3066 rm -f conftest.$ac_ext
3067 CC=$ac_save_CC
3068
3069 fi
3070 # AC_CACHE_VAL
3071 case "x$ac_cv_prog_cc_c89" in
3072   x)
3073     { echo "$as_me:$LINENO: result: none needed" >&5
3074 echo "${ECHO_T}none needed" >&6; } ;;
3075   xno)
3076     { echo "$as_me:$LINENO: result: unsupported" >&5
3077 echo "${ECHO_T}unsupported" >&6; } ;;
3078   *)
3079     CC="$CC $ac_cv_prog_cc_c89"
3080     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3081 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3082 esac
3083
3084
3085 ac_ext=c
3086 ac_cpp='$CPP $CPPFLAGS'
3087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090
3091 ac_ext=cpp
3092 ac_cpp='$CXXCPP $CPPFLAGS'
3093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3096 if test -z "$CXX"; then
3097   if test -n "$CCC"; then
3098     CXX=$CCC
3099   else
3100     if test -n "$ac_tool_prefix"; then
3101   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3102   do
3103     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_CXX+set}" = set; then
3108   echo $ECHO_N "(cached) $ECHO_C" >&6
3109 else
3110   if test -n "$CXX"; then
3111   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3115 do
3116   IFS=$as_save_IFS
3117   test -z "$as_dir" && as_dir=.
3118   for ac_exec_ext in '' $ac_executable_extensions; do
3119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3120     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3122     break 2
3123   fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 CXX=$ac_cv_prog_CXX
3131 if test -n "$CXX"; then
3132   { echo "$as_me:$LINENO: result: $CXX" >&5
3133 echo "${ECHO_T}$CXX" >&6; }
3134 else
3135   { echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6; }
3137 fi
3138
3139
3140     test -n "$CXX" && break
3141   done
3142 fi
3143 if test -z "$CXX"; then
3144   ac_ct_CXX=$CXX
3145   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3146 do
3147   # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy $ac_prog; ac_word=$2
3149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3151 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3152   echo $ECHO_N "(cached) $ECHO_C" >&6
3153 else
3154   if test -n "$ac_ct_CXX"; then
3155   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3156 else
3157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158 for as_dir in $PATH
3159 do
3160   IFS=$as_save_IFS
3161   test -z "$as_dir" && as_dir=.
3162   for ac_exec_ext in '' $ac_executable_extensions; do
3163   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3164     ac_cv_prog_ac_ct_CXX="$ac_prog"
3165     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3166     break 2
3167   fi
3168 done
3169 done
3170 IFS=$as_save_IFS
3171
3172 fi
3173 fi
3174 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3175 if test -n "$ac_ct_CXX"; then
3176   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3177 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3178 else
3179   { echo "$as_me:$LINENO: result: no" >&5
3180 echo "${ECHO_T}no" >&6; }
3181 fi
3182
3183
3184   test -n "$ac_ct_CXX" && break
3185 done
3186
3187   if test "x$ac_ct_CXX" = x; then
3188     CXX="g++"
3189   else
3190     case $cross_compiling:$ac_tool_warned in
3191 yes:)
3192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3193 whose name does not start with the host triplet.  If you think this
3194 configuration is useful to you, please write to autoconf@gnu.org." >&5
3195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3196 whose name does not start with the host triplet.  If you think this
3197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3198 ac_tool_warned=yes ;;
3199 esac
3200     CXX=$ac_ct_CXX
3201   fi
3202 fi
3203
3204   fi
3205 fi
3206 # Provide some information about the compiler.
3207 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3208 ac_compiler=`set X $ac_compile; echo $2`
3209 { (ac_try="$ac_compiler --version >&5"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215   (eval "$ac_compiler --version >&5") 2>&5
3216   ac_status=$?
3217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218   (exit $ac_status); }
3219 { (ac_try="$ac_compiler -v >&5"
3220 case "(($ac_try" in
3221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3222   *) ac_try_echo=$ac_try;;
3223 esac
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225   (eval "$ac_compiler -v >&5") 2>&5
3226   ac_status=$?
3227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228   (exit $ac_status); }
3229 { (ac_try="$ac_compiler -V >&5"
3230 case "(($ac_try" in
3231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232   *) ac_try_echo=$ac_try;;
3233 esac
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235   (eval "$ac_compiler -V >&5") 2>&5
3236   ac_status=$?
3237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238   (exit $ac_status); }
3239
3240 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3241 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3242 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3243   echo $ECHO_N "(cached) $ECHO_C" >&6
3244 else
3245   cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h.  */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h.  */
3251
3252 int
3253 main ()
3254 {
3255 #ifndef __GNUC__
3256        choke me
3257 #endif
3258
3259   ;
3260   return 0;
3261 }
3262 _ACEOF
3263 rm -f conftest.$ac_objext
3264 if { (ac_try="$ac_compile"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270   (eval "$ac_compile") 2>conftest.er1
3271   ac_status=$?
3272   grep -v '^ *+' conftest.er1 >conftest.err
3273   rm -f conftest.er1
3274   cat conftest.err >&5
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); } &&
3277          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3278   { (case "(($ac_try" in
3279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280   *) ac_try_echo=$ac_try;;
3281 esac
3282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283   (eval "$ac_try") 2>&5
3284   ac_status=$?
3285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286   (exit $ac_status); }; } &&
3287          { ac_try='test -s conftest.$ac_objext'
3288   { (case "(($ac_try" in
3289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290   *) ac_try_echo=$ac_try;;
3291 esac
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293   (eval "$ac_try") 2>&5
3294   ac_status=$?
3295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296   (exit $ac_status); }; }; then
3297   ac_compiler_gnu=yes
3298 else
3299   echo "$as_me: failed program was:" >&5
3300 sed 's/^/| /' conftest.$ac_ext >&5
3301
3302         ac_compiler_gnu=no
3303 fi
3304
3305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3307
3308 fi
3309 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3310 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3311 GXX=`test $ac_compiler_gnu = yes && echo yes`
3312 ac_test_CXXFLAGS=${CXXFLAGS+set}
3313 ac_save_CXXFLAGS=$CXXFLAGS
3314 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3315 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3316 if test "${ac_cv_prog_cxx_g+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3320    ac_cxx_werror_flag=yes
3321    ac_cv_prog_cxx_g=no
3322    CXXFLAGS="-g"
3323    cat >conftest.$ac_ext <<_ACEOF
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329
3330 int
3331 main ()
3332 {
3333
3334   ;
3335   return 0;
3336 }
3337 _ACEOF
3338 rm -f conftest.$ac_objext
3339 if { (ac_try="$ac_compile"
3340 case "(($ac_try" in
3341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342   *) ac_try_echo=$ac_try;;
3343 esac
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345   (eval "$ac_compile") 2>conftest.er1
3346   ac_status=$?
3347   grep -v '^ *+' conftest.er1 >conftest.err
3348   rm -f conftest.er1
3349   cat conftest.err >&5
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } &&
3352          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3353   { (case "(($ac_try" in
3354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3355   *) ac_try_echo=$ac_try;;
3356 esac
3357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3358   (eval "$ac_try") 2>&5
3359   ac_status=$?
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); }; } &&
3362          { ac_try='test -s conftest.$ac_objext'
3363   { (case "(($ac_try" in
3364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365   *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368   (eval "$ac_try") 2>&5
3369   ac_status=$?
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); }; }; then
3372   ac_cv_prog_cxx_g=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377         CXXFLAGS=""
3378       cat >conftest.$ac_ext <<_ACEOF
3379 /* confdefs.h.  */
3380 _ACEOF
3381 cat confdefs.h >>conftest.$ac_ext
3382 cat >>conftest.$ac_ext <<_ACEOF
3383 /* end confdefs.h.  */
3384
3385 int
3386 main ()
3387 {
3388
3389   ;
3390   return 0;
3391 }
3392 _ACEOF
3393 rm -f conftest.$ac_objext
3394 if { (ac_try="$ac_compile"
3395 case "(($ac_try" in
3396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3397   *) ac_try_echo=$ac_try;;
3398 esac
3399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3400   (eval "$ac_compile") 2>conftest.er1
3401   ac_status=$?
3402   grep -v '^ *+' conftest.er1 >conftest.err
3403   rm -f conftest.er1
3404   cat conftest.err >&5
3405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406   (exit $ac_status); } &&
3407          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3408   { (case "(($ac_try" in
3409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410   *) ac_try_echo=$ac_try;;
3411 esac
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413   (eval "$ac_try") 2>&5
3414   ac_status=$?
3415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416   (exit $ac_status); }; } &&
3417          { ac_try='test -s conftest.$ac_objext'
3418   { (case "(($ac_try" in
3419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420   *) ac_try_echo=$ac_try;;
3421 esac
3422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3423   (eval "$ac_try") 2>&5
3424   ac_status=$?
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); }; }; then
3427   :
3428 else
3429   echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3431
3432         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3433          CXXFLAGS="-g"
3434          cat >conftest.$ac_ext <<_ACEOF
3435 /* confdefs.h.  */
3436 _ACEOF
3437 cat confdefs.h >>conftest.$ac_ext
3438 cat >>conftest.$ac_ext <<_ACEOF
3439 /* end confdefs.h.  */
3440
3441 int
3442 main ()
3443 {
3444
3445   ;
3446   return 0;
3447 }
3448 _ACEOF
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_compile") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } &&
3463          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3464   { (case "(($ac_try" in
3465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466   *) ac_try_echo=$ac_try;;
3467 esac
3468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3469   (eval "$ac_try") 2>&5
3470   ac_status=$?
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); }; } &&
3473          { ac_try='test -s conftest.$ac_objext'
3474   { (case "(($ac_try" in
3475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476   *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479   (eval "$ac_try") 2>&5
3480   ac_status=$?
3481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482   (exit $ac_status); }; }; then
3483   ac_cv_prog_cxx_g=yes
3484 else
3485   echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3487
3488
3489 fi
3490
3491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 fi
3493
3494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3499 fi
3500 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3501 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3502 if test "$ac_test_CXXFLAGS" = set; then
3503   CXXFLAGS=$ac_save_CXXFLAGS
3504 elif test $ac_cv_prog_cxx_g = yes; then
3505   if test "$GXX" = yes; then
3506     CXXFLAGS="-g -O2"
3507   else
3508     CXXFLAGS="-g"
3509   fi
3510 else
3511   if test "$GXX" = yes; then
3512     CXXFLAGS="-O2"
3513   else
3514     CXXFLAGS=
3515   fi
3516 fi
3517 ac_ext=c
3518 ac_cpp='$CPP $CPPFLAGS'
3519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3522
3523 if test "x$CC" != xcc; then
3524   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3525 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3526 else
3527   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3528 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3529 fi
3530 set dummy $CC; ac_cc=`echo $2 |
3531                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3532 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3533   echo $ECHO_N "(cached) $ECHO_C" >&6
3534 else
3535   cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541
3542 int
3543 main ()
3544 {
3545
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 # Make sure it works both with $CC and with simple cc.
3551 # We do the test twice because some compilers refuse to overwrite an
3552 # existing .o file with -o, though they will create one.
3553 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3554 rm -f conftest2.*
3555 if { (case "(($ac_try" in
3556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3557   *) ac_try_echo=$ac_try;;
3558 esac
3559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3560   (eval "$ac_try") 2>&5
3561   ac_status=$?
3562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563   (exit $ac_status); } &&
3564    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3566   *) ac_try_echo=$ac_try;;
3567 esac
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569   (eval "$ac_try") 2>&5
3570   ac_status=$?
3571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572   (exit $ac_status); };
3573 then
3574   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3575   if test "x$CC" != xcc; then
3576     # Test first that cc exists at all.
3577     if { ac_try='cc -c conftest.$ac_ext >&5'
3578   { (case "(($ac_try" in
3579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580   *) ac_try_echo=$ac_try;;
3581 esac
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583   (eval "$ac_try") 2>&5
3584   ac_status=$?
3585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3586   (exit $ac_status); }; }; then
3587       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3588       rm -f conftest2.*
3589       if { (case "(($ac_try" in
3590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591   *) ac_try_echo=$ac_try;;
3592 esac
3593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3594   (eval "$ac_try") 2>&5
3595   ac_status=$?
3596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597   (exit $ac_status); } &&
3598          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600   *) ac_try_echo=$ac_try;;
3601 esac
3602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3603   (eval "$ac_try") 2>&5
3604   ac_status=$?
3605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606   (exit $ac_status); };
3607       then
3608         # cc works too.
3609         :
3610       else
3611         # cc exists but doesn't like -o.
3612         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3613       fi
3614     fi
3615   fi
3616 else
3617   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3618 fi
3619 rm -f core conftest*
3620
3621 fi
3622 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3623   { echo "$as_me:$LINENO: result: yes" >&5
3624 echo "${ECHO_T}yes" >&6; }
3625 else
3626   { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3628
3629 cat >>confdefs.h <<\_ACEOF
3630 #define NO_MINUS_C_MINUS_O 1
3631 _ACEOF
3632
3633 fi
3634
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3641 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3642 # On Suns, sometimes $CPP names a directory.
3643 if test -n "$CPP" && test -d "$CPP"; then
3644   CPP=
3645 fi
3646 if test -z "$CPP"; then
3647   if test "${ac_cv_prog_CPP+set}" = set; then
3648   echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650       # Double quotes because CPP needs to be expanded
3651     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3652     do
3653       ac_preproc_ok=false
3654 for ac_c_preproc_warn_flag in '' yes
3655 do
3656   # Use a header file that comes with gcc, so configuring glibc
3657   # with a fresh cross-compiler works.
3658   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3659   # <limits.h> exists even on freestanding compilers.
3660   # On the NeXT, cc -E runs the code through the compiler's parser,
3661   # not just through cpp. "Syntax error" is here to catch this case.
3662   cat >conftest.$ac_ext <<_ACEOF
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #ifdef __STDC__
3669 # include <limits.h>
3670 #else
3671 # include <assert.h>
3672 #endif
3673                      Syntax error
3674 _ACEOF
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } >/dev/null; then
3688   if test -s conftest.err; then
3689     ac_cpp_err=$ac_c_preproc_warn_flag
3690     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3691   else
3692     ac_cpp_err=
3693   fi
3694 else
3695   ac_cpp_err=yes
3696 fi
3697 if test -z "$ac_cpp_err"; then
3698   :
3699 else
3700   echo "$as_me: failed program was:" >&5
3701 sed 's/^/| /' conftest.$ac_ext >&5
3702
3703   # Broken: fails on valid input.
3704 continue
3705 fi
3706
3707 rm -f conftest.err conftest.$ac_ext
3708
3709   # OK, works on sane cases.  Now check whether nonexistent headers
3710   # can be detected and how.
3711   cat >conftest.$ac_ext <<_ACEOF
3712 /* confdefs.h.  */
3713 _ACEOF
3714 cat confdefs.h >>conftest.$ac_ext
3715 cat >>conftest.$ac_ext <<_ACEOF
3716 /* end confdefs.h.  */
3717 #include <ac_nonexistent.h>
3718 _ACEOF
3719 if { (ac_try="$ac_cpp conftest.$ac_ext"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3725   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3726   ac_status=$?
3727   grep -v '^ *+' conftest.er1 >conftest.err
3728   rm -f conftest.er1
3729   cat conftest.err >&5
3730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731   (exit $ac_status); } >/dev/null; then
3732   if test -s conftest.err; then
3733     ac_cpp_err=$ac_c_preproc_warn_flag
3734     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3735   else
3736     ac_cpp_err=
3737   fi
3738 else
3739   ac_cpp_err=yes
3740 fi
3741 if test -z "$ac_cpp_err"; then
3742   # Broken: success on invalid input.
3743 continue
3744 else
3745   echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748   # Passes both tests.
3749 ac_preproc_ok=:
3750 break
3751 fi
3752
3753 rm -f conftest.err conftest.$ac_ext
3754
3755 done
3756 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3757 rm -f conftest.err conftest.$ac_ext
3758 if $ac_preproc_ok; then
3759   break
3760 fi
3761
3762     done
3763     ac_cv_prog_CPP=$CPP
3764
3765 fi
3766   CPP=$ac_cv_prog_CPP
3767 else
3768   ac_cv_prog_CPP=$CPP
3769 fi
3770 { echo "$as_me:$LINENO: result: $CPP" >&5
3771 echo "${ECHO_T}$CPP" >&6; }
3772 ac_preproc_ok=false
3773 for ac_c_preproc_warn_flag in '' yes
3774 do
3775   # Use a header file that comes with gcc, so configuring glibc
3776   # with a fresh cross-compiler works.
3777   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3778   # <limits.h> exists even on freestanding compilers.
3779   # On the NeXT, cc -E runs the code through the compiler's parser,
3780   # not just through cpp. "Syntax error" is here to catch this case.
3781   cat >conftest.$ac_ext <<_ACEOF
3782 /* confdefs.h.  */
3783 _ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h.  */
3787 #ifdef __STDC__
3788 # include <limits.h>
3789 #else
3790 # include <assert.h>
3791 #endif
3792                      Syntax error
3793 _ACEOF
3794 if { (ac_try="$ac_cpp conftest.$ac_ext"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3800   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3801   ac_status=$?
3802   grep -v '^ *+' conftest.er1 >conftest.err
3803   rm -f conftest.er1
3804   cat conftest.err >&5
3805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806   (exit $ac_status); } >/dev/null; then
3807   if test -s conftest.err; then
3808     ac_cpp_err=$ac_c_preproc_warn_flag
3809     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3810   else
3811     ac_cpp_err=
3812   fi
3813 else
3814   ac_cpp_err=yes
3815 fi
3816 if test -z "$ac_cpp_err"; then
3817   :
3818 else
3819   echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822   # Broken: fails on valid input.
3823 continue
3824 fi
3825
3826 rm -f conftest.err conftest.$ac_ext
3827
3828   # OK, works on sane cases.  Now check whether nonexistent headers
3829   # can be detected and how.
3830   cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3836 #include <ac_nonexistent.h>
3837 _ACEOF
3838 if { (ac_try="$ac_cpp conftest.$ac_ext"
3839 case "(($ac_try" in
3840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841   *) ac_try_echo=$ac_try;;
3842 esac
3843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3845   ac_status=$?
3846   grep -v '^ *+' conftest.er1 >conftest.err
3847   rm -f conftest.er1
3848   cat conftest.err >&5
3849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850   (exit $ac_status); } >/dev/null; then
3851   if test -s conftest.err; then
3852     ac_cpp_err=$ac_c_preproc_warn_flag
3853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3854   else
3855     ac_cpp_err=
3856   fi
3857 else
3858   ac_cpp_err=yes
3859 fi
3860 if test -z "$ac_cpp_err"; then
3861   # Broken: success on invalid input.
3862 continue
3863 else
3864   echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867   # Passes both tests.
3868 ac_preproc_ok=:
3869 break
3870 fi
3871
3872 rm -f conftest.err conftest.$ac_ext
3873
3874 done
3875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876 rm -f conftest.err conftest.$ac_ext
3877 if $ac_preproc_ok; then
3878   :
3879 else
3880   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3881 See \`config.log' for more details." >&5
3882 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3883 See \`config.log' for more details." >&2;}
3884    { (exit 1); exit 1; }; }
3885 fi
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892
3893
3894 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3895 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3896 if test "${ac_cv_path_GREP+set}" = set; then
3897   echo $ECHO_N "(cached) $ECHO_C" >&6
3898 else
3899   # Extract the first word of "grep ggrep" to use in msg output
3900 if test -z "$GREP"; then
3901 set dummy grep ggrep; ac_prog_name=$2
3902 if test "${ac_cv_path_GREP+set}" = set; then
3903   echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905   ac_path_GREP_found=false
3906 # Loop through the user's path and test for each of PROGNAME-LIST
3907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3909 do
3910   IFS=$as_save_IFS
3911   test -z "$as_dir" && as_dir=.
3912   for ac_prog in grep ggrep; do
3913   for ac_exec_ext in '' $ac_executable_extensions; do
3914     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3915     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3916     # Check for GNU ac_path_GREP and select it if it is found.
3917   # Check for GNU $ac_path_GREP
3918 case `"$ac_path_GREP" --version 2>&1` in
3919 *GNU*)
3920   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3921 *)
3922   ac_count=0
3923   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3924   while :
3925   do
3926     cat "conftest.in" "conftest.in" >"conftest.tmp"
3927     mv "conftest.tmp" "conftest.in"
3928     cp "conftest.in" "conftest.nl"
3929     echo 'GREP' >> "conftest.nl"
3930     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3931     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3932     ac_count=`expr $ac_count + 1`
3933     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3934       # Best one so far, save it but keep looking for a better one
3935       ac_cv_path_GREP="$ac_path_GREP"
3936       ac_path_GREP_max=$ac_count
3937     fi
3938     # 10*(2^10) chars as input seems more than enough
3939     test $ac_count -gt 10 && break
3940   done
3941   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3942 esac
3943
3944
3945     $ac_path_GREP_found && break 3
3946   done
3947 done
3948
3949 done
3950 IFS=$as_save_IFS
3951
3952
3953 fi
3954
3955 GREP="$ac_cv_path_GREP"
3956 if test -z "$GREP"; then
3957   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3958 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3959    { (exit 1); exit 1; }; }
3960 fi
3961
3962 else
3963   ac_cv_path_GREP=$GREP
3964 fi
3965
3966
3967 fi
3968 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3969 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3970  GREP="$ac_cv_path_GREP"
3971
3972
3973 { echo "$as_me:$LINENO: checking for egrep" >&5
3974 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3975 if test "${ac_cv_path_EGREP+set}" = set; then
3976   echo $ECHO_N "(cached) $ECHO_C" >&6
3977 else
3978   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3979    then ac_cv_path_EGREP="$GREP -E"
3980    else
3981      # Extract the first word of "egrep" to use in msg output
3982 if test -z "$EGREP"; then
3983 set dummy egrep; ac_prog_name=$2
3984 if test "${ac_cv_path_EGREP+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   ac_path_EGREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991 do
3992   IFS=$as_save_IFS
3993   test -z "$as_dir" && as_dir=.
3994   for ac_prog in egrep; do
3995   for ac_exec_ext in '' $ac_executable_extensions; do
3996     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3997     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3998     # Check for GNU ac_path_EGREP and select it if it is found.
3999   # Check for GNU $ac_path_EGREP
4000 case `"$ac_path_EGREP" --version 2>&1` in
4001 *GNU*)
4002   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4003 *)
4004   ac_count=0
4005   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4006   while :
4007   do
4008     cat "conftest.in" "conftest.in" >"conftest.tmp"
4009     mv "conftest.tmp" "conftest.in"
4010     cp "conftest.in" "conftest.nl"
4011     echo 'EGREP' >> "conftest.nl"
4012     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014     ac_count=`expr $ac_count + 1`
4015     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4016       # Best one so far, save it but keep looking for a better one
4017       ac_cv_path_EGREP="$ac_path_EGREP"
4018       ac_path_EGREP_max=$ac_count
4019     fi
4020     # 10*(2^10) chars as input seems more than enough
4021     test $ac_count -gt 10 && break
4022   done
4023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024 esac
4025
4026
4027     $ac_path_EGREP_found && break 3
4028   done
4029 done
4030
4031 done
4032 IFS=$as_save_IFS
4033
4034
4035 fi
4036
4037 EGREP="$ac_cv_path_EGREP"
4038 if test -z "$EGREP"; then
4039   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041    { (exit 1); exit 1; }; }
4042 fi
4043
4044 else
4045   ac_cv_path_EGREP=$EGREP
4046 fi
4047
4048
4049    fi
4050 fi
4051 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4052 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4053  EGREP="$ac_cv_path_EGREP"
4054
4055
4056 if test $ac_cv_c_compiler_gnu = yes; then
4057     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4058 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4059 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062     ac_pattern="Autoconf.*'x'"
4063   cat >conftest.$ac_ext <<_ACEOF
4064 /* confdefs.h.  */
4065 _ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h.  */
4069 #include <sgtty.h>
4070 Autoconf TIOCGETP
4071 _ACEOF
4072 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4073   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4074   ac_cv_prog_gcc_traditional=yes
4075 else
4076   ac_cv_prog_gcc_traditional=no
4077 fi
4078 rm -f conftest*
4079
4080
4081   if test $ac_cv_prog_gcc_traditional = no; then
4082     cat >conftest.$ac_ext <<_ACEOF
4083 /* confdefs.h.  */
4084 _ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h.  */
4088 #include <termio.h>
4089 Autoconf TCGETA
4090 _ACEOF
4091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4092   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4093   ac_cv_prog_gcc_traditional=yes
4094 fi
4095 rm -f conftest*
4096
4097   fi
4098 fi
4099 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4100 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4101   if test $ac_cv_prog_gcc_traditional = yes; then
4102     CC="$CC -traditional"
4103   fi
4104 fi
4105
4106 BASECC=`basename $CC`
4107 have_gcc=no
4108 if test "x$BASECC" = xgcc; then
4109    cat >>confdefs.h <<\_ACEOF
4110 #define HAVE_GCC 1
4111 _ACEOF
4112
4113    have_gcc=yes
4114 fi
4115 # Extract the first word of "$CXX", so it can be a program name with args.
4116 set dummy $CXX; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_path_CXX+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   case $CXX in
4123   [\\/]* | ?:[\\/]*)
4124   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4125   ;;
4126   *)
4127   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4129 do
4130   IFS=$as_save_IFS
4131   test -z "$as_dir" && as_dir=.
4132   for ac_exec_ext in '' $ac_executable_extensions; do
4133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4134     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4135     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4136     break 2
4137   fi
4138 done
4139 done
4140 IFS=$as_save_IFS
4141
4142   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4143   ;;
4144 esac
4145 fi
4146 CXX=$ac_cv_path_CXX
4147 if test -n "$CXX"; then
4148   { echo "$as_me:$LINENO: result: $CXX" >&5
4149 echo "${ECHO_T}$CXX" >&6; }
4150 else
4151   { echo "$as_me:$LINENO: result: no" >&5
4152 echo "${ECHO_T}no" >&6; }
4153 fi
4154
4155
4156 if test ! -e $CXX; then
4157    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4158 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4159    { (exit 1); exit 1; }; }
4160 fi
4161
4162 # Find a good install program.  We prefer a C program (faster),
4163 # so one script is as good as another.  But avoid the broken or
4164 # incompatible versions:
4165 # SysV /etc/install, /usr/sbin/install
4166 # SunOS /usr/etc/install
4167 # IRIX /sbin/install
4168 # AIX /bin/install
4169 # AmigaOS /C/install, which installs bootblocks on floppy discs
4170 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4171 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4172 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4173 # OS/2's system install, which has a completely different semantic
4174 # ./install, which can be erroneously created by make from ./install.sh.
4175 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4176 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4177 if test -z "$INSTALL"; then
4178 if test "${ac_cv_path_install+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 for as_dir in $PATH
4183 do
4184   IFS=$as_save_IFS
4185   test -z "$as_dir" && as_dir=.
4186   # Account for people who put trailing slashes in PATH elements.
4187 case $as_dir/ in
4188   ./ | .// | /cC/* | \
4189   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4190   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4191   /usr/ucb/* ) ;;
4192   *)
4193     # OSF1 and SCO ODT 3.0 have their own names for install.
4194     # Don't use installbsd from OSF since it installs stuff as root
4195     # by default.
4196     for ac_prog in ginstall scoinst install; do
4197       for ac_exec_ext in '' $ac_executable_extensions; do
4198         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4199           if test $ac_prog = install &&
4200             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4201             # AIX install.  It has an incompatible calling convention.
4202             :
4203           elif test $ac_prog = install &&
4204             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4205             # program-specific install script used by HP pwplus--don't use.
4206             :
4207           else
4208             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4209             break 3
4210           fi
4211         fi
4212       done
4213     done
4214     ;;
4215 esac
4216 done
4217 IFS=$as_save_IFS
4218
4219
4220 fi
4221   if test "${ac_cv_path_install+set}" = set; then
4222     INSTALL=$ac_cv_path_install
4223   else
4224     # As a last resort, use the slow shell script.  Don't cache a
4225     # value for INSTALL within a source directory, because that will
4226     # break other packages using the cache if that directory is
4227     # removed, or if the value is a relative name.
4228     INSTALL=$ac_install_sh
4229   fi
4230 fi
4231 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4232 echo "${ECHO_T}$INSTALL" >&6; }
4233
4234 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4235 # It thinks the first close brace ends the variable substitution.
4236 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4237
4238 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4239
4240 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4241
4242 if test -n "$ac_tool_prefix"; then
4243   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4244 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_RANLIB+set}" = set; then
4248   echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250   if test -n "$RANLIB"; then
4251   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4255 do
4256   IFS=$as_save_IFS
4257   test -z "$as_dir" && as_dir=.
4258   for ac_exec_ext in '' $ac_executable_extensions; do
4259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4260     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262     break 2
4263   fi
4264 done
4265 done
4266 IFS=$as_save_IFS
4267
4268 fi
4269 fi
4270 RANLIB=$ac_cv_prog_RANLIB
4271 if test -n "$RANLIB"; then
4272   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4273 echo "${ECHO_T}$RANLIB" >&6; }
4274 else
4275   { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4277 fi
4278
4279
4280 fi
4281 if test -z "$ac_cv_prog_RANLIB"; then
4282   ac_ct_RANLIB=$RANLIB
4283   # Extract the first word of "ranlib", so it can be a program name with args.
4284 set dummy ranlib; ac_word=$2
4285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   if test -n "$ac_ct_RANLIB"; then
4291   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     ac_cv_prog_ac_ct_RANLIB="ranlib"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308 fi
4309 fi
4310 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4311 if test -n "$ac_ct_RANLIB"; then
4312   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4313 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4314 else
4315   { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4317 fi
4318
4319   if test "x$ac_ct_RANLIB" = x; then
4320     RANLIB=":"
4321   else
4322     case $cross_compiling:$ac_tool_warned in
4323 yes:)
4324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4325 whose name does not start with the host triplet.  If you think this
4326 configuration is useful to you, please write to autoconf@gnu.org." >&5
4327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4328 whose name does not start with the host triplet.  If you think this
4329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4330 ac_tool_warned=yes ;;
4331 esac
4332     RANLIB=$ac_ct_RANLIB
4333   fi
4334 else
4335   RANLIB="$ac_cv_prog_RANLIB"
4336 fi
4337
4338 # Extract the first word of "mv", so it can be a program name with args.
4339 set dummy mv; ac_word=$2
4340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4342 if test "${ac_cv_path_MV+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   case $MV in
4346   [\\/]* | ?:[\\/]*)
4347   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4348   ;;
4349   *)
4350   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4352 do
4353   IFS=$as_save_IFS
4354   test -z "$as_dir" && as_dir=.
4355   for ac_exec_ext in '' $ac_executable_extensions; do
4356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4357     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4358     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4359     break 2
4360   fi
4361 done
4362 done
4363 IFS=$as_save_IFS
4364
4365   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4366   ;;
4367 esac
4368 fi
4369 MV=$ac_cv_path_MV
4370 if test -n "$MV"; then
4371   { echo "$as_me:$LINENO: result: $MV" >&5
4372 echo "${ECHO_T}$MV" >&6; }
4373 else
4374   { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4376 fi
4377
4378
4379 # Extract the first word of "rm", so it can be a program name with args.
4380 set dummy rm; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_path_RM+set}" = set; then
4384   echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386   case $RM in
4387   [\\/]* | ?:[\\/]*)
4388   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4389   ;;
4390   *)
4391   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH
4393 do
4394   IFS=$as_save_IFS
4395   test -z "$as_dir" && as_dir=.
4396   for ac_exec_ext in '' $ac_executable_extensions; do
4397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4398     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4400     break 2
4401   fi
4402 done
4403 done
4404 IFS=$as_save_IFS
4405
4406   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4407   ;;
4408 esac
4409 fi
4410 RM=$ac_cv_path_RM
4411 if test -n "$RM"; then
4412   { echo "$as_me:$LINENO: result: $RM" >&5
4413 echo "${ECHO_T}$RM" >&6; }
4414 else
4415   { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4417 fi
4418
4419
4420 # Extract the first word of "cp", so it can be a program name with args.
4421 set dummy cp; ac_word=$2
4422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4424 if test "${ac_cv_path_CP+set}" = set; then
4425   echo $ECHO_N "(cached) $ECHO_C" >&6
4426 else
4427   case $CP in
4428   [\\/]* | ?:[\\/]*)
4429   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4430   ;;
4431   *)
4432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4448   ;;
4449 esac
4450 fi
4451 CP=$ac_cv_path_CP
4452 if test -n "$CP"; then
4453   { echo "$as_me:$LINENO: result: $CP" >&5
4454 echo "${ECHO_T}$CP" >&6; }
4455 else
4456   { echo "$as_me:$LINENO: result: no" >&5
4457 echo "${ECHO_T}no" >&6; }
4458 fi
4459
4460
4461 # Extract the first word of "sed", so it can be a program name with args.
4462 set dummy sed; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_path_SED+set}" = set; then
4466   echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468   case $SED in
4469   [\\/]* | ?:[\\/]*)
4470   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4471   ;;
4472   *)
4473   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4475 do
4476   IFS=$as_save_IFS
4477   test -z "$as_dir" && as_dir=.
4478   for ac_exec_ext in '' $ac_executable_extensions; do
4479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4480     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4481     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482     break 2
4483   fi
4484 done
4485 done
4486 IFS=$as_save_IFS
4487
4488   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4489   ;;
4490 esac
4491 fi
4492 SED=$ac_cv_path_SED
4493 if test -n "$SED"; then
4494   { echo "$as_me:$LINENO: result: $SED" >&5
4495 echo "${ECHO_T}$SED" >&6; }
4496 else
4497   { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4499 fi
4500
4501
4502 # Extract the first word of "echo", so it can be a program name with args.
4503 set dummy echo; ac_word=$2
4504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4506 if test "${ac_cv_path_ECHO+set}" = set; then
4507   echo $ECHO_N "(cached) $ECHO_C" >&6
4508 else
4509   case $ECHO in
4510   [\\/]* | ?:[\\/]*)
4511   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4512   ;;
4513   *)
4514   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 for as_dir in $PATH
4516 do
4517   IFS=$as_save_IFS
4518   test -z "$as_dir" && as_dir=.
4519   for ac_exec_ext in '' $ac_executable_extensions; do
4520   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4521     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4522     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4523     break 2
4524   fi
4525 done
4526 done
4527 IFS=$as_save_IFS
4528
4529   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4530   ;;
4531 esac
4532 fi
4533 ECHO=$ac_cv_path_ECHO
4534 if test -n "$ECHO"; then
4535   { echo "$as_me:$LINENO: result: $ECHO" >&5
4536 echo "${ECHO_T}$ECHO" >&6; }
4537 else
4538   { echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6; }
4540 fi
4541
4542
4543 # Extract the first word of "cmp", so it can be a program name with args.
4544 set dummy cmp; ac_word=$2
4545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4547 if test "${ac_cv_path_CMP+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   case $CMP in
4551   [\\/]* | ?:[\\/]*)
4552   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4553   ;;
4554   *)
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560   for ac_exec_ext in '' $ac_executable_extensions; do
4561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4562     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4563     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564     break 2
4565   fi
4566 done
4567 done
4568 IFS=$as_save_IFS
4569
4570   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4571   ;;
4572 esac
4573 fi
4574 CMP=$ac_cv_path_CMP
4575 if test -n "$CMP"; then
4576   { echo "$as_me:$LINENO: result: $CMP" >&5
4577 echo "${ECHO_T}$CMP" >&6; }
4578 else
4579   { echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6; }
4581 fi
4582
4583
4584 # Extract the first word of "tbl", so it can be a program name with args.
4585 set dummy tbl; ac_word=$2
4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588 if test "${ac_cv_path_TBL+set}" = set; then
4589   echo $ECHO_N "(cached) $ECHO_C" >&6
4590 else
4591   case $TBL in
4592   [\\/]* | ?:[\\/]*)
4593   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4594   ;;
4595   *)
4596   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4597 for as_dir in $PATH
4598 do
4599   IFS=$as_save_IFS
4600   test -z "$as_dir" && as_dir=.
4601   for ac_exec_ext in '' $ac_executable_extensions; do
4602   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4603     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4604     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605     break 2
4606   fi
4607 done
4608 done
4609 IFS=$as_save_IFS
4610
4611   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4612   ;;
4613 esac
4614 fi
4615 TBL=$ac_cv_path_TBL
4616 if test -n "$TBL"; then
4617   { echo "$as_me:$LINENO: result: $TBL" >&5
4618 echo "${ECHO_T}$TBL" >&6; }
4619 else
4620   { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4622 fi
4623
4624
4625 # Extract the first word of "ar", so it can be a program name with args.
4626 set dummy ar; ac_word=$2
4627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4629 if test "${ac_cv_path_AR+set}" = set; then
4630   echo $ECHO_N "(cached) $ECHO_C" >&6
4631 else
4632   case $AR in
4633   [\\/]* | ?:[\\/]*)
4634   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4635   ;;
4636   *)
4637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642   for ac_exec_ext in '' $ac_executable_extensions; do
4643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649 done
4650 IFS=$as_save_IFS
4651
4652   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4653   ;;
4654 esac
4655 fi
4656 AR=$ac_cv_path_AR
4657 if test -n "$AR"; then
4658   { echo "$as_me:$LINENO: result: $AR" >&5
4659 echo "${ECHO_T}$AR" >&6; }
4660 else
4661   { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4663 fi
4664
4665
4666 # Extract the first word of "openssl", so it can be a program name with args.
4667 set dummy openssl; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_path_OPENSSL+set}" = set; then
4671   echo $ECHO_N "(cached) $ECHO_C" >&6
4672 else
4673   case $OPENSSL in
4674   [\\/]* | ?:[\\/]*)
4675   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4676   ;;
4677   *)
4678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4694   ;;
4695 esac
4696 fi
4697 OPENSSL=$ac_cv_path_OPENSSL
4698 if test -n "$OPENSSL"; then
4699   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4700 echo "${ECHO_T}$OPENSSL" >&6; }
4701 else
4702   { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 fi
4705
4706
4707 # Extract the first word of "mtx", so it can be a program name with args.
4708 set dummy mtx; ac_word=$2
4709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4711 if test "${ac_cv_path_MTX+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   case $MTX in
4715   [\\/]* | ?:[\\/]*)
4716   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4717   ;;
4718   *)
4719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724   for ac_exec_ext in '' $ac_executable_extensions; do
4725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4726     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4728     break 2
4729   fi
4730 done
4731 done
4732 IFS=$as_save_IFS
4733
4734   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4735   ;;
4736 esac
4737 fi
4738 MTX=$ac_cv_path_MTX
4739 if test -n "$MTX"; then
4740   { echo "$as_me:$LINENO: result: $MTX" >&5
4741 echo "${ECHO_T}$MTX" >&6; }
4742 else
4743   { echo "$as_me:$LINENO: result: no" >&5
4744 echo "${ECHO_T}no" >&6; }
4745 fi
4746
4747
4748 # Extract the first word of "dd", so it can be a program name with args.
4749 set dummy dd; ac_word=$2
4750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4752 if test "${ac_cv_path_DD+set}" = set; then
4753   echo $ECHO_N "(cached) $ECHO_C" >&6
4754 else
4755   case $DD in
4756   [\\/]* | ?:[\\/]*)
4757   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4758   ;;
4759   *)
4760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763   IFS=$as_save_IFS
4764   test -z "$as_dir" && as_dir=.
4765   for ac_exec_ext in '' $ac_executable_extensions; do
4766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4767     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4769     break 2
4770   fi
4771 done
4772 done
4773 IFS=$as_save_IFS
4774
4775   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4776   ;;
4777 esac
4778 fi
4779 DD=$ac_cv_path_DD
4780 if test -n "$DD"; then
4781   { echo "$as_me:$LINENO: result: $DD" >&5
4782 echo "${ECHO_T}$DD" >&6; }
4783 else
4784   { echo "$as_me:$LINENO: result: no" >&5
4785 echo "${ECHO_T}no" >&6; }
4786 fi
4787
4788
4789 # Extract the first word of "mkisofs", so it can be a program name with args.
4790 set dummy mkisofs; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_path_MKISOFS+set}" = set; then
4794   echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796   case $MKISOFS in
4797   [\\/]* | ?:[\\/]*)
4798   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4799   ;;
4800   *)
4801   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804   IFS=$as_save_IFS
4805   test -z "$as_dir" && as_dir=.
4806   for ac_exec_ext in '' $ac_executable_extensions; do
4807   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4808     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4809     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810     break 2
4811   fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4817   ;;
4818 esac
4819 fi
4820 MKISOFS=$ac_cv_path_MKISOFS
4821 if test -n "$MKISOFS"; then
4822   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4823 echo "${ECHO_T}$MKISOFS" >&6; }
4824 else
4825   { echo "$as_me:$LINENO: result: no" >&5
4826 echo "${ECHO_T}no" >&6; }
4827 fi
4828
4829
4830 # Extract the first word of "python", so it can be a program name with args.
4831 set dummy python; ac_word=$2
4832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4834 if test "${ac_cv_path_PYTHON+set}" = set; then
4835   echo $ECHO_N "(cached) $ECHO_C" >&6
4836 else
4837   case $PYTHON in
4838   [\\/]* | ?:[\\/]*)
4839   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4840   ;;
4841   *)
4842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845   IFS=$as_save_IFS
4846   test -z "$as_dir" && as_dir=.
4847   for ac_exec_ext in '' $ac_executable_extensions; do
4848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4849     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4850     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851     break 2
4852   fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4858   ;;
4859 esac
4860 fi
4861 PYTHON=$ac_cv_path_PYTHON
4862 if test -n "$PYTHON"; then
4863   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4864 echo "${ECHO_T}$PYTHON" >&6; }
4865 else
4866   { echo "$as_me:$LINENO: result: no" >&5
4867 echo "${ECHO_T}no" >&6; }
4868 fi
4869
4870
4871 # Extract the first word of "growisofs", so it can be a program name with args.
4872 set dummy growisofs; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4876   echo $ECHO_N "(cached) $ECHO_C" >&6
4877 else
4878   case $GROWISOFS in
4879   [\\/]* | ?:[\\/]*)
4880   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4881   ;;
4882   *)
4883   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886   IFS=$as_save_IFS
4887   test -z "$as_dir" && as_dir=.
4888   for ac_exec_ext in '' $ac_executable_extensions; do
4889   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4890     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892     break 2
4893   fi
4894 done
4895 done
4896 IFS=$as_save_IFS
4897
4898   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4899   ;;
4900 esac
4901 fi
4902 GROWISOFS=$ac_cv_path_GROWISOFS
4903 if test -n "$GROWISOFS"; then
4904   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4905 echo "${ECHO_T}$GROWISOFS" >&6; }
4906 else
4907   { echo "$as_me:$LINENO: result: no" >&5
4908 echo "${ECHO_T}no" >&6; }
4909 fi
4910
4911
4912 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4913 set dummy dvd+rw-mediainfo; ac_word=$2
4914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4916 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4917   echo $ECHO_N "(cached) $ECHO_C" >&6
4918 else
4919   case $DVDRWMEDIAINFO in
4920   [\\/]* | ?:[\\/]*)
4921   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4922   ;;
4923   *)
4924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925 for as_dir in $PATH
4926 do
4927   IFS=$as_save_IFS
4928   test -z "$as_dir" && as_dir=.
4929   for ac_exec_ext in '' $ac_executable_extensions; do
4930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4931     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4933     break 2
4934   fi
4935 done
4936 done
4937 IFS=$as_save_IFS
4938
4939   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4940   ;;
4941 esac
4942 fi
4943 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4944 if test -n "$DVDRWMEDIAINFO"; then
4945   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4946 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4947 else
4948   { echo "$as_me:$LINENO: result: no" >&5
4949 echo "${ECHO_T}no" >&6; }
4950 fi
4951
4952
4953 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4954 set dummy dvd+rw-format; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   case $DVDRWFORMAT in
4961   [\\/]* | ?:[\\/]*)
4962   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4963   ;;
4964   *)
4965   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4966 for as_dir in $PATH
4967 do
4968   IFS=$as_save_IFS
4969   test -z "$as_dir" && as_dir=.
4970   for ac_exec_ext in '' $ac_executable_extensions; do
4971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4972     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4974     break 2
4975   fi
4976 done
4977 done
4978 IFS=$as_save_IFS
4979
4980   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4981   ;;
4982 esac
4983 fi
4984 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4985 if test -n "$DVDRWFORMAT"; then
4986   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4987 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4988 else
4989   { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4991 fi
4992
4993
4994 # Extract the first word of "pkg-config", so it can be a program name with args.
4995 set dummy pkg-config; ac_word=$2
4996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4998 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   case $PKGCONFIG in
5002   [\\/]* | ?:[\\/]*)
5003   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5004   ;;
5005   *)
5006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5007 for as_dir in $PATH
5008 do
5009   IFS=$as_save_IFS
5010   test -z "$as_dir" && as_dir=.
5011   for ac_exec_ext in '' $ac_executable_extensions; do
5012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5013     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5015     break 2
5016   fi
5017 done
5018 done
5019 IFS=$as_save_IFS
5020
5021   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5022   ;;
5023 esac
5024 fi
5025 PKGCONFIG=$ac_cv_path_PKGCONFIG
5026 if test -n "$PKGCONFIG"; then
5027   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5028 echo "${ECHO_T}$PKGCONFIG" >&6; }
5029 else
5030   { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5032 fi
5033
5034
5035
5036 if test "x$WXCONFIG" = x; then
5037   WXCONFIG=wx-config
5038 fi
5039 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5040 set dummy ${WXCONFIG}; ac_word=$2
5041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5043 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5044   echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046   case $WXCONFIG in
5047   [\\/]* | ?:[\\/]*)
5048   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5049   ;;
5050   *)
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056   for ac_exec_ext in '' $ac_executable_extensions; do
5057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5058     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5059     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060     break 2
5061   fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5067   ;;
5068 esac
5069 fi
5070 WXCONFIG=$ac_cv_path_WXCONFIG
5071 if test -n "$WXCONFIG"; then
5072   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5073 echo "${ECHO_T}$WXCONFIG" >&6; }
5074 else
5075   { echo "$as_me:$LINENO: result: no" >&5
5076 echo "${ECHO_T}no" >&6; }
5077 fi
5078
5079
5080
5081 # Extract the first word of "cdrecord", so it can be a program name with args.
5082 set dummy cdrecord; ac_word=$2
5083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5085 if test "${ac_cv_path_CDRECORD+set}" = set; then
5086   echo $ECHO_N "(cached) $ECHO_C" >&6
5087 else
5088   case $CDRECORD in
5089   [\\/]* | ?:[\\/]*)
5090   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5091   ;;
5092   *)
5093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096   IFS=$as_save_IFS
5097   test -z "$as_dir" && as_dir=.
5098   for ac_exec_ext in '' $ac_executable_extensions; do
5099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5100     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5101     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102     break 2
5103   fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5109   ;;
5110 esac
5111 fi
5112 CDRECORD=$ac_cv_path_CDRECORD
5113 if test -n "$CDRECORD"; then
5114   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5115 echo "${ECHO_T}$CDRECORD" >&6; }
5116 else
5117   { echo "$as_me:$LINENO: result: no" >&5
5118 echo "${ECHO_T}no" >&6; }
5119 fi
5120
5121
5122 # Extract the first word of "pidof", so it can be a program name with args.
5123 set dummy pidof; ac_word=$2
5124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5126 if test "${ac_cv_path_PIDOF+set}" = set; then
5127   echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129   case $PIDOF in
5130   [\\/]* | ?:[\\/]*)
5131   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5132   ;;
5133   *)
5134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137   IFS=$as_save_IFS
5138   test -z "$as_dir" && as_dir=.
5139   for ac_exec_ext in '' $ac_executable_extensions; do
5140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5141     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143     break 2
5144   fi
5145 done
5146 done
5147 IFS=$as_save_IFS
5148
5149   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5150   ;;
5151 esac
5152 fi
5153 PIDOF=$ac_cv_path_PIDOF
5154 if test -n "$PIDOF"; then
5155   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5156 echo "${ECHO_T}$PIDOF" >&6; }
5157 else
5158   { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5160 fi
5161
5162
5163 for ac_prog in gawk mawk nawk awk
5164 do
5165   # Extract the first word of "$ac_prog", so it can be a program name with args.
5166 set dummy $ac_prog; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_prog_AWK+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   if test -n "$AWK"; then
5173   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178   IFS=$as_save_IFS
5179   test -z "$as_dir" && as_dir=.
5180   for ac_exec_ext in '' $ac_executable_extensions; do
5181   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5182     ac_cv_prog_AWK="$ac_prog"
5183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184     break 2
5185   fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 AWK=$ac_cv_prog_AWK
5193 if test -n "$AWK"; then
5194   { echo "$as_me:$LINENO: result: $AWK" >&5
5195 echo "${ECHO_T}$AWK" >&6; }
5196 else
5197   { echo "$as_me:$LINENO: result: no" >&5
5198 echo "${ECHO_T}no" >&6; }
5199 fi
5200
5201
5202   test -n "$AWK" && break
5203 done
5204
5205 # Some AWK programs fail, so test it and warn the user
5206 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5207       { if ((prog == $2) || (("(" prog ")") == $2) ||
5208            (("" prog "") == $2) ||
5209            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5210 else
5211   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5212    The regex engine of $AWK is too broken to be used you
5213    might want to install GNU AWK.
5214    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5215 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5216    The regex engine of $AWK is too broken to be used you
5217    might want to install GNU AWK.
5218    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5219    { (exit 1); exit 1; }; }
5220 fi
5221 THE_AWK=$AWK
5222 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5223 set dummy $THE_AWK; ac_word=$2
5224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_AWK+set}" = set; then
5227   echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229   case $AWK in
5230   [\\/]* | ?:[\\/]*)
5231   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5232   ;;
5233   *)
5234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH
5236 do
5237   IFS=$as_save_IFS
5238   test -z "$as_dir" && as_dir=.
5239   for ac_exec_ext in '' $ac_executable_extensions; do
5240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5241     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5242     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5243     break 2
5244   fi
5245 done
5246 done
5247 IFS=$as_save_IFS
5248
5249   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5250   ;;
5251 esac
5252 fi
5253 AWK=$ac_cv_path_AWK
5254 if test -n "$AWK"; then
5255   { echo "$as_me:$LINENO: result: $AWK" >&5
5256 echo "${ECHO_T}$AWK" >&6; }
5257 else
5258   { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5260 fi
5261
5262
5263
5264 test -n "$ARFLAG" || ARFLAGS="cr"
5265
5266
5267 MAKE_SHELL=/bin/sh
5268
5269
5270
5271
5272
5273
5274
5275 # Make sure we can run config.sub.
5276 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5277   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5278 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5279    { (exit 1); exit 1; }; }
5280
5281 { echo "$as_me:$LINENO: checking build system type" >&5
5282 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5283 if test "${ac_cv_build+set}" = set; then
5284   echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286   ac_build_alias=$build_alias
5287 test "x$ac_build_alias" = x &&
5288   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5289 test "x$ac_build_alias" = x &&
5290   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5291 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5292    { (exit 1); exit 1; }; }
5293 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5294   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5295 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5296    { (exit 1); exit 1; }; }
5297
5298 fi
5299 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5300 echo "${ECHO_T}$ac_cv_build" >&6; }
5301 case $ac_cv_build in
5302 *-*-*) ;;
5303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5304 echo "$as_me: error: invalid value of canonical build" >&2;}
5305    { (exit 1); exit 1; }; };;
5306 esac
5307 build=$ac_cv_build
5308 ac_save_IFS=$IFS; IFS='-'
5309 set x $ac_cv_build
5310 shift
5311 build_cpu=$1
5312 build_vendor=$2
5313 shift; shift
5314 # Remember, the first character of IFS is used to create $*,
5315 # except with old shells:
5316 build_os=$*
5317 IFS=$ac_save_IFS
5318 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5319
5320
5321
5322 { echo "$as_me:$LINENO: checking host system type" >&5
5323 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5324 if test "${ac_cv_host+set}" = set; then
5325   echo $ECHO_N "(cached) $ECHO_C" >&6
5326 else
5327   if test "x$host_alias" = x; then
5328   ac_cv_host=$ac_cv_build
5329 else
5330   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5331     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5332 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5333    { (exit 1); exit 1; }; }
5334 fi
5335
5336 fi
5337 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5338 echo "${ECHO_T}$ac_cv_host" >&6; }
5339 case $ac_cv_host in
5340 *-*-*) ;;
5341 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5342 echo "$as_me: error: invalid value of canonical host" >&2;}
5343    { (exit 1); exit 1; }; };;
5344 esac
5345 host=$ac_cv_host
5346 ac_save_IFS=$IFS; IFS='-'
5347 set x $ac_cv_host
5348 shift
5349 host_cpu=$1
5350 host_vendor=$2
5351 shift; shift
5352 # Remember, the first character of IFS is used to create $*,
5353 # except with old shells:
5354 host_os=$*
5355 IFS=$ac_save_IFS
5356 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5357
5358
5359 case $host_os in
5360   *cygwin* ) CYGWIN=yes;;
5361          * ) CYGWIN=no;;
5362 esac
5363
5364 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5365 then
5366
5367
5368 if $TRUEPRG; then
5369   HAVE_SUN_OS_TRUE=
5370   HAVE_SUN_OS_FALSE='#'
5371 else
5372   HAVE_SUN_OS_TRUE='#'
5373   HAVE_SUN_OS_FALSE=
5374 fi
5375         cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_SUN_OS 1
5377 _ACEOF
5378
5379 else
5380
5381
5382 if $FALSEPRG; then
5383   HAVE_SUN_OS_TRUE=
5384   HAVE_SUN_OS_FALSE='#'
5385 else
5386   HAVE_SUN_OS_TRUE='#'
5387   HAVE_SUN_OS_FALSE=
5388 fi
5389 fi
5390
5391 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5392 then
5393
5394
5395 if $TRUEPRG; then
5396   HAVE_OSF1_OS_TRUE=
5397   HAVE_OSF1_OS_FALSE='#'
5398 else
5399   HAVE_OSF1_OS_TRUE='#'
5400   HAVE_OSF1_OS_FALSE=
5401 fi
5402         cat >>confdefs.h <<\_ACEOF
5403 #define HAVE_OSF1_OS 1
5404 _ACEOF
5405
5406 else
5407
5408
5409 if $FALSEPRG; then
5410   HAVE_OSF1_OS_TRUE=
5411   HAVE_OSF1_OS_FALSE='#'
5412 else
5413   HAVE_OSF1_OS_TRUE='#'
5414   HAVE_OSF1_OS_FALSE=
5415 fi
5416 fi
5417
5418 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5419 then
5420
5421
5422 if $TRUEPRG; then
5423   HAVE_AIX_OS_TRUE=
5424   HAVE_AIX_OS_FALSE='#'
5425 else
5426   HAVE_AIX_OS_TRUE='#'
5427   HAVE_AIX_OS_FALSE=
5428 fi
5429         cat >>confdefs.h <<\_ACEOF
5430 #define HAVE_AIX_OS 1
5431 _ACEOF
5432
5433 else
5434
5435
5436 if $FALSEPRG; then
5437   HAVE_AIX_OS_TRUE=
5438   HAVE_AIX_OS_FALSE='#'
5439 else
5440   HAVE_AIX_OS_TRUE='#'
5441   HAVE_AIX_OS_FALSE=
5442 fi
5443 fi
5444
5445 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5446 then
5447
5448
5449 if $TRUEPRG; then
5450   HAVE_HPUX_OS_TRUE=
5451   HAVE_HPUX_OS_FALSE='#'
5452 else
5453   HAVE_HPUX_OS_TRUE='#'
5454   HAVE_HPUX_OS_FALSE=
5455 fi
5456         cat >>confdefs.h <<\_ACEOF
5457 #define HAVE_HPUX_OS 1
5458 _ACEOF
5459
5460 else
5461
5462
5463 if $FALSEPRG; then
5464   HAVE_HPUX_OS_TRUE=
5465   HAVE_HPUX_OS_FALSE='#'
5466 else
5467   HAVE_HPUX_OS_TRUE='#'
5468   HAVE_HPUX_OS_FALSE=
5469 fi
5470 fi
5471
5472 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5473 then
5474
5475
5476 if $TRUEPRG; then
5477   HAVE_LINUX_OS_TRUE=
5478   HAVE_LINUX_OS_FALSE='#'
5479 else
5480   HAVE_LINUX_OS_TRUE='#'
5481   HAVE_LINUX_OS_FALSE=
5482 fi
5483         cat >>confdefs.h <<\_ACEOF
5484 #define HAVE_LINUX_OS 1
5485 _ACEOF
5486
5487 else
5488
5489
5490 if $FALSEPRG; then
5491   HAVE_LINUX_OS_TRUE=
5492   HAVE_LINUX_OS_FALSE='#'
5493 else
5494   HAVE_LINUX_OS_TRUE='#'
5495   HAVE_LINUX_OS_FALSE=
5496 fi
5497 fi
5498
5499 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5500 then
5501
5502
5503 if $TRUEPRG; then
5504   HAVE_FREEBSD_OS_TRUE=
5505   HAVE_FREEBSD_OS_FALSE='#'
5506 else
5507   HAVE_FREEBSD_OS_TRUE='#'
5508   HAVE_FREEBSD_OS_FALSE=
5509 fi
5510         cat >>confdefs.h <<\_ACEOF
5511 #define HAVE_FREEBSD_OS 1
5512 _ACEOF
5513
5514 else
5515
5516
5517 if $FALSEPRG; then
5518   HAVE_FREEBSD_OS_TRUE=
5519   HAVE_FREEBSD_OS_FALSE='#'
5520 else
5521   HAVE_FREEBSD_OS_TRUE='#'
5522   HAVE_FREEBSD_OS_FALSE=
5523 fi
5524 fi
5525
5526 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5527 then
5528
5529
5530 if $TRUEPRG; then
5531   HAVE_NETBSD_OS_TRUE=
5532   HAVE_NETBSD_OS_FALSE='#'
5533 else
5534   HAVE_NETBSD_OS_TRUE='#'
5535   HAVE_NETBSD_OS_FALSE=
5536 fi
5537         cat >>confdefs.h <<\_ACEOF
5538 #define HAVE_NETBSD_OS 1
5539 _ACEOF
5540
5541 else
5542
5543
5544 if $FALSEPRG; then
5545   HAVE_NETBSD_OS_TRUE=
5546   HAVE_NETBSD_OS_FALSE='#'
5547 else
5548   HAVE_NETBSD_OS_TRUE='#'
5549   HAVE_NETBSD_OS_FALSE=
5550 fi
5551 fi
5552
5553 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5554 then
5555
5556
5557 if $TRUEPRG; then
5558   HAVE_OPENBSD_OS_TRUE=
5559   HAVE_OPENBSD_OS_FALSE='#'
5560 else
5561   HAVE_OPENBSD_OS_TRUE='#'
5562   HAVE_OPENBSD_OS_FALSE=
5563 fi
5564         cat >>confdefs.h <<\_ACEOF
5565 #define HAVE_OPENBSD_OS 1
5566 _ACEOF
5567
5568 else
5569
5570
5571 if $FALSEPRG; then
5572   HAVE_OPENBSD_OS_TRUE=
5573   HAVE_OPENBSD_OS_FALSE='#'
5574 else
5575   HAVE_OPENBSD_OS_TRUE='#'
5576   HAVE_OPENBSD_OS_FALSE=
5577 fi
5578 fi
5579
5580 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5581 then
5582
5583
5584 if $TRUEPRG; then
5585   HAVE_BSDI_OS_TRUE=
5586   HAVE_BSDI_OS_FALSE='#'
5587 else
5588   HAVE_BSDI_OS_TRUE='#'
5589   HAVE_BSDI_OS_FALSE=
5590 fi
5591         cat >>confdefs.h <<\_ACEOF
5592 #define HAVE_BSDI_OS 1
5593 _ACEOF
5594
5595 else
5596
5597
5598 if $FALSEPRG; then
5599   HAVE_BSDI_OS_TRUE=
5600   HAVE_BSDI_OS_FALSE='#'
5601 else
5602   HAVE_BSDI_OS_TRUE='#'
5603   HAVE_BSDI_OS_FALSE=
5604 fi
5605 fi
5606
5607 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5608 then
5609
5610
5611 if $TRUEPRG; then
5612   HAVE_SGI_OS_TRUE=
5613   HAVE_SGI_OS_FALSE='#'
5614 else
5615   HAVE_SGI_OS_TRUE='#'
5616   HAVE_SGI_OS_FALSE=
5617 fi
5618         cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_SGI_OS 1
5620 _ACEOF
5621
5622 else
5623
5624
5625 if $FALSEPRG; then
5626   HAVE_SGI_OS_TRUE=
5627   HAVE_SGI_OS_FALSE='#'
5628 else
5629   HAVE_SGI_OS_TRUE='#'
5630   HAVE_SGI_OS_FALSE=
5631 fi
5632 fi
5633
5634 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5635 then
5636
5637
5638 if $TRUEPRG; then
5639   HAVE_IRIX_OS_TRUE=
5640   HAVE_IRIX_OS_FALSE='#'
5641 else
5642   HAVE_IRIX_OS_TRUE='#'
5643   HAVE_IRIX_OS_FALSE=
5644 fi
5645         cat >>confdefs.h <<\_ACEOF
5646 #define HAVE_IRIX_OS 1
5647 _ACEOF
5648
5649 else
5650
5651
5652 if $FALSEPRG; then
5653   HAVE_IRIX_OS_TRUE=
5654   HAVE_IRIX_OS_FALSE='#'
5655 else
5656   HAVE_IRIX_OS_TRUE='#'
5657   HAVE_IRIX_OS_FALSE=
5658 fi
5659 fi
5660
5661 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5662 then
5663
5664
5665 if $TRUEPRG; then
5666   HAVE_DARWIN_OS_TRUE=
5667   HAVE_DARWIN_OS_FALSE='#'
5668 else
5669   HAVE_DARWIN_OS_TRUE='#'
5670   HAVE_DARWIN_OS_FALSE=
5671 fi
5672     cat >>confdefs.h <<\_ACEOF
5673 #define HAVE_DARWIN_OS 1
5674 _ACEOF
5675
5676 else
5677
5678
5679 if $FALSEPRG; then
5680   HAVE_DARWIN_OS_TRUE=
5681   HAVE_DARWIN_OS_FALSE='#'
5682 else
5683   HAVE_DARWIN_OS_TRUE='#'
5684   HAVE_DARWIN_OS_FALSE=
5685 fi
5686 fi
5687
5688
5689 # -----------------------------------------------------------
5690 # ----------------------------------------------------------
5691 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5692 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5693 if test "x$DISTNAME" != "x"
5694 then
5695         echo "distname set to $DISTNAME"
5696 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5697 then
5698         DISTNAME=alpha
5699 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5700 then
5701         DISTNAME=aix
5702 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5703 then
5704         DISTNAME=hpux
5705 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5706 then
5707         DISTNAME=solaris
5708 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5709 then
5710         DISTNAME=freebsd
5711 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5712 then
5713         DISTNAME=netbsd
5714 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5715 then
5716         DISTNAME=openbsd
5717 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5718 then
5719         DISTNAME=irix
5720 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5721 then
5722         DISTNAME=bsdi
5723 elif test -f /etc/SuSE-release
5724 then
5725         DISTNAME=suse
5726 elif test -d /etc/SuSEconfig
5727 then
5728         DISTNAME=suse5
5729 elif test -f /etc/mandrake-release
5730 then
5731         DISTNAME=mandrake
5732 elif test -f /etc/whitebox-release
5733 then
5734        DISTNAME=redhat
5735 elif test -f /etc/redhat-release
5736 then
5737         DISTNAME=redhat
5738 elif test -f /etc/gentoo-release
5739 then
5740         DISTNAME=gentoo
5741 elif test -f /etc/debian_version
5742 then
5743         DISTNAME=debian
5744 elif test -f /etc/slackware-version
5745 then
5746         DISTNAME=slackware
5747 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5748 then
5749     DISTNAME=darwin
5750 elif test -f /etc/engarde-version
5751 then
5752         DISTNAME=engarde
5753 elif test "$CYGWIN" = yes
5754 then
5755         DISTNAME=cygwin
5756         cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_CYGWIN 1
5758 _ACEOF
5759
5760 else
5761         DISTNAME=unknown
5762 fi
5763 { echo "$as_me:$LINENO: result: done" >&5
5764 echo "${ECHO_T}done" >&6; }
5765
5766
5767 # --------------------------------------------------
5768 # Suppport for gettext (translations)
5769 # By default, $datadir is ${prefix}/share
5770 # --------------------------------------------------
5771 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5772 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5773 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5774 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5775   echo $ECHO_N "(cached) $ECHO_C" >&6
5776 else
5777   cat >conftest.make <<\_ACEOF
5778 SHELL = /bin/sh
5779 all:
5780         @echo '@@@%%%=$(MAKE)=@@@%%%'
5781 _ACEOF
5782 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5783 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5784   *@@@%%%=?*=@@@%%%*)
5785     eval ac_cv_prog_make_${ac_make}_set=yes;;
5786   *)
5787     eval ac_cv_prog_make_${ac_make}_set=no;;
5788 esac
5789 rm -f conftest.make
5790 fi
5791 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5792   { echo "$as_me:$LINENO: result: yes" >&5
5793 echo "${ECHO_T}yes" >&6; }
5794   SET_MAKE=
5795 else
5796   { echo "$as_me:$LINENO: result: no" >&5
5797 echo "${ECHO_T}no" >&6; }
5798   SET_MAKE="MAKE=${MAKE-make}"
5799 fi
5800
5801
5802
5803         MKINSTALLDIRS=
5804   if test -n "$ac_aux_dir"; then
5805     case "$ac_aux_dir" in
5806       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5807       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5808     esac
5809   fi
5810   if test -z "$MKINSTALLDIRS"; then
5811     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5812   fi
5813
5814
5815
5816   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5817 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5818     # Check whether --enable-nls was given.
5819 if test "${enable_nls+set}" = set; then
5820   enableval=$enable_nls; USE_NLS=$enableval
5821 else
5822   USE_NLS=yes
5823 fi
5824
5825   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5826 echo "${ECHO_T}$USE_NLS" >&6; }
5827
5828
5829
5830
5831
5832
5833 # Prepare PATH_SEPARATOR.
5834 # The user is always right.
5835 if test "${PATH_SEPARATOR+set}" != set; then
5836   echo "#! /bin/sh" >conf$$.sh
5837   echo  "exit 0"   >>conf$$.sh
5838   chmod +x conf$$.sh
5839   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5840     PATH_SEPARATOR=';'
5841   else
5842     PATH_SEPARATOR=:
5843   fi
5844   rm -f conf$$.sh
5845 fi
5846
5847 # Find out how to test for executable files. Don't use a zero-byte file,
5848 # as systems may use methods other than mode bits to determine executability.
5849 cat >conf$$.file <<_ASEOF
5850 #! /bin/sh
5851 exit 0
5852 _ASEOF
5853 chmod +x conf$$.file
5854 if test -x conf$$.file >/dev/null 2>&1; then
5855   ac_executable_p="test -x"
5856 else
5857   ac_executable_p="test -f"
5858 fi
5859 rm -f conf$$.file
5860
5861 # Extract the first word of "msgfmt", so it can be a program name with args.
5862 set dummy msgfmt; ac_word=$2
5863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5865 if test "${ac_cv_path_MSGFMT+set}" = set; then
5866   echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868   case "$MSGFMT" in
5869   [\\/]* | ?:[\\/]*)
5870     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5871     ;;
5872   *)
5873     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5874     for ac_dir in $PATH; do
5875       IFS="$ac_save_IFS"
5876       test -z "$ac_dir" && ac_dir=.
5877       for ac_exec_ext in '' $ac_executable_extensions; do
5878         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5879           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5880           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5881      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5882             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5883             break 2
5884           fi
5885         fi
5886       done
5887     done
5888     IFS="$ac_save_IFS"
5889   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5890     ;;
5891 esac
5892 fi
5893 MSGFMT="$ac_cv_path_MSGFMT"
5894 if test "$MSGFMT" != ":"; then
5895   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5896 echo "${ECHO_T}$MSGFMT" >&6; }
5897 else
5898   { echo "$as_me:$LINENO: result: no" >&5
5899 echo "${ECHO_T}no" >&6; }
5900 fi
5901
5902   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5903 set dummy gmsgfmt; ac_word=$2
5904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5906 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5907   echo $ECHO_N "(cached) $ECHO_C" >&6
5908 else
5909   case $GMSGFMT in
5910   [\\/]* | ?:[\\/]*)
5911   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5912   ;;
5913   *)
5914   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915 for as_dir in $PATH
5916 do
5917   IFS=$as_save_IFS
5918   test -z "$as_dir" && as_dir=.
5919   for ac_exec_ext in '' $ac_executable_extensions; do
5920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5921     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5923     break 2
5924   fi
5925 done
5926 done
5927 IFS=$as_save_IFS
5928
5929   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5930   ;;
5931 esac
5932 fi
5933 GMSGFMT=$ac_cv_path_GMSGFMT
5934 if test -n "$GMSGFMT"; then
5935   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5936 echo "${ECHO_T}$GMSGFMT" >&6; }
5937 else
5938   { echo "$as_me:$LINENO: result: no" >&5
5939 echo "${ECHO_T}no" >&6; }
5940 fi
5941
5942
5943
5944
5945 # Prepare PATH_SEPARATOR.
5946 # The user is always right.
5947 if test "${PATH_SEPARATOR+set}" != set; then
5948   echo "#! /bin/sh" >conf$$.sh
5949   echo  "exit 0"   >>conf$$.sh
5950   chmod +x conf$$.sh
5951   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5952     PATH_SEPARATOR=';'
5953   else
5954     PATH_SEPARATOR=:
5955   fi
5956   rm -f conf$$.sh
5957 fi
5958
5959 # Find out how to test for executable files. Don't use a zero-byte file,
5960 # as systems may use methods other than mode bits to determine executability.
5961 cat >conf$$.file <<_ASEOF
5962 #! /bin/sh
5963 exit 0
5964 _ASEOF
5965 chmod +x conf$$.file
5966 if test -x conf$$.file >/dev/null 2>&1; then
5967   ac_executable_p="test -x"
5968 else
5969   ac_executable_p="test -f"
5970 fi
5971 rm -f conf$$.file
5972
5973 # Extract the first word of "xgettext", so it can be a program name with args.
5974 set dummy xgettext; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5978   echo $ECHO_N "(cached) $ECHO_C" >&6
5979 else
5980   case "$XGETTEXT" in
5981   [\\/]* | ?:[\\/]*)
5982     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5983     ;;
5984   *)
5985     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5986     for ac_dir in $PATH; do
5987       IFS="$ac_save_IFS"
5988       test -z "$ac_dir" && ac_dir=.
5989       for ac_exec_ext in '' $ac_executable_extensions; do
5990         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5991           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5992           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5993      (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
5994             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5995             break 2
5996           fi
5997         fi
5998       done
5999     done
6000     IFS="$ac_save_IFS"
6001   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6002     ;;
6003 esac
6004 fi
6005 XGETTEXT="$ac_cv_path_XGETTEXT"
6006 if test "$XGETTEXT" != ":"; then
6007   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6008 echo "${ECHO_T}$XGETTEXT" >&6; }
6009 else
6010   { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6012 fi
6013
6014     rm -f messages.po
6015
6016
6017 # Prepare PATH_SEPARATOR.
6018 # The user is always right.
6019 if test "${PATH_SEPARATOR+set}" != set; then
6020   echo "#! /bin/sh" >conf$$.sh
6021   echo  "exit 0"   >>conf$$.sh
6022   chmod +x conf$$.sh
6023   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6024     PATH_SEPARATOR=';'
6025   else
6026     PATH_SEPARATOR=:
6027   fi
6028   rm -f conf$$.sh
6029 fi
6030
6031 # Find out how to test for executable files. Don't use a zero-byte file,
6032 # as systems may use methods other than mode bits to determine executability.
6033 cat >conf$$.file <<_ASEOF
6034 #! /bin/sh
6035 exit 0
6036 _ASEOF
6037 chmod +x conf$$.file
6038 if test -x conf$$.file >/dev/null 2>&1; then
6039   ac_executable_p="test -x"
6040 else
6041   ac_executable_p="test -f"
6042 fi
6043 rm -f conf$$.file
6044
6045 # Extract the first word of "msgmerge", so it can be a program name with args.
6046 set dummy msgmerge; ac_word=$2
6047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6049 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6050   echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052   case "$MSGMERGE" in
6053   [\\/]* | ?:[\\/]*)
6054     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6055     ;;
6056   *)
6057     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6058     for ac_dir in $PATH; do
6059       IFS="$ac_save_IFS"
6060       test -z "$ac_dir" && ac_dir=.
6061       for ac_exec_ext in '' $ac_executable_extensions; do
6062         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6063           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6064           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6065             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6066             break 2
6067           fi
6068         fi
6069       done
6070     done
6071     IFS="$ac_save_IFS"
6072   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6073     ;;
6074 esac
6075 fi
6076 MSGMERGE="$ac_cv_path_MSGMERGE"
6077 if test "$MSGMERGE" != ":"; then
6078   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6079 echo "${ECHO_T}$MSGMERGE" >&6; }
6080 else
6081   { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6083 fi
6084
6085
6086       if test "$GMSGFMT" != ":"; then
6087             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6088        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6089       : ;
6090     else
6091       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6092       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6093 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6094       GMSGFMT=":"
6095     fi
6096   fi
6097
6098       if test "$XGETTEXT" != ":"; then
6099             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6100        (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
6101       : ;
6102     else
6103       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6104 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6105       XGETTEXT=":"
6106     fi
6107         rm -f messages.po
6108   fi
6109
6110   ac_config_commands="$ac_config_commands default-1"
6111
6112
6113
6114       if test "X$prefix" = "XNONE"; then
6115     acl_final_prefix="$ac_default_prefix"
6116   else
6117     acl_final_prefix="$prefix"
6118   fi
6119   if test "X$exec_prefix" = "XNONE"; then
6120     acl_final_exec_prefix='${prefix}'
6121   else
6122     acl_final_exec_prefix="$exec_prefix"
6123   fi
6124   acl_save_prefix="$prefix"
6125   prefix="$acl_final_prefix"
6126   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6127   prefix="$acl_save_prefix"
6128
6129
6130 # Check whether --with-gnu-ld was given.
6131 if test "${with_gnu_ld+set}" = set; then
6132   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6133 else
6134   with_gnu_ld=no
6135 fi
6136
6137 # Prepare PATH_SEPARATOR.
6138 # The user is always right.
6139 if test "${PATH_SEPARATOR+set}" != set; then
6140   echo "#! /bin/sh" >conf$$.sh
6141   echo  "exit 0"   >>conf$$.sh
6142   chmod +x conf$$.sh
6143   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6144     PATH_SEPARATOR=';'
6145   else
6146     PATH_SEPARATOR=:
6147   fi
6148   rm -f conf$$.sh
6149 fi
6150 ac_prog=ld
6151 if test "$GCC" = yes; then
6152   # Check if gcc -print-prog-name=ld gives a path.
6153   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6154 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6155   case $host in
6156   *-*-mingw*)
6157     # gcc leaves a trailing carriage return which upsets mingw
6158     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6159   *)
6160     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6161   esac
6162   case $ac_prog in
6163     # Accept absolute paths.
6164     [\\/]* | [A-Za-z]:[\\/]*)
6165       re_direlt='/[^/][^/]*/\.\./'
6166       # Canonicalize the path of ld
6167       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6168       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6169         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6170       done
6171       test -z "$LD" && LD="$ac_prog"
6172       ;;
6173   "")
6174     # If it fails, then pretend we aren't using GCC.
6175     ac_prog=ld
6176     ;;
6177   *)
6178     # If it is relative, then search for the first ld in PATH.
6179     with_gnu_ld=unknown
6180     ;;
6181   esac
6182 elif test "$with_gnu_ld" = yes; then
6183   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6184 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6185 else
6186   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6187 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6188 fi
6189 if test "${acl_cv_path_LD+set}" = set; then
6190   echo $ECHO_N "(cached) $ECHO_C" >&6
6191 else
6192   if test -z "$LD"; then
6193   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6194   for ac_dir in $PATH; do
6195     test -z "$ac_dir" && ac_dir=.
6196     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6197       acl_cv_path_LD="$ac_dir/$ac_prog"
6198       # Check to see if the program is GNU ld.  I'd rather use --version,
6199       # but apparently some GNU ld's only accept -v.
6200       # Break only if it was the GNU/non-GNU ld that we prefer.
6201       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6202       *GNU* | *'with BFD'*)
6203         test "$with_gnu_ld" != no && break ;;
6204       *)
6205         test "$with_gnu_ld" != yes && break ;;
6206       esac
6207     fi
6208   done
6209   IFS="$ac_save_ifs"
6210 else
6211   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6212 fi
6213 fi
6214
6215 LD="$acl_cv_path_LD"
6216 if test -n "$LD"; then
6217   { echo "$as_me:$LINENO: result: $LD" >&5
6218 echo "${ECHO_T}$LD" >&6; }
6219 else
6220   { echo "$as_me:$LINENO: result: no" >&5
6221 echo "${ECHO_T}no" >&6; }
6222 fi
6223 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6224 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6225    { (exit 1); exit 1; }; }
6226 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6227 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6228 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6229   echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6232 case `$LD -v 2>&1 </dev/null` in
6233 *GNU* | *'with BFD'*)
6234   acl_cv_prog_gnu_ld=yes ;;
6235 *)
6236   acl_cv_prog_gnu_ld=no ;;
6237 esac
6238 fi
6239 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6240 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6241 with_gnu_ld=$acl_cv_prog_gnu_ld
6242
6243
6244
6245
6246                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6247 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6248 if test "${acl_cv_rpath+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251
6252     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6253     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6254     . ./conftest.sh
6255     rm -f ./conftest.sh
6256     acl_cv_rpath=done
6257
6258 fi
6259 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6260 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6261   wl="$acl_cv_wl"
6262   libext="$acl_cv_libext"
6263   shlibext="$acl_cv_shlibext"
6264   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6265   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6266   hardcode_direct="$acl_cv_hardcode_direct"
6267   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6268     # Check whether --enable-rpath was given.
6269 if test "${enable_rpath+set}" = set; then
6270   enableval=$enable_rpath; :
6271 else
6272   enable_rpath=yes
6273 fi
6274
6275
6276
6277
6278
6279
6280
6281
6282     use_additional=yes
6283
6284   acl_save_prefix="$prefix"
6285   prefix="$acl_final_prefix"
6286   acl_save_exec_prefix="$exec_prefix"
6287   exec_prefix="$acl_final_exec_prefix"
6288
6289     eval additional_includedir=\"$includedir\"
6290     eval additional_libdir=\"$libdir\"
6291
6292   exec_prefix="$acl_save_exec_prefix"
6293   prefix="$acl_save_prefix"
6294
6295
6296 # Check whether --with-libiconv-prefix was given.
6297 if test "${with_libiconv_prefix+set}" = set; then
6298   withval=$with_libiconv_prefix;
6299     if test "X$withval" = "Xno"; then
6300       use_additional=no
6301     else
6302       if test "X$withval" = "X"; then
6303
6304   acl_save_prefix="$prefix"
6305   prefix="$acl_final_prefix"
6306   acl_save_exec_prefix="$exec_prefix"
6307   exec_prefix="$acl_final_exec_prefix"
6308
6309           eval additional_includedir=\"$includedir\"
6310           eval additional_libdir=\"$libdir\"
6311
6312   exec_prefix="$acl_save_exec_prefix"
6313   prefix="$acl_save_prefix"
6314
6315       else
6316         additional_includedir="$withval/include"
6317         additional_libdir="$withval/lib"
6318       fi
6319     fi
6320
6321 fi
6322
6323       LIBICONV=
6324   LTLIBICONV=
6325   INCICONV=
6326   rpathdirs=
6327   ltrpathdirs=
6328   names_already_handled=
6329   names_next_round='iconv '
6330   while test -n "$names_next_round"; do
6331     names_this_round="$names_next_round"
6332     names_next_round=
6333     for name in $names_this_round; do
6334       already_handled=
6335       for n in $names_already_handled; do
6336         if test "$n" = "$name"; then
6337           already_handled=yes
6338           break
6339         fi
6340       done
6341       if test -z "$already_handled"; then
6342         names_already_handled="$names_already_handled $name"
6343                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6344         eval value=\"\$HAVE_LIB$uppername\"
6345         if test -n "$value"; then
6346           if test "$value" = yes; then
6347             eval value=\"\$LIB$uppername\"
6348             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6349             eval value=\"\$LTLIB$uppername\"
6350             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6351           else
6352                                     :
6353           fi
6354         else
6355                               found_dir=
6356           found_la=
6357           found_so=
6358           found_a=
6359           if test $use_additional = yes; then
6360             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6361               found_dir="$additional_libdir"
6362               found_so="$additional_libdir/lib$name.$shlibext"
6363               if test -f "$additional_libdir/lib$name.la"; then
6364                 found_la="$additional_libdir/lib$name.la"
6365               fi
6366             else
6367               if test -f "$additional_libdir/lib$name.$libext"; then
6368                 found_dir="$additional_libdir"
6369                 found_a="$additional_libdir/lib$name.$libext"
6370                 if test -f "$additional_libdir/lib$name.la"; then
6371                   found_la="$additional_libdir/lib$name.la"
6372                 fi
6373               fi
6374             fi
6375           fi
6376           if test "X$found_dir" = "X"; then
6377             for x in $LDFLAGS $LTLIBICONV; do
6378
6379   acl_save_prefix="$prefix"
6380   prefix="$acl_final_prefix"
6381   acl_save_exec_prefix="$exec_prefix"
6382   exec_prefix="$acl_final_exec_prefix"
6383   eval x=\"$x\"
6384   exec_prefix="$acl_save_exec_prefix"
6385   prefix="$acl_save_prefix"
6386
6387               case "$x" in
6388                 -L*)
6389                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6390                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6391                     found_dir="$dir"
6392                     found_so="$dir/lib$name.$shlibext"
6393                     if test -f "$dir/lib$name.la"; then
6394                       found_la="$dir/lib$name.la"
6395                     fi
6396                   else
6397                     if test -f "$dir/lib$name.$libext"; then
6398                       found_dir="$dir"
6399                       found_a="$dir/lib$name.$libext"
6400                       if test -f "$dir/lib$name.la"; then
6401                         found_la="$dir/lib$name.la"
6402                       fi
6403                     fi
6404                   fi
6405                   ;;
6406               esac
6407               if test "X$found_dir" != "X"; then
6408                 break
6409               fi
6410             done
6411           fi
6412           if test "X$found_dir" != "X"; then
6413                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6414             if test "X$found_so" != "X"; then
6415                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6416                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6417               else
6418                                                                                 haveit=
6419                 for x in $ltrpathdirs; do
6420                   if test "X$x" = "X$found_dir"; then
6421                     haveit=yes
6422                     break
6423                   fi
6424                 done
6425                 if test -z "$haveit"; then
6426                   ltrpathdirs="$ltrpathdirs $found_dir"
6427                 fi
6428                                 if test "$hardcode_direct" = yes; then
6429                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6430                 else
6431                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6432                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6433                                                             haveit=
6434                     for x in $rpathdirs; do
6435                       if test "X$x" = "X$found_dir"; then
6436                         haveit=yes
6437                         break
6438                       fi
6439                     done
6440                     if test -z "$haveit"; then
6441                       rpathdirs="$rpathdirs $found_dir"
6442                     fi
6443                   else
6444                                                                                 haveit=
6445                     for x in $LDFLAGS $LIBICONV; do
6446
6447   acl_save_prefix="$prefix"
6448   prefix="$acl_final_prefix"
6449   acl_save_exec_prefix="$exec_prefix"
6450   exec_prefix="$acl_final_exec_prefix"
6451   eval x=\"$x\"
6452   exec_prefix="$acl_save_exec_prefix"
6453   prefix="$acl_save_prefix"
6454
6455                       if test "X$x" = "X-L$found_dir"; then
6456                         haveit=yes
6457                         break
6458                       fi
6459                     done
6460                     if test -z "$haveit"; then
6461                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6462                     fi
6463                     if test "$hardcode_minus_L" != no; then
6464                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6465                     else
6466                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6467                     fi
6468                   fi
6469                 fi
6470               fi
6471             else
6472               if test "X$found_a" != "X"; then
6473                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6474               else
6475                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6476               fi
6477             fi
6478                         additional_includedir=
6479             case "$found_dir" in
6480               */lib | */lib/)
6481                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6482                 additional_includedir="$basedir/include"
6483                 ;;
6484             esac
6485             if test "X$additional_includedir" != "X"; then
6486                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6487                 haveit=
6488                 if test "X$additional_includedir" = "X/usr/local/include"; then
6489                   if test -n "$GCC"; then
6490                     case $host_os in
6491                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6492                     esac
6493                   fi
6494                 fi
6495                 if test -z "$haveit"; then
6496                   for x in $CPPFLAGS $INCICONV; do
6497
6498   acl_save_prefix="$prefix"
6499   prefix="$acl_final_prefix"
6500   acl_save_exec_prefix="$exec_prefix"
6501   exec_prefix="$acl_final_exec_prefix"
6502   eval x=\"$x\"
6503   exec_prefix="$acl_save_exec_prefix"
6504   prefix="$acl_save_prefix"
6505
6506                     if test "X$x" = "X-I$additional_includedir"; then
6507                       haveit=yes
6508                       break
6509                     fi
6510                   done
6511                   if test -z "$haveit"; then
6512                     if test -d "$additional_includedir"; then
6513                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6514                     fi
6515                   fi
6516                 fi
6517               fi
6518             fi
6519                         if test -n "$found_la"; then
6520                                                         save_libdir="$libdir"
6521               case "$found_la" in
6522                 */* | *\\*) . "$found_la" ;;
6523                 *) . "./$found_la" ;;
6524               esac
6525               libdir="$save_libdir"
6526                             for dep in $dependency_libs; do
6527                 case "$dep" in
6528                   -L*)
6529                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6530                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6531                       haveit=
6532                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6533                         if test -n "$GCC"; then
6534                           case $host_os in
6535                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6536                           esac
6537                         fi
6538                       fi
6539                       if test -z "$haveit"; then
6540                         haveit=
6541                         for x in $LDFLAGS $LIBICONV; do
6542
6543   acl_save_prefix="$prefix"
6544   prefix="$acl_final_prefix"
6545   acl_save_exec_prefix="$exec_prefix"
6546   exec_prefix="$acl_final_exec_prefix"
6547   eval x=\"$x\"
6548   exec_prefix="$acl_save_exec_prefix"
6549   prefix="$acl_save_prefix"
6550
6551                           if test "X$x" = "X-L$additional_libdir"; then
6552                             haveit=yes
6553                             break
6554                           fi
6555                         done
6556                         if test -z "$haveit"; then
6557                           if test -d "$additional_libdir"; then
6558                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6559                           fi
6560                         fi
6561                         haveit=
6562                         for x in $LDFLAGS $LTLIBICONV; do
6563
6564   acl_save_prefix="$prefix"
6565   prefix="$acl_final_prefix"
6566   acl_save_exec_prefix="$exec_prefix"
6567   exec_prefix="$acl_final_exec_prefix"
6568   eval x=\"$x\"
6569   exec_prefix="$acl_save_exec_prefix"
6570   prefix="$acl_save_prefix"
6571
6572                           if test "X$x" = "X-L$additional_libdir"; then
6573                             haveit=yes
6574                             break
6575                           fi
6576                         done
6577                         if test -z "$haveit"; then
6578                           if test -d "$additional_libdir"; then
6579                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6580                           fi
6581                         fi
6582                       fi
6583                     fi
6584                     ;;
6585                   -R*)
6586                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6587                     if test "$enable_rpath" != no; then
6588                                                                   haveit=
6589                       for x in $rpathdirs; do
6590                         if test "X$x" = "X$dir"; then
6591                           haveit=yes
6592                           break
6593                         fi
6594                       done
6595                       if test -z "$haveit"; then
6596                         rpathdirs="$rpathdirs $dir"
6597                       fi
6598                                                                   haveit=
6599                       for x in $ltrpathdirs; do
6600                         if test "X$x" = "X$dir"; then
6601                           haveit=yes
6602                           break
6603                         fi
6604                       done
6605                       if test -z "$haveit"; then
6606                         ltrpathdirs="$ltrpathdirs $dir"
6607                       fi
6608                     fi
6609                     ;;
6610                   -l*)
6611                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6612                     ;;
6613                   *.la)
6614                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6615                     ;;
6616                   *)
6617                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6618                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6619                     ;;
6620                 esac
6621               done
6622             fi
6623           else
6624                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6625             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6626           fi
6627         fi
6628       fi
6629     done
6630   done
6631   if test "X$rpathdirs" != "X"; then
6632     if test -n "$hardcode_libdir_separator"; then
6633                         alldirs=
6634       for found_dir in $rpathdirs; do
6635         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6636       done
6637             acl_save_libdir="$libdir"
6638       libdir="$alldirs"
6639       eval flag=\"$hardcode_libdir_flag_spec\"
6640       libdir="$acl_save_libdir"
6641       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6642     else
6643             for found_dir in $rpathdirs; do
6644         acl_save_libdir="$libdir"
6645         libdir="$found_dir"
6646         eval flag=\"$hardcode_libdir_flag_spec\"
6647         libdir="$acl_save_libdir"
6648         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6649       done
6650     fi
6651   fi
6652   if test "X$ltrpathdirs" != "X"; then
6653             for found_dir in $ltrpathdirs; do
6654       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6655     done
6656   fi
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6676 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6677 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6678   echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680   gt_save_CPPFLAGS="$CPPFLAGS"
6681      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6682      gt_save_LIBS="$LIBS"
6683      LIBS="$LIBS -framework CoreFoundation"
6684      cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h.  */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h.  */
6690 #include <CFPreferences.h>
6691 int
6692 main ()
6693 {
6694 CFPreferencesCopyAppValue(NULL, NULL)
6695   ;
6696   return 0;
6697 }
6698 _ACEOF
6699 rm -f conftest.$ac_objext conftest$ac_exeext
6700 if { (ac_try="$ac_link"
6701 case "(($ac_try" in
6702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6703   *) ac_try_echo=$ac_try;;
6704 esac
6705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6706   (eval "$ac_link") 2>conftest.er1
6707   ac_status=$?
6708   grep -v '^ *+' conftest.er1 >conftest.err
6709   rm -f conftest.er1
6710   cat conftest.err >&5
6711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712   (exit $ac_status); } &&
6713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6714   { (case "(($ac_try" in
6715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716   *) ac_try_echo=$ac_try;;
6717 esac
6718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6719   (eval "$ac_try") 2>&5
6720   ac_status=$?
6721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722   (exit $ac_status); }; } &&
6723          { ac_try='test -s conftest$ac_exeext'
6724   { (case "(($ac_try" in
6725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726   *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729   (eval "$ac_try") 2>&5
6730   ac_status=$?
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); }; }; then
6733   gt_cv_func_CFPreferencesCopyAppValue=yes
6734 else
6735   echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6737
6738         gt_cv_func_CFPreferencesCopyAppValue=no
6739 fi
6740
6741 rm -f core conftest.err conftest.$ac_objext \
6742       conftest$ac_exeext conftest.$ac_ext
6743      CPPFLAGS="$gt_save_CPPFLAGS"
6744      LIBS="$gt_save_LIBS"
6745 fi
6746 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6747 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6748   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6749
6750 cat >>confdefs.h <<\_ACEOF
6751 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6752 _ACEOF
6753
6754   fi
6755     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6756 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6757 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6758   echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760   gt_save_CPPFLAGS="$CPPFLAGS"
6761      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6762      gt_save_LIBS="$LIBS"
6763      LIBS="$LIBS -framework CoreFoundation"
6764      cat >conftest.$ac_ext <<_ACEOF
6765 /* confdefs.h.  */
6766 _ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h.  */
6770 #include <CFLocale.h>
6771 int
6772 main ()
6773 {
6774 CFLocaleCopyCurrent();
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (ac_try="$ac_link"
6781 case "(($ac_try" in
6782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783   *) ac_try_echo=$ac_try;;
6784 esac
6785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6786   (eval "$ac_link") 2>conftest.er1
6787   ac_status=$?
6788   grep -v '^ *+' conftest.er1 >conftest.err
6789   rm -f conftest.er1
6790   cat conftest.err >&5
6791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792   (exit $ac_status); } &&
6793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6794   { (case "(($ac_try" in
6795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796   *) ac_try_echo=$ac_try;;
6797 esac
6798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799   (eval "$ac_try") 2>&5
6800   ac_status=$?
6801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6802   (exit $ac_status); }; } &&
6803          { ac_try='test -s conftest$ac_exeext'
6804   { (case "(($ac_try" in
6805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806   *) ac_try_echo=$ac_try;;
6807 esac
6808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6809   (eval "$ac_try") 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; }; then
6813   gt_cv_func_CFLocaleCopyCurrent=yes
6814 else
6815   echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6817
6818         gt_cv_func_CFLocaleCopyCurrent=no
6819 fi
6820
6821 rm -f core conftest.err conftest.$ac_objext \
6822       conftest$ac_exeext conftest.$ac_ext
6823      CPPFLAGS="$gt_save_CPPFLAGS"
6824      LIBS="$gt_save_LIBS"
6825 fi
6826 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6827 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6828   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6829
6830 cat >>confdefs.h <<\_ACEOF
6831 #define HAVE_CFLOCALECOPYCURRENT 1
6832 _ACEOF
6833
6834   fi
6835   INTL_MACOSX_LIBS=
6836   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6837     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6838   fi
6839
6840
6841
6842
6843   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6844 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6845     # Check whether --enable-nls was given.
6846 if test "${enable_nls+set}" = set; then
6847   enableval=$enable_nls; USE_NLS=$enableval
6848 else
6849   USE_NLS=yes
6850 fi
6851
6852   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6853 echo "${ECHO_T}$USE_NLS" >&6; }
6854
6855
6856
6857
6858   LIBINTL=
6859   LTLIBINTL=
6860   POSUB=
6861
6862     if test "$USE_NLS" = "yes"; then
6863     gt_use_preinstalled_gnugettext=no
6864
6865
6866
6867
6868
6869
6870         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6871 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6872 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6873   echo $ECHO_N "(cached) $ECHO_C" >&6
6874 else
6875   cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h.  */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h.  */
6881 #include <libintl.h>
6882 extern int _nl_msg_cat_cntr;
6883 extern int *_nl_domain_bindings;
6884 int
6885 main ()
6886 {
6887 bindtextdomain ("", "");
6888 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6889   ;
6890   return 0;
6891 }
6892 _ACEOF
6893 rm -f conftest.$ac_objext conftest$ac_exeext
6894 if { (ac_try="$ac_link"
6895 case "(($ac_try" in
6896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6897   *) ac_try_echo=$ac_try;;
6898 esac
6899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6900   (eval "$ac_link") 2>conftest.er1
6901   ac_status=$?
6902   grep -v '^ *+' conftest.er1 >conftest.err
6903   rm -f conftest.er1
6904   cat conftest.err >&5
6905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6906   (exit $ac_status); } &&
6907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6908   { (case "(($ac_try" in
6909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6910   *) ac_try_echo=$ac_try;;
6911 esac
6912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6913   (eval "$ac_try") 2>&5
6914   ac_status=$?
6915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916   (exit $ac_status); }; } &&
6917          { ac_try='test -s conftest$ac_exeext'
6918   { (case "(($ac_try" in
6919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6920   *) ac_try_echo=$ac_try;;
6921 esac
6922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6923   (eval "$ac_try") 2>&5
6924   ac_status=$?
6925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926   (exit $ac_status); }; }; then
6927   gt_cv_func_gnugettext1_libc=yes
6928 else
6929   echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932         gt_cv_func_gnugettext1_libc=no
6933 fi
6934
6935 rm -f core conftest.err conftest.$ac_objext \
6936       conftest$ac_exeext conftest.$ac_ext
6937 fi
6938 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6939 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6940
6941         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6942
6943
6944
6945
6946
6947           am_save_CPPFLAGS="$CPPFLAGS"
6948
6949   for element in $INCICONV; do
6950     haveit=
6951     for x in $CPPFLAGS; do
6952
6953   acl_save_prefix="$prefix"
6954   prefix="$acl_final_prefix"
6955   acl_save_exec_prefix="$exec_prefix"
6956   exec_prefix="$acl_final_exec_prefix"
6957   eval x=\"$x\"
6958   exec_prefix="$acl_save_exec_prefix"
6959   prefix="$acl_save_prefix"
6960
6961       if test "X$x" = "X$element"; then
6962         haveit=yes
6963         break
6964       fi
6965     done
6966     if test -z "$haveit"; then
6967       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6968     fi
6969   done
6970
6971
6972   { echo "$as_me:$LINENO: checking for iconv" >&5
6973 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6974 if test "${am_cv_func_iconv+set}" = set; then
6975   echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977
6978     am_cv_func_iconv="no, consider installing GNU libiconv"
6979     am_cv_lib_iconv=no
6980     cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986 #include <stdlib.h>
6987 #include <iconv.h>
6988 int
6989 main ()
6990 {
6991 iconv_t cd = iconv_open("","");
6992        iconv(cd,NULL,NULL,NULL,NULL);
6993        iconv_close(cd);
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 rm -f conftest.$ac_objext conftest$ac_exeext
6999 if { (ac_try="$ac_link"
7000 case "(($ac_try" in
7001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002   *) ac_try_echo=$ac_try;;
7003 esac
7004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005   (eval "$ac_link") 2>conftest.er1
7006   ac_status=$?
7007   grep -v '^ *+' conftest.er1 >conftest.err
7008   rm -f conftest.er1
7009   cat conftest.err >&5
7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } &&
7012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7013   { (case "(($ac_try" in
7014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015   *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018   (eval "$ac_try") 2>&5
7019   ac_status=$?
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); }; } &&
7022          { ac_try='test -s conftest$ac_exeext'
7023   { (case "(($ac_try" in
7024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7025   *) ac_try_echo=$ac_try;;
7026 esac
7027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7028   (eval "$ac_try") 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   am_cv_func_iconv=yes
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037
7038 fi
7039
7040 rm -f core conftest.err conftest.$ac_objext \
7041       conftest$ac_exeext conftest.$ac_ext
7042     if test "$am_cv_func_iconv" != yes; then
7043       am_save_LIBS="$LIBS"
7044       LIBS="$LIBS $LIBICONV"
7045       cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 #include <stdlib.h>
7052 #include <iconv.h>
7053 int
7054 main ()
7055 {
7056 iconv_t cd = iconv_open("","");
7057          iconv(cd,NULL,NULL,NULL,NULL);
7058          iconv_close(cd);
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (ac_try="$ac_link"
7065 case "(($ac_try" in
7066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067   *) ac_try_echo=$ac_try;;
7068 esac
7069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7070   (eval "$ac_link") 2>conftest.er1
7071   ac_status=$?
7072   grep -v '^ *+' conftest.er1 >conftest.err
7073   rm -f conftest.er1
7074   cat conftest.err >&5
7075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076   (exit $ac_status); } &&
7077          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7078   { (case "(($ac_try" in
7079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080   *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083   (eval "$ac_try") 2>&5
7084   ac_status=$?
7085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086   (exit $ac_status); }; } &&
7087          { ac_try='test -s conftest$ac_exeext'
7088   { (case "(($ac_try" in
7089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090   *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093   (eval "$ac_try") 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); }; }; then
7097   am_cv_lib_iconv=yes
7098         am_cv_func_iconv=yes
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103
7104 fi
7105
7106 rm -f core conftest.err conftest.$ac_objext \
7107       conftest$ac_exeext conftest.$ac_ext
7108       LIBS="$am_save_LIBS"
7109     fi
7110
7111 fi
7112 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7113 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7114   if test "$am_cv_func_iconv" = yes; then
7115
7116 cat >>confdefs.h <<\_ACEOF
7117 #define HAVE_ICONV 1
7118 _ACEOF
7119
7120   fi
7121   if test "$am_cv_lib_iconv" = yes; then
7122     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7123 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7124     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7125 echo "${ECHO_T}$LIBICONV" >&6; }
7126   else
7127             CPPFLAGS="$am_save_CPPFLAGS"
7128     LIBICONV=
7129     LTLIBICONV=
7130   fi
7131
7132
7133
7134
7135
7136
7137     use_additional=yes
7138
7139   acl_save_prefix="$prefix"
7140   prefix="$acl_final_prefix"
7141   acl_save_exec_prefix="$exec_prefix"
7142   exec_prefix="$acl_final_exec_prefix"
7143
7144     eval additional_includedir=\"$includedir\"
7145     eval additional_libdir=\"$libdir\"
7146
7147   exec_prefix="$acl_save_exec_prefix"
7148   prefix="$acl_save_prefix"
7149
7150
7151 # Check whether --with-libintl-prefix was given.
7152 if test "${with_libintl_prefix+set}" = set; then
7153   withval=$with_libintl_prefix;
7154     if test "X$withval" = "Xno"; then
7155       use_additional=no
7156     else
7157       if test "X$withval" = "X"; then
7158
7159   acl_save_prefix="$prefix"
7160   prefix="$acl_final_prefix"
7161   acl_save_exec_prefix="$exec_prefix"
7162   exec_prefix="$acl_final_exec_prefix"
7163
7164           eval additional_includedir=\"$includedir\"
7165           eval additional_libdir=\"$libdir\"
7166
7167   exec_prefix="$acl_save_exec_prefix"
7168   prefix="$acl_save_prefix"
7169
7170       else
7171         additional_includedir="$withval/include"
7172         additional_libdir="$withval/lib"
7173       fi
7174     fi
7175
7176 fi
7177
7178       LIBINTL=
7179   LTLIBINTL=
7180   INCINTL=
7181   rpathdirs=
7182   ltrpathdirs=
7183   names_already_handled=
7184   names_next_round='intl '
7185   while test -n "$names_next_round"; do
7186     names_this_round="$names_next_round"
7187     names_next_round=
7188     for name in $names_this_round; do
7189       already_handled=
7190       for n in $names_already_handled; do
7191         if test "$n" = "$name"; then
7192           already_handled=yes
7193           break
7194         fi
7195       done
7196       if test -z "$already_handled"; then
7197         names_already_handled="$names_already_handled $name"
7198                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7199         eval value=\"\$HAVE_LIB$uppername\"
7200         if test -n "$value"; then
7201           if test "$value" = yes; then
7202             eval value=\"\$LIB$uppername\"
7203             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7204             eval value=\"\$LTLIB$uppername\"
7205             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7206           else
7207                                     :
7208           fi
7209         else
7210                               found_dir=
7211           found_la=
7212           found_so=
7213           found_a=
7214           if test $use_additional = yes; then
7215             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7216               found_dir="$additional_libdir"
7217               found_so="$additional_libdir/lib$name.$shlibext"
7218               if test -f "$additional_libdir/lib$name.la"; then
7219                 found_la="$additional_libdir/lib$name.la"
7220               fi
7221             else
7222               if test -f "$additional_libdir/lib$name.$libext"; then
7223                 found_dir="$additional_libdir"
7224                 found_a="$additional_libdir/lib$name.$libext"
7225                 if test -f "$additional_libdir/lib$name.la"; then
7226                   found_la="$additional_libdir/lib$name.la"
7227                 fi
7228               fi
7229             fi
7230           fi
7231           if test "X$found_dir" = "X"; then
7232             for x in $LDFLAGS $LTLIBINTL; do
7233
7234   acl_save_prefix="$prefix"
7235   prefix="$acl_final_prefix"
7236   acl_save_exec_prefix="$exec_prefix"
7237   exec_prefix="$acl_final_exec_prefix"
7238   eval x=\"$x\"
7239   exec_prefix="$acl_save_exec_prefix"
7240   prefix="$acl_save_prefix"
7241
7242               case "$x" in
7243                 -L*)
7244                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7245                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7246                     found_dir="$dir"
7247                     found_so="$dir/lib$name.$shlibext"
7248                     if test -f "$dir/lib$name.la"; then
7249                       found_la="$dir/lib$name.la"
7250                     fi
7251                   else
7252                     if test -f "$dir/lib$name.$libext"; then
7253                       found_dir="$dir"
7254                       found_a="$dir/lib$name.$libext"
7255                       if test -f "$dir/lib$name.la"; then
7256                         found_la="$dir/lib$name.la"
7257                       fi
7258                     fi
7259                   fi
7260                   ;;
7261               esac
7262               if test "X$found_dir" != "X"; then
7263                 break
7264               fi
7265             done
7266           fi
7267           if test "X$found_dir" != "X"; then
7268                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7269             if test "X$found_so" != "X"; then
7270                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7271                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7272               else
7273                                                                                 haveit=
7274                 for x in $ltrpathdirs; do
7275                   if test "X$x" = "X$found_dir"; then
7276                     haveit=yes
7277                     break
7278                   fi
7279                 done
7280                 if test -z "$haveit"; then
7281                   ltrpathdirs="$ltrpathdirs $found_dir"
7282                 fi
7283                                 if test "$hardcode_direct" = yes; then
7284                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7285                 else
7286                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7287                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7288                                                             haveit=
7289                     for x in $rpathdirs; do
7290                       if test "X$x" = "X$found_dir"; then
7291                         haveit=yes
7292                         break
7293                       fi
7294                     done
7295                     if test -z "$haveit"; then
7296                       rpathdirs="$rpathdirs $found_dir"
7297                     fi
7298                   else
7299                                                                                 haveit=
7300                     for x in $LDFLAGS $LIBINTL; do
7301
7302   acl_save_prefix="$prefix"
7303   prefix="$acl_final_prefix"
7304   acl_save_exec_prefix="$exec_prefix"
7305   exec_prefix="$acl_final_exec_prefix"
7306   eval x=\"$x\"
7307   exec_prefix="$acl_save_exec_prefix"
7308   prefix="$acl_save_prefix"
7309
7310                       if test "X$x" = "X-L$found_dir"; then
7311                         haveit=yes
7312                         break
7313                       fi
7314                     done
7315                     if test -z "$haveit"; then
7316                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7317                     fi
7318                     if test "$hardcode_minus_L" != no; then
7319                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7320                     else
7321                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7322                     fi
7323                   fi
7324                 fi
7325               fi
7326             else
7327               if test "X$found_a" != "X"; then
7328                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7329               else
7330                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7331               fi
7332             fi
7333                         additional_includedir=
7334             case "$found_dir" in
7335               */lib | */lib/)
7336                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7337                 additional_includedir="$basedir/include"
7338                 ;;
7339             esac
7340             if test "X$additional_includedir" != "X"; then
7341                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7342                 haveit=
7343                 if test "X$additional_includedir" = "X/usr/local/include"; then
7344                   if test -n "$GCC"; then
7345                     case $host_os in
7346                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7347                     esac
7348                   fi
7349                 fi
7350                 if test -z "$haveit"; then
7351                   for x in $CPPFLAGS $INCINTL; do
7352
7353   acl_save_prefix="$prefix"
7354   prefix="$acl_final_prefix"
7355   acl_save_exec_prefix="$exec_prefix"
7356   exec_prefix="$acl_final_exec_prefix"
7357   eval x=\"$x\"
7358   exec_prefix="$acl_save_exec_prefix"
7359   prefix="$acl_save_prefix"
7360
7361                     if test "X$x" = "X-I$additional_includedir"; then
7362                       haveit=yes
7363                       break
7364                     fi
7365                   done
7366                   if test -z "$haveit"; then
7367                     if test -d "$additional_includedir"; then
7368                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7369                     fi
7370                   fi
7371                 fi
7372               fi
7373             fi
7374                         if test -n "$found_la"; then
7375                                                         save_libdir="$libdir"
7376               case "$found_la" in
7377                 */* | *\\*) . "$found_la" ;;
7378                 *) . "./$found_la" ;;
7379               esac
7380               libdir="$save_libdir"
7381                             for dep in $dependency_libs; do
7382                 case "$dep" in
7383                   -L*)
7384                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7385                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7386                       haveit=
7387                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7388                         if test -n "$GCC"; then
7389                           case $host_os in
7390                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7391                           esac
7392                         fi
7393                       fi
7394                       if test -z "$haveit"; then
7395                         haveit=
7396                         for x in $LDFLAGS $LIBINTL; do
7397
7398   acl_save_prefix="$prefix"
7399   prefix="$acl_final_prefix"
7400   acl_save_exec_prefix="$exec_prefix"
7401   exec_prefix="$acl_final_exec_prefix"
7402   eval x=\"$x\"
7403   exec_prefix="$acl_save_exec_prefix"
7404   prefix="$acl_save_prefix"
7405
7406                           if test "X$x" = "X-L$additional_libdir"; then
7407                             haveit=yes
7408                             break
7409                           fi
7410                         done
7411                         if test -z "$haveit"; then
7412                           if test -d "$additional_libdir"; then
7413                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7414                           fi
7415                         fi
7416                         haveit=
7417                         for x in $LDFLAGS $LTLIBINTL; do
7418
7419   acl_save_prefix="$prefix"
7420   prefix="$acl_final_prefix"
7421   acl_save_exec_prefix="$exec_prefix"
7422   exec_prefix="$acl_final_exec_prefix"
7423   eval x=\"$x\"
7424   exec_prefix="$acl_save_exec_prefix"
7425   prefix="$acl_save_prefix"
7426
7427                           if test "X$x" = "X-L$additional_libdir"; then
7428                             haveit=yes
7429                             break
7430                           fi
7431                         done
7432                         if test -z "$haveit"; then
7433                           if test -d "$additional_libdir"; then
7434                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7435                           fi
7436                         fi
7437                       fi
7438                     fi
7439                     ;;
7440                   -R*)
7441                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7442                     if test "$enable_rpath" != no; then
7443                                                                   haveit=
7444                       for x in $rpathdirs; do
7445                         if test "X$x" = "X$dir"; then
7446                           haveit=yes
7447                           break
7448                         fi
7449                       done
7450                       if test -z "$haveit"; then
7451                         rpathdirs="$rpathdirs $dir"
7452                       fi
7453                                                                   haveit=
7454                       for x in $ltrpathdirs; do
7455                         if test "X$x" = "X$dir"; then
7456                           haveit=yes
7457                           break
7458                         fi
7459                       done
7460                       if test -z "$haveit"; then
7461                         ltrpathdirs="$ltrpathdirs $dir"
7462                       fi
7463                     fi
7464                     ;;
7465                   -l*)
7466                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7467                     ;;
7468                   *.la)
7469                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7470                     ;;
7471                   *)
7472                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7473                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7474                     ;;
7475                 esac
7476               done
7477             fi
7478           else
7479                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7480             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7481           fi
7482         fi
7483       fi
7484     done
7485   done
7486   if test "X$rpathdirs" != "X"; then
7487     if test -n "$hardcode_libdir_separator"; then
7488                         alldirs=
7489       for found_dir in $rpathdirs; do
7490         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7491       done
7492             acl_save_libdir="$libdir"
7493       libdir="$alldirs"
7494       eval flag=\"$hardcode_libdir_flag_spec\"
7495       libdir="$acl_save_libdir"
7496       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7497     else
7498             for found_dir in $rpathdirs; do
7499         acl_save_libdir="$libdir"
7500         libdir="$found_dir"
7501         eval flag=\"$hardcode_libdir_flag_spec\"
7502         libdir="$acl_save_libdir"
7503         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7504       done
7505     fi
7506   fi
7507   if test "X$ltrpathdirs" != "X"; then
7508             for found_dir in $ltrpathdirs; do
7509       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7510     done
7511   fi
7512
7513           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7514 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7515 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7516   echo $ECHO_N "(cached) $ECHO_C" >&6
7517 else
7518   gt_save_CPPFLAGS="$CPPFLAGS"
7519             CPPFLAGS="$CPPFLAGS $INCINTL"
7520             gt_save_LIBS="$LIBS"
7521             LIBS="$LIBS $LIBINTL"
7522                         cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h.  */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h.  */
7528 #include <libintl.h>
7529 extern int _nl_msg_cat_cntr;
7530 extern
7531 #ifdef __cplusplus
7532 "C"
7533 #endif
7534 const char *_nl_expand_alias (const char *);
7535 int
7536 main ()
7537 {
7538 bindtextdomain ("", "");
7539 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7540   ;
7541   return 0;
7542 }
7543 _ACEOF
7544 rm -f conftest.$ac_objext conftest$ac_exeext
7545 if { (ac_try="$ac_link"
7546 case "(($ac_try" in
7547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7548   *) ac_try_echo=$ac_try;;
7549 esac
7550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7551   (eval "$ac_link") 2>conftest.er1
7552   ac_status=$?
7553   grep -v '^ *+' conftest.er1 >conftest.err
7554   rm -f conftest.er1
7555   cat conftest.err >&5
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); } &&
7558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7559   { (case "(($ac_try" in
7560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7561   *) ac_try_echo=$ac_try;;
7562 esac
7563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7564   (eval "$ac_try") 2>&5
7565   ac_status=$?
7566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567   (exit $ac_status); }; } &&
7568          { ac_try='test -s conftest$ac_exeext'
7569   { (case "(($ac_try" in
7570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571   *) ac_try_echo=$ac_try;;
7572 esac
7573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574   (eval "$ac_try") 2>&5
7575   ac_status=$?
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); }; }; then
7578   gt_cv_func_gnugettext1_libintl=yes
7579 else
7580   echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583         gt_cv_func_gnugettext1_libintl=no
7584 fi
7585
7586 rm -f core conftest.err conftest.$ac_objext \
7587       conftest$ac_exeext conftest.$ac_ext
7588                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7589               LIBS="$LIBS $LIBICONV"
7590               cat >conftest.$ac_ext <<_ACEOF
7591 /* confdefs.h.  */
7592 _ACEOF
7593 cat confdefs.h >>conftest.$ac_ext
7594 cat >>conftest.$ac_ext <<_ACEOF
7595 /* end confdefs.h.  */
7596 #include <libintl.h>
7597 extern int _nl_msg_cat_cntr;
7598 extern
7599 #ifdef __cplusplus
7600 "C"
7601 #endif
7602 const char *_nl_expand_alias (const char *);
7603 int
7604 main ()
7605 {
7606 bindtextdomain ("", "");
7607 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7608   ;
7609   return 0;
7610 }
7611 _ACEOF
7612 rm -f conftest.$ac_objext conftest$ac_exeext
7613 if { (ac_try="$ac_link"
7614 case "(($ac_try" in
7615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616   *) ac_try_echo=$ac_try;;
7617 esac
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619   (eval "$ac_link") 2>conftest.er1
7620   ac_status=$?
7621   grep -v '^ *+' conftest.er1 >conftest.err
7622   rm -f conftest.er1
7623   cat conftest.err >&5
7624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625   (exit $ac_status); } &&
7626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7627   { (case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632   (eval "$ac_try") 2>&5
7633   ac_status=$?
7634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635   (exit $ac_status); }; } &&
7636          { ac_try='test -s conftest$ac_exeext'
7637   { (case "(($ac_try" in
7638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639   *) ac_try_echo=$ac_try;;
7640 esac
7641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7642   (eval "$ac_try") 2>&5
7643   ac_status=$?
7644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645   (exit $ac_status); }; }; then
7646   LIBINTL="$LIBINTL $LIBICONV"
7647                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7648                 gt_cv_func_gnugettext1_libintl=yes
7649
7650 else
7651   echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654
7655 fi
7656
7657 rm -f core conftest.err conftest.$ac_objext \
7658       conftest$ac_exeext conftest.$ac_ext
7659             fi
7660             CPPFLAGS="$gt_save_CPPFLAGS"
7661             LIBS="$gt_save_LIBS"
7662 fi
7663 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7664 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7665         fi
7666
7667                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7668            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7669                 && test "$PACKAGE" != gettext-runtime \
7670                 && test "$PACKAGE" != gettext-tools; }; then
7671           gt_use_preinstalled_gnugettext=yes
7672         else
7673                     LIBINTL=
7674           LTLIBINTL=
7675           INCINTL=
7676         fi
7677
7678
7679
7680     if test -n "$INTL_MACOSX_LIBS"; then
7681       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7682          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7683                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7684         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7685       fi
7686     fi
7687
7688     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7689        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define ENABLE_NLS 1
7693 _ACEOF
7694
7695     else
7696       USE_NLS=no
7697     fi
7698   fi
7699
7700   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7701 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7702   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7703 echo "${ECHO_T}$USE_NLS" >&6; }
7704   if test "$USE_NLS" = "yes"; then
7705     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7706 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7707     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7708       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7709         gt_source="external libintl"
7710       else
7711         gt_source="libc"
7712       fi
7713     else
7714       gt_source="included intl directory"
7715     fi
7716     { echo "$as_me:$LINENO: result: $gt_source" >&5
7717 echo "${ECHO_T}$gt_source" >&6; }
7718   fi
7719
7720   if test "$USE_NLS" = "yes"; then
7721
7722     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7723       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7724         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7725 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7726         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7727 echo "${ECHO_T}$LIBINTL" >&6; }
7728
7729   for element in $INCINTL; do
7730     haveit=
7731     for x in $CPPFLAGS; do
7732
7733   acl_save_prefix="$prefix"
7734   prefix="$acl_final_prefix"
7735   acl_save_exec_prefix="$exec_prefix"
7736   exec_prefix="$acl_final_exec_prefix"
7737   eval x=\"$x\"
7738   exec_prefix="$acl_save_exec_prefix"
7739   prefix="$acl_save_prefix"
7740
7741       if test "X$x" = "X$element"; then
7742         haveit=yes
7743         break
7744       fi
7745     done
7746     if test -z "$haveit"; then
7747       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7748     fi
7749   done
7750
7751       fi
7752
7753
7754 cat >>confdefs.h <<\_ACEOF
7755 #define HAVE_GETTEXT 1
7756 _ACEOF
7757
7758
7759 cat >>confdefs.h <<\_ACEOF
7760 #define HAVE_DCGETTEXT 1
7761 _ACEOF
7762
7763     fi
7764
7765         POSUB=po
7766   fi
7767
7768
7769
7770     INTLLIBS="$LIBINTL"
7771
7772
7773
7774
7775
7776
7777 if test x${prefix} = xNONE ; then
7778    if test `eval echo ${datadir}` = NONE/share ; then
7779       datadir=/usr/share
7780    fi
7781 fi
7782
7783 # ------------------------------------------------------------------
7784 #  If the user has not set --prefix, we set our default to nothing.
7785 #  In this case, if the user has not set --sysconfdir, we set it
7786 #  to the package default of /etc/bacula.  If either --prefix or
7787 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7788 # ------------------------------------------------------------------
7789 if test x${prefix} = xNONE ; then
7790     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7791         sysconfdir=/etc/bacula
7792     fi
7793     prefix=
7794 fi
7795 sysconfdir=`eval echo ${sysconfdir}`
7796 datadir=`eval echo ${datadir}`
7797 localedir=`eval echo ${datadir}/locale`
7798 cat >>confdefs.h <<_ACEOF
7799 #define LOCALEDIR "$localedir"
7800 _ACEOF
7801
7802 cat >>confdefs.h <<_ACEOF
7803 #define SYSCONFDIR "$sysconfdir"
7804 _ACEOF
7805
7806
7807 # -------------------------------------------------------------------------
7808 #  If the user has not set --exec-prefix, we default to ${prefix}
7809 # -------------------------------------------------------------------------
7810 if test x${exec_prefix} = xNONE ; then
7811     exec_prefix=${prefix}
7812 fi
7813
7814 # ------------------------------------------------------------------
7815 # If the user has not set --sbindir, we set our default as /sbin
7816 # ------------------------------------------------------------------
7817 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7818     sbindir=${exec_prefix}/sbin
7819 fi
7820 sbindir=`eval echo ${sbindir}`
7821
7822 # -------------------------------------------------------------------------
7823 #  If the user has not set --mandir, we default to /usr/share/man
7824 # -------------------------------------------------------------------------
7825 if test x$mandir = x'${prefix}/man' ; then
7826    mandir=/usr/share/man
7827 fi
7828
7829
7830 # ------------------------------------------------------------------
7831 # All list of languages for which a translation exist. Each
7832 #  language is separated by a space.
7833 # ------------------------------------------------------------------
7834 ALL_LINGUAS=""
7835
7836 for ac_prog in msgfmt
7837 do
7838   # Extract the first word of "$ac_prog", so it can be a program name with args.
7839 set dummy $ac_prog; ac_word=$2
7840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7842 if test "${ac_cv_path_MSGFMT+set}" = set; then
7843   echo $ECHO_N "(cached) $ECHO_C" >&6
7844 else
7845   case $MSGFMT in
7846   [\\/]* | ?:[\\/]*)
7847   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7848   ;;
7849   *)
7850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7851 for as_dir in $PATH
7852 do
7853   IFS=$as_save_IFS
7854   test -z "$as_dir" && as_dir=.
7855   for ac_exec_ext in '' $ac_executable_extensions; do
7856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7857     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7858     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7859     break 2
7860   fi
7861 done
7862 done
7863 IFS=$as_save_IFS
7864
7865   ;;
7866 esac
7867 fi
7868 MSGFMT=$ac_cv_path_MSGFMT
7869 if test -n "$MSGFMT"; then
7870   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7871 echo "${ECHO_T}$MSGFMT" >&6; }
7872 else
7873   { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7875 fi
7876
7877
7878   test -n "$MSGFMT" && break
7879 done
7880 test -n "$MSGFMT" || MSGFMT="no"
7881
7882 if test "$MSGFMT" = "no"
7883 then
7884    echo 'msgfmt program not found, disabling NLS !'
7885    USE_NLS=no
7886    USE_INCLUDED_LIBINTL=no
7887 #else
7888
7889     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7890 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7891 if test "${ac_cv_gnu_library_2+set}" = set; then
7892   echo $ECHO_N "(cached) $ECHO_C" >&6
7893 else
7894   cat >conftest.$ac_ext <<_ACEOF
7895 /* confdefs.h.  */
7896 _ACEOF
7897 cat confdefs.h >>conftest.$ac_ext
7898 cat >>conftest.$ac_ext <<_ACEOF
7899 /* end confdefs.h.  */
7900
7901 #include <features.h>
7902 #ifdef __GNU_LIBRARY__
7903  #if (__GLIBC__ >= 2)
7904   Lucky GNU user
7905  #endif
7906 #endif
7907
7908 _ACEOF
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7911   ac_cv_gnu_library_2=yes
7912 else
7913   ac_cv_gnu_library_2=no
7914 fi
7915 rm -f conftest*
7916
7917
7918
7919 fi
7920 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7921 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7922
7923     GLIBC2="$ac_cv_gnu_library_2"
7924
7925
7926
7927         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7928 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7929 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7930   echo $ECHO_N "(cached) $ECHO_C" >&6
7931 else
7932   ac_check_lib_save_LIBS=$LIBS
7933 LIBS="-lcposix  $LIBS"
7934 cat >conftest.$ac_ext <<_ACEOF
7935 /* confdefs.h.  */
7936 _ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h.  */
7940
7941 /* Override any GCC internal prototype to avoid an error.
7942    Use char because int might match the return type of a GCC
7943    builtin and then its argument prototype would still apply.  */
7944 #ifdef __cplusplus
7945 extern "C"
7946 #endif
7947 char strerror ();
7948 int
7949 main ()
7950 {
7951 return strerror ();
7952   ;
7953   return 0;
7954 }
7955 _ACEOF
7956 rm -f conftest.$ac_objext conftest$ac_exeext
7957 if { (ac_try="$ac_link"
7958 case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7963   (eval "$ac_link") 2>conftest.er1
7964   ac_status=$?
7965   grep -v '^ *+' conftest.er1 >conftest.err
7966   rm -f conftest.er1
7967   cat conftest.err >&5
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); } &&
7970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7971   { (case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_try") 2>&5
7977   ac_status=$?
7978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979   (exit $ac_status); }; } &&
7980          { ac_try='test -s conftest$ac_exeext'
7981   { (case "(($ac_try" in
7982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7983   *) ac_try_echo=$ac_try;;
7984 esac
7985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7986   (eval "$ac_try") 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); }; }; then
7990   ac_cv_lib_cposix_strerror=yes
7991 else
7992   echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7994
7995         ac_cv_lib_cposix_strerror=no
7996 fi
7997
7998 rm -f core conftest.err conftest.$ac_objext \
7999       conftest$ac_exeext conftest.$ac_ext
8000 LIBS=$ac_check_lib_save_LIBS
8001 fi
8002 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8003 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8004 if test $ac_cv_lib_cposix_strerror = yes; then
8005   LIBS="$LIBS -lcposix"
8006 fi
8007
8008
8009
8010 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8011 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8012 if test "${ac_cv_header_stdc+set}" = set; then
8013   echo $ECHO_N "(cached) $ECHO_C" >&6
8014 else
8015   cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 #include <stdlib.h>
8022 #include <stdarg.h>
8023 #include <string.h>
8024 #include <float.h>
8025
8026 int
8027 main ()
8028 {
8029
8030   ;
8031   return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038   *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041   (eval "$ac_compile") 2>conftest.er1
8042   ac_status=$?
8043   grep -v '^ *+' conftest.er1 >conftest.err
8044   rm -f conftest.er1
8045   cat conftest.err >&5
8046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047   (exit $ac_status); } &&
8048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8049   { (case "(($ac_try" in
8050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051   *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054   (eval "$ac_try") 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; } &&
8058          { ac_try='test -s conftest.$ac_objext'
8059   { (case "(($ac_try" in
8060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061   *) ac_try_echo=$ac_try;;
8062 esac
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064   (eval "$ac_try") 2>&5
8065   ac_status=$?
8066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8067   (exit $ac_status); }; }; then
8068   ac_cv_header_stdc=yes
8069 else
8070   echo "$as_me: failed program was:" >&5
8071 sed 's/^/| /' conftest.$ac_ext >&5
8072
8073         ac_cv_header_stdc=no
8074 fi
8075
8076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8077
8078 if test $ac_cv_header_stdc = yes; then
8079   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8080   cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h.  */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h.  */
8086 #include <string.h>
8087
8088 _ACEOF
8089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8090   $EGREP "memchr" >/dev/null 2>&1; then
8091   :
8092 else
8093   ac_cv_header_stdc=no
8094 fi
8095 rm -f conftest*
8096
8097 fi
8098
8099 if test $ac_cv_header_stdc = yes; then
8100   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8101   cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 #include <stdlib.h>
8108
8109 _ACEOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111   $EGREP "free" >/dev/null 2>&1; then
8112   :
8113 else
8114   ac_cv_header_stdc=no
8115 fi
8116 rm -f conftest*
8117
8118 fi
8119
8120 if test $ac_cv_header_stdc = yes; then
8121   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8122   if test "$cross_compiling" = yes; then
8123   :
8124 else
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131 #include <ctype.h>
8132 #include <stdlib.h>
8133 #if ((' ' & 0x0FF) == 0x020)
8134 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8135 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8136 #else
8137 # define ISLOWER(c) \
8138                    (('a' <= (c) && (c) <= 'i') \
8139                      || ('j' <= (c) && (c) <= 'r') \
8140                      || ('s' <= (c) && (c) <= 'z'))
8141 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8142 #endif
8143
8144 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8145 int
8146 main ()
8147 {
8148   int i;
8149   for (i = 0; i < 256; i++)
8150     if (XOR (islower (i), ISLOWER (i))
8151         || toupper (i) != TOUPPER (i))
8152       return 2;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest$ac_exeext
8157 if { (ac_try="$ac_link"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_link") 2>&5
8164   ac_status=$?
8165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8167   { (case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172   (eval "$ac_try") 2>&5
8173   ac_status=$?
8174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175   (exit $ac_status); }; }; then
8176   :
8177 else
8178   echo "$as_me: program exited with status $ac_status" >&5
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ( exit $ac_status )
8183 ac_cv_header_stdc=no
8184 fi
8185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8186 fi
8187
8188
8189 fi
8190 fi
8191 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8192 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8193 if test $ac_cv_header_stdc = yes; then
8194
8195 cat >>confdefs.h <<\_ACEOF
8196 #define STDC_HEADERS 1
8197 _ACEOF
8198
8199 fi
8200
8201 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8202 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8203 if test "${ac_cv_c_const+set}" = set; then
8204   echo $ECHO_N "(cached) $ECHO_C" >&6
8205 else
8206   cat >conftest.$ac_ext <<_ACEOF
8207 /* confdefs.h.  */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h.  */
8212
8213 int
8214 main ()
8215 {
8216 /* FIXME: Include the comments suggested by Paul. */
8217 #ifndef __cplusplus
8218   /* Ultrix mips cc rejects this.  */
8219   typedef int charset[2];
8220   const charset x;
8221   /* SunOS 4.1.1 cc rejects this.  */
8222   char const *const *ccp;
8223   char **p;
8224   /* NEC SVR4.0.2 mips cc rejects this.  */
8225   struct point {int x, y;};
8226   static struct point const zero = {0,0};
8227   /* AIX XL C 1.02.0.0 rejects this.
8228      It does not let you subtract one const X* pointer from another in
8229      an arm of an if-expression whose if-part is not a constant
8230      expression */
8231   const char *g = "string";
8232   ccp = &g + (g ? g-g : 0);
8233   /* HPUX 7.0 cc rejects these. */
8234   ++ccp;
8235   p = (char**) ccp;
8236   ccp = (char const *const *) p;
8237   { /* SCO 3.2v4 cc rejects this.  */
8238     char *t;
8239     char const *s = 0 ? (char *) 0 : (char const *) 0;
8240
8241     *t++ = 0;
8242     if (s) return 0;
8243   }
8244   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8245     int x[] = {25, 17};
8246     const int *foo = &x[0];
8247     ++foo;
8248   }
8249   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8250     typedef const int *iptr;
8251     iptr p = 0;
8252     ++p;
8253   }
8254   { /* AIX XL C 1.02.0.0 rejects this saying
8255        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8256     struct s { int j; const int *ap[3]; };
8257     struct s *b; b->j = 5;
8258   }
8259   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8260     const int foo = 10;
8261     if (!foo) return 0;
8262   }
8263   return !x[0] && !zero.x;
8264 #endif
8265
8266   ;
8267   return 0;
8268 }
8269 _ACEOF
8270 rm -f conftest.$ac_objext
8271 if { (ac_try="$ac_compile"
8272 case "(($ac_try" in
8273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274   *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277   (eval "$ac_compile") 2>conftest.er1
8278   ac_status=$?
8279   grep -v '^ *+' conftest.er1 >conftest.err
8280   rm -f conftest.er1
8281   cat conftest.err >&5
8282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283   (exit $ac_status); } &&
8284          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8285   { (case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8290   (eval "$ac_try") 2>&5
8291   ac_status=$?
8292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293   (exit $ac_status); }; } &&
8294          { ac_try='test -s conftest.$ac_objext'
8295   { (case "(($ac_try" in
8296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8297   *) ac_try_echo=$ac_try;;
8298 esac
8299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8300   (eval "$ac_try") 2>&5
8301   ac_status=$?
8302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303   (exit $ac_status); }; }; then
8304   ac_cv_c_const=yes
8305 else
8306   echo "$as_me: failed program was:" >&5
8307 sed 's/^/| /' conftest.$ac_ext >&5
8308
8309         ac_cv_c_const=no
8310 fi
8311
8312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8313 fi
8314 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8315 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8316 if test $ac_cv_c_const = no; then
8317
8318 cat >>confdefs.h <<\_ACEOF
8319 #define const
8320 _ACEOF
8321
8322 fi
8323
8324
8325   { echo "$as_me:$LINENO: checking for signed" >&5
8326 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8327 if test "${bh_cv_c_signed+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h.  */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h.  */
8336
8337 int
8338 main ()
8339 {
8340 signed char x;
8341   ;
8342   return 0;
8343 }
8344 _ACEOF
8345 rm -f conftest.$ac_objext
8346 if { (ac_try="$ac_compile"
8347 case "(($ac_try" in
8348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349   *) ac_try_echo=$ac_try;;
8350 esac
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352   (eval "$ac_compile") 2>conftest.er1
8353   ac_status=$?
8354   grep -v '^ *+' conftest.er1 >conftest.err
8355   rm -f conftest.er1
8356   cat conftest.err >&5
8357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358   (exit $ac_status); } &&
8359          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360   { (case "(($ac_try" in
8361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8362   *) ac_try_echo=$ac_try;;
8363 esac
8364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8365   (eval "$ac_try") 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; } &&
8369          { ac_try='test -s conftest.$ac_objext'
8370   { (case "(($ac_try" in
8371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372   *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375   (eval "$ac_try") 2>&5
8376   ac_status=$?
8377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378   (exit $ac_status); }; }; then
8379   bh_cv_c_signed=yes
8380 else
8381   echo "$as_me: failed program was:" >&5
8382 sed 's/^/| /' conftest.$ac_ext >&5
8383
8384         bh_cv_c_signed=no
8385 fi
8386
8387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8388 fi
8389 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8390 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8391   if test $bh_cv_c_signed = no; then
8392
8393 cat >>confdefs.h <<\_ACEOF
8394 #define signed
8395 _ACEOF
8396
8397   fi
8398
8399 { echo "$as_me:$LINENO: checking for inline" >&5
8400 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8401 if test "${ac_cv_c_inline+set}" = set; then
8402   echo $ECHO_N "(cached) $ECHO_C" >&6
8403 else
8404   ac_cv_c_inline=no
8405 for ac_kw in inline __inline__ __inline; do
8406   cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h.  */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h.  */
8412 #ifndef __cplusplus
8413 typedef int foo_t;
8414 static $ac_kw foo_t static_foo () {return 0; }
8415 $ac_kw foo_t foo () {return 0; }
8416 #endif
8417
8418 _ACEOF
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8421 case "(($ac_try" in
8422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8423   *) ac_try_echo=$ac_try;;
8424 esac
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426   (eval "$ac_compile") 2>conftest.er1
8427   ac_status=$?
8428   grep -v '^ *+' conftest.er1 >conftest.err
8429   rm -f conftest.er1
8430   cat conftest.err >&5
8431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432   (exit $ac_status); } &&
8433          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8434   { (case "(($ac_try" in
8435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8436   *) ac_try_echo=$ac_try;;
8437 esac
8438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8439   (eval "$ac_try") 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; } &&
8443          { ac_try='test -s conftest.$ac_objext'
8444   { (case "(($ac_try" in
8445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446   *) ac_try_echo=$ac_try;;
8447 esac
8448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8449   (eval "$ac_try") 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_c_inline=$ac_kw
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458
8459 fi
8460
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462   test "$ac_cv_c_inline" != no && break
8463 done
8464
8465 fi
8466 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8467 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8468
8469
8470 case $ac_cv_c_inline in
8471   inline | yes) ;;
8472   *)
8473     case $ac_cv_c_inline in
8474       no) ac_val=;;
8475       *) ac_val=$ac_cv_c_inline;;
8476     esac
8477     cat >>confdefs.h <<_ACEOF
8478 #ifndef __cplusplus
8479 #define inline $ac_val
8480 #endif
8481 _ACEOF
8482     ;;
8483 esac
8484
8485 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8496                   inttypes.h stdint.h unistd.h
8497 do
8498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8502   echo $ECHO_N "(cached) $ECHO_C" >&6
8503 else
8504   cat >conftest.$ac_ext <<_ACEOF
8505 /* confdefs.h.  */
8506 _ACEOF
8507 cat confdefs.h >>conftest.$ac_ext
8508 cat >>conftest.$ac_ext <<_ACEOF
8509 /* end confdefs.h.  */
8510 $ac_includes_default
8511
8512 #include <$ac_header>
8513 _ACEOF
8514 rm -f conftest.$ac_objext
8515 if { (ac_try="$ac_compile"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_compile") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } &&
8528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8529   { (case "(($ac_try" in
8530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531   *) ac_try_echo=$ac_try;;
8532 esac
8533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534   (eval "$ac_try") 2>&5
8535   ac_status=$?
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); }; } &&
8538          { ac_try='test -s conftest.$ac_objext'
8539   { (case "(($ac_try" in
8540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541   *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544   (eval "$ac_try") 2>&5
8545   ac_status=$?
8546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547   (exit $ac_status); }; }; then
8548   eval "$as_ac_Header=yes"
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553         eval "$as_ac_Header=no"
8554 fi
8555
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557 fi
8558 ac_res=`eval echo '${'$as_ac_Header'}'`
8559                { echo "$as_me:$LINENO: result: $ac_res" >&5
8560 echo "${ECHO_T}$ac_res" >&6; }
8561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8562   cat >>confdefs.h <<_ACEOF
8563 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8564 _ACEOF
8565
8566 fi
8567
8568 done
8569
8570
8571 { echo "$as_me:$LINENO: checking for off_t" >&5
8572 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8573 if test "${ac_cv_type_off_t+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   cat >conftest.$ac_ext <<_ACEOF
8577 /* confdefs.h.  */
8578 _ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h.  */
8582 $ac_includes_default
8583 typedef off_t ac__type_new_;
8584 int
8585 main ()
8586 {
8587 if ((ac__type_new_ *) 0)
8588   return 0;
8589 if (sizeof (ac__type_new_))
8590   return 0;
8591   ;
8592   return 0;
8593 }
8594 _ACEOF
8595 rm -f conftest.$ac_objext
8596 if { (ac_try="$ac_compile"
8597 case "(($ac_try" in
8598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8599   *) ac_try_echo=$ac_try;;
8600 esac
8601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8602   (eval "$ac_compile") 2>conftest.er1
8603   ac_status=$?
8604   grep -v '^ *+' conftest.er1 >conftest.err
8605   rm -f conftest.er1
8606   cat conftest.err >&5
8607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608   (exit $ac_status); } &&
8609          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610   { (case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_try") 2>&5
8616   ac_status=$?
8617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618   (exit $ac_status); }; } &&
8619          { ac_try='test -s conftest.$ac_objext'
8620   { (case "(($ac_try" in
8621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8622   *) ac_try_echo=$ac_try;;
8623 esac
8624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8625   (eval "$ac_try") 2>&5
8626   ac_status=$?
8627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628   (exit $ac_status); }; }; then
8629   ac_cv_type_off_t=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_cv_type_off_t=no
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8640 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8641 if test $ac_cv_type_off_t = yes; then
8642   :
8643 else
8644
8645 cat >>confdefs.h <<_ACEOF
8646 #define off_t long int
8647 _ACEOF
8648
8649 fi
8650
8651 { echo "$as_me:$LINENO: checking for size_t" >&5
8652 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8653 if test "${ac_cv_type_size_t+set}" = set; then
8654   echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656   cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662 $ac_includes_default
8663 typedef size_t ac__type_new_;
8664 int
8665 main ()
8666 {
8667 if ((ac__type_new_ *) 0)
8668   return 0;
8669 if (sizeof (ac__type_new_))
8670   return 0;
8671   ;
8672   return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8677 case "(($ac_try" in
8678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679   *) ac_try_echo=$ac_try;;
8680 esac
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682   (eval "$ac_compile") 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } &&
8689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690   { (case "(($ac_try" in
8691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692   *) ac_try_echo=$ac_try;;
8693 esac
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695   (eval "$ac_try") 2>&5
8696   ac_status=$?
8697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698   (exit $ac_status); }; } &&
8699          { ac_try='test -s conftest.$ac_objext'
8700   { (case "(($ac_try" in
8701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702   *) ac_try_echo=$ac_try;;
8703 esac
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705   (eval "$ac_try") 2>&5
8706   ac_status=$?
8707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708   (exit $ac_status); }; }; then
8709   ac_cv_type_size_t=yes
8710 else
8711   echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714         ac_cv_type_size_t=no
8715 fi
8716
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 fi
8719 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8720 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8721 if test $ac_cv_type_size_t = yes; then
8722   :
8723 else
8724
8725 cat >>confdefs.h <<_ACEOF
8726 #define size_t unsigned int
8727 _ACEOF
8728
8729 fi
8730
8731
8732   { echo "$as_me:$LINENO: checking for long long" >&5
8733 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8734 if test "${ac_cv_type_long_long+set}" = set; then
8735   echo $ECHO_N "(cached) $ECHO_C" >&6
8736 else
8737   cat >conftest.$ac_ext <<_ACEOF
8738 /* confdefs.h.  */
8739 _ACEOF
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h.  */
8743 long long ll = 1LL; int i = 63;
8744 int
8745 main ()
8746 {
8747 long long llmax = (long long) -1;
8748      return ll << i | ll >> i | llmax / ll | llmax % ll;
8749   ;
8750   return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (ac_try="$ac_link"
8755 case "(($ac_try" in
8756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757   *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760   (eval "$ac_link") 2>conftest.er1
8761   ac_status=$?
8762   grep -v '^ *+' conftest.er1 >conftest.err
8763   rm -f conftest.er1
8764   cat conftest.err >&5
8765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766   (exit $ac_status); } &&
8767          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8768   { (case "(($ac_try" in
8769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770   *) ac_try_echo=$ac_try;;
8771 esac
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773   (eval "$ac_try") 2>&5
8774   ac_status=$?
8775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776   (exit $ac_status); }; } &&
8777          { ac_try='test -s conftest$ac_exeext'
8778   { (case "(($ac_try" in
8779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780   *) ac_try_echo=$ac_try;;
8781 esac
8782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8783   (eval "$ac_try") 2>&5
8784   ac_status=$?
8785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786   (exit $ac_status); }; }; then
8787   ac_cv_type_long_long=yes
8788 else
8789   echo "$as_me: failed program was:" >&5
8790 sed 's/^/| /' conftest.$ac_ext >&5
8791
8792         ac_cv_type_long_long=no
8793 fi
8794
8795 rm -f core conftest.err conftest.$ac_objext \
8796       conftest$ac_exeext conftest.$ac_ext
8797 fi
8798 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8799 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8800   if test $ac_cv_type_long_long = yes; then
8801
8802 cat >>confdefs.h <<\_ACEOF
8803 #define HAVE_LONG_LONG 1
8804 _ACEOF
8805
8806   fi
8807
8808
8809   { echo "$as_me:$LINENO: checking for long double" >&5
8810 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8811 if test "${gt_cv_c_long_double+set}" = set; then
8812   echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814   if test "$GCC" = yes; then
8815        gt_cv_c_long_double=yes
8816      else
8817        cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h.  */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h.  */
8823
8824          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8825          long double foo = 0.0;
8826          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8827          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8828
8829 int
8830 main ()
8831 {
8832
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_compile") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } &&
8851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8852   { (case "(($ac_try" in
8853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8854   *) ac_try_echo=$ac_try;;
8855 esac
8856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8857   (eval "$ac_try") 2>&5
8858   ac_status=$?
8859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); }; } &&
8861          { ac_try='test -s conftest.$ac_objext'
8862   { (case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8867   (eval "$ac_try") 2>&5
8868   ac_status=$?
8869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870   (exit $ac_status); }; }; then
8871   gt_cv_c_long_double=yes
8872 else
8873   echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8875
8876         gt_cv_c_long_double=no
8877 fi
8878
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880      fi
8881 fi
8882 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8883 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8884   if test $gt_cv_c_long_double = yes; then
8885
8886 cat >>confdefs.h <<\_ACEOF
8887 #define HAVE_LONG_DOUBLE 1
8888 _ACEOF
8889
8890   fi
8891
8892
8893   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8894 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8895 if test "${gt_cv_c_wchar_t+set}" = set; then
8896   echo $ECHO_N "(cached) $ECHO_C" >&6
8897 else
8898   cat >conftest.$ac_ext <<_ACEOF
8899 /* confdefs.h.  */
8900 _ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h.  */
8904 #include <stddef.h>
8905        wchar_t foo = (wchar_t)'\0';
8906 int
8907 main ()
8908 {
8909
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext
8915 if { (ac_try="$ac_compile"
8916 case "(($ac_try" in
8917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918   *) ac_try_echo=$ac_try;;
8919 esac
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921   (eval "$ac_compile") 2>conftest.er1
8922   ac_status=$?
8923   grep -v '^ *+' conftest.er1 >conftest.err
8924   rm -f conftest.er1
8925   cat conftest.err >&5
8926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927   (exit $ac_status); } &&
8928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8929   { (case "(($ac_try" in
8930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8931   *) ac_try_echo=$ac_try;;
8932 esac
8933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8934   (eval "$ac_try") 2>&5
8935   ac_status=$?
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); }; } &&
8938          { ac_try='test -s conftest.$ac_objext'
8939   { (case "(($ac_try" in
8940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941   *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944   (eval "$ac_try") 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; }; then
8948   gt_cv_c_wchar_t=yes
8949 else
8950   echo "$as_me: failed program was:" >&5
8951 sed 's/^/| /' conftest.$ac_ext >&5
8952
8953         gt_cv_c_wchar_t=no
8954 fi
8955
8956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 fi
8958 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8959 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8960   if test $gt_cv_c_wchar_t = yes; then
8961
8962 cat >>confdefs.h <<\_ACEOF
8963 #define HAVE_WCHAR_T 1
8964 _ACEOF
8965
8966   fi
8967
8968
8969   { echo "$as_me:$LINENO: checking for wint_t" >&5
8970 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8971 if test "${gt_cv_c_wint_t+set}" = set; then
8972   echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974   cat >conftest.$ac_ext <<_ACEOF
8975 /* confdefs.h.  */
8976 _ACEOF
8977 cat confdefs.h >>conftest.$ac_ext
8978 cat >>conftest.$ac_ext <<_ACEOF
8979 /* end confdefs.h.  */
8980 #include <wchar.h>
8981        wint_t foo = (wchar_t)'\0';
8982 int
8983 main ()
8984 {
8985
8986   ;
8987   return 0;
8988 }
8989 _ACEOF
8990 rm -f conftest.$ac_objext
8991 if { (ac_try="$ac_compile"
8992 case "(($ac_try" in
8993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8994   *) ac_try_echo=$ac_try;;
8995 esac
8996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8997   (eval "$ac_compile") 2>conftest.er1
8998   ac_status=$?
8999   grep -v '^ *+' conftest.er1 >conftest.err
9000   rm -f conftest.er1
9001   cat conftest.err >&5
9002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003   (exit $ac_status); } &&
9004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9005   { (case "(($ac_try" in
9006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007   *) ac_try_echo=$ac_try;;
9008 esac
9009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9010   (eval "$ac_try") 2>&5
9011   ac_status=$?
9012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013   (exit $ac_status); }; } &&
9014          { ac_try='test -s conftest.$ac_objext'
9015   { (case "(($ac_try" in
9016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017   *) ac_try_echo=$ac_try;;
9018 esac
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020   (eval "$ac_try") 2>&5
9021   ac_status=$?
9022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9023   (exit $ac_status); }; }; then
9024   gt_cv_c_wint_t=yes
9025 else
9026   echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029         gt_cv_c_wint_t=no
9030 fi
9031
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 fi
9034 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9035 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9036   if test $gt_cv_c_wint_t = yes; then
9037
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_WINT_T 1
9040 _ACEOF
9041
9042   fi
9043
9044
9045   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9046 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9047 if test "${gl_cv_header_inttypes_h+set}" = set; then
9048   echo $ECHO_N "(cached) $ECHO_C" >&6
9049 else
9050   cat >conftest.$ac_ext <<_ACEOF
9051 /* confdefs.h.  */
9052 _ACEOF
9053 cat confdefs.h >>conftest.$ac_ext
9054 cat >>conftest.$ac_ext <<_ACEOF
9055 /* end confdefs.h.  */
9056 #include <sys/types.h>
9057 #include <inttypes.h>
9058 int
9059 main ()
9060 {
9061 uintmax_t i = (uintmax_t) -1;
9062   ;
9063   return 0;
9064 }
9065 _ACEOF
9066 rm -f conftest.$ac_objext
9067 if { (ac_try="$ac_compile"
9068 case "(($ac_try" in
9069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070   *) ac_try_echo=$ac_try;;
9071 esac
9072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073   (eval "$ac_compile") 2>conftest.er1
9074   ac_status=$?
9075   grep -v '^ *+' conftest.er1 >conftest.err
9076   rm -f conftest.er1
9077   cat conftest.err >&5
9078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079   (exit $ac_status); } &&
9080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9081   { (case "(($ac_try" in
9082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9083   *) ac_try_echo=$ac_try;;
9084 esac
9085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9086   (eval "$ac_try") 2>&5
9087   ac_status=$?
9088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089   (exit $ac_status); }; } &&
9090          { ac_try='test -s conftest.$ac_objext'
9091   { (case "(($ac_try" in
9092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9093   *) ac_try_echo=$ac_try;;
9094 esac
9095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9096   (eval "$ac_try") 2>&5
9097   ac_status=$?
9098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099   (exit $ac_status); }; }; then
9100   gl_cv_header_inttypes_h=yes
9101 else
9102   echo "$as_me: failed program was:" >&5
9103 sed 's/^/| /' conftest.$ac_ext >&5
9104
9105         gl_cv_header_inttypes_h=no
9106 fi
9107
9108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9109 fi
9110 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9111 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9112   if test $gl_cv_header_inttypes_h = yes; then
9113
9114 cat >>confdefs.h <<_ACEOF
9115 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9116 _ACEOF
9117
9118   fi
9119
9120
9121   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9122 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9123 if test "${gl_cv_header_stdint_h+set}" = set; then
9124   echo $ECHO_N "(cached) $ECHO_C" >&6
9125 else
9126   cat >conftest.$ac_ext <<_ACEOF
9127 /* confdefs.h.  */
9128 _ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h.  */
9132 #include <sys/types.h>
9133 #include <stdint.h>
9134 int
9135 main ()
9136 {
9137 uintmax_t i = (uintmax_t) -1;
9138   ;
9139   return 0;
9140 }
9141 _ACEOF
9142 rm -f conftest.$ac_objext
9143 if { (ac_try="$ac_compile"
9144 case "(($ac_try" in
9145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9146   *) ac_try_echo=$ac_try;;
9147 esac
9148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9149   (eval "$ac_compile") 2>conftest.er1
9150   ac_status=$?
9151   grep -v '^ *+' conftest.er1 >conftest.err
9152   rm -f conftest.er1
9153   cat conftest.err >&5
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); } &&
9156          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9157   { (case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_try") 2>&5
9163   ac_status=$?
9164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165   (exit $ac_status); }; } &&
9166          { ac_try='test -s conftest.$ac_objext'
9167   { (case "(($ac_try" in
9168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9169   *) ac_try_echo=$ac_try;;
9170 esac
9171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9172   (eval "$ac_try") 2>&5
9173   ac_status=$?
9174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175   (exit $ac_status); }; }; then
9176   gl_cv_header_stdint_h=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181         gl_cv_header_stdint_h=no
9182 fi
9183
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 fi
9186 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9187 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9188   if test $gl_cv_header_stdint_h = yes; then
9189
9190 cat >>confdefs.h <<_ACEOF
9191 #define HAVE_STDINT_H_WITH_UINTMAX 1
9192 _ACEOF
9193
9194   fi
9195
9196
9197
9198
9199   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9200 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9201 if test "${gt_cv_c_intmax_t+set}" = set; then
9202   echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204   cat >conftest.$ac_ext <<_ACEOF
9205 /* confdefs.h.  */
9206 _ACEOF
9207 cat confdefs.h >>conftest.$ac_ext
9208 cat >>conftest.$ac_ext <<_ACEOF
9209 /* end confdefs.h.  */
9210
9211 #include <stddef.h>
9212 #include <stdlib.h>
9213 #if HAVE_STDINT_H_WITH_UINTMAX
9214 #include <stdint.h>
9215 #endif
9216 #if HAVE_INTTYPES_H_WITH_UINTMAX
9217 #include <inttypes.h>
9218 #endif
9219
9220 int
9221 main ()
9222 {
9223 intmax_t x = -1;
9224   ;
9225   return 0;
9226 }
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9230 case "(($ac_try" in
9231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232   *) ac_try_echo=$ac_try;;
9233 esac
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235   (eval "$ac_compile") 2>conftest.er1
9236   ac_status=$?
9237   grep -v '^ *+' conftest.er1 >conftest.err
9238   rm -f conftest.er1
9239   cat conftest.err >&5
9240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241   (exit $ac_status); } &&
9242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9243   { (case "(($ac_try" in
9244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9245   *) ac_try_echo=$ac_try;;
9246 esac
9247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9248   (eval "$ac_try") 2>&5
9249   ac_status=$?
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); }; } &&
9252          { ac_try='test -s conftest.$ac_objext'
9253   { (case "(($ac_try" in
9254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255   *) ac_try_echo=$ac_try;;
9256 esac
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258   (eval "$ac_try") 2>&5
9259   ac_status=$?
9260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261   (exit $ac_status); }; }; then
9262   gt_cv_c_intmax_t=yes
9263 else
9264   echo "$as_me: failed program was:" >&5
9265 sed 's/^/| /' conftest.$ac_ext >&5
9266
9267         gt_cv_c_intmax_t=no
9268 fi
9269
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9273 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9274   if test $gt_cv_c_intmax_t = yes; then
9275
9276 cat >>confdefs.h <<\_ACEOF
9277 #define HAVE_INTMAX_T 1
9278 _ACEOF
9279
9280   fi
9281
9282
9283
9284   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9285 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9286 if test "${gt_cv_func_printf_posix+set}" = set; then
9287   echo $ECHO_N "(cached) $ECHO_C" >&6
9288 else
9289
9290       if test "$cross_compiling" = yes; then
9291
9292         cat >conftest.$ac_ext <<_ACEOF
9293 /* confdefs.h.  */
9294 _ACEOF
9295 cat confdefs.h >>conftest.$ac_ext
9296 cat >>conftest.$ac_ext <<_ACEOF
9297 /* end confdefs.h.  */
9298
9299 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9300   notposix
9301 #endif
9302
9303 _ACEOF
9304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9305   $EGREP "notposix" >/dev/null 2>&1; then
9306   gt_cv_func_printf_posix="guessing no"
9307 else
9308   gt_cv_func_printf_posix="guessing yes"
9309 fi
9310 rm -f conftest*
9311
9312
9313 else
9314   cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320
9321 #include <stdio.h>
9322 #include <string.h>
9323 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9324    dollar expansion (possibly an autoconf bug).  */
9325 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9326 static char buf[100];
9327 int main ()
9328 {
9329   sprintf (buf, format, 33, 55);
9330   return (strcmp (buf, "55 33") != 0);
9331 }
9332 _ACEOF
9333 rm -f conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9335 case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340   (eval "$ac_link") 2>&5
9341   ac_status=$?
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9344   { (case "(($ac_try" in
9345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346   *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349   (eval "$ac_try") 2>&5
9350   ac_status=$?
9351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352   (exit $ac_status); }; }; then
9353   gt_cv_func_printf_posix=yes
9354 else
9355   echo "$as_me: program exited with status $ac_status" >&5
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359 ( exit $ac_status )
9360 gt_cv_func_printf_posix=no
9361 fi
9362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9363 fi
9364
9365
9366
9367 fi
9368 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9369 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9370   case $gt_cv_func_printf_posix in
9371     *yes)
9372
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_POSIX_PRINTF 1
9375 _ACEOF
9376
9377       ;;
9378   esac
9379
9380 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9381 # for constant arguments.  Useless!
9382 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9383 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9384 if test "${ac_cv_working_alloca_h+set}" = set; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387   cat >conftest.$ac_ext <<_ACEOF
9388 /* confdefs.h.  */
9389 _ACEOF
9390 cat confdefs.h >>conftest.$ac_ext
9391 cat >>conftest.$ac_ext <<_ACEOF
9392 /* end confdefs.h.  */
9393 #include <alloca.h>
9394 int
9395 main ()
9396 {
9397 char *p = (char *) alloca (2 * sizeof (int));
9398                           if (p) return 0;
9399   ;
9400   return 0;
9401 }
9402 _ACEOF
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (ac_try="$ac_link"
9405 case "(($ac_try" in
9406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9407   *) ac_try_echo=$ac_try;;
9408 esac
9409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9410   (eval "$ac_link") 2>conftest.er1
9411   ac_status=$?
9412   grep -v '^ *+' conftest.er1 >conftest.err
9413   rm -f conftest.er1
9414   cat conftest.err >&5
9415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416   (exit $ac_status); } &&
9417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9418   { (case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423   (eval "$ac_try") 2>&5
9424   ac_status=$?
9425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426   (exit $ac_status); }; } &&
9427          { ac_try='test -s conftest$ac_exeext'
9428   { (case "(($ac_try" in
9429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9430   *) ac_try_echo=$ac_try;;
9431 esac
9432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9433   (eval "$ac_try") 2>&5
9434   ac_status=$?
9435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436   (exit $ac_status); }; }; then
9437   ac_cv_working_alloca_h=yes
9438 else
9439   echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442         ac_cv_working_alloca_h=no
9443 fi
9444
9445 rm -f core conftest.err conftest.$ac_objext \
9446       conftest$ac_exeext conftest.$ac_ext
9447 fi
9448 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9449 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9450 if test $ac_cv_working_alloca_h = yes; then
9451
9452 cat >>confdefs.h <<\_ACEOF
9453 #define HAVE_ALLOCA_H 1
9454 _ACEOF
9455
9456 fi
9457
9458 { echo "$as_me:$LINENO: checking for alloca" >&5
9459 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9460 if test "${ac_cv_func_alloca_works+set}" = set; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 #ifdef __GNUC__
9470 # define alloca __builtin_alloca
9471 #else
9472 # ifdef _MSC_VER
9473 #  include <malloc.h>
9474 #  define alloca _alloca
9475 # else
9476 #  if HAVE_ALLOCA_H
9477 #   include <alloca.h>
9478 #  else
9479 #   ifdef _AIX
9480  #pragma alloca
9481 #   else
9482 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9483 char *alloca ();
9484 #    endif
9485 #   endif
9486 #  endif
9487 # endif
9488 #endif
9489
9490 int
9491 main ()
9492 {
9493 char *p = (char *) alloca (1);
9494                                     if (p) return 0;
9495   ;
9496   return 0;
9497 }
9498 _ACEOF
9499 rm -f conftest.$ac_objext conftest$ac_exeext
9500 if { (ac_try="$ac_link"
9501 case "(($ac_try" in
9502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503   *) ac_try_echo=$ac_try;;
9504 esac
9505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9506   (eval "$ac_link") 2>conftest.er1
9507   ac_status=$?
9508   grep -v '^ *+' conftest.er1 >conftest.err
9509   rm -f conftest.er1
9510   cat conftest.err >&5
9511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512   (exit $ac_status); } &&
9513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9514   { (case "(($ac_try" in
9515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516   *) ac_try_echo=$ac_try;;
9517 esac
9518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9519   (eval "$ac_try") 2>&5
9520   ac_status=$?
9521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522   (exit $ac_status); }; } &&
9523          { ac_try='test -s conftest$ac_exeext'
9524   { (case "(($ac_try" in
9525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9526   *) ac_try_echo=$ac_try;;
9527 esac
9528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9529   (eval "$ac_try") 2>&5
9530   ac_status=$?
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); }; }; then
9533   ac_cv_func_alloca_works=yes
9534 else
9535   echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9537
9538         ac_cv_func_alloca_works=no
9539 fi
9540
9541 rm -f core conftest.err conftest.$ac_objext \
9542       conftest$ac_exeext conftest.$ac_ext
9543 fi
9544 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9545 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9546
9547 if test $ac_cv_func_alloca_works = yes; then
9548
9549 cat >>confdefs.h <<\_ACEOF
9550 #define HAVE_ALLOCA 1
9551 _ACEOF
9552
9553 else
9554   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9555 # that cause trouble.  Some versions do not even contain alloca or
9556 # contain a buggy version.  If you still want to use their alloca,
9557 # use ar to extract alloca.o from them instead of compiling alloca.c.
9558
9559 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9560
9561 cat >>confdefs.h <<\_ACEOF
9562 #define C_ALLOCA 1
9563 _ACEOF
9564
9565
9566 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9567 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9568 if test "${ac_cv_os_cray+set}" = set; then
9569   echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571   cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h.  */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h.  */
9577 #if defined CRAY && ! defined CRAY2
9578 webecray
9579 #else
9580 wenotbecray
9581 #endif
9582
9583 _ACEOF
9584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9585   $EGREP "webecray" >/dev/null 2>&1; then
9586   ac_cv_os_cray=yes
9587 else
9588   ac_cv_os_cray=no
9589 fi
9590 rm -f conftest*
9591
9592 fi
9593 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9594 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9595 if test $ac_cv_os_cray = yes; then
9596   for ac_func in _getb67 GETB67 getb67; do
9597     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9601   echo $ECHO_N "(cached) $ECHO_C" >&6
9602 else
9603   cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h.  */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h.  */
9609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9611 #define $ac_func innocuous_$ac_func
9612
9613 /* System header to define __stub macros and hopefully few prototypes,
9614     which can conflict with char $ac_func (); below.
9615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9616     <limits.h> exists even on freestanding compilers.  */
9617
9618 #ifdef __STDC__
9619 # include <limits.h>
9620 #else
9621 # include <assert.h>
9622 #endif
9623
9624 #undef $ac_func
9625
9626 /* Override any GCC internal prototype to avoid an error.
9627    Use char because int might match the return type of a GCC
9628    builtin and then its argument prototype would still apply.  */
9629 #ifdef __cplusplus
9630 extern "C"
9631 #endif
9632 char $ac_func ();
9633 /* The GNU C library defines this for functions which it implements
9634     to always fail with ENOSYS.  Some functions are actually named
9635     something starting with __ and the normal name is an alias.  */
9636 #if defined __stub_$ac_func || defined __stub___$ac_func
9637 choke me
9638 #endif
9639
9640 int
9641 main ()
9642 {
9643 return $ac_func ();
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext conftest$ac_exeext
9649 if { (ac_try="$ac_link"
9650 case "(($ac_try" in
9651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652   *) ac_try_echo=$ac_try;;
9653 esac
9654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9655   (eval "$ac_link") 2>conftest.er1
9656   ac_status=$?
9657   grep -v '^ *+' conftest.er1 >conftest.err
9658   rm -f conftest.er1
9659   cat conftest.err >&5
9660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661   (exit $ac_status); } &&
9662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9663   { (case "(($ac_try" in
9664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9665   *) ac_try_echo=$ac_try;;
9666 esac
9667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9668   (eval "$ac_try") 2>&5
9669   ac_status=$?
9670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671   (exit $ac_status); }; } &&
9672          { ac_try='test -s conftest$ac_exeext'
9673   { (case "(($ac_try" in
9674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675   *) ac_try_echo=$ac_try;;
9676 esac
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678   (eval "$ac_try") 2>&5
9679   ac_status=$?
9680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681   (exit $ac_status); }; }; then
9682   eval "$as_ac_var=yes"
9683 else
9684   echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9686
9687         eval "$as_ac_var=no"
9688 fi
9689
9690 rm -f core conftest.err conftest.$ac_objext \
9691       conftest$ac_exeext conftest.$ac_ext
9692 fi
9693 ac_res=`eval echo '${'$as_ac_var'}'`
9694                { echo "$as_me:$LINENO: result: $ac_res" >&5
9695 echo "${ECHO_T}$ac_res" >&6; }
9696 if test `eval echo '${'$as_ac_var'}'` = yes; then
9697
9698 cat >>confdefs.h <<_ACEOF
9699 #define CRAY_STACKSEG_END $ac_func
9700 _ACEOF
9701
9702     break
9703 fi
9704
9705   done
9706 fi
9707
9708 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9709 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9710 if test "${ac_cv_c_stack_direction+set}" = set; then
9711   echo $ECHO_N "(cached) $ECHO_C" >&6
9712 else
9713   if test "$cross_compiling" = yes; then
9714   ac_cv_c_stack_direction=0
9715 else
9716   cat >conftest.$ac_ext <<_ACEOF
9717 /* confdefs.h.  */
9718 _ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h.  */
9722 $ac_includes_default
9723 int
9724 find_stack_direction ()
9725 {
9726   static char *addr = 0;
9727   auto char dummy;
9728   if (addr == 0)
9729     {
9730       addr = &dummy;
9731       return find_stack_direction ();
9732     }
9733   else
9734     return (&dummy > addr) ? 1 : -1;
9735 }
9736
9737 int
9738 main ()
9739 {
9740   return find_stack_direction () < 0;
9741 }
9742 _ACEOF
9743 rm -f conftest$ac_exeext
9744 if { (ac_try="$ac_link"
9745 case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750   (eval "$ac_link") 2>&5
9751   ac_status=$?
9752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9754   { (case "(($ac_try" in
9755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9756   *) ac_try_echo=$ac_try;;
9757 esac
9758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9759   (eval "$ac_try") 2>&5
9760   ac_status=$?
9761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762   (exit $ac_status); }; }; then
9763   ac_cv_c_stack_direction=1
9764 else
9765   echo "$as_me: program exited with status $ac_status" >&5
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 ( exit $ac_status )
9770 ac_cv_c_stack_direction=-1
9771 fi
9772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9773 fi
9774
9775
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9778 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9779
9780 cat >>confdefs.h <<_ACEOF
9781 #define STACK_DIRECTION $ac_cv_c_stack_direction
9782 _ACEOF
9783
9784
9785 fi
9786
9787
9788
9789 for ac_header in stdlib.h unistd.h
9790 do
9791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9793   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 fi
9798 ac_res=`eval echo '${'$as_ac_Header'}'`
9799                { echo "$as_me:$LINENO: result: $ac_res" >&5
9800 echo "${ECHO_T}$ac_res" >&6; }
9801 else
9802   # Is the header compilable?
9803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9805 cat >conftest.$ac_ext <<_ACEOF
9806 /* confdefs.h.  */
9807 _ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h.  */
9811 $ac_includes_default
9812 #include <$ac_header>
9813 _ACEOF
9814 rm -f conftest.$ac_objext
9815 if { (ac_try="$ac_compile"
9816 case "(($ac_try" in
9817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818   *) ac_try_echo=$ac_try;;
9819 esac
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821   (eval "$ac_compile") 2>conftest.er1
9822   ac_status=$?
9823   grep -v '^ *+' conftest.er1 >conftest.err
9824   rm -f conftest.er1
9825   cat conftest.err >&5
9826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827   (exit $ac_status); } &&
9828          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9829   { (case "(($ac_try" in
9830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831   *) ac_try_echo=$ac_try;;
9832 esac
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834   (eval "$ac_try") 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); }; } &&
9838          { ac_try='test -s conftest.$ac_objext'
9839   { (case "(($ac_try" in
9840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9841   *) ac_try_echo=$ac_try;;
9842 esac
9843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9844   (eval "$ac_try") 2>&5
9845   ac_status=$?
9846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847   (exit $ac_status); }; }; then
9848   ac_header_compiler=yes
9849 else
9850   echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9852
9853         ac_header_compiler=no
9854 fi
9855
9856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9858 echo "${ECHO_T}$ac_header_compiler" >&6; }
9859
9860 # Is the header present?
9861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9863 cat >conftest.$ac_ext <<_ACEOF
9864 /* confdefs.h.  */
9865 _ACEOF
9866 cat confdefs.h >>conftest.$ac_ext
9867 cat >>conftest.$ac_ext <<_ACEOF
9868 /* end confdefs.h.  */
9869 #include <$ac_header>
9870 _ACEOF
9871 if { (ac_try="$ac_cpp conftest.$ac_ext"
9872 case "(($ac_try" in
9873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9874   *) ac_try_echo=$ac_try;;
9875 esac
9876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9877   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9878   ac_status=$?
9879   grep -v '^ *+' conftest.er1 >conftest.err
9880   rm -f conftest.er1
9881   cat conftest.err >&5
9882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883   (exit $ac_status); } >/dev/null; then
9884   if test -s conftest.err; then
9885     ac_cpp_err=$ac_c_preproc_warn_flag
9886     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9887   else
9888     ac_cpp_err=
9889   fi
9890 else
9891   ac_cpp_err=yes
9892 fi
9893 if test -z "$ac_cpp_err"; then
9894   ac_header_preproc=yes
9895 else
9896   echo "$as_me: failed program was:" >&5
9897 sed 's/^/| /' conftest.$ac_ext >&5
9898
9899   ac_header_preproc=no
9900 fi
9901
9902 rm -f conftest.err conftest.$ac_ext
9903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9904 echo "${ECHO_T}$ac_header_preproc" >&6; }
9905
9906 # So?  What about this header?
9907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9908   yes:no: )
9909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9913     ac_header_preproc=yes
9914     ;;
9915   no:yes:* )
9916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9928
9929     ;;
9930 esac
9931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9934   echo $ECHO_N "(cached) $ECHO_C" >&6
9935 else
9936   eval "$as_ac_Header=\$ac_header_preproc"
9937 fi
9938 ac_res=`eval echo '${'$as_ac_Header'}'`
9939                { echo "$as_me:$LINENO: result: $ac_res" >&5
9940 echo "${ECHO_T}$ac_res" >&6; }
9941
9942 fi
9943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9944   cat >>confdefs.h <<_ACEOF
9945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9946 _ACEOF
9947
9948 fi
9949
9950 done
9951
9952
9953 for ac_func in getpagesize
9954 do
9955 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9956 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9957 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9958 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9959   echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961   cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h.  */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h.  */
9967 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9968    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9969 #define $ac_func innocuous_$ac_func
9970
9971 /* System header to define __stub macros and hopefully few prototypes,
9972     which can conflict with char $ac_func (); below.
9973     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9974     <limits.h> exists even on freestanding compilers.  */
9975
9976 #ifdef __STDC__
9977 # include <limits.h>
9978 #else
9979 # include <assert.h>
9980 #endif
9981
9982 #undef $ac_func
9983
9984 /* Override any GCC internal prototype to avoid an error.
9985    Use char because int might match the return type of a GCC
9986    builtin and then its argument prototype would still apply.  */
9987 #ifdef __cplusplus
9988 extern "C"
9989 #endif
9990 char $ac_func ();
9991 /* The GNU C library defines this for functions which it implements
9992     to always fail with ENOSYS.  Some functions are actually named
9993     something starting with __ and the normal name is an alias.  */
9994 #if defined __stub_$ac_func || defined __stub___$ac_func
9995 choke me
9996 #endif
9997
9998 int
9999 main ()
10000 {
10001 return $ac_func ();
10002   ;
10003   return 0;
10004 }
10005 _ACEOF
10006 rm -f conftest.$ac_objext conftest$ac_exeext
10007 if { (ac_try="$ac_link"
10008 case "(($ac_try" in
10009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10010   *) ac_try_echo=$ac_try;;
10011 esac
10012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10013   (eval "$ac_link") 2>conftest.er1
10014   ac_status=$?
10015   grep -v '^ *+' conftest.er1 >conftest.err
10016   rm -f conftest.er1
10017   cat conftest.err >&5
10018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019   (exit $ac_status); } &&
10020          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10021   { (case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_try") 2>&5
10027   ac_status=$?
10028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029   (exit $ac_status); }; } &&
10030          { ac_try='test -s conftest$ac_exeext'
10031   { (case "(($ac_try" in
10032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10033   *) ac_try_echo=$ac_try;;
10034 esac
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036   (eval "$ac_try") 2>&5
10037   ac_status=$?
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); }; }; then
10040   eval "$as_ac_var=yes"
10041 else
10042   echo "$as_me: failed program was:" >&5
10043 sed 's/^/| /' conftest.$ac_ext >&5
10044
10045         eval "$as_ac_var=no"
10046 fi
10047
10048 rm -f core conftest.err conftest.$ac_objext \
10049       conftest$ac_exeext conftest.$ac_ext
10050 fi
10051 ac_res=`eval echo '${'$as_ac_var'}'`
10052                { echo "$as_me:$LINENO: result: $ac_res" >&5
10053 echo "${ECHO_T}$ac_res" >&6; }
10054 if test `eval echo '${'$as_ac_var'}'` = yes; then
10055   cat >>confdefs.h <<_ACEOF
10056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10057 _ACEOF
10058
10059 fi
10060 done
10061
10062 { echo "$as_me:$LINENO: checking for working mmap" >&5
10063 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10064 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10065   echo $ECHO_N "(cached) $ECHO_C" >&6
10066 else
10067   if test "$cross_compiling" = yes; then
10068   ac_cv_func_mmap_fixed_mapped=no
10069 else
10070   cat >conftest.$ac_ext <<_ACEOF
10071 /* confdefs.h.  */
10072 _ACEOF
10073 cat confdefs.h >>conftest.$ac_ext
10074 cat >>conftest.$ac_ext <<_ACEOF
10075 /* end confdefs.h.  */
10076 $ac_includes_default
10077 /* malloc might have been renamed as rpl_malloc. */
10078 #undef malloc
10079
10080 /* Thanks to Mike Haertel and Jim Avera for this test.
10081    Here is a matrix of mmap possibilities:
10082         mmap private not fixed
10083         mmap private fixed at somewhere currently unmapped
10084         mmap private fixed at somewhere already mapped
10085         mmap shared not fixed
10086         mmap shared fixed at somewhere currently unmapped
10087         mmap shared fixed at somewhere already mapped
10088    For private mappings, we should verify that changes cannot be read()
10089    back from the file, nor mmap's back from the file at a different
10090    address.  (There have been systems where private was not correctly
10091    implemented like the infamous i386 svr4.0, and systems where the
10092    VM page cache was not coherent with the file system buffer cache
10093    like early versions of FreeBSD and possibly contemporary NetBSD.)
10094    For shared mappings, we should conversely verify that changes get
10095    propagated back to all the places they're supposed to be.
10096
10097    Grep wants private fixed already mapped.
10098    The main things grep needs to know about mmap are:
10099    * does it exist and is it safe to write into the mmap'd area
10100    * how to use it (BSD variants)  */
10101
10102 #include <fcntl.h>
10103 #include <sys/mman.h>
10104
10105 #if !STDC_HEADERS && !HAVE_STDLIB_H
10106 char *malloc ();
10107 #endif
10108
10109 /* This mess was copied from the GNU getpagesize.h.  */
10110 #if !HAVE_GETPAGESIZE
10111 /* Assume that all systems that can run configure have sys/param.h.  */
10112 # if !HAVE_SYS_PARAM_H
10113 #  define HAVE_SYS_PARAM_H 1
10114 # endif
10115
10116 # ifdef _SC_PAGESIZE
10117 #  define getpagesize() sysconf(_SC_PAGESIZE)
10118 # else /* no _SC_PAGESIZE */
10119 #  if HAVE_SYS_PARAM_H
10120 #   include <sys/param.h>
10121 #   ifdef EXEC_PAGESIZE
10122 #    define getpagesize() EXEC_PAGESIZE
10123 #   else /* no EXEC_PAGESIZE */
10124 #    ifdef NBPG
10125 #     define getpagesize() NBPG * CLSIZE
10126 #     ifndef CLSIZE
10127 #      define CLSIZE 1
10128 #     endif /* no CLSIZE */
10129 #    else /* no NBPG */
10130 #     ifdef NBPC
10131 #      define getpagesize() NBPC
10132 #     else /* no NBPC */
10133 #      ifdef PAGESIZE
10134 #       define getpagesize() PAGESIZE
10135 #      endif /* PAGESIZE */
10136 #     endif /* no NBPC */
10137 #    endif /* no NBPG */
10138 #   endif /* no EXEC_PAGESIZE */
10139 #  else /* no HAVE_SYS_PARAM_H */
10140 #   define getpagesize() 8192   /* punt totally */
10141 #  endif /* no HAVE_SYS_PARAM_H */
10142 # endif /* no _SC_PAGESIZE */
10143
10144 #endif /* no HAVE_GETPAGESIZE */
10145
10146 int
10147 main ()
10148 {
10149   char *data, *data2, *data3;
10150   int i, pagesize;
10151   int fd;
10152
10153   pagesize = getpagesize ();
10154
10155   /* First, make a file with some known garbage in it. */
10156   data = (char *) malloc (pagesize);
10157   if (!data)
10158     return 1;
10159   for (i = 0; i < pagesize; ++i)
10160     *(data + i) = rand ();
10161   umask (0);
10162   fd = creat ("conftest.mmap", 0600);
10163   if (fd < 0)
10164     return 1;
10165   if (write (fd, data, pagesize) != pagesize)
10166     return 1;
10167   close (fd);
10168
10169   /* Next, try to mmap the file at a fixed address which already has
10170      something else allocated at it.  If we can, also make sure that
10171      we see the same garbage.  */
10172   fd = open ("conftest.mmap", O_RDWR);
10173   if (fd < 0)
10174     return 1;
10175   data2 = (char *) malloc (2 * pagesize);
10176   if (!data2)
10177     return 1;
10178   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10179   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10180                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10181     return 1;
10182   for (i = 0; i < pagesize; ++i)
10183     if (*(data + i) != *(data2 + i))
10184       return 1;
10185
10186   /* Finally, make sure that changes to the mapped area do not
10187      percolate back to the file as seen by read().  (This is a bug on
10188      some variants of i386 svr4.0.)  */
10189   for (i = 0; i < pagesize; ++i)
10190     *(data2 + i) = *(data2 + i) + 1;
10191   data3 = (char *) malloc (pagesize);
10192   if (!data3)
10193     return 1;
10194   if (read (fd, data3, pagesize) != pagesize)
10195     return 1;
10196   for (i = 0; i < pagesize; ++i)
10197     if (*(data + i) != *(data3 + i))
10198       return 1;
10199   close (fd);
10200   return 0;
10201 }
10202 _ACEOF
10203 rm -f conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207   *) ac_try_echo=$ac_try;;
10208 esac
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210   (eval "$ac_link") 2>&5
10211   ac_status=$?
10212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10214   { (case "(($ac_try" in
10215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10216   *) ac_try_echo=$ac_try;;
10217 esac
10218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10219   (eval "$ac_try") 2>&5
10220   ac_status=$?
10221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222   (exit $ac_status); }; }; then
10223   ac_cv_func_mmap_fixed_mapped=yes
10224 else
10225   echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10228
10229 ( exit $ac_status )
10230 ac_cv_func_mmap_fixed_mapped=no
10231 fi
10232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10233 fi
10234
10235
10236 fi
10237 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10238 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10239 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10240
10241 cat >>confdefs.h <<\_ACEOF
10242 #define HAVE_MMAP 1
10243 _ACEOF
10244
10245 fi
10246 rm -f conftest.mmap
10247
10248
10249     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10250 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10251 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10252   echo $ECHO_N "(cached) $ECHO_C" >&6
10253 else
10254   cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h.  */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h.  */
10260
10261 #include <features.h>
10262 #ifdef __GNU_LIBRARY__
10263  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10264   Lucky GNU user
10265  #endif
10266 #endif
10267
10268 _ACEOF
10269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10270   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10271   ac_cv_gnu_library_2_1=yes
10272 else
10273   ac_cv_gnu_library_2_1=no
10274 fi
10275 rm -f conftest*
10276
10277
10278
10279 fi
10280 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10281 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10282
10283     GLIBC21="$ac_cv_gnu_library_2_1"
10284
10285
10286
10287
10288   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10289 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10290 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293
10294       if test "$cross_compiling" = yes; then
10295
10296           # Guess based on the CPU.
10297           case "$host_cpu" in
10298             alpha* | i3456786 | m68k | s390*)
10299               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10300             *)
10301               gt_cv_int_divbyzero_sigfpe="guessing no";;
10302           esac
10303
10304 else
10305   cat >conftest.$ac_ext <<_ACEOF
10306 /* confdefs.h.  */
10307 _ACEOF
10308 cat confdefs.h >>conftest.$ac_ext
10309 cat >>conftest.$ac_ext <<_ACEOF
10310 /* end confdefs.h.  */
10311
10312 #include <stdlib.h>
10313 #include <signal.h>
10314
10315 static void
10316 #ifdef __cplusplus
10317 sigfpe_handler (int sig)
10318 #else
10319 sigfpe_handler (sig) int sig;
10320 #endif
10321 {
10322   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10323   exit (sig != SIGFPE);
10324 }
10325
10326 int x = 1;
10327 int y = 0;
10328 int z;
10329 int nan;
10330
10331 int main ()
10332 {
10333   signal (SIGFPE, sigfpe_handler);
10334 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10335 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10336   signal (SIGTRAP, sigfpe_handler);
10337 #endif
10338 /* Linux/SPARC yields signal SIGILL.  */
10339 #if defined (__sparc__) && defined (__linux__)
10340   signal (SIGILL, sigfpe_handler);
10341 #endif
10342
10343   z = x / y;
10344   nan = y / y;
10345   exit (1);
10346 }
10347
10348 _ACEOF
10349 rm -f conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10353   *) ac_try_echo=$ac_try;;
10354 esac
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356   (eval "$ac_link") 2>&5
10357   ac_status=$?
10358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10360   { (case "(($ac_try" in
10361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10362   *) ac_try_echo=$ac_try;;
10363 esac
10364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10365   (eval "$ac_try") 2>&5
10366   ac_status=$?
10367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368   (exit $ac_status); }; }; then
10369   gt_cv_int_divbyzero_sigfpe=yes
10370 else
10371   echo "$as_me: program exited with status $ac_status" >&5
10372 echo "$as_me: failed program was:" >&5
10373 sed 's/^/| /' conftest.$ac_ext >&5
10374
10375 ( exit $ac_status )
10376 gt_cv_int_divbyzero_sigfpe=no
10377 fi
10378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10379 fi
10380
10381
10382
10383 fi
10384 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10385 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10386   case "$gt_cv_int_divbyzero_sigfpe" in
10387     *yes) value=1;;
10388     *) value=0;;
10389   esac
10390
10391 cat >>confdefs.h <<_ACEOF
10392 #define INTDIV0_RAISES_SIGFPE $value
10393 _ACEOF
10394
10395
10396
10397   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10398 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10399 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10400   echo $ECHO_N "(cached) $ECHO_C" >&6
10401 else
10402   cat >conftest.$ac_ext <<_ACEOF
10403 /* confdefs.h.  */
10404 _ACEOF
10405 cat confdefs.h >>conftest.$ac_ext
10406 cat >>conftest.$ac_ext <<_ACEOF
10407 /* end confdefs.h.  */
10408 unsigned long long ull = 1ULL; int i = 63;
10409 int
10410 main ()
10411 {
10412 unsigned long long ullmax = (unsigned long long) -1;
10413      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10414   ;
10415   return 0;
10416 }
10417 _ACEOF
10418 rm -f conftest.$ac_objext conftest$ac_exeext
10419 if { (ac_try="$ac_link"
10420 case "(($ac_try" in
10421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10422   *) ac_try_echo=$ac_try;;
10423 esac
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425   (eval "$ac_link") 2>conftest.er1
10426   ac_status=$?
10427   grep -v '^ *+' conftest.er1 >conftest.err
10428   rm -f conftest.er1
10429   cat conftest.err >&5
10430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431   (exit $ac_status); } &&
10432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10433   { (case "(($ac_try" in
10434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435   *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438   (eval "$ac_try") 2>&5
10439   ac_status=$?
10440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441   (exit $ac_status); }; } &&
10442          { ac_try='test -s conftest$ac_exeext'
10443   { (case "(($ac_try" in
10444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445   *) ac_try_echo=$ac_try;;
10446 esac
10447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10448   (eval "$ac_try") 2>&5
10449   ac_status=$?
10450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451   (exit $ac_status); }; }; then
10452   ac_cv_type_unsigned_long_long=yes
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457         ac_cv_type_unsigned_long_long=no
10458 fi
10459
10460 rm -f core conftest.err conftest.$ac_objext \
10461       conftest$ac_exeext conftest.$ac_ext
10462 fi
10463 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10464 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10465   if test $ac_cv_type_unsigned_long_long = yes; then
10466
10467 cat >>confdefs.h <<\_ACEOF
10468 #define HAVE_UNSIGNED_LONG_LONG 1
10469 _ACEOF
10470
10471   fi
10472
10473
10474
10475
10476   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10477
10478     test $ac_cv_type_unsigned_long_long = yes \
10479       && ac_type='unsigned long long' \
10480       || ac_type='unsigned long'
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define uintmax_t $ac_type
10484 _ACEOF
10485
10486   else
10487
10488 cat >>confdefs.h <<\_ACEOF
10489 #define HAVE_UINTMAX_T 1
10490 _ACEOF
10491
10492   fi
10493
10494
10495   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10496 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10497 if test "${gt_cv_header_inttypes_h+set}" = set; then
10498   echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500
10501     cat >conftest.$ac_ext <<_ACEOF
10502 /* confdefs.h.  */
10503 _ACEOF
10504 cat confdefs.h >>conftest.$ac_ext
10505 cat >>conftest.$ac_ext <<_ACEOF
10506 /* end confdefs.h.  */
10507 #include <sys/types.h>
10508 #include <inttypes.h>
10509 int
10510 main ()
10511 {
10512
10513   ;
10514   return 0;
10515 }
10516 _ACEOF
10517 rm -f conftest.$ac_objext
10518 if { (ac_try="$ac_compile"
10519 case "(($ac_try" in
10520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521   *) ac_try_echo=$ac_try;;
10522 esac
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524   (eval "$ac_compile") 2>conftest.er1
10525   ac_status=$?
10526   grep -v '^ *+' conftest.er1 >conftest.err
10527   rm -f conftest.er1
10528   cat conftest.err >&5
10529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530   (exit $ac_status); } &&
10531          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10532   { (case "(($ac_try" in
10533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534   *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537   (eval "$ac_try") 2>&5
10538   ac_status=$?
10539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540   (exit $ac_status); }; } &&
10541          { ac_try='test -s conftest.$ac_objext'
10542   { (case "(($ac_try" in
10543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10544   *) ac_try_echo=$ac_try;;
10545 esac
10546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10547   (eval "$ac_try") 2>&5
10548   ac_status=$?
10549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550   (exit $ac_status); }; }; then
10551   gt_cv_header_inttypes_h=yes
10552 else
10553   echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10555
10556         gt_cv_header_inttypes_h=no
10557 fi
10558
10559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560
10561 fi
10562 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10563 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10564   if test $gt_cv_header_inttypes_h = yes; then
10565
10566 cat >>confdefs.h <<_ACEOF
10567 #define HAVE_INTTYPES_H 1
10568 _ACEOF
10569
10570   fi
10571
10572
10573
10574   if test $gt_cv_header_inttypes_h = yes; then
10575     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10576 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10577 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10578   echo $ECHO_N "(cached) $ECHO_C" >&6
10579 else
10580
10581         cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h.  */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h.  */
10587 #include <inttypes.h>
10588 #ifdef PRId32
10589 char *p = PRId32;
10590 #endif
10591
10592 int
10593 main ()
10594 {
10595
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext
10601 if { (ac_try="$ac_compile"
10602 case "(($ac_try" in
10603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10604   *) ac_try_echo=$ac_try;;
10605 esac
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607   (eval "$ac_compile") 2>conftest.er1
10608   ac_status=$?
10609   grep -v '^ *+' conftest.er1 >conftest.err
10610   rm -f conftest.er1
10611   cat conftest.err >&5
10612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613   (exit $ac_status); } &&
10614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10615   { (case "(($ac_try" in
10616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617   *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620   (eval "$ac_try") 2>&5
10621   ac_status=$?
10622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623   (exit $ac_status); }; } &&
10624          { ac_try='test -s conftest.$ac_objext'
10625   { (case "(($ac_try" in
10626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627   *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630   (eval "$ac_try") 2>&5
10631   ac_status=$?
10632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633   (exit $ac_status); }; }; then
10634   gt_cv_inttypes_pri_broken=no
10635 else
10636   echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639         gt_cv_inttypes_pri_broken=yes
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643
10644 fi
10645 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10646 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10647   fi
10648   if test "$gt_cv_inttypes_pri_broken" = yes; then
10649
10650 cat >>confdefs.h <<_ACEOF
10651 #define PRI_MACROS_BROKEN 1
10652 _ACEOF
10653
10654   fi
10655
10656
10657
10658 for ac_header in stdint.h
10659 do
10660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10662   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10665   echo $ECHO_N "(cached) $ECHO_C" >&6
10666 fi
10667 ac_res=`eval echo '${'$as_ac_Header'}'`
10668                { echo "$as_me:$LINENO: result: $ac_res" >&5
10669 echo "${ECHO_T}$ac_res" >&6; }
10670 else
10671   # Is the header compilable?
10672 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10673 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680 $ac_includes_default
10681 #include <$ac_header>
10682 _ACEOF
10683 rm -f conftest.$ac_objext
10684 if { (ac_try="$ac_compile"
10685 case "(($ac_try" in
10686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10687   *) ac_try_echo=$ac_try;;
10688 esac
10689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10690   (eval "$ac_compile") 2>conftest.er1
10691   ac_status=$?
10692   grep -v '^ *+' conftest.er1 >conftest.err
10693   rm -f conftest.er1
10694   cat conftest.err >&5
10695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696   (exit $ac_status); } &&
10697          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10698   { (case "(($ac_try" in
10699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700   *) ac_try_echo=$ac_try;;
10701 esac
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703   (eval "$ac_try") 2>&5
10704   ac_status=$?
10705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706   (exit $ac_status); }; } &&
10707          { ac_try='test -s conftest.$ac_objext'
10708   { (case "(($ac_try" in
10709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710   *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713   (eval "$ac_try") 2>&5
10714   ac_status=$?
10715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10716   (exit $ac_status); }; }; then
10717   ac_header_compiler=yes
10718 else
10719   echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.$ac_ext >&5
10721
10722         ac_header_compiler=no
10723 fi
10724
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10727 echo "${ECHO_T}$ac_header_compiler" >&6; }
10728
10729 # Is the header present?
10730 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10732 cat >conftest.$ac_ext <<_ACEOF
10733 /* confdefs.h.  */
10734 _ACEOF
10735 cat confdefs.h >>conftest.$ac_ext
10736 cat >>conftest.$ac_ext <<_ACEOF
10737 /* end confdefs.h.  */
10738 #include <$ac_header>
10739 _ACEOF
10740 if { (ac_try="$ac_cpp conftest.$ac_ext"
10741 case "(($ac_try" in
10742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743   *) ac_try_echo=$ac_try;;
10744 esac
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10747   ac_status=$?
10748   grep -v '^ *+' conftest.er1 >conftest.err
10749   rm -f conftest.er1
10750   cat conftest.err >&5
10751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752   (exit $ac_status); } >/dev/null; then
10753   if test -s conftest.err; then
10754     ac_cpp_err=$ac_c_preproc_warn_flag
10755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10756   else
10757     ac_cpp_err=
10758   fi
10759 else
10760   ac_cpp_err=yes
10761 fi
10762 if test -z "$ac_cpp_err"; then
10763   ac_header_preproc=yes
10764 else
10765   echo "$as_me: failed program was:" >&5
10766 sed 's/^/| /' conftest.$ac_ext >&5
10767
10768   ac_header_preproc=no
10769 fi
10770
10771 rm -f conftest.err conftest.$ac_ext
10772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773 echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
10775 # So?  What about this header?
10776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777   yes:no: )
10778     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10782     ac_header_preproc=yes
10783     ;;
10784   no:yes:* )
10785     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10787     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10788 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10792 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10795     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10797
10798     ;;
10799 esac
10800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10803   echo $ECHO_N "(cached) $ECHO_C" >&6
10804 else
10805   eval "$as_ac_Header=\$ac_header_preproc"
10806 fi
10807 ac_res=`eval echo '${'$as_ac_Header'}'`
10808                { echo "$as_me:$LINENO: result: $ac_res" >&5
10809 echo "${ECHO_T}$ac_res" >&6; }
10810
10811 fi
10812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10813   cat >>confdefs.h <<_ACEOF
10814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10815 _ACEOF
10816
10817 fi
10818
10819 done
10820
10821     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10822 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10823   result=
10824   cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830
10831 #include <limits.h>
10832 #if HAVE_STDINT_H
10833 #include <stdint.h>
10834 #endif
10835 #ifdef SIZE_MAX
10836 Found it
10837 #endif
10838
10839 _ACEOF
10840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10841   $EGREP "Found it" >/dev/null 2>&1; then
10842   result=yes
10843 fi
10844 rm -f conftest*
10845
10846   if test -z "$result"; then
10847                     if test "$cross_compiling" = yes; then
10848   # Depending upon the size, compute the lo and hi bounds.
10849 cat >conftest.$ac_ext <<_ACEOF
10850 /* confdefs.h.  */
10851 _ACEOF
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h.  */
10855 #include <stddef.h>
10856 int
10857 main ()
10858 {
10859 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10860 test_array [0] = 0
10861
10862   ;
10863   return 0;
10864 }
10865 _ACEOF
10866 rm -f conftest.$ac_objext
10867 if { (ac_try="$ac_compile"
10868 case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_compile") 2>conftest.er1
10874   ac_status=$?
10875   grep -v '^ *+' conftest.er1 >conftest.err
10876   rm -f conftest.er1
10877   cat conftest.err >&5
10878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } &&
10880          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881   { (case "(($ac_try" in
10882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883   *) ac_try_echo=$ac_try;;
10884 esac
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886   (eval "$ac_try") 2>&5
10887   ac_status=$?
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); }; } &&
10890          { ac_try='test -s conftest.$ac_objext'
10891   { (case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_try") 2>&5
10897   ac_status=$?
10898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899   (exit $ac_status); }; }; then
10900   ac_lo=0 ac_mid=0
10901   while :; do
10902     cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h.  */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h.  */
10908 #include <stddef.h>
10909 int
10910 main ()
10911 {
10912 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10913 test_array [0] = 0
10914
10915   ;
10916   return 0;
10917 }
10918 _ACEOF
10919 rm -f conftest.$ac_objext
10920 if { (ac_try="$ac_compile"
10921 case "(($ac_try" in
10922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10923   *) ac_try_echo=$ac_try;;
10924 esac
10925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10926   (eval "$ac_compile") 2>conftest.er1
10927   ac_status=$?
10928   grep -v '^ *+' conftest.er1 >conftest.err
10929   rm -f conftest.er1
10930   cat conftest.err >&5
10931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932   (exit $ac_status); } &&
10933          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10934   { (case "(($ac_try" in
10935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10936   *) ac_try_echo=$ac_try;;
10937 esac
10938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10939   (eval "$ac_try") 2>&5
10940   ac_status=$?
10941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942   (exit $ac_status); }; } &&
10943          { ac_try='test -s conftest.$ac_objext'
10944   { (case "(($ac_try" in
10945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10946   *) ac_try_echo=$ac_try;;
10947 esac
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949   (eval "$ac_try") 2>&5
10950   ac_status=$?
10951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10952   (exit $ac_status); }; }; then
10953   ac_hi=$ac_mid; break
10954 else
10955   echo "$as_me: failed program was:" >&5
10956 sed 's/^/| /' conftest.$ac_ext >&5
10957
10958         ac_lo=`expr $ac_mid + 1`
10959                         if test $ac_lo -le $ac_mid; then
10960                           ac_lo= ac_hi=
10961                           break
10962                         fi
10963                         ac_mid=`expr 2 '*' $ac_mid + 1`
10964 fi
10965
10966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10967   done
10968 else
10969   echo "$as_me: failed program was:" >&5
10970 sed 's/^/| /' conftest.$ac_ext >&5
10971
10972         cat >conftest.$ac_ext <<_ACEOF
10973 /* confdefs.h.  */
10974 _ACEOF
10975 cat confdefs.h >>conftest.$ac_ext
10976 cat >>conftest.$ac_ext <<_ACEOF
10977 /* end confdefs.h.  */
10978 #include <stddef.h>
10979 int
10980 main ()
10981 {
10982 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10983 test_array [0] = 0
10984
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext
10990 if { (ac_try="$ac_compile"
10991 case "(($ac_try" in
10992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993   *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996   (eval "$ac_compile") 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } &&
11003          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11004   { (case "(($ac_try" in
11005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006   *) ac_try_echo=$ac_try;;
11007 esac
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009   (eval "$ac_try") 2>&5
11010   ac_status=$?
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); }; } &&
11013          { ac_try='test -s conftest.$ac_objext'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; }; then
11023   ac_hi=-1 ac_mid=-1
11024   while :; do
11025     cat >conftest.$ac_ext <<_ACEOF
11026 /* confdefs.h.  */
11027 _ACEOF
11028 cat confdefs.h >>conftest.$ac_ext
11029 cat >>conftest.$ac_ext <<_ACEOF
11030 /* end confdefs.h.  */
11031 #include <stddef.h>
11032 int
11033 main ()
11034 {
11035 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11036 test_array [0] = 0
11037
11038   ;
11039   return 0;
11040 }
11041 _ACEOF
11042 rm -f conftest.$ac_objext
11043 if { (ac_try="$ac_compile"
11044 case "(($ac_try" in
11045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11046   *) ac_try_echo=$ac_try;;
11047 esac
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049   (eval "$ac_compile") 2>conftest.er1
11050   ac_status=$?
11051   grep -v '^ *+' conftest.er1 >conftest.err
11052   rm -f conftest.er1
11053   cat conftest.err >&5
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); } &&
11056          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11057   { (case "(($ac_try" in
11058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11059   *) ac_try_echo=$ac_try;;
11060 esac
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062   (eval "$ac_try") 2>&5
11063   ac_status=$?
11064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065   (exit $ac_status); }; } &&
11066          { ac_try='test -s conftest.$ac_objext'
11067   { (case "(($ac_try" in
11068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11069   *) ac_try_echo=$ac_try;;
11070 esac
11071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11072   (eval "$ac_try") 2>&5
11073   ac_status=$?
11074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11075   (exit $ac_status); }; }; then
11076   ac_lo=$ac_mid; break
11077 else
11078   echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.$ac_ext >&5
11080
11081         ac_hi=`expr '(' $ac_mid ')' - 1`
11082                         if test $ac_mid -le $ac_hi; then
11083                           ac_lo= ac_hi=
11084                           break
11085                         fi
11086                         ac_mid=`expr 2 '*' $ac_mid`
11087 fi
11088
11089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11090   done
11091 else
11092   echo "$as_me: failed program was:" >&5
11093 sed 's/^/| /' conftest.$ac_ext >&5
11094
11095         ac_lo= ac_hi=
11096 fi
11097
11098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11102 # Binary search between lo and hi bounds.
11103 while test "x$ac_lo" != "x$ac_hi"; do
11104   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11105   cat >conftest.$ac_ext <<_ACEOF
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111 #include <stddef.h>
11112 int
11113 main ()
11114 {
11115 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11116 test_array [0] = 0
11117
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 rm -f conftest.$ac_objext
11123 if { (ac_try="$ac_compile"
11124 case "(($ac_try" in
11125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11126   *) ac_try_echo=$ac_try;;
11127 esac
11128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11129   (eval "$ac_compile") 2>conftest.er1
11130   ac_status=$?
11131   grep -v '^ *+' conftest.er1 >conftest.err
11132   rm -f conftest.er1
11133   cat conftest.err >&5
11134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135   (exit $ac_status); } &&
11136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11137   { (case "(($ac_try" in
11138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11139   *) ac_try_echo=$ac_try;;
11140 esac
11141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11142   (eval "$ac_try") 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; } &&
11146          { ac_try='test -s conftest.$ac_objext'
11147   { (case "(($ac_try" in
11148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149   *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152   (eval "$ac_try") 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; }; then
11156   ac_hi=$ac_mid
11157 else
11158   echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11160
11161         ac_lo=`expr '(' $ac_mid ')' + 1`
11162 fi
11163
11164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11165 done
11166 case $ac_lo in
11167 ?*) res_hi=$ac_lo;;
11168 '') result=? ;;
11169 esac
11170 else
11171   cat >conftest.$ac_ext <<_ACEOF
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 #include <stddef.h>
11178 static long int longval () { return ~(size_t)0 / 10; }
11179 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11180 #include <stdio.h>
11181 #include <stdlib.h>
11182 int
11183 main ()
11184 {
11185
11186   FILE *f = fopen ("conftest.val", "w");
11187   if (! f)
11188     return 1;
11189   if ((~(size_t)0 / 10) < 0)
11190     {
11191       long int i = longval ();
11192       if (i != (~(size_t)0 / 10))
11193         return 1;
11194       fprintf (f, "%ld\n", i);
11195     }
11196   else
11197     {
11198       unsigned long int i = ulongval ();
11199       if (i != (~(size_t)0 / 10))
11200         return 1;
11201       fprintf (f, "%lu\n", i);
11202     }
11203   return ferror (f) || fclose (f) != 0;
11204
11205   ;
11206   return 0;
11207 }
11208 _ACEOF
11209 rm -f conftest$ac_exeext
11210 if { (ac_try="$ac_link"
11211 case "(($ac_try" in
11212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213   *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216   (eval "$ac_link") 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11220   { (case "(($ac_try" in
11221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222   *) ac_try_echo=$ac_try;;
11223 esac
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225   (eval "$ac_try") 2>&5
11226   ac_status=$?
11227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228   (exit $ac_status); }; }; then
11229   res_hi=`cat conftest.val`
11230 else
11231   echo "$as_me: program exited with status $ac_status" >&5
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11234
11235 ( exit $ac_status )
11236 result=?
11237 fi
11238 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11239 fi
11240 rm -f conftest.val
11241     if test "$cross_compiling" = yes; then
11242   # Depending upon the size, compute the lo and hi bounds.
11243 cat >conftest.$ac_ext <<_ACEOF
11244 /* confdefs.h.  */
11245 _ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h.  */
11249 #include <stddef.h>
11250 int
11251 main ()
11252 {
11253 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11254 test_array [0] = 0
11255
11256   ;
11257   return 0;
11258 }
11259 _ACEOF
11260 rm -f conftest.$ac_objext
11261 if { (ac_try="$ac_compile"
11262 case "(($ac_try" in
11263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264   *) ac_try_echo=$ac_try;;
11265 esac
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267   (eval "$ac_compile") 2>conftest.er1
11268   ac_status=$?
11269   grep -v '^ *+' conftest.er1 >conftest.err
11270   rm -f conftest.er1
11271   cat conftest.err >&5
11272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273   (exit $ac_status); } &&
11274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11275   { (case "(($ac_try" in
11276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11277   *) ac_try_echo=$ac_try;;
11278 esac
11279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11280   (eval "$ac_try") 2>&5
11281   ac_status=$?
11282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283   (exit $ac_status); }; } &&
11284          { ac_try='test -s conftest.$ac_objext'
11285   { (case "(($ac_try" in
11286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11287   *) ac_try_echo=$ac_try;;
11288 esac
11289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11290   (eval "$ac_try") 2>&5
11291   ac_status=$?
11292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11293   (exit $ac_status); }; }; then
11294   ac_lo=0 ac_mid=0
11295   while :; do
11296     cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 #include <stddef.h>
11303 int
11304 main ()
11305 {
11306 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11307 test_array [0] = 0
11308
11309   ;
11310   return 0;
11311 }
11312 _ACEOF
11313 rm -f conftest.$ac_objext
11314 if { (ac_try="$ac_compile"
11315 case "(($ac_try" in
11316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11317   *) ac_try_echo=$ac_try;;
11318 esac
11319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11320   (eval "$ac_compile") 2>conftest.er1
11321   ac_status=$?
11322   grep -v '^ *+' conftest.er1 >conftest.err
11323   rm -f conftest.er1
11324   cat conftest.err >&5
11325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326   (exit $ac_status); } &&
11327          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11328   { (case "(($ac_try" in
11329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11330   *) ac_try_echo=$ac_try;;
11331 esac
11332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11333   (eval "$ac_try") 2>&5
11334   ac_status=$?
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); }; } &&
11337          { ac_try='test -s conftest.$ac_objext'
11338   { (case "(($ac_try" in
11339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11340   *) ac_try_echo=$ac_try;;
11341 esac
11342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11343   (eval "$ac_try") 2>&5
11344   ac_status=$?
11345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346   (exit $ac_status); }; }; then
11347   ac_hi=$ac_mid; break
11348 else
11349   echo "$as_me: failed program was:" >&5
11350 sed 's/^/| /' conftest.$ac_ext >&5
11351
11352         ac_lo=`expr $ac_mid + 1`
11353                         if test $ac_lo -le $ac_mid; then
11354                           ac_lo= ac_hi=
11355                           break
11356                         fi
11357                         ac_mid=`expr 2 '*' $ac_mid + 1`
11358 fi
11359
11360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11361   done
11362 else
11363   echo "$as_me: failed program was:" >&5
11364 sed 's/^/| /' conftest.$ac_ext >&5
11365
11366         cat >conftest.$ac_ext <<_ACEOF
11367 /* confdefs.h.  */
11368 _ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h.  */
11372 #include <stddef.h>
11373 int
11374 main ()
11375 {
11376 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11377 test_array [0] = 0
11378
11379   ;
11380   return 0;
11381 }
11382 _ACEOF
11383 rm -f conftest.$ac_objext
11384 if { (ac_try="$ac_compile"
11385 case "(($ac_try" in
11386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387   *) ac_try_echo=$ac_try;;
11388 esac
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390   (eval "$ac_compile") 2>conftest.er1
11391   ac_status=$?
11392   grep -v '^ *+' conftest.er1 >conftest.err
11393   rm -f conftest.er1
11394   cat conftest.err >&5
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } &&
11397          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11398   { (case "(($ac_try" in
11399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400   *) ac_try_echo=$ac_try;;
11401 esac
11402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11403   (eval "$ac_try") 2>&5
11404   ac_status=$?
11405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11406   (exit $ac_status); }; } &&
11407          { ac_try='test -s conftest.$ac_objext'
11408   { (case "(($ac_try" in
11409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11410   *) ac_try_echo=$ac_try;;
11411 esac
11412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11413   (eval "$ac_try") 2>&5
11414   ac_status=$?
11415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416   (exit $ac_status); }; }; then
11417   ac_hi=-1 ac_mid=-1
11418   while :; do
11419     cat >conftest.$ac_ext <<_ACEOF
11420 /* confdefs.h.  */
11421 _ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h.  */
11425 #include <stddef.h>
11426 int
11427 main ()
11428 {
11429 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11430 test_array [0] = 0
11431
11432   ;
11433   return 0;
11434 }
11435 _ACEOF
11436 rm -f conftest.$ac_objext
11437 if { (ac_try="$ac_compile"
11438 case "(($ac_try" in
11439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11440   *) ac_try_echo=$ac_try;;
11441 esac
11442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11443   (eval "$ac_compile") 2>conftest.er1
11444   ac_status=$?
11445   grep -v '^ *+' conftest.er1 >conftest.err
11446   rm -f conftest.er1
11447   cat conftest.err >&5
11448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11449   (exit $ac_status); } &&
11450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11451   { (case "(($ac_try" in
11452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11453   *) ac_try_echo=$ac_try;;
11454 esac
11455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11456   (eval "$ac_try") 2>&5
11457   ac_status=$?
11458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459   (exit $ac_status); }; } &&
11460          { ac_try='test -s conftest.$ac_objext'
11461   { (case "(($ac_try" in
11462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11463   *) ac_try_echo=$ac_try;;
11464 esac
11465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11466   (eval "$ac_try") 2>&5
11467   ac_status=$?
11468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469   (exit $ac_status); }; }; then
11470   ac_lo=$ac_mid; break
11471 else
11472   echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11474
11475         ac_hi=`expr '(' $ac_mid ')' - 1`
11476                         if test $ac_mid -le $ac_hi; then
11477                           ac_lo= ac_hi=
11478                           break
11479                         fi
11480                         ac_mid=`expr 2 '*' $ac_mid`
11481 fi
11482
11483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11484   done
11485 else
11486   echo "$as_me: failed program was:" >&5
11487 sed 's/^/| /' conftest.$ac_ext >&5
11488
11489         ac_lo= ac_hi=
11490 fi
11491
11492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11493 fi
11494
11495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11496 # Binary search between lo and hi bounds.
11497 while test "x$ac_lo" != "x$ac_hi"; do
11498   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11499   cat >conftest.$ac_ext <<_ACEOF
11500 /* confdefs.h.  */
11501 _ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h.  */
11505 #include <stddef.h>
11506 int
11507 main ()
11508 {
11509 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11510 test_array [0] = 0
11511
11512   ;
11513   return 0;
11514 }
11515 _ACEOF
11516 rm -f conftest.$ac_objext
11517 if { (ac_try="$ac_compile"
11518 case "(($ac_try" in
11519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11520   *) ac_try_echo=$ac_try;;
11521 esac
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523   (eval "$ac_compile") 2>conftest.er1
11524   ac_status=$?
11525   grep -v '^ *+' conftest.er1 >conftest.err
11526   rm -f conftest.er1
11527   cat conftest.err >&5
11528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529   (exit $ac_status); } &&
11530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11531   { (case "(($ac_try" in
11532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11533   *) ac_try_echo=$ac_try;;
11534 esac
11535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11536   (eval "$ac_try") 2>&5
11537   ac_status=$?
11538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539   (exit $ac_status); }; } &&
11540          { ac_try='test -s conftest.$ac_objext'
11541   { (case "(($ac_try" in
11542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543   *) ac_try_echo=$ac_try;;
11544 esac
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546   (eval "$ac_try") 2>&5
11547   ac_status=$?
11548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549   (exit $ac_status); }; }; then
11550   ac_hi=$ac_mid
11551 else
11552   echo "$as_me: failed program was:" >&5
11553 sed 's/^/| /' conftest.$ac_ext >&5
11554
11555         ac_lo=`expr '(' $ac_mid ')' + 1`
11556 fi
11557
11558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559 done
11560 case $ac_lo in
11561 ?*) res_lo=$ac_lo;;
11562 '') result=? ;;
11563 esac
11564 else
11565   cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h.  */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h.  */
11571 #include <stddef.h>
11572 static long int longval () { return ~(size_t)0 % 10; }
11573 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11574 #include <stdio.h>
11575 #include <stdlib.h>
11576 int
11577 main ()
11578 {
11579
11580   FILE *f = fopen ("conftest.val", "w");
11581   if (! f)
11582     return 1;
11583   if ((~(size_t)0 % 10) < 0)
11584     {
11585       long int i = longval ();
11586       if (i != (~(size_t)0 % 10))
11587         return 1;
11588       fprintf (f, "%ld\n", i);
11589     }
11590   else
11591     {
11592       unsigned long int i = ulongval ();
11593       if (i != (~(size_t)0 % 10))
11594         return 1;
11595       fprintf (f, "%lu\n", i);
11596     }
11597   return ferror (f) || fclose (f) != 0;
11598
11599   ;
11600   return 0;
11601 }
11602 _ACEOF
11603 rm -f conftest$ac_exeext
11604 if { (ac_try="$ac_link"
11605 case "(($ac_try" in
11606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607   *) ac_try_echo=$ac_try;;
11608 esac
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610   (eval "$ac_link") 2>&5
11611   ac_status=$?
11612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11614   { (case "(($ac_try" in
11615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616   *) ac_try_echo=$ac_try;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619   (eval "$ac_try") 2>&5
11620   ac_status=$?
11621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11622   (exit $ac_status); }; }; then
11623   res_lo=`cat conftest.val`
11624 else
11625   echo "$as_me: program exited with status $ac_status" >&5
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11628
11629 ( exit $ac_status )
11630 result=?
11631 fi
11632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11633 fi
11634 rm -f conftest.val
11635     if test "$cross_compiling" = yes; then
11636   # Depending upon the size, compute the lo and hi bounds.
11637 cat >conftest.$ac_ext <<_ACEOF
11638 /* confdefs.h.  */
11639 _ACEOF
11640 cat confdefs.h >>conftest.$ac_ext
11641 cat >>conftest.$ac_ext <<_ACEOF
11642 /* end confdefs.h.  */
11643 #include <stddef.h>
11644 int
11645 main ()
11646 {
11647 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11648 test_array [0] = 0
11649
11650   ;
11651   return 0;
11652 }
11653 _ACEOF
11654 rm -f conftest.$ac_objext
11655 if { (ac_try="$ac_compile"
11656 case "(($ac_try" in
11657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11658   *) ac_try_echo=$ac_try;;
11659 esac
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661   (eval "$ac_compile") 2>conftest.er1
11662   ac_status=$?
11663   grep -v '^ *+' conftest.er1 >conftest.err
11664   rm -f conftest.er1
11665   cat conftest.err >&5
11666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667   (exit $ac_status); } &&
11668          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11669   { (case "(($ac_try" in
11670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11671   *) ac_try_echo=$ac_try;;
11672 esac
11673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11674   (eval "$ac_try") 2>&5
11675   ac_status=$?
11676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677   (exit $ac_status); }; } &&
11678          { ac_try='test -s conftest.$ac_objext'
11679   { (case "(($ac_try" in
11680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681   *) ac_try_echo=$ac_try;;
11682 esac
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684   (eval "$ac_try") 2>&5
11685   ac_status=$?
11686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11687   (exit $ac_status); }; }; then
11688   ac_lo=0 ac_mid=0
11689   while :; do
11690     cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696 #include <stddef.h>
11697 int
11698 main ()
11699 {
11700 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11701 test_array [0] = 0
11702
11703   ;
11704   return 0;
11705 }
11706 _ACEOF
11707 rm -f conftest.$ac_objext
11708 if { (ac_try="$ac_compile"
11709 case "(($ac_try" in
11710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11711   *) ac_try_echo=$ac_try;;
11712 esac
11713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11714   (eval "$ac_compile") 2>conftest.er1
11715   ac_status=$?
11716   grep -v '^ *+' conftest.er1 >conftest.err
11717   rm -f conftest.er1
11718   cat conftest.err >&5
11719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11720   (exit $ac_status); } &&
11721          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11722   { (case "(($ac_try" in
11723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11724   *) ac_try_echo=$ac_try;;
11725 esac
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727   (eval "$ac_try") 2>&5
11728   ac_status=$?
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); }; } &&
11731          { ac_try='test -s conftest.$ac_objext'
11732   { (case "(($ac_try" in
11733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11734   *) ac_try_echo=$ac_try;;
11735 esac
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737   (eval "$ac_try") 2>&5
11738   ac_status=$?
11739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740   (exit $ac_status); }; }; then
11741   ac_hi=$ac_mid; break
11742 else
11743   echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11745
11746         ac_lo=`expr $ac_mid + 1`
11747                         if test $ac_lo -le $ac_mid; then
11748                           ac_lo= ac_hi=
11749                           break
11750                         fi
11751                         ac_mid=`expr 2 '*' $ac_mid + 1`
11752 fi
11753
11754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755   done
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760         cat >conftest.$ac_ext <<_ACEOF
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 #include <stddef.h>
11767 int
11768 main ()
11769 {
11770 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11771 test_array [0] = 0
11772
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781   *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784   (eval "$ac_compile") 2>conftest.er1
11785   ac_status=$?
11786   grep -v '^ *+' conftest.er1 >conftest.err
11787   rm -f conftest.er1
11788   cat conftest.err >&5
11789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790   (exit $ac_status); } &&
11791          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11792   { (case "(($ac_try" in
11793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794   *) ac_try_echo=$ac_try;;
11795 esac
11796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11797   (eval "$ac_try") 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); }; } &&
11801          { ac_try='test -s conftest.$ac_objext'
11802   { (case "(($ac_try" in
11803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804   *) ac_try_echo=$ac_try;;
11805 esac
11806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11807   (eval "$ac_try") 2>&5
11808   ac_status=$?
11809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810   (exit $ac_status); }; }; then
11811   ac_hi=-1 ac_mid=-1
11812   while :; do
11813     cat >conftest.$ac_ext <<_ACEOF
11814 /* confdefs.h.  */
11815 _ACEOF
11816 cat confdefs.h >>conftest.$ac_ext
11817 cat >>conftest.$ac_ext <<_ACEOF
11818 /* end confdefs.h.  */
11819 #include <stddef.h>
11820 int
11821 main ()
11822 {
11823 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11824 test_array [0] = 0
11825
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 rm -f conftest.$ac_objext
11831 if { (ac_try="$ac_compile"
11832 case "(($ac_try" in
11833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834   *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837   (eval "$ac_compile") 2>conftest.er1
11838   ac_status=$?
11839   grep -v '^ *+' conftest.er1 >conftest.err
11840   rm -f conftest.er1
11841   cat conftest.err >&5
11842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843   (exit $ac_status); } &&
11844          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11845   { (case "(($ac_try" in
11846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11847   *) ac_try_echo=$ac_try;;
11848 esac
11849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11850   (eval "$ac_try") 2>&5
11851   ac_status=$?
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); }; } &&
11854          { ac_try='test -s conftest.$ac_objext'
11855   { (case "(($ac_try" in
11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857   *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860   (eval "$ac_try") 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; }; then
11864   ac_lo=$ac_mid; break
11865 else
11866   echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869         ac_hi=`expr '(' $ac_mid ')' - 1`
11870                         if test $ac_mid -le $ac_hi; then
11871                           ac_lo= ac_hi=
11872                           break
11873                         fi
11874                         ac_mid=`expr 2 '*' $ac_mid`
11875 fi
11876
11877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11878   done
11879 else
11880   echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11882
11883         ac_lo= ac_hi=
11884 fi
11885
11886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 fi
11888
11889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 # Binary search between lo and hi bounds.
11891 while test "x$ac_lo" != "x$ac_hi"; do
11892   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11893   cat >conftest.$ac_ext <<_ACEOF
11894 /* confdefs.h.  */
11895 _ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h.  */
11899 #include <stddef.h>
11900 int
11901 main ()
11902 {
11903 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11904 test_array [0] = 0
11905
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_compile") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } &&
11924          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11925   { (case "(($ac_try" in
11926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11927   *) ac_try_echo=$ac_try;;
11928 esac
11929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11930   (eval "$ac_try") 2>&5
11931   ac_status=$?
11932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933   (exit $ac_status); }; } &&
11934          { ac_try='test -s conftest.$ac_objext'
11935   { (case "(($ac_try" in
11936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937   *) ac_try_echo=$ac_try;;
11938 esac
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940   (eval "$ac_try") 2>&5
11941   ac_status=$?
11942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943   (exit $ac_status); }; }; then
11944   ac_hi=$ac_mid
11945 else
11946   echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949         ac_lo=`expr '(' $ac_mid ')' + 1`
11950 fi
11951
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 done
11954 case $ac_lo in
11955 ?*) fits_in_uint=$ac_lo;;
11956 '') result=? ;;
11957 esac
11958 else
11959   cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965 #include <stddef.h>
11966 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11967 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11968 #include <stdio.h>
11969 #include <stdlib.h>
11970 int
11971 main ()
11972 {
11973
11974   FILE *f = fopen ("conftest.val", "w");
11975   if (! f)
11976     return 1;
11977   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11978     {
11979       long int i = longval ();
11980       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11981         return 1;
11982       fprintf (f, "%ld\n", i);
11983     }
11984   else
11985     {
11986       unsigned long int i = ulongval ();
11987       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11988         return 1;
11989       fprintf (f, "%lu\n", i);
11990     }
11991   return ferror (f) || fclose (f) != 0;
11992
11993   ;
11994   return 0;
11995 }
11996 _ACEOF
11997 rm -f conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001   *) ac_try_echo=$ac_try;;
12002 esac
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004   (eval "$ac_link") 2>&5
12005   ac_status=$?
12006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12008   { (case "(($ac_try" in
12009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010   *) ac_try_echo=$ac_try;;
12011 esac
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013   (eval "$ac_try") 2>&5
12014   ac_status=$?
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); }; }; then
12017   fits_in_uint=`cat conftest.val`
12018 else
12019   echo "$as_me: program exited with status $ac_status" >&5
12020 echo "$as_me: failed program was:" >&5
12021 sed 's/^/| /' conftest.$ac_ext >&5
12022
12023 ( exit $ac_status )
12024 result=?
12025 fi
12026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12027 fi
12028 rm -f conftest.val
12029     if test "$fits_in_uint" = 1; then
12030                   cat >conftest.$ac_ext <<_ACEOF
12031 /* confdefs.h.  */
12032 _ACEOF
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h.  */
12036 #include <stddef.h>
12037         extern size_t foo;
12038         extern unsigned long foo;
12039
12040 int
12041 main ()
12042 {
12043
12044   ;
12045   return 0;
12046 }
12047 _ACEOF
12048 rm -f conftest.$ac_objext
12049 if { (ac_try="$ac_compile"
12050 case "(($ac_try" in
12051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052   *) ac_try_echo=$ac_try;;
12053 esac
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055   (eval "$ac_compile") 2>conftest.er1
12056   ac_status=$?
12057   grep -v '^ *+' conftest.er1 >conftest.err
12058   rm -f conftest.er1
12059   cat conftest.err >&5
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); } &&
12062          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12063   { (case "(($ac_try" in
12064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12065   *) ac_try_echo=$ac_try;;
12066 esac
12067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12068   (eval "$ac_try") 2>&5
12069   ac_status=$?
12070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071   (exit $ac_status); }; } &&
12072          { ac_try='test -s conftest.$ac_objext'
12073   { (case "(($ac_try" in
12074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075   *) ac_try_echo=$ac_try;;
12076 esac
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078   (eval "$ac_try") 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   fits_in_uint=0
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086
12087
12088 fi
12089
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12091     fi
12092     if test -z "$result"; then
12093       if test "$fits_in_uint" = 1; then
12094         result="$res_hi$res_lo"U
12095       else
12096         result="$res_hi$res_lo"UL
12097       fi
12098     else
12099             result='~(size_t)0'
12100     fi
12101   fi
12102   { echo "$as_me:$LINENO: result: $result" >&5
12103 echo "${ECHO_T}$result" >&6; }
12104   if test "$result" != yes; then
12105
12106 cat >>confdefs.h <<_ACEOF
12107 #define SIZE_MAX $result
12108 _ACEOF
12109
12110   fi
12111
12112
12113
12114
12115
12116 for ac_header in stdint.h
12117 do
12118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12120   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 fi
12125 ac_res=`eval echo '${'$as_ac_Header'}'`
12126                { echo "$as_me:$LINENO: result: $ac_res" >&5
12127 echo "${ECHO_T}$ac_res" >&6; }
12128 else
12129   # Is the header compilable?
12130 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12132 cat >conftest.$ac_ext <<_ACEOF
12133 /* confdefs.h.  */
12134 _ACEOF
12135 cat confdefs.h >>conftest.$ac_ext
12136 cat >>conftest.$ac_ext <<_ACEOF
12137 /* end confdefs.h.  */
12138 $ac_includes_default
12139 #include <$ac_header>
12140 _ACEOF
12141 rm -f conftest.$ac_objext
12142 if { (ac_try="$ac_compile"
12143 case "(($ac_try" in
12144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12145   *) ac_try_echo=$ac_try;;
12146 esac
12147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12148   (eval "$ac_compile") 2>conftest.er1
12149   ac_status=$?
12150   grep -v '^ *+' conftest.er1 >conftest.err
12151   rm -f conftest.er1
12152   cat conftest.err >&5
12153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154   (exit $ac_status); } &&
12155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12156   { (case "(($ac_try" in
12157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12158   *) ac_try_echo=$ac_try;;
12159 esac
12160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12161   (eval "$ac_try") 2>&5
12162   ac_status=$?
12163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164   (exit $ac_status); }; } &&
12165          { ac_try='test -s conftest.$ac_objext'
12166   { (case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_try") 2>&5
12172   ac_status=$?
12173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174   (exit $ac_status); }; }; then
12175   ac_header_compiler=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180         ac_header_compiler=no
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12185 echo "${ECHO_T}$ac_header_compiler" >&6; }
12186
12187 # Is the header present?
12188 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12189 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h.  */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h.  */
12196 #include <$ac_header>
12197 _ACEOF
12198 if { (ac_try="$ac_cpp conftest.$ac_ext"
12199 case "(($ac_try" in
12200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201   *) ac_try_echo=$ac_try;;
12202 esac
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12205   ac_status=$?
12206   grep -v '^ *+' conftest.er1 >conftest.err
12207   rm -f conftest.er1
12208   cat conftest.err >&5
12209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210   (exit $ac_status); } >/dev/null; then
12211   if test -s conftest.err; then
12212     ac_cpp_err=$ac_c_preproc_warn_flag
12213     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12214   else
12215     ac_cpp_err=
12216   fi
12217 else
12218   ac_cpp_err=yes
12219 fi
12220 if test -z "$ac_cpp_err"; then
12221   ac_header_preproc=yes
12222 else
12223   echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.$ac_ext >&5
12225
12226   ac_header_preproc=no
12227 fi
12228
12229 rm -f conftest.err conftest.$ac_ext
12230 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12231 echo "${ECHO_T}$ac_header_preproc" >&6; }
12232
12233 # So?  What about this header?
12234 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12235   yes:no: )
12236     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12237 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12238     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12239 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12240     ac_header_preproc=yes
12241     ;;
12242   no:yes:* )
12243     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12244 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12245     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12246 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12247     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12248 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12250 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12252 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12254 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12255
12256     ;;
12257 esac
12258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12261   echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263   eval "$as_ac_Header=\$ac_header_preproc"
12264 fi
12265 ac_res=`eval echo '${'$as_ac_Header'}'`
12266                { echo "$as_me:$LINENO: result: $ac_res" >&5
12267 echo "${ECHO_T}$ac_res" >&6; }
12268
12269 fi
12270 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12271   cat >>confdefs.h <<_ACEOF
12272 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12273 _ACEOF
12274
12275 fi
12276
12277 done
12278
12279
12280
12281
12282
12283
12284
12285
12286   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12287 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12288 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12289   echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291   cat >conftest.$ac_ext <<_ACEOF
12292 /* confdefs.h.  */
12293 _ACEOF
12294 cat confdefs.h >>conftest.$ac_ext
12295 cat >>conftest.$ac_ext <<_ACEOF
12296 /* end confdefs.h.  */
12297 $ac_includes_default
12298 typedef ptrdiff_t ac__type_new_;
12299 int
12300 main ()
12301 {
12302 if ((ac__type_new_ *) 0)
12303   return 0;
12304 if (sizeof (ac__type_new_))
12305   return 0;
12306   ;
12307   return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314   *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317   (eval "$ac_compile") 2>conftest.er1
12318   ac_status=$?
12319   grep -v '^ *+' conftest.er1 >conftest.err
12320   rm -f conftest.er1
12321   cat conftest.err >&5
12322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323   (exit $ac_status); } &&
12324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325   { (case "(($ac_try" in
12326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327   *) ac_try_echo=$ac_try;;
12328 esac
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330   (eval "$ac_try") 2>&5
12331   ac_status=$?
12332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333   (exit $ac_status); }; } &&
12334          { ac_try='test -s conftest.$ac_objext'
12335   { (case "(($ac_try" in
12336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337   *) ac_try_echo=$ac_try;;
12338 esac
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340   (eval "$ac_try") 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); }; }; then
12344   ac_cv_type_ptrdiff_t=yes
12345 else
12346   echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12348
12349         ac_cv_type_ptrdiff_t=no
12350 fi
12351
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12353 fi
12354 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12355 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12356 if test $ac_cv_type_ptrdiff_t = yes; then
12357   :
12358 else
12359
12360 cat >>confdefs.h <<\_ACEOF
12361 #define ptrdiff_t long
12362 _ACEOF
12363
12364
12365 fi
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12378 stdlib.h string.h unistd.h sys/param.h
12379 do
12380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12382   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12385   echo $ECHO_N "(cached) $ECHO_C" >&6
12386 fi
12387 ac_res=`eval echo '${'$as_ac_Header'}'`
12388                { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12390 else
12391   # Is the header compilable?
12392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400 $ac_includes_default
12401 #include <$ac_header>
12402 _ACEOF
12403 rm -f conftest.$ac_objext
12404 if { (ac_try="$ac_compile"
12405 case "(($ac_try" in
12406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12407   *) ac_try_echo=$ac_try;;
12408 esac
12409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12410   (eval "$ac_compile") 2>conftest.er1
12411   ac_status=$?
12412   grep -v '^ *+' conftest.er1 >conftest.err
12413   rm -f conftest.er1
12414   cat conftest.err >&5
12415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416   (exit $ac_status); } &&
12417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12418   { (case "(($ac_try" in
12419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420   *) ac_try_echo=$ac_try;;
12421 esac
12422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12423   (eval "$ac_try") 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; } &&
12427          { ac_try='test -s conftest.$ac_objext'
12428   { (case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_try") 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_header_compiler=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         ac_header_compiler=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12447 echo "${ECHO_T}$ac_header_compiler" >&6; }
12448
12449 # Is the header present?
12450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12452 cat >conftest.$ac_ext <<_ACEOF
12453 /* confdefs.h.  */
12454 _ACEOF
12455 cat confdefs.h >>conftest.$ac_ext
12456 cat >>conftest.$ac_ext <<_ACEOF
12457 /* end confdefs.h.  */
12458 #include <$ac_header>
12459 _ACEOF
12460 if { (ac_try="$ac_cpp conftest.$ac_ext"
12461 case "(($ac_try" in
12462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463   *) ac_try_echo=$ac_try;;
12464 esac
12465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12466   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12467   ac_status=$?
12468   grep -v '^ *+' conftest.er1 >conftest.err
12469   rm -f conftest.er1
12470   cat conftest.err >&5
12471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12472   (exit $ac_status); } >/dev/null; then
12473   if test -s conftest.err; then
12474     ac_cpp_err=$ac_c_preproc_warn_flag
12475     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12476   else
12477     ac_cpp_err=
12478   fi
12479 else
12480   ac_cpp_err=yes
12481 fi
12482 if test -z "$ac_cpp_err"; then
12483   ac_header_preproc=yes
12484 else
12485   echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12487
12488   ac_header_preproc=no
12489 fi
12490
12491 rm -f conftest.err conftest.$ac_ext
12492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12493 echo "${ECHO_T}$ac_header_preproc" >&6; }
12494
12495 # So?  What about this header?
12496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12497   yes:no: )
12498     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12502     ac_header_preproc=yes
12503     ;;
12504   no:yes:* )
12505     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12507     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12508 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12509     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12511     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12512 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12517
12518     ;;
12519 esac
12520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12523   echo $ECHO_N "(cached) $ECHO_C" >&6
12524 else
12525   eval "$as_ac_Header=\$ac_header_preproc"
12526 fi
12527 ac_res=`eval echo '${'$as_ac_Header'}'`
12528                { echo "$as_me:$LINENO: result: $ac_res" >&5
12529 echo "${ECHO_T}$ac_res" >&6; }
12530
12531 fi
12532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12533   cat >>confdefs.h <<_ACEOF
12534 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12535 _ACEOF
12536
12537 fi
12538
12539 done
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12565 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12566 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12567 __fsetlocking
12568 do
12569 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12570 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12571 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12572 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12573   echo $ECHO_N "(cached) $ECHO_C" >&6
12574 else
12575   cat >conftest.$ac_ext <<_ACEOF
12576 /* confdefs.h.  */
12577 _ACEOF
12578 cat confdefs.h >>conftest.$ac_ext
12579 cat >>conftest.$ac_ext <<_ACEOF
12580 /* end confdefs.h.  */
12581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12583 #define $ac_func innocuous_$ac_func
12584
12585 /* System header to define __stub macros and hopefully few prototypes,
12586     which can conflict with char $ac_func (); below.
12587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12588     <limits.h> exists even on freestanding compilers.  */
12589
12590 #ifdef __STDC__
12591 # include <limits.h>
12592 #else
12593 # include <assert.h>
12594 #endif
12595
12596 #undef $ac_func
12597
12598 /* Override any GCC internal prototype to avoid an error.
12599    Use char because int might match the return type of a GCC
12600    builtin and then its argument prototype would still apply.  */
12601 #ifdef __cplusplus
12602 extern "C"
12603 #endif
12604 char $ac_func ();
12605 /* The GNU C library defines this for functions which it implements
12606     to always fail with ENOSYS.  Some functions are actually named
12607     something starting with __ and the normal name is an alias.  */
12608 #if defined __stub_$ac_func || defined __stub___$ac_func
12609 choke me
12610 #endif
12611
12612 int
12613 main ()
12614 {
12615 return $ac_func ();
12616   ;
12617   return 0;
12618 }
12619 _ACEOF
12620 rm -f conftest.$ac_objext conftest$ac_exeext
12621 if { (ac_try="$ac_link"
12622 case "(($ac_try" in
12623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12624   *) ac_try_echo=$ac_try;;
12625 esac
12626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12627   (eval "$ac_link") 2>conftest.er1
12628   ac_status=$?
12629   grep -v '^ *+' conftest.er1 >conftest.err
12630   rm -f conftest.er1
12631   cat conftest.err >&5
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); } &&
12634          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12635   { (case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_try") 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; } &&
12644          { ac_try='test -s conftest$ac_exeext'
12645   { (case "(($ac_try" in
12646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647   *) ac_try_echo=$ac_try;;
12648 esac
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650   (eval "$ac_try") 2>&5
12651   ac_status=$?
12652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653   (exit $ac_status); }; }; then
12654   eval "$as_ac_var=yes"
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659         eval "$as_ac_var=no"
12660 fi
12661
12662 rm -f core conftest.err conftest.$ac_objext \
12663       conftest$ac_exeext conftest.$ac_ext
12664 fi
12665 ac_res=`eval echo '${'$as_ac_var'}'`
12666                { echo "$as_me:$LINENO: result: $ac_res" >&5
12667 echo "${ECHO_T}$ac_res" >&6; }
12668 if test `eval echo '${'$as_ac_var'}'` = yes; then
12669   cat >>confdefs.h <<_ACEOF
12670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12671 _ACEOF
12672
12673 fi
12674 done
12675
12676
12677
12678   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12679 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12680 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683   cat >conftest.$ac_ext <<_ACEOF
12684 /* confdefs.h.  */
12685 _ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h.  */
12689 #include <stdio.h>
12690 int
12691 main ()
12692 {
12693
12694 #ifndef _snprintf
12695   char *p = (char *) _snprintf;
12696 #endif
12697
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 rm -f conftest.$ac_objext
12703 if { (ac_try="$ac_compile"
12704 case "(($ac_try" in
12705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12706   *) ac_try_echo=$ac_try;;
12707 esac
12708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12709   (eval "$ac_compile") 2>conftest.er1
12710   ac_status=$?
12711   grep -v '^ *+' conftest.er1 >conftest.err
12712   rm -f conftest.er1
12713   cat conftest.err >&5
12714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12715   (exit $ac_status); } &&
12716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12717   { (case "(($ac_try" in
12718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719   *) ac_try_echo=$ac_try;;
12720 esac
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722   (eval "$ac_try") 2>&5
12723   ac_status=$?
12724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725   (exit $ac_status); }; } &&
12726          { ac_try='test -s conftest.$ac_objext'
12727   { (case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12732   (eval "$ac_try") 2>&5
12733   ac_status=$?
12734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735   (exit $ac_status); }; }; then
12736   ac_cv_have_decl__snprintf=yes
12737 else
12738   echo "$as_me: failed program was:" >&5
12739 sed 's/^/| /' conftest.$ac_ext >&5
12740
12741         ac_cv_have_decl__snprintf=no
12742 fi
12743
12744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12745 fi
12746 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12747 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12748   if test $ac_cv_have_decl__snprintf = yes; then
12749     gt_value=1
12750   else
12751     gt_value=0
12752   fi
12753
12754 cat >>confdefs.h <<_ACEOF
12755 #define HAVE_DECL__SNPRINTF $gt_value
12756 _ACEOF
12757
12758
12759
12760   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12761 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12762 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12763   echo $ECHO_N "(cached) $ECHO_C" >&6
12764 else
12765   cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h.  */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h.  */
12771 #include <stdio.h>
12772 int
12773 main ()
12774 {
12775
12776 #ifndef _snwprintf
12777   char *p = (char *) _snwprintf;
12778 #endif
12779
12780   ;
12781   return 0;
12782 }
12783 _ACEOF
12784 rm -f conftest.$ac_objext
12785 if { (ac_try="$ac_compile"
12786 case "(($ac_try" in
12787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788   *) ac_try_echo=$ac_try;;
12789 esac
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791   (eval "$ac_compile") 2>conftest.er1
12792   ac_status=$?
12793   grep -v '^ *+' conftest.er1 >conftest.err
12794   rm -f conftest.er1
12795   cat conftest.err >&5
12796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797   (exit $ac_status); } &&
12798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12799   { (case "(($ac_try" in
12800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801   *) ac_try_echo=$ac_try;;
12802 esac
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804   (eval "$ac_try") 2>&5
12805   ac_status=$?
12806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807   (exit $ac_status); }; } &&
12808          { ac_try='test -s conftest.$ac_objext'
12809   { (case "(($ac_try" in
12810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811   *) ac_try_echo=$ac_try;;
12812 esac
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814   (eval "$ac_try") 2>&5
12815   ac_status=$?
12816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817   (exit $ac_status); }; }; then
12818   ac_cv_have_decl__snwprintf=yes
12819 else
12820   echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12822
12823         ac_cv_have_decl__snwprintf=no
12824 fi
12825
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 fi
12828 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12829 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12830   if test $ac_cv_have_decl__snwprintf = yes; then
12831     gt_value=1
12832   else
12833     gt_value=0
12834   fi
12835
12836 cat >>confdefs.h <<_ACEOF
12837 #define HAVE_DECL__SNWPRINTF $gt_value
12838 _ACEOF
12839
12840
12841
12842
12843   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12844 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12845 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12846   echo $ECHO_N "(cached) $ECHO_C" >&6
12847 else
12848   cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h.  */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h.  */
12854 #include <stdio.h>
12855 int
12856 main ()
12857 {
12858
12859 #ifndef feof_unlocked
12860   char *p = (char *) feof_unlocked;
12861 #endif
12862
12863   ;
12864   return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext
12868 if { (ac_try="$ac_compile"
12869 case "(($ac_try" in
12870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871   *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874   (eval "$ac_compile") 2>conftest.er1
12875   ac_status=$?
12876   grep -v '^ *+' conftest.er1 >conftest.err
12877   rm -f conftest.er1
12878   cat conftest.err >&5
12879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880   (exit $ac_status); } &&
12881          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12882   { (case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_try") 2>&5
12888   ac_status=$?
12889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890   (exit $ac_status); }; } &&
12891          { ac_try='test -s conftest.$ac_objext'
12892   { (case "(($ac_try" in
12893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894   *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897   (eval "$ac_try") 2>&5
12898   ac_status=$?
12899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900   (exit $ac_status); }; }; then
12901   ac_cv_have_decl_feof_unlocked=yes
12902 else
12903   echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12905
12906         ac_cv_have_decl_feof_unlocked=no
12907 fi
12908
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12910 fi
12911 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12912 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12913   if test $ac_cv_have_decl_feof_unlocked = yes; then
12914     gt_value=1
12915   else
12916     gt_value=0
12917   fi
12918
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12921 _ACEOF
12922
12923
12924
12925   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12926 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12927 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12928   echo $ECHO_N "(cached) $ECHO_C" >&6
12929 else
12930   cat >conftest.$ac_ext <<_ACEOF
12931 /* confdefs.h.  */
12932 _ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h.  */
12936 #include <stdio.h>
12937 int
12938 main ()
12939 {
12940
12941 #ifndef fgets_unlocked
12942   char *p = (char *) fgets_unlocked;
12943 #endif
12944
12945   ;
12946   return 0;
12947 }
12948 _ACEOF
12949 rm -f conftest.$ac_objext
12950 if { (ac_try="$ac_compile"
12951 case "(($ac_try" in
12952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12953   *) ac_try_echo=$ac_try;;
12954 esac
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956   (eval "$ac_compile") 2>conftest.er1
12957   ac_status=$?
12958   grep -v '^ *+' conftest.er1 >conftest.err
12959   rm -f conftest.er1
12960   cat conftest.err >&5
12961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962   (exit $ac_status); } &&
12963          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964   { (case "(($ac_try" in
12965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966   *) ac_try_echo=$ac_try;;
12967 esac
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969   (eval "$ac_try") 2>&5
12970   ac_status=$?
12971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); }; } &&
12973          { ac_try='test -s conftest.$ac_objext'
12974   { (case "(($ac_try" in
12975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976   *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979   (eval "$ac_try") 2>&5
12980   ac_status=$?
12981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   ac_cv_have_decl_fgets_unlocked=yes
12984 else
12985   echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.$ac_ext >&5
12987
12988         ac_cv_have_decl_fgets_unlocked=no
12989 fi
12990
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 fi
12993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12994 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12995   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12996     gt_value=1
12997   else
12998     gt_value=0
12999   fi
13000
13001 cat >>confdefs.h <<_ACEOF
13002 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13003 _ACEOF
13004
13005
13006
13007   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13008 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13009 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13010   echo $ECHO_N "(cached) $ECHO_C" >&6
13011 else
13012   cat >conftest.$ac_ext <<_ACEOF
13013 /* confdefs.h.  */
13014 _ACEOF
13015 cat confdefs.h >>conftest.$ac_ext
13016 cat >>conftest.$ac_ext <<_ACEOF
13017 /* end confdefs.h.  */
13018 #include <stdio.h>
13019 int
13020 main ()
13021 {
13022
13023 #ifndef getc_unlocked
13024   char *p = (char *) getc_unlocked;
13025 #endif
13026
13027   ;
13028   return 0;
13029 }
13030 _ACEOF
13031 rm -f conftest.$ac_objext
13032 if { (ac_try="$ac_compile"
13033 case "(($ac_try" in
13034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13035   *) ac_try_echo=$ac_try;;
13036 esac
13037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13038   (eval "$ac_compile") 2>conftest.er1
13039   ac_status=$?
13040   grep -v '^ *+' conftest.er1 >conftest.err
13041   rm -f conftest.er1
13042   cat conftest.err >&5
13043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044   (exit $ac_status); } &&
13045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13046   { (case "(($ac_try" in
13047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13048   *) ac_try_echo=$ac_try;;
13049 esac
13050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13051   (eval "$ac_try") 2>&5
13052   ac_status=$?
13053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054   (exit $ac_status); }; } &&
13055          { ac_try='test -s conftest.$ac_objext'
13056   { (case "(($ac_try" in
13057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058   *) ac_try_echo=$ac_try;;
13059 esac
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061   (eval "$ac_try") 2>&5
13062   ac_status=$?
13063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064   (exit $ac_status); }; }; then
13065   ac_cv_have_decl_getc_unlocked=yes
13066 else
13067   echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070         ac_cv_have_decl_getc_unlocked=no
13071 fi
13072
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 fi
13075 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13076 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13077   if test $ac_cv_have_decl_getc_unlocked = yes; then
13078     gt_value=1
13079   else
13080     gt_value=0
13081   fi
13082
13083 cat >>confdefs.h <<_ACEOF
13084 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13085 _ACEOF
13086
13087
13088
13089   case $gt_cv_func_printf_posix in
13090     *yes) HAVE_POSIX_PRINTF=1 ;;
13091     *) HAVE_POSIX_PRINTF=0 ;;
13092   esac
13093
13094   if test "$ac_cv_func_asprintf" = yes; then
13095     HAVE_ASPRINTF=1
13096   else
13097     HAVE_ASPRINTF=0
13098   fi
13099
13100   if test "$ac_cv_func_snprintf" = yes; then
13101     HAVE_SNPRINTF=1
13102   else
13103     HAVE_SNPRINTF=0
13104   fi
13105
13106   if test "$ac_cv_func_wprintf" = yes; then
13107     HAVE_WPRINTF=1
13108   else
13109     HAVE_WPRINTF=0
13110   fi
13111
13112
13113
13114
13115
13116
13117
13118           am_save_CPPFLAGS="$CPPFLAGS"
13119
13120   for element in $INCICONV; do
13121     haveit=
13122     for x in $CPPFLAGS; do
13123
13124   acl_save_prefix="$prefix"
13125   prefix="$acl_final_prefix"
13126   acl_save_exec_prefix="$exec_prefix"
13127   exec_prefix="$acl_final_exec_prefix"
13128   eval x=\"$x\"
13129   exec_prefix="$acl_save_exec_prefix"
13130   prefix="$acl_save_prefix"
13131
13132       if test "X$x" = "X$element"; then
13133         haveit=yes
13134         break
13135       fi
13136     done
13137     if test -z "$haveit"; then
13138       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13139     fi
13140   done
13141
13142
13143   { echo "$as_me:$LINENO: checking for iconv" >&5
13144 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13145 if test "${am_cv_func_iconv+set}" = set; then
13146   echo $ECHO_N "(cached) $ECHO_C" >&6
13147 else
13148
13149     am_cv_func_iconv="no, consider installing GNU libiconv"
13150     am_cv_lib_iconv=no
13151     cat >conftest.$ac_ext <<_ACEOF
13152 /* confdefs.h.  */
13153 _ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h.  */
13157 #include <stdlib.h>
13158 #include <iconv.h>
13159 int
13160 main ()
13161 {
13162 iconv_t cd = iconv_open("","");
13163        iconv(cd,NULL,NULL,NULL,NULL);
13164        iconv_close(cd);
13165   ;
13166   return 0;
13167 }
13168 _ACEOF
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (ac_try="$ac_link"
13171 case "(($ac_try" in
13172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173   *) ac_try_echo=$ac_try;;
13174 esac
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176   (eval "$ac_link") 2>conftest.er1
13177   ac_status=$?
13178   grep -v '^ *+' conftest.er1 >conftest.err
13179   rm -f conftest.er1
13180   cat conftest.err >&5
13181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182   (exit $ac_status); } &&
13183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13184   { (case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_try") 2>&5
13190   ac_status=$?
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); }; } &&
13193          { ac_try='test -s conftest$ac_exeext'
13194   { (case "(($ac_try" in
13195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196   *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199   (eval "$ac_try") 2>&5
13200   ac_status=$?
13201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202   (exit $ac_status); }; }; then
13203   am_cv_func_iconv=yes
13204 else
13205   echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13207
13208
13209 fi
13210
13211 rm -f core conftest.err conftest.$ac_objext \
13212       conftest$ac_exeext conftest.$ac_ext
13213     if test "$am_cv_func_iconv" != yes; then
13214       am_save_LIBS="$LIBS"
13215       LIBS="$LIBS $LIBICONV"
13216       cat >conftest.$ac_ext <<_ACEOF
13217 /* confdefs.h.  */
13218 _ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h.  */
13222 #include <stdlib.h>
13223 #include <iconv.h>
13224 int
13225 main ()
13226 {
13227 iconv_t cd = iconv_open("","");
13228          iconv(cd,NULL,NULL,NULL,NULL);
13229          iconv_close(cd);
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext conftest$ac_exeext
13235 if { (ac_try="$ac_link"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241   (eval "$ac_link") 2>conftest.er1
13242   ac_status=$?
13243   grep -v '^ *+' conftest.er1 >conftest.err
13244   rm -f conftest.er1
13245   cat conftest.err >&5
13246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247   (exit $ac_status); } &&
13248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13249   { (case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_try") 2>&5
13255   ac_status=$?
13256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257   (exit $ac_status); }; } &&
13258          { ac_try='test -s conftest$ac_exeext'
13259   { (case "(($ac_try" in
13260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261   *) ac_try_echo=$ac_try;;
13262 esac
13263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13264   (eval "$ac_try") 2>&5
13265   ac_status=$?
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   (exit $ac_status); }; }; then
13268   am_cv_lib_iconv=yes
13269         am_cv_func_iconv=yes
13270 else
13271   echo "$as_me: failed program was:" >&5
13272 sed 's/^/| /' conftest.$ac_ext >&5
13273
13274
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext \
13278       conftest$ac_exeext conftest.$ac_ext
13279       LIBS="$am_save_LIBS"
13280     fi
13281
13282 fi
13283 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13284 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13285   if test "$am_cv_func_iconv" = yes; then
13286
13287 cat >>confdefs.h <<\_ACEOF
13288 #define HAVE_ICONV 1
13289 _ACEOF
13290
13291   fi
13292   if test "$am_cv_lib_iconv" = yes; then
13293     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13294 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13295     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13296 echo "${ECHO_T}$LIBICONV" >&6; }
13297   else
13298             CPPFLAGS="$am_save_CPPFLAGS"
13299     LIBICONV=
13300     LTLIBICONV=
13301   fi
13302
13303
13304
13305   if test "$am_cv_func_iconv" = yes; then
13306     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13307 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13308     if test "${am_cv_proto_iconv+set}" = set; then
13309   echo $ECHO_N "(cached) $ECHO_C" >&6
13310 else
13311
13312       cat >conftest.$ac_ext <<_ACEOF
13313 /* confdefs.h.  */
13314 _ACEOF
13315 cat confdefs.h >>conftest.$ac_ext
13316 cat >>conftest.$ac_ext <<_ACEOF
13317 /* end confdefs.h.  */
13318
13319 #include <stdlib.h>
13320 #include <iconv.h>
13321 extern
13322 #ifdef __cplusplus
13323 "C"
13324 #endif
13325 #if defined(__STDC__) || defined(__cplusplus)
13326 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13327 #else
13328 size_t iconv();
13329 #endif
13330
13331 int
13332 main ()
13333 {
13334
13335   ;
13336   return 0;
13337 }
13338 _ACEOF
13339 rm -f conftest.$ac_objext
13340 if { (ac_try="$ac_compile"
13341 case "(($ac_try" in
13342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343   *) ac_try_echo=$ac_try;;
13344 esac
13345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13346   (eval "$ac_compile") 2>conftest.er1
13347   ac_status=$?
13348   grep -v '^ *+' conftest.er1 >conftest.err
13349   rm -f conftest.er1
13350   cat conftest.err >&5
13351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13352   (exit $ac_status); } &&
13353          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13354   { (case "(($ac_try" in
13355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356   *) ac_try_echo=$ac_try;;
13357 esac
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359   (eval "$ac_try") 2>&5
13360   ac_status=$?
13361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362   (exit $ac_status); }; } &&
13363          { ac_try='test -s conftest.$ac_objext'
13364   { (case "(($ac_try" in
13365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13366   *) ac_try_echo=$ac_try;;
13367 esac
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369   (eval "$ac_try") 2>&5
13370   ac_status=$?
13371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372   (exit $ac_status); }; }; then
13373   am_cv_proto_iconv_arg1=""
13374 else
13375   echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378         am_cv_proto_iconv_arg1="const"
13379 fi
13380
13381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13382       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);"
13383 fi
13384
13385     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13386     { echo "$as_me:$LINENO: result: ${ac_t:-
13387          }$am_cv_proto_iconv" >&5
13388 echo "${ECHO_T}${ac_t:-
13389          }$am_cv_proto_iconv" >&6; }
13390
13391 cat >>confdefs.h <<_ACEOF
13392 #define ICONV_CONST $am_cv_proto_iconv_arg1
13393 _ACEOF
13394
13395   fi
13396
13397
13398   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13399 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13400 if test "${am_cv_langinfo_codeset+set}" = set; then
13401   echo $ECHO_N "(cached) $ECHO_C" >&6
13402 else
13403   cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 #include <langinfo.h>
13410 int
13411 main ()
13412 {
13413 char* cs = nl_langinfo(CODESET);
13414   ;
13415   return 0;
13416 }
13417 _ACEOF
13418 rm -f conftest.$ac_objext conftest$ac_exeext
13419 if { (ac_try="$ac_link"
13420 case "(($ac_try" in
13421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13422   *) ac_try_echo=$ac_try;;
13423 esac
13424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13425   (eval "$ac_link") 2>conftest.er1
13426   ac_status=$?
13427   grep -v '^ *+' conftest.er1 >conftest.err
13428   rm -f conftest.er1
13429   cat conftest.err >&5
13430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431   (exit $ac_status); } &&
13432          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13433   { (case "(($ac_try" in
13434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435   *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438   (eval "$ac_try") 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); }; } &&
13442          { ac_try='test -s conftest$ac_exeext'
13443   { (case "(($ac_try" in
13444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13445   *) ac_try_echo=$ac_try;;
13446 esac
13447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13448   (eval "$ac_try") 2>&5
13449   ac_status=$?
13450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451   (exit $ac_status); }; }; then
13452   am_cv_langinfo_codeset=yes
13453 else
13454   echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13456
13457         am_cv_langinfo_codeset=no
13458 fi
13459
13460 rm -f core conftest.err conftest.$ac_objext \
13461       conftest$ac_exeext conftest.$ac_ext
13462
13463 fi
13464 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13465 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13466   if test $am_cv_langinfo_codeset = yes; then
13467
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_LANGINFO_CODESET 1
13470 _ACEOF
13471
13472   fi
13473
13474   if test $ac_cv_header_locale_h = yes; then
13475
13476   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13477 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13478 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13479   echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481   cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487 #include <locale.h>
13488 int
13489 main ()
13490 {
13491 return LC_MESSAGES
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext conftest$ac_exeext
13497 if { (ac_try="$ac_link"
13498 case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_link") 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } &&
13510          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13511   { (case "(($ac_try" in
13512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513   *) ac_try_echo=$ac_try;;
13514 esac
13515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516   (eval "$ac_try") 2>&5
13517   ac_status=$?
13518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519   (exit $ac_status); }; } &&
13520          { ac_try='test -s conftest$ac_exeext'
13521   { (case "(($ac_try" in
13522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13523   *) ac_try_echo=$ac_try;;
13524 esac
13525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13526   (eval "$ac_try") 2>&5
13527   ac_status=$?
13528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); }; }; then
13530   gt_cv_val_LC_MESSAGES=yes
13531 else
13532   echo "$as_me: failed program was:" >&5
13533 sed 's/^/| /' conftest.$ac_ext >&5
13534
13535         gt_cv_val_LC_MESSAGES=no
13536 fi
13537
13538 rm -f core conftest.err conftest.$ac_objext \
13539       conftest$ac_exeext conftest.$ac_ext
13540 fi
13541 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13542 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13543   if test $gt_cv_val_LC_MESSAGES = yes; then
13544
13545 cat >>confdefs.h <<\_ACEOF
13546 #define HAVE_LC_MESSAGES 1
13547 _ACEOF
13548
13549   fi
13550
13551   fi
13552
13553   if test -n "$INTL_MACOSX_LIBS"; then
13554     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13555   fi
13556
13557                       for ac_prog in bison
13558 do
13559   # Extract the first word of "$ac_prog", so it can be a program name with args.
13560 set dummy $ac_prog; ac_word=$2
13561 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13563 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13564   echo $ECHO_N "(cached) $ECHO_C" >&6
13565 else
13566   if test -n "$INTLBISON"; then
13567   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13568 else
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13571 do
13572   IFS=$as_save_IFS
13573   test -z "$as_dir" && as_dir=.
13574   for ac_exec_ext in '' $ac_executable_extensions; do
13575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13576     ac_cv_prog_INTLBISON="$ac_prog"
13577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13578     break 2
13579   fi
13580 done
13581 done
13582 IFS=$as_save_IFS
13583
13584 fi
13585 fi
13586 INTLBISON=$ac_cv_prog_INTLBISON
13587 if test -n "$INTLBISON"; then
13588   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13589 echo "${ECHO_T}$INTLBISON" >&6; }
13590 else
13591   { echo "$as_me:$LINENO: result: no" >&5
13592 echo "${ECHO_T}no" >&6; }
13593 fi
13594
13595
13596   test -n "$INTLBISON" && break
13597 done
13598
13599   if test -z "$INTLBISON"; then
13600     ac_verc_fail=yes
13601   else
13602         { echo "$as_me:$LINENO: checking version of bison" >&5
13603 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13604     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13605     case $ac_prog_version in
13606       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13607       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13608          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13609       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13610     esac
13611     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13612 echo "${ECHO_T}$ac_prog_version" >&6; }
13613   fi
13614   if test $ac_verc_fail = yes; then
13615     INTLBISON=:
13616   fi
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13634 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13635 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13636   echo $ECHO_N "(cached) $ECHO_C" >&6
13637 else
13638   gt_save_CPPFLAGS="$CPPFLAGS"
13639      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13640      gt_save_LIBS="$LIBS"
13641      LIBS="$LIBS -framework CoreFoundation"
13642      cat >conftest.$ac_ext <<_ACEOF
13643 /* confdefs.h.  */
13644 _ACEOF
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h.  */
13648 #include <CFPreferences.h>
13649 int
13650 main ()
13651 {
13652 CFPreferencesCopyAppValue(NULL, NULL)
13653   ;
13654   return 0;
13655 }
13656 _ACEOF
13657 rm -f conftest.$ac_objext conftest$ac_exeext
13658 if { (ac_try="$ac_link"
13659 case "(($ac_try" in
13660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13661   *) ac_try_echo=$ac_try;;
13662 esac
13663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13664   (eval "$ac_link") 2>conftest.er1
13665   ac_status=$?
13666   grep -v '^ *+' conftest.er1 >conftest.err
13667   rm -f conftest.er1
13668   cat conftest.err >&5
13669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670   (exit $ac_status); } &&
13671          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13672   { (case "(($ac_try" in
13673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13674   *) ac_try_echo=$ac_try;;
13675 esac
13676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13677   (eval "$ac_try") 2>&5
13678   ac_status=$?
13679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680   (exit $ac_status); }; } &&
13681          { ac_try='test -s conftest$ac_exeext'
13682   { (case "(($ac_try" in
13683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684   *) ac_try_echo=$ac_try;;
13685 esac
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687   (eval "$ac_try") 2>&5
13688   ac_status=$?
13689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690   (exit $ac_status); }; }; then
13691   gt_cv_func_CFPreferencesCopyAppValue=yes
13692 else
13693   echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13695
13696         gt_cv_func_CFPreferencesCopyAppValue=no
13697 fi
13698
13699 rm -f core conftest.err conftest.$ac_objext \
13700       conftest$ac_exeext conftest.$ac_ext
13701      CPPFLAGS="$gt_save_CPPFLAGS"
13702      LIBS="$gt_save_LIBS"
13703 fi
13704 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13705 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13706   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13707
13708 cat >>confdefs.h <<\_ACEOF
13709 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13710 _ACEOF
13711
13712   fi
13713     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13714 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13715 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13716   echo $ECHO_N "(cached) $ECHO_C" >&6
13717 else
13718   gt_save_CPPFLAGS="$CPPFLAGS"
13719      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13720      gt_save_LIBS="$LIBS"
13721      LIBS="$LIBS -framework CoreFoundation"
13722      cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h.  */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h.  */
13728 #include <CFLocale.h>
13729 int
13730 main ()
13731 {
13732 CFLocaleCopyCurrent();
13733   ;
13734   return 0;
13735 }
13736 _ACEOF
13737 rm -f conftest.$ac_objext conftest$ac_exeext
13738 if { (ac_try="$ac_link"
13739 case "(($ac_try" in
13740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13741   *) ac_try_echo=$ac_try;;
13742 esac
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744   (eval "$ac_link") 2>conftest.er1
13745   ac_status=$?
13746   grep -v '^ *+' conftest.er1 >conftest.err
13747   rm -f conftest.er1
13748   cat conftest.err >&5
13749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750   (exit $ac_status); } &&
13751          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13752   { (case "(($ac_try" in
13753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13754   *) ac_try_echo=$ac_try;;
13755 esac
13756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13757   (eval "$ac_try") 2>&5
13758   ac_status=$?
13759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760   (exit $ac_status); }; } &&
13761          { ac_try='test -s conftest$ac_exeext'
13762   { (case "(($ac_try" in
13763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13764   *) ac_try_echo=$ac_try;;
13765 esac
13766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13767   (eval "$ac_try") 2>&5
13768   ac_status=$?
13769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770   (exit $ac_status); }; }; then
13771   gt_cv_func_CFLocaleCopyCurrent=yes
13772 else
13773   echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13775
13776         gt_cv_func_CFLocaleCopyCurrent=no
13777 fi
13778
13779 rm -f core conftest.err conftest.$ac_objext \
13780       conftest$ac_exeext conftest.$ac_ext
13781      CPPFLAGS="$gt_save_CPPFLAGS"
13782      LIBS="$gt_save_LIBS"
13783 fi
13784 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13785 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13786   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13787
13788 cat >>confdefs.h <<\_ACEOF
13789 #define HAVE_CFLOCALECOPYCURRENT 1
13790 _ACEOF
13791
13792   fi
13793   INTL_MACOSX_LIBS=
13794   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13795     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13796   fi
13797
13798
13799
13800
13801   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13802 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13803     # Check whether --enable-nls was given.
13804 if test "${enable_nls+set}" = set; then
13805   enableval=$enable_nls; USE_NLS=$enableval
13806 else
13807   USE_NLS=yes
13808 fi
13809
13810   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13811 echo "${ECHO_T}$USE_NLS" >&6; }
13812
13813
13814
13815
13816     BUILD_INCLUDED_LIBINTL=no
13817     USE_INCLUDED_LIBINTL=no
13818
13819   LIBINTL=
13820   LTLIBINTL=
13821   POSUB=
13822
13823     if test "$USE_NLS" = "yes"; then
13824     gt_use_preinstalled_gnugettext=no
13825
13826       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13827 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13828
13829 # Check whether --with-included-gettext was given.
13830 if test "${with_included_gettext+set}" = set; then
13831   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13832 else
13833   nls_cv_force_use_gnu_gettext=no
13834 fi
13835
13836       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13837 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13838
13839       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13840       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13841
13842
13843
13844
13845
13846
13847         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13848 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13849 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13850   echo $ECHO_N "(cached) $ECHO_C" >&6
13851 else
13852   cat >conftest.$ac_ext <<_ACEOF
13853 /* confdefs.h.  */
13854 _ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h.  */
13858 #include <libintl.h>
13859 extern int _nl_msg_cat_cntr;
13860 extern int *_nl_domain_bindings;
13861 int
13862 main ()
13863 {
13864 bindtextdomain ("", "");
13865 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext conftest$ac_exeext
13871 if { (ac_try="$ac_link"
13872 case "(($ac_try" in
13873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874   *) ac_try_echo=$ac_try;;
13875 esac
13876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13877   (eval "$ac_link") 2>conftest.er1
13878   ac_status=$?
13879   grep -v '^ *+' conftest.er1 >conftest.err
13880   rm -f conftest.er1
13881   cat conftest.err >&5
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); } &&
13884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13885   { (case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890   (eval "$ac_try") 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; } &&
13894          { ac_try='test -s conftest$ac_exeext'
13895   { (case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_try") 2>&5
13901   ac_status=$?
13902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13903   (exit $ac_status); }; }; then
13904   gt_cv_func_gnugettext1_libc=yes
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909         gt_cv_func_gnugettext1_libc=no
13910 fi
13911
13912 rm -f core conftest.err conftest.$ac_objext \
13913       conftest$ac_exeext conftest.$ac_ext
13914 fi
13915 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13916 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13917
13918         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13919
13920
13921
13922     use_additional=yes
13923
13924   acl_save_prefix="$prefix"
13925   prefix="$acl_final_prefix"
13926   acl_save_exec_prefix="$exec_prefix"
13927   exec_prefix="$acl_final_exec_prefix"
13928
13929     eval additional_includedir=\"$includedir\"
13930     eval additional_libdir=\"$libdir\"
13931
13932   exec_prefix="$acl_save_exec_prefix"
13933   prefix="$acl_save_prefix"
13934
13935
13936 # Check whether --with-libintl-prefix was given.
13937 if test "${with_libintl_prefix+set}" = set; then
13938   withval=$with_libintl_prefix;
13939     if test "X$withval" = "Xno"; then
13940       use_additional=no
13941     else
13942       if test "X$withval" = "X"; then
13943
13944   acl_save_prefix="$prefix"
13945   prefix="$acl_final_prefix"
13946   acl_save_exec_prefix="$exec_prefix"
13947   exec_prefix="$acl_final_exec_prefix"
13948
13949           eval additional_includedir=\"$includedir\"
13950           eval additional_libdir=\"$libdir\"
13951
13952   exec_prefix="$acl_save_exec_prefix"
13953   prefix="$acl_save_prefix"
13954
13955       else
13956         additional_includedir="$withval/include"
13957         additional_libdir="$withval/lib"
13958       fi
13959     fi
13960
13961 fi
13962
13963       LIBINTL=
13964   LTLIBINTL=
13965   INCINTL=
13966   rpathdirs=
13967   ltrpathdirs=
13968   names_already_handled=
13969   names_next_round='intl '
13970   while test -n "$names_next_round"; do
13971     names_this_round="$names_next_round"
13972     names_next_round=
13973     for name in $names_this_round; do
13974       already_handled=
13975       for n in $names_already_handled; do
13976         if test "$n" = "$name"; then
13977           already_handled=yes
13978           break
13979         fi
13980       done
13981       if test -z "$already_handled"; then
13982         names_already_handled="$names_already_handled $name"
13983                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13984         eval value=\"\$HAVE_LIB$uppername\"
13985         if test -n "$value"; then
13986           if test "$value" = yes; then
13987             eval value=\"\$LIB$uppername\"
13988             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13989             eval value=\"\$LTLIB$uppername\"
13990             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13991           else
13992                                     :
13993           fi
13994         else
13995                               found_dir=
13996           found_la=
13997           found_so=
13998           found_a=
13999           if test $use_additional = yes; then
14000             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14001               found_dir="$additional_libdir"
14002               found_so="$additional_libdir/lib$name.$shlibext"
14003               if test -f "$additional_libdir/lib$name.la"; then
14004                 found_la="$additional_libdir/lib$name.la"
14005               fi
14006             else
14007               if test -f "$additional_libdir/lib$name.$libext"; then
14008                 found_dir="$additional_libdir"
14009                 found_a="$additional_libdir/lib$name.$libext"
14010                 if test -f "$additional_libdir/lib$name.la"; then
14011                   found_la="$additional_libdir/lib$name.la"
14012                 fi
14013               fi
14014             fi
14015           fi
14016           if test "X$found_dir" = "X"; then
14017             for x in $LDFLAGS $LTLIBINTL; do
14018
14019   acl_save_prefix="$prefix"
14020   prefix="$acl_final_prefix"
14021   acl_save_exec_prefix="$exec_prefix"
14022   exec_prefix="$acl_final_exec_prefix"
14023   eval x=\"$x\"
14024   exec_prefix="$acl_save_exec_prefix"
14025   prefix="$acl_save_prefix"
14026
14027               case "$x" in
14028                 -L*)
14029                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14030                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14031                     found_dir="$dir"
14032                     found_so="$dir/lib$name.$shlibext"
14033                     if test -f "$dir/lib$name.la"; then
14034                       found_la="$dir/lib$name.la"
14035                     fi
14036                   else
14037                     if test -f "$dir/lib$name.$libext"; then
14038                       found_dir="$dir"
14039                       found_a="$dir/lib$name.$libext"
14040                       if test -f "$dir/lib$name.la"; then
14041                         found_la="$dir/lib$name.la"
14042                       fi
14043                     fi
14044                   fi
14045                   ;;
14046               esac
14047               if test "X$found_dir" != "X"; then
14048                 break
14049               fi
14050             done
14051           fi
14052           if test "X$found_dir" != "X"; then
14053                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14054             if test "X$found_so" != "X"; then
14055                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14056                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14057               else
14058                                                                                 haveit=
14059                 for x in $ltrpathdirs; do
14060                   if test "X$x" = "X$found_dir"; then
14061                     haveit=yes
14062                     break
14063                   fi
14064                 done
14065                 if test -z "$haveit"; then
14066                   ltrpathdirs="$ltrpathdirs $found_dir"
14067                 fi
14068                                 if test "$hardcode_direct" = yes; then
14069                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14070                 else
14071                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14072                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14073                                                             haveit=
14074                     for x in $rpathdirs; do
14075                       if test "X$x" = "X$found_dir"; then
14076                         haveit=yes
14077                         break
14078                       fi
14079                     done
14080                     if test -z "$haveit"; then
14081                       rpathdirs="$rpathdirs $found_dir"
14082                     fi
14083                   else
14084                                                                                 haveit=
14085                     for x in $LDFLAGS $LIBINTL; do
14086
14087   acl_save_prefix="$prefix"
14088   prefix="$acl_final_prefix"
14089   acl_save_exec_prefix="$exec_prefix"
14090   exec_prefix="$acl_final_exec_prefix"
14091   eval x=\"$x\"
14092   exec_prefix="$acl_save_exec_prefix"
14093   prefix="$acl_save_prefix"
14094
14095                       if test "X$x" = "X-L$found_dir"; then
14096                         haveit=yes
14097                         break
14098                       fi
14099                     done
14100                     if test -z "$haveit"; then
14101                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14102                     fi
14103                     if test "$hardcode_minus_L" != no; then
14104                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14105                     else
14106                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14107                     fi
14108                   fi
14109                 fi
14110               fi
14111             else
14112               if test "X$found_a" != "X"; then
14113                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14114               else
14115                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14116               fi
14117             fi
14118                         additional_includedir=
14119             case "$found_dir" in
14120               */lib | */lib/)
14121                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14122                 additional_includedir="$basedir/include"
14123                 ;;
14124             esac
14125             if test "X$additional_includedir" != "X"; then
14126                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14127                 haveit=
14128                 if test "X$additional_includedir" = "X/usr/local/include"; then
14129                   if test -n "$GCC"; then
14130                     case $host_os in
14131                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14132                     esac
14133                   fi
14134                 fi
14135                 if test -z "$haveit"; then
14136                   for x in $CPPFLAGS $INCINTL; do
14137
14138   acl_save_prefix="$prefix"
14139   prefix="$acl_final_prefix"
14140   acl_save_exec_prefix="$exec_prefix"
14141   exec_prefix="$acl_final_exec_prefix"
14142   eval x=\"$x\"
14143   exec_prefix="$acl_save_exec_prefix"
14144   prefix="$acl_save_prefix"
14145
14146                     if test "X$x" = "X-I$additional_includedir"; then
14147                       haveit=yes
14148                       break
14149                     fi
14150                   done
14151                   if test -z "$haveit"; then
14152                     if test -d "$additional_includedir"; then
14153                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14154                     fi
14155                   fi
14156                 fi
14157               fi
14158             fi
14159                         if test -n "$found_la"; then
14160                                                         save_libdir="$libdir"
14161               case "$found_la" in
14162                 */* | *\\*) . "$found_la" ;;
14163                 *) . "./$found_la" ;;
14164               esac
14165               libdir="$save_libdir"
14166                             for dep in $dependency_libs; do
14167                 case "$dep" in
14168                   -L*)
14169                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14170                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14171                       haveit=
14172                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14173                         if test -n "$GCC"; then
14174                           case $host_os in
14175                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14176                           esac
14177                         fi
14178                       fi
14179                       if test -z "$haveit"; then
14180                         haveit=
14181                         for x in $LDFLAGS $LIBINTL; do
14182
14183   acl_save_prefix="$prefix"
14184   prefix="$acl_final_prefix"
14185   acl_save_exec_prefix="$exec_prefix"
14186   exec_prefix="$acl_final_exec_prefix"
14187   eval x=\"$x\"
14188   exec_prefix="$acl_save_exec_prefix"
14189   prefix="$acl_save_prefix"
14190
14191                           if test "X$x" = "X-L$additional_libdir"; then
14192                             haveit=yes
14193                             break
14194                           fi
14195                         done
14196                         if test -z "$haveit"; then
14197                           if test -d "$additional_libdir"; then
14198                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14199                           fi
14200                         fi
14201                         haveit=
14202                         for x in $LDFLAGS $LTLIBINTL; do
14203
14204   acl_save_prefix="$prefix"
14205   prefix="$acl_final_prefix"
14206   acl_save_exec_prefix="$exec_prefix"
14207   exec_prefix="$acl_final_exec_prefix"
14208   eval x=\"$x\"
14209   exec_prefix="$acl_save_exec_prefix"
14210   prefix="$acl_save_prefix"
14211
14212                           if test "X$x" = "X-L$additional_libdir"; then
14213                             haveit=yes
14214                             break
14215                           fi
14216                         done
14217                         if test -z "$haveit"; then
14218                           if test -d "$additional_libdir"; then
14219                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14220                           fi
14221                         fi
14222                       fi
14223                     fi
14224                     ;;
14225                   -R*)
14226                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14227                     if test "$enable_rpath" != no; then
14228                                                                   haveit=
14229                       for x in $rpathdirs; do
14230                         if test "X$x" = "X$dir"; then
14231                           haveit=yes
14232                           break
14233                         fi
14234                       done
14235                       if test -z "$haveit"; then
14236                         rpathdirs="$rpathdirs $dir"
14237                       fi
14238                                                                   haveit=
14239                       for x in $ltrpathdirs; do
14240                         if test "X$x" = "X$dir"; then
14241                           haveit=yes
14242                           break
14243                         fi
14244                       done
14245                       if test -z "$haveit"; then
14246                         ltrpathdirs="$ltrpathdirs $dir"
14247                       fi
14248                     fi
14249                     ;;
14250                   -l*)
14251                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14252                     ;;
14253                   *.la)
14254                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14255                     ;;
14256                   *)
14257                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14258                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14259                     ;;
14260                 esac
14261               done
14262             fi
14263           else
14264                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14265             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14266           fi
14267         fi
14268       fi
14269     done
14270   done
14271   if test "X$rpathdirs" != "X"; then
14272     if test -n "$hardcode_libdir_separator"; then
14273                         alldirs=
14274       for found_dir in $rpathdirs; do
14275         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14276       done
14277             acl_save_libdir="$libdir"
14278       libdir="$alldirs"
14279       eval flag=\"$hardcode_libdir_flag_spec\"
14280       libdir="$acl_save_libdir"
14281       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14282     else
14283             for found_dir in $rpathdirs; do
14284         acl_save_libdir="$libdir"
14285         libdir="$found_dir"
14286         eval flag=\"$hardcode_libdir_flag_spec\"
14287         libdir="$acl_save_libdir"
14288         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14289       done
14290     fi
14291   fi
14292   if test "X$ltrpathdirs" != "X"; then
14293             for found_dir in $ltrpathdirs; do
14294       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14295     done
14296   fi
14297
14298           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14299 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14300 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   gt_save_CPPFLAGS="$CPPFLAGS"
14304             CPPFLAGS="$CPPFLAGS $INCINTL"
14305             gt_save_LIBS="$LIBS"
14306             LIBS="$LIBS $LIBINTL"
14307                         cat >conftest.$ac_ext <<_ACEOF
14308 /* confdefs.h.  */
14309 _ACEOF
14310 cat confdefs.h >>conftest.$ac_ext
14311 cat >>conftest.$ac_ext <<_ACEOF
14312 /* end confdefs.h.  */
14313 #include <libintl.h>
14314 extern int _nl_msg_cat_cntr;
14315 extern
14316 #ifdef __cplusplus
14317 "C"
14318 #endif
14319 const char *_nl_expand_alias (const char *);
14320 int
14321 main ()
14322 {
14323 bindtextdomain ("", "");
14324 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14325   ;
14326   return 0;
14327 }
14328 _ACEOF
14329 rm -f conftest.$ac_objext conftest$ac_exeext
14330 if { (ac_try="$ac_link"
14331 case "(($ac_try" in
14332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333   *) ac_try_echo=$ac_try;;
14334 esac
14335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336   (eval "$ac_link") 2>conftest.er1
14337   ac_status=$?
14338   grep -v '^ *+' conftest.er1 >conftest.err
14339   rm -f conftest.er1
14340   cat conftest.err >&5
14341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342   (exit $ac_status); } &&
14343          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14344   { (case "(($ac_try" in
14345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14346   *) ac_try_echo=$ac_try;;
14347 esac
14348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14349   (eval "$ac_try") 2>&5
14350   ac_status=$?
14351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352   (exit $ac_status); }; } &&
14353          { ac_try='test -s conftest$ac_exeext'
14354   { (case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_try") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   gt_cv_func_gnugettext1_libintl=yes
14364 else
14365   echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14367
14368         gt_cv_func_gnugettext1_libintl=no
14369 fi
14370
14371 rm -f core conftest.err conftest.$ac_objext \
14372       conftest$ac_exeext conftest.$ac_ext
14373                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14374               LIBS="$LIBS $LIBICONV"
14375               cat >conftest.$ac_ext <<_ACEOF
14376 /* confdefs.h.  */
14377 _ACEOF
14378 cat confdefs.h >>conftest.$ac_ext
14379 cat >>conftest.$ac_ext <<_ACEOF
14380 /* end confdefs.h.  */
14381 #include <libintl.h>
14382 extern int _nl_msg_cat_cntr;
14383 extern
14384 #ifdef __cplusplus
14385 "C"
14386 #endif
14387 const char *_nl_expand_alias (const char *);
14388 int
14389 main ()
14390 {
14391 bindtextdomain ("", "");
14392 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext conftest$ac_exeext
14398 if { (ac_try="$ac_link"
14399 case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404   (eval "$ac_link") 2>conftest.er1
14405   ac_status=$?
14406   grep -v '^ *+' conftest.er1 >conftest.err
14407   rm -f conftest.er1
14408   cat conftest.err >&5
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); } &&
14411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14412   { (case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417   (eval "$ac_try") 2>&5
14418   ac_status=$?
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); }; } &&
14421          { ac_try='test -s conftest$ac_exeext'
14422   { (case "(($ac_try" in
14423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424   *) ac_try_echo=$ac_try;;
14425 esac
14426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14427   (eval "$ac_try") 2>&5
14428   ac_status=$?
14429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14430   (exit $ac_status); }; }; then
14431   LIBINTL="$LIBINTL $LIBICONV"
14432                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14433                 gt_cv_func_gnugettext1_libintl=yes
14434
14435 else
14436   echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14438
14439
14440 fi
14441
14442 rm -f core conftest.err conftest.$ac_objext \
14443       conftest$ac_exeext conftest.$ac_ext
14444             fi
14445             CPPFLAGS="$gt_save_CPPFLAGS"
14446             LIBS="$gt_save_LIBS"
14447 fi
14448 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14449 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14450         fi
14451
14452                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14453            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14454                 && test "$PACKAGE" != gettext-runtime \
14455                 && test "$PACKAGE" != gettext-tools; }; then
14456           gt_use_preinstalled_gnugettext=yes
14457         else
14458                     LIBINTL=
14459           LTLIBINTL=
14460           INCINTL=
14461         fi
14462
14463
14464         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14465                               nls_cv_use_gnu_gettext=yes
14466         fi
14467       fi
14468
14469       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14470                 BUILD_INCLUDED_LIBINTL=yes
14471         USE_INCLUDED_LIBINTL=yes
14472         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14473         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14474         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14475       fi
14476
14477       CATOBJEXT=
14478       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14479          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14480                 CATOBJEXT=.gmo
14481       fi
14482
14483
14484     if test -n "$INTL_MACOSX_LIBS"; then
14485       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14486          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14487                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14488         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14489       fi
14490     fi
14491
14492     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14493        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14494
14495 cat >>confdefs.h <<\_ACEOF
14496 #define ENABLE_NLS 1
14497 _ACEOF
14498
14499     else
14500       USE_NLS=no
14501     fi
14502   fi
14503
14504   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14505 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14506   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14507 echo "${ECHO_T}$USE_NLS" >&6; }
14508   if test "$USE_NLS" = "yes"; then
14509     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14510 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14511     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14512       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14513         gt_source="external libintl"
14514       else
14515         gt_source="libc"
14516       fi
14517     else
14518       gt_source="included intl directory"
14519     fi
14520     { echo "$as_me:$LINENO: result: $gt_source" >&5
14521 echo "${ECHO_T}$gt_source" >&6; }
14522   fi
14523
14524   if test "$USE_NLS" = "yes"; then
14525
14526     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14527       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14528         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14529 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14530         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14531 echo "${ECHO_T}$LIBINTL" >&6; }
14532
14533   for element in $INCINTL; do
14534     haveit=
14535     for x in $CPPFLAGS; do
14536
14537   acl_save_prefix="$prefix"
14538   prefix="$acl_final_prefix"
14539   acl_save_exec_prefix="$exec_prefix"
14540   exec_prefix="$acl_final_exec_prefix"
14541   eval x=\"$x\"
14542   exec_prefix="$acl_save_exec_prefix"
14543   prefix="$acl_save_prefix"
14544
14545       if test "X$x" = "X$element"; then
14546         haveit=yes
14547         break
14548       fi
14549     done
14550     if test -z "$haveit"; then
14551       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14552     fi
14553   done
14554
14555       fi
14556
14557
14558 cat >>confdefs.h <<\_ACEOF
14559 #define HAVE_GETTEXT 1
14560 _ACEOF
14561
14562
14563 cat >>confdefs.h <<\_ACEOF
14564 #define HAVE_DCGETTEXT 1
14565 _ACEOF
14566
14567     fi
14568
14569         POSUB=po
14570   fi
14571
14572
14573             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14574       BUILD_INCLUDED_LIBINTL=yes
14575     fi
14576
14577
14578
14579
14580
14581         nls_cv_header_intl=
14582     nls_cv_header_libgt=
14583
14584         DATADIRNAME=share
14585
14586
14587         INSTOBJEXT=.mo
14588
14589
14590         GENCAT=gencat
14591
14592
14593         INTLOBJS=
14594     if test "$USE_INCLUDED_LIBINTL" = yes; then
14595       INTLOBJS="\$(GETTOBJS)"
14596     fi
14597
14598
14599         INTL_LIBTOOL_SUFFIX_PREFIX=
14600
14601
14602
14603     INTLLIBS="$LIBINTL"
14604
14605
14606
14607
14608
14609
14610 fi
14611
14612
14613 support_mysql=no
14614 support_sqlite=no
14615 support_sqlite3=no
14616 support_postgresql=no
14617 support_smartalloc=yes
14618 support_readline=yes
14619 support_conio=yes
14620 support_gnome=no
14621 support_bat=no
14622 support_wx_console=no
14623 support_tls=no
14624 support_crypto=no
14625 gnome_version=
14626 wx_version=
14627 support_static_tools=no
14628 support_static_fd=no
14629 support_static_sd=no
14630 support_static_dir=no
14631 support_static_cons=no
14632 support_python=no
14633 build_client_only=no
14634 build_dird=yes
14635 build_stored=yes
14636 cats=
14637 db_name=Internal
14638 DB_NAME=bdb
14639
14640
14641 # -------------------------------------------
14642 # gnome (default off)
14643 # -------------------------------------------
14644 # Check whether --enable-gnome was given.
14645 if test "${enable_gnome+set}" = set; then
14646   enableval=$enable_gnome; if test x$enableval = xyes; then
14647     support_gnome=yes
14648   fi
14649 fi
14650
14651
14652 GNOME_DIR=
14653 if test x$support_gnome = xyes; then
14654   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14655   pkg=$?
14656   if test $pkg = 0; then
14657      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14658      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14659      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14660      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14661
14662
14663
14664
14665      GNOME_DIR=src/gnome2-console
14666      gnome_version="Version 2.x"
14667   else
14668      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14669 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14670    { (exit 1); exit 1; }; }
14671   fi
14672 fi
14673
14674
14675 # -------------------------------------------
14676 # bat (default off)
14677 # -------------------------------------------
14678 # Check whether --enable-bat was given.
14679 if test "${enable_bat+set}" = set; then
14680   enableval=$enable_bat; if test x$enableval = xyes; then
14681
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_BAT 1
14684 _ACEOF
14685
14686     support_bat=yes
14687   fi
14688 fi
14689
14690
14691 BAT_DIR=
14692 if test x$support_bat = xyes; then
14693   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14694   pkg=$?
14695   if test $pkg = 0; then
14696      BAT_DIR=src/qt-console
14697   else
14698      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14699 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14700    { (exit 1); exit 1; }; }
14701   fi
14702 fi
14703
14704
14705
14706 # -------------------------------------------
14707 # wx-console (default off)
14708 # -------------------------------------------
14709 # Check whether --enable-wx-console was given.
14710 if test "${enable_wx_console+set}" = set; then
14711   enableval=$enable_wx_console; if test x$enableval = xyes; then
14712     support_wx_console=yes
14713   fi
14714 fi
14715
14716
14717 WX_DIR=
14718 if test x$support_wx_console = xyes; then
14719   abc=`$WXCONFIG $WXFLAGS --cppflags`
14720   pkg=$?
14721   if test $pkg = 0; then
14722      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14723      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14724      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14725
14726
14727
14728      WX_DIR=src/wx-console
14729   else
14730      echo " "
14731      echo "wx-config program not found. wx-console disabled."
14732      echo " "
14733      support_wx_console=no
14734   fi
14735 fi
14736
14737
14738
14739 # -------------------------------------------
14740 # tray-monitor (default off)
14741 # -------------------------------------------
14742 # Check whether --enable-tray-monitor was given.
14743 if test "${enable_tray_monitor+set}" = set; then
14744   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14745     support_tray_monitor=yes
14746   fi
14747 fi
14748
14749
14750 TRAY_MONITOR_DIR=
14751 if test x$support_tray_monitor = xyes; then
14752   abc=`$PKGCONFIG --exists gtk+-2.0`
14753   pkg=$?
14754   if test $pkg = 0; then
14755      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14756      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14757
14758
14759      TRAY_MONITOR_DIR=src/tray-monitor
14760      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14761      pkg=$?
14762      if test $pkg = 0; then
14763      cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_GTK_2_4 1
14765 _ACEOF
14766
14767      fi
14768   fi
14769 fi
14770
14771
14772 # -------------------------------------------
14773 # smartalloc (default off)
14774 # -------------------------------------------
14775 # Check whether --enable-smartalloc was given.
14776 if test "${enable_smartalloc+set}" = set; then
14777   enableval=$enable_smartalloc; if test x$enableval = xno; then
14778     support_smartalloc=no
14779   fi
14780 fi
14781
14782
14783 if test x$support_smartalloc = xyes; then
14784    cat >>confdefs.h <<\_ACEOF
14785 #define SMARTALLOC 1
14786 _ACEOF
14787
14788 fi
14789
14790 # -------------------------------------------
14791 # static-tools (default off)
14792 # -------------------------------------------
14793 # Check whether --enable-static-tools was given.
14794 if test "${enable_static_tools+set}" = set; then
14795   enableval=$enable_static_tools; if test x$enableval = xyes; then
14796      support_static_tools=yes
14797    fi
14798 fi
14799
14800
14801 TTOOL_LDFLAGS=
14802 if test x$support_static_tools = xyes; then
14803    TTOOL_LDFLAGS="-static"
14804 fi
14805
14806
14807 # -------------------------------------------
14808 # static-fd    (default off)
14809 # -------------------------------------------
14810 # Check whether --enable-static-fd was given.
14811 if test "${enable_static_fd+set}" = set; then
14812   enableval=$enable_static_fd; if test x$enableval = xyes; then
14813      support_static_fd=yes
14814    fi
14815 fi
14816
14817
14818 STATIC_FD=
14819 if test x$support_static_fd = xyes; then
14820    STATIC_FD="static-bacula-fd"
14821 fi
14822
14823
14824 # -------------------------------------------
14825 # static-sd    (default off)
14826 # -------------------------------------------
14827 # Check whether --enable-static-sd was given.
14828 if test "${enable_static_sd+set}" = set; then
14829   enableval=$enable_static_sd; if test x$enableval = xyes; then
14830      support_static_sd=yes
14831    fi
14832 fi
14833
14834
14835 STATIC_SD=
14836 if test x$support_static_sd = xyes; then
14837    STATIC_SD="static-bacula-sd"
14838 fi
14839
14840
14841 # -------------------------------------------
14842 # static-dir   (default off)
14843 # -------------------------------------------
14844 # Check whether --enable-static-dir was given.
14845 if test "${enable_static_dir+set}" = set; then
14846   enableval=$enable_static_dir; if test x$enableval = xyes; then
14847      support_static_dir=yes
14848    fi
14849 fi
14850
14851
14852 STATIC_DIR=
14853 if test x$support_static_dir = xyes; then
14854    STATIC_DIR="static-bacula-dir"
14855 fi
14856
14857
14858 # -------------------------------------------
14859 # static-cons  (default off)
14860 # -------------------------------------------
14861 # Check whether --enable-static-cons was given.
14862 if test "${enable_static_cons+set}" = set; then
14863   enableval=$enable_static_cons; if test x$enableval = xyes; then
14864      support_static_cons=yes
14865    fi
14866 fi
14867
14868
14869 STATIC_CONS=
14870 STATIC_GNOME_CONS=
14871 STATIC_WX_CONS=
14872 if test x$support_static_cons = xyes; then
14873    STATIC_CONS="static-bconsole"
14874    STATIC_GNOME_CONS="static-gnome-console"
14875    STATIC_WX_CONS="static-wx-console"
14876 fi
14877
14878
14879
14880
14881 # -------------------------------------------
14882 # client_only  (default off)
14883 # -------------------------------------------
14884 # Check whether --enable-client-only was given.
14885 if test "${enable_client_only+set}" = set; then
14886   enableval=$enable_client_only; if test x$enableval = xyes; then
14887       build_client_only=yes
14888       db_name=None
14889       DB_NAME=none
14890    fi
14891 fi
14892
14893 if test x$build_client_only = xno; then
14894    ALL_DIRS="subdirs"
14895 else
14896    ALL_DIRS=""
14897 fi
14898
14899
14900 # -------------------------------------------
14901 # director  (default on)
14902 # -------------------------------------------
14903 # Check whether --enable-build-dird was given.
14904 if test "${enable_build_dird+set}" = set; then
14905   enableval=$enable_build_dird; if test x$enableval = xno; then
14906       build_dird=no
14907    fi
14908 fi
14909
14910 if test x$build_dird = xyes; then
14911    DIRD_DIR="src/dird"
14912    DIR_TOOLS="DIRTOOLS"
14913 else
14914    DIRD_DIR=""
14915    DIR_TOOLS="NODIRTOOLS"
14916 fi
14917
14918
14919
14920 # -------------------------------------------
14921 # stored  (default on)
14922 # -------------------------------------------
14923 # Check whether --enable-build-stored was given.
14924 if test "${enable_build_stored+set}" = set; then
14925   enableval=$enable_build_stored; if test x$enableval = xno; then
14926       build_stored=no
14927    fi
14928 fi
14929
14930 if test x$build_stored = xyes; then
14931    STORED_DIR="src/stored"
14932 else
14933    STORED_DIR=""
14934 fi
14935
14936
14937 # ---------------------------------------------------
14938 # Check for conio (Bacula readline substitute)(
14939 # ---------------------------------------------------
14940 # this allows you to turn it completely off
14941 # Check whether --enable-conio was given.
14942 if test "${enable_conio+set}" = set; then
14943   enableval=$enable_conio; if test x$enableval = xno; then
14944      support_conio=no
14945   fi
14946
14947 fi
14948
14949
14950
14951 # ---------------------------------------------------
14952 # Check for IPv6 support
14953 # ---------------------------------------------------
14954 # this allows you to turn it completely off
14955 support_ipv6=yes
14956 # Check whether --enable-ipv6 was given.
14957 if test "${enable_ipv6+set}" = set; then
14958   enableval=$enable_ipv6; if test x$enableval = xno; then
14959      support_ipv6=no
14960   fi
14961
14962 fi
14963
14964
14965 if test x$support_ipv6 = xyes; then
14966     cat >conftest.$ac_ext <<_ACEOF
14967 /* confdefs.h.  */
14968 _ACEOF
14969 cat confdefs.h >>conftest.$ac_ext
14970 cat >>conftest.$ac_ext <<_ACEOF
14971 /* end confdefs.h.  */
14972  #include <sys/types.h>
14973 #include <sys/socket.h>
14974 #include <netinet/in.h>
14975 int
14976 main ()
14977 {
14978 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14979   ;
14980   return 0;
14981 }
14982 _ACEOF
14983 rm -f conftest.$ac_objext conftest$ac_exeext
14984 if { (ac_try="$ac_link"
14985 case "(($ac_try" in
14986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987   *) ac_try_echo=$ac_try;;
14988 esac
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990   (eval "$ac_link") 2>conftest.er1
14991   ac_status=$?
14992   grep -v '^ *+' conftest.er1 >conftest.err
14993   rm -f conftest.er1
14994   cat conftest.err >&5
14995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996   (exit $ac_status); } &&
14997          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998   { (case "(($ac_try" in
14999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000   *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003   (eval "$ac_try") 2>&5
15004   ac_status=$?
15005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006   (exit $ac_status); }; } &&
15007          { ac_try='test -s conftest$ac_exeext'
15008   { (case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_try") 2>&5
15014   ac_status=$?
15015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016   (exit $ac_status); }; }; then
15017   support_ipv6=yes
15018 else
15019   echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15021
15022         support_ipv6=no
15023 fi
15024
15025 rm -f core conftest.err conftest.$ac_objext \
15026       conftest$ac_exeext conftest.$ac_ext
15027 fi
15028
15029 if test x$support_ipv6 = xyes; then
15030
15031 cat >>confdefs.h <<\_ACEOF
15032 #define HAVE_IPV6 1
15033 _ACEOF
15034
15035 fi
15036
15037
15038
15039 got_conio="no"
15040 if test x$support_conio = xyes; then
15041    if test "${ac_cv_header_termcap_h+set}" = set; then
15042   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15043 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_header_termcap_h+set}" = set; then
15045   echo $ECHO_N "(cached) $ECHO_C" >&6
15046 fi
15047 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15048 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15049 else
15050   # Is the header compilable?
15051 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15052 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059 $ac_includes_default
15060 #include <termcap.h>
15061 _ACEOF
15062 rm -f conftest.$ac_objext
15063 if { (ac_try="$ac_compile"
15064 case "(($ac_try" in
15065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15066   *) ac_try_echo=$ac_try;;
15067 esac
15068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15069   (eval "$ac_compile") 2>conftest.er1
15070   ac_status=$?
15071   grep -v '^ *+' conftest.er1 >conftest.err
15072   rm -f conftest.er1
15073   cat conftest.err >&5
15074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075   (exit $ac_status); } &&
15076          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15077   { (case "(($ac_try" in
15078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079   *) ac_try_echo=$ac_try;;
15080 esac
15081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082   (eval "$ac_try") 2>&5
15083   ac_status=$?
15084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085   (exit $ac_status); }; } &&
15086          { ac_try='test -s conftest.$ac_objext'
15087   { (case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092   (eval "$ac_try") 2>&5
15093   ac_status=$?
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); }; }; then
15096   ac_header_compiler=yes
15097 else
15098   echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15100
15101         ac_header_compiler=no
15102 fi
15103
15104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15106 echo "${ECHO_T}$ac_header_compiler" >&6; }
15107
15108 # Is the header present?
15109 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15110 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15111 cat >conftest.$ac_ext <<_ACEOF
15112 /* confdefs.h.  */
15113 _ACEOF
15114 cat confdefs.h >>conftest.$ac_ext
15115 cat >>conftest.$ac_ext <<_ACEOF
15116 /* end confdefs.h.  */
15117 #include <termcap.h>
15118 _ACEOF
15119 if { (ac_try="$ac_cpp conftest.$ac_ext"
15120 case "(($ac_try" in
15121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122   *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15126   ac_status=$?
15127   grep -v '^ *+' conftest.er1 >conftest.err
15128   rm -f conftest.er1
15129   cat conftest.err >&5
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } >/dev/null; then
15132   if test -s conftest.err; then
15133     ac_cpp_err=$ac_c_preproc_warn_flag
15134     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15135   else
15136     ac_cpp_err=
15137   fi
15138 else
15139   ac_cpp_err=yes
15140 fi
15141 if test -z "$ac_cpp_err"; then
15142   ac_header_preproc=yes
15143 else
15144   echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147   ac_header_preproc=no
15148 fi
15149
15150 rm -f conftest.err conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15152 echo "${ECHO_T}$ac_header_preproc" >&6; }
15153
15154 # So?  What about this header?
15155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15156   yes:no: )
15157     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15158 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15159     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15160 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15161     ac_header_preproc=yes
15162     ;;
15163   no:yes:* )
15164     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15165 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15166     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15167 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15168     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15169 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15170     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15171 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15173 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15175 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15176
15177     ;;
15178 esac
15179 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15180 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15181 if test "${ac_cv_header_termcap_h+set}" = set; then
15182   echo $ECHO_N "(cached) $ECHO_C" >&6
15183 else
15184   ac_cv_header_termcap_h=$ac_header_preproc
15185 fi
15186 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15187 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15188
15189 fi
15190 if test $ac_cv_header_termcap_h = yes; then
15191    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15192 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15193 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15194   echo $ECHO_N "(cached) $ECHO_C" >&6
15195 else
15196   ac_check_lib_save_LIBS=$LIBS
15197 LIBS="-ltermcap  $LIBS"
15198 cat >conftest.$ac_ext <<_ACEOF
15199 /* confdefs.h.  */
15200 _ACEOF
15201 cat confdefs.h >>conftest.$ac_ext
15202 cat >>conftest.$ac_ext <<_ACEOF
15203 /* end confdefs.h.  */
15204
15205 /* Override any GCC internal prototype to avoid an error.
15206    Use char because int might match the return type of a GCC
15207    builtin and then its argument prototype would still apply.  */
15208 #ifdef __cplusplus
15209 extern "C"
15210 #endif
15211 char tgetent ();
15212 int
15213 main ()
15214 {
15215 return tgetent ();
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 rm -f conftest.$ac_objext conftest$ac_exeext
15221 if { (ac_try="$ac_link"
15222 case "(($ac_try" in
15223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15224   *) ac_try_echo=$ac_try;;
15225 esac
15226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15227   (eval "$ac_link") 2>conftest.er1
15228   ac_status=$?
15229   grep -v '^ *+' conftest.er1 >conftest.err
15230   rm -f conftest.er1
15231   cat conftest.err >&5
15232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233   (exit $ac_status); } &&
15234          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15235   { (case "(($ac_try" in
15236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15237   *) ac_try_echo=$ac_try;;
15238 esac
15239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15240   (eval "$ac_try") 2>&5
15241   ac_status=$?
15242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243   (exit $ac_status); }; } &&
15244          { ac_try='test -s conftest$ac_exeext'
15245   { (case "(($ac_try" in
15246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247   *) ac_try_echo=$ac_try;;
15248 esac
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250   (eval "$ac_try") 2>&5
15251   ac_status=$?
15252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253   (exit $ac_status); }; }; then
15254   ac_cv_lib_termcap_tgetent=yes
15255 else
15256   echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.$ac_ext >&5
15258
15259         ac_cv_lib_termcap_tgetent=no
15260 fi
15261
15262 rm -f core conftest.err conftest.$ac_objext \
15263       conftest$ac_exeext conftest.$ac_ext
15264 LIBS=$ac_check_lib_save_LIBS
15265 fi
15266 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15267 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15268 if test $ac_cv_lib_termcap_tgetent = yes; then
15269    CONS_LIBS="-ltermcap"
15270          CONS_OBJ="conio.o"
15271          CONS_SRC="conio.c"
15272          got_conio="yes"
15273          support_readline=no
15274
15275 cat >>confdefs.h <<\_ACEOF
15276 #define HAVE_CONIO 1
15277 _ACEOF
15278
15279
15280 else
15281    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15282 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15283 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15284   echo $ECHO_N "(cached) $ECHO_C" >&6
15285 else
15286   ac_check_lib_save_LIBS=$LIBS
15287 LIBS="-lncurses  $LIBS"
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h.  */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h.  */
15294
15295 /* Override any GCC internal prototype to avoid an error.
15296    Use char because int might match the return type of a GCC
15297    builtin and then its argument prototype would still apply.  */
15298 #ifdef __cplusplus
15299 extern "C"
15300 #endif
15301 char tgetent ();
15302 int
15303 main ()
15304 {
15305 return tgetent ();
15306   ;
15307   return 0;
15308 }
15309 _ACEOF
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (ac_try="$ac_link"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_link") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } &&
15324          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15325   { (case "(($ac_try" in
15326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15327   *) ac_try_echo=$ac_try;;
15328 esac
15329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15330   (eval "$ac_try") 2>&5
15331   ac_status=$?
15332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333   (exit $ac_status); }; } &&
15334          { ac_try='test -s conftest$ac_exeext'
15335   { (case "(($ac_try" in
15336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15337   *) ac_try_echo=$ac_try;;
15338 esac
15339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15340   (eval "$ac_try") 2>&5
15341   ac_status=$?
15342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343   (exit $ac_status); }; }; then
15344   ac_cv_lib_ncurses_tgetent=yes
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349         ac_cv_lib_ncurses_tgetent=no
15350 fi
15351
15352 rm -f core conftest.err conftest.$ac_objext \
15353       conftest$ac_exeext conftest.$ac_ext
15354 LIBS=$ac_check_lib_save_LIBS
15355 fi
15356 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15357 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15358 if test $ac_cv_lib_ncurses_tgetent = yes; then
15359    CONS_LIBS="-lncurses"
15360            CONS_OBJ="conio.o"
15361            CONS_SRC="conio.c"
15362            got_conio="yes"
15363            support_readline=no
15364
15365 cat >>confdefs.h <<\_ACEOF
15366 #define HAVE_CONIO 1
15367 _ACEOF
15368
15369
15370 fi
15371
15372
15373 fi
15374
15375
15376 else
15377
15378
15379 for ac_header in curses.h
15380 do
15381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15383   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15386   echo $ECHO_N "(cached) $ECHO_C" >&6
15387 fi
15388 ac_res=`eval echo '${'$as_ac_Header'}'`
15389                { echo "$as_me:$LINENO: result: $ac_res" >&5
15390 echo "${ECHO_T}$ac_res" >&6; }
15391 else
15392   # Is the header compilable?
15393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15395 cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 $ac_includes_default
15402 #include <$ac_header>
15403 _ACEOF
15404 rm -f conftest.$ac_objext
15405 if { (ac_try="$ac_compile"
15406 case "(($ac_try" in
15407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408   *) ac_try_echo=$ac_try;;
15409 esac
15410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15411   (eval "$ac_compile") 2>conftest.er1
15412   ac_status=$?
15413   grep -v '^ *+' conftest.er1 >conftest.err
15414   rm -f conftest.er1
15415   cat conftest.err >&5
15416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417   (exit $ac_status); } &&
15418          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419   { (case "(($ac_try" in
15420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15421   *) ac_try_echo=$ac_try;;
15422 esac
15423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15424   (eval "$ac_try") 2>&5
15425   ac_status=$?
15426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15427   (exit $ac_status); }; } &&
15428          { ac_try='test -s conftest.$ac_objext'
15429   { (case "(($ac_try" in
15430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431   *) ac_try_echo=$ac_try;;
15432 esac
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434   (eval "$ac_try") 2>&5
15435   ac_status=$?
15436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437   (exit $ac_status); }; }; then
15438   ac_header_compiler=yes
15439 else
15440   echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15442
15443         ac_header_compiler=no
15444 fi
15445
15446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15447 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15448 echo "${ECHO_T}$ac_header_compiler" >&6; }
15449
15450 # Is the header present?
15451 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15452 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15453 cat >conftest.$ac_ext <<_ACEOF
15454 /* confdefs.h.  */
15455 _ACEOF
15456 cat confdefs.h >>conftest.$ac_ext
15457 cat >>conftest.$ac_ext <<_ACEOF
15458 /* end confdefs.h.  */
15459 #include <$ac_header>
15460 _ACEOF
15461 if { (ac_try="$ac_cpp conftest.$ac_ext"
15462 case "(($ac_try" in
15463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15464   *) ac_try_echo=$ac_try;;
15465 esac
15466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15467   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15468   ac_status=$?
15469   grep -v '^ *+' conftest.er1 >conftest.err
15470   rm -f conftest.er1
15471   cat conftest.err >&5
15472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473   (exit $ac_status); } >/dev/null; then
15474   if test -s conftest.err; then
15475     ac_cpp_err=$ac_c_preproc_warn_flag
15476     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15477   else
15478     ac_cpp_err=
15479   fi
15480 else
15481   ac_cpp_err=yes
15482 fi
15483 if test -z "$ac_cpp_err"; then
15484   ac_header_preproc=yes
15485 else
15486   echo "$as_me: failed program was:" >&5
15487 sed 's/^/| /' conftest.$ac_ext >&5
15488
15489   ac_header_preproc=no
15490 fi
15491
15492 rm -f conftest.err conftest.$ac_ext
15493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15494 echo "${ECHO_T}$ac_header_preproc" >&6; }
15495
15496 # So?  What about this header?
15497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15498   yes:no: )
15499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15503     ac_header_preproc=yes
15504     ;;
15505   no:yes:* )
15506     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15508     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15509 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15512     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15513 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15514     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15516     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15518
15519     ;;
15520 esac
15521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15524   echo $ECHO_N "(cached) $ECHO_C" >&6
15525 else
15526   eval "$as_ac_Header=\$ac_header_preproc"
15527 fi
15528 ac_res=`eval echo '${'$as_ac_Header'}'`
15529                { echo "$as_me:$LINENO: result: $ac_res" >&5
15530 echo "${ECHO_T}$ac_res" >&6; }
15531
15532 fi
15533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15534   cat >>confdefs.h <<_ACEOF
15535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15536 _ACEOF
15537
15538 fi
15539
15540 done
15541
15542          { echo "$as_me:$LINENO: checking for term.h" >&5
15543 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15544 if test "${ac_cv_header_term_h+set}" = set; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   cat >conftest.$ac_ext <<_ACEOF
15548 /* confdefs.h.  */
15549 _ACEOF
15550 cat confdefs.h >>conftest.$ac_ext
15551 cat >>conftest.$ac_ext <<_ACEOF
15552 /* end confdefs.h.  */
15553 #if HAVE_CURSES_H
15554 #include <curses.h>
15555 #endif
15556
15557
15558 #include <term.h>
15559 _ACEOF
15560 rm -f conftest.$ac_objext
15561 if { (ac_try="$ac_compile"
15562 case "(($ac_try" in
15563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564   *) ac_try_echo=$ac_try;;
15565 esac
15566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15567   (eval "$ac_compile") 2>conftest.er1
15568   ac_status=$?
15569   grep -v '^ *+' conftest.er1 >conftest.err
15570   rm -f conftest.er1
15571   cat conftest.err >&5
15572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573   (exit $ac_status); } &&
15574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15575   { (case "(($ac_try" in
15576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577   *) ac_try_echo=$ac_try;;
15578 esac
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580   (eval "$ac_try") 2>&5
15581   ac_status=$?
15582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583   (exit $ac_status); }; } &&
15584          { ac_try='test -s conftest.$ac_objext'
15585   { (case "(($ac_try" in
15586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587   *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590   (eval "$ac_try") 2>&5
15591   ac_status=$?
15592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593   (exit $ac_status); }; }; then
15594   ac_cv_header_term_h=yes
15595 else
15596   echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599         ac_cv_header_term_h=no
15600 fi
15601
15602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603 fi
15604 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15605 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15606 if test $ac_cv_header_term_h = yes; then
15607    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15608 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15609 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15610   echo $ECHO_N "(cached) $ECHO_C" >&6
15611 else
15612   ac_check_lib_save_LIBS=$LIBS
15613 LIBS="-lcurses  $LIBS"
15614 cat >conftest.$ac_ext <<_ACEOF
15615 /* confdefs.h.  */
15616 _ACEOF
15617 cat confdefs.h >>conftest.$ac_ext
15618 cat >>conftest.$ac_ext <<_ACEOF
15619 /* end confdefs.h.  */
15620
15621 /* Override any GCC internal prototype to avoid an error.
15622    Use char because int might match the return type of a GCC
15623    builtin and then its argument prototype would still apply.  */
15624 #ifdef __cplusplus
15625 extern "C"
15626 #endif
15627 char tgetent ();
15628 int
15629 main ()
15630 {
15631 return tgetent ();
15632   ;
15633   return 0;
15634 }
15635 _ACEOF
15636 rm -f conftest.$ac_objext conftest$ac_exeext
15637 if { (ac_try="$ac_link"
15638 case "(($ac_try" in
15639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640   *) ac_try_echo=$ac_try;;
15641 esac
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643   (eval "$ac_link") 2>conftest.er1
15644   ac_status=$?
15645   grep -v '^ *+' conftest.er1 >conftest.err
15646   rm -f conftest.er1
15647   cat conftest.err >&5
15648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15649   (exit $ac_status); } &&
15650          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15651   { (case "(($ac_try" in
15652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15653   *) ac_try_echo=$ac_try;;
15654 esac
15655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15656   (eval "$ac_try") 2>&5
15657   ac_status=$?
15658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); }; } &&
15660          { ac_try='test -s conftest$ac_exeext'
15661   { (case "(($ac_try" in
15662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663   *) ac_try_echo=$ac_try;;
15664 esac
15665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15666   (eval "$ac_try") 2>&5
15667   ac_status=$?
15668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669   (exit $ac_status); }; }; then
15670   ac_cv_lib_curses_tgetent=yes
15671 else
15672   echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675         ac_cv_lib_curses_tgetent=no
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext \
15679       conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15681 fi
15682 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15683 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15684 if test $ac_cv_lib_curses_tgetent = yes; then
15685    CONS_LIBS="-lcurses"
15686                    CONS_OBJ="conio.o"
15687                    CONS_SRC="conio.c"
15688                    got_conio="yes"
15689                    support_readline=no
15690
15691 cat >>confdefs.h <<\_ACEOF
15692 #define HAVE_CONIO 1
15693 _ACEOF
15694
15695
15696 fi
15697
15698
15699 else
15700    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15701 fi
15702
15703
15704
15705 fi
15706
15707
15708 fi
15709
15710
15711 # ---------------------------------------------------
15712 # Check for readline support/directory (default off)
15713 # ---------------------------------------------------
15714 # this allows you to turn it completely off
15715 # Check whether --enable-readline was given.
15716 if test "${enable_readline+set}" = set; then
15717   enableval=$enable_readline; if test x$enableval = xno; then
15718     support_readline=no
15719   fi
15720 fi
15721
15722
15723 got_readline="no"
15724 READLINE_SRC=
15725 if test x$support_readline = xyes; then
15726
15727 # Check whether --with-readline was given.
15728 if test "${with_readline+set}" = set; then
15729   withval=$with_readline;
15730         case "$with_readline" in
15731         no) : ;;
15732         yes|*)
15733           if test -f ${with_readline}/readline.h; then
15734              CONS_INC="-I${with_readline}"
15735              CONS_LDFLAGS="-L$with_readline"
15736           elif test -f ${with_readline}/include/readline/readline.h; then
15737              CONS_INC="-I${with_readline}/include/readline"
15738              CONS_LDFLAGS="-L${with_readline}/lib"
15739              with_readline="${with_readline}/include/readline"
15740           else
15741              with_readline="/usr/include/readline"
15742           fi
15743           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15745   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15746 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15748   echo $ECHO_N "(cached) $ECHO_C" >&6
15749 fi
15750 ac_res=`eval echo '${'$as_ac_Header'}'`
15751                { echo "$as_me:$LINENO: result: $ac_res" >&5
15752 echo "${ECHO_T}$ac_res" >&6; }
15753 else
15754   # Is the header compilable?
15755 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15756 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15757 cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 $ac_includes_default
15764 #include <${with_readline}/readline.h>
15765 _ACEOF
15766 rm -f conftest.$ac_objext
15767 if { (ac_try="$ac_compile"
15768 case "(($ac_try" in
15769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770   *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773   (eval "$ac_compile") 2>conftest.er1
15774   ac_status=$?
15775   grep -v '^ *+' conftest.er1 >conftest.err
15776   rm -f conftest.er1
15777   cat conftest.err >&5
15778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779   (exit $ac_status); } &&
15780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15781   { (case "(($ac_try" in
15782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15783   *) ac_try_echo=$ac_try;;
15784 esac
15785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15786   (eval "$ac_try") 2>&5
15787   ac_status=$?
15788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789   (exit $ac_status); }; } &&
15790          { ac_try='test -s conftest.$ac_objext'
15791   { (case "(($ac_try" in
15792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15793   *) ac_try_echo=$ac_try;;
15794 esac
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796   (eval "$ac_try") 2>&5
15797   ac_status=$?
15798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799   (exit $ac_status); }; }; then
15800   ac_header_compiler=yes
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805         ac_header_compiler=no
15806 fi
15807
15808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15810 echo "${ECHO_T}$ac_header_compiler" >&6; }
15811
15812 # Is the header present?
15813 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15814 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15815 cat >conftest.$ac_ext <<_ACEOF
15816 /* confdefs.h.  */
15817 _ACEOF
15818 cat confdefs.h >>conftest.$ac_ext
15819 cat >>conftest.$ac_ext <<_ACEOF
15820 /* end confdefs.h.  */
15821 #include <${with_readline}/readline.h>
15822 _ACEOF
15823 if { (ac_try="$ac_cpp conftest.$ac_ext"
15824 case "(($ac_try" in
15825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15826   *) ac_try_echo=$ac_try;;
15827 esac
15828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15829   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830   ac_status=$?
15831   grep -v '^ *+' conftest.er1 >conftest.err
15832   rm -f conftest.er1
15833   cat conftest.err >&5
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } >/dev/null; then
15836   if test -s conftest.err; then
15837     ac_cpp_err=$ac_c_preproc_warn_flag
15838     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15839   else
15840     ac_cpp_err=
15841   fi
15842 else
15843   ac_cpp_err=yes
15844 fi
15845 if test -z "$ac_cpp_err"; then
15846   ac_header_preproc=yes
15847 else
15848   echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851   ac_header_preproc=no
15852 fi
15853
15854 rm -f conftest.err conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15856 echo "${ECHO_T}$ac_header_preproc" >&6; }
15857
15858 # So?  What about this header?
15859 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860   yes:no: )
15861     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15862 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15863     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15864 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15865     ac_header_preproc=yes
15866     ;;
15867   no:yes:* )
15868     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15869 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15870     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15871 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15872     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15873 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15874     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15875 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15876     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15877 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15878     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15879 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15880
15881     ;;
15882 esac
15883 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15884 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15886   echo $ECHO_N "(cached) $ECHO_C" >&6
15887 else
15888   eval "$as_ac_Header=\$ac_header_preproc"
15889 fi
15890 ac_res=`eval echo '${'$as_ac_Header'}'`
15891                { echo "$as_me:$LINENO: result: $ac_res" >&5
15892 echo "${ECHO_T}$ac_res" >&6; }
15893
15894 fi
15895 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15896    cat >>confdefs.h <<\_ACEOF
15897 #define HAVE_READLINE 1
15898 _ACEOF
15899
15900                CONS_LIBS="-lreadline -lhistory -ltermcap"
15901                got_readline="yes"
15902
15903 else
15904    echo " "
15905                echo "readline.h not found. readline turned off ..."
15906                echo " "
15907
15908
15909 fi
15910
15911
15912           ;;
15913         esac
15914
15915 else
15916
15917        # check for standard readline library
15918        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15919   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15920 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15921 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15922   echo $ECHO_N "(cached) $ECHO_C" >&6
15923 fi
15924 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15925 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15926 else
15927   # Is the header compilable?
15928 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15929 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15930 cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936 $ac_includes_default
15937 #include </usr/include/readline/readline.h>
15938 _ACEOF
15939 rm -f conftest.$ac_objext
15940 if { (ac_try="$ac_compile"
15941 case "(($ac_try" in
15942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15943   *) ac_try_echo=$ac_try;;
15944 esac
15945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15946   (eval "$ac_compile") 2>conftest.er1
15947   ac_status=$?
15948   grep -v '^ *+' conftest.er1 >conftest.err
15949   rm -f conftest.er1
15950   cat conftest.err >&5
15951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952   (exit $ac_status); } &&
15953          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15954   { (case "(($ac_try" in
15955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956   *) ac_try_echo=$ac_try;;
15957 esac
15958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15959   (eval "$ac_try") 2>&5
15960   ac_status=$?
15961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); }; } &&
15963          { ac_try='test -s conftest.$ac_objext'
15964   { (case "(($ac_try" in
15965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966   *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969   (eval "$ac_try") 2>&5
15970   ac_status=$?
15971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15972   (exit $ac_status); }; }; then
15973   ac_header_compiler=yes
15974 else
15975   echo "$as_me: failed program was:" >&5
15976 sed 's/^/| /' conftest.$ac_ext >&5
15977
15978         ac_header_compiler=no
15979 fi
15980
15981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15983 echo "${ECHO_T}$ac_header_compiler" >&6; }
15984
15985 # Is the header present?
15986 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15987 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15988 cat >conftest.$ac_ext <<_ACEOF
15989 /* confdefs.h.  */
15990 _ACEOF
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h.  */
15994 #include </usr/include/readline/readline.h>
15995 _ACEOF
15996 if { (ac_try="$ac_cpp conftest.$ac_ext"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16003   ac_status=$?
16004   grep -v '^ *+' conftest.er1 >conftest.err
16005   rm -f conftest.er1
16006   cat conftest.err >&5
16007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008   (exit $ac_status); } >/dev/null; then
16009   if test -s conftest.err; then
16010     ac_cpp_err=$ac_c_preproc_warn_flag
16011     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16012   else
16013     ac_cpp_err=
16014   fi
16015 else
16016   ac_cpp_err=yes
16017 fi
16018 if test -z "$ac_cpp_err"; then
16019   ac_header_preproc=yes
16020 else
16021   echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16023
16024   ac_header_preproc=no
16025 fi
16026
16027 rm -f conftest.err conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6; }
16030
16031 # So?  What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16033   yes:no: )
16034     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16035 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16036     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16037 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16038     ac_header_preproc=yes
16039     ;;
16040   no:yes:* )
16041     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16042 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16043     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16044 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16045     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16046 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16048 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16050 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16052 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16053
16054     ;;
16055 esac
16056 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16057 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16058 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16059   echo $ECHO_N "(cached) $ECHO_C" >&6
16060 else
16061   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16062 fi
16063 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16064 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16065
16066 fi
16067 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16068    cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_READLINE 1
16070 _ACEOF
16071
16072            got_readline="yes"
16073            CONS_INC="-I/usr/include/readline"
16074            CONS_LIBS="-lreadline -ltermcap"
16075
16076 else
16077
16078            # Did not find standard library, so try Bacula's default
16079             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16080 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16081   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16082 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16084   echo $ECHO_N "(cached) $ECHO_C" >&6
16085 fi
16086 ac_res=`eval echo '${'$as_ac_Header'}'`
16087                { echo "$as_me:$LINENO: result: $ac_res" >&5
16088 echo "${ECHO_T}$ac_res" >&6; }
16089 else
16090   # Is the header compilable?
16091 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16092 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16093 cat >conftest.$ac_ext <<_ACEOF
16094 /* confdefs.h.  */
16095 _ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h.  */
16099 $ac_includes_default
16100 #include <${TOP_DIR}/depkgs/readline/readline.h>
16101 _ACEOF
16102 rm -f conftest.$ac_objext
16103 if { (ac_try="$ac_compile"
16104 case "(($ac_try" in
16105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16106   *) ac_try_echo=$ac_try;;
16107 esac
16108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16109   (eval "$ac_compile") 2>conftest.er1
16110   ac_status=$?
16111   grep -v '^ *+' conftest.er1 >conftest.err
16112   rm -f conftest.er1
16113   cat conftest.err >&5
16114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115   (exit $ac_status); } &&
16116          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16117   { (case "(($ac_try" in
16118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16119   *) ac_try_echo=$ac_try;;
16120 esac
16121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16122   (eval "$ac_try") 2>&5
16123   ac_status=$?
16124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125   (exit $ac_status); }; } &&
16126          { ac_try='test -s conftest.$ac_objext'
16127   { (case "(($ac_try" in
16128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16129   *) ac_try_echo=$ac_try;;
16130 esac
16131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16132   (eval "$ac_try") 2>&5
16133   ac_status=$?
16134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135   (exit $ac_status); }; }; then
16136   ac_header_compiler=yes
16137 else
16138   echo "$as_me: failed program was:" >&5
16139 sed 's/^/| /' conftest.$ac_ext >&5
16140
16141         ac_header_compiler=no
16142 fi
16143
16144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16146 echo "${ECHO_T}$ac_header_compiler" >&6; }
16147
16148 # Is the header present?
16149 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16150 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16151 cat >conftest.$ac_ext <<_ACEOF
16152 /* confdefs.h.  */
16153 _ACEOF
16154 cat confdefs.h >>conftest.$ac_ext
16155 cat >>conftest.$ac_ext <<_ACEOF
16156 /* end confdefs.h.  */
16157 #include <${TOP_DIR}/depkgs/readline/readline.h>
16158 _ACEOF
16159 if { (ac_try="$ac_cpp conftest.$ac_ext"
16160 case "(($ac_try" in
16161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162   *) ac_try_echo=$ac_try;;
16163 esac
16164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16166   ac_status=$?
16167   grep -v '^ *+' conftest.er1 >conftest.err
16168   rm -f conftest.er1
16169   cat conftest.err >&5
16170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16171   (exit $ac_status); } >/dev/null; then
16172   if test -s conftest.err; then
16173     ac_cpp_err=$ac_c_preproc_warn_flag
16174     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16175   else
16176     ac_cpp_err=
16177   fi
16178 else
16179   ac_cpp_err=yes
16180 fi
16181 if test -z "$ac_cpp_err"; then
16182   ac_header_preproc=yes
16183 else
16184   echo "$as_me: failed program was:" >&5
16185 sed 's/^/| /' conftest.$ac_ext >&5
16186
16187   ac_header_preproc=no
16188 fi
16189
16190 rm -f conftest.err conftest.$ac_ext
16191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16192 echo "${ECHO_T}$ac_header_preproc" >&6; }
16193
16194 # So?  What about this header?
16195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16196   yes:no: )
16197     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16198 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16199     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16200 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16201     ac_header_preproc=yes
16202     ;;
16203   no:yes:* )
16204     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16205 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16206     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16207 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16208     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16209 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16210     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16211 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16212     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16213 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16214     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16215 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16216
16217     ;;
16218 esac
16219 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16220 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16222   echo $ECHO_N "(cached) $ECHO_C" >&6
16223 else
16224   eval "$as_ac_Header=\$ac_header_preproc"
16225 fi
16226 ac_res=`eval echo '${'$as_ac_Header'}'`
16227                { echo "$as_me:$LINENO: result: $ac_res" >&5
16228 echo "${ECHO_T}$ac_res" >&6; }
16229
16230 fi
16231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16232    cat >>confdefs.h <<\_ACEOF
16233 #define HAVE_READLINE 1
16234 _ACEOF
16235
16236                  got_readline="yes"
16237                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16238                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16239                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16240                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16241
16242 else
16243    echo " "
16244                 echo "readline.h not found. readline turned off ..."
16245                 echo " "
16246
16247
16248 fi
16249
16250
16251
16252
16253 fi
16254
16255
16256
16257
16258 fi
16259
16260 fi
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271 # Minimal stuff for readline Makefile configuration
16272 MAKE_SHELL=/bin/sh
16273
16274 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16275 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16276 if test "${ac_cv_header_stat_broken+set}" = set; then
16277   echo $ECHO_N "(cached) $ECHO_C" >&6
16278 else
16279   cat >conftest.$ac_ext <<_ACEOF
16280 /* confdefs.h.  */
16281 _ACEOF
16282 cat confdefs.h >>conftest.$ac_ext
16283 cat >>conftest.$ac_ext <<_ACEOF
16284 /* end confdefs.h.  */
16285 #include <sys/types.h>
16286 #include <sys/stat.h>
16287
16288 #if defined S_ISBLK && defined S_IFDIR
16289 # if S_ISBLK (S_IFDIR)
16290 You lose.
16291 # endif
16292 #endif
16293
16294 #if defined S_ISBLK && defined S_IFCHR
16295 # if S_ISBLK (S_IFCHR)
16296 You lose.
16297 # endif
16298 #endif
16299
16300 #if defined S_ISLNK && defined S_IFREG
16301 # if S_ISLNK (S_IFREG)
16302 You lose.
16303 # endif
16304 #endif
16305
16306 #if defined S_ISSOCK && defined S_IFREG
16307 # if S_ISSOCK (S_IFREG)
16308 You lose.
16309 # endif
16310 #endif
16311
16312 _ACEOF
16313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16314   $EGREP "You lose" >/dev/null 2>&1; then
16315   ac_cv_header_stat_broken=yes
16316 else
16317   ac_cv_header_stat_broken=no
16318 fi
16319 rm -f conftest*
16320
16321 fi
16322 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16323 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16324 if test $ac_cv_header_stat_broken = yes; then
16325
16326 cat >>confdefs.h <<\_ACEOF
16327 #define STAT_MACROS_BROKEN 1
16328 _ACEOF
16329
16330 fi
16331
16332
16333
16334
16335
16336
16337 ac_header_dirent=no
16338 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16339   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16340 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16341 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16343   echo $ECHO_N "(cached) $ECHO_C" >&6
16344 else
16345   cat >conftest.$ac_ext <<_ACEOF
16346 /* confdefs.h.  */
16347 _ACEOF
16348 cat confdefs.h >>conftest.$ac_ext
16349 cat >>conftest.$ac_ext <<_ACEOF
16350 /* end confdefs.h.  */
16351 #include <sys/types.h>
16352 #include <$ac_hdr>
16353
16354 int
16355 main ()
16356 {
16357 if ((DIR *) 0)
16358 return 0;
16359   ;
16360   return 0;
16361 }
16362 _ACEOF
16363 rm -f conftest.$ac_objext
16364 if { (ac_try="$ac_compile"
16365 case "(($ac_try" in
16366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367   *) ac_try_echo=$ac_try;;
16368 esac
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370   (eval "$ac_compile") 2>conftest.er1
16371   ac_status=$?
16372   grep -v '^ *+' conftest.er1 >conftest.err
16373   rm -f conftest.er1
16374   cat conftest.err >&5
16375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376   (exit $ac_status); } &&
16377          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16378   { (case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_try") 2>&5
16384   ac_status=$?
16385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16386   (exit $ac_status); }; } &&
16387          { ac_try='test -s conftest.$ac_objext'
16388   { (case "(($ac_try" in
16389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16390   *) ac_try_echo=$ac_try;;
16391 esac
16392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16393   (eval "$ac_try") 2>&5
16394   ac_status=$?
16395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396   (exit $ac_status); }; }; then
16397   eval "$as_ac_Header=yes"
16398 else
16399   echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16401
16402         eval "$as_ac_Header=no"
16403 fi
16404
16405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16406 fi
16407 ac_res=`eval echo '${'$as_ac_Header'}'`
16408                { echo "$as_me:$LINENO: result: $ac_res" >&5
16409 echo "${ECHO_T}$ac_res" >&6; }
16410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16411   cat >>confdefs.h <<_ACEOF
16412 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16413 _ACEOF
16414
16415 ac_header_dirent=$ac_hdr; break
16416 fi
16417
16418 done
16419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16420 if test $ac_header_dirent = dirent.h; then
16421   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16422 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16423 if test "${ac_cv_search_opendir+set}" = set; then
16424   echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426   ac_func_search_save_LIBS=$LIBS
16427 cat >conftest.$ac_ext <<_ACEOF
16428 /* confdefs.h.  */
16429 _ACEOF
16430 cat confdefs.h >>conftest.$ac_ext
16431 cat >>conftest.$ac_ext <<_ACEOF
16432 /* end confdefs.h.  */
16433
16434 /* Override any GCC internal prototype to avoid an error.
16435    Use char because int might match the return type of a GCC
16436    builtin and then its argument prototype would still apply.  */
16437 #ifdef __cplusplus
16438 extern "C"
16439 #endif
16440 char opendir ();
16441 int
16442 main ()
16443 {
16444 return opendir ();
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 for ac_lib in '' dir; do
16450   if test -z "$ac_lib"; then
16451     ac_res="none required"
16452   else
16453     ac_res=-l$ac_lib
16454     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16455   fi
16456   rm -f conftest.$ac_objext conftest$ac_exeext
16457 if { (ac_try="$ac_link"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_link") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } &&
16470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471   { (case "(($ac_try" in
16472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473   *) ac_try_echo=$ac_try;;
16474 esac
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476   (eval "$ac_try") 2>&5
16477   ac_status=$?
16478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479   (exit $ac_status); }; } &&
16480          { ac_try='test -s conftest$ac_exeext'
16481   { (case "(($ac_try" in
16482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483   *) ac_try_echo=$ac_try;;
16484 esac
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486   (eval "$ac_try") 2>&5
16487   ac_status=$?
16488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489   (exit $ac_status); }; }; then
16490   ac_cv_search_opendir=$ac_res
16491 else
16492   echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16494
16495
16496 fi
16497
16498 rm -f core conftest.err conftest.$ac_objext \
16499       conftest$ac_exeext
16500   if test "${ac_cv_search_opendir+set}" = set; then
16501   break
16502 fi
16503 done
16504 if test "${ac_cv_search_opendir+set}" = set; then
16505   :
16506 else
16507   ac_cv_search_opendir=no
16508 fi
16509 rm conftest.$ac_ext
16510 LIBS=$ac_func_search_save_LIBS
16511 fi
16512 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16513 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16514 ac_res=$ac_cv_search_opendir
16515 if test "$ac_res" != no; then
16516   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16517
16518 fi
16519
16520 else
16521   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16522 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16523 if test "${ac_cv_search_opendir+set}" = set; then
16524   echo $ECHO_N "(cached) $ECHO_C" >&6
16525 else
16526   ac_func_search_save_LIBS=$LIBS
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h.  */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h.  */
16533
16534 /* Override any GCC internal prototype to avoid an error.
16535    Use char because int might match the return type of a GCC
16536    builtin and then its argument prototype would still apply.  */
16537 #ifdef __cplusplus
16538 extern "C"
16539 #endif
16540 char opendir ();
16541 int
16542 main ()
16543 {
16544 return opendir ();
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 for ac_lib in '' x; do
16550   if test -z "$ac_lib"; then
16551     ac_res="none required"
16552   else
16553     ac_res=-l$ac_lib
16554     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16555   fi
16556   rm -f conftest.$ac_objext conftest$ac_exeext
16557 if { (ac_try="$ac_link"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563   (eval "$ac_link") 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } &&
16570          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16571   { (case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_try") 2>&5
16577   ac_status=$?
16578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579   (exit $ac_status); }; } &&
16580          { ac_try='test -s conftest$ac_exeext'
16581   { (case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16586   (eval "$ac_try") 2>&5
16587   ac_status=$?
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); }; }; then
16590   ac_cv_search_opendir=$ac_res
16591 else
16592   echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext \
16599       conftest$ac_exeext
16600   if test "${ac_cv_search_opendir+set}" = set; then
16601   break
16602 fi
16603 done
16604 if test "${ac_cv_search_opendir+set}" = set; then
16605   :
16606 else
16607   ac_cv_search_opendir=no
16608 fi
16609 rm conftest.$ac_ext
16610 LIBS=$ac_func_search_save_LIBS
16611 fi
16612 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16613 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16614 ac_res=$ac_cv_search_opendir
16615 if test "$ac_res" != no; then
16616   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16617
16618 fi
16619
16620 fi
16621
16622
16623
16624
16625
16626
16627
16628
16629 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16630 do
16631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16635   echo $ECHO_N "(cached) $ECHO_C" >&6
16636 else
16637   cat >conftest.$ac_ext <<_ACEOF
16638 /* confdefs.h.  */
16639 _ACEOF
16640 cat confdefs.h >>conftest.$ac_ext
16641 cat >>conftest.$ac_ext <<_ACEOF
16642 /* end confdefs.h.  */
16643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16645 #define $ac_func innocuous_$ac_func
16646
16647 /* System header to define __stub macros and hopefully few prototypes,
16648     which can conflict with char $ac_func (); below.
16649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16650     <limits.h> exists even on freestanding compilers.  */
16651
16652 #ifdef __STDC__
16653 # include <limits.h>
16654 #else
16655 # include <assert.h>
16656 #endif
16657
16658 #undef $ac_func
16659
16660 /* Override any GCC internal prototype to avoid an error.
16661    Use char because int might match the return type of a GCC
16662    builtin and then its argument prototype would still apply.  */
16663 #ifdef __cplusplus
16664 extern "C"
16665 #endif
16666 char $ac_func ();
16667 /* The GNU C library defines this for functions which it implements
16668     to always fail with ENOSYS.  Some functions are actually named
16669     something starting with __ and the normal name is an alias.  */
16670 #if defined __stub_$ac_func || defined __stub___$ac_func
16671 choke me
16672 #endif
16673
16674 int
16675 main ()
16676 {
16677 return $ac_func ();
16678   ;
16679   return 0;
16680 }
16681 _ACEOF
16682 rm -f conftest.$ac_objext conftest$ac_exeext
16683 if { (ac_try="$ac_link"
16684 case "(($ac_try" in
16685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16686   *) ac_try_echo=$ac_try;;
16687 esac
16688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16689   (eval "$ac_link") 2>conftest.er1
16690   ac_status=$?
16691   grep -v '^ *+' conftest.er1 >conftest.err
16692   rm -f conftest.er1
16693   cat conftest.err >&5
16694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695   (exit $ac_status); } &&
16696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16697   { (case "(($ac_try" in
16698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16699   *) ac_try_echo=$ac_try;;
16700 esac
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702   (eval "$ac_try") 2>&5
16703   ac_status=$?
16704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705   (exit $ac_status); }; } &&
16706          { ac_try='test -s conftest$ac_exeext'
16707   { (case "(($ac_try" in
16708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709   *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712   (eval "$ac_try") 2>&5
16713   ac_status=$?
16714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715   (exit $ac_status); }; }; then
16716   eval "$as_ac_var=yes"
16717 else
16718   echo "$as_me: failed program was:" >&5
16719 sed 's/^/| /' conftest.$ac_ext >&5
16720
16721         eval "$as_ac_var=no"
16722 fi
16723
16724 rm -f core conftest.err conftest.$ac_objext \
16725       conftest$ac_exeext conftest.$ac_ext
16726 fi
16727 ac_res=`eval echo '${'$as_ac_var'}'`
16728                { echo "$as_me:$LINENO: result: $ac_res" >&5
16729 echo "${ECHO_T}$ac_res" >&6; }
16730 if test `eval echo '${'$as_ac_var'}'` = yes; then
16731   cat >>confdefs.h <<_ACEOF
16732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16733 _ACEOF
16734
16735 fi
16736 done
16737
16738
16739
16740 for ac_func in nanosleep nl_langinfo
16741 do
16742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16746   echo $ECHO_N "(cached) $ECHO_C" >&6
16747 else
16748   cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16755    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16756 #define $ac_func innocuous_$ac_func
16757
16758 /* System header to define __stub macros and hopefully few prototypes,
16759     which can conflict with char $ac_func (); below.
16760     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16761     <limits.h> exists even on freestanding compilers.  */
16762
16763 #ifdef __STDC__
16764 # include <limits.h>
16765 #else
16766 # include <assert.h>
16767 #endif
16768
16769 #undef $ac_func
16770
16771 /* Override any GCC internal prototype to avoid an error.
16772    Use char because int might match the return type of a GCC
16773    builtin and then its argument prototype would still apply.  */
16774 #ifdef __cplusplus
16775 extern "C"
16776 #endif
16777 char $ac_func ();
16778 /* The GNU C library defines this for functions which it implements
16779     to always fail with ENOSYS.  Some functions are actually named
16780     something starting with __ and the normal name is an alias.  */
16781 #if defined __stub_$ac_func || defined __stub___$ac_func
16782 choke me
16783 #endif
16784
16785 int
16786 main ()
16787 {
16788 return $ac_func ();
16789   ;
16790   return 0;
16791 }
16792 _ACEOF
16793 rm -f conftest.$ac_objext conftest$ac_exeext
16794 if { (ac_try="$ac_link"
16795 case "(($ac_try" in
16796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797   *) ac_try_echo=$ac_try;;
16798 esac
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800   (eval "$ac_link") 2>conftest.er1
16801   ac_status=$?
16802   grep -v '^ *+' conftest.er1 >conftest.err
16803   rm -f conftest.er1
16804   cat conftest.err >&5
16805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806   (exit $ac_status); } &&
16807          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16808   { (case "(($ac_try" in
16809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810   *) ac_try_echo=$ac_try;;
16811 esac
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813   (eval "$ac_try") 2>&5
16814   ac_status=$?
16815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816   (exit $ac_status); }; } &&
16817          { ac_try='test -s conftest$ac_exeext'
16818   { (case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_try") 2>&5
16824   ac_status=$?
16825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826   (exit $ac_status); }; }; then
16827   eval "$as_ac_var=yes"
16828 else
16829   echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832         eval "$as_ac_var=no"
16833 fi
16834
16835 rm -f core conftest.err conftest.$ac_objext \
16836       conftest$ac_exeext conftest.$ac_ext
16837 fi
16838 ac_res=`eval echo '${'$as_ac_var'}'`
16839                { echo "$as_me:$LINENO: result: $ac_res" >&5
16840 echo "${ECHO_T}$ac_res" >&6; }
16841 if test `eval echo '${'$as_ac_var'}'` = yes; then
16842   cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16844 _ACEOF
16845
16846 fi
16847 done
16848
16849
16850 for ac_header in varargs.h
16851 do
16852 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16854   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16855 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16857   echo $ECHO_N "(cached) $ECHO_C" >&6
16858 fi
16859 ac_res=`eval echo '${'$as_ac_Header'}'`
16860                { echo "$as_me:$LINENO: result: $ac_res" >&5
16861 echo "${ECHO_T}$ac_res" >&6; }
16862 else
16863   # Is the header compilable?
16864 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16865 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16866 cat >conftest.$ac_ext <<_ACEOF
16867 /* confdefs.h.  */
16868 _ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h.  */
16872 $ac_includes_default
16873 #include <$ac_header>
16874 _ACEOF
16875 rm -f conftest.$ac_objext
16876 if { (ac_try="$ac_compile"
16877 case "(($ac_try" in
16878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879   *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882   (eval "$ac_compile") 2>conftest.er1
16883   ac_status=$?
16884   grep -v '^ *+' conftest.er1 >conftest.err
16885   rm -f conftest.er1
16886   cat conftest.err >&5
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); } &&
16889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16890   { (case "(($ac_try" in
16891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892   *) ac_try_echo=$ac_try;;
16893 esac
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895   (eval "$ac_try") 2>&5
16896   ac_status=$?
16897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898   (exit $ac_status); }; } &&
16899          { ac_try='test -s conftest.$ac_objext'
16900   { (case "(($ac_try" in
16901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902   *) ac_try_echo=$ac_try;;
16903 esac
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905   (eval "$ac_try") 2>&5
16906   ac_status=$?
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); }; }; then
16909   ac_header_compiler=yes
16910 else
16911   echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914         ac_header_compiler=no
16915 fi
16916
16917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16919 echo "${ECHO_T}$ac_header_compiler" >&6; }
16920
16921 # Is the header present?
16922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16924 cat >conftest.$ac_ext <<_ACEOF
16925 /* confdefs.h.  */
16926 _ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h.  */
16930 #include <$ac_header>
16931 _ACEOF
16932 if { (ac_try="$ac_cpp conftest.$ac_ext"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16939   ac_status=$?
16940   grep -v '^ *+' conftest.er1 >conftest.err
16941   rm -f conftest.er1
16942   cat conftest.err >&5
16943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944   (exit $ac_status); } >/dev/null; then
16945   if test -s conftest.err; then
16946     ac_cpp_err=$ac_c_preproc_warn_flag
16947     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16948   else
16949     ac_cpp_err=
16950   fi
16951 else
16952   ac_cpp_err=yes
16953 fi
16954 if test -z "$ac_cpp_err"; then
16955   ac_header_preproc=yes
16956 else
16957   echo "$as_me: failed program was:" >&5
16958 sed 's/^/| /' conftest.$ac_ext >&5
16959
16960   ac_header_preproc=no
16961 fi
16962
16963 rm -f conftest.err conftest.$ac_ext
16964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16965 echo "${ECHO_T}$ac_header_preproc" >&6; }
16966
16967 # So?  What about this header?
16968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16969   yes:no: )
16970     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16971 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16972     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16974     ac_header_preproc=yes
16975     ;;
16976   no:yes:* )
16977     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16978 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16979     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16980 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16981     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16982 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16983     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16984 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16988 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16989
16990     ;;
16991 esac
16992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16995   echo $ECHO_N "(cached) $ECHO_C" >&6
16996 else
16997   eval "$as_ac_Header=\$ac_header_preproc"
16998 fi
16999 ac_res=`eval echo '${'$as_ac_Header'}'`
17000                { echo "$as_me:$LINENO: result: $ac_res" >&5
17001 echo "${ECHO_T}$ac_res" >&6; }
17002
17003 fi
17004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17005   cat >>confdefs.h <<_ACEOF
17006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17007 _ACEOF
17008
17009 fi
17010
17011 done
17012
17013
17014 # End of readline/conio stuff
17015 # -----------------------------------------------------------------------
17016
17017 # -----------------------------------------------------------------------
17018 #  Check for Python support
17019 #
17020 { echo "$as_me:$LINENO: checking for Python support" >&5
17021 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17022
17023 # Check whether --with-python was given.
17024 if test "${with_python+set}" = set; then
17025   withval=$with_python;
17026   PYTHON_INCDIR=
17027   PYTHON_LIBS=
17028   if test "$withval" != "no"; then
17029      if test "$withval" = "yes"; then
17030         for python_root in /usr /usr/local /usr/sfw; do
17031           for ver in python2.2 python2.3 python2.4 python2.5; do
17032              if test -f $python_root/include/${ver}/Python.h; then
17033                 PYTHON_INCDIR=-I$python_root/include/${ver}
17034                 if test -d $python_root/lib64/${ver}/config; then
17035                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17036                 else
17037                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17038                 fi
17039                 break
17040              fi
17041           done
17042         done
17043         if test x$PYTHON_INCDIR = x; then
17044           if test -f $prefix/include/Python.h; then
17045              PYTHON_INCDIR=-I$prefix/include
17046              if test -d $prefix/lib64/config; then
17047                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17048              else
17049                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17050              fi
17051           else
17052            { echo "$as_me:$LINENO: result: no" >&5
17053 echo "${ECHO_T}no" >&6; }
17054            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17055 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17056    { (exit 1); exit 1; }; }
17057           fi
17058         fi
17059      else
17060         if test -f $withval/Python.h; then
17061            PYTHON_INCDIR=-I$withval
17062            PYTHON_LIBS="-L$withval/config -lpython"
17063         elif test -f $withval/include/Python.h; then
17064            PYTHON_INCDIR=-I$withval/include
17065            if test -d $withval/lib64/config; then
17066               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17067            else
17068               PYTHON_LIBS="-L$withval/lib/config -lpython"
17069            fi
17070         elif test -f $withval/include/python/Python.h; then
17071            PYTHON_INCDIR=-I$withval/include/python
17072            if test -d $withval/lib64/python/config; then
17073               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17074            else
17075               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17076            fi
17077         else
17078            { echo "$as_me:$LINENO: result: no" >&5
17079 echo "${ECHO_T}no" >&6; }
17080            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17081 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17082    { (exit 1); exit 1; }; }
17083         fi
17084      fi
17085      cat >>confdefs.h <<\_ACEOF
17086 #define HAVE_PYTHON 1
17087 _ACEOF
17088
17089      { echo "$as_me:$LINENO: result: yes" >&5
17090 echo "${ECHO_T}yes" >&6; }
17091      support_python=yes
17092      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17093 echo "$as_me: checking for more Python libs" >&6;}
17094      saved_LIBS="$LIBS"; LIBS=
17095      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17096 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17097 if test "${ac_cv_search_shm_open+set}" = set; then
17098   echo $ECHO_N "(cached) $ECHO_C" >&6
17099 else
17100   ac_func_search_save_LIBS=$LIBS
17101 cat >conftest.$ac_ext <<_ACEOF
17102 /* confdefs.h.  */
17103 _ACEOF
17104 cat confdefs.h >>conftest.$ac_ext
17105 cat >>conftest.$ac_ext <<_ACEOF
17106 /* end confdefs.h.  */
17107
17108 /* Override any GCC internal prototype to avoid an error.
17109    Use char because int might match the return type of a GCC
17110    builtin and then its argument prototype would still apply.  */
17111 #ifdef __cplusplus
17112 extern "C"
17113 #endif
17114 char shm_open ();
17115 int
17116 main ()
17117 {
17118 return shm_open ();
17119   ;
17120   return 0;
17121 }
17122 _ACEOF
17123 for ac_lib in '' rt; do
17124   if test -z "$ac_lib"; then
17125     ac_res="none required"
17126   else
17127     ac_res=-l$ac_lib
17128     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17129   fi
17130   rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134   *) ac_try_echo=$ac_try;;
17135 esac
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137   (eval "$ac_link") 2>conftest.er1
17138   ac_status=$?
17139   grep -v '^ *+' conftest.er1 >conftest.err
17140   rm -f conftest.er1
17141   cat conftest.err >&5
17142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143   (exit $ac_status); } &&
17144          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17145   { (case "(($ac_try" in
17146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147   *) ac_try_echo=$ac_try;;
17148 esac
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150   (eval "$ac_try") 2>&5
17151   ac_status=$?
17152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153   (exit $ac_status); }; } &&
17154          { ac_try='test -s conftest$ac_exeext'
17155   { (case "(($ac_try" in
17156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157   *) ac_try_echo=$ac_try;;
17158 esac
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160   (eval "$ac_try") 2>&5
17161   ac_status=$?
17162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); }; }; then
17164   ac_cv_search_shm_open=$ac_res
17165 else
17166   echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17168
17169
17170 fi
17171
17172 rm -f core conftest.err conftest.$ac_objext \
17173       conftest$ac_exeext
17174   if test "${ac_cv_search_shm_open+set}" = set; then
17175   break
17176 fi
17177 done
17178 if test "${ac_cv_search_shm_open+set}" = set; then
17179   :
17180 else
17181   ac_cv_search_shm_open=no
17182 fi
17183 rm conftest.$ac_ext
17184 LIBS=$ac_func_search_save_LIBS
17185 fi
17186 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17187 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17188 ac_res=$ac_cv_search_shm_open
17189 if test "$ac_res" != no; then
17190   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17191
17192 fi
17193
17194
17195 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17196 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17197 if test "${ac_cv_lib_util_openpty+set}" = set; then
17198   echo $ECHO_N "(cached) $ECHO_C" >&6
17199 else
17200   ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lutil  $LIBS"
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h.  */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h.  */
17208
17209 /* Override any GCC internal prototype to avoid an error.
17210    Use char because int might match the return type of a GCC
17211    builtin and then its argument prototype would still apply.  */
17212 #ifdef __cplusplus
17213 extern "C"
17214 #endif
17215 char openpty ();
17216 int
17217 main ()
17218 {
17219 return openpty ();
17220   ;
17221   return 0;
17222 }
17223 _ACEOF
17224 rm -f conftest.$ac_objext conftest$ac_exeext
17225 if { (ac_try="$ac_link"
17226 case "(($ac_try" in
17227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228   *) ac_try_echo=$ac_try;;
17229 esac
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231   (eval "$ac_link") 2>conftest.er1
17232   ac_status=$?
17233   grep -v '^ *+' conftest.er1 >conftest.err
17234   rm -f conftest.er1
17235   cat conftest.err >&5
17236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237   (exit $ac_status); } &&
17238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239   { (case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_try") 2>&5
17245   ac_status=$?
17246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247   (exit $ac_status); }; } &&
17248          { ac_try='test -s conftest$ac_exeext'
17249   { (case "(($ac_try" in
17250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251   *) ac_try_echo=$ac_try;;
17252 esac
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254   (eval "$ac_try") 2>&5
17255   ac_status=$?
17256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257   (exit $ac_status); }; }; then
17258   ac_cv_lib_util_openpty=yes
17259 else
17260   echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17262
17263         ac_cv_lib_util_openpty=no
17264 fi
17265
17266 rm -f core conftest.err conftest.$ac_objext \
17267       conftest$ac_exeext conftest.$ac_ext
17268 LIBS=$ac_check_lib_save_LIBS
17269 fi
17270 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17271 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17272 if test $ac_cv_lib_util_openpty = yes; then
17273   cat >>confdefs.h <<_ACEOF
17274 #define HAVE_LIBUTIL 1
17275 _ACEOF
17276
17277   LIBS="-lutil $LIBS"
17278
17279 fi
17280
17281      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17282      LIBS="$saved_LIBS"
17283   else
17284      { echo "$as_me:$LINENO: result: no" >&5
17285 echo "${ECHO_T}no" >&6; }
17286   fi
17287
17288 else
17289
17290   { echo "$as_me:$LINENO: result: no" >&5
17291 echo "${ECHO_T}no" >&6; }
17292
17293 fi
17294
17295
17296
17297
17298 #
17299 # Find where sockets are (especially for Solaris)
17300 # Do this before the TCP Wrappers test since tcp wrappers
17301 # uses the socket library and some linkers are stupid.
17302 #
17303 { echo "$as_me:$LINENO: checking for socket" >&5
17304 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17305 if test "${ac_cv_func_socket+set}" = set; then
17306   echo $ECHO_N "(cached) $ECHO_C" >&6
17307 else
17308   cat >conftest.$ac_ext <<_ACEOF
17309 /* confdefs.h.  */
17310 _ACEOF
17311 cat confdefs.h >>conftest.$ac_ext
17312 cat >>conftest.$ac_ext <<_ACEOF
17313 /* end confdefs.h.  */
17314 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17316 #define socket innocuous_socket
17317
17318 /* System header to define __stub macros and hopefully few prototypes,
17319     which can conflict with char socket (); below.
17320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321     <limits.h> exists even on freestanding compilers.  */
17322
17323 #ifdef __STDC__
17324 # include <limits.h>
17325 #else
17326 # include <assert.h>
17327 #endif
17328
17329 #undef socket
17330
17331 /* Override any GCC internal prototype to avoid an error.
17332    Use char because int might match the return type of a GCC
17333    builtin and then its argument prototype would still apply.  */
17334 #ifdef __cplusplus
17335 extern "C"
17336 #endif
17337 char socket ();
17338 /* The GNU C library defines this for functions which it implements
17339     to always fail with ENOSYS.  Some functions are actually named
17340     something starting with __ and the normal name is an alias.  */
17341 #if defined __stub_socket || defined __stub___socket
17342 choke me
17343 #endif
17344
17345 int
17346 main ()
17347 {
17348 return socket ();
17349   ;
17350   return 0;
17351 }
17352 _ACEOF
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (ac_try="$ac_link"
17355 case "(($ac_try" in
17356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17357   *) ac_try_echo=$ac_try;;
17358 esac
17359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17360   (eval "$ac_link") 2>conftest.er1
17361   ac_status=$?
17362   grep -v '^ *+' conftest.er1 >conftest.err
17363   rm -f conftest.er1
17364   cat conftest.err >&5
17365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17366   (exit $ac_status); } &&
17367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17368   { (case "(($ac_try" in
17369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17370   *) ac_try_echo=$ac_try;;
17371 esac
17372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17373   (eval "$ac_try") 2>&5
17374   ac_status=$?
17375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376   (exit $ac_status); }; } &&
17377          { ac_try='test -s conftest$ac_exeext'
17378   { (case "(($ac_try" in
17379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17380   *) ac_try_echo=$ac_try;;
17381 esac
17382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17383   (eval "$ac_try") 2>&5
17384   ac_status=$?
17385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386   (exit $ac_status); }; }; then
17387   ac_cv_func_socket=yes
17388 else
17389   echo "$as_me: failed program was:" >&5
17390 sed 's/^/| /' conftest.$ac_ext >&5
17391
17392         ac_cv_func_socket=no
17393 fi
17394
17395 rm -f core conftest.err conftest.$ac_objext \
17396       conftest$ac_exeext conftest.$ac_ext
17397 fi
17398 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17399 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17400 if test $ac_cv_func_socket = yes; then
17401   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17402 echo "${ECHO_T}using libc's socket" >&6; }
17403 else
17404
17405 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17406 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17407 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-lxnet  $LIBS"
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418
17419 /* Override any GCC internal prototype to avoid an error.
17420    Use char because int might match the return type of a GCC
17421    builtin and then its argument prototype would still apply.  */
17422 #ifdef __cplusplus
17423 extern "C"
17424 #endif
17425 char socket ();
17426 int
17427 main ()
17428 {
17429 return socket ();
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_link") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } &&
17448          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17449   { (case "(($ac_try" in
17450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17451   *) ac_try_echo=$ac_try;;
17452 esac
17453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17454   (eval "$ac_try") 2>&5
17455   ac_status=$?
17456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); }; } &&
17458          { ac_try='test -s conftest$ac_exeext'
17459   { (case "(($ac_try" in
17460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461   *) ac_try_echo=$ac_try;;
17462 esac
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464   (eval "$ac_try") 2>&5
17465   ac_status=$?
17466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467   (exit $ac_status); }; }; then
17468   ac_cv_lib_xnet_socket=yes
17469 else
17470   echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17472
17473         ac_cv_lib_xnet_socket=no
17474 fi
17475
17476 rm -f core conftest.err conftest.$ac_objext \
17477       conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17479 fi
17480 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17481 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17482 if test $ac_cv_lib_xnet_socket = yes; then
17483   cat >>confdefs.h <<_ACEOF
17484 #define HAVE_LIBXNET 1
17485 _ACEOF
17486
17487   LIBS="-lxnet $LIBS"
17488
17489 fi
17490
17491
17492 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17493 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17494 if test "${ac_cv_lib_socket_socket+set}" = set; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   ac_check_lib_save_LIBS=$LIBS
17498 LIBS="-lsocket  $LIBS"
17499 cat >conftest.$ac_ext <<_ACEOF
17500 /* confdefs.h.  */
17501 _ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h.  */
17505
17506 /* Override any GCC internal prototype to avoid an error.
17507    Use char because int might match the return type of a GCC
17508    builtin and then its argument prototype would still apply.  */
17509 #ifdef __cplusplus
17510 extern "C"
17511 #endif
17512 char socket ();
17513 int
17514 main ()
17515 {
17516 return socket ();
17517   ;
17518   return 0;
17519 }
17520 _ACEOF
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525   *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528   (eval "$ac_link") 2>conftest.er1
17529   ac_status=$?
17530   grep -v '^ *+' conftest.er1 >conftest.err
17531   rm -f conftest.er1
17532   cat conftest.err >&5
17533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534   (exit $ac_status); } &&
17535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17536   { (case "(($ac_try" in
17537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17538   *) ac_try_echo=$ac_try;;
17539 esac
17540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17541   (eval "$ac_try") 2>&5
17542   ac_status=$?
17543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); }; } &&
17545          { ac_try='test -s conftest$ac_exeext'
17546   { (case "(($ac_try" in
17547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17548   *) ac_try_echo=$ac_try;;
17549 esac
17550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17551   (eval "$ac_try") 2>&5
17552   ac_status=$?
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); }; }; then
17555   ac_cv_lib_socket_socket=yes
17556 else
17557   echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17559
17560         ac_cv_lib_socket_socket=no
17561 fi
17562
17563 rm -f core conftest.err conftest.$ac_objext \
17564       conftest$ac_exeext conftest.$ac_ext
17565 LIBS=$ac_check_lib_save_LIBS
17566 fi
17567 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17568 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17569 if test $ac_cv_lib_socket_socket = yes; then
17570   cat >>confdefs.h <<_ACEOF
17571 #define HAVE_LIBSOCKET 1
17572 _ACEOF
17573
17574   LIBS="-lsocket $LIBS"
17575
17576 fi
17577
17578
17579 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17580 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17581 if test "${ac_cv_lib_inet_socket+set}" = set; then
17582   echo $ECHO_N "(cached) $ECHO_C" >&6
17583 else
17584   ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-linet  $LIBS"
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h.  */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h.  */
17592
17593 /* Override any GCC internal prototype to avoid an error.
17594    Use char because int might match the return type of a GCC
17595    builtin and then its argument prototype would still apply.  */
17596 #ifdef __cplusplus
17597 extern "C"
17598 #endif
17599 char socket ();
17600 int
17601 main ()
17602 {
17603 return socket ();
17604   ;
17605   return 0;
17606 }
17607 _ACEOF
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (ac_try="$ac_link"
17610 case "(($ac_try" in
17611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612   *) ac_try_echo=$ac_try;;
17613 esac
17614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17615   (eval "$ac_link") 2>conftest.er1
17616   ac_status=$?
17617   grep -v '^ *+' conftest.er1 >conftest.err
17618   rm -f conftest.er1
17619   cat conftest.err >&5
17620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17621   (exit $ac_status); } &&
17622          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17623   { (case "(($ac_try" in
17624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625   *) ac_try_echo=$ac_try;;
17626 esac
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628   (eval "$ac_try") 2>&5
17629   ac_status=$?
17630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631   (exit $ac_status); }; } &&
17632          { ac_try='test -s conftest$ac_exeext'
17633   { (case "(($ac_try" in
17634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17635   *) ac_try_echo=$ac_try;;
17636 esac
17637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17638   (eval "$ac_try") 2>&5
17639   ac_status=$?
17640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641   (exit $ac_status); }; }; then
17642   ac_cv_lib_inet_socket=yes
17643 else
17644   echo "$as_me: failed program was:" >&5
17645 sed 's/^/| /' conftest.$ac_ext >&5
17646
17647         ac_cv_lib_inet_socket=no
17648 fi
17649
17650 rm -f core conftest.err conftest.$ac_objext \
17651       conftest$ac_exeext conftest.$ac_ext
17652 LIBS=$ac_check_lib_save_LIBS
17653 fi
17654 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17655 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17656 if test $ac_cv_lib_inet_socket = yes; then
17657   cat >>confdefs.h <<_ACEOF
17658 #define HAVE_LIBINET 1
17659 _ACEOF
17660
17661   LIBS="-linet $LIBS"
17662
17663 fi
17664
17665 fi
17666
17667
17668
17669 # -----------------------------------------------------------
17670 # Check whether user wants TCP wrappers support (default off)
17671 # -----------------------------------------------------------
17672 TCPW_MSG="no"
17673 WRAPLIBS=""
17674
17675 # Check whether --with-tcp-wrappers was given.
17676 if test "${with_tcp_wrappers+set}" = set; then
17677   withval=$with_tcp_wrappers;
17678     if test "x$withval" != "xno" ; then
17679        saved_LIBS="$LIBS"
17680        LIBS="$saved_LIBS -lwrap"
17681        { echo "$as_me:$LINENO: checking for libwrap" >&5
17682 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17683        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17684 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17685 if test "${ac_cv_search_nanosleep+set}" = set; then
17686   echo $ECHO_N "(cached) $ECHO_C" >&6
17687 else
17688   ac_func_search_save_LIBS=$LIBS
17689 cat >conftest.$ac_ext <<_ACEOF
17690 /* confdefs.h.  */
17691 _ACEOF
17692 cat confdefs.h >>conftest.$ac_ext
17693 cat >>conftest.$ac_ext <<_ACEOF
17694 /* end confdefs.h.  */
17695
17696 /* Override any GCC internal prototype to avoid an error.
17697    Use char because int might match the return type of a GCC
17698    builtin and then its argument prototype would still apply.  */
17699 #ifdef __cplusplus
17700 extern "C"
17701 #endif
17702 char nanosleep ();
17703 int
17704 main ()
17705 {
17706 return nanosleep ();
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 for ac_lib in '' rt; do
17712   if test -z "$ac_lib"; then
17713     ac_res="none required"
17714   else
17715     ac_res=-l$ac_lib
17716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17717   fi
17718   rm -f conftest.$ac_objext conftest$ac_exeext
17719 if { (ac_try="$ac_link"
17720 case "(($ac_try" in
17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722   *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725   (eval "$ac_link") 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733   { (case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_try") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; } &&
17742          { ac_try='test -s conftest$ac_exeext'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   ac_cv_search_nanosleep=$ac_res
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757
17758 fi
17759
17760 rm -f core conftest.err conftest.$ac_objext \
17761       conftest$ac_exeext
17762   if test "${ac_cv_search_nanosleep+set}" = set; then
17763   break
17764 fi
17765 done
17766 if test "${ac_cv_search_nanosleep+set}" = set; then
17767   :
17768 else
17769   ac_cv_search_nanosleep=no
17770 fi
17771 rm conftest.$ac_ext
17772 LIBS=$ac_func_search_save_LIBS
17773 fi
17774 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17775 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17776 ac_res=$ac_cv_search_nanosleep
17777 if test "$ac_res" != no; then
17778   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17779
17780 fi
17781
17782        cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788  #include <sys/types.h>
17789             #include <tcpd.h>
17790              int deny_severity = 0;
17791              int allow_severity = 0;
17792              struct request_info *req;
17793 int
17794 main ()
17795 {
17796  hosts_access(req);
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext conftest$ac_exeext
17802 if { (ac_try="$ac_link"
17803 case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_link") 2>conftest.er1
17809   ac_status=$?
17810   grep -v '^ *+' conftest.er1 >conftest.err
17811   rm -f conftest.er1
17812   cat conftest.err >&5
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } &&
17815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816   { (case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_try") 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; } &&
17825          { ac_try='test -s conftest$ac_exeext'
17826   { (case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_try") 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; }; then
17835
17836             { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17838             cat >>confdefs.h <<\_ACEOF
17839 #define HAVE_LIBWRAP 1
17840 _ACEOF
17841
17842             TCPW_MSG="yes"
17843             LIBS="$saved_LIBS"
17844             WRAPLIBS="-lwrap"
17845
17846 else
17847   echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850
17851             LIBS="$saved_LIBS -lwrap -lnsl"
17852             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17853             cat >conftest.$ac_ext <<_ACEOF
17854 /* confdefs.h.  */
17855 _ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h.  */
17859  #include <sys/types.h>
17860                  #include <tcpd.h>
17861                  int deny_severity = 0;
17862                  int allow_severity = 0;
17863                  struct request_info *req;
17864 int
17865 main ()
17866 {
17867  hosts_access(req);
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext conftest$ac_exeext
17873 if { (ac_try="$ac_link"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17879   (eval "$ac_link") 2>conftest.er1
17880   ac_status=$?
17881   grep -v '^ *+' conftest.er1 >conftest.err
17882   rm -f conftest.er1
17883   cat conftest.err >&5
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); } &&
17886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17887   { (case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_try") 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; } &&
17896          { ac_try='test -s conftest$ac_exeext'
17897   { (case "(($ac_try" in
17898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899   *) ac_try_echo=$ac_try;;
17900 esac
17901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17902   (eval "$ac_try") 2>&5
17903   ac_status=$?
17904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905   (exit $ac_status); }; }; then
17906
17907                  { echo "$as_me:$LINENO: result: yes" >&5
17908 echo "${ECHO_T}yes" >&6; }
17909                  cat >>confdefs.h <<\_ACEOF
17910 #define HAVE_LIBWRAP 1
17911 _ACEOF
17912
17913                  TCPW_MSG="yes"
17914                  LIBS="$saved_LIBS"
17915                  WRAPLIBS="-lwrap"
17916
17917 else
17918   echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17922 echo "$as_me: error: *** libwrap missing" >&2;}
17923    { (exit 1); exit 1; }; }
17924
17925 fi
17926
17927 rm -f core conftest.err conftest.$ac_objext \
17928       conftest$ac_exeext conftest.$ac_ext
17929
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext \
17933       conftest$ac_exeext conftest.$ac_ext
17934     fi
17935
17936
17937 fi
17938
17939
17940 # -----------------------------------------------------------
17941 # Check whether OpenSSL is available
17942 # -----------------------------------------------------------
17943 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17944 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17945
17946 # Check whether --with-openssl was given.
17947 if test "${with_openssl+set}" = set; then
17948   withval=$with_openssl; with_openssl_directory=${withval}
17949 fi
17950
17951
17952 if test "x$with_openssl_directory" != "x"; then
17953         OPENSSL_LIBS="-lssl -lcrypto"
17954         OPENSSL_INC=""
17955
17956         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17957                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17958                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17959         fi
17960
17961         saved_LIBS="${LIBS}"
17962         saved_CFLAGS="${CFLAGS}"
17963         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17964         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17965
17966         cat >conftest.$ac_ext <<_ACEOF
17967 /* confdefs.h.  */
17968 _ACEOF
17969 cat confdefs.h >>conftest.$ac_ext
17970 cat >>conftest.$ac_ext <<_ACEOF
17971 /* end confdefs.h.  */
17972  #include <openssl/ssl.h>
17973 int
17974 main ()
17975 {
17976  CRYPTO_set_id_callback(NULL);
17977   ;
17978   return 0;
17979 }
17980 _ACEOF
17981 rm -f conftest.$ac_objext conftest$ac_exeext
17982 if { (ac_try="$ac_link"
17983 case "(($ac_try" in
17984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17985   *) ac_try_echo=$ac_try;;
17986 esac
17987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17988   (eval "$ac_link") 2>conftest.er1
17989   ac_status=$?
17990   grep -v '^ *+' conftest.er1 >conftest.err
17991   rm -f conftest.er1
17992   cat conftest.err >&5
17993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994   (exit $ac_status); } &&
17995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17996   { (case "(($ac_try" in
17997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998   *) ac_try_echo=$ac_try;;
17999 esac
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001   (eval "$ac_try") 2>&5
18002   ac_status=$?
18003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004   (exit $ac_status); }; } &&
18005          { ac_try='test -s conftest$ac_exeext'
18006   { (case "(($ac_try" in
18007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18008   *) ac_try_echo=$ac_try;;
18009 esac
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011   (eval "$ac_try") 2>&5
18012   ac_status=$?
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); }; }; then
18015
18016                         support_tls="yes"
18017                         support_crypto="yes"
18018
18019 else
18020   echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023          support_tls="no"
18024
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext \
18028       conftest$ac_exeext conftest.$ac_ext
18029
18030         cat >conftest.$ac_ext <<_ACEOF
18031 /* confdefs.h.  */
18032 _ACEOF
18033 cat confdefs.h >>conftest.$ac_ext
18034 cat >>conftest.$ac_ext <<_ACEOF
18035 /* end confdefs.h.  */
18036  #include <openssl/evp.h>
18037 int
18038 main ()
18039 {
18040  EVP_sha512();
18041   ;
18042   return 0;
18043 }
18044 _ACEOF
18045 rm -f conftest.$ac_objext conftest$ac_exeext
18046 if { (ac_try="$ac_link"
18047 case "(($ac_try" in
18048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18049   *) ac_try_echo=$ac_try;;
18050 esac
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052   (eval "$ac_link") 2>conftest.er1
18053   ac_status=$?
18054   grep -v '^ *+' conftest.er1 >conftest.err
18055   rm -f conftest.er1
18056   cat conftest.err >&5
18057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058   (exit $ac_status); } &&
18059          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060   { (case "(($ac_try" in
18061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18062   *) ac_try_echo=$ac_try;;
18063 esac
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065   (eval "$ac_try") 2>&5
18066   ac_status=$?
18067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068   (exit $ac_status); }; } &&
18069          { ac_try='test -s conftest$ac_exeext'
18070   { (case "(($ac_try" in
18071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18072   *) ac_try_echo=$ac_try;;
18073 esac
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075   (eval "$ac_try") 2>&5
18076   ac_status=$?
18077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078   (exit $ac_status); }; }; then
18079    ac_cv_openssl_sha2="yes"
18080 else
18081   echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084          ac_cv_openssl_sha2="no"
18085
18086 fi
18087
18088 rm -f core conftest.err conftest.$ac_objext \
18089       conftest$ac_exeext conftest.$ac_ext
18090
18091         LIBS="${saved_LIBS}"
18092         CFLAGS="${saved_CFLAGS}"
18093
18094         if test "$support_tls" = "yes"; then
18095
18096 cat >>confdefs.h <<\_ACEOF
18097 #define HAVE_OPENSSL 1
18098 _ACEOF
18099
18100
18101 cat >>confdefs.h <<\_ACEOF
18102 #define HAVE_TLS 1
18103 _ACEOF
18104
18105
18106 cat >>confdefs.h <<\_ACEOF
18107 #define HAVE_CRYPTO 1
18108 _ACEOF
18109
18110         fi
18111
18112         if test "$ac_cv_openssl_sha2" = "yes"; then
18113
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_SHA2 1
18116 _ACEOF
18117
18118         fi
18119 else
18120         support_tls="no"
18121         support_crypto="no"
18122         OPENSSL_LIBS=""
18123         OPENSSL_INC=""
18124 fi
18125
18126 { echo "$as_me:$LINENO: result: $support_tls" >&5
18127 echo "${ECHO_T}$support_tls" >&6; }
18128
18129
18130
18131
18132 # -----------------------------------------------------------
18133 # Python and OpenSSL are using dlopen
18134 # -----------------------------------------------------------
18135
18136 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18137    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18138 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18139 if test "${ac_cv_search_dlopen+set}" = set; then
18140   echo $ECHO_N "(cached) $ECHO_C" >&6
18141 else
18142   ac_func_search_save_LIBS=$LIBS
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h.  */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h.  */
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151    Use char because int might match the return type of a GCC
18152    builtin and then its argument prototype would still apply.  */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char dlopen ();
18157 int
18158 main ()
18159 {
18160 return dlopen ();
18161   ;
18162   return 0;
18163 }
18164 _ACEOF
18165 for ac_lib in '' dl; do
18166   if test -z "$ac_lib"; then
18167     ac_res="none required"
18168   else
18169     ac_res=-l$ac_lib
18170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18171   fi
18172   rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176   *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179   (eval "$ac_link") 2>conftest.er1
18180   ac_status=$?
18181   grep -v '^ *+' conftest.er1 >conftest.err
18182   rm -f conftest.er1
18183   cat conftest.err >&5
18184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185   (exit $ac_status); } &&
18186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18187   { (case "(($ac_try" in
18188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18189   *) ac_try_echo=$ac_try;;
18190 esac
18191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18192   (eval "$ac_try") 2>&5
18193   ac_status=$?
18194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195   (exit $ac_status); }; } &&
18196          { ac_try='test -s conftest$ac_exeext'
18197   { (case "(($ac_try" in
18198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18199   *) ac_try_echo=$ac_try;;
18200 esac
18201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18202   (eval "$ac_try") 2>&5
18203   ac_status=$?
18204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18205   (exit $ac_status); }; }; then
18206   ac_cv_search_dlopen=$ac_res
18207 else
18208   echo "$as_me: failed program was:" >&5
18209 sed 's/^/| /' conftest.$ac_ext >&5
18210
18211
18212 fi
18213
18214 rm -f core conftest.err conftest.$ac_objext \
18215       conftest$ac_exeext
18216   if test "${ac_cv_search_dlopen+set}" = set; then
18217   break
18218 fi
18219 done
18220 if test "${ac_cv_search_dlopen+set}" = set; then
18221   :
18222 else
18223   ac_cv_search_dlopen=no
18224 fi
18225 rm conftest.$ac_ext
18226 LIBS=$ac_func_search_save_LIBS
18227 fi
18228 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18229 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18230 ac_res=$ac_cv_search_dlopen
18231 if test "$ac_res" != no; then
18232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18233
18234 fi
18235
18236 fi
18237
18238 # ------------------------------------------
18239 # Where to place working dir
18240 # ------------------------------------------
18241 working_dir=`eval echo ${prefix}/var/bacula/working`
18242
18243 # Check whether --with-working-dir was given.
18244 if test "${with_working_dir+set}" = set; then
18245   withval=$with_working_dir;
18246        if test "x$withval" != "xno" ; then
18247               working_dir=$withval
18248        fi
18249
18250
18251 fi
18252
18253
18254
18255
18256
18257 # ------------------------------------------
18258 # Where to place scriptdir (script files)
18259 # ------------------------------------------
18260 scriptdir=`eval echo ${sysconfdir}`
18261
18262 # Check whether --with-scriptdir was given.
18263 if test "${with_scriptdir+set}" = set; then
18264   withval=$with_scriptdir;
18265        if test "x$withval" != "xno" ; then
18266               scriptdir=$withval
18267        fi
18268
18269
18270 fi
18271
18272
18273
18274
18275
18276 # ------------------------------------------
18277 # Where to send dump email
18278 # ------------------------------------------
18279 dump_email=root@localhost
18280
18281 # Check whether --with-dump-email was given.
18282 if test "${with_dump_email+set}" = set; then
18283   withval=$with_dump_email;
18284        if test "x$withval" != "xno" ; then
18285               dump_email=$withval
18286        fi
18287
18288
18289 fi
18290
18291
18292
18293
18294 # ------------------------------------------
18295 # Where to send job email
18296 # ------------------------------------------
18297 job_email=root@localhost
18298
18299 # Check whether --with-job-email was given.
18300 if test "${with_job_email+set}" = set; then
18301   withval=$with_job_email;
18302        if test "x$withval" != "xno" ; then
18303               job_email=$withval
18304        fi
18305
18306
18307 fi
18308
18309
18310
18311
18312 # ------------------------------------------
18313 # Where to find smtp host
18314 # ------------------------------------------
18315 smtp_host=localhost
18316
18317 # Check whether --with-smtp_host was given.
18318 if test "${with_smtp_host+set}" = set; then
18319   withval=$with_smtp_host;
18320        if test "x$withval" != "xno" ; then
18321               smtp_host=$withval
18322        fi
18323
18324
18325 fi
18326
18327
18328
18329
18330
18331 # ------------------------------------
18332 # Where to place pid files
18333 # ------------------------------------
18334 piddir=/var/run
18335
18336 # Check whether --with-pid-dir was given.
18337 if test "${with_pid_dir+set}" = set; then
18338   withval=$with_pid_dir;
18339         if test "x$withval" != "xno" ; then
18340             piddir=$withval
18341         fi
18342
18343
18344 fi
18345
18346
18347 cat >>confdefs.h <<_ACEOF
18348 #define _PATH_BACULA_PIDDIR "$piddir"
18349 _ACEOF
18350
18351
18352
18353
18354 # ------------------------------------
18355 # Where to place subsys "lock file"
18356 # ------------------------------------
18357 subsysdir=/var/run/subsys
18358
18359 # Check whether --with-subsys-dir was given.
18360 if test "${with_subsys_dir+set}" = set; then
18361   withval=$with_subsys_dir;
18362         if test "x$withval" != "xno" ; then
18363             subsysdir=$withval
18364         fi
18365
18366
18367 fi
18368
18369
18370
18371
18372
18373
18374 # ------------------------------------
18375 # Where to start assigning ports
18376 # ------------------------------------
18377 baseport=9101
18378
18379 # Check whether --with-baseport was given.
18380 if test "${with_baseport+set}" = set; then
18381   withval=$with_baseport;
18382         if test "x$withval" != "xno" ; then
18383              baseport=$withval
18384         fi
18385
18386
18387 fi
18388
18389
18390
18391 dir_port=`expr $baseport`
18392 fd_port=`expr $baseport + 1`
18393 sd_port=`expr $fd_port + 1`
18394
18395
18396
18397
18398
18399
18400 # ------------------------------------------
18401 # Generate passwords
18402 # ------------------------------------------
18403 dir_password=
18404
18405 # Check whether --with-dir-password was given.
18406 if test "${with_dir_password+set}" = set; then
18407   withval=$with_dir_password;
18408        if test "x$withval" != "xno" ; then
18409            dir_password=$withval
18410        fi
18411
18412
18413 fi
18414
18415
18416 if test "x$dir_password" = "x" ; then
18417    if test "x$OPENSSL" = "xnone" ; then
18418       key=`autoconf/randpass 33`
18419    else
18420       key=`openssl rand -base64 33`
18421    fi
18422    dir_password=$key
18423 fi
18424
18425 fd_password=
18426
18427 # Check whether --with-fd-password was given.
18428 if test "${with_fd_password+set}" = set; then
18429   withval=$with_fd_password;
18430        if test "x$withval" != "xno" ; then
18431            fd_password=$withval
18432        fi
18433
18434
18435 fi
18436
18437
18438 if test "x$fd_password" = "x" ; then
18439    if test "x$OPENSSL" = "xnone" ; then
18440       key=`autoconf/randpass 37`
18441    else
18442       key=`openssl rand -base64 33`
18443    fi
18444    fd_password=$key
18445 fi
18446
18447 sd_password=
18448
18449 # Check whether --with-sd-password was given.
18450 if test "${with_sd_password+set}" = set; then
18451   withval=$with_sd_password;
18452        if test "x$withval" != "xno" ; then
18453            sd_password=$withval
18454        fi
18455
18456
18457 fi
18458
18459
18460 if test "x$sd_password" = "x" ; then
18461    if test "x$OPENSSL" = "xnone" ; then
18462       key=`autoconf/randpass 41`
18463    else
18464       key=`openssl rand -base64 33`
18465    fi
18466    sd_password=$key
18467 fi
18468
18469 mon_dir_password=
18470
18471 # Check whether --with-mon-dir-password was given.
18472 if test "${with_mon_dir_password+set}" = set; then
18473   withval=$with_mon_dir_password;
18474        if test "x$withval" != "xno" ; then
18475            mon_dir_password=$withval
18476        fi
18477
18478
18479 fi
18480
18481
18482 if test "x$mon_dir_password" = "x" ; then
18483    if test "x$OPENSSL" = "xnone" ; then
18484       key=`autoconf/randpass 33`
18485    else
18486       key=`openssl rand -base64 33`
18487    fi
18488    mon_dir_password=$key
18489 fi
18490
18491 mon_fd_password=
18492
18493 # Check whether --with-mon-fd-password was given.
18494 if test "${with_mon_fd_password+set}" = set; then
18495   withval=$with_mon_fd_password;
18496        if test "x$withval" != "xno" ; then
18497            mon_fd_password=$withval
18498        fi
18499
18500
18501 fi
18502
18503
18504 if test "x$mon_fd_password" = "x" ; then
18505    if test "x$OPENSSL" = "xnone" ; then
18506       key=`autoconf/randpass 37`
18507    else
18508       key=`openssl rand -base64 33`
18509    fi
18510    mon_fd_password=$key
18511 fi
18512
18513 mon_sd_password=
18514
18515 # Check whether --with-mon-sd-password was given.
18516 if test "${with_mon_sd_password+set}" = set; then
18517   withval=$with_mon_sd_password;
18518        if test "x$withval" != "xno" ; then
18519            mon_sd_password=$withval
18520        fi
18521
18522
18523 fi
18524
18525
18526 if test "x$mon_sd_password" = "x" ; then
18527    if test "x$OPENSSL" = "xnone" ; then
18528       key=`autoconf/randpass 41`
18529    else
18530       key=`openssl rand -base64 33`
18531    fi
18532    mon_sd_password=$key
18533 fi
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543 #
18544 # Handle users and groups for each daemon
18545 #
18546 dir_user=
18547
18548 # Check whether --with-dir_user was given.
18549 if test "${with_dir_user+set}" = set; then
18550   withval=$with_dir_user;
18551         if test "x$withval" != "x" ; then
18552              dir_user=$withval
18553         fi
18554
18555
18556 fi
18557
18558
18559 dir_group=
18560
18561 # Check whether --with-dir_group was given.
18562 if test "${with_dir_group+set}" = set; then
18563   withval=$with_dir_group;
18564         if test "x$withval" != "x" ; then
18565              dir_group=$withval
18566         fi
18567
18568
18569 fi
18570
18571
18572 sd_user=
18573
18574 # Check whether --with-sd_user was given.
18575 if test "${with_sd_user+set}" = set; then
18576   withval=$with_sd_user;
18577         if test "x$withval" != "x" ; then
18578              sd_user=$withval
18579         fi
18580
18581
18582 fi
18583
18584
18585 sd_group=
18586
18587 # Check whether --with-sd_group was given.
18588 if test "${with_sd_group+set}" = set; then
18589   withval=$with_sd_group;
18590         if test "x$withval" != "x" ; then
18591              sd_group=$withval
18592         fi
18593
18594
18595 fi
18596
18597
18598 fd_user=
18599
18600 # Check whether --with-fd_user was given.
18601 if test "${with_fd_user+set}" = set; then
18602   withval=$with_fd_user;
18603         if test "x$withval" != "x" ; then
18604              fd_user=$withval
18605         fi
18606
18607
18608 fi
18609
18610
18611 fd_group=
18612
18613 # Check whether --with-fd_group was given.
18614 if test "${with_fd_group+set}" = set; then
18615   withval=$with_fd_group;
18616         if test "x$withval" != "x" ; then
18617              fd_group=$withval
18618         fi
18619
18620
18621 fi
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634 #
18635 # allow setting default executable permissions
18636 #
18637 SBINPERM=0754
18638
18639 # Check whether --with-sbin-perm was given.
18640 if test "${with_sbin_perm+set}" = set; then
18641   withval=$with_sbin_perm;
18642         if test "x$withval" != "x" ; then
18643             SBINPERM=$withval
18644         fi
18645
18646
18647 fi
18648
18649
18650
18651
18652 # ------------------------------------------------
18653 # Bacula check for various SQL database engines
18654 # ------------------------------------------------
18655
18656 db_found=no
18657 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18658 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18659
18660 # Check whether --with-postgresql was given.
18661 if test "${with_postgresql+set}" = set; then
18662   withval=$with_postgresql;
18663   if test "$withval" != "no"; then
18664       if test "$db_found" = "yes"; then
18665           { echo "$as_me:$LINENO: result: error" >&5
18666 echo "${ECHO_T}error" >&6; }
18667           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18668 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18669    { (exit 1); exit 1; }; };
18670       fi
18671       if test "$withval" = "yes"; then
18672           PG_CONFIG=`which pg_config`
18673           if test -n "$PG_CONFIG";then
18674               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18675               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18676               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18677           elif test -f /usr/local/include/libpq-fe.h; then
18678               POSTGRESQL_INCDIR=/usr/local/include
18679               if test -d /usr/local/lib64; then
18680                  POSTGRESQL_LIBDIR=/usr/local/lib64
18681               else
18682                  POSTGRESQL_LIBDIR=/usr/local/lib
18683               fi
18684               POSTGRESQL_BINDIR=/usr/local/bin
18685           elif test -f /usr/include/libpq-fe.h; then
18686               POSTGRESQL_INCDIR=/usr/include
18687               if test -d /usr/lib64; then
18688                  POSTGRESQL_LIBDIR=/usr/lib64
18689               else
18690                  POSTGRESQL_LIBDIR=/usr/lib
18691               fi
18692               POSTGRESQL_BINDIR=/usr/bin
18693           elif test -f /usr/include/pgsql/libpq-fe.h; then
18694               POSTGRESQL_INCDIR=/usr/include/pgsql
18695               if test -d /usr/lib64/pgsql; then
18696                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18697               else
18698                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18699               fi
18700               POSTGRESQL_BINDIR=/usr/bin
18701           elif test -f /usr/include/postgresql/libpq-fe.h; then
18702               POSTGRESQL_INCDIR=/usr/include/postgresql
18703               if test -d /usr/lib64/postgresql; then
18704                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18705               else
18706                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18707               fi
18708               POSTGRESQL_BINDIR=/usr/bin
18709           else
18710               { echo "$as_me:$LINENO: result: no" >&5
18711 echo "${ECHO_T}no" >&6; }
18712               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18713 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18714    { (exit 1); exit 1; }; }
18715           fi
18716       elif test -f $withval/include/libpq-fe.h; then
18717           POSTGRESQL_INCDIR=$withval/include
18718           POSTGRESQL_LIBDIR=$withval/lib
18719           POSTGRESQL_BINDIR=$withval/bin
18720       elif test -f $withval/include/postgresql/libpq-fe.h; then
18721           POSTGRESQL_INCDIR=$withval/include/postgresql
18722      if test -d $withval/lib64; then
18723          POSTGRESQL_LIBDIR=$withval/lib64
18724      else
18725          POSTGRESQL_LIBDIR=$withval/lib
18726      fi
18727           POSTGRESQL_BINDIR=$withval/bin
18728       else
18729           { echo "$as_me:$LINENO: result: no" >&5
18730 echo "${ECHO_T}no" >&6; }
18731           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18732 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18733    { (exit 1); exit 1; }; }
18734       fi
18735       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18736       { echo "$as_me:$LINENO: checking for crypt" >&5
18737 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18738 if test "${ac_cv_func_crypt+set}" = set; then
18739   echo $ECHO_N "(cached) $ECHO_C" >&6
18740 else
18741   cat >conftest.$ac_ext <<_ACEOF
18742 /* confdefs.h.  */
18743 _ACEOF
18744 cat confdefs.h >>conftest.$ac_ext
18745 cat >>conftest.$ac_ext <<_ACEOF
18746 /* end confdefs.h.  */
18747 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18748    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18749 #define crypt innocuous_crypt
18750
18751 /* System header to define __stub macros and hopefully few prototypes,
18752     which can conflict with char crypt (); below.
18753     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18754     <limits.h> exists even on freestanding compilers.  */
18755
18756 #ifdef __STDC__
18757 # include <limits.h>
18758 #else
18759 # include <assert.h>
18760 #endif
18761
18762 #undef crypt
18763
18764 /* Override any GCC internal prototype to avoid an error.
18765    Use char because int might match the return type of a GCC
18766    builtin and then its argument prototype would still apply.  */
18767 #ifdef __cplusplus
18768 extern "C"
18769 #endif
18770 char crypt ();
18771 /* The GNU C library defines this for functions which it implements
18772     to always fail with ENOSYS.  Some functions are actually named
18773     something starting with __ and the normal name is an alias.  */
18774 #if defined __stub_crypt || defined __stub___crypt
18775 choke me
18776 #endif
18777
18778 int
18779 main ()
18780 {
18781 return crypt ();
18782   ;
18783   return 0;
18784 }
18785 _ACEOF
18786 rm -f conftest.$ac_objext conftest$ac_exeext
18787 if { (ac_try="$ac_link"
18788 case "(($ac_try" in
18789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18790   *) ac_try_echo=$ac_try;;
18791 esac
18792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18793   (eval "$ac_link") 2>conftest.er1
18794   ac_status=$?
18795   grep -v '^ *+' conftest.er1 >conftest.err
18796   rm -f conftest.er1
18797   cat conftest.err >&5
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); } &&
18800          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18801   { (case "(($ac_try" in
18802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18803   *) ac_try_echo=$ac_try;;
18804 esac
18805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18806   (eval "$ac_try") 2>&5
18807   ac_status=$?
18808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18809   (exit $ac_status); }; } &&
18810          { ac_try='test -s conftest$ac_exeext'
18811   { (case "(($ac_try" in
18812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18813   *) ac_try_echo=$ac_try;;
18814 esac
18815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18816   (eval "$ac_try") 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; }; then
18820   ac_cv_func_crypt=yes
18821 else
18822   echo "$as_me: failed program was:" >&5
18823 sed 's/^/| /' conftest.$ac_ext >&5
18824
18825         ac_cv_func_crypt=no
18826 fi
18827
18828 rm -f core conftest.err conftest.$ac_objext \
18829       conftest$ac_exeext conftest.$ac_ext
18830 fi
18831 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18832 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18833 if test $ac_cv_func_crypt = yes; then
18834   :
18835 else
18836   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18837 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18838 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18839   echo $ECHO_N "(cached) $ECHO_C" >&6
18840 else
18841   ac_check_lib_save_LIBS=$LIBS
18842 LIBS="-lcrypt  $LIBS"
18843 cat >conftest.$ac_ext <<_ACEOF
18844 /* confdefs.h.  */
18845 _ACEOF
18846 cat confdefs.h >>conftest.$ac_ext
18847 cat >>conftest.$ac_ext <<_ACEOF
18848 /* end confdefs.h.  */
18849
18850 /* Override any GCC internal prototype to avoid an error.
18851    Use char because int might match the return type of a GCC
18852    builtin and then its argument prototype would still apply.  */
18853 #ifdef __cplusplus
18854 extern "C"
18855 #endif
18856 char crypt ();
18857 int
18858 main ()
18859 {
18860 return crypt ();
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_link") 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } &&
18879          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18880   { (case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_try") 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); }; } &&
18889          { ac_try='test -s conftest$ac_exeext'
18890   { (case "(($ac_try" in
18891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892   *) ac_try_echo=$ac_try;;
18893 esac
18894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18895   (eval "$ac_try") 2>&5
18896   ac_status=$?
18897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898   (exit $ac_status); }; }; then
18899   ac_cv_lib_crypt_crypt=yes
18900 else
18901   echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904         ac_cv_lib_crypt_crypt=no
18905 fi
18906
18907 rm -f core conftest.err conftest.$ac_objext \
18908       conftest$ac_exeext conftest.$ac_ext
18909 LIBS=$ac_check_lib_save_LIBS
18910 fi
18911 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
18912 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
18913 if test $ac_cv_lib_crypt_crypt = yes; then
18914   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
18915 fi
18916
18917 fi
18918
18919       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
18920       SQL_LFLAGS=$POSTGRESQL_LFLAGS
18921       SQL_BINDIR=$POSTGRESQL_BINDIR
18922       cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_POSTGRESQL 1
18924 _ACEOF
18925
18926       { echo "$as_me:$LINENO: result: yes" >&5
18927 echo "${ECHO_T}yes" >&6; }
18928       db_found=yes
18929       support_postgresql=yes
18930       db_name=PostgreSQL
18931       DB_NAME=postgresql
18932   else
18933       { echo "$as_me:$LINENO: result: no" >&5
18934 echo "${ECHO_T}no" >&6; }
18935   fi
18936
18937 else
18938
18939   { echo "$as_me:$LINENO: result: no" >&5
18940 echo "${ECHO_T}no" >&6; }
18941
18942 fi
18943
18944
18945
18946
18947
18948
18949
18950
18951 db_found=no
18952 { echo "$as_me:$LINENO: checking for MySQL support" >&5
18953 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
18954
18955 # Check whether --with-mysql was given.
18956 if test "${with_mysql+set}" = set; then
18957   withval=$with_mysql;
18958   if test "$withval" != "no"; then
18959         if test "$withval" = "yes"; then
18960            if test -f /usr/local/mysql/include/mysql/mysql.h; then
18961                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
18962                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient.a; then
18963                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
18964                    else
18965                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
18966                    fi
18967                    MYSQL_BINDIR=/usr/local/mysql/bin
18968            elif test -f /usr/include/mysql/mysql.h; then
18969                    MYSQL_INCDIR=/usr/include/mysql
18970                    if test -f /usr/lib64/mysql/libmysqlclient.a; then
18971                            MYSQL_LIBDIR=/usr/lib64/mysql
18972                    else
18973                            MYSQL_LIBDIR=/usr/lib/mysql
18974                    fi
18975                    MYSQL_BINDIR=/usr/bin
18976            elif test -f /usr/include/mysql.h; then
18977                    MYSQL_INCDIR=/usr/include
18978                    if test -f /usr/lib64/libmysqlclient.a; then
18979                            MYSQL_LIBDIR=/usr/lib64
18980                    else
18981                            MYSQL_LIBDIR=/usr/lib
18982                    fi
18983                    MYSQL_BINDIR=/usr/bin
18984            elif test -f /usr/local/include/mysql/mysql.h; then
18985                    MYSQL_INCDIR=/usr/local/include/mysql
18986                    if test -f /usr/local/lib64/mysql/libmysqlclient.a; then
18987                            MYSQL_LIBDIR=/usr/local/lib64/mysql
18988                    else
18989                            MYSQL_LIBDIR=/usr/local/lib/mysql
18990                    fi
18991                    MYSQL_BINDIR=/usr/local/bin
18992            elif test -f /usr/local/include/mysql.h; then
18993                    MYSQL_INCDIR=/usr/local/include
18994                    if test -f /usr/local/lib64/libmysqlclient.a; then
18995                            MYSQL_LIBDIR=/usr/local/lib64
18996                    else
18997                            MYSQL_LIBDIR=/usr/local/lib
18998                    fi
18999                    MYSQL_BINDIR=/usr/local/bin
19000            else
19001               { echo "$as_me:$LINENO: result: no" >&5
19002 echo "${ECHO_T}no" >&6; }
19003               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19004 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19005    { (exit 1); exit 1; }; }
19006            fi
19007         else
19008            if test -f $withval/include/mysql/mysql.h; then
19009               MYSQL_INCDIR=$withval/include/mysql
19010               if test -f $withval/lib64/mysql/libmysqlclient.a; then
19011                  MYSQL_LIBDIR=$withval/lib64/mysql
19012               else
19013                  MYSQL_LIBDIR=$withval/lib/mysql
19014                  # Solaris ...
19015                  if test -f $withval/lib/libmysqlclient.so; then
19016                     MYSQL_LIBDIR=$withval/lib
19017                  fi
19018               fi
19019               MYSQL_BINDIR=$withval/bin
19020            elif test -f $withval/include/mysql.h; then
19021               MYSQL_INCDIR=$withval/include
19022               if test -f "$withval/lib64/libmysqlclient.a"; then
19023                  MYSQL_LIBDIR=$withval/lib64
19024               else
19025                  MYSQL_LIBDIR=$withval/lib
19026               fi
19027               MYSQL_BINDIR=$withval/bin
19028            else
19029               { echo "$as_me:$LINENO: result: no" >&5
19030 echo "${ECHO_T}no" >&6; }
19031               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19032 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19033    { (exit 1); exit 1; }; }
19034            fi
19035         fi
19036     SQL_INCLUDE=-I$MYSQL_INCDIR
19037     if test -f "$MYSQL_LIBDIR/libmysqlclient_r.a"; then
19038        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19039        cat >>confdefs.h <<\_ACEOF
19040 #define HAVE_THREAD_SAFE_MYSQL 1
19041 _ACEOF
19042
19043     else
19044        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
19045     fi
19046     SQL_BINDIR=$MYSQL_BINDIR
19047
19048     cat >>confdefs.h <<\_ACEOF
19049 #define HAVE_MYSQL 1
19050 _ACEOF
19051
19052     { echo "$as_me:$LINENO: result: yes" >&5
19053 echo "${ECHO_T}yes" >&6; }
19054     db_found=yes
19055     support_mysql=yes
19056     db_name=MySQL
19057     DB_NAME=mysql
19058
19059   else
19060         { echo "$as_me:$LINENO: result: no" >&5
19061 echo "${ECHO_T}no" >&6; }
19062   fi
19063
19064
19065 fi
19066
19067
19068
19069 # Check whether --with-embedded-mysql was given.
19070 if test "${with_embedded_mysql+set}" = set; then
19071   withval=$with_embedded_mysql;
19072   if test "$withval" != "no"; then
19073         if test "$withval" = "yes"; then
19074                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19075                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19076                         if test -d /usr/local/mysql/lib64/mysql; then
19077                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19078                         else
19079                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19080                         fi
19081                         MYSQL_BINDIR=/usr/local/mysql/bin
19082                 elif test -f /usr/include/mysql/mysql.h; then
19083                         MYSQL_INCDIR=/usr/include/mysql
19084                         if test -d /usr/lib64/mysql; then
19085                                 MYSQL_LIBDIR=/usr/lib64/mysql
19086                         else
19087                                 MYSQL_LIBDIR=/usr/lib/mysql
19088                         fi
19089                         MYSQL_BINDIR=/usr/bin
19090                 elif test -f /usr/include/mysql.h; then
19091                         MYSQL_INCDIR=/usr/include
19092                         if test -d /usr/lib64; then
19093                                 MYSQL_LIBDIR=/usr/lib64
19094                         else
19095                                 MYSQL_LIBDIR=/usr/lib
19096                         fi
19097                         MYSQL_BINDIR=/usr/bin
19098                 elif test -f /usr/local/include/mysql/mysql.h; then
19099                         MYSQL_INCDIR=/usr/local/include/mysql
19100                         if test -d /usr/local/lib64/mysql; then
19101                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19102                         else
19103                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19104                         fi
19105                         MYSQL_BINDIR=/usr/local/bin
19106                 elif test -f /usr/local/include/mysql.h; then
19107                         MYSQL_INCDIR=/usr/local/include
19108                         if test -d /usr/local/lib64; then
19109                                 MYSQL_LIBDIR=/usr/local/lib64
19110                         else
19111                                 MYSQL_LIBDIR=/usr/local/lib
19112                         fi
19113                         MYSQL_BINDIR=/usr/local/bin
19114                 else
19115                    { echo "$as_me:$LINENO: result: no" >&5
19116 echo "${ECHO_T}no" >&6; }
19117                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19118 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19119    { (exit 1); exit 1; }; }
19120                 fi
19121         else
19122                 if test -f $withval/include/mysql/mysql.h; then
19123                         MYSQL_INCDIR=$withval/include/mysql
19124                         if test -d $withval/lib64/mysql; then
19125                                 MYSQL_LIBDIR=$withval/lib64/mysql
19126                         else
19127                                 MYSQL_LIBDIR=$withval/lib/mysql
19128                         fi
19129                         MYSQL_BINDIR=$withval/bin
19130                 elif test -f $withval/include/mysql.h; then
19131                         MYSQL_INCDIR=$withval/include
19132                         if test -d $withval/lib64; then
19133                                 MYSQL_LIBDIR=$withval/lib64
19134                         else
19135                                 MYSQL_LIBDIR=$withval/lib
19136                         fi
19137                         MYSQL_BINDIR=$withval/bin
19138                 else
19139                    { echo "$as_me:$LINENO: result: no" >&5
19140 echo "${ECHO_T}no" >&6; }
19141                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19142 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19143    { (exit 1); exit 1; }; }
19144                 fi
19145         fi
19146     SQL_INCLUDE=-I$MYSQL_INCDIR
19147     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19148     SQL_BINDIR=$MYSQL_BINDIR
19149
19150     cat >>confdefs.h <<\_ACEOF
19151 #define HAVE_MYSQL 1
19152 _ACEOF
19153
19154     cat >>confdefs.h <<\_ACEOF
19155 #define HAVE_EMBEDDED_MYSQL 1
19156 _ACEOF
19157
19158     { echo "$as_me:$LINENO: result: yes" >&5
19159 echo "${ECHO_T}yes" >&6; }
19160     db_found=yes
19161     support_mysql=yes
19162     db_name=MySQL
19163     DB_NAME=mysql
19164
19165   else
19166         { echo "$as_me:$LINENO: result: no" >&5
19167 echo "${ECHO_T}no" >&6; }
19168   fi
19169
19170
19171 fi
19172
19173
19174
19175
19176
19177
19178
19179
19180
19181
19182 db_found=no
19183 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19184 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19185
19186 # Check whether --with-sqlite3 was given.
19187 if test "${with_sqlite3+set}" = set; then
19188   withval=$with_sqlite3;
19189   if test "$withval" != "no"; then
19190      if test "$withval" = "yes"; then
19191         if test -f /usr/local/include/sqlite3.h; then
19192            SQLITE_INCDIR=/usr/local/include
19193            if test -d /usr/local/lib64; then
19194               SQLITE_LIBDIR=/usr/local/lib64
19195            else
19196               SQLITE_LIBDIR=/usr/local/lib
19197            fi
19198            SQLITE_BINDIR=/usr/local/bin
19199         elif test -f /usr/include/sqlite3.h; then
19200            SQLITE_INCDIR=/usr/include
19201            if test -d /usr/lib64; then
19202               SQLITE_LIBDIR=/usr/lib64
19203            else
19204               SQLITE_LIBDIR=/usr/lib
19205            fi
19206            SQLITE_BINDIR=/usr/bin
19207         elif test -f $prefix/include/sqlite3.h; then
19208            SQLITE_INCDIR=$prefix/include
19209            if test -d $prefix/lib64; then
19210               SQLITE_LIBDIR=$prefix/lib64
19211            else
19212               SQLITE_LIBDIR=$prefix/lib
19213            fi
19214            SQLITE_BINDIR=$prefix/bin
19215         else
19216            { echo "$as_me:$LINENO: result: no" >&5
19217 echo "${ECHO_T}no" >&6; }
19218            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19219 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19220    { (exit 1); exit 1; }; }
19221         fi
19222      else
19223         if test -f $withval/sqlite3.h; then
19224            SQLITE_INCDIR=$withval
19225            SQLITE_LIBDIR=$withval
19226            SQLITE_BINDIR=$withval
19227         elif test -f $withval/include/sqlite3.h; then
19228            SQLITE_INCDIR=$withval/include
19229            if test -d $withval/lib64; then
19230               SQLITE_LIBDIR=$withval/lib64
19231            else
19232               SQLITE_LIBDIR=$withval/lib
19233            fi
19234            SQLITE_BINDIR=$withval/bin
19235         else
19236            { echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6; }
19238            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19239 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19240    { (exit 1); exit 1; }; }
19241         fi
19242      fi
19243      SQL_INCLUDE=-I$SQLITE_INCDIR
19244      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19245      SQL_BINDIR=$SQLITE_BINDIR
19246
19247      cat >>confdefs.h <<\_ACEOF
19248 #define HAVE_SQLITE3 1
19249 _ACEOF
19250
19251      { echo "$as_me:$LINENO: result: yes" >&5
19252 echo "${ECHO_T}yes" >&6; }
19253      db_found=yes
19254      support_sqlite3=yes
19255      db_name=SQLite3
19256      DB_NAME=sqlite3
19257
19258   else
19259      { echo "$as_me:$LINENO: result: no" >&5
19260 echo "${ECHO_T}no" >&6; }
19261   fi
19262
19263 else
19264
19265   { echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6; }
19267
19268 fi
19269
19270
19271
19272
19273
19274
19275
19276
19277 db_found=no
19278 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19279 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19280
19281 # Check whether --with-sqlite was given.
19282 if test "${with_sqlite+set}" = set; then
19283   withval=$with_sqlite;
19284   if test "$withval" != "no"; then
19285      if test "$withval" = "yes"; then
19286         if test -f /usr/local/include/sqlite.h; then
19287            SQLITE_INCDIR=/usr/local/include
19288            if test -d /usr/local/lib64; then
19289               SQLITE_LIBDIR=/usr/local/lib64
19290            else
19291               SQLITE_LIBDIR=/usr/local/lib
19292            fi
19293            SQLITE_BINDIR=/usr/local/bin
19294         elif test -f /usr/include/sqlite.h; then
19295            SQLITE_INCDIR=/usr/include
19296            if test -d /usr/lib64; then
19297               SQLITE_LIBDIR=/usr/lib64
19298            else
19299               SQLITE_LIBDIR=/usr/lib
19300            fi
19301            SQLITE_BINDIR=/usr/bin
19302         elif test -f $prefix/include/sqlite.h; then
19303            SQLITE_INCDIR=$prefix/include
19304            if test -d $prefix/lib64; then
19305               SQLITE_LIBDIR=$prefix/lib64
19306            else
19307               SQLITE_LIBDIR=$prefix/lib
19308            fi
19309            SQLITE_BINDIR=$prefix/bin
19310         else
19311            { echo "$as_me:$LINENO: result: no" >&5
19312 echo "${ECHO_T}no" >&6; }
19313            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19314 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19315    { (exit 1); exit 1; }; }
19316         fi
19317      else
19318         if test -f $withval/sqlite.h; then
19319            SQLITE_INCDIR=$withval
19320            SQLITE_LIBDIR=$withval
19321            SQLITE_BINDIR=$withval
19322         elif test -f $withval/include/sqlite.h; then
19323            SQLITE_INCDIR=$withval/include
19324            if test -d $withval/lib64; then
19325               SQLITE_LIBDIR=$withval/lib64
19326            else
19327               SQLITE_LIBDIR=$withval/lib
19328            fi
19329            SQLITE_BINDIR=$withval/bin
19330         else
19331            { echo "$as_me:$LINENO: result: no" >&5
19332 echo "${ECHO_T}no" >&6; }
19333            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19334 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19335    { (exit 1); exit 1; }; }
19336         fi
19337      fi
19338      SQL_INCLUDE=-I$SQLITE_INCDIR
19339      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19340      SQL_BINDIR=$SQLITE_BINDIR
19341
19342      cat >>confdefs.h <<\_ACEOF
19343 #define HAVE_SQLITE 1
19344 _ACEOF
19345
19346      { echo "$as_me:$LINENO: result: yes" >&5
19347 echo "${ECHO_T}yes" >&6; }
19348      db_found=yes
19349      support_sqlite=yes
19350      db_name=SQLite
19351      DB_NAME=sqlite
19352
19353   else
19354      { echo "$as_me:$LINENO: result: no" >&5
19355 echo "${ECHO_T}no" >&6; }
19356   fi
19357
19358 else
19359
19360   { echo "$as_me:$LINENO: result: no" >&5
19361 echo "${ECHO_T}no" >&6; }
19362
19363 fi
19364
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374 cat >>confdefs.h <<\_ACEOF
19375 #define PROTOTYPES 1
19376 _ACEOF
19377
19378
19379 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19380     if test -z "$CCOPTS"; then
19381         CCOPTS='-g -O2 -Wall'
19382     fi
19383     CFLAGS="$CCOPTS"
19384 fi
19385
19386
19387
19388
19389 largefile_support="no"
19390
19391    # Check whether --enable-largefile was given.
19392 if test "${enable_largefile+set}" = set; then
19393   enableval=$enable_largefile;
19394 fi
19395
19396    if test "$enable_largefile" != no; then
19397      if test -n "$ac_tool_prefix"; then
19398   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19399 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19402 if test "${ac_cv_prog_GETCONF+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   if test -n "$GETCONF"; then
19406   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19407 else
19408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19409 for as_dir in $PATH
19410 do
19411   IFS=$as_save_IFS
19412   test -z "$as_dir" && as_dir=.
19413   for ac_exec_ext in '' $ac_executable_extensions; do
19414   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19415     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19416     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19417     break 2
19418   fi
19419 done
19420 done
19421 IFS=$as_save_IFS
19422
19423 fi
19424 fi
19425 GETCONF=$ac_cv_prog_GETCONF
19426 if test -n "$GETCONF"; then
19427   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19428 echo "${ECHO_T}$GETCONF" >&6; }
19429 else
19430   { echo "$as_me:$LINENO: result: no" >&5
19431 echo "${ECHO_T}no" >&6; }
19432 fi
19433
19434
19435 fi
19436 if test -z "$ac_cv_prog_GETCONF"; then
19437   ac_ct_GETCONF=$GETCONF
19438   # Extract the first word of "getconf", so it can be a program name with args.
19439 set dummy getconf; ac_word=$2
19440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19442 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19443   echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445   if test -n "$ac_ct_GETCONF"; then
19446   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19447 else
19448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19449 for as_dir in $PATH
19450 do
19451   IFS=$as_save_IFS
19452   test -z "$as_dir" && as_dir=.
19453   for ac_exec_ext in '' $ac_executable_extensions; do
19454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19455     ac_cv_prog_ac_ct_GETCONF="getconf"
19456     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19457     break 2
19458   fi
19459 done
19460 done
19461 IFS=$as_save_IFS
19462
19463 fi
19464 fi
19465 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19466 if test -n "$ac_ct_GETCONF"; then
19467   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19468 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19469 else
19470   { echo "$as_me:$LINENO: result: no" >&5
19471 echo "${ECHO_T}no" >&6; }
19472 fi
19473
19474   if test "x$ac_ct_GETCONF" = x; then
19475     GETCONF=""
19476   else
19477     case $cross_compiling:$ac_tool_warned in
19478 yes:)
19479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19480 whose name does not start with the host triplet.  If you think this
19481 configuration is useful to you, please write to autoconf@gnu.org." >&5
19482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19483 whose name does not start with the host triplet.  If you think this
19484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19485 ac_tool_warned=yes ;;
19486 esac
19487     GETCONF=$ac_ct_GETCONF
19488   fi
19489 else
19490   GETCONF="$ac_cv_prog_GETCONF"
19491 fi
19492
19493      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19494 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19495 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19496   echo $ECHO_N "(cached) $ECHO_C" >&6
19497 else
19498   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19499         ac_cv_sys_largefile_CFLAGS=no
19500         case "$host_os" in
19501            # IRIX 6.2 and later require cc -n32.
19502            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19503              if test "$GCC" != yes; then
19504                ac_cv_sys_largefile_CFLAGS=-n32
19505              fi
19506              ac_save_CC="$CC"
19507              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19508              cat >conftest.$ac_ext <<_ACEOF
19509 /* confdefs.h.  */
19510 _ACEOF
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h.  */
19514
19515 int
19516 main ()
19517 {
19518
19519   ;
19520   return 0;
19521 }
19522 _ACEOF
19523 rm -f conftest.$ac_objext conftest$ac_exeext
19524 if { (ac_try="$ac_link"
19525 case "(($ac_try" in
19526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19527   *) ac_try_echo=$ac_try;;
19528 esac
19529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19530   (eval "$ac_link") 2>conftest.er1
19531   ac_status=$?
19532   grep -v '^ *+' conftest.er1 >conftest.err
19533   rm -f conftest.er1
19534   cat conftest.err >&5
19535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19536   (exit $ac_status); } &&
19537          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19538   { (case "(($ac_try" in
19539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19540   *) ac_try_echo=$ac_try;;
19541 esac
19542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19543   (eval "$ac_try") 2>&5
19544   ac_status=$?
19545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546   (exit $ac_status); }; } &&
19547          { ac_try='test -s conftest$ac_exeext'
19548   { (case "(($ac_try" in
19549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550   *) ac_try_echo=$ac_try;;
19551 esac
19552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19553   (eval "$ac_try") 2>&5
19554   ac_status=$?
19555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556   (exit $ac_status); }; }; then
19557   :
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562         ac_cv_sys_largefile_CFLAGS=no
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext \
19566       conftest$ac_exeext conftest.$ac_ext
19567              CC="$ac_save_CC"
19568            esac
19569       }
19570 fi
19571 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19572 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19573      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19574 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19575 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19576   echo $ECHO_N "(cached) $ECHO_C" >&6
19577 else
19578   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19579         ac_cv_sys_largefile_LDFLAGS=no
19580
19581       }
19582 fi
19583 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19584 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19585      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19586 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19587 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19591         ac_cv_sys_largefile_LIBS=no
19592
19593       }
19594 fi
19595 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19596 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19597
19598      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19599        case "$ac_flag" in
19600        no) ;;
19601        -D_FILE_OFFSET_BITS=*) ;;
19602        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19603        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19604        -D?* | -I?*)
19605          case "$ac_flag" in
19606    no) ;;
19607    ?*)
19608      case "$CPPFLAGS" in
19609      '') CPPFLAGS="$ac_flag" ;;
19610      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19611      esac ;;
19612    esac ;;
19613        *)
19614          case "$ac_flag" in
19615    no) ;;
19616    ?*)
19617      case "$CFLAGS" in
19618      '') CFLAGS="$ac_flag" ;;
19619      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19620      esac ;;
19621    esac ;;
19622        esac
19623      done
19624      case "$ac_cv_sys_largefile_LDFLAGS" in
19625    no) ;;
19626    ?*)
19627      case "$LDFLAGS" in
19628      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19629      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19630      esac ;;
19631    esac
19632      case "$ac_cv_sys_largefile_LIBS" in
19633    no) ;;
19634    ?*)
19635      case "$LIBS" in
19636      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19637      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19638      esac ;;
19639    esac
19640      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19641 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19642 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19643   echo $ECHO_N "(cached) $ECHO_C" >&6
19644 else
19645   ac_cv_sys_file_offset_bits=no
19646       ac_cv_sys_file_offset_bits=64
19647       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19648         case "$ac_flag" in
19649         -D_FILE_OFFSET_BITS)
19650           ac_cv_sys_file_offset_bits=1 ;;
19651         -D_FILE_OFFSET_BITS=*)
19652           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19653         esac
19654       done
19655
19656 fi
19657 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19658 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19659    if test "$ac_cv_sys_file_offset_bits" != no; then
19660
19661 cat >>confdefs.h <<_ACEOF
19662 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19663 _ACEOF
19664
19665    fi
19666      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19667 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19668 if test "${ac_cv_sys_largefile_source+set}" = set; then
19669   echo $ECHO_N "(cached) $ECHO_C" >&6
19670 else
19671   ac_cv_sys_largefile_source=no
19672       ac_cv_sys_largefile_source=1
19673       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19674         case "$ac_flag" in
19675         -D_LARGEFILE_SOURCE)
19676           ac_cv_sys_largefile_source=1 ;;
19677         -D_LARGEFILE_SOURCE=*)
19678           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19679         esac
19680       done
19681
19682 fi
19683 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19684 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19685    if test "$ac_cv_sys_largefile_source" != no; then
19686
19687 cat >>confdefs.h <<_ACEOF
19688 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19689 _ACEOF
19690
19691    fi
19692      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19693 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19694 if test "${ac_cv_sys_large_files+set}" = set; then
19695   echo $ECHO_N "(cached) $ECHO_C" >&6
19696 else
19697   ac_cv_sys_large_files=no
19698       ac_cv_sys_large_files=1
19699       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19700         case "$ac_flag" in
19701         -D_LARGE_FILES)
19702           ac_cv_sys_large_files=1 ;;
19703         -D_LARGE_FILES=*)
19704           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19705         esac
19706       done
19707
19708 fi
19709 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19710 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19711    if test "$ac_cv_sys_large_files" != no; then
19712
19713 cat >>confdefs.h <<_ACEOF
19714 #define _LARGE_FILES $ac_cv_sys_large_files
19715 _ACEOF
19716
19717    fi
19718    fi
19719
19720
19721
19722 { echo "$as_me:$LINENO: checking for X" >&5
19723 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19724
19725
19726 # Check whether --with-x was given.
19727 if test "${with_x+set}" = set; then
19728   withval=$with_x;
19729 fi
19730
19731 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19732 if test "x$with_x" = xno; then
19733   # The user explicitly disabled X.
19734   have_x=disabled
19735 else
19736   case $x_includes,$x_libraries in #(
19737     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19738 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19739    { (exit 1); exit 1; }; };; #(
19740     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19741   echo $ECHO_N "(cached) $ECHO_C" >&6
19742 else
19743   # One or both of the vars are not set, and there is no cached value.
19744 ac_x_includes=no ac_x_libraries=no
19745 rm -f -r conftest.dir
19746 if mkdir conftest.dir; then
19747   cd conftest.dir
19748   cat >Imakefile <<'_ACEOF'
19749 incroot:
19750         @echo incroot='${INCROOT}'
19751 usrlibdir:
19752         @echo usrlibdir='${USRLIBDIR}'
19753 libdir:
19754         @echo libdir='${LIBDIR}'
19755 _ACEOF
19756   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19757     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19758     for ac_var in incroot usrlibdir libdir; do
19759       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19760     done
19761     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19762     for ac_extension in a so sl; do
19763       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19764          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19765         ac_im_usrlibdir=$ac_im_libdir; break
19766       fi
19767     done
19768     # Screen out bogus values from the imake configuration.  They are
19769     # bogus both because they are the default anyway, and because
19770     # using them would break gcc on systems where it needs fixed includes.
19771     case $ac_im_incroot in
19772         /usr/include) ac_x_includes= ;;
19773         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19774     esac
19775     case $ac_im_usrlibdir in
19776         /usr/lib | /lib) ;;
19777         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19778     esac
19779   fi
19780   cd ..
19781   rm -f -r conftest.dir
19782 fi
19783
19784 # Standard set of common directories for X headers.
19785 # Check X11 before X11Rn because it is often a symlink to the current release.
19786 ac_x_header_dirs='
19787 /usr/X11/include
19788 /usr/X11R6/include
19789 /usr/X11R5/include
19790 /usr/X11R4/include
19791
19792 /usr/include/X11
19793 /usr/include/X11R6
19794 /usr/include/X11R5
19795 /usr/include/X11R4
19796
19797 /usr/local/X11/include
19798 /usr/local/X11R6/include
19799 /usr/local/X11R5/include
19800 /usr/local/X11R4/include
19801
19802 /usr/local/include/X11
19803 /usr/local/include/X11R6
19804 /usr/local/include/X11R5
19805 /usr/local/include/X11R4
19806
19807 /usr/X386/include
19808 /usr/x386/include
19809 /usr/XFree86/include/X11
19810
19811 /usr/include
19812 /usr/local/include
19813 /usr/unsupported/include
19814 /usr/athena/include
19815 /usr/local/x11r5/include
19816 /usr/lpp/Xamples/include
19817
19818 /usr/openwin/include
19819 /usr/openwin/share/include'
19820
19821 if test "$ac_x_includes" = no; then
19822   # Guess where to find include files, by looking for Xlib.h.
19823   # First, try using that file with no special directory specified.
19824   cat >conftest.$ac_ext <<_ACEOF
19825 /* confdefs.h.  */
19826 _ACEOF
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h.  */
19830 #include <X11/Xlib.h>
19831 _ACEOF
19832 if { (ac_try="$ac_cpp conftest.$ac_ext"
19833 case "(($ac_try" in
19834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835   *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19839   ac_status=$?
19840   grep -v '^ *+' conftest.er1 >conftest.err
19841   rm -f conftest.er1
19842   cat conftest.err >&5
19843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844   (exit $ac_status); } >/dev/null; then
19845   if test -s conftest.err; then
19846     ac_cpp_err=$ac_c_preproc_warn_flag
19847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19848   else
19849     ac_cpp_err=
19850   fi
19851 else
19852   ac_cpp_err=yes
19853 fi
19854 if test -z "$ac_cpp_err"; then
19855   # We can compile using X headers with no special include directory.
19856 ac_x_includes=
19857 else
19858   echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861   for ac_dir in $ac_x_header_dirs; do
19862   if test -r "$ac_dir/X11/Xlib.h"; then
19863     ac_x_includes=$ac_dir
19864     break
19865   fi
19866 done
19867 fi
19868
19869 rm -f conftest.err conftest.$ac_ext
19870 fi # $ac_x_includes = no
19871
19872 if test "$ac_x_libraries" = no; then
19873   # Check for the libraries.
19874   # See if we find them without any special options.
19875   # Don't add to $LIBS permanently.
19876   ac_save_LIBS=$LIBS
19877   LIBS="-lXt $LIBS"
19878   cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884 #include <X11/Xlib.h>
19885 int
19886 main ()
19887 {
19888 XrmInitialize ()
19889   ;
19890   return 0;
19891 }
19892 _ACEOF
19893 rm -f conftest.$ac_objext conftest$ac_exeext
19894 if { (ac_try="$ac_link"
19895 case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_link") 2>conftest.er1
19901   ac_status=$?
19902   grep -v '^ *+' conftest.er1 >conftest.err
19903   rm -f conftest.er1
19904   cat conftest.err >&5
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } &&
19907          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19908   { (case "(($ac_try" in
19909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19910   *) ac_try_echo=$ac_try;;
19911 esac
19912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19913   (eval "$ac_try") 2>&5
19914   ac_status=$?
19915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916   (exit $ac_status); }; } &&
19917          { ac_try='test -s conftest$ac_exeext'
19918   { (case "(($ac_try" in
19919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19920   *) ac_try_echo=$ac_try;;
19921 esac
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923   (eval "$ac_try") 2>&5
19924   ac_status=$?
19925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926   (exit $ac_status); }; }; then
19927   LIBS=$ac_save_LIBS
19928 # We can link X programs with no special library path.
19929 ac_x_libraries=
19930 else
19931   echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19933
19934         LIBS=$ac_save_LIBS
19935 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19936 do
19937   # Don't even attempt the hair of trying to link an X program!
19938   for ac_extension in a so sl; do
19939     if test -r "$ac_dir/libXt.$ac_extension"; then
19940       ac_x_libraries=$ac_dir
19941       break 2
19942     fi
19943   done
19944 done
19945 fi
19946
19947 rm -f core conftest.err conftest.$ac_objext \
19948       conftest$ac_exeext conftest.$ac_ext
19949 fi # $ac_x_libraries = no
19950
19951 case $ac_x_includes,$ac_x_libraries in #(
19952   no,* | *,no | *\'*)
19953     # Didn't find X, or a directory has "'" in its name.
19954     ac_cv_have_x="have_x=no";; #(
19955   *)
19956     # Record where we found X for the cache.
19957     ac_cv_have_x="have_x=yes\
19958         ac_x_includes='$ac_x_includes'\
19959         ac_x_libraries='$ac_x_libraries'"
19960 esac
19961 fi
19962 ;; #(
19963     *) have_x=yes;;
19964   esac
19965   eval "$ac_cv_have_x"
19966 fi # $with_x != no
19967
19968 if test "$have_x" != yes; then
19969   { echo "$as_me:$LINENO: result: $have_x" >&5
19970 echo "${ECHO_T}$have_x" >&6; }
19971   no_x=yes
19972 else
19973   # If each of the values was on the command line, it overrides each guess.
19974   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19975   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19976   # Update the cache value to reflect the command line values.
19977   ac_cv_have_x="have_x=yes\
19978         ac_x_includes='$x_includes'\
19979         ac_x_libraries='$x_libraries'"
19980   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19981 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
19982 fi
19983
19984 if test "$no_x" = yes; then
19985   # Not all programs may use this symbol, but it does not hurt to define it.
19986
19987 cat >>confdefs.h <<\_ACEOF
19988 #define X_DISPLAY_MISSING 1
19989 _ACEOF
19990
19991   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19992 else
19993   if test -n "$x_includes"; then
19994     X_CFLAGS="$X_CFLAGS -I$x_includes"
19995   fi
19996
19997   # It would also be nice to do this for all -L options, not just this one.
19998   if test -n "$x_libraries"; then
19999     X_LIBS="$X_LIBS -L$x_libraries"
20000     # For Solaris; some versions of Sun CC require a space after -R and
20001     # others require no space.  Words are not sufficient . . . .
20002     case `(uname -sr) 2>/dev/null` in
20003     "SunOS 5"*)
20004       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20005 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20006       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20007       cat >conftest.$ac_ext <<_ACEOF
20008 /* confdefs.h.  */
20009 _ACEOF
20010 cat confdefs.h >>conftest.$ac_ext
20011 cat >>conftest.$ac_ext <<_ACEOF
20012 /* end confdefs.h.  */
20013
20014 int
20015 main ()
20016 {
20017
20018   ;
20019   return 0;
20020 }
20021 _ACEOF
20022 rm -f conftest.$ac_objext conftest$ac_exeext
20023 if { (ac_try="$ac_link"
20024 case "(($ac_try" in
20025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20026   *) ac_try_echo=$ac_try;;
20027 esac
20028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20029   (eval "$ac_link") 2>conftest.er1
20030   ac_status=$?
20031   grep -v '^ *+' conftest.er1 >conftest.err
20032   rm -f conftest.er1
20033   cat conftest.err >&5
20034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035   (exit $ac_status); } &&
20036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20037   { (case "(($ac_try" in
20038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20039   *) ac_try_echo=$ac_try;;
20040 esac
20041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20042   (eval "$ac_try") 2>&5
20043   ac_status=$?
20044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045   (exit $ac_status); }; } &&
20046          { ac_try='test -s conftest$ac_exeext'
20047   { (case "(($ac_try" in
20048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049   *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052   (eval "$ac_try") 2>&5
20053   ac_status=$?
20054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20055   (exit $ac_status); }; }; then
20056   ac_R_nospace=yes
20057 else
20058   echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061         ac_R_nospace=no
20062 fi
20063
20064 rm -f core conftest.err conftest.$ac_objext \
20065       conftest$ac_exeext conftest.$ac_ext
20066       if test $ac_R_nospace = yes; then
20067         { echo "$as_me:$LINENO: result: no" >&5
20068 echo "${ECHO_T}no" >&6; }
20069         X_LIBS="$X_LIBS -R$x_libraries"
20070       else
20071         LIBS="$ac_xsave_LIBS -R $x_libraries"
20072         cat >conftest.$ac_ext <<_ACEOF
20073 /* confdefs.h.  */
20074 _ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h.  */
20078
20079 int
20080 main ()
20081 {
20082
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091   *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094   (eval "$ac_link") 2>conftest.er1
20095   ac_status=$?
20096   grep -v '^ *+' conftest.er1 >conftest.err
20097   rm -f conftest.er1
20098   cat conftest.err >&5
20099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100   (exit $ac_status); } &&
20101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20102   { (case "(($ac_try" in
20103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104   *) ac_try_echo=$ac_try;;
20105 esac
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107   (eval "$ac_try") 2>&5
20108   ac_status=$?
20109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110   (exit $ac_status); }; } &&
20111          { ac_try='test -s conftest$ac_exeext'
20112   { (case "(($ac_try" in
20113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114   *) ac_try_echo=$ac_try;;
20115 esac
20116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20117   (eval "$ac_try") 2>&5
20118   ac_status=$?
20119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120   (exit $ac_status); }; }; then
20121   ac_R_space=yes
20122 else
20123   echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20125
20126         ac_R_space=no
20127 fi
20128
20129 rm -f core conftest.err conftest.$ac_objext \
20130       conftest$ac_exeext conftest.$ac_ext
20131         if test $ac_R_space = yes; then
20132           { echo "$as_me:$LINENO: result: yes" >&5
20133 echo "${ECHO_T}yes" >&6; }
20134           X_LIBS="$X_LIBS -R $x_libraries"
20135         else
20136           { echo "$as_me:$LINENO: result: neither works" >&5
20137 echo "${ECHO_T}neither works" >&6; }
20138         fi
20139       fi
20140       LIBS=$ac_xsave_LIBS
20141     esac
20142   fi
20143
20144   # Check for system-dependent libraries X programs must link with.
20145   # Do this before checking for the system-independent R6 libraries
20146   # (-lICE), since we may need -lsocket or whatever for X linking.
20147
20148   if test "$ISC" = yes; then
20149     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20150   else
20151     # Martyn Johnson says this is needed for Ultrix, if the X
20152     # libraries were built with DECnet support.  And Karl Berry says
20153     # the Alpha needs dnet_stub (dnet does not exist).
20154     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20155     cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h.  */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h.  */
20161
20162 /* Override any GCC internal prototype to avoid an error.
20163    Use char because int might match the return type of a GCC
20164    builtin and then its argument prototype would still apply.  */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char XOpenDisplay ();
20169 int
20170 main ()
20171 {
20172 return XOpenDisplay ();
20173   ;
20174   return 0;
20175 }
20176 _ACEOF
20177 rm -f conftest.$ac_objext conftest$ac_exeext
20178 if { (ac_try="$ac_link"
20179 case "(($ac_try" in
20180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20181   *) ac_try_echo=$ac_try;;
20182 esac
20183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20184   (eval "$ac_link") 2>conftest.er1
20185   ac_status=$?
20186   grep -v '^ *+' conftest.er1 >conftest.err
20187   rm -f conftest.er1
20188   cat conftest.err >&5
20189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190   (exit $ac_status); } &&
20191          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20192   { (case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20197   (eval "$ac_try") 2>&5
20198   ac_status=$?
20199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200   (exit $ac_status); }; } &&
20201          { ac_try='test -s conftest$ac_exeext'
20202   { (case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20207   (eval "$ac_try") 2>&5
20208   ac_status=$?
20209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210   (exit $ac_status); }; }; then
20211   :
20212 else
20213   echo "$as_me: failed program was:" >&5
20214 sed 's/^/| /' conftest.$ac_ext >&5
20215
20216         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20217 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20218 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20219   echo $ECHO_N "(cached) $ECHO_C" >&6
20220 else
20221   ac_check_lib_save_LIBS=$LIBS
20222 LIBS="-ldnet  $LIBS"
20223 cat >conftest.$ac_ext <<_ACEOF
20224 /* confdefs.h.  */
20225 _ACEOF
20226 cat confdefs.h >>conftest.$ac_ext
20227 cat >>conftest.$ac_ext <<_ACEOF
20228 /* end confdefs.h.  */
20229
20230 /* Override any GCC internal prototype to avoid an error.
20231    Use char because int might match the return type of a GCC
20232    builtin and then its argument prototype would still apply.  */
20233 #ifdef __cplusplus
20234 extern "C"
20235 #endif
20236 char dnet_ntoa ();
20237 int
20238 main ()
20239 {
20240 return dnet_ntoa ();
20241   ;
20242   return 0;
20243 }
20244 _ACEOF
20245 rm -f conftest.$ac_objext conftest$ac_exeext
20246 if { (ac_try="$ac_link"
20247 case "(($ac_try" in
20248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20249   *) ac_try_echo=$ac_try;;
20250 esac
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252   (eval "$ac_link") 2>conftest.er1
20253   ac_status=$?
20254   grep -v '^ *+' conftest.er1 >conftest.err
20255   rm -f conftest.er1
20256   cat conftest.err >&5
20257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20258   (exit $ac_status); } &&
20259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20260   { (case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265   (eval "$ac_try") 2>&5
20266   ac_status=$?
20267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268   (exit $ac_status); }; } &&
20269          { ac_try='test -s conftest$ac_exeext'
20270   { (case "(($ac_try" in
20271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20272   *) ac_try_echo=$ac_try;;
20273 esac
20274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20275   (eval "$ac_try") 2>&5
20276   ac_status=$?
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); }; }; then
20279   ac_cv_lib_dnet_dnet_ntoa=yes
20280 else
20281   echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20283
20284         ac_cv_lib_dnet_dnet_ntoa=no
20285 fi
20286
20287 rm -f core conftest.err conftest.$ac_objext \
20288       conftest$ac_exeext conftest.$ac_ext
20289 LIBS=$ac_check_lib_save_LIBS
20290 fi
20291 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20292 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20293 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20294   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20295 fi
20296
20297     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20298       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20299 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20300 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20301   echo $ECHO_N "(cached) $ECHO_C" >&6
20302 else
20303   ac_check_lib_save_LIBS=$LIBS
20304 LIBS="-ldnet_stub  $LIBS"
20305 cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311
20312 /* Override any GCC internal prototype to avoid an error.
20313    Use char because int might match the return type of a GCC
20314    builtin and then its argument prototype would still apply.  */
20315 #ifdef __cplusplus
20316 extern "C"
20317 #endif
20318 char dnet_ntoa ();
20319 int
20320 main ()
20321 {
20322 return dnet_ntoa ();
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 rm -f conftest.$ac_objext conftest$ac_exeext
20328 if { (ac_try="$ac_link"
20329 case "(($ac_try" in
20330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20331   *) ac_try_echo=$ac_try;;
20332 esac
20333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20334   (eval "$ac_link") 2>conftest.er1
20335   ac_status=$?
20336   grep -v '^ *+' conftest.er1 >conftest.err
20337   rm -f conftest.er1
20338   cat conftest.err >&5
20339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340   (exit $ac_status); } &&
20341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20342   { (case "(($ac_try" in
20343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20344   *) ac_try_echo=$ac_try;;
20345 esac
20346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20347   (eval "$ac_try") 2>&5
20348   ac_status=$?
20349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350   (exit $ac_status); }; } &&
20351          { ac_try='test -s conftest$ac_exeext'
20352   { (case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357   (eval "$ac_try") 2>&5
20358   ac_status=$?
20359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360   (exit $ac_status); }; }; then
20361   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20362 else
20363   echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20365
20366         ac_cv_lib_dnet_stub_dnet_ntoa=no
20367 fi
20368
20369 rm -f core conftest.err conftest.$ac_objext \
20370       conftest$ac_exeext conftest.$ac_ext
20371 LIBS=$ac_check_lib_save_LIBS
20372 fi
20373 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20374 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20375 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20376   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20377 fi
20378
20379     fi
20380 fi
20381
20382 rm -f core conftest.err conftest.$ac_objext \
20383       conftest$ac_exeext conftest.$ac_ext
20384     LIBS="$ac_xsave_LIBS"
20385
20386     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20387     # to get the SysV transport functions.
20388     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20389     # needs -lnsl.
20390     # The nsl library prevents programs from opening the X display
20391     # on Irix 5.2, according to T.E. Dickey.
20392     # The functions gethostbyname, getservbyname, and inet_addr are
20393     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20394     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20395 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20396 if test "${ac_cv_func_gethostbyname+set}" = set; then
20397   echo $ECHO_N "(cached) $ECHO_C" >&6
20398 else
20399   cat >conftest.$ac_ext <<_ACEOF
20400 /* confdefs.h.  */
20401 _ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h.  */
20405 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20406    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20407 #define gethostbyname innocuous_gethostbyname
20408
20409 /* System header to define __stub macros and hopefully few prototypes,
20410     which can conflict with char gethostbyname (); below.
20411     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20412     <limits.h> exists even on freestanding compilers.  */
20413
20414 #ifdef __STDC__
20415 # include <limits.h>
20416 #else
20417 # include <assert.h>
20418 #endif
20419
20420 #undef gethostbyname
20421
20422 /* Override any GCC internal prototype to avoid an error.
20423    Use char because int might match the return type of a GCC
20424    builtin and then its argument prototype would still apply.  */
20425 #ifdef __cplusplus
20426 extern "C"
20427 #endif
20428 char gethostbyname ();
20429 /* The GNU C library defines this for functions which it implements
20430     to always fail with ENOSYS.  Some functions are actually named
20431     something starting with __ and the normal name is an alias.  */
20432 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20433 choke me
20434 #endif
20435
20436 int
20437 main ()
20438 {
20439 return gethostbyname ();
20440   ;
20441   return 0;
20442 }
20443 _ACEOF
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448   *) ac_try_echo=$ac_try;;
20449 esac
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451   (eval "$ac_link") 2>conftest.er1
20452   ac_status=$?
20453   grep -v '^ *+' conftest.er1 >conftest.err
20454   rm -f conftest.er1
20455   cat conftest.err >&5
20456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457   (exit $ac_status); } &&
20458          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20459   { (case "(($ac_try" in
20460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20461   *) ac_try_echo=$ac_try;;
20462 esac
20463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20464   (eval "$ac_try") 2>&5
20465   ac_status=$?
20466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467   (exit $ac_status); }; } &&
20468          { ac_try='test -s conftest$ac_exeext'
20469   { (case "(($ac_try" in
20470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471   *) ac_try_echo=$ac_try;;
20472 esac
20473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20474   (eval "$ac_try") 2>&5
20475   ac_status=$?
20476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477   (exit $ac_status); }; }; then
20478   ac_cv_func_gethostbyname=yes
20479 else
20480   echo "$as_me: failed program was:" >&5
20481 sed 's/^/| /' conftest.$ac_ext >&5
20482
20483         ac_cv_func_gethostbyname=no
20484 fi
20485
20486 rm -f core conftest.err conftest.$ac_objext \
20487       conftest$ac_exeext conftest.$ac_ext
20488 fi
20489 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20490 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20491
20492     if test $ac_cv_func_gethostbyname = no; then
20493       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20494 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20495 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20496   echo $ECHO_N "(cached) $ECHO_C" >&6
20497 else
20498   ac_check_lib_save_LIBS=$LIBS
20499 LIBS="-lnsl  $LIBS"
20500 cat >conftest.$ac_ext <<_ACEOF
20501 /* confdefs.h.  */
20502 _ACEOF
20503 cat confdefs.h >>conftest.$ac_ext
20504 cat >>conftest.$ac_ext <<_ACEOF
20505 /* end confdefs.h.  */
20506
20507 /* Override any GCC internal prototype to avoid an error.
20508    Use char because int might match the return type of a GCC
20509    builtin and then its argument prototype would still apply.  */
20510 #ifdef __cplusplus
20511 extern "C"
20512 #endif
20513 char gethostbyname ();
20514 int
20515 main ()
20516 {
20517 return gethostbyname ();
20518   ;
20519   return 0;
20520 }
20521 _ACEOF
20522 rm -f conftest.$ac_objext conftest$ac_exeext
20523 if { (ac_try="$ac_link"
20524 case "(($ac_try" in
20525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526   *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529   (eval "$ac_link") 2>conftest.er1
20530   ac_status=$?
20531   grep -v '^ *+' conftest.er1 >conftest.err
20532   rm -f conftest.er1
20533   cat conftest.err >&5
20534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535   (exit $ac_status); } &&
20536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20537   { (case "(($ac_try" in
20538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539   *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542   (eval "$ac_try") 2>&5
20543   ac_status=$?
20544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545   (exit $ac_status); }; } &&
20546          { ac_try='test -s conftest$ac_exeext'
20547   { (case "(($ac_try" in
20548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549   *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552   (eval "$ac_try") 2>&5
20553   ac_status=$?
20554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555   (exit $ac_status); }; }; then
20556   ac_cv_lib_nsl_gethostbyname=yes
20557 else
20558   echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561         ac_cv_lib_nsl_gethostbyname=no
20562 fi
20563
20564 rm -f core conftest.err conftest.$ac_objext \
20565       conftest$ac_exeext conftest.$ac_ext
20566 LIBS=$ac_check_lib_save_LIBS
20567 fi
20568 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20569 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20570 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20571   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20572 fi
20573
20574       if test $ac_cv_lib_nsl_gethostbyname = no; then
20575         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20576 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20577 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20578   echo $ECHO_N "(cached) $ECHO_C" >&6
20579 else
20580   ac_check_lib_save_LIBS=$LIBS
20581 LIBS="-lbsd  $LIBS"
20582 cat >conftest.$ac_ext <<_ACEOF
20583 /* confdefs.h.  */
20584 _ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h.  */
20588
20589 /* Override any GCC internal prototype to avoid an error.
20590    Use char because int might match the return type of a GCC
20591    builtin and then its argument prototype would still apply.  */
20592 #ifdef __cplusplus
20593 extern "C"
20594 #endif
20595 char gethostbyname ();
20596 int
20597 main ()
20598 {
20599 return gethostbyname ();
20600   ;
20601   return 0;
20602 }
20603 _ACEOF
20604 rm -f conftest.$ac_objext conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608   *) ac_try_echo=$ac_try;;
20609 esac
20610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20611   (eval "$ac_link") 2>conftest.er1
20612   ac_status=$?
20613   grep -v '^ *+' conftest.er1 >conftest.err
20614   rm -f conftest.er1
20615   cat conftest.err >&5
20616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617   (exit $ac_status); } &&
20618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20619   { (case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20624   (eval "$ac_try") 2>&5
20625   ac_status=$?
20626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627   (exit $ac_status); }; } &&
20628          { ac_try='test -s conftest$ac_exeext'
20629   { (case "(($ac_try" in
20630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20631   *) ac_try_echo=$ac_try;;
20632 esac
20633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20634   (eval "$ac_try") 2>&5
20635   ac_status=$?
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); }; }; then
20638   ac_cv_lib_bsd_gethostbyname=yes
20639 else
20640   echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         ac_cv_lib_bsd_gethostbyname=no
20644 fi
20645
20646 rm -f core conftest.err conftest.$ac_objext \
20647       conftest$ac_exeext conftest.$ac_ext
20648 LIBS=$ac_check_lib_save_LIBS
20649 fi
20650 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20651 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20652 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20653   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20654 fi
20655
20656       fi
20657     fi
20658
20659     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20660     # socket/setsockopt and other routines are undefined under SCO ODT
20661     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20662     # on later versions), says Simon Leinen: it contains gethostby*
20663     # variants that don't use the name server (or something).  -lsocket
20664     # must be given before -lnsl if both are needed.  We assume that
20665     # if connect needs -lnsl, so does gethostbyname.
20666     { echo "$as_me:$LINENO: checking for connect" >&5
20667 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20668 if test "${ac_cv_func_connect+set}" = set; then
20669   echo $ECHO_N "(cached) $ECHO_C" >&6
20670 else
20671   cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h.  */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h.  */
20677 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20679 #define connect innocuous_connect
20680
20681 /* System header to define __stub macros and hopefully few prototypes,
20682     which can conflict with char connect (); below.
20683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20684     <limits.h> exists even on freestanding compilers.  */
20685
20686 #ifdef __STDC__
20687 # include <limits.h>
20688 #else
20689 # include <assert.h>
20690 #endif
20691
20692 #undef connect
20693
20694 /* Override any GCC internal prototype to avoid an error.
20695    Use char because int might match the return type of a GCC
20696    builtin and then its argument prototype would still apply.  */
20697 #ifdef __cplusplus
20698 extern "C"
20699 #endif
20700 char connect ();
20701 /* The GNU C library defines this for functions which it implements
20702     to always fail with ENOSYS.  Some functions are actually named
20703     something starting with __ and the normal name is an alias.  */
20704 #if defined __stub_connect || defined __stub___connect
20705 choke me
20706 #endif
20707
20708 int
20709 main ()
20710 {
20711 return connect ();
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720   *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723   (eval "$ac_link") 2>conftest.er1
20724   ac_status=$?
20725   grep -v '^ *+' conftest.er1 >conftest.err
20726   rm -f conftest.er1
20727   cat conftest.err >&5
20728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729   (exit $ac_status); } &&
20730          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20731   { (case "(($ac_try" in
20732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733   *) ac_try_echo=$ac_try;;
20734 esac
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736   (eval "$ac_try") 2>&5
20737   ac_status=$?
20738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739   (exit $ac_status); }; } &&
20740          { ac_try='test -s conftest$ac_exeext'
20741   { (case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_try") 2>&5
20747   ac_status=$?
20748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20749   (exit $ac_status); }; }; then
20750   ac_cv_func_connect=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         ac_cv_func_connect=no
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext \
20759       conftest$ac_exeext conftest.$ac_ext
20760 fi
20761 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20762 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20763
20764     if test $ac_cv_func_connect = no; then
20765       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20766 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20767 if test "${ac_cv_lib_socket_connect+set}" = set; then
20768   echo $ECHO_N "(cached) $ECHO_C" >&6
20769 else
20770   ac_check_lib_save_LIBS=$LIBS
20771 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20772 cat >conftest.$ac_ext <<_ACEOF
20773 /* confdefs.h.  */
20774 _ACEOF
20775 cat confdefs.h >>conftest.$ac_ext
20776 cat >>conftest.$ac_ext <<_ACEOF
20777 /* end confdefs.h.  */
20778
20779 /* Override any GCC internal prototype to avoid an error.
20780    Use char because int might match the return type of a GCC
20781    builtin and then its argument prototype would still apply.  */
20782 #ifdef __cplusplus
20783 extern "C"
20784 #endif
20785 char connect ();
20786 int
20787 main ()
20788 {
20789 return connect ();
20790   ;
20791   return 0;
20792 }
20793 _ACEOF
20794 rm -f conftest.$ac_objext conftest$ac_exeext
20795 if { (ac_try="$ac_link"
20796 case "(($ac_try" in
20797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20798   *) ac_try_echo=$ac_try;;
20799 esac
20800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20801   (eval "$ac_link") 2>conftest.er1
20802   ac_status=$?
20803   grep -v '^ *+' conftest.er1 >conftest.err
20804   rm -f conftest.er1
20805   cat conftest.err >&5
20806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807   (exit $ac_status); } &&
20808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20809   { (case "(($ac_try" in
20810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20811   *) ac_try_echo=$ac_try;;
20812 esac
20813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20814   (eval "$ac_try") 2>&5
20815   ac_status=$?
20816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817   (exit $ac_status); }; } &&
20818          { ac_try='test -s conftest$ac_exeext'
20819   { (case "(($ac_try" in
20820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20821   *) ac_try_echo=$ac_try;;
20822 esac
20823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20824   (eval "$ac_try") 2>&5
20825   ac_status=$?
20826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827   (exit $ac_status); }; }; then
20828   ac_cv_lib_socket_connect=yes
20829 else
20830   echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833         ac_cv_lib_socket_connect=no
20834 fi
20835
20836 rm -f core conftest.err conftest.$ac_objext \
20837       conftest$ac_exeext conftest.$ac_ext
20838 LIBS=$ac_check_lib_save_LIBS
20839 fi
20840 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20841 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20842 if test $ac_cv_lib_socket_connect = yes; then
20843   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20844 fi
20845
20846     fi
20847
20848     # Guillermo Gomez says -lposix is necessary on A/UX.
20849     { echo "$as_me:$LINENO: checking for remove" >&5
20850 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20851 if test "${ac_cv_func_remove+set}" = set; then
20852   echo $ECHO_N "(cached) $ECHO_C" >&6
20853 else
20854   cat >conftest.$ac_ext <<_ACEOF
20855 /* confdefs.h.  */
20856 _ACEOF
20857 cat confdefs.h >>conftest.$ac_ext
20858 cat >>conftest.$ac_ext <<_ACEOF
20859 /* end confdefs.h.  */
20860 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20861    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20862 #define remove innocuous_remove
20863
20864 /* System header to define __stub macros and hopefully few prototypes,
20865     which can conflict with char remove (); below.
20866     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20867     <limits.h> exists even on freestanding compilers.  */
20868
20869 #ifdef __STDC__
20870 # include <limits.h>
20871 #else
20872 # include <assert.h>
20873 #endif
20874
20875 #undef remove
20876
20877 /* Override any GCC internal prototype to avoid an error.
20878    Use char because int might match the return type of a GCC
20879    builtin and then its argument prototype would still apply.  */
20880 #ifdef __cplusplus
20881 extern "C"
20882 #endif
20883 char remove ();
20884 /* The GNU C library defines this for functions which it implements
20885     to always fail with ENOSYS.  Some functions are actually named
20886     something starting with __ and the normal name is an alias.  */
20887 #if defined __stub_remove || defined __stub___remove
20888 choke me
20889 #endif
20890
20891 int
20892 main ()
20893 {
20894 return remove ();
20895   ;
20896   return 0;
20897 }
20898 _ACEOF
20899 rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_link") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } &&
20913          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20914   { (case "(($ac_try" in
20915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916   *) ac_try_echo=$ac_try;;
20917 esac
20918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20919   (eval "$ac_try") 2>&5
20920   ac_status=$?
20921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922   (exit $ac_status); }; } &&
20923          { ac_try='test -s conftest$ac_exeext'
20924   { (case "(($ac_try" in
20925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926   *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929   (eval "$ac_try") 2>&5
20930   ac_status=$?
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); }; }; then
20933   ac_cv_func_remove=yes
20934 else
20935   echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20937
20938         ac_cv_func_remove=no
20939 fi
20940
20941 rm -f core conftest.err conftest.$ac_objext \
20942       conftest$ac_exeext conftest.$ac_ext
20943 fi
20944 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20945 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
20946
20947     if test $ac_cv_func_remove = no; then
20948       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20949 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
20950 if test "${ac_cv_lib_posix_remove+set}" = set; then
20951   echo $ECHO_N "(cached) $ECHO_C" >&6
20952 else
20953   ac_check_lib_save_LIBS=$LIBS
20954 LIBS="-lposix  $LIBS"
20955 cat >conftest.$ac_ext <<_ACEOF
20956 /* confdefs.h.  */
20957 _ACEOF
20958 cat confdefs.h >>conftest.$ac_ext
20959 cat >>conftest.$ac_ext <<_ACEOF
20960 /* end confdefs.h.  */
20961
20962 /* Override any GCC internal prototype to avoid an error.
20963    Use char because int might match the return type of a GCC
20964    builtin and then its argument prototype would still apply.  */
20965 #ifdef __cplusplus
20966 extern "C"
20967 #endif
20968 char remove ();
20969 int
20970 main ()
20971 {
20972 return remove ();
20973   ;
20974   return 0;
20975 }
20976 _ACEOF
20977 rm -f conftest.$ac_objext conftest$ac_exeext
20978 if { (ac_try="$ac_link"
20979 case "(($ac_try" in
20980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20981   *) ac_try_echo=$ac_try;;
20982 esac
20983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20984   (eval "$ac_link") 2>conftest.er1
20985   ac_status=$?
20986   grep -v '^ *+' conftest.er1 >conftest.err
20987   rm -f conftest.er1
20988   cat conftest.err >&5
20989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990   (exit $ac_status); } &&
20991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20992   { (case "(($ac_try" in
20993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994   *) ac_try_echo=$ac_try;;
20995 esac
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997   (eval "$ac_try") 2>&5
20998   ac_status=$?
20999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21000   (exit $ac_status); }; } &&
21001          { ac_try='test -s conftest$ac_exeext'
21002   { (case "(($ac_try" in
21003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004   *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007   (eval "$ac_try") 2>&5
21008   ac_status=$?
21009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21010   (exit $ac_status); }; }; then
21011   ac_cv_lib_posix_remove=yes
21012 else
21013   echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.$ac_ext >&5
21015
21016         ac_cv_lib_posix_remove=no
21017 fi
21018
21019 rm -f core conftest.err conftest.$ac_objext \
21020       conftest$ac_exeext conftest.$ac_ext
21021 LIBS=$ac_check_lib_save_LIBS
21022 fi
21023 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21024 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21025 if test $ac_cv_lib_posix_remove = yes; then
21026   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21027 fi
21028
21029     fi
21030
21031     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21032     { echo "$as_me:$LINENO: checking for shmat" >&5
21033 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21034 if test "${ac_cv_func_shmat+set}" = set; then
21035   echo $ECHO_N "(cached) $ECHO_C" >&6
21036 else
21037   cat >conftest.$ac_ext <<_ACEOF
21038 /* confdefs.h.  */
21039 _ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h.  */
21043 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21044    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21045 #define shmat innocuous_shmat
21046
21047 /* System header to define __stub macros and hopefully few prototypes,
21048     which can conflict with char shmat (); below.
21049     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21050     <limits.h> exists even on freestanding compilers.  */
21051
21052 #ifdef __STDC__
21053 # include <limits.h>
21054 #else
21055 # include <assert.h>
21056 #endif
21057
21058 #undef shmat
21059
21060 /* Override any GCC internal prototype to avoid an error.
21061    Use char because int might match the return type of a GCC
21062    builtin and then its argument prototype would still apply.  */
21063 #ifdef __cplusplus
21064 extern "C"
21065 #endif
21066 char shmat ();
21067 /* The GNU C library defines this for functions which it implements
21068     to always fail with ENOSYS.  Some functions are actually named
21069     something starting with __ and the normal name is an alias.  */
21070 #if defined __stub_shmat || defined __stub___shmat
21071 choke me
21072 #endif
21073
21074 int
21075 main ()
21076 {
21077 return shmat ();
21078   ;
21079   return 0;
21080 }
21081 _ACEOF
21082 rm -f conftest.$ac_objext conftest$ac_exeext
21083 if { (ac_try="$ac_link"
21084 case "(($ac_try" in
21085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21086   *) ac_try_echo=$ac_try;;
21087 esac
21088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21089   (eval "$ac_link") 2>conftest.er1
21090   ac_status=$?
21091   grep -v '^ *+' conftest.er1 >conftest.err
21092   rm -f conftest.er1
21093   cat conftest.err >&5
21094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095   (exit $ac_status); } &&
21096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21097   { (case "(($ac_try" in
21098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099   *) ac_try_echo=$ac_try;;
21100 esac
21101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21102   (eval "$ac_try") 2>&5
21103   ac_status=$?
21104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105   (exit $ac_status); }; } &&
21106          { ac_try='test -s conftest$ac_exeext'
21107   { (case "(($ac_try" in
21108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21109   *) ac_try_echo=$ac_try;;
21110 esac
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112   (eval "$ac_try") 2>&5
21113   ac_status=$?
21114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115   (exit $ac_status); }; }; then
21116   ac_cv_func_shmat=yes
21117 else
21118   echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21120
21121         ac_cv_func_shmat=no
21122 fi
21123
21124 rm -f core conftest.err conftest.$ac_objext \
21125       conftest$ac_exeext conftest.$ac_ext
21126 fi
21127 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21128 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21129
21130     if test $ac_cv_func_shmat = no; then
21131       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21132 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21133 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21134   echo $ECHO_N "(cached) $ECHO_C" >&6
21135 else
21136   ac_check_lib_save_LIBS=$LIBS
21137 LIBS="-lipc  $LIBS"
21138 cat >conftest.$ac_ext <<_ACEOF
21139 /* confdefs.h.  */
21140 _ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h.  */
21144
21145 /* Override any GCC internal prototype to avoid an error.
21146    Use char because int might match the return type of a GCC
21147    builtin and then its argument prototype would still apply.  */
21148 #ifdef __cplusplus
21149 extern "C"
21150 #endif
21151 char shmat ();
21152 int
21153 main ()
21154 {
21155 return shmat ();
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext conftest$ac_exeext
21161 if { (ac_try="$ac_link"
21162 case "(($ac_try" in
21163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164   *) ac_try_echo=$ac_try;;
21165 esac
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167   (eval "$ac_link") 2>conftest.er1
21168   ac_status=$?
21169   grep -v '^ *+' conftest.er1 >conftest.err
21170   rm -f conftest.er1
21171   cat conftest.err >&5
21172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173   (exit $ac_status); } &&
21174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21175   { (case "(($ac_try" in
21176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21177   *) ac_try_echo=$ac_try;;
21178 esac
21179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21180   (eval "$ac_try") 2>&5
21181   ac_status=$?
21182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21183   (exit $ac_status); }; } &&
21184          { ac_try='test -s conftest$ac_exeext'
21185   { (case "(($ac_try" in
21186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21187   *) ac_try_echo=$ac_try;;
21188 esac
21189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21190   (eval "$ac_try") 2>&5
21191   ac_status=$?
21192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193   (exit $ac_status); }; }; then
21194   ac_cv_lib_ipc_shmat=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199         ac_cv_lib_ipc_shmat=no
21200 fi
21201
21202 rm -f core conftest.err conftest.$ac_objext \
21203       conftest$ac_exeext conftest.$ac_ext
21204 LIBS=$ac_check_lib_save_LIBS
21205 fi
21206 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21207 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21208 if test $ac_cv_lib_ipc_shmat = yes; then
21209   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21210 fi
21211
21212     fi
21213   fi
21214
21215   # Check for libraries that X11R6 Xt/Xaw programs need.
21216   ac_save_LDFLAGS=$LDFLAGS
21217   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21218   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21219   # check for ICE first), but we must link in the order -lSM -lICE or
21220   # we get undefined symbols.  So assume we have SM if we have ICE.
21221   # These have to be linked with before -lX11, unlike the other
21222   # libraries we check for below, so use a different variable.
21223   # John Interrante, Karl Berry
21224   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21225 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21226 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21227   echo $ECHO_N "(cached) $ECHO_C" >&6
21228 else
21229   ac_check_lib_save_LIBS=$LIBS
21230 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21231 cat >conftest.$ac_ext <<_ACEOF
21232 /* confdefs.h.  */
21233 _ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h.  */
21237
21238 /* Override any GCC internal prototype to avoid an error.
21239    Use char because int might match the return type of a GCC
21240    builtin and then its argument prototype would still apply.  */
21241 #ifdef __cplusplus
21242 extern "C"
21243 #endif
21244 char IceConnectionNumber ();
21245 int
21246 main ()
21247 {
21248 return IceConnectionNumber ();
21249   ;
21250   return 0;
21251 }
21252 _ACEOF
21253 rm -f conftest.$ac_objext conftest$ac_exeext
21254 if { (ac_try="$ac_link"
21255 case "(($ac_try" in
21256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21257   *) ac_try_echo=$ac_try;;
21258 esac
21259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21260   (eval "$ac_link") 2>conftest.er1
21261   ac_status=$?
21262   grep -v '^ *+' conftest.er1 >conftest.err
21263   rm -f conftest.er1
21264   cat conftest.err >&5
21265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266   (exit $ac_status); } &&
21267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21268   { (case "(($ac_try" in
21269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270   *) ac_try_echo=$ac_try;;
21271 esac
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273   (eval "$ac_try") 2>&5
21274   ac_status=$?
21275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276   (exit $ac_status); }; } &&
21277          { ac_try='test -s conftest$ac_exeext'
21278   { (case "(($ac_try" in
21279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280   *) ac_try_echo=$ac_try;;
21281 esac
21282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21283   (eval "$ac_try") 2>&5
21284   ac_status=$?
21285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286   (exit $ac_status); }; }; then
21287   ac_cv_lib_ICE_IceConnectionNumber=yes
21288 else
21289   echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21291
21292         ac_cv_lib_ICE_IceConnectionNumber=no
21293 fi
21294
21295 rm -f core conftest.err conftest.$ac_objext \
21296       conftest$ac_exeext conftest.$ac_ext
21297 LIBS=$ac_check_lib_save_LIBS
21298 fi
21299 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21300 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21301 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21302   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21303 fi
21304
21305   LDFLAGS=$ac_save_LDFLAGS
21306
21307 fi
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337 for ac_header in \
21338         assert.h \
21339         fcntl.h \
21340         grp.h \
21341         pwd.h \
21342         libc.h \
21343         limits.h \
21344         stdarg.h \
21345         stdlib.h \
21346         stdint.h \
21347         string.h \
21348         termios.h \
21349         termcap.h \
21350         term.h \
21351         unistd.h \
21352         sys/bitypes.h \
21353         sys/byteorder.h \
21354         sys/ioctl.h \
21355         sys/select.h \
21356         sys/sockio.h \
21357         sys/time.h \
21358         sys/socket.h \
21359         arpa/nameser.h \
21360         resolv.h \
21361         mtio.h \
21362         sys/mtio.h \
21363         sys/tape.h \
21364         regex.h \
21365
21366 do
21367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21369   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21372   echo $ECHO_N "(cached) $ECHO_C" >&6
21373 fi
21374 ac_res=`eval echo '${'$as_ac_Header'}'`
21375                { echo "$as_me:$LINENO: result: $ac_res" >&5
21376 echo "${ECHO_T}$ac_res" >&6; }
21377 else
21378   # Is the header compilable?
21379 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21380 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21381 cat >conftest.$ac_ext <<_ACEOF
21382 /* confdefs.h.  */
21383 _ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h.  */
21387 $ac_includes_default
21388 #include <$ac_header>
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394   *) ac_try_echo=$ac_try;;
21395 esac
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397   (eval "$ac_compile") 2>conftest.er1
21398   ac_status=$?
21399   grep -v '^ *+' conftest.er1 >conftest.err
21400   rm -f conftest.er1
21401   cat conftest.err >&5
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); } &&
21404          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21405   { (case "(($ac_try" in
21406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407   *) ac_try_echo=$ac_try;;
21408 esac
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410   (eval "$ac_try") 2>&5
21411   ac_status=$?
21412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21413   (exit $ac_status); }; } &&
21414          { ac_try='test -s conftest.$ac_objext'
21415   { (case "(($ac_try" in
21416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417   *) ac_try_echo=$ac_try;;
21418 esac
21419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21420   (eval "$ac_try") 2>&5
21421   ac_status=$?
21422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423   (exit $ac_status); }; }; then
21424   ac_header_compiler=yes
21425 else
21426   echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21428
21429         ac_header_compiler=no
21430 fi
21431
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21434 echo "${ECHO_T}$ac_header_compiler" >&6; }
21435
21436 # Is the header present?
21437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21440 /* confdefs.h.  */
21441 _ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h.  */
21445 #include <$ac_header>
21446 _ACEOF
21447 if { (ac_try="$ac_cpp conftest.$ac_ext"
21448 case "(($ac_try" in
21449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450   *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } >/dev/null; then
21460   if test -s conftest.err; then
21461     ac_cpp_err=$ac_c_preproc_warn_flag
21462     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21463   else
21464     ac_cpp_err=
21465   fi
21466 else
21467   ac_cpp_err=yes
21468 fi
21469 if test -z "$ac_cpp_err"; then
21470   ac_header_preproc=yes
21471 else
21472   echo "$as_me: failed program was:" >&5
21473 sed 's/^/| /' conftest.$ac_ext >&5
21474
21475   ac_header_preproc=no
21476 fi
21477
21478 rm -f conftest.err conftest.$ac_ext
21479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21480 echo "${ECHO_T}$ac_header_preproc" >&6; }
21481
21482 # So?  What about this header?
21483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21484   yes:no: )
21485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21489     ac_header_preproc=yes
21490     ;;
21491   no:yes:* )
21492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21504
21505     ;;
21506 esac
21507 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21508 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21510   echo $ECHO_N "(cached) $ECHO_C" >&6
21511 else
21512   eval "$as_ac_Header=\$ac_header_preproc"
21513 fi
21514 ac_res=`eval echo '${'$as_ac_Header'}'`
21515                { echo "$as_me:$LINENO: result: $ac_res" >&5
21516 echo "${ECHO_T}$ac_res" >&6; }
21517
21518 fi
21519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21520   cat >>confdefs.h <<_ACEOF
21521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21522 _ACEOF
21523
21524 fi
21525
21526 done
21527
21528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21530 if test "${ac_cv_header_stdc+set}" = set; then
21531   echo $ECHO_N "(cached) $ECHO_C" >&6
21532 else
21533   cat >conftest.$ac_ext <<_ACEOF
21534 /* confdefs.h.  */
21535 _ACEOF
21536 cat confdefs.h >>conftest.$ac_ext
21537 cat >>conftest.$ac_ext <<_ACEOF
21538 /* end confdefs.h.  */
21539 #include <stdlib.h>
21540 #include <stdarg.h>
21541 #include <string.h>
21542 #include <float.h>
21543
21544 int
21545 main ()
21546 {
21547
21548   ;
21549   return 0;
21550 }
21551 _ACEOF
21552 rm -f conftest.$ac_objext
21553 if { (ac_try="$ac_compile"
21554 case "(($ac_try" in
21555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21556   *) ac_try_echo=$ac_try;;
21557 esac
21558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21559   (eval "$ac_compile") 2>conftest.er1
21560   ac_status=$?
21561   grep -v '^ *+' conftest.er1 >conftest.err
21562   rm -f conftest.er1
21563   cat conftest.err >&5
21564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565   (exit $ac_status); } &&
21566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21567   { (case "(($ac_try" in
21568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21569   *) ac_try_echo=$ac_try;;
21570 esac
21571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21572   (eval "$ac_try") 2>&5
21573   ac_status=$?
21574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575   (exit $ac_status); }; } &&
21576          { ac_try='test -s conftest.$ac_objext'
21577   { (case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_try") 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; }; then
21586   ac_cv_header_stdc=yes
21587 else
21588   echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21590
21591         ac_cv_header_stdc=no
21592 fi
21593
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21595
21596 if test $ac_cv_header_stdc = yes; then
21597   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21598   cat >conftest.$ac_ext <<_ACEOF
21599 /* confdefs.h.  */
21600 _ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h.  */
21604 #include <string.h>
21605
21606 _ACEOF
21607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21608   $EGREP "memchr" >/dev/null 2>&1; then
21609   :
21610 else
21611   ac_cv_header_stdc=no
21612 fi
21613 rm -f conftest*
21614
21615 fi
21616
21617 if test $ac_cv_header_stdc = yes; then
21618   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21619   cat >conftest.$ac_ext <<_ACEOF
21620 /* confdefs.h.  */
21621 _ACEOF
21622 cat confdefs.h >>conftest.$ac_ext
21623 cat >>conftest.$ac_ext <<_ACEOF
21624 /* end confdefs.h.  */
21625 #include <stdlib.h>
21626
21627 _ACEOF
21628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21629   $EGREP "free" >/dev/null 2>&1; then
21630   :
21631 else
21632   ac_cv_header_stdc=no
21633 fi
21634 rm -f conftest*
21635
21636 fi
21637
21638 if test $ac_cv_header_stdc = yes; then
21639   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21640   if test "$cross_compiling" = yes; then
21641   :
21642 else
21643   cat >conftest.$ac_ext <<_ACEOF
21644 /* confdefs.h.  */
21645 _ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h.  */
21649 #include <ctype.h>
21650 #include <stdlib.h>
21651 #if ((' ' & 0x0FF) == 0x020)
21652 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21653 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21654 #else
21655 # define ISLOWER(c) \
21656                    (('a' <= (c) && (c) <= 'i') \
21657                      || ('j' <= (c) && (c) <= 'r') \
21658                      || ('s' <= (c) && (c) <= 'z'))
21659 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21660 #endif
21661
21662 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21663 int
21664 main ()
21665 {
21666   int i;
21667   for (i = 0; i < 256; i++)
21668     if (XOR (islower (i), ISLOWER (i))
21669         || toupper (i) != TOUPPER (i))
21670       return 2;
21671   return 0;
21672 }
21673 _ACEOF
21674 rm -f conftest$ac_exeext
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678   *) ac_try_echo=$ac_try;;
21679 esac
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681   (eval "$ac_link") 2>&5
21682   ac_status=$?
21683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21685   { (case "(($ac_try" in
21686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687   *) ac_try_echo=$ac_try;;
21688 esac
21689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21690   (eval "$ac_try") 2>&5
21691   ac_status=$?
21692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693   (exit $ac_status); }; }; then
21694   :
21695 else
21696   echo "$as_me: program exited with status $ac_status" >&5
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21699
21700 ( exit $ac_status )
21701 ac_cv_header_stdc=no
21702 fi
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21704 fi
21705
21706
21707 fi
21708 fi
21709 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21710 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21711 if test $ac_cv_header_stdc = yes; then
21712
21713 cat >>confdefs.h <<\_ACEOF
21714 #define STDC_HEADERS 1
21715 _ACEOF
21716
21717 fi
21718
21719 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21720 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21721 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21722   echo $ECHO_N "(cached) $ECHO_C" >&6
21723 else
21724   cat >conftest.$ac_ext <<_ACEOF
21725 /* confdefs.h.  */
21726 _ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h.  */
21730 #include <sys/types.h>
21731 int
21732 main ()
21733 {
21734 return makedev(0, 0);
21735   ;
21736   return 0;
21737 }
21738 _ACEOF
21739 rm -f conftest.$ac_objext conftest$ac_exeext
21740 if { (ac_try="$ac_link"
21741 case "(($ac_try" in
21742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21743   *) ac_try_echo=$ac_try;;
21744 esac
21745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21746   (eval "$ac_link") 2>conftest.er1
21747   ac_status=$?
21748   grep -v '^ *+' conftest.er1 >conftest.err
21749   rm -f conftest.er1
21750   cat conftest.err >&5
21751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752   (exit $ac_status); } &&
21753          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21754   { (case "(($ac_try" in
21755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756   *) ac_try_echo=$ac_try;;
21757 esac
21758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21759   (eval "$ac_try") 2>&5
21760   ac_status=$?
21761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762   (exit $ac_status); }; } &&
21763          { ac_try='test -s conftest$ac_exeext'
21764   { (case "(($ac_try" in
21765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766   *) ac_try_echo=$ac_try;;
21767 esac
21768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21769   (eval "$ac_try") 2>&5
21770   ac_status=$?
21771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772   (exit $ac_status); }; }; then
21773   ac_cv_header_sys_types_h_makedev=yes
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778         ac_cv_header_sys_types_h_makedev=no
21779 fi
21780
21781 rm -f core conftest.err conftest.$ac_objext \
21782       conftest$ac_exeext conftest.$ac_ext
21783
21784 fi
21785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21786 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21787
21788 if test $ac_cv_header_sys_types_h_makedev = no; then
21789 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21790   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21791 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21792 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21793   echo $ECHO_N "(cached) $ECHO_C" >&6
21794 fi
21795 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21796 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21797 else
21798   # Is the header compilable?
21799 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21800 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h.  */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h.  */
21807 $ac_includes_default
21808 #include <sys/mkdev.h>
21809 _ACEOF
21810 rm -f conftest.$ac_objext
21811 if { (ac_try="$ac_compile"
21812 case "(($ac_try" in
21813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814   *) ac_try_echo=$ac_try;;
21815 esac
21816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21817   (eval "$ac_compile") 2>conftest.er1
21818   ac_status=$?
21819   grep -v '^ *+' conftest.er1 >conftest.err
21820   rm -f conftest.er1
21821   cat conftest.err >&5
21822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21823   (exit $ac_status); } &&
21824          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21825   { (case "(($ac_try" in
21826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827   *) ac_try_echo=$ac_try;;
21828 esac
21829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21830   (eval "$ac_try") 2>&5
21831   ac_status=$?
21832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833   (exit $ac_status); }; } &&
21834          { ac_try='test -s conftest.$ac_objext'
21835   { (case "(($ac_try" in
21836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21837   *) ac_try_echo=$ac_try;;
21838 esac
21839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21840   (eval "$ac_try") 2>&5
21841   ac_status=$?
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); }; }; then
21844   ac_header_compiler=yes
21845 else
21846   echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21848
21849         ac_header_compiler=no
21850 fi
21851
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21855
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21858 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21860 /* confdefs.h.  */
21861 _ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h.  */
21865 #include <sys/mkdev.h>
21866 _ACEOF
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870   *) ac_try_echo=$ac_try;;
21871 esac
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21874   ac_status=$?
21875   grep -v '^ *+' conftest.er1 >conftest.err
21876   rm -f conftest.er1
21877   cat conftest.err >&5
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } >/dev/null; then
21880   if test -s conftest.err; then
21881     ac_cpp_err=$ac_c_preproc_warn_flag
21882     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21883   else
21884     ac_cpp_err=
21885   fi
21886 else
21887   ac_cpp_err=yes
21888 fi
21889 if test -z "$ac_cpp_err"; then
21890   ac_header_preproc=yes
21891 else
21892   echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895   ac_header_preproc=no
21896 fi
21897
21898 rm -f conftest.err conftest.$ac_ext
21899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21900 echo "${ECHO_T}$ac_header_preproc" >&6; }
21901
21902 # So?  What about this header?
21903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21904   yes:no: )
21905     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
21906 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21907     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
21908 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
21909     ac_header_preproc=yes
21910     ;;
21911   no:yes:* )
21912     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
21913 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
21914     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
21915 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
21916     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
21917 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
21918     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
21919 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
21920     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
21921 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
21922     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
21923 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
21924
21925     ;;
21926 esac
21927 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21928 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21929 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21930   echo $ECHO_N "(cached) $ECHO_C" >&6
21931 else
21932   ac_cv_header_sys_mkdev_h=$ac_header_preproc
21933 fi
21934 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21935 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21936
21937 fi
21938 if test $ac_cv_header_sys_mkdev_h = yes; then
21939
21940 cat >>confdefs.h <<\_ACEOF
21941 #define MAJOR_IN_MKDEV 1
21942 _ACEOF
21943
21944 fi
21945
21946
21947
21948   if test $ac_cv_header_sys_mkdev_h = no; then
21949     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21950   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
21951 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
21952 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
21953   echo $ECHO_N "(cached) $ECHO_C" >&6
21954 fi
21955 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
21956 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
21957 else
21958   # Is the header compilable?
21959 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
21960 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
21961 cat >conftest.$ac_ext <<_ACEOF
21962 /* confdefs.h.  */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h.  */
21967 $ac_includes_default
21968 #include <sys/sysmacros.h>
21969 _ACEOF
21970 rm -f conftest.$ac_objext
21971 if { (ac_try="$ac_compile"
21972 case "(($ac_try" in
21973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974   *) ac_try_echo=$ac_try;;
21975 esac
21976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21977   (eval "$ac_compile") 2>conftest.er1
21978   ac_status=$?
21979   grep -v '^ *+' conftest.er1 >conftest.err
21980   rm -f conftest.er1
21981   cat conftest.err >&5
21982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983   (exit $ac_status); } &&
21984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21985   { (case "(($ac_try" in
21986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987   *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990   (eval "$ac_try") 2>&5
21991   ac_status=$?
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); }; } &&
21994          { ac_try='test -s conftest.$ac_objext'
21995   { (case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_try") 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; }; then
22004   ac_header_compiler=yes
22005 else
22006   echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009         ac_header_compiler=no
22010 fi
22011
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22014 echo "${ECHO_T}$ac_header_compiler" >&6; }
22015
22016 # Is the header present?
22017 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22018 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22019 cat >conftest.$ac_ext <<_ACEOF
22020 /* confdefs.h.  */
22021 _ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h.  */
22025 #include <sys/sysmacros.h>
22026 _ACEOF
22027 if { (ac_try="$ac_cpp conftest.$ac_ext"
22028 case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } >/dev/null; then
22040   if test -s conftest.err; then
22041     ac_cpp_err=$ac_c_preproc_warn_flag
22042     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22043   else
22044     ac_cpp_err=
22045   fi
22046 else
22047   ac_cpp_err=yes
22048 fi
22049 if test -z "$ac_cpp_err"; then
22050   ac_header_preproc=yes
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055   ac_header_preproc=no
22056 fi
22057
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22061
22062 # So?  What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22064   yes:no: )
22065     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22066 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22067     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22068 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22069     ac_header_preproc=yes
22070     ;;
22071   no:yes:* )
22072     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22073 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22074     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22075 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22076     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22077 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22078     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22079 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22080     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22081 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22082     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22083 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22084
22085     ;;
22086 esac
22087 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22088 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22089 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22090   echo $ECHO_N "(cached) $ECHO_C" >&6
22091 else
22092   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22093 fi
22094 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22095 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22096
22097 fi
22098 if test $ac_cv_header_sys_sysmacros_h = yes; then
22099
22100 cat >>confdefs.h <<\_ACEOF
22101 #define MAJOR_IN_SYSMACROS 1
22102 _ACEOF
22103
22104 fi
22105
22106
22107   fi
22108 fi
22109
22110
22111
22112
22113
22114
22115 ac_header_dirent=no
22116 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22117   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22118 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22119 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22121   echo $ECHO_N "(cached) $ECHO_C" >&6
22122 else
22123   cat >conftest.$ac_ext <<_ACEOF
22124 /* confdefs.h.  */
22125 _ACEOF
22126 cat confdefs.h >>conftest.$ac_ext
22127 cat >>conftest.$ac_ext <<_ACEOF
22128 /* end confdefs.h.  */
22129 #include <sys/types.h>
22130 #include <$ac_hdr>
22131
22132 int
22133 main ()
22134 {
22135 if ((DIR *) 0)
22136 return 0;
22137   ;
22138   return 0;
22139 }
22140 _ACEOF
22141 rm -f conftest.$ac_objext
22142 if { (ac_try="$ac_compile"
22143 case "(($ac_try" in
22144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22145   *) ac_try_echo=$ac_try;;
22146 esac
22147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22148   (eval "$ac_compile") 2>conftest.er1
22149   ac_status=$?
22150   grep -v '^ *+' conftest.er1 >conftest.err
22151   rm -f conftest.er1
22152   cat conftest.err >&5
22153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154   (exit $ac_status); } &&
22155          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22156   { (case "(($ac_try" in
22157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22158   *) ac_try_echo=$ac_try;;
22159 esac
22160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22161   (eval "$ac_try") 2>&5
22162   ac_status=$?
22163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164   (exit $ac_status); }; } &&
22165          { ac_try='test -s conftest.$ac_objext'
22166   { (case "(($ac_try" in
22167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168   *) ac_try_echo=$ac_try;;
22169 esac
22170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22171   (eval "$ac_try") 2>&5
22172   ac_status=$?
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); }; }; then
22175   eval "$as_ac_Header=yes"
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 sed 's/^/| /' conftest.$ac_ext >&5
22179
22180         eval "$as_ac_Header=no"
22181 fi
22182
22183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22184 fi
22185 ac_res=`eval echo '${'$as_ac_Header'}'`
22186                { echo "$as_me:$LINENO: result: $ac_res" >&5
22187 echo "${ECHO_T}$ac_res" >&6; }
22188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22189   cat >>confdefs.h <<_ACEOF
22190 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22191 _ACEOF
22192
22193 ac_header_dirent=$ac_hdr; break
22194 fi
22195
22196 done
22197 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22198 if test $ac_header_dirent = dirent.h; then
22199   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22200 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22201 if test "${ac_cv_search_opendir+set}" = set; then
22202   echo $ECHO_N "(cached) $ECHO_C" >&6
22203 else
22204   ac_func_search_save_LIBS=$LIBS
22205 cat >conftest.$ac_ext <<_ACEOF
22206 /* confdefs.h.  */
22207 _ACEOF
22208 cat confdefs.h >>conftest.$ac_ext
22209 cat >>conftest.$ac_ext <<_ACEOF
22210 /* end confdefs.h.  */
22211
22212 /* Override any GCC internal prototype to avoid an error.
22213    Use char because int might match the return type of a GCC
22214    builtin and then its argument prototype would still apply.  */
22215 #ifdef __cplusplus
22216 extern "C"
22217 #endif
22218 char opendir ();
22219 int
22220 main ()
22221 {
22222 return opendir ();
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 for ac_lib in '' dir; do
22228   if test -z "$ac_lib"; then
22229     ac_res="none required"
22230   else
22231     ac_res=-l$ac_lib
22232     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22233   fi
22234   rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22241   (eval "$ac_link") 2>conftest.er1
22242   ac_status=$?
22243   grep -v '^ *+' conftest.er1 >conftest.err
22244   rm -f conftest.er1
22245   cat conftest.err >&5
22246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22247   (exit $ac_status); } &&
22248          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22249   { (case "(($ac_try" in
22250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22251   *) ac_try_echo=$ac_try;;
22252 esac
22253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22254   (eval "$ac_try") 2>&5
22255   ac_status=$?
22256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257   (exit $ac_status); }; } &&
22258          { ac_try='test -s conftest$ac_exeext'
22259   { (case "(($ac_try" in
22260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22261   *) ac_try_echo=$ac_try;;
22262 esac
22263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22264   (eval "$ac_try") 2>&5
22265   ac_status=$?
22266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267   (exit $ac_status); }; }; then
22268   ac_cv_search_opendir=$ac_res
22269 else
22270   echo "$as_me: failed program was:" >&5
22271 sed 's/^/| /' conftest.$ac_ext >&5
22272
22273
22274 fi
22275
22276 rm -f core conftest.err conftest.$ac_objext \
22277       conftest$ac_exeext
22278   if test "${ac_cv_search_opendir+set}" = set; then
22279   break
22280 fi
22281 done
22282 if test "${ac_cv_search_opendir+set}" = set; then
22283   :
22284 else
22285   ac_cv_search_opendir=no
22286 fi
22287 rm conftest.$ac_ext
22288 LIBS=$ac_func_search_save_LIBS
22289 fi
22290 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22291 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22292 ac_res=$ac_cv_search_opendir
22293 if test "$ac_res" != no; then
22294   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22295
22296 fi
22297
22298 else
22299   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22300 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22301 if test "${ac_cv_search_opendir+set}" = set; then
22302   echo $ECHO_N "(cached) $ECHO_C" >&6
22303 else
22304   ac_func_search_save_LIBS=$LIBS
22305 cat >conftest.$ac_ext <<_ACEOF
22306 /* confdefs.h.  */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h.  */
22311
22312 /* Override any GCC internal prototype to avoid an error.
22313    Use char because int might match the return type of a GCC
22314    builtin and then its argument prototype would still apply.  */
22315 #ifdef __cplusplus
22316 extern "C"
22317 #endif
22318 char opendir ();
22319 int
22320 main ()
22321 {
22322 return opendir ();
22323   ;
22324   return 0;
22325 }
22326 _ACEOF
22327 for ac_lib in '' x; do
22328   if test -z "$ac_lib"; then
22329     ac_res="none required"
22330   else
22331     ac_res=-l$ac_lib
22332     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22333   fi
22334   rm -f conftest.$ac_objext conftest$ac_exeext
22335 if { (ac_try="$ac_link"
22336 case "(($ac_try" in
22337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338   *) ac_try_echo=$ac_try;;
22339 esac
22340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22341   (eval "$ac_link") 2>conftest.er1
22342   ac_status=$?
22343   grep -v '^ *+' conftest.er1 >conftest.err
22344   rm -f conftest.er1
22345   cat conftest.err >&5
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); } &&
22348          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22349   { (case "(($ac_try" in
22350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22351   *) ac_try_echo=$ac_try;;
22352 esac
22353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22354   (eval "$ac_try") 2>&5
22355   ac_status=$?
22356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357   (exit $ac_status); }; } &&
22358          { ac_try='test -s conftest$ac_exeext'
22359   { (case "(($ac_try" in
22360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22361   *) ac_try_echo=$ac_try;;
22362 esac
22363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22364   (eval "$ac_try") 2>&5
22365   ac_status=$?
22366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22367   (exit $ac_status); }; }; then
22368   ac_cv_search_opendir=$ac_res
22369 else
22370   echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext \
22377       conftest$ac_exeext
22378   if test "${ac_cv_search_opendir+set}" = set; then
22379   break
22380 fi
22381 done
22382 if test "${ac_cv_search_opendir+set}" = set; then
22383   :
22384 else
22385   ac_cv_search_opendir=no
22386 fi
22387 rm conftest.$ac_ext
22388 LIBS=$ac_func_search_save_LIBS
22389 fi
22390 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22391 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22392 ac_res=$ac_cv_search_opendir
22393 if test "$ac_res" != no; then
22394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22395
22396 fi
22397
22398 fi
22399
22400 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22401 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22402 if test "${ac_cv_header_stat_broken+set}" = set; then
22403   echo $ECHO_N "(cached) $ECHO_C" >&6
22404 else
22405   cat >conftest.$ac_ext <<_ACEOF
22406 /* confdefs.h.  */
22407 _ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h.  */
22411 #include <sys/types.h>
22412 #include <sys/stat.h>
22413
22414 #if defined S_ISBLK && defined S_IFDIR
22415 # if S_ISBLK (S_IFDIR)
22416 You lose.
22417 # endif
22418 #endif
22419
22420 #if defined S_ISBLK && defined S_IFCHR
22421 # if S_ISBLK (S_IFCHR)
22422 You lose.
22423 # endif
22424 #endif
22425
22426 #if defined S_ISLNK && defined S_IFREG
22427 # if S_ISLNK (S_IFREG)
22428 You lose.
22429 # endif
22430 #endif
22431
22432 #if defined S_ISSOCK && defined S_IFREG
22433 # if S_ISSOCK (S_IFREG)
22434 You lose.
22435 # endif
22436 #endif
22437
22438 _ACEOF
22439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22440   $EGREP "You lose" >/dev/null 2>&1; then
22441   ac_cv_header_stat_broken=yes
22442 else
22443   ac_cv_header_stat_broken=no
22444 fi
22445 rm -f conftest*
22446
22447 fi
22448 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22449 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22450 if test $ac_cv_header_stat_broken = yes; then
22451
22452 cat >>confdefs.h <<\_ACEOF
22453 #define STAT_MACROS_BROKEN 1
22454 _ACEOF
22455
22456 fi
22457
22458 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22459 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22460 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22461   echo $ECHO_N "(cached) $ECHO_C" >&6
22462 else
22463   cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469 #include <sys/types.h>
22470 #include <sys/wait.h>
22471 #ifndef WEXITSTATUS
22472 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22473 #endif
22474 #ifndef WIFEXITED
22475 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22476 #endif
22477
22478 int
22479 main ()
22480 {
22481   int s;
22482   wait (&s);
22483   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22484   ;
22485   return 0;
22486 }
22487 _ACEOF
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492   *) ac_try_echo=$ac_try;;
22493 esac
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495   (eval "$ac_compile") 2>conftest.er1
22496   ac_status=$?
22497   grep -v '^ *+' conftest.er1 >conftest.err
22498   rm -f conftest.er1
22499   cat conftest.err >&5
22500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501   (exit $ac_status); } &&
22502          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22503   { (case "(($ac_try" in
22504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505   *) ac_try_echo=$ac_try;;
22506 esac
22507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22508   (eval "$ac_try") 2>&5
22509   ac_status=$?
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); }; } &&
22512          { ac_try='test -s conftest.$ac_objext'
22513   { (case "(($ac_try" in
22514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515   *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518   (eval "$ac_try") 2>&5
22519   ac_status=$?
22520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521   (exit $ac_status); }; }; then
22522   ac_cv_header_sys_wait_h=yes
22523 else
22524   echo "$as_me: failed program was:" >&5
22525 sed 's/^/| /' conftest.$ac_ext >&5
22526
22527         ac_cv_header_sys_wait_h=no
22528 fi
22529
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22533 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22534 if test $ac_cv_header_sys_wait_h = yes; then
22535
22536 cat >>confdefs.h <<\_ACEOF
22537 #define HAVE_SYS_WAIT_H 1
22538 _ACEOF
22539
22540 fi
22541
22542 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22543 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22544 if test "${ac_cv_header_time+set}" = set; then
22545   echo $ECHO_N "(cached) $ECHO_C" >&6
22546 else
22547   cat >conftest.$ac_ext <<_ACEOF
22548 /* confdefs.h.  */
22549 _ACEOF
22550 cat confdefs.h >>conftest.$ac_ext
22551 cat >>conftest.$ac_ext <<_ACEOF
22552 /* end confdefs.h.  */
22553 #include <sys/types.h>
22554 #include <sys/time.h>
22555 #include <time.h>
22556
22557 int
22558 main ()
22559 {
22560 if ((struct tm *) 0)
22561 return 0;
22562   ;
22563   return 0;
22564 }
22565 _ACEOF
22566 rm -f conftest.$ac_objext
22567 if { (ac_try="$ac_compile"
22568 case "(($ac_try" in
22569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22570   *) ac_try_echo=$ac_try;;
22571 esac
22572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22573   (eval "$ac_compile") 2>conftest.er1
22574   ac_status=$?
22575   grep -v '^ *+' conftest.er1 >conftest.err
22576   rm -f conftest.er1
22577   cat conftest.err >&5
22578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579   (exit $ac_status); } &&
22580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22581   { (case "(($ac_try" in
22582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22583   *) ac_try_echo=$ac_try;;
22584 esac
22585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22586   (eval "$ac_try") 2>&5
22587   ac_status=$?
22588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22589   (exit $ac_status); }; } &&
22590          { ac_try='test -s conftest.$ac_objext'
22591   { (case "(($ac_try" in
22592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22593   *) ac_try_echo=$ac_try;;
22594 esac
22595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22596   (eval "$ac_try") 2>&5
22597   ac_status=$?
22598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599   (exit $ac_status); }; }; then
22600   ac_cv_header_time=yes
22601 else
22602   echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22604
22605         ac_cv_header_time=no
22606 fi
22607
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609 fi
22610 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22611 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22612 if test $ac_cv_header_time = yes; then
22613
22614 cat >>confdefs.h <<\_ACEOF
22615 #define TIME_WITH_SYS_TIME 1
22616 _ACEOF
22617
22618 fi
22619
22620 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22621 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22622 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22623   echo $ECHO_N "(cached) $ECHO_C" >&6
22624 else
22625   cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h.  */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h.  */
22631 $ac_includes_default
22632 int
22633 main ()
22634 {
22635 static struct stat ac_aggr;
22636 if (ac_aggr.st_blksize)
22637 return 0;
22638   ;
22639   return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646   *) ac_try_echo=$ac_try;;
22647 esac
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649   (eval "$ac_compile") 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } &&
22656          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22657   { (case "(($ac_try" in
22658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22659   *) ac_try_echo=$ac_try;;
22660 esac
22661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22662   (eval "$ac_try") 2>&5
22663   ac_status=$?
22664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665   (exit $ac_status); }; } &&
22666          { ac_try='test -s conftest.$ac_objext'
22667   { (case "(($ac_try" in
22668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22669   *) ac_try_echo=$ac_try;;
22670 esac
22671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22672   (eval "$ac_try") 2>&5
22673   ac_status=$?
22674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675   (exit $ac_status); }; }; then
22676   ac_cv_member_struct_stat_st_blksize=yes
22677 else
22678   echo "$as_me: failed program was:" >&5
22679 sed 's/^/| /' conftest.$ac_ext >&5
22680
22681         cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688 int
22689 main ()
22690 {
22691 static struct stat ac_aggr;
22692 if (sizeof ac_aggr.st_blksize)
22693 return 0;
22694   ;
22695   return 0;
22696 }
22697 _ACEOF
22698 rm -f conftest.$ac_objext
22699 if { (ac_try="$ac_compile"
22700 case "(($ac_try" in
22701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22702   *) ac_try_echo=$ac_try;;
22703 esac
22704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22705   (eval "$ac_compile") 2>conftest.er1
22706   ac_status=$?
22707   grep -v '^ *+' conftest.er1 >conftest.err
22708   rm -f conftest.er1
22709   cat conftest.err >&5
22710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22711   (exit $ac_status); } &&
22712          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22713   { (case "(($ac_try" in
22714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22715   *) ac_try_echo=$ac_try;;
22716 esac
22717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22718   (eval "$ac_try") 2>&5
22719   ac_status=$?
22720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721   (exit $ac_status); }; } &&
22722          { ac_try='test -s conftest.$ac_objext'
22723   { (case "(($ac_try" in
22724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725   *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728   (eval "$ac_try") 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); }; }; then
22732   ac_cv_member_struct_stat_st_blksize=yes
22733 else
22734   echo "$as_me: failed program was:" >&5
22735 sed 's/^/| /' conftest.$ac_ext >&5
22736
22737         ac_cv_member_struct_stat_st_blksize=no
22738 fi
22739
22740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22741 fi
22742
22743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22744 fi
22745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22746 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22747 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22748
22749 cat >>confdefs.h <<_ACEOF
22750 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22751 _ACEOF
22752
22753
22754 cat >>confdefs.h <<\_ACEOF
22755 #define HAVE_ST_BLKSIZE 1
22756 _ACEOF
22757
22758 fi
22759
22760
22761 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22762 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22763 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22764   echo $ECHO_N "(cached) $ECHO_C" >&6
22765 else
22766   cat >conftest.$ac_ext <<_ACEOF
22767 /* confdefs.h.  */
22768 _ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h.  */
22772 $ac_includes_default
22773 int
22774 main ()
22775 {
22776 static struct stat ac_aggr;
22777 if (ac_aggr.st_blocks)
22778 return 0;
22779   ;
22780   return 0;
22781 }
22782 _ACEOF
22783 rm -f conftest.$ac_objext
22784 if { (ac_try="$ac_compile"
22785 case "(($ac_try" in
22786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787   *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790   (eval "$ac_compile") 2>conftest.er1
22791   ac_status=$?
22792   grep -v '^ *+' conftest.er1 >conftest.err
22793   rm -f conftest.er1
22794   cat conftest.err >&5
22795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796   (exit $ac_status); } &&
22797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22798   { (case "(($ac_try" in
22799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800   *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803   (eval "$ac_try") 2>&5
22804   ac_status=$?
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); }; } &&
22807          { ac_try='test -s conftest.$ac_objext'
22808   { (case "(($ac_try" in
22809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810   *) ac_try_echo=$ac_try;;
22811 esac
22812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22813   (eval "$ac_try") 2>&5
22814   ac_status=$?
22815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816   (exit $ac_status); }; }; then
22817   ac_cv_member_struct_stat_st_blocks=yes
22818 else
22819   echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22821
22822         cat >conftest.$ac_ext <<_ACEOF
22823 /* confdefs.h.  */
22824 _ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h.  */
22828 $ac_includes_default
22829 int
22830 main ()
22831 {
22832 static struct stat ac_aggr;
22833 if (sizeof ac_aggr.st_blocks)
22834 return 0;
22835   ;
22836   return 0;
22837 }
22838 _ACEOF
22839 rm -f conftest.$ac_objext
22840 if { (ac_try="$ac_compile"
22841 case "(($ac_try" in
22842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843   *) ac_try_echo=$ac_try;;
22844 esac
22845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22846   (eval "$ac_compile") 2>conftest.er1
22847   ac_status=$?
22848   grep -v '^ *+' conftest.er1 >conftest.err
22849   rm -f conftest.er1
22850   cat conftest.err >&5
22851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852   (exit $ac_status); } &&
22853          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22854   { (case "(($ac_try" in
22855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22856   *) ac_try_echo=$ac_try;;
22857 esac
22858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22859   (eval "$ac_try") 2>&5
22860   ac_status=$?
22861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22862   (exit $ac_status); }; } &&
22863          { ac_try='test -s conftest.$ac_objext'
22864   { (case "(($ac_try" in
22865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22866   *) ac_try_echo=$ac_try;;
22867 esac
22868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22869   (eval "$ac_try") 2>&5
22870   ac_status=$?
22871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22872   (exit $ac_status); }; }; then
22873   ac_cv_member_struct_stat_st_blocks=yes
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878         ac_cv_member_struct_stat_st_blocks=no
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 fi
22883
22884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22885 fi
22886 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22887 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22888 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22889
22890 cat >>confdefs.h <<_ACEOF
22891 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22892 _ACEOF
22893
22894
22895 cat >>confdefs.h <<\_ACEOF
22896 #define HAVE_ST_BLOCKS 1
22897 _ACEOF
22898
22899 else
22900   case " $LIBOBJS " in
22901   *" fileblocks.$ac_objext "* ) ;;
22902   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22903  ;;
22904 esac
22905
22906 fi
22907
22908
22909 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22910 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22911 if test "${ac_cv_struct_tm+set}" = set; then
22912   echo $ECHO_N "(cached) $ECHO_C" >&6
22913 else
22914   cat >conftest.$ac_ext <<_ACEOF
22915 /* confdefs.h.  */
22916 _ACEOF
22917 cat confdefs.h >>conftest.$ac_ext
22918 cat >>conftest.$ac_ext <<_ACEOF
22919 /* end confdefs.h.  */
22920 #include <sys/types.h>
22921 #include <time.h>
22922
22923 int
22924 main ()
22925 {
22926 struct tm *tp; tp->tm_sec;
22927   ;
22928   return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext
22932 if { (ac_try="$ac_compile"
22933 case "(($ac_try" in
22934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935   *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938   (eval "$ac_compile") 2>conftest.er1
22939   ac_status=$?
22940   grep -v '^ *+' conftest.er1 >conftest.err
22941   rm -f conftest.er1
22942   cat conftest.err >&5
22943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944   (exit $ac_status); } &&
22945          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22946   { (case "(($ac_try" in
22947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22948   *) ac_try_echo=$ac_try;;
22949 esac
22950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22951   (eval "$ac_try") 2>&5
22952   ac_status=$?
22953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22954   (exit $ac_status); }; } &&
22955          { ac_try='test -s conftest.$ac_objext'
22956   { (case "(($ac_try" in
22957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958   *) ac_try_echo=$ac_try;;
22959 esac
22960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22961   (eval "$ac_try") 2>&5
22962   ac_status=$?
22963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964   (exit $ac_status); }; }; then
22965   ac_cv_struct_tm=time.h
22966 else
22967   echo "$as_me: failed program was:" >&5
22968 sed 's/^/| /' conftest.$ac_ext >&5
22969
22970         ac_cv_struct_tm=sys/time.h
22971 fi
22972
22973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22974 fi
22975 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22976 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22977 if test $ac_cv_struct_tm = sys/time.h; then
22978
22979 cat >>confdefs.h <<\_ACEOF
22980 #define TM_IN_SYS_TIME 1
22981 _ACEOF
22982
22983 fi
22984
22985 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
22986 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
22987 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
22988   echo $ECHO_N "(cached) $ECHO_C" >&6
22989 else
22990   cat >conftest.$ac_ext <<_ACEOF
22991 /* confdefs.h.  */
22992 _ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h.  */
22996 #include <sys/types.h>
22997 #include <$ac_cv_struct_tm>
22998
22999
23000 int
23001 main ()
23002 {
23003 static struct tm ac_aggr;
23004 if (ac_aggr.tm_zone)
23005 return 0;
23006   ;
23007   return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014   *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017   (eval "$ac_compile") 2>conftest.er1
23018   ac_status=$?
23019   grep -v '^ *+' conftest.er1 >conftest.err
23020   rm -f conftest.er1
23021   cat conftest.err >&5
23022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023   (exit $ac_status); } &&
23024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23025   { (case "(($ac_try" in
23026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23027   *) ac_try_echo=$ac_try;;
23028 esac
23029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23030   (eval "$ac_try") 2>&5
23031   ac_status=$?
23032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033   (exit $ac_status); }; } &&
23034          { ac_try='test -s conftest.$ac_objext'
23035   { (case "(($ac_try" in
23036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23037   *) ac_try_echo=$ac_try;;
23038 esac
23039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23040   (eval "$ac_try") 2>&5
23041   ac_status=$?
23042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043   (exit $ac_status); }; }; then
23044   ac_cv_member_struct_tm_tm_zone=yes
23045 else
23046   echo "$as_me: failed program was:" >&5
23047 sed 's/^/| /' conftest.$ac_ext >&5
23048
23049         cat >conftest.$ac_ext <<_ACEOF
23050 /* confdefs.h.  */
23051 _ACEOF
23052 cat confdefs.h >>conftest.$ac_ext
23053 cat >>conftest.$ac_ext <<_ACEOF
23054 /* end confdefs.h.  */
23055 #include <sys/types.h>
23056 #include <$ac_cv_struct_tm>
23057
23058
23059 int
23060 main ()
23061 {
23062 static struct tm ac_aggr;
23063 if (sizeof ac_aggr.tm_zone)
23064 return 0;
23065   ;
23066   return 0;
23067 }
23068 _ACEOF
23069 rm -f conftest.$ac_objext
23070 if { (ac_try="$ac_compile"
23071 case "(($ac_try" in
23072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23073   *) ac_try_echo=$ac_try;;
23074 esac
23075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23076   (eval "$ac_compile") 2>conftest.er1
23077   ac_status=$?
23078   grep -v '^ *+' conftest.er1 >conftest.err
23079   rm -f conftest.er1
23080   cat conftest.err >&5
23081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082   (exit $ac_status); } &&
23083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23084   { (case "(($ac_try" in
23085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086   *) ac_try_echo=$ac_try;;
23087 esac
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089   (eval "$ac_try") 2>&5
23090   ac_status=$?
23091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23092   (exit $ac_status); }; } &&
23093          { ac_try='test -s conftest.$ac_objext'
23094   { (case "(($ac_try" in
23095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096   *) ac_try_echo=$ac_try;;
23097 esac
23098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23099   (eval "$ac_try") 2>&5
23100   ac_status=$?
23101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102   (exit $ac_status); }; }; then
23103   ac_cv_member_struct_tm_tm_zone=yes
23104 else
23105   echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108         ac_cv_member_struct_tm_tm_zone=no
23109 fi
23110
23111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112 fi
23113
23114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 fi
23116 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23117 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23118 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23119
23120 cat >>confdefs.h <<_ACEOF
23121 #define HAVE_STRUCT_TM_TM_ZONE 1
23122 _ACEOF
23123
23124
23125 fi
23126
23127 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23128
23129 cat >>confdefs.h <<\_ACEOF
23130 #define HAVE_TM_ZONE 1
23131 _ACEOF
23132
23133 else
23134   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23135 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23136 if test "${ac_cv_have_decl_tzname+set}" = set; then
23137   echo $ECHO_N "(cached) $ECHO_C" >&6
23138 else
23139   cat >conftest.$ac_ext <<_ACEOF
23140 /* confdefs.h.  */
23141 _ACEOF
23142 cat confdefs.h >>conftest.$ac_ext
23143 cat >>conftest.$ac_ext <<_ACEOF
23144 /* end confdefs.h.  */
23145 #include <time.h>
23146
23147 int
23148 main ()
23149 {
23150 #ifndef tzname
23151   char *p = (char *) tzname;
23152   return !p;
23153 #endif
23154
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 rm -f conftest.$ac_objext
23160 if { (ac_try="$ac_compile"
23161 case "(($ac_try" in
23162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23163   *) ac_try_echo=$ac_try;;
23164 esac
23165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23166   (eval "$ac_compile") 2>conftest.er1
23167   ac_status=$?
23168   grep -v '^ *+' conftest.er1 >conftest.err
23169   rm -f conftest.er1
23170   cat conftest.err >&5
23171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172   (exit $ac_status); } &&
23173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23174   { (case "(($ac_try" in
23175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23176   *) ac_try_echo=$ac_try;;
23177 esac
23178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23179   (eval "$ac_try") 2>&5
23180   ac_status=$?
23181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182   (exit $ac_status); }; } &&
23183          { ac_try='test -s conftest.$ac_objext'
23184   { (case "(($ac_try" in
23185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186   *) ac_try_echo=$ac_try;;
23187 esac
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189   (eval "$ac_try") 2>&5
23190   ac_status=$?
23191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23192   (exit $ac_status); }; }; then
23193   ac_cv_have_decl_tzname=yes
23194 else
23195   echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.$ac_ext >&5
23197
23198         ac_cv_have_decl_tzname=no
23199 fi
23200
23201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23202 fi
23203 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23204 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23205 if test $ac_cv_have_decl_tzname = yes; then
23206
23207 cat >>confdefs.h <<_ACEOF
23208 #define HAVE_DECL_TZNAME 1
23209 _ACEOF
23210
23211
23212 else
23213   cat >>confdefs.h <<_ACEOF
23214 #define HAVE_DECL_TZNAME 0
23215 _ACEOF
23216
23217
23218 fi
23219
23220
23221   { echo "$as_me:$LINENO: checking for tzname" >&5
23222 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23223 if test "${ac_cv_var_tzname+set}" = set; then
23224   echo $ECHO_N "(cached) $ECHO_C" >&6
23225 else
23226   cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232 #include <time.h>
23233 #if !HAVE_DECL_TZNAME
23234 extern char *tzname[];
23235 #endif
23236
23237 int
23238 main ()
23239 {
23240 return tzname[0][0];
23241   ;
23242   return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest.$ac_objext conftest$ac_exeext
23246 if { (ac_try="$ac_link"
23247 case "(($ac_try" in
23248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23249   *) ac_try_echo=$ac_try;;
23250 esac
23251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23252   (eval "$ac_link") 2>conftest.er1
23253   ac_status=$?
23254   grep -v '^ *+' conftest.er1 >conftest.err
23255   rm -f conftest.er1
23256   cat conftest.err >&5
23257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258   (exit $ac_status); } &&
23259          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23260   { (case "(($ac_try" in
23261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23262   *) ac_try_echo=$ac_try;;
23263 esac
23264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23265   (eval "$ac_try") 2>&5
23266   ac_status=$?
23267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23268   (exit $ac_status); }; } &&
23269          { ac_try='test -s conftest$ac_exeext'
23270   { (case "(($ac_try" in
23271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23272   *) ac_try_echo=$ac_try;;
23273 esac
23274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23275   (eval "$ac_try") 2>&5
23276   ac_status=$?
23277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278   (exit $ac_status); }; }; then
23279   ac_cv_var_tzname=yes
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23283
23284         ac_cv_var_tzname=no
23285 fi
23286
23287 rm -f core conftest.err conftest.$ac_objext \
23288       conftest$ac_exeext conftest.$ac_ext
23289 fi
23290 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23291 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23292   if test $ac_cv_var_tzname = yes; then
23293
23294 cat >>confdefs.h <<\_ACEOF
23295 #define HAVE_TZNAME 1
23296 _ACEOF
23297
23298   fi
23299 fi
23300
23301
23302 { echo "$as_me:$LINENO: checking for utime.h" >&5
23303 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23304 if test "${ba_cv_header_utime_h+set}" = set; then
23305   echo $ECHO_N "(cached) $ECHO_C" >&6
23306 else
23307   cat >conftest.$ac_ext <<_ACEOF
23308 /* confdefs.h.  */
23309 _ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h.  */
23313
23314 #include <sys/types.h>
23315 #include <utime.h>
23316 int
23317 main ()
23318 {
23319 struct utimbuf foo
23320   ;
23321   return 0;
23322 }
23323 _ACEOF
23324 rm -f conftest.$ac_objext
23325 if { (ac_try="$ac_compile"
23326 case "(($ac_try" in
23327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23328   *) ac_try_echo=$ac_try;;
23329 esac
23330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23331   (eval "$ac_compile") 2>conftest.er1
23332   ac_status=$?
23333   grep -v '^ *+' conftest.er1 >conftest.err
23334   rm -f conftest.er1
23335   cat conftest.err >&5
23336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23337   (exit $ac_status); } &&
23338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23339   { (case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23344   (eval "$ac_try") 2>&5
23345   ac_status=$?
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); }; } &&
23348          { ac_try='test -s conftest.$ac_objext'
23349   { (case "(($ac_try" in
23350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23351   *) ac_try_echo=$ac_try;;
23352 esac
23353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23354   (eval "$ac_try") 2>&5
23355   ac_status=$?
23356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357   (exit $ac_status); }; }; then
23358   ba_cv_header_utime_h=yes
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363         ba_cv_header_utime_h=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 fi
23368 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23369 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23370 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_UTIME_H 1
23372 _ACEOF
23373
23374
23375 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23376 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23377 if test "${ba_cv_header_socklen_t+set}" = set; then
23378   echo $ECHO_N "(cached) $ECHO_C" >&6
23379 else
23380   cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h.  */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h.  */
23386
23387 #include <sys/types.h>
23388 #include <sys/socket.h>
23389 int
23390 main ()
23391 {
23392 socklen_t x
23393   ;
23394   return 0;
23395 }
23396 _ACEOF
23397 rm -f conftest.$ac_objext
23398 if { (ac_try="$ac_compile"
23399 case "(($ac_try" in
23400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401   *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404   (eval "$ac_compile") 2>conftest.er1
23405   ac_status=$?
23406   grep -v '^ *+' conftest.er1 >conftest.err
23407   rm -f conftest.er1
23408   cat conftest.err >&5
23409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410   (exit $ac_status); } &&
23411          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23412   { (case "(($ac_try" in
23413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23414   *) ac_try_echo=$ac_try;;
23415 esac
23416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23417   (eval "$ac_try") 2>&5
23418   ac_status=$?
23419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420   (exit $ac_status); }; } &&
23421          { ac_try='test -s conftest.$ac_objext'
23422   { (case "(($ac_try" in
23423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23424   *) ac_try_echo=$ac_try;;
23425 esac
23426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23427   (eval "$ac_try") 2>&5
23428   ac_status=$?
23429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23430   (exit $ac_status); }; }; then
23431   ba_cv_header_socklen_t=yes
23432 else
23433   echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.$ac_ext >&5
23435
23436         ba_cv_header_socklen_t=no
23437 fi
23438
23439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23440 fi
23441 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23442 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23443 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23444 #define HAVE_SOCKLEN_T 1
23445 _ACEOF
23446
23447
23448 { echo "$as_me:$LINENO: checking for bigendian" >&5
23449 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23450 if test "${ba_cv_bigendian+set}" = set; then
23451   echo $ECHO_N "(cached) $ECHO_C" >&6
23452 else
23453   if test "$cross_compiling" = yes; then
23454   ba_cv_bigendian=no
23455 else
23456   cat >conftest.$ac_ext <<_ACEOF
23457 /* confdefs.h.  */
23458 _ACEOF
23459 cat confdefs.h >>conftest.$ac_ext
23460 cat >>conftest.$ac_ext <<_ACEOF
23461 /* end confdefs.h.  */
23462 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23463 _ACEOF
23464 rm -f conftest$ac_exeext
23465 if { (ac_try="$ac_link"
23466 case "(($ac_try" in
23467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468   *) ac_try_echo=$ac_try;;
23469 esac
23470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23471   (eval "$ac_link") 2>&5
23472   ac_status=$?
23473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23475   { (case "(($ac_try" in
23476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23477   *) ac_try_echo=$ac_try;;
23478 esac
23479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23480   (eval "$ac_try") 2>&5
23481   ac_status=$?
23482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23483   (exit $ac_status); }; }; then
23484   ba_cv_bigendian=yes
23485 else
23486   echo "$as_me: program exited with status $ac_status" >&5
23487 echo "$as_me: failed program was:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23489
23490 ( exit $ac_status )
23491 ba_cv_bigendian=no
23492 fi
23493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23494 fi
23495
23496
23497 fi
23498 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23499 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23500 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23501 #define HAVE_BIGENDIAN 1
23502 _ACEOF
23503
23504
23505 ac_ext=cpp
23506 ac_cpp='$CXXCPP $CPPFLAGS'
23507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23510
23511
23512 { echo "$as_me:$LINENO: checking for typeof" >&5
23513 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23514 if test "${ba_cv_have_typeof+set}" = set; then
23515   echo $ECHO_N "(cached) $ECHO_C" >&6
23516 else
23517   if test "$cross_compiling" = yes; then
23518   ba_cv_have_typeof=no
23519 else
23520   cat >conftest.$ac_ext <<_ACEOF
23521 /* confdefs.h.  */
23522 _ACEOF
23523 cat confdefs.h >>conftest.$ac_ext
23524 cat >>conftest.$ac_ext <<_ACEOF
23525 /* end confdefs.h.  */
23526 main(){char *a = 0; a = (typeof a)a;}
23527 _ACEOF
23528 rm -f conftest$ac_exeext
23529 if { (ac_try="$ac_link"
23530 case "(($ac_try" in
23531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23532   *) ac_try_echo=$ac_try;;
23533 esac
23534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23535   (eval "$ac_link") 2>&5
23536   ac_status=$?
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23539   { (case "(($ac_try" in
23540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23541   *) ac_try_echo=$ac_try;;
23542 esac
23543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23544   (eval "$ac_try") 2>&5
23545   ac_status=$?
23546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547   (exit $ac_status); }; }; then
23548   ba_cv_have_typeof=yes
23549 else
23550   echo "$as_me: program exited with status $ac_status" >&5
23551 echo "$as_me: failed program was:" >&5
23552 sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ( exit $ac_status )
23555 ba_cv_have_typeof=no
23556 fi
23557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23558 fi
23559
23560
23561 fi
23562 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23563 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23564 test $ba_cv_have_typeof = yes &&
23565 cat >>confdefs.h <<\_ACEOF
23566 #define HAVE_TYPEOF 1
23567 _ACEOF
23568
23569 ac_ext=c
23570 ac_cpp='$CPP $CPPFLAGS'
23571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23574
23575
23576 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23577 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23578 if test "${ac_cv_c_const+set}" = set; then
23579   echo $ECHO_N "(cached) $ECHO_C" >&6
23580 else
23581   cat >conftest.$ac_ext <<_ACEOF
23582 /* confdefs.h.  */
23583 _ACEOF
23584 cat confdefs.h >>conftest.$ac_ext
23585 cat >>conftest.$ac_ext <<_ACEOF
23586 /* end confdefs.h.  */
23587
23588 int
23589 main ()
23590 {
23591 /* FIXME: Include the comments suggested by Paul. */
23592 #ifndef __cplusplus
23593   /* Ultrix mips cc rejects this.  */
23594   typedef int charset[2];
23595   const charset x;
23596   /* SunOS 4.1.1 cc rejects this.  */
23597   char const *const *ccp;
23598   char **p;
23599   /* NEC SVR4.0.2 mips cc rejects this.  */
23600   struct point {int x, y;};
23601   static struct point const zero = {0,0};
23602   /* AIX XL C 1.02.0.0 rejects this.
23603      It does not let you subtract one const X* pointer from another in
23604      an arm of an if-expression whose if-part is not a constant
23605      expression */
23606   const char *g = "string";
23607   ccp = &g + (g ? g-g : 0);
23608   /* HPUX 7.0 cc rejects these. */
23609   ++ccp;
23610   p = (char**) ccp;
23611   ccp = (char const *const *) p;
23612   { /* SCO 3.2v4 cc rejects this.  */
23613     char *t;
23614     char const *s = 0 ? (char *) 0 : (char const *) 0;
23615
23616     *t++ = 0;
23617     if (s) return 0;
23618   }
23619   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23620     int x[] = {25, 17};
23621     const int *foo = &x[0];
23622     ++foo;
23623   }
23624   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23625     typedef const int *iptr;
23626     iptr p = 0;
23627     ++p;
23628   }
23629   { /* AIX XL C 1.02.0.0 rejects this saying
23630        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23631     struct s { int j; const int *ap[3]; };
23632     struct s *b; b->j = 5;
23633   }
23634   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23635     const int foo = 10;
23636     if (!foo) return 0;
23637   }
23638   return !x[0] && !zero.x;
23639 #endif
23640
23641   ;
23642   return 0;
23643 }
23644 _ACEOF
23645 rm -f conftest.$ac_objext
23646 if { (ac_try="$ac_compile"
23647 case "(($ac_try" in
23648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23649   *) ac_try_echo=$ac_try;;
23650 esac
23651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23652   (eval "$ac_compile") 2>conftest.er1
23653   ac_status=$?
23654   grep -v '^ *+' conftest.er1 >conftest.err
23655   rm -f conftest.er1
23656   cat conftest.err >&5
23657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23658   (exit $ac_status); } &&
23659          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23660   { (case "(($ac_try" in
23661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23662   *) ac_try_echo=$ac_try;;
23663 esac
23664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23665   (eval "$ac_try") 2>&5
23666   ac_status=$?
23667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668   (exit $ac_status); }; } &&
23669          { ac_try='test -s conftest.$ac_objext'
23670   { (case "(($ac_try" in
23671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672   *) ac_try_echo=$ac_try;;
23673 esac
23674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23675   (eval "$ac_try") 2>&5
23676   ac_status=$?
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); }; }; then
23679   ac_cv_c_const=yes
23680 else
23681   echo "$as_me: failed program was:" >&5
23682 sed 's/^/| /' conftest.$ac_ext >&5
23683
23684         ac_cv_c_const=no
23685 fi
23686
23687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23688 fi
23689 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23690 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23691 if test $ac_cv_c_const = no; then
23692
23693 cat >>confdefs.h <<\_ACEOF
23694 #define const
23695 _ACEOF
23696
23697 fi
23698
23699
23700
23701 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23702 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23703 fstype=no
23704 # The order of these tests is important.
23705 cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711 #include <sys/statvfs.h>
23712 #include <sys/fstyp.h>
23713 _ACEOF
23714 if { (ac_try="$ac_cpp conftest.$ac_ext"
23715 case "(($ac_try" in
23716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717   *) ac_try_echo=$ac_try;;
23718 esac
23719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23721   ac_status=$?
23722   grep -v '^ *+' conftest.er1 >conftest.err
23723   rm -f conftest.er1
23724   cat conftest.err >&5
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } >/dev/null; then
23727   if test -s conftest.err; then
23728     ac_cpp_err=$ac_c_preproc_warn_flag
23729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23730   else
23731     ac_cpp_err=
23732   fi
23733 else
23734   ac_cpp_err=yes
23735 fi
23736 if test -z "$ac_cpp_err"; then
23737   cat >>confdefs.h <<\_ACEOF
23738 #define FSTYPE_STATVFS 1
23739 _ACEOF
23740  fstype=SVR4
23741 else
23742   echo "$as_me: failed program was:" >&5
23743 sed 's/^/| /' conftest.$ac_ext >&5
23744
23745
23746 fi
23747
23748 rm -f conftest.err conftest.$ac_ext
23749 if test $fstype = no; then
23750 cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h.  */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h.  */
23756 #include <sys/statfs.h>
23757 #include <sys/fstyp.h>
23758 _ACEOF
23759 if { (ac_try="$ac_cpp conftest.$ac_ext"
23760 case "(($ac_try" in
23761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762   *) ac_try_echo=$ac_try;;
23763 esac
23764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23766   ac_status=$?
23767   grep -v '^ *+' conftest.er1 >conftest.err
23768   rm -f conftest.er1
23769   cat conftest.err >&5
23770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23771   (exit $ac_status); } >/dev/null; then
23772   if test -s conftest.err; then
23773     ac_cpp_err=$ac_c_preproc_warn_flag
23774     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23775   else
23776     ac_cpp_err=
23777   fi
23778 else
23779   ac_cpp_err=yes
23780 fi
23781 if test -z "$ac_cpp_err"; then
23782   cat >>confdefs.h <<\_ACEOF
23783 #define FSTYPE_USG_STATFS 1
23784 _ACEOF
23785  fstype=SVR3
23786 else
23787   echo "$as_me: failed program was:" >&5
23788 sed 's/^/| /' conftest.$ac_ext >&5
23789
23790
23791 fi
23792
23793 rm -f conftest.err conftest.$ac_ext
23794 fi
23795 if test $fstype = no; then
23796 cat >conftest.$ac_ext <<_ACEOF
23797 /* confdefs.h.  */
23798 _ACEOF
23799 cat confdefs.h >>conftest.$ac_ext
23800 cat >>conftest.$ac_ext <<_ACEOF
23801 /* end confdefs.h.  */
23802 #include <sys/statfs.h>
23803 #include <sys/vmount.h>
23804 _ACEOF
23805 if { (ac_try="$ac_cpp conftest.$ac_ext"
23806 case "(($ac_try" in
23807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23808   *) ac_try_echo=$ac_try;;
23809 esac
23810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23812   ac_status=$?
23813   grep -v '^ *+' conftest.er1 >conftest.err
23814   rm -f conftest.er1
23815   cat conftest.err >&5
23816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817   (exit $ac_status); } >/dev/null; then
23818   if test -s conftest.err; then
23819     ac_cpp_err=$ac_c_preproc_warn_flag
23820     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23821   else
23822     ac_cpp_err=
23823   fi
23824 else
23825   ac_cpp_err=yes
23826 fi
23827 if test -z "$ac_cpp_err"; then
23828   cat >>confdefs.h <<\_ACEOF
23829 #define FSTYPE_AIX_STATFS 1
23830 _ACEOF
23831  fstype=AIX
23832 else
23833   echo "$as_me: failed program was:" >&5
23834 sed 's/^/| /' conftest.$ac_ext >&5
23835
23836
23837 fi
23838
23839 rm -f conftest.err conftest.$ac_ext
23840 fi
23841 if test $fstype = no; then
23842 cat >conftest.$ac_ext <<_ACEOF
23843 /* confdefs.h.  */
23844 _ACEOF
23845 cat confdefs.h >>conftest.$ac_ext
23846 cat >>conftest.$ac_ext <<_ACEOF
23847 /* end confdefs.h.  */
23848 #include <mntent.h>
23849 _ACEOF
23850 if { (ac_try="$ac_cpp conftest.$ac_ext"
23851 case "(($ac_try" in
23852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23853   *) ac_try_echo=$ac_try;;
23854 esac
23855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23856   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23857   ac_status=$?
23858   grep -v '^ *+' conftest.er1 >conftest.err
23859   rm -f conftest.er1
23860   cat conftest.err >&5
23861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862   (exit $ac_status); } >/dev/null; then
23863   if test -s conftest.err; then
23864     ac_cpp_err=$ac_c_preproc_warn_flag
23865     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23866   else
23867     ac_cpp_err=
23868   fi
23869 else
23870   ac_cpp_err=yes
23871 fi
23872 if test -z "$ac_cpp_err"; then
23873   cat >>confdefs.h <<\_ACEOF
23874 #define FSTYPE_MNTENT 1
23875 _ACEOF
23876  fstype=4.3BSD
23877 else
23878   echo "$as_me: failed program was:" >&5
23879 sed 's/^/| /' conftest.$ac_ext >&5
23880
23881
23882 fi
23883
23884 rm -f conftest.err conftest.$ac_ext
23885 fi
23886 if test $fstype = no; then
23887 cat >conftest.$ac_ext <<_ACEOF
23888 /* confdefs.h.  */
23889 _ACEOF
23890 cat confdefs.h >>conftest.$ac_ext
23891 cat >>conftest.$ac_ext <<_ACEOF
23892 /* end confdefs.h.  */
23893 #include <sys/mount.h>
23894
23895 _ACEOF
23896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23897   $EGREP "f_type;" >/dev/null 2>&1; then
23898   cat >>confdefs.h <<\_ACEOF
23899 #define FSTYPE_STATFS 1
23900 _ACEOF
23901  fstype=4.4BSD/OSF1
23902 fi
23903 rm -f conftest*
23904
23905 fi
23906 if test $fstype = no; then
23907 cat >conftest.$ac_ext <<_ACEOF
23908 /* confdefs.h.  */
23909 _ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h.  */
23913 #include <sys/mount.h>
23914 #include <sys/fs_types.h>
23915 _ACEOF
23916 if { (ac_try="$ac_cpp conftest.$ac_ext"
23917 case "(($ac_try" in
23918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23919   *) ac_try_echo=$ac_try;;
23920 esac
23921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23923   ac_status=$?
23924   grep -v '^ *+' conftest.er1 >conftest.err
23925   rm -f conftest.er1
23926   cat conftest.err >&5
23927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928   (exit $ac_status); } >/dev/null; then
23929   if test -s conftest.err; then
23930     ac_cpp_err=$ac_c_preproc_warn_flag
23931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23932   else
23933     ac_cpp_err=
23934   fi
23935 else
23936   ac_cpp_err=yes
23937 fi
23938 if test -z "$ac_cpp_err"; then
23939   cat >>confdefs.h <<\_ACEOF
23940 #define FSTYPE_GETMNT 1
23941 _ACEOF
23942  fstype=Ultrix
23943 else
23944   echo "$as_me: failed program was:" >&5
23945 sed 's/^/| /' conftest.$ac_ext >&5
23946
23947
23948 fi
23949
23950 rm -f conftest.err conftest.$ac_ext
23951 fi
23952 { echo "$as_me:$LINENO: result: $fstype" >&5
23953 echo "${ECHO_T}$fstype" >&6; }
23954
23955 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23956   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
23957 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
23958 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
23959   echo $ECHO_N "(cached) $ECHO_C" >&6
23960 fi
23961 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
23962 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
23963 else
23964   # Is the header compilable?
23965 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
23966 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
23967 cat >conftest.$ac_ext <<_ACEOF
23968 /* confdefs.h.  */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h.  */
23973 $ac_includes_default
23974 #include <sys/statvfs.h>
23975 _ACEOF
23976 rm -f conftest.$ac_objext
23977 if { (ac_try="$ac_compile"
23978 case "(($ac_try" in
23979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23980   *) ac_try_echo=$ac_try;;
23981 esac
23982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23983   (eval "$ac_compile") 2>conftest.er1
23984   ac_status=$?
23985   grep -v '^ *+' conftest.er1 >conftest.err
23986   rm -f conftest.er1
23987   cat conftest.err >&5
23988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989   (exit $ac_status); } &&
23990          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23991   { (case "(($ac_try" in
23992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993   *) ac_try_echo=$ac_try;;
23994 esac
23995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996   (eval "$ac_try") 2>&5
23997   ac_status=$?
23998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23999   (exit $ac_status); }; } &&
24000          { ac_try='test -s conftest.$ac_objext'
24001   { (case "(($ac_try" in
24002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24003   *) ac_try_echo=$ac_try;;
24004 esac
24005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24006   (eval "$ac_try") 2>&5
24007   ac_status=$?
24008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009   (exit $ac_status); }; }; then
24010   ac_header_compiler=yes
24011 else
24012   echo "$as_me: failed program was:" >&5
24013 sed 's/^/| /' conftest.$ac_ext >&5
24014
24015         ac_header_compiler=no
24016 fi
24017
24018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24020 echo "${ECHO_T}$ac_header_compiler" >&6; }
24021
24022 # Is the header present?
24023 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24024 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24025 cat >conftest.$ac_ext <<_ACEOF
24026 /* confdefs.h.  */
24027 _ACEOF
24028 cat confdefs.h >>conftest.$ac_ext
24029 cat >>conftest.$ac_ext <<_ACEOF
24030 /* end confdefs.h.  */
24031 #include <sys/statvfs.h>
24032 _ACEOF
24033 if { (ac_try="$ac_cpp conftest.$ac_ext"
24034 case "(($ac_try" in
24035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24036   *) ac_try_echo=$ac_try;;
24037 esac
24038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24039   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24040   ac_status=$?
24041   grep -v '^ *+' conftest.er1 >conftest.err
24042   rm -f conftest.er1
24043   cat conftest.err >&5
24044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045   (exit $ac_status); } >/dev/null; then
24046   if test -s conftest.err; then
24047     ac_cpp_err=$ac_c_preproc_warn_flag
24048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24049   else
24050     ac_cpp_err=
24051   fi
24052 else
24053   ac_cpp_err=yes
24054 fi
24055 if test -z "$ac_cpp_err"; then
24056   ac_header_preproc=yes
24057 else
24058   echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24060
24061   ac_header_preproc=no
24062 fi
24063
24064 rm -f conftest.err conftest.$ac_ext
24065 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24066 echo "${ECHO_T}$ac_header_preproc" >&6; }
24067
24068 # So?  What about this header?
24069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24070   yes:no: )
24071     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24072 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24073     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24074 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24075     ac_header_preproc=yes
24076     ;;
24077   no:yes:* )
24078     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24079 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24080     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24081 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24082     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24083 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24084     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24085 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24086     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24087 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24088     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24089 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24090
24091     ;;
24092 esac
24093 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24094 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24095 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24096   echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24099 fi
24100 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24101 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24102
24103 fi
24104 if test $ac_cv_header_sys_statvfs_h = yes; then
24105
24106 cat >>confdefs.h <<\_ACEOF
24107 #define HAVE_SYS_STATVFS_H 1
24108 _ACEOF
24109
24110 fi
24111
24112
24113
24114 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24115 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24116 if test "${ac_cv_type_signal+set}" = set; then
24117   echo $ECHO_N "(cached) $ECHO_C" >&6
24118 else
24119   cat >conftest.$ac_ext <<_ACEOF
24120 /* confdefs.h.  */
24121 _ACEOF
24122 cat confdefs.h >>conftest.$ac_ext
24123 cat >>conftest.$ac_ext <<_ACEOF
24124 /* end confdefs.h.  */
24125 #include <sys/types.h>
24126 #include <signal.h>
24127
24128 int
24129 main ()
24130 {
24131 return *(signal (0, 0)) (0) == 1;
24132   ;
24133   return 0;
24134 }
24135 _ACEOF
24136 rm -f conftest.$ac_objext
24137 if { (ac_try="$ac_compile"
24138 case "(($ac_try" in
24139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24140   *) ac_try_echo=$ac_try;;
24141 esac
24142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24143   (eval "$ac_compile") 2>conftest.er1
24144   ac_status=$?
24145   grep -v '^ *+' conftest.er1 >conftest.err
24146   rm -f conftest.er1
24147   cat conftest.err >&5
24148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149   (exit $ac_status); } &&
24150          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24151   { (case "(($ac_try" in
24152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24153   *) ac_try_echo=$ac_try;;
24154 esac
24155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24156   (eval "$ac_try") 2>&5
24157   ac_status=$?
24158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159   (exit $ac_status); }; } &&
24160          { ac_try='test -s conftest.$ac_objext'
24161   { (case "(($ac_try" in
24162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24163   *) ac_try_echo=$ac_try;;
24164 esac
24165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24166   (eval "$ac_try") 2>&5
24167   ac_status=$?
24168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169   (exit $ac_status); }; }; then
24170   ac_cv_type_signal=int
24171 else
24172   echo "$as_me: failed program was:" >&5
24173 sed 's/^/| /' conftest.$ac_ext >&5
24174
24175         ac_cv_type_signal=void
24176 fi
24177
24178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24179 fi
24180 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24181 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24182
24183 cat >>confdefs.h <<_ACEOF
24184 #define RETSIGTYPE $ac_cv_type_signal
24185 _ACEOF
24186
24187
24188
24189   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24190 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24191   if test "${bash_cv_signal_vintage+set}" = set; then
24192   echo $ECHO_N "(cached) $ECHO_C" >&6
24193 else
24194
24195     cat >conftest.$ac_ext <<_ACEOF
24196 /* confdefs.h.  */
24197 _ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h.  */
24201 #include <signal.h>
24202 int
24203 main ()
24204 {
24205
24206       sigset_t ss;
24207       struct sigaction sa;
24208       sigemptyset(&ss); sigsuspend(&ss);
24209       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24210       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24211
24212   ;
24213   return 0;
24214 }
24215 _ACEOF
24216 rm -f conftest.$ac_objext conftest$ac_exeext
24217 if { (ac_try="$ac_link"
24218 case "(($ac_try" in
24219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220   *) ac_try_echo=$ac_try;;
24221 esac
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223   (eval "$ac_link") 2>conftest.er1
24224   ac_status=$?
24225   grep -v '^ *+' conftest.er1 >conftest.err
24226   rm -f conftest.er1
24227   cat conftest.err >&5
24228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229   (exit $ac_status); } &&
24230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24231   { (case "(($ac_try" in
24232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24233   *) ac_try_echo=$ac_try;;
24234 esac
24235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24236   (eval "$ac_try") 2>&5
24237   ac_status=$?
24238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239   (exit $ac_status); }; } &&
24240          { ac_try='test -s conftest$ac_exeext'
24241   { (case "(($ac_try" in
24242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24243   *) ac_try_echo=$ac_try;;
24244 esac
24245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24246   (eval "$ac_try") 2>&5
24247   ac_status=$?
24248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249   (exit $ac_status); }; }; then
24250   bash_cv_signal_vintage="posix"
24251 else
24252   echo "$as_me: failed program was:" >&5
24253 sed 's/^/| /' conftest.$ac_ext >&5
24254
24255
24256       cat >conftest.$ac_ext <<_ACEOF
24257 /* confdefs.h.  */
24258 _ACEOF
24259 cat confdefs.h >>conftest.$ac_ext
24260 cat >>conftest.$ac_ext <<_ACEOF
24261 /* end confdefs.h.  */
24262 #include <signal.h>
24263 int
24264 main ()
24265 {
24266
24267           int mask = sigmask(SIGINT);
24268           sigsetmask(mask); sigblock(mask); sigpause(mask);
24269
24270   ;
24271   return 0;
24272 }
24273 _ACEOF
24274 rm -f conftest.$ac_objext conftest$ac_exeext
24275 if { (ac_try="$ac_link"
24276 case "(($ac_try" in
24277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278   *) ac_try_echo=$ac_try;;
24279 esac
24280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24281   (eval "$ac_link") 2>conftest.er1
24282   ac_status=$?
24283   grep -v '^ *+' conftest.er1 >conftest.err
24284   rm -f conftest.er1
24285   cat conftest.err >&5
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } &&
24288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24289   { (case "(($ac_try" in
24290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24291   *) ac_try_echo=$ac_try;;
24292 esac
24293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24294   (eval "$ac_try") 2>&5
24295   ac_status=$?
24296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297   (exit $ac_status); }; } &&
24298          { ac_try='test -s conftest$ac_exeext'
24299   { (case "(($ac_try" in
24300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24301   *) ac_try_echo=$ac_try;;
24302 esac
24303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24304   (eval "$ac_try") 2>&5
24305   ac_status=$?
24306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307   (exit $ac_status); }; }; then
24308   bash_cv_signal_vintage="4.2bsd"
24309 else
24310   echo "$as_me: failed program was:" >&5
24311 sed 's/^/| /' conftest.$ac_ext >&5
24312
24313
24314         cat >conftest.$ac_ext <<_ACEOF
24315 /* confdefs.h.  */
24316 _ACEOF
24317 cat confdefs.h >>conftest.$ac_ext
24318 cat >>conftest.$ac_ext <<_ACEOF
24319 /* end confdefs.h.  */
24320
24321           #include <signal.h>
24322           RETSIGTYPE foo() { }
24323 int
24324 main ()
24325 {
24326
24327                   int mask = sigmask(SIGINT);
24328                   sigset(SIGINT, foo); sigrelse(SIGINT);
24329                   sighold(SIGINT); sigpause(SIGINT);
24330
24331   ;
24332   return 0;
24333 }
24334 _ACEOF
24335 rm -f conftest.$ac_objext conftest$ac_exeext
24336 if { (ac_try="$ac_link"
24337 case "(($ac_try" in
24338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24339   *) ac_try_echo=$ac_try;;
24340 esac
24341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24342   (eval "$ac_link") 2>conftest.er1
24343   ac_status=$?
24344   grep -v '^ *+' conftest.er1 >conftest.err
24345   rm -f conftest.er1
24346   cat conftest.err >&5
24347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348   (exit $ac_status); } &&
24349          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24350   { (case "(($ac_try" in
24351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24352   *) ac_try_echo=$ac_try;;
24353 esac
24354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24355   (eval "$ac_try") 2>&5
24356   ac_status=$?
24357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358   (exit $ac_status); }; } &&
24359          { ac_try='test -s conftest$ac_exeext'
24360   { (case "(($ac_try" in
24361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362   *) ac_try_echo=$ac_try;;
24363 esac
24364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24365   (eval "$ac_try") 2>&5
24366   ac_status=$?
24367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24368   (exit $ac_status); }; }; then
24369   bash_cv_signal_vintage="svr3"
24370 else
24371   echo "$as_me: failed program was:" >&5
24372 sed 's/^/| /' conftest.$ac_ext >&5
24373
24374         bash_cv_signal_vintage="v7"
24375
24376 fi
24377
24378 rm -f core conftest.err conftest.$ac_objext \
24379       conftest$ac_exeext conftest.$ac_ext
24380
24381 fi
24382
24383 rm -f core conftest.err conftest.$ac_objext \
24384       conftest$ac_exeext conftest.$ac_ext
24385
24386 fi
24387
24388 rm -f core conftest.err conftest.$ac_objext \
24389       conftest$ac_exeext conftest.$ac_ext
24390
24391 fi
24392
24393   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24394 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24395   if test "$bash_cv_signal_vintage" = "posix"; then
24396     cat >>confdefs.h <<\_ACEOF
24397 #define HAVE_POSIX_SIGNALS 1
24398 _ACEOF
24399
24400   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24401     cat >>confdefs.h <<\_ACEOF
24402 #define HAVE_BSD_SIGNALS 1
24403 _ACEOF
24404
24405   elif test "$bash_cv_signal_vintage" = "svr3"; then
24406     cat >>confdefs.h <<\_ACEOF
24407 #define HAVE_USG_SIGHOLD 1
24408 _ACEOF
24409
24410   fi
24411
24412 { echo "$as_me:$LINENO: checking for mode_t" >&5
24413 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24414 if test "${ac_cv_type_mode_t+set}" = set; then
24415   echo $ECHO_N "(cached) $ECHO_C" >&6
24416 else
24417   cat >conftest.$ac_ext <<_ACEOF
24418 /* confdefs.h.  */
24419 _ACEOF
24420 cat confdefs.h >>conftest.$ac_ext
24421 cat >>conftest.$ac_ext <<_ACEOF
24422 /* end confdefs.h.  */
24423 $ac_includes_default
24424 typedef mode_t ac__type_new_;
24425 int
24426 main ()
24427 {
24428 if ((ac__type_new_ *) 0)
24429   return 0;
24430 if (sizeof (ac__type_new_))
24431   return 0;
24432   ;
24433   return 0;
24434 }
24435 _ACEOF
24436 rm -f conftest.$ac_objext
24437 if { (ac_try="$ac_compile"
24438 case "(($ac_try" in
24439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24440   *) ac_try_echo=$ac_try;;
24441 esac
24442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24443   (eval "$ac_compile") 2>conftest.er1
24444   ac_status=$?
24445   grep -v '^ *+' conftest.er1 >conftest.err
24446   rm -f conftest.er1
24447   cat conftest.err >&5
24448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24449   (exit $ac_status); } &&
24450          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24451   { (case "(($ac_try" in
24452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453   *) ac_try_echo=$ac_try;;
24454 esac
24455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24456   (eval "$ac_try") 2>&5
24457   ac_status=$?
24458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459   (exit $ac_status); }; } &&
24460          { ac_try='test -s conftest.$ac_objext'
24461   { (case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_try") 2>&5
24467   ac_status=$?
24468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469   (exit $ac_status); }; }; then
24470   ac_cv_type_mode_t=yes
24471 else
24472   echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24474
24475         ac_cv_type_mode_t=no
24476 fi
24477
24478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24479 fi
24480 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24481 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24482 if test $ac_cv_type_mode_t = yes; then
24483   :
24484 else
24485
24486 cat >>confdefs.h <<_ACEOF
24487 #define mode_t int
24488 _ACEOF
24489
24490 fi
24491
24492 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24493 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24494 if test "${ac_cv_type_uid_t+set}" = set; then
24495   echo $ECHO_N "(cached) $ECHO_C" >&6
24496 else
24497   cat >conftest.$ac_ext <<_ACEOF
24498 /* confdefs.h.  */
24499 _ACEOF
24500 cat confdefs.h >>conftest.$ac_ext
24501 cat >>conftest.$ac_ext <<_ACEOF
24502 /* end confdefs.h.  */
24503 #include <sys/types.h>
24504
24505 _ACEOF
24506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24507   $EGREP "uid_t" >/dev/null 2>&1; then
24508   ac_cv_type_uid_t=yes
24509 else
24510   ac_cv_type_uid_t=no
24511 fi
24512 rm -f conftest*
24513
24514 fi
24515 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24516 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24517 if test $ac_cv_type_uid_t = no; then
24518
24519 cat >>confdefs.h <<\_ACEOF
24520 #define uid_t int
24521 _ACEOF
24522
24523
24524 cat >>confdefs.h <<\_ACEOF
24525 #define gid_t int
24526 _ACEOF
24527
24528 fi
24529
24530 { echo "$as_me:$LINENO: checking for size_t" >&5
24531 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24532 if test "${ac_cv_type_size_t+set}" = set; then
24533   echo $ECHO_N "(cached) $ECHO_C" >&6
24534 else
24535   cat >conftest.$ac_ext <<_ACEOF
24536 /* confdefs.h.  */
24537 _ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h.  */
24541 $ac_includes_default
24542 typedef size_t ac__type_new_;
24543 int
24544 main ()
24545 {
24546 if ((ac__type_new_ *) 0)
24547   return 0;
24548 if (sizeof (ac__type_new_))
24549   return 0;
24550   ;
24551   return 0;
24552 }
24553 _ACEOF
24554 rm -f conftest.$ac_objext
24555 if { (ac_try="$ac_compile"
24556 case "(($ac_try" in
24557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24558   *) ac_try_echo=$ac_try;;
24559 esac
24560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24561   (eval "$ac_compile") 2>conftest.er1
24562   ac_status=$?
24563   grep -v '^ *+' conftest.er1 >conftest.err
24564   rm -f conftest.er1
24565   cat conftest.err >&5
24566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567   (exit $ac_status); } &&
24568          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24569   { (case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_try") 2>&5
24575   ac_status=$?
24576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24577   (exit $ac_status); }; } &&
24578          { ac_try='test -s conftest.$ac_objext'
24579   { (case "(($ac_try" in
24580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581   *) ac_try_echo=$ac_try;;
24582 esac
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584   (eval "$ac_try") 2>&5
24585   ac_status=$?
24586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587   (exit $ac_status); }; }; then
24588   ac_cv_type_size_t=yes
24589 else
24590   echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.$ac_ext >&5
24592
24593         ac_cv_type_size_t=no
24594 fi
24595
24596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24597 fi
24598 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24599 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24600 if test $ac_cv_type_size_t = yes; then
24601   :
24602 else
24603
24604 cat >>confdefs.h <<_ACEOF
24605 #define size_t unsigned int
24606 _ACEOF
24607
24608 fi
24609
24610 { echo "$as_me:$LINENO: checking for pid_t" >&5
24611 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24612 if test "${ac_cv_type_pid_t+set}" = set; then
24613   echo $ECHO_N "(cached) $ECHO_C" >&6
24614 else
24615   cat >conftest.$ac_ext <<_ACEOF
24616 /* confdefs.h.  */
24617 _ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h.  */
24621 $ac_includes_default
24622 typedef pid_t ac__type_new_;
24623 int
24624 main ()
24625 {
24626 if ((ac__type_new_ *) 0)
24627   return 0;
24628 if (sizeof (ac__type_new_))
24629   return 0;
24630   ;
24631   return 0;
24632 }
24633 _ACEOF
24634 rm -f conftest.$ac_objext
24635 if { (ac_try="$ac_compile"
24636 case "(($ac_try" in
24637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24638   *) ac_try_echo=$ac_try;;
24639 esac
24640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24641   (eval "$ac_compile") 2>conftest.er1
24642   ac_status=$?
24643   grep -v '^ *+' conftest.er1 >conftest.err
24644   rm -f conftest.er1
24645   cat conftest.err >&5
24646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24647   (exit $ac_status); } &&
24648          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24649   { (case "(($ac_try" in
24650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24651   *) ac_try_echo=$ac_try;;
24652 esac
24653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24654   (eval "$ac_try") 2>&5
24655   ac_status=$?
24656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24657   (exit $ac_status); }; } &&
24658          { ac_try='test -s conftest.$ac_objext'
24659   { (case "(($ac_try" in
24660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24661   *) ac_try_echo=$ac_try;;
24662 esac
24663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24664   (eval "$ac_try") 2>&5
24665   ac_status=$?
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); }; }; then
24668   ac_cv_type_pid_t=yes
24669 else
24670   echo "$as_me: failed program was:" >&5
24671 sed 's/^/| /' conftest.$ac_ext >&5
24672
24673         ac_cv_type_pid_t=no
24674 fi
24675
24676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24677 fi
24678 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24679 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24680 if test $ac_cv_type_pid_t = yes; then
24681   :
24682 else
24683
24684 cat >>confdefs.h <<_ACEOF
24685 #define pid_t int
24686 _ACEOF
24687
24688 fi
24689
24690 { echo "$as_me:$LINENO: checking for off_t" >&5
24691 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24692 if test "${ac_cv_type_off_t+set}" = set; then
24693   echo $ECHO_N "(cached) $ECHO_C" >&6
24694 else
24695   cat >conftest.$ac_ext <<_ACEOF
24696 /* confdefs.h.  */
24697 _ACEOF
24698 cat confdefs.h >>conftest.$ac_ext
24699 cat >>conftest.$ac_ext <<_ACEOF
24700 /* end confdefs.h.  */
24701 $ac_includes_default
24702 typedef off_t ac__type_new_;
24703 int
24704 main ()
24705 {
24706 if ((ac__type_new_ *) 0)
24707   return 0;
24708 if (sizeof (ac__type_new_))
24709   return 0;
24710   ;
24711   return 0;
24712 }
24713 _ACEOF
24714 rm -f conftest.$ac_objext
24715 if { (ac_try="$ac_compile"
24716 case "(($ac_try" in
24717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24718   *) ac_try_echo=$ac_try;;
24719 esac
24720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24721   (eval "$ac_compile") 2>conftest.er1
24722   ac_status=$?
24723   grep -v '^ *+' conftest.er1 >conftest.err
24724   rm -f conftest.er1
24725   cat conftest.err >&5
24726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727   (exit $ac_status); } &&
24728          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24729   { (case "(($ac_try" in
24730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24731   *) ac_try_echo=$ac_try;;
24732 esac
24733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24734   (eval "$ac_try") 2>&5
24735   ac_status=$?
24736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737   (exit $ac_status); }; } &&
24738          { ac_try='test -s conftest.$ac_objext'
24739   { (case "(($ac_try" in
24740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741   *) ac_try_echo=$ac_try;;
24742 esac
24743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24744   (eval "$ac_try") 2>&5
24745   ac_status=$?
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); }; }; then
24748   ac_cv_type_off_t=yes
24749 else
24750   echo "$as_me: failed program was:" >&5
24751 sed 's/^/| /' conftest.$ac_ext >&5
24752
24753         ac_cv_type_off_t=no
24754 fi
24755
24756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24757 fi
24758 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24759 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24760 if test $ac_cv_type_off_t = yes; then
24761   :
24762 else
24763
24764 cat >>confdefs.h <<_ACEOF
24765 #define off_t long int
24766 _ACEOF
24767
24768 fi
24769
24770 { echo "$as_me:$LINENO: checking for ino_t" >&5
24771 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24772 if test "${ac_cv_type_ino_t+set}" = set; then
24773   echo $ECHO_N "(cached) $ECHO_C" >&6
24774 else
24775   cat >conftest.$ac_ext <<_ACEOF
24776 /* confdefs.h.  */
24777 _ACEOF
24778 cat confdefs.h >>conftest.$ac_ext
24779 cat >>conftest.$ac_ext <<_ACEOF
24780 /* end confdefs.h.  */
24781 $ac_includes_default
24782 typedef ino_t ac__type_new_;
24783 int
24784 main ()
24785 {
24786 if ((ac__type_new_ *) 0)
24787   return 0;
24788 if (sizeof (ac__type_new_))
24789   return 0;
24790   ;
24791   return 0;
24792 }
24793 _ACEOF
24794 rm -f conftest.$ac_objext
24795 if { (ac_try="$ac_compile"
24796 case "(($ac_try" in
24797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798   *) ac_try_echo=$ac_try;;
24799 esac
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801   (eval "$ac_compile") 2>conftest.er1
24802   ac_status=$?
24803   grep -v '^ *+' conftest.er1 >conftest.err
24804   rm -f conftest.er1
24805   cat conftest.err >&5
24806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24807   (exit $ac_status); } &&
24808          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24809   { (case "(($ac_try" in
24810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24811   *) ac_try_echo=$ac_try;;
24812 esac
24813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24814   (eval "$ac_try") 2>&5
24815   ac_status=$?
24816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817   (exit $ac_status); }; } &&
24818          { ac_try='test -s conftest.$ac_objext'
24819   { (case "(($ac_try" in
24820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24821   *) ac_try_echo=$ac_try;;
24822 esac
24823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24824   (eval "$ac_try") 2>&5
24825   ac_status=$?
24826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24827   (exit $ac_status); }; }; then
24828   ac_cv_type_ino_t=yes
24829 else
24830   echo "$as_me: failed program was:" >&5
24831 sed 's/^/| /' conftest.$ac_ext >&5
24832
24833         ac_cv_type_ino_t=no
24834 fi
24835
24836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 fi
24838 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24839 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24840 if test $ac_cv_type_ino_t = yes; then
24841   :
24842 else
24843
24844 cat >>confdefs.h <<_ACEOF
24845 #define ino_t unsigned long
24846 _ACEOF
24847
24848 fi
24849
24850 { echo "$as_me:$LINENO: checking for dev_t" >&5
24851 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24852 if test "${ac_cv_type_dev_t+set}" = set; then
24853   echo $ECHO_N "(cached) $ECHO_C" >&6
24854 else
24855   cat >conftest.$ac_ext <<_ACEOF
24856 /* confdefs.h.  */
24857 _ACEOF
24858 cat confdefs.h >>conftest.$ac_ext
24859 cat >>conftest.$ac_ext <<_ACEOF
24860 /* end confdefs.h.  */
24861 $ac_includes_default
24862 typedef dev_t ac__type_new_;
24863 int
24864 main ()
24865 {
24866 if ((ac__type_new_ *) 0)
24867   return 0;
24868 if (sizeof (ac__type_new_))
24869   return 0;
24870   ;
24871   return 0;
24872 }
24873 _ACEOF
24874 rm -f conftest.$ac_objext
24875 if { (ac_try="$ac_compile"
24876 case "(($ac_try" in
24877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878   *) ac_try_echo=$ac_try;;
24879 esac
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881   (eval "$ac_compile") 2>conftest.er1
24882   ac_status=$?
24883   grep -v '^ *+' conftest.er1 >conftest.err
24884   rm -f conftest.er1
24885   cat conftest.err >&5
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); } &&
24888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24889   { (case "(($ac_try" in
24890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24891   *) ac_try_echo=$ac_try;;
24892 esac
24893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24894   (eval "$ac_try") 2>&5
24895   ac_status=$?
24896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897   (exit $ac_status); }; } &&
24898          { ac_try='test -s conftest.$ac_objext'
24899   { (case "(($ac_try" in
24900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24901   *) ac_try_echo=$ac_try;;
24902 esac
24903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24904   (eval "$ac_try") 2>&5
24905   ac_status=$?
24906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24907   (exit $ac_status); }; }; then
24908   ac_cv_type_dev_t=yes
24909 else
24910   echo "$as_me: failed program was:" >&5
24911 sed 's/^/| /' conftest.$ac_ext >&5
24912
24913         ac_cv_type_dev_t=no
24914 fi
24915
24916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24917 fi
24918 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
24919 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
24920 if test $ac_cv_type_dev_t = yes; then
24921   :
24922 else
24923
24924 cat >>confdefs.h <<_ACEOF
24925 #define dev_t unsigned long
24926 _ACEOF
24927
24928 fi
24929
24930 { echo "$as_me:$LINENO: checking for daddr_t" >&5
24931 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
24932 if test "${ac_cv_type_daddr_t+set}" = set; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941 $ac_includes_default
24942 typedef daddr_t ac__type_new_;
24943 int
24944 main ()
24945 {
24946 if ((ac__type_new_ *) 0)
24947   return 0;
24948 if (sizeof (ac__type_new_))
24949   return 0;
24950   ;
24951   return 0;
24952 }
24953 _ACEOF
24954 rm -f conftest.$ac_objext
24955 if { (ac_try="$ac_compile"
24956 case "(($ac_try" in
24957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24958   *) ac_try_echo=$ac_try;;
24959 esac
24960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24961   (eval "$ac_compile") 2>conftest.er1
24962   ac_status=$?
24963   grep -v '^ *+' conftest.er1 >conftest.err
24964   rm -f conftest.er1
24965   cat conftest.err >&5
24966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24967   (exit $ac_status); } &&
24968          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24969   { (case "(($ac_try" in
24970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24971   *) ac_try_echo=$ac_try;;
24972 esac
24973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24974   (eval "$ac_try") 2>&5
24975   ac_status=$?
24976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977   (exit $ac_status); }; } &&
24978          { ac_try='test -s conftest.$ac_objext'
24979   { (case "(($ac_try" in
24980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981   *) ac_try_echo=$ac_try;;
24982 esac
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984   (eval "$ac_try") 2>&5
24985   ac_status=$?
24986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987   (exit $ac_status); }; }; then
24988   ac_cv_type_daddr_t=yes
24989 else
24990   echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24992
24993         ac_cv_type_daddr_t=no
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 fi
24998 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
24999 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25000 if test $ac_cv_type_daddr_t = yes; then
25001   :
25002 else
25003
25004 cat >>confdefs.h <<_ACEOF
25005 #define daddr_t long
25006 _ACEOF
25007
25008 fi
25009
25010 { echo "$as_me:$LINENO: checking for major_t" >&5
25011 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25012 if test "${ac_cv_type_major_t+set}" = set; then
25013   echo $ECHO_N "(cached) $ECHO_C" >&6
25014 else
25015   cat >conftest.$ac_ext <<_ACEOF
25016 /* confdefs.h.  */
25017 _ACEOF
25018 cat confdefs.h >>conftest.$ac_ext
25019 cat >>conftest.$ac_ext <<_ACEOF
25020 /* end confdefs.h.  */
25021 $ac_includes_default
25022 typedef major_t ac__type_new_;
25023 int
25024 main ()
25025 {
25026 if ((ac__type_new_ *) 0)
25027   return 0;
25028 if (sizeof (ac__type_new_))
25029   return 0;
25030   ;
25031   return 0;
25032 }
25033 _ACEOF
25034 rm -f conftest.$ac_objext
25035 if { (ac_try="$ac_compile"
25036 case "(($ac_try" in
25037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25038   *) ac_try_echo=$ac_try;;
25039 esac
25040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25041   (eval "$ac_compile") 2>conftest.er1
25042   ac_status=$?
25043   grep -v '^ *+' conftest.er1 >conftest.err
25044   rm -f conftest.er1
25045   cat conftest.err >&5
25046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25047   (exit $ac_status); } &&
25048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25049   { (case "(($ac_try" in
25050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051   *) ac_try_echo=$ac_try;;
25052 esac
25053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25054   (eval "$ac_try") 2>&5
25055   ac_status=$?
25056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057   (exit $ac_status); }; } &&
25058          { ac_try='test -s conftest.$ac_objext'
25059   { (case "(($ac_try" in
25060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061   *) ac_try_echo=$ac_try;;
25062 esac
25063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064   (eval "$ac_try") 2>&5
25065   ac_status=$?
25066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067   (exit $ac_status); }; }; then
25068   ac_cv_type_major_t=yes
25069 else
25070   echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25072
25073         ac_cv_type_major_t=no
25074 fi
25075
25076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25077 fi
25078 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25079 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25080 if test $ac_cv_type_major_t = yes; then
25081   :
25082 else
25083
25084 cat >>confdefs.h <<_ACEOF
25085 #define major_t int
25086 _ACEOF
25087
25088 fi
25089
25090 { echo "$as_me:$LINENO: checking for minor_t" >&5
25091 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25092 if test "${ac_cv_type_minor_t+set}" = set; then
25093   echo $ECHO_N "(cached) $ECHO_C" >&6
25094 else
25095   cat >conftest.$ac_ext <<_ACEOF
25096 /* confdefs.h.  */
25097 _ACEOF
25098 cat confdefs.h >>conftest.$ac_ext
25099 cat >>conftest.$ac_ext <<_ACEOF
25100 /* end confdefs.h.  */
25101 $ac_includes_default
25102 typedef minor_t ac__type_new_;
25103 int
25104 main ()
25105 {
25106 if ((ac__type_new_ *) 0)
25107   return 0;
25108 if (sizeof (ac__type_new_))
25109   return 0;
25110   ;
25111   return 0;
25112 }
25113 _ACEOF
25114 rm -f conftest.$ac_objext
25115 if { (ac_try="$ac_compile"
25116 case "(($ac_try" in
25117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25118   *) ac_try_echo=$ac_try;;
25119 esac
25120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25121   (eval "$ac_compile") 2>conftest.er1
25122   ac_status=$?
25123   grep -v '^ *+' conftest.er1 >conftest.err
25124   rm -f conftest.er1
25125   cat conftest.err >&5
25126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25127   (exit $ac_status); } &&
25128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25129   { (case "(($ac_try" in
25130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131   *) ac_try_echo=$ac_try;;
25132 esac
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134   (eval "$ac_try") 2>&5
25135   ac_status=$?
25136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137   (exit $ac_status); }; } &&
25138          { ac_try='test -s conftest.$ac_objext'
25139   { (case "(($ac_try" in
25140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25141   *) ac_try_echo=$ac_try;;
25142 esac
25143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25144   (eval "$ac_try") 2>&5
25145   ac_status=$?
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); }; }; then
25148   ac_cv_type_minor_t=yes
25149 else
25150   echo "$as_me: failed program was:" >&5
25151 sed 's/^/| /' conftest.$ac_ext >&5
25152
25153         ac_cv_type_minor_t=no
25154 fi
25155
25156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25157 fi
25158 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25159 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25160 if test $ac_cv_type_minor_t = yes; then
25161   :
25162 else
25163
25164 cat >>confdefs.h <<_ACEOF
25165 #define minor_t int
25166 _ACEOF
25167
25168 fi
25169
25170 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25171 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25172 if test "${ac_cv_type_ssize_t+set}" = set; then
25173   echo $ECHO_N "(cached) $ECHO_C" >&6
25174 else
25175   cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h.  */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h.  */
25181 $ac_includes_default
25182 typedef ssize_t ac__type_new_;
25183 int
25184 main ()
25185 {
25186 if ((ac__type_new_ *) 0)
25187   return 0;
25188 if (sizeof (ac__type_new_))
25189   return 0;
25190   ;
25191   return 0;
25192 }
25193 _ACEOF
25194 rm -f conftest.$ac_objext
25195 if { (ac_try="$ac_compile"
25196 case "(($ac_try" in
25197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25198   *) ac_try_echo=$ac_try;;
25199 esac
25200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25201   (eval "$ac_compile") 2>conftest.er1
25202   ac_status=$?
25203   grep -v '^ *+' conftest.er1 >conftest.err
25204   rm -f conftest.er1
25205   cat conftest.err >&5
25206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25207   (exit $ac_status); } &&
25208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25209   { (case "(($ac_try" in
25210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25211   *) ac_try_echo=$ac_try;;
25212 esac
25213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25214   (eval "$ac_try") 2>&5
25215   ac_status=$?
25216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25217   (exit $ac_status); }; } &&
25218          { ac_try='test -s conftest.$ac_objext'
25219   { (case "(($ac_try" in
25220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25221   *) ac_try_echo=$ac_try;;
25222 esac
25223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25224   (eval "$ac_try") 2>&5
25225   ac_status=$?
25226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227   (exit $ac_status); }; }; then
25228   ac_cv_type_ssize_t=yes
25229 else
25230   echo "$as_me: failed program was:" >&5
25231 sed 's/^/| /' conftest.$ac_ext >&5
25232
25233         ac_cv_type_ssize_t=no
25234 fi
25235
25236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25237 fi
25238 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25239 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25240 if test $ac_cv_type_ssize_t = yes; then
25241   :
25242 else
25243
25244 cat >>confdefs.h <<_ACEOF
25245 #define ssize_t int
25246 _ACEOF
25247
25248 fi
25249
25250 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25251 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25252 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25253   echo $ECHO_N "(cached) $ECHO_C" >&6
25254 else
25255   cat >conftest.$ac_ext <<_ACEOF
25256 /* confdefs.h.  */
25257 _ACEOF
25258 cat confdefs.h >>conftest.$ac_ext
25259 cat >>conftest.$ac_ext <<_ACEOF
25260 /* end confdefs.h.  */
25261 $ac_includes_default
25262 int
25263 main ()
25264 {
25265 static struct stat ac_aggr;
25266 if (ac_aggr.st_blocks)
25267 return 0;
25268   ;
25269   return 0;
25270 }
25271 _ACEOF
25272 rm -f conftest.$ac_objext
25273 if { (ac_try="$ac_compile"
25274 case "(($ac_try" in
25275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276   *) ac_try_echo=$ac_try;;
25277 esac
25278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25279   (eval "$ac_compile") 2>conftest.er1
25280   ac_status=$?
25281   grep -v '^ *+' conftest.er1 >conftest.err
25282   rm -f conftest.er1
25283   cat conftest.err >&5
25284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285   (exit $ac_status); } &&
25286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25287   { (case "(($ac_try" in
25288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289   *) ac_try_echo=$ac_try;;
25290 esac
25291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25292   (eval "$ac_try") 2>&5
25293   ac_status=$?
25294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25295   (exit $ac_status); }; } &&
25296          { ac_try='test -s conftest.$ac_objext'
25297   { (case "(($ac_try" in
25298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25299   *) ac_try_echo=$ac_try;;
25300 esac
25301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25302   (eval "$ac_try") 2>&5
25303   ac_status=$?
25304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305   (exit $ac_status); }; }; then
25306   ac_cv_member_struct_stat_st_blocks=yes
25307 else
25308   echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25310
25311         cat >conftest.$ac_ext <<_ACEOF
25312 /* confdefs.h.  */
25313 _ACEOF
25314 cat confdefs.h >>conftest.$ac_ext
25315 cat >>conftest.$ac_ext <<_ACEOF
25316 /* end confdefs.h.  */
25317 $ac_includes_default
25318 int
25319 main ()
25320 {
25321 static struct stat ac_aggr;
25322 if (sizeof ac_aggr.st_blocks)
25323 return 0;
25324   ;
25325   return 0;
25326 }
25327 _ACEOF
25328 rm -f conftest.$ac_objext
25329 if { (ac_try="$ac_compile"
25330 case "(($ac_try" in
25331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332   *) ac_try_echo=$ac_try;;
25333 esac
25334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25335   (eval "$ac_compile") 2>conftest.er1
25336   ac_status=$?
25337   grep -v '^ *+' conftest.er1 >conftest.err
25338   rm -f conftest.er1
25339   cat conftest.err >&5
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); } &&
25342          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25343   { (case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_try") 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; } &&
25352          { ac_try='test -s conftest.$ac_objext'
25353   { (case "(($ac_try" in
25354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25355   *) ac_try_echo=$ac_try;;
25356 esac
25357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25358   (eval "$ac_try") 2>&5
25359   ac_status=$?
25360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361   (exit $ac_status); }; }; then
25362   ac_cv_member_struct_stat_st_blocks=yes
25363 else
25364   echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25366
25367         ac_cv_member_struct_stat_st_blocks=no
25368 fi
25369
25370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25371 fi
25372
25373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25374 fi
25375 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25376 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25377 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25378
25379 cat >>confdefs.h <<_ACEOF
25380 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25381 _ACEOF
25382
25383
25384 cat >>confdefs.h <<\_ACEOF
25385 #define HAVE_ST_BLOCKS 1
25386 _ACEOF
25387
25388 else
25389   case " $LIBOBJS " in
25390   *" fileblocks.$ac_objext "* ) ;;
25391   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25392  ;;
25393 esac
25394
25395 fi
25396
25397
25398 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25399 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25400 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25401   echo $ECHO_N "(cached) $ECHO_C" >&6
25402 else
25403   cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409 $ac_includes_default
25410 int
25411 main ()
25412 {
25413 static struct stat ac_aggr;
25414 if (ac_aggr.st_rdev)
25415 return 0;
25416   ;
25417   return 0;
25418 }
25419 _ACEOF
25420 rm -f conftest.$ac_objext
25421 if { (ac_try="$ac_compile"
25422 case "(($ac_try" in
25423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25424   *) ac_try_echo=$ac_try;;
25425 esac
25426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25427   (eval "$ac_compile") 2>conftest.er1
25428   ac_status=$?
25429   grep -v '^ *+' conftest.er1 >conftest.err
25430   rm -f conftest.er1
25431   cat conftest.err >&5
25432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25433   (exit $ac_status); } &&
25434          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25435   { (case "(($ac_try" in
25436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25437   *) ac_try_echo=$ac_try;;
25438 esac
25439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25440   (eval "$ac_try") 2>&5
25441   ac_status=$?
25442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443   (exit $ac_status); }; } &&
25444          { ac_try='test -s conftest.$ac_objext'
25445   { (case "(($ac_try" in
25446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25447   *) ac_try_echo=$ac_try;;
25448 esac
25449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25450   (eval "$ac_try") 2>&5
25451   ac_status=$?
25452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453   (exit $ac_status); }; }; then
25454   ac_cv_member_struct_stat_st_rdev=yes
25455 else
25456   echo "$as_me: failed program was:" >&5
25457 sed 's/^/| /' conftest.$ac_ext >&5
25458
25459         cat >conftest.$ac_ext <<_ACEOF
25460 /* confdefs.h.  */
25461 _ACEOF
25462 cat confdefs.h >>conftest.$ac_ext
25463 cat >>conftest.$ac_ext <<_ACEOF
25464 /* end confdefs.h.  */
25465 $ac_includes_default
25466 int
25467 main ()
25468 {
25469 static struct stat ac_aggr;
25470 if (sizeof ac_aggr.st_rdev)
25471 return 0;
25472   ;
25473   return 0;
25474 }
25475 _ACEOF
25476 rm -f conftest.$ac_objext
25477 if { (ac_try="$ac_compile"
25478 case "(($ac_try" in
25479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25480   *) ac_try_echo=$ac_try;;
25481 esac
25482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25483   (eval "$ac_compile") 2>conftest.er1
25484   ac_status=$?
25485   grep -v '^ *+' conftest.er1 >conftest.err
25486   rm -f conftest.er1
25487   cat conftest.err >&5
25488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489   (exit $ac_status); } &&
25490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25491   { (case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496   (eval "$ac_try") 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; } &&
25500          { ac_try='test -s conftest.$ac_objext'
25501   { (case "(($ac_try" in
25502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25503   *) ac_try_echo=$ac_try;;
25504 esac
25505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25506   (eval "$ac_try") 2>&5
25507   ac_status=$?
25508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25509   (exit $ac_status); }; }; then
25510   ac_cv_member_struct_stat_st_rdev=yes
25511 else
25512   echo "$as_me: failed program was:" >&5
25513 sed 's/^/| /' conftest.$ac_ext >&5
25514
25515         ac_cv_member_struct_stat_st_rdev=no
25516 fi
25517
25518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25519 fi
25520
25521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25522 fi
25523 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25524 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25525 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25526
25527 cat >>confdefs.h <<_ACEOF
25528 #define HAVE_STRUCT_STAT_ST_RDEV 1
25529 _ACEOF
25530
25531
25532 cat >>confdefs.h <<\_ACEOF
25533 #define HAVE_ST_RDEV 1
25534 _ACEOF
25535
25536 fi
25537
25538
25539 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25540 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25541 if test "${ac_cv_struct_tm+set}" = set; then
25542   echo $ECHO_N "(cached) $ECHO_C" >&6
25543 else
25544   cat >conftest.$ac_ext <<_ACEOF
25545 /* confdefs.h.  */
25546 _ACEOF
25547 cat confdefs.h >>conftest.$ac_ext
25548 cat >>conftest.$ac_ext <<_ACEOF
25549 /* end confdefs.h.  */
25550 #include <sys/types.h>
25551 #include <time.h>
25552
25553 int
25554 main ()
25555 {
25556 struct tm *tp; tp->tm_sec;
25557   ;
25558   return 0;
25559 }
25560 _ACEOF
25561 rm -f conftest.$ac_objext
25562 if { (ac_try="$ac_compile"
25563 case "(($ac_try" in
25564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25565   *) ac_try_echo=$ac_try;;
25566 esac
25567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25568   (eval "$ac_compile") 2>conftest.er1
25569   ac_status=$?
25570   grep -v '^ *+' conftest.er1 >conftest.err
25571   rm -f conftest.er1
25572   cat conftest.err >&5
25573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25574   (exit $ac_status); } &&
25575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25576   { (case "(($ac_try" in
25577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25578   *) ac_try_echo=$ac_try;;
25579 esac
25580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25581   (eval "$ac_try") 2>&5
25582   ac_status=$?
25583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584   (exit $ac_status); }; } &&
25585          { ac_try='test -s conftest.$ac_objext'
25586   { (case "(($ac_try" in
25587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25588   *) ac_try_echo=$ac_try;;
25589 esac
25590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25591   (eval "$ac_try") 2>&5
25592   ac_status=$?
25593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25594   (exit $ac_status); }; }; then
25595   ac_cv_struct_tm=time.h
25596 else
25597   echo "$as_me: failed program was:" >&5
25598 sed 's/^/| /' conftest.$ac_ext >&5
25599
25600         ac_cv_struct_tm=sys/time.h
25601 fi
25602
25603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25604 fi
25605 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25606 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25607 if test $ac_cv_struct_tm = sys/time.h; then
25608
25609 cat >>confdefs.h <<\_ACEOF
25610 #define TM_IN_SYS_TIME 1
25611 _ACEOF
25612
25613 fi
25614
25615 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25616 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25617 if test "${ac_cv_c_const+set}" = set; then
25618   echo $ECHO_N "(cached) $ECHO_C" >&6
25619 else
25620   cat >conftest.$ac_ext <<_ACEOF
25621 /* confdefs.h.  */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h.  */
25626
25627 int
25628 main ()
25629 {
25630 /* FIXME: Include the comments suggested by Paul. */
25631 #ifndef __cplusplus
25632   /* Ultrix mips cc rejects this.  */
25633   typedef int charset[2];
25634   const charset x;
25635   /* SunOS 4.1.1 cc rejects this.  */
25636   char const *const *ccp;
25637   char **p;
25638   /* NEC SVR4.0.2 mips cc rejects this.  */
25639   struct point {int x, y;};
25640   static struct point const zero = {0,0};
25641   /* AIX XL C 1.02.0.0 rejects this.
25642      It does not let you subtract one const X* pointer from another in
25643      an arm of an if-expression whose if-part is not a constant
25644      expression */
25645   const char *g = "string";
25646   ccp = &g + (g ? g-g : 0);
25647   /* HPUX 7.0 cc rejects these. */
25648   ++ccp;
25649   p = (char**) ccp;
25650   ccp = (char const *const *) p;
25651   { /* SCO 3.2v4 cc rejects this.  */
25652     char *t;
25653     char const *s = 0 ? (char *) 0 : (char const *) 0;
25654
25655     *t++ = 0;
25656     if (s) return 0;
25657   }
25658   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25659     int x[] = {25, 17};
25660     const int *foo = &x[0];
25661     ++foo;
25662   }
25663   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25664     typedef const int *iptr;
25665     iptr p = 0;
25666     ++p;
25667   }
25668   { /* AIX XL C 1.02.0.0 rejects this saying
25669        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25670     struct s { int j; const int *ap[3]; };
25671     struct s *b; b->j = 5;
25672   }
25673   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25674     const int foo = 10;
25675     if (!foo) return 0;
25676   }
25677   return !x[0] && !zero.x;
25678 #endif
25679
25680   ;
25681   return 0;
25682 }
25683 _ACEOF
25684 rm -f conftest.$ac_objext
25685 if { (ac_try="$ac_compile"
25686 case "(($ac_try" in
25687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25688   *) ac_try_echo=$ac_try;;
25689 esac
25690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25691   (eval "$ac_compile") 2>conftest.er1
25692   ac_status=$?
25693   grep -v '^ *+' conftest.er1 >conftest.err
25694   rm -f conftest.er1
25695   cat conftest.err >&5
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); } &&
25698          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25699   { (case "(($ac_try" in
25700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25701   *) ac_try_echo=$ac_try;;
25702 esac
25703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25704   (eval "$ac_try") 2>&5
25705   ac_status=$?
25706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); }; } &&
25708          { ac_try='test -s conftest.$ac_objext'
25709   { (case "(($ac_try" in
25710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25711   *) ac_try_echo=$ac_try;;
25712 esac
25713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25714   (eval "$ac_try") 2>&5
25715   ac_status=$?
25716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25717   (exit $ac_status); }; }; then
25718   ac_cv_c_const=yes
25719 else
25720   echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25722
25723         ac_cv_c_const=no
25724 fi
25725
25726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25727 fi
25728 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25729 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25730 if test $ac_cv_c_const = no; then
25731
25732 cat >>confdefs.h <<\_ACEOF
25733 #define const
25734 _ACEOF
25735
25736 fi
25737
25738
25739
25740 { echo "$as_me:$LINENO: checking for char" >&5
25741 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25742 if test "${ac_cv_type_char+set}" = set; then
25743   echo $ECHO_N "(cached) $ECHO_C" >&6
25744 else
25745   cat >conftest.$ac_ext <<_ACEOF
25746 /* confdefs.h.  */
25747 _ACEOF
25748 cat confdefs.h >>conftest.$ac_ext
25749 cat >>conftest.$ac_ext <<_ACEOF
25750 /* end confdefs.h.  */
25751 $ac_includes_default
25752 typedef char ac__type_new_;
25753 int
25754 main ()
25755 {
25756 if ((ac__type_new_ *) 0)
25757   return 0;
25758 if (sizeof (ac__type_new_))
25759   return 0;
25760   ;
25761   return 0;
25762 }
25763 _ACEOF
25764 rm -f conftest.$ac_objext
25765 if { (ac_try="$ac_compile"
25766 case "(($ac_try" in
25767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25768   *) ac_try_echo=$ac_try;;
25769 esac
25770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25771   (eval "$ac_compile") 2>conftest.er1
25772   ac_status=$?
25773   grep -v '^ *+' conftest.er1 >conftest.err
25774   rm -f conftest.er1
25775   cat conftest.err >&5
25776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777   (exit $ac_status); } &&
25778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25779   { (case "(($ac_try" in
25780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25781   *) ac_try_echo=$ac_try;;
25782 esac
25783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25784   (eval "$ac_try") 2>&5
25785   ac_status=$?
25786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787   (exit $ac_status); }; } &&
25788          { ac_try='test -s conftest.$ac_objext'
25789   { (case "(($ac_try" in
25790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25791   *) ac_try_echo=$ac_try;;
25792 esac
25793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25794   (eval "$ac_try") 2>&5
25795   ac_status=$?
25796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25797   (exit $ac_status); }; }; then
25798   ac_cv_type_char=yes
25799 else
25800   echo "$as_me: failed program was:" >&5
25801 sed 's/^/| /' conftest.$ac_ext >&5
25802
25803         ac_cv_type_char=no
25804 fi
25805
25806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25807 fi
25808 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25809 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25810
25811 { echo "$as_me:$LINENO: checking size of char" >&5
25812 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25813 if test "${ac_cv_sizeof_char+set}" = set; then
25814   echo $ECHO_N "(cached) $ECHO_C" >&6
25815 else
25816   if test "$ac_cv_type_char" = yes; then
25817   # The cast to long int works around a bug in the HP C Compiler
25818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25820   # This bug is HP SR number 8606223364.
25821   if test "$cross_compiling" = yes; then
25822   # Depending upon the size, compute the lo and hi bounds.
25823 cat >conftest.$ac_ext <<_ACEOF
25824 /* confdefs.h.  */
25825 _ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h.  */
25829 $ac_includes_default
25830                    typedef char ac__type_sizeof_;
25831 int
25832 main ()
25833 {
25834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25835 test_array [0] = 0
25836
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 rm -f conftest.$ac_objext
25842 if { (ac_try="$ac_compile"
25843 case "(($ac_try" in
25844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25845   *) ac_try_echo=$ac_try;;
25846 esac
25847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25848   (eval "$ac_compile") 2>conftest.er1
25849   ac_status=$?
25850   grep -v '^ *+' conftest.er1 >conftest.err
25851   rm -f conftest.er1
25852   cat conftest.err >&5
25853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854   (exit $ac_status); } &&
25855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25856   { (case "(($ac_try" in
25857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25858   *) ac_try_echo=$ac_try;;
25859 esac
25860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25861   (eval "$ac_try") 2>&5
25862   ac_status=$?
25863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864   (exit $ac_status); }; } &&
25865          { ac_try='test -s conftest.$ac_objext'
25866   { (case "(($ac_try" in
25867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25868   *) ac_try_echo=$ac_try;;
25869 esac
25870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25871   (eval "$ac_try") 2>&5
25872   ac_status=$?
25873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25874   (exit $ac_status); }; }; then
25875   ac_lo=0 ac_mid=0
25876   while :; do
25877     cat >conftest.$ac_ext <<_ACEOF
25878 /* confdefs.h.  */
25879 _ACEOF
25880 cat confdefs.h >>conftest.$ac_ext
25881 cat >>conftest.$ac_ext <<_ACEOF
25882 /* end confdefs.h.  */
25883 $ac_includes_default
25884                    typedef char ac__type_sizeof_;
25885 int
25886 main ()
25887 {
25888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25889 test_array [0] = 0
25890
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 rm -f conftest.$ac_objext
25896 if { (ac_try="$ac_compile"
25897 case "(($ac_try" in
25898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899   *) ac_try_echo=$ac_try;;
25900 esac
25901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25902   (eval "$ac_compile") 2>conftest.er1
25903   ac_status=$?
25904   grep -v '^ *+' conftest.er1 >conftest.err
25905   rm -f conftest.er1
25906   cat conftest.err >&5
25907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25908   (exit $ac_status); } &&
25909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25910   { (case "(($ac_try" in
25911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25912   *) ac_try_echo=$ac_try;;
25913 esac
25914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25915   (eval "$ac_try") 2>&5
25916   ac_status=$?
25917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918   (exit $ac_status); }; } &&
25919          { ac_try='test -s conftest.$ac_objext'
25920   { (case "(($ac_try" in
25921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25922   *) ac_try_echo=$ac_try;;
25923 esac
25924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25925   (eval "$ac_try") 2>&5
25926   ac_status=$?
25927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928   (exit $ac_status); }; }; then
25929   ac_hi=$ac_mid; break
25930 else
25931   echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25933
25934         ac_lo=`expr $ac_mid + 1`
25935                         if test $ac_lo -le $ac_mid; then
25936                           ac_lo= ac_hi=
25937                           break
25938                         fi
25939                         ac_mid=`expr 2 '*' $ac_mid + 1`
25940 fi
25941
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943   done
25944 else
25945   echo "$as_me: failed program was:" >&5
25946 sed 's/^/| /' conftest.$ac_ext >&5
25947
25948         cat >conftest.$ac_ext <<_ACEOF
25949 /* confdefs.h.  */
25950 _ACEOF
25951 cat confdefs.h >>conftest.$ac_ext
25952 cat >>conftest.$ac_ext <<_ACEOF
25953 /* end confdefs.h.  */
25954 $ac_includes_default
25955                    typedef char ac__type_sizeof_;
25956 int
25957 main ()
25958 {
25959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25960 test_array [0] = 0
25961
25962   ;
25963   return 0;
25964 }
25965 _ACEOF
25966 rm -f conftest.$ac_objext
25967 if { (ac_try="$ac_compile"
25968 case "(($ac_try" in
25969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25970   *) ac_try_echo=$ac_try;;
25971 esac
25972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25973   (eval "$ac_compile") 2>conftest.er1
25974   ac_status=$?
25975   grep -v '^ *+' conftest.er1 >conftest.err
25976   rm -f conftest.er1
25977   cat conftest.err >&5
25978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979   (exit $ac_status); } &&
25980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25981   { (case "(($ac_try" in
25982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983   *) ac_try_echo=$ac_try;;
25984 esac
25985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25986   (eval "$ac_try") 2>&5
25987   ac_status=$?
25988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); }; } &&
25990          { ac_try='test -s conftest.$ac_objext'
25991   { (case "(($ac_try" in
25992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25993   *) ac_try_echo=$ac_try;;
25994 esac
25995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25996   (eval "$ac_try") 2>&5
25997   ac_status=$?
25998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999   (exit $ac_status); }; }; then
26000   ac_hi=-1 ac_mid=-1
26001   while :; do
26002     cat >conftest.$ac_ext <<_ACEOF
26003 /* confdefs.h.  */
26004 _ACEOF
26005 cat confdefs.h >>conftest.$ac_ext
26006 cat >>conftest.$ac_ext <<_ACEOF
26007 /* end confdefs.h.  */
26008 $ac_includes_default
26009                    typedef char ac__type_sizeof_;
26010 int
26011 main ()
26012 {
26013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26014 test_array [0] = 0
26015
26016   ;
26017   return 0;
26018 }
26019 _ACEOF
26020 rm -f conftest.$ac_objext
26021 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26028   ac_status=$?
26029   grep -v '^ *+' conftest.er1 >conftest.err
26030   rm -f conftest.er1
26031   cat conftest.err >&5
26032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26033   (exit $ac_status); } &&
26034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26035   { (case "(($ac_try" in
26036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037   *) ac_try_echo=$ac_try;;
26038 esac
26039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26040   (eval "$ac_try") 2>&5
26041   ac_status=$?
26042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043   (exit $ac_status); }; } &&
26044          { ac_try='test -s conftest.$ac_objext'
26045   { (case "(($ac_try" in
26046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26047   *) ac_try_echo=$ac_try;;
26048 esac
26049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26050   (eval "$ac_try") 2>&5
26051   ac_status=$?
26052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26053   (exit $ac_status); }; }; then
26054   ac_lo=$ac_mid; break
26055 else
26056   echo "$as_me: failed program was:" >&5
26057 sed 's/^/| /' conftest.$ac_ext >&5
26058
26059         ac_hi=`expr '(' $ac_mid ')' - 1`
26060                         if test $ac_mid -le $ac_hi; then
26061                           ac_lo= ac_hi=
26062                           break
26063                         fi
26064                         ac_mid=`expr 2 '*' $ac_mid`
26065 fi
26066
26067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26068   done
26069 else
26070   echo "$as_me: failed program was:" >&5
26071 sed 's/^/| /' conftest.$ac_ext >&5
26072
26073         ac_lo= ac_hi=
26074 fi
26075
26076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26077 fi
26078
26079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 # Binary search between lo and hi bounds.
26081 while test "x$ac_lo" != "x$ac_hi"; do
26082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26083   cat >conftest.$ac_ext <<_ACEOF
26084 /* confdefs.h.  */
26085 _ACEOF
26086 cat confdefs.h >>conftest.$ac_ext
26087 cat >>conftest.$ac_ext <<_ACEOF
26088 /* end confdefs.h.  */
26089 $ac_includes_default
26090                    typedef char ac__type_sizeof_;
26091 int
26092 main ()
26093 {
26094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26095 test_array [0] = 0
26096
26097   ;
26098   return 0;
26099 }
26100 _ACEOF
26101 rm -f conftest.$ac_objext
26102 if { (ac_try="$ac_compile"
26103 case "(($ac_try" in
26104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26105   *) ac_try_echo=$ac_try;;
26106 esac
26107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26108   (eval "$ac_compile") 2>conftest.er1
26109   ac_status=$?
26110   grep -v '^ *+' conftest.er1 >conftest.err
26111   rm -f conftest.er1
26112   cat conftest.err >&5
26113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114   (exit $ac_status); } &&
26115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26116   { (case "(($ac_try" in
26117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26118   *) ac_try_echo=$ac_try;;
26119 esac
26120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26121   (eval "$ac_try") 2>&5
26122   ac_status=$?
26123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26124   (exit $ac_status); }; } &&
26125          { ac_try='test -s conftest.$ac_objext'
26126   { (case "(($ac_try" in
26127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26128   *) ac_try_echo=$ac_try;;
26129 esac
26130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26131   (eval "$ac_try") 2>&5
26132   ac_status=$?
26133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26134   (exit $ac_status); }; }; then
26135   ac_hi=$ac_mid
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140         ac_lo=`expr '(' $ac_mid ')' + 1`
26141 fi
26142
26143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26144 done
26145 case $ac_lo in
26146 ?*) ac_cv_sizeof_char=$ac_lo;;
26147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26148 See \`config.log' for more details." >&5
26149 echo "$as_me: error: cannot compute sizeof (char)
26150 See \`config.log' for more details." >&2;}
26151    { (exit 77); exit 77; }; } ;;
26152 esac
26153 else
26154   cat >conftest.$ac_ext <<_ACEOF
26155 /* confdefs.h.  */
26156 _ACEOF
26157 cat confdefs.h >>conftest.$ac_ext
26158 cat >>conftest.$ac_ext <<_ACEOF
26159 /* end confdefs.h.  */
26160 $ac_includes_default
26161                    typedef char ac__type_sizeof_;
26162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26164 #include <stdio.h>
26165 #include <stdlib.h>
26166 int
26167 main ()
26168 {
26169
26170   FILE *f = fopen ("conftest.val", "w");
26171   if (! f)
26172     return 1;
26173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26174     {
26175       long int i = longval ();
26176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26177         return 1;
26178       fprintf (f, "%ld\n", i);
26179     }
26180   else
26181     {
26182       unsigned long int i = ulongval ();
26183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26184         return 1;
26185       fprintf (f, "%lu\n", i);
26186     }
26187   return ferror (f) || fclose (f) != 0;
26188
26189   ;
26190   return 0;
26191 }
26192 _ACEOF
26193 rm -f conftest$ac_exeext
26194 if { (ac_try="$ac_link"
26195 case "(($ac_try" in
26196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26197   *) ac_try_echo=$ac_try;;
26198 esac
26199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26200   (eval "$ac_link") 2>&5
26201   ac_status=$?
26202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26204   { (case "(($ac_try" in
26205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26206   *) ac_try_echo=$ac_try;;
26207 esac
26208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26209   (eval "$ac_try") 2>&5
26210   ac_status=$?
26211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212   (exit $ac_status); }; }; then
26213   ac_cv_sizeof_char=`cat conftest.val`
26214 else
26215   echo "$as_me: program exited with status $ac_status" >&5
26216 echo "$as_me: failed program was:" >&5
26217 sed 's/^/| /' conftest.$ac_ext >&5
26218
26219 ( exit $ac_status )
26220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26221 See \`config.log' for more details." >&5
26222 echo "$as_me: error: cannot compute sizeof (char)
26223 See \`config.log' for more details." >&2;}
26224    { (exit 77); exit 77; }; }
26225 fi
26226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26227 fi
26228 rm -f conftest.val
26229 else
26230   ac_cv_sizeof_char=0
26231 fi
26232 fi
26233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26234 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26235 cat >>confdefs.h <<_ACEOF
26236 #define SIZEOF_CHAR $ac_cv_sizeof_char
26237 _ACEOF
26238
26239
26240 { echo "$as_me:$LINENO: checking for short int" >&5
26241 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26242 if test "${ac_cv_type_short_int+set}" = set; then
26243   echo $ECHO_N "(cached) $ECHO_C" >&6
26244 else
26245   cat >conftest.$ac_ext <<_ACEOF
26246 /* confdefs.h.  */
26247 _ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h.  */
26251 $ac_includes_default
26252 typedef short int ac__type_new_;
26253 int
26254 main ()
26255 {
26256 if ((ac__type_new_ *) 0)
26257   return 0;
26258 if (sizeof (ac__type_new_))
26259   return 0;
26260   ;
26261   return 0;
26262 }
26263 _ACEOF
26264 rm -f conftest.$ac_objext
26265 if { (ac_try="$ac_compile"
26266 case "(($ac_try" in
26267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26268   *) ac_try_echo=$ac_try;;
26269 esac
26270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26271   (eval "$ac_compile") 2>conftest.er1
26272   ac_status=$?
26273   grep -v '^ *+' conftest.er1 >conftest.err
26274   rm -f conftest.er1
26275   cat conftest.err >&5
26276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26277   (exit $ac_status); } &&
26278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26279   { (case "(($ac_try" in
26280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281   *) ac_try_echo=$ac_try;;
26282 esac
26283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284   (eval "$ac_try") 2>&5
26285   ac_status=$?
26286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287   (exit $ac_status); }; } &&
26288          { ac_try='test -s conftest.$ac_objext'
26289   { (case "(($ac_try" in
26290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26291   *) ac_try_echo=$ac_try;;
26292 esac
26293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26294   (eval "$ac_try") 2>&5
26295   ac_status=$?
26296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26297   (exit $ac_status); }; }; then
26298   ac_cv_type_short_int=yes
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303         ac_cv_type_short_int=no
26304 fi
26305
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26307 fi
26308 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26309 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26310
26311 { echo "$as_me:$LINENO: checking size of short int" >&5
26312 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26313 if test "${ac_cv_sizeof_short_int+set}" = set; then
26314   echo $ECHO_N "(cached) $ECHO_C" >&6
26315 else
26316   if test "$ac_cv_type_short_int" = yes; then
26317   # The cast to long int works around a bug in the HP C Compiler
26318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26320   # This bug is HP SR number 8606223364.
26321   if test "$cross_compiling" = yes; then
26322   # Depending upon the size, compute the lo and hi bounds.
26323 cat >conftest.$ac_ext <<_ACEOF
26324 /* confdefs.h.  */
26325 _ACEOF
26326 cat confdefs.h >>conftest.$ac_ext
26327 cat >>conftest.$ac_ext <<_ACEOF
26328 /* end confdefs.h.  */
26329 $ac_includes_default
26330                    typedef short int ac__type_sizeof_;
26331 int
26332 main ()
26333 {
26334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26335 test_array [0] = 0
26336
26337   ;
26338   return 0;
26339 }
26340 _ACEOF
26341 rm -f conftest.$ac_objext
26342 if { (ac_try="$ac_compile"
26343 case "(($ac_try" in
26344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26345   *) ac_try_echo=$ac_try;;
26346 esac
26347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26348   (eval "$ac_compile") 2>conftest.er1
26349   ac_status=$?
26350   grep -v '^ *+' conftest.er1 >conftest.err
26351   rm -f conftest.er1
26352   cat conftest.err >&5
26353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26354   (exit $ac_status); } &&
26355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26356   { (case "(($ac_try" in
26357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358   *) ac_try_echo=$ac_try;;
26359 esac
26360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26361   (eval "$ac_try") 2>&5
26362   ac_status=$?
26363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26364   (exit $ac_status); }; } &&
26365          { ac_try='test -s conftest.$ac_objext'
26366   { (case "(($ac_try" in
26367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26368   *) ac_try_echo=$ac_try;;
26369 esac
26370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26371   (eval "$ac_try") 2>&5
26372   ac_status=$?
26373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26374   (exit $ac_status); }; }; then
26375   ac_lo=0 ac_mid=0
26376   while :; do
26377     cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383 $ac_includes_default
26384                    typedef short int ac__type_sizeof_;
26385 int
26386 main ()
26387 {
26388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26389 test_array [0] = 0
26390
26391   ;
26392   return 0;
26393 }
26394 _ACEOF
26395 rm -f conftest.$ac_objext
26396 if { (ac_try="$ac_compile"
26397 case "(($ac_try" in
26398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26399   *) ac_try_echo=$ac_try;;
26400 esac
26401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26402   (eval "$ac_compile") 2>conftest.er1
26403   ac_status=$?
26404   grep -v '^ *+' conftest.er1 >conftest.err
26405   rm -f conftest.er1
26406   cat conftest.err >&5
26407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26408   (exit $ac_status); } &&
26409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26410   { (case "(($ac_try" in
26411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26412   *) ac_try_echo=$ac_try;;
26413 esac
26414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26415   (eval "$ac_try") 2>&5
26416   ac_status=$?
26417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26418   (exit $ac_status); }; } &&
26419          { ac_try='test -s conftest.$ac_objext'
26420   { (case "(($ac_try" in
26421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26422   *) ac_try_echo=$ac_try;;
26423 esac
26424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26425   (eval "$ac_try") 2>&5
26426   ac_status=$?
26427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26428   (exit $ac_status); }; }; then
26429   ac_hi=$ac_mid; break
26430 else
26431   echo "$as_me: failed program was:" >&5
26432 sed 's/^/| /' conftest.$ac_ext >&5
26433
26434         ac_lo=`expr $ac_mid + 1`
26435                         if test $ac_lo -le $ac_mid; then
26436                           ac_lo= ac_hi=
26437                           break
26438                         fi
26439                         ac_mid=`expr 2 '*' $ac_mid + 1`
26440 fi
26441
26442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26443   done
26444 else
26445   echo "$as_me: failed program was:" >&5
26446 sed 's/^/| /' conftest.$ac_ext >&5
26447
26448         cat >conftest.$ac_ext <<_ACEOF
26449 /* confdefs.h.  */
26450 _ACEOF
26451 cat confdefs.h >>conftest.$ac_ext
26452 cat >>conftest.$ac_ext <<_ACEOF
26453 /* end confdefs.h.  */
26454 $ac_includes_default
26455                    typedef short int ac__type_sizeof_;
26456 int
26457 main ()
26458 {
26459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26460 test_array [0] = 0
26461
26462   ;
26463   return 0;
26464 }
26465 _ACEOF
26466 rm -f conftest.$ac_objext
26467 if { (ac_try="$ac_compile"
26468 case "(($ac_try" in
26469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26470   *) ac_try_echo=$ac_try;;
26471 esac
26472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26473   (eval "$ac_compile") 2>conftest.er1
26474   ac_status=$?
26475   grep -v '^ *+' conftest.er1 >conftest.err
26476   rm -f conftest.er1
26477   cat conftest.err >&5
26478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479   (exit $ac_status); } &&
26480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26481   { (case "(($ac_try" in
26482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26483   *) ac_try_echo=$ac_try;;
26484 esac
26485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26486   (eval "$ac_try") 2>&5
26487   ac_status=$?
26488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26489   (exit $ac_status); }; } &&
26490          { ac_try='test -s conftest.$ac_objext'
26491   { (case "(($ac_try" in
26492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493   *) ac_try_echo=$ac_try;;
26494 esac
26495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496   (eval "$ac_try") 2>&5
26497   ac_status=$?
26498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26499   (exit $ac_status); }; }; then
26500   ac_hi=-1 ac_mid=-1
26501   while :; do
26502     cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h.  */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h.  */
26508 $ac_includes_default
26509                    typedef short int ac__type_sizeof_;
26510 int
26511 main ()
26512 {
26513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26514 test_array [0] = 0
26515
26516   ;
26517   return 0;
26518 }
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } &&
26534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26535   { (case "(($ac_try" in
26536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26537   *) ac_try_echo=$ac_try;;
26538 esac
26539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26540   (eval "$ac_try") 2>&5
26541   ac_status=$?
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); }; } &&
26544          { ac_try='test -s conftest.$ac_objext'
26545   { (case "(($ac_try" in
26546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547   *) ac_try_echo=$ac_try;;
26548 esac
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550   (eval "$ac_try") 2>&5
26551   ac_status=$?
26552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26553   (exit $ac_status); }; }; then
26554   ac_lo=$ac_mid; break
26555 else
26556   echo "$as_me: failed program was:" >&5
26557 sed 's/^/| /' conftest.$ac_ext >&5
26558
26559         ac_hi=`expr '(' $ac_mid ')' - 1`
26560                         if test $ac_mid -le $ac_hi; then
26561                           ac_lo= ac_hi=
26562                           break
26563                         fi
26564                         ac_mid=`expr 2 '*' $ac_mid`
26565 fi
26566
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568   done
26569 else
26570   echo "$as_me: failed program was:" >&5
26571 sed 's/^/| /' conftest.$ac_ext >&5
26572
26573         ac_lo= ac_hi=
26574 fi
26575
26576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26577 fi
26578
26579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26580 # Binary search between lo and hi bounds.
26581 while test "x$ac_lo" != "x$ac_hi"; do
26582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26583   cat >conftest.$ac_ext <<_ACEOF
26584 /* confdefs.h.  */
26585 _ACEOF
26586 cat confdefs.h >>conftest.$ac_ext
26587 cat >>conftest.$ac_ext <<_ACEOF
26588 /* end confdefs.h.  */
26589 $ac_includes_default
26590                    typedef short int ac__type_sizeof_;
26591 int
26592 main ()
26593 {
26594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26595 test_array [0] = 0
26596
26597   ;
26598   return 0;
26599 }
26600 _ACEOF
26601 rm -f conftest.$ac_objext
26602 if { (ac_try="$ac_compile"
26603 case "(($ac_try" in
26604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26605   *) ac_try_echo=$ac_try;;
26606 esac
26607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26608   (eval "$ac_compile") 2>conftest.er1
26609   ac_status=$?
26610   grep -v '^ *+' conftest.er1 >conftest.err
26611   rm -f conftest.er1
26612   cat conftest.err >&5
26613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26614   (exit $ac_status); } &&
26615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26616   { (case "(($ac_try" in
26617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26618   *) ac_try_echo=$ac_try;;
26619 esac
26620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26621   (eval "$ac_try") 2>&5
26622   ac_status=$?
26623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624   (exit $ac_status); }; } &&
26625          { ac_try='test -s conftest.$ac_objext'
26626   { (case "(($ac_try" in
26627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628   *) ac_try_echo=$ac_try;;
26629 esac
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631   (eval "$ac_try") 2>&5
26632   ac_status=$?
26633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26634   (exit $ac_status); }; }; then
26635   ac_hi=$ac_mid
26636 else
26637   echo "$as_me: failed program was:" >&5
26638 sed 's/^/| /' conftest.$ac_ext >&5
26639
26640         ac_lo=`expr '(' $ac_mid ')' + 1`
26641 fi
26642
26643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26644 done
26645 case $ac_lo in
26646 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26648 See \`config.log' for more details." >&5
26649 echo "$as_me: error: cannot compute sizeof (short int)
26650 See \`config.log' for more details." >&2;}
26651    { (exit 77); exit 77; }; } ;;
26652 esac
26653 else
26654   cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h.  */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h.  */
26660 $ac_includes_default
26661                    typedef short int ac__type_sizeof_;
26662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26664 #include <stdio.h>
26665 #include <stdlib.h>
26666 int
26667 main ()
26668 {
26669
26670   FILE *f = fopen ("conftest.val", "w");
26671   if (! f)
26672     return 1;
26673   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26674     {
26675       long int i = longval ();
26676       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26677         return 1;
26678       fprintf (f, "%ld\n", i);
26679     }
26680   else
26681     {
26682       unsigned long int i = ulongval ();
26683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26684         return 1;
26685       fprintf (f, "%lu\n", i);
26686     }
26687   return ferror (f) || fclose (f) != 0;
26688
26689   ;
26690   return 0;
26691 }
26692 _ACEOF
26693 rm -f conftest$ac_exeext
26694 if { (ac_try="$ac_link"
26695 case "(($ac_try" in
26696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26697   *) ac_try_echo=$ac_try;;
26698 esac
26699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26700   (eval "$ac_link") 2>&5
26701   ac_status=$?
26702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26704   { (case "(($ac_try" in
26705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706   *) ac_try_echo=$ac_try;;
26707 esac
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709   (eval "$ac_try") 2>&5
26710   ac_status=$?
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); }; }; then
26713   ac_cv_sizeof_short_int=`cat conftest.val`
26714 else
26715   echo "$as_me: program exited with status $ac_status" >&5
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 ( exit $ac_status )
26720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26721 See \`config.log' for more details." >&5
26722 echo "$as_me: error: cannot compute sizeof (short int)
26723 See \`config.log' for more details." >&2;}
26724    { (exit 77); exit 77; }; }
26725 fi
26726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26727 fi
26728 rm -f conftest.val
26729 else
26730   ac_cv_sizeof_short_int=0
26731 fi
26732 fi
26733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26734 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26735 cat >>confdefs.h <<_ACEOF
26736 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26737 _ACEOF
26738
26739
26740 { echo "$as_me:$LINENO: checking for int" >&5
26741 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26742 if test "${ac_cv_type_int+set}" = set; then
26743   echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745   cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h.  */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h.  */
26751 $ac_includes_default
26752 typedef int ac__type_new_;
26753 int
26754 main ()
26755 {
26756 if ((ac__type_new_ *) 0)
26757   return 0;
26758 if (sizeof (ac__type_new_))
26759   return 0;
26760   ;
26761   return 0;
26762 }
26763 _ACEOF
26764 rm -f conftest.$ac_objext
26765 if { (ac_try="$ac_compile"
26766 case "(($ac_try" in
26767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26768   *) ac_try_echo=$ac_try;;
26769 esac
26770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26771   (eval "$ac_compile") 2>conftest.er1
26772   ac_status=$?
26773   grep -v '^ *+' conftest.er1 >conftest.err
26774   rm -f conftest.er1
26775   cat conftest.err >&5
26776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26777   (exit $ac_status); } &&
26778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26779   { (case "(($ac_try" in
26780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26781   *) ac_try_echo=$ac_try;;
26782 esac
26783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26784   (eval "$ac_try") 2>&5
26785   ac_status=$?
26786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26787   (exit $ac_status); }; } &&
26788          { ac_try='test -s conftest.$ac_objext'
26789   { (case "(($ac_try" in
26790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26791   *) ac_try_echo=$ac_try;;
26792 esac
26793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26794   (eval "$ac_try") 2>&5
26795   ac_status=$?
26796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797   (exit $ac_status); }; }; then
26798   ac_cv_type_int=yes
26799 else
26800   echo "$as_me: failed program was:" >&5
26801 sed 's/^/| /' conftest.$ac_ext >&5
26802
26803         ac_cv_type_int=no
26804 fi
26805
26806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26807 fi
26808 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26809 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26810
26811 { echo "$as_me:$LINENO: checking size of int" >&5
26812 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26813 if test "${ac_cv_sizeof_int+set}" = set; then
26814   echo $ECHO_N "(cached) $ECHO_C" >&6
26815 else
26816   if test "$ac_cv_type_int" = yes; then
26817   # The cast to long int works around a bug in the HP C Compiler
26818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26820   # This bug is HP SR number 8606223364.
26821   if test "$cross_compiling" = yes; then
26822   # Depending upon the size, compute the lo and hi bounds.
26823 cat >conftest.$ac_ext <<_ACEOF
26824 /* confdefs.h.  */
26825 _ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h.  */
26829 $ac_includes_default
26830                    typedef int ac__type_sizeof_;
26831 int
26832 main ()
26833 {
26834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26835 test_array [0] = 0
26836
26837   ;
26838   return 0;
26839 }
26840 _ACEOF
26841 rm -f conftest.$ac_objext
26842 if { (ac_try="$ac_compile"
26843 case "(($ac_try" in
26844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845   *) ac_try_echo=$ac_try;;
26846 esac
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848   (eval "$ac_compile") 2>conftest.er1
26849   ac_status=$?
26850   grep -v '^ *+' conftest.er1 >conftest.err
26851   rm -f conftest.er1
26852   cat conftest.err >&5
26853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854   (exit $ac_status); } &&
26855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26856   { (case "(($ac_try" in
26857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26858   *) ac_try_echo=$ac_try;;
26859 esac
26860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26861   (eval "$ac_try") 2>&5
26862   ac_status=$?
26863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864   (exit $ac_status); }; } &&
26865          { ac_try='test -s conftest.$ac_objext'
26866   { (case "(($ac_try" in
26867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26868   *) ac_try_echo=$ac_try;;
26869 esac
26870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26871   (eval "$ac_try") 2>&5
26872   ac_status=$?
26873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874   (exit $ac_status); }; }; then
26875   ac_lo=0 ac_mid=0
26876   while :; do
26877     cat >conftest.$ac_ext <<_ACEOF
26878 /* confdefs.h.  */
26879 _ACEOF
26880 cat confdefs.h >>conftest.$ac_ext
26881 cat >>conftest.$ac_ext <<_ACEOF
26882 /* end confdefs.h.  */
26883 $ac_includes_default
26884                    typedef int ac__type_sizeof_;
26885 int
26886 main ()
26887 {
26888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26889 test_array [0] = 0
26890
26891   ;
26892   return 0;
26893 }
26894 _ACEOF
26895 rm -f conftest.$ac_objext
26896 if { (ac_try="$ac_compile"
26897 case "(($ac_try" in
26898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26899   *) ac_try_echo=$ac_try;;
26900 esac
26901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26902   (eval "$ac_compile") 2>conftest.er1
26903   ac_status=$?
26904   grep -v '^ *+' conftest.er1 >conftest.err
26905   rm -f conftest.er1
26906   cat conftest.err >&5
26907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26908   (exit $ac_status); } &&
26909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26910   { (case "(($ac_try" in
26911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912   *) ac_try_echo=$ac_try;;
26913 esac
26914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26915   (eval "$ac_try") 2>&5
26916   ac_status=$?
26917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26918   (exit $ac_status); }; } &&
26919          { ac_try='test -s conftest.$ac_objext'
26920   { (case "(($ac_try" in
26921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26922   *) ac_try_echo=$ac_try;;
26923 esac
26924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26925   (eval "$ac_try") 2>&5
26926   ac_status=$?
26927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928   (exit $ac_status); }; }; then
26929   ac_hi=$ac_mid; break
26930 else
26931   echo "$as_me: failed program was:" >&5
26932 sed 's/^/| /' conftest.$ac_ext >&5
26933
26934         ac_lo=`expr $ac_mid + 1`
26935                         if test $ac_lo -le $ac_mid; then
26936                           ac_lo= ac_hi=
26937                           break
26938                         fi
26939                         ac_mid=`expr 2 '*' $ac_mid + 1`
26940 fi
26941
26942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26943   done
26944 else
26945   echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26947
26948         cat >conftest.$ac_ext <<_ACEOF
26949 /* confdefs.h.  */
26950 _ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h.  */
26954 $ac_includes_default
26955                    typedef int ac__type_sizeof_;
26956 int
26957 main ()
26958 {
26959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26960 test_array [0] = 0
26961
26962   ;
26963   return 0;
26964 }
26965 _ACEOF
26966 rm -f conftest.$ac_objext
26967 if { (ac_try="$ac_compile"
26968 case "(($ac_try" in
26969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26970   *) ac_try_echo=$ac_try;;
26971 esac
26972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26973   (eval "$ac_compile") 2>conftest.er1
26974   ac_status=$?
26975   grep -v '^ *+' conftest.er1 >conftest.err
26976   rm -f conftest.er1
26977   cat conftest.err >&5
26978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979   (exit $ac_status); } &&
26980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26981   { (case "(($ac_try" in
26982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983   *) ac_try_echo=$ac_try;;
26984 esac
26985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26986   (eval "$ac_try") 2>&5
26987   ac_status=$?
26988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26989   (exit $ac_status); }; } &&
26990          { ac_try='test -s conftest.$ac_objext'
26991   { (case "(($ac_try" in
26992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993   *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996   (eval "$ac_try") 2>&5
26997   ac_status=$?
26998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); }; }; then
27000   ac_hi=-1 ac_mid=-1
27001   while :; do
27002     cat >conftest.$ac_ext <<_ACEOF
27003 /* confdefs.h.  */
27004 _ACEOF
27005 cat confdefs.h >>conftest.$ac_ext
27006 cat >>conftest.$ac_ext <<_ACEOF
27007 /* end confdefs.h.  */
27008 $ac_includes_default
27009                    typedef int ac__type_sizeof_;
27010 int
27011 main ()
27012 {
27013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27014 test_array [0] = 0
27015
27016   ;
27017   return 0;
27018 }
27019 _ACEOF
27020 rm -f conftest.$ac_objext
27021 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27028   ac_status=$?
27029   grep -v '^ *+' conftest.er1 >conftest.err
27030   rm -f conftest.er1
27031   cat conftest.err >&5
27032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033   (exit $ac_status); } &&
27034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27035   { (case "(($ac_try" in
27036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27037   *) ac_try_echo=$ac_try;;
27038 esac
27039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27040   (eval "$ac_try") 2>&5
27041   ac_status=$?
27042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27043   (exit $ac_status); }; } &&
27044          { ac_try='test -s conftest.$ac_objext'
27045   { (case "(($ac_try" in
27046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27047   *) ac_try_echo=$ac_try;;
27048 esac
27049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27050   (eval "$ac_try") 2>&5
27051   ac_status=$?
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); }; }; then
27054   ac_lo=$ac_mid; break
27055 else
27056   echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27058
27059         ac_hi=`expr '(' $ac_mid ')' - 1`
27060                         if test $ac_mid -le $ac_hi; then
27061                           ac_lo= ac_hi=
27062                           break
27063                         fi
27064                         ac_mid=`expr 2 '*' $ac_mid`
27065 fi
27066
27067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27068   done
27069 else
27070   echo "$as_me: failed program was:" >&5
27071 sed 's/^/| /' conftest.$ac_ext >&5
27072
27073         ac_lo= ac_hi=
27074 fi
27075
27076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27077 fi
27078
27079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27080 # Binary search between lo and hi bounds.
27081 while test "x$ac_lo" != "x$ac_hi"; do
27082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27083   cat >conftest.$ac_ext <<_ACEOF
27084 /* confdefs.h.  */
27085 _ACEOF
27086 cat confdefs.h >>conftest.$ac_ext
27087 cat >>conftest.$ac_ext <<_ACEOF
27088 /* end confdefs.h.  */
27089 $ac_includes_default
27090                    typedef int ac__type_sizeof_;
27091 int
27092 main ()
27093 {
27094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27095 test_array [0] = 0
27096
27097   ;
27098   return 0;
27099 }
27100 _ACEOF
27101 rm -f conftest.$ac_objext
27102 if { (ac_try="$ac_compile"
27103 case "(($ac_try" in
27104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27105   *) ac_try_echo=$ac_try;;
27106 esac
27107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27108   (eval "$ac_compile") 2>conftest.er1
27109   ac_status=$?
27110   grep -v '^ *+' conftest.er1 >conftest.err
27111   rm -f conftest.er1
27112   cat conftest.err >&5
27113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114   (exit $ac_status); } &&
27115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27116   { (case "(($ac_try" in
27117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27118   *) ac_try_echo=$ac_try;;
27119 esac
27120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27121   (eval "$ac_try") 2>&5
27122   ac_status=$?
27123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27124   (exit $ac_status); }; } &&
27125          { ac_try='test -s conftest.$ac_objext'
27126   { (case "(($ac_try" in
27127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27128   *) ac_try_echo=$ac_try;;
27129 esac
27130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27131   (eval "$ac_try") 2>&5
27132   ac_status=$?
27133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27134   (exit $ac_status); }; }; then
27135   ac_hi=$ac_mid
27136 else
27137   echo "$as_me: failed program was:" >&5
27138 sed 's/^/| /' conftest.$ac_ext >&5
27139
27140         ac_lo=`expr '(' $ac_mid ')' + 1`
27141 fi
27142
27143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27144 done
27145 case $ac_lo in
27146 ?*) ac_cv_sizeof_int=$ac_lo;;
27147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27148 See \`config.log' for more details." >&5
27149 echo "$as_me: error: cannot compute sizeof (int)
27150 See \`config.log' for more details." >&2;}
27151    { (exit 77); exit 77; }; } ;;
27152 esac
27153 else
27154   cat >conftest.$ac_ext <<_ACEOF
27155 /* confdefs.h.  */
27156 _ACEOF
27157 cat confdefs.h >>conftest.$ac_ext
27158 cat >>conftest.$ac_ext <<_ACEOF
27159 /* end confdefs.h.  */
27160 $ac_includes_default
27161                    typedef int ac__type_sizeof_;
27162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27164 #include <stdio.h>
27165 #include <stdlib.h>
27166 int
27167 main ()
27168 {
27169
27170   FILE *f = fopen ("conftest.val", "w");
27171   if (! f)
27172     return 1;
27173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27174     {
27175       long int i = longval ();
27176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27177         return 1;
27178       fprintf (f, "%ld\n", i);
27179     }
27180   else
27181     {
27182       unsigned long int i = ulongval ();
27183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27184         return 1;
27185       fprintf (f, "%lu\n", i);
27186     }
27187   return ferror (f) || fclose (f) != 0;
27188
27189   ;
27190   return 0;
27191 }
27192 _ACEOF
27193 rm -f conftest$ac_exeext
27194 if { (ac_try="$ac_link"
27195 case "(($ac_try" in
27196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27197   *) ac_try_echo=$ac_try;;
27198 esac
27199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27200   (eval "$ac_link") 2>&5
27201   ac_status=$?
27202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27204   { (case "(($ac_try" in
27205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27206   *) ac_try_echo=$ac_try;;
27207 esac
27208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27209   (eval "$ac_try") 2>&5
27210   ac_status=$?
27211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212   (exit $ac_status); }; }; then
27213   ac_cv_sizeof_int=`cat conftest.val`
27214 else
27215   echo "$as_me: program exited with status $ac_status" >&5
27216 echo "$as_me: failed program was:" >&5
27217 sed 's/^/| /' conftest.$ac_ext >&5
27218
27219 ( exit $ac_status )
27220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27221 See \`config.log' for more details." >&5
27222 echo "$as_me: error: cannot compute sizeof (int)
27223 See \`config.log' for more details." >&2;}
27224    { (exit 77); exit 77; }; }
27225 fi
27226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27227 fi
27228 rm -f conftest.val
27229 else
27230   ac_cv_sizeof_int=0
27231 fi
27232 fi
27233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27234 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27235 cat >>confdefs.h <<_ACEOF
27236 #define SIZEOF_INT $ac_cv_sizeof_int
27237 _ACEOF
27238
27239
27240 { echo "$as_me:$LINENO: checking for long int" >&5
27241 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27242 if test "${ac_cv_type_long_int+set}" = set; then
27243   echo $ECHO_N "(cached) $ECHO_C" >&6
27244 else
27245   cat >conftest.$ac_ext <<_ACEOF
27246 /* confdefs.h.  */
27247 _ACEOF
27248 cat confdefs.h >>conftest.$ac_ext
27249 cat >>conftest.$ac_ext <<_ACEOF
27250 /* end confdefs.h.  */
27251 $ac_includes_default
27252 typedef long int ac__type_new_;
27253 int
27254 main ()
27255 {
27256 if ((ac__type_new_ *) 0)
27257   return 0;
27258 if (sizeof (ac__type_new_))
27259   return 0;
27260   ;
27261   return 0;
27262 }
27263 _ACEOF
27264 rm -f conftest.$ac_objext
27265 if { (ac_try="$ac_compile"
27266 case "(($ac_try" in
27267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27268   *) ac_try_echo=$ac_try;;
27269 esac
27270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27271   (eval "$ac_compile") 2>conftest.er1
27272   ac_status=$?
27273   grep -v '^ *+' conftest.er1 >conftest.err
27274   rm -f conftest.er1
27275   cat conftest.err >&5
27276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27277   (exit $ac_status); } &&
27278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27279   { (case "(($ac_try" in
27280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281   *) ac_try_echo=$ac_try;;
27282 esac
27283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27284   (eval "$ac_try") 2>&5
27285   ac_status=$?
27286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); }; } &&
27288          { ac_try='test -s conftest.$ac_objext'
27289   { (case "(($ac_try" in
27290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291   *) ac_try_echo=$ac_try;;
27292 esac
27293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27294   (eval "$ac_try") 2>&5
27295   ac_status=$?
27296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27297   (exit $ac_status); }; }; then
27298   ac_cv_type_long_int=yes
27299 else
27300   echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27302
27303         ac_cv_type_long_int=no
27304 fi
27305
27306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27307 fi
27308 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27309 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27310
27311 { echo "$as_me:$LINENO: checking size of long int" >&5
27312 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27313 if test "${ac_cv_sizeof_long_int+set}" = set; then
27314   echo $ECHO_N "(cached) $ECHO_C" >&6
27315 else
27316   if test "$ac_cv_type_long_int" = yes; then
27317   # The cast to long int works around a bug in the HP C Compiler
27318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27320   # This bug is HP SR number 8606223364.
27321   if test "$cross_compiling" = yes; then
27322   # Depending upon the size, compute the lo and hi bounds.
27323 cat >conftest.$ac_ext <<_ACEOF
27324 /* confdefs.h.  */
27325 _ACEOF
27326 cat confdefs.h >>conftest.$ac_ext
27327 cat >>conftest.$ac_ext <<_ACEOF
27328 /* end confdefs.h.  */
27329 $ac_includes_default
27330                    typedef long int ac__type_sizeof_;
27331 int
27332 main ()
27333 {
27334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27335 test_array [0] = 0
27336
27337   ;
27338   return 0;
27339 }
27340 _ACEOF
27341 rm -f conftest.$ac_objext
27342 if { (ac_try="$ac_compile"
27343 case "(($ac_try" in
27344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27345   *) ac_try_echo=$ac_try;;
27346 esac
27347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27348   (eval "$ac_compile") 2>conftest.er1
27349   ac_status=$?
27350   grep -v '^ *+' conftest.er1 >conftest.err
27351   rm -f conftest.er1
27352   cat conftest.err >&5
27353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354   (exit $ac_status); } &&
27355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27356   { (case "(($ac_try" in
27357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358   *) ac_try_echo=$ac_try;;
27359 esac
27360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27361   (eval "$ac_try") 2>&5
27362   ac_status=$?
27363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364   (exit $ac_status); }; } &&
27365          { ac_try='test -s conftest.$ac_objext'
27366   { (case "(($ac_try" in
27367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368   *) ac_try_echo=$ac_try;;
27369 esac
27370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27371   (eval "$ac_try") 2>&5
27372   ac_status=$?
27373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27374   (exit $ac_status); }; }; then
27375   ac_lo=0 ac_mid=0
27376   while :; do
27377     cat >conftest.$ac_ext <<_ACEOF
27378 /* confdefs.h.  */
27379 _ACEOF
27380 cat confdefs.h >>conftest.$ac_ext
27381 cat >>conftest.$ac_ext <<_ACEOF
27382 /* end confdefs.h.  */
27383 $ac_includes_default
27384                    typedef long int ac__type_sizeof_;
27385 int
27386 main ()
27387 {
27388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27389 test_array [0] = 0
27390
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399   *) ac_try_echo=$ac_try;;
27400 esac
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402   (eval "$ac_compile") 2>conftest.er1
27403   ac_status=$?
27404   grep -v '^ *+' conftest.er1 >conftest.err
27405   rm -f conftest.er1
27406   cat conftest.err >&5
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); } &&
27409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27410   { (case "(($ac_try" in
27411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27412   *) ac_try_echo=$ac_try;;
27413 esac
27414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27415   (eval "$ac_try") 2>&5
27416   ac_status=$?
27417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27418   (exit $ac_status); }; } &&
27419          { ac_try='test -s conftest.$ac_objext'
27420   { (case "(($ac_try" in
27421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27422   *) ac_try_echo=$ac_try;;
27423 esac
27424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27425   (eval "$ac_try") 2>&5
27426   ac_status=$?
27427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428   (exit $ac_status); }; }; then
27429   ac_hi=$ac_mid; break
27430 else
27431   echo "$as_me: failed program was:" >&5
27432 sed 's/^/| /' conftest.$ac_ext >&5
27433
27434         ac_lo=`expr $ac_mid + 1`
27435                         if test $ac_lo -le $ac_mid; then
27436                           ac_lo= ac_hi=
27437                           break
27438                         fi
27439                         ac_mid=`expr 2 '*' $ac_mid + 1`
27440 fi
27441
27442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27443   done
27444 else
27445   echo "$as_me: failed program was:" >&5
27446 sed 's/^/| /' conftest.$ac_ext >&5
27447
27448         cat >conftest.$ac_ext <<_ACEOF
27449 /* confdefs.h.  */
27450 _ACEOF
27451 cat confdefs.h >>conftest.$ac_ext
27452 cat >>conftest.$ac_ext <<_ACEOF
27453 /* end confdefs.h.  */
27454 $ac_includes_default
27455                    typedef long int ac__type_sizeof_;
27456 int
27457 main ()
27458 {
27459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27460 test_array [0] = 0
27461
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 rm -f conftest.$ac_objext
27467 if { (ac_try="$ac_compile"
27468 case "(($ac_try" in
27469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470   *) ac_try_echo=$ac_try;;
27471 esac
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473   (eval "$ac_compile") 2>conftest.er1
27474   ac_status=$?
27475   grep -v '^ *+' conftest.er1 >conftest.err
27476   rm -f conftest.er1
27477   cat conftest.err >&5
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); } &&
27480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27481   { (case "(($ac_try" in
27482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483   *) ac_try_echo=$ac_try;;
27484 esac
27485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486   (eval "$ac_try") 2>&5
27487   ac_status=$?
27488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27489   (exit $ac_status); }; } &&
27490          { ac_try='test -s conftest.$ac_objext'
27491   { (case "(($ac_try" in
27492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27493   *) ac_try_echo=$ac_try;;
27494 esac
27495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27496   (eval "$ac_try") 2>&5
27497   ac_status=$?
27498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499   (exit $ac_status); }; }; then
27500   ac_hi=-1 ac_mid=-1
27501   while :; do
27502     cat >conftest.$ac_ext <<_ACEOF
27503 /* confdefs.h.  */
27504 _ACEOF
27505 cat confdefs.h >>conftest.$ac_ext
27506 cat >>conftest.$ac_ext <<_ACEOF
27507 /* end confdefs.h.  */
27508 $ac_includes_default
27509                    typedef long int ac__type_sizeof_;
27510 int
27511 main ()
27512 {
27513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27514 test_array [0] = 0
27515
27516   ;
27517   return 0;
27518 }
27519 _ACEOF
27520 rm -f conftest.$ac_objext
27521 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
27528   ac_status=$?
27529   grep -v '^ *+' conftest.er1 >conftest.err
27530   rm -f conftest.er1
27531   cat conftest.err >&5
27532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27533   (exit $ac_status); } &&
27534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27535   { (case "(($ac_try" in
27536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537   *) ac_try_echo=$ac_try;;
27538 esac
27539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540   (eval "$ac_try") 2>&5
27541   ac_status=$?
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); }; } &&
27544          { ac_try='test -s conftest.$ac_objext'
27545   { (case "(($ac_try" in
27546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547   *) ac_try_echo=$ac_try;;
27548 esac
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550   (eval "$ac_try") 2>&5
27551   ac_status=$?
27552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27553   (exit $ac_status); }; }; then
27554   ac_lo=$ac_mid; break
27555 else
27556   echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.$ac_ext >&5
27558
27559         ac_hi=`expr '(' $ac_mid ')' - 1`
27560                         if test $ac_mid -le $ac_hi; then
27561                           ac_lo= ac_hi=
27562                           break
27563                         fi
27564                         ac_mid=`expr 2 '*' $ac_mid`
27565 fi
27566
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27568   done
27569 else
27570   echo "$as_me: failed program was:" >&5
27571 sed 's/^/| /' conftest.$ac_ext >&5
27572
27573         ac_lo= ac_hi=
27574 fi
27575
27576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27577 fi
27578
27579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27580 # Binary search between lo and hi bounds.
27581 while test "x$ac_lo" != "x$ac_hi"; do
27582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27583   cat >conftest.$ac_ext <<_ACEOF
27584 /* confdefs.h.  */
27585 _ACEOF
27586 cat confdefs.h >>conftest.$ac_ext
27587 cat >>conftest.$ac_ext <<_ACEOF
27588 /* end confdefs.h.  */
27589 $ac_includes_default
27590                    typedef long int ac__type_sizeof_;
27591 int
27592 main ()
27593 {
27594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27595 test_array [0] = 0
27596
27597   ;
27598   return 0;
27599 }
27600 _ACEOF
27601 rm -f conftest.$ac_objext
27602 if { (ac_try="$ac_compile"
27603 case "(($ac_try" in
27604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27605   *) ac_try_echo=$ac_try;;
27606 esac
27607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27608   (eval "$ac_compile") 2>conftest.er1
27609   ac_status=$?
27610   grep -v '^ *+' conftest.er1 >conftest.err
27611   rm -f conftest.er1
27612   cat conftest.err >&5
27613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614   (exit $ac_status); } &&
27615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27616   { (case "(($ac_try" in
27617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618   *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621   (eval "$ac_try") 2>&5
27622   ac_status=$?
27623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624   (exit $ac_status); }; } &&
27625          { ac_try='test -s conftest.$ac_objext'
27626   { (case "(($ac_try" in
27627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27628   *) ac_try_echo=$ac_try;;
27629 esac
27630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27631   (eval "$ac_try") 2>&5
27632   ac_status=$?
27633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27634   (exit $ac_status); }; }; then
27635   ac_hi=$ac_mid
27636 else
27637   echo "$as_me: failed program was:" >&5
27638 sed 's/^/| /' conftest.$ac_ext >&5
27639
27640         ac_lo=`expr '(' $ac_mid ')' + 1`
27641 fi
27642
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27644 done
27645 case $ac_lo in
27646 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27648 See \`config.log' for more details." >&5
27649 echo "$as_me: error: cannot compute sizeof (long int)
27650 See \`config.log' for more details." >&2;}
27651    { (exit 77); exit 77; }; } ;;
27652 esac
27653 else
27654   cat >conftest.$ac_ext <<_ACEOF
27655 /* confdefs.h.  */
27656 _ACEOF
27657 cat confdefs.h >>conftest.$ac_ext
27658 cat >>conftest.$ac_ext <<_ACEOF
27659 /* end confdefs.h.  */
27660 $ac_includes_default
27661                    typedef long int ac__type_sizeof_;
27662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27664 #include <stdio.h>
27665 #include <stdlib.h>
27666 int
27667 main ()
27668 {
27669
27670   FILE *f = fopen ("conftest.val", "w");
27671   if (! f)
27672     return 1;
27673   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27674     {
27675       long int i = longval ();
27676       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27677         return 1;
27678       fprintf (f, "%ld\n", i);
27679     }
27680   else
27681     {
27682       unsigned long int i = ulongval ();
27683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27684         return 1;
27685       fprintf (f, "%lu\n", i);
27686     }
27687   return ferror (f) || fclose (f) != 0;
27688
27689   ;
27690   return 0;
27691 }
27692 _ACEOF
27693 rm -f conftest$ac_exeext
27694 if { (ac_try="$ac_link"
27695 case "(($ac_try" in
27696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27697   *) ac_try_echo=$ac_try;;
27698 esac
27699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27700   (eval "$ac_link") 2>&5
27701   ac_status=$?
27702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27704   { (case "(($ac_try" in
27705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27706   *) ac_try_echo=$ac_try;;
27707 esac
27708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27709   (eval "$ac_try") 2>&5
27710   ac_status=$?
27711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27712   (exit $ac_status); }; }; then
27713   ac_cv_sizeof_long_int=`cat conftest.val`
27714 else
27715   echo "$as_me: program exited with status $ac_status" >&5
27716 echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719 ( exit $ac_status )
27720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27721 See \`config.log' for more details." >&5
27722 echo "$as_me: error: cannot compute sizeof (long int)
27723 See \`config.log' for more details." >&2;}
27724    { (exit 77); exit 77; }; }
27725 fi
27726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27727 fi
27728 rm -f conftest.val
27729 else
27730   ac_cv_sizeof_long_int=0
27731 fi
27732 fi
27733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27734 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27735 cat >>confdefs.h <<_ACEOF
27736 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27737 _ACEOF
27738
27739
27740 { echo "$as_me:$LINENO: checking for long long int" >&5
27741 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27742 if test "${ac_cv_type_long_long_int+set}" = set; then
27743   echo $ECHO_N "(cached) $ECHO_C" >&6
27744 else
27745   cat >conftest.$ac_ext <<_ACEOF
27746 /* confdefs.h.  */
27747 _ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h.  */
27751 $ac_includes_default
27752 typedef long long int ac__type_new_;
27753 int
27754 main ()
27755 {
27756 if ((ac__type_new_ *) 0)
27757   return 0;
27758 if (sizeof (ac__type_new_))
27759   return 0;
27760   ;
27761   return 0;
27762 }
27763 _ACEOF
27764 rm -f conftest.$ac_objext
27765 if { (ac_try="$ac_compile"
27766 case "(($ac_try" in
27767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27768   *) ac_try_echo=$ac_try;;
27769 esac
27770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27771   (eval "$ac_compile") 2>conftest.er1
27772   ac_status=$?
27773   grep -v '^ *+' conftest.er1 >conftest.err
27774   rm -f conftest.er1
27775   cat conftest.err >&5
27776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27777   (exit $ac_status); } &&
27778          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27779   { (case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27784   (eval "$ac_try") 2>&5
27785   ac_status=$?
27786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787   (exit $ac_status); }; } &&
27788          { ac_try='test -s conftest.$ac_objext'
27789   { (case "(($ac_try" in
27790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27791   *) ac_try_echo=$ac_try;;
27792 esac
27793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27794   (eval "$ac_try") 2>&5
27795   ac_status=$?
27796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27797   (exit $ac_status); }; }; then
27798   ac_cv_type_long_long_int=yes
27799 else
27800   echo "$as_me: failed program was:" >&5
27801 sed 's/^/| /' conftest.$ac_ext >&5
27802
27803         ac_cv_type_long_long_int=no
27804 fi
27805
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27807 fi
27808 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27809 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27810
27811 { echo "$as_me:$LINENO: checking size of long long int" >&5
27812 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27813 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27814   echo $ECHO_N "(cached) $ECHO_C" >&6
27815 else
27816   if test "$ac_cv_type_long_long_int" = yes; then
27817   # The cast to long int works around a bug in the HP C Compiler
27818   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27819   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27820   # This bug is HP SR number 8606223364.
27821   if test "$cross_compiling" = yes; then
27822   # Depending upon the size, compute the lo and hi bounds.
27823 cat >conftest.$ac_ext <<_ACEOF
27824 /* confdefs.h.  */
27825 _ACEOF
27826 cat confdefs.h >>conftest.$ac_ext
27827 cat >>conftest.$ac_ext <<_ACEOF
27828 /* end confdefs.h.  */
27829 $ac_includes_default
27830                    typedef long long int ac__type_sizeof_;
27831 int
27832 main ()
27833 {
27834 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27835 test_array [0] = 0
27836
27837   ;
27838   return 0;
27839 }
27840 _ACEOF
27841 rm -f conftest.$ac_objext
27842 if { (ac_try="$ac_compile"
27843 case "(($ac_try" in
27844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27845   *) ac_try_echo=$ac_try;;
27846 esac
27847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27848   (eval "$ac_compile") 2>conftest.er1
27849   ac_status=$?
27850   grep -v '^ *+' conftest.er1 >conftest.err
27851   rm -f conftest.er1
27852   cat conftest.err >&5
27853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27854   (exit $ac_status); } &&
27855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27856   { (case "(($ac_try" in
27857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858   *) ac_try_echo=$ac_try;;
27859 esac
27860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27861   (eval "$ac_try") 2>&5
27862   ac_status=$?
27863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27864   (exit $ac_status); }; } &&
27865          { ac_try='test -s conftest.$ac_objext'
27866   { (case "(($ac_try" in
27867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27868   *) ac_try_echo=$ac_try;;
27869 esac
27870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27871   (eval "$ac_try") 2>&5
27872   ac_status=$?
27873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874   (exit $ac_status); }; }; then
27875   ac_lo=0 ac_mid=0
27876   while :; do
27877     cat >conftest.$ac_ext <<_ACEOF
27878 /* confdefs.h.  */
27879 _ACEOF
27880 cat confdefs.h >>conftest.$ac_ext
27881 cat >>conftest.$ac_ext <<_ACEOF
27882 /* end confdefs.h.  */
27883 $ac_includes_default
27884                    typedef long long int ac__type_sizeof_;
27885 int
27886 main ()
27887 {
27888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27889 test_array [0] = 0
27890
27891   ;
27892   return 0;
27893 }
27894 _ACEOF
27895 rm -f conftest.$ac_objext
27896 if { (ac_try="$ac_compile"
27897 case "(($ac_try" in
27898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899   *) ac_try_echo=$ac_try;;
27900 esac
27901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27902   (eval "$ac_compile") 2>conftest.er1
27903   ac_status=$?
27904   grep -v '^ *+' conftest.er1 >conftest.err
27905   rm -f conftest.er1
27906   cat conftest.err >&5
27907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27908   (exit $ac_status); } &&
27909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27910   { (case "(($ac_try" in
27911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912   *) ac_try_echo=$ac_try;;
27913 esac
27914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27915   (eval "$ac_try") 2>&5
27916   ac_status=$?
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); }; } &&
27919          { ac_try='test -s conftest.$ac_objext'
27920   { (case "(($ac_try" in
27921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27922   *) ac_try_echo=$ac_try;;
27923 esac
27924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27925   (eval "$ac_try") 2>&5
27926   ac_status=$?
27927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27928   (exit $ac_status); }; }; then
27929   ac_hi=$ac_mid; break
27930 else
27931   echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934         ac_lo=`expr $ac_mid + 1`
27935                         if test $ac_lo -le $ac_mid; then
27936                           ac_lo= ac_hi=
27937                           break
27938                         fi
27939                         ac_mid=`expr 2 '*' $ac_mid + 1`
27940 fi
27941
27942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27943   done
27944 else
27945   echo "$as_me: failed program was:" >&5
27946 sed 's/^/| /' conftest.$ac_ext >&5
27947
27948         cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h.  */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h.  */
27954 $ac_includes_default
27955                    typedef long long int ac__type_sizeof_;
27956 int
27957 main ()
27958 {
27959 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27960 test_array [0] = 0
27961
27962   ;
27963   return 0;
27964 }
27965 _ACEOF
27966 rm -f conftest.$ac_objext
27967 if { (ac_try="$ac_compile"
27968 case "(($ac_try" in
27969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27970   *) ac_try_echo=$ac_try;;
27971 esac
27972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27973   (eval "$ac_compile") 2>conftest.er1
27974   ac_status=$?
27975   grep -v '^ *+' conftest.er1 >conftest.err
27976   rm -f conftest.er1
27977   cat conftest.err >&5
27978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979   (exit $ac_status); } &&
27980          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27981   { (case "(($ac_try" in
27982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27983   *) ac_try_echo=$ac_try;;
27984 esac
27985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27986   (eval "$ac_try") 2>&5
27987   ac_status=$?
27988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27989   (exit $ac_status); }; } &&
27990          { ac_try='test -s conftest.$ac_objext'
27991   { (case "(($ac_try" in
27992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27993   *) ac_try_echo=$ac_try;;
27994 esac
27995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27996   (eval "$ac_try") 2>&5
27997   ac_status=$?
27998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27999   (exit $ac_status); }; }; then
28000   ac_hi=-1 ac_mid=-1
28001   while :; do
28002     cat >conftest.$ac_ext <<_ACEOF
28003 /* confdefs.h.  */
28004 _ACEOF
28005 cat confdefs.h >>conftest.$ac_ext
28006 cat >>conftest.$ac_ext <<_ACEOF
28007 /* end confdefs.h.  */
28008 $ac_includes_default
28009                    typedef long long int ac__type_sizeof_;
28010 int
28011 main ()
28012 {
28013 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28014 test_array [0] = 0
28015
28016   ;
28017   return 0;
28018 }
28019 _ACEOF
28020 rm -f conftest.$ac_objext
28021 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28028   ac_status=$?
28029   grep -v '^ *+' conftest.er1 >conftest.err
28030   rm -f conftest.er1
28031   cat conftest.err >&5
28032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28033   (exit $ac_status); } &&
28034          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28035   { (case "(($ac_try" in
28036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28037   *) ac_try_echo=$ac_try;;
28038 esac
28039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28040   (eval "$ac_try") 2>&5
28041   ac_status=$?
28042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043   (exit $ac_status); }; } &&
28044          { ac_try='test -s conftest.$ac_objext'
28045   { (case "(($ac_try" in
28046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28047   *) ac_try_echo=$ac_try;;
28048 esac
28049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28050   (eval "$ac_try") 2>&5
28051   ac_status=$?
28052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28053   (exit $ac_status); }; }; then
28054   ac_lo=$ac_mid; break
28055 else
28056   echo "$as_me: failed program was:" >&5
28057 sed 's/^/| /' conftest.$ac_ext >&5
28058
28059         ac_hi=`expr '(' $ac_mid ')' - 1`
28060                         if test $ac_mid -le $ac_hi; then
28061                           ac_lo= ac_hi=
28062                           break
28063                         fi
28064                         ac_mid=`expr 2 '*' $ac_mid`
28065 fi
28066
28067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28068   done
28069 else
28070   echo "$as_me: failed program was:" >&5
28071 sed 's/^/| /' conftest.$ac_ext >&5
28072
28073         ac_lo= ac_hi=
28074 fi
28075
28076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28077 fi
28078
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28080 # Binary search between lo and hi bounds.
28081 while test "x$ac_lo" != "x$ac_hi"; do
28082   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28083   cat >conftest.$ac_ext <<_ACEOF
28084 /* confdefs.h.  */
28085 _ACEOF
28086 cat confdefs.h >>conftest.$ac_ext
28087 cat >>conftest.$ac_ext <<_ACEOF
28088 /* end confdefs.h.  */
28089 $ac_includes_default
28090                    typedef long long int ac__type_sizeof_;
28091 int
28092 main ()
28093 {
28094 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28095 test_array [0] = 0
28096
28097   ;
28098   return 0;
28099 }
28100 _ACEOF
28101 rm -f conftest.$ac_objext
28102 if { (ac_try="$ac_compile"
28103 case "(($ac_try" in
28104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28105   *) ac_try_echo=$ac_try;;
28106 esac
28107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28108   (eval "$ac_compile") 2>conftest.er1
28109   ac_status=$?
28110   grep -v '^ *+' conftest.er1 >conftest.err
28111   rm -f conftest.er1
28112   cat conftest.err >&5
28113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114   (exit $ac_status); } &&
28115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28116   { (case "(($ac_try" in
28117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28118   *) ac_try_echo=$ac_try;;
28119 esac
28120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28121   (eval "$ac_try") 2>&5
28122   ac_status=$?
28123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28124   (exit $ac_status); }; } &&
28125          { ac_try='test -s conftest.$ac_objext'
28126   { (case "(($ac_try" in
28127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28128   *) ac_try_echo=$ac_try;;
28129 esac
28130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28131   (eval "$ac_try") 2>&5
28132   ac_status=$?
28133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28134   (exit $ac_status); }; }; then
28135   ac_hi=$ac_mid
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140         ac_lo=`expr '(' $ac_mid ')' + 1`
28141 fi
28142
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144 done
28145 case $ac_lo in
28146 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28148 See \`config.log' for more details." >&5
28149 echo "$as_me: error: cannot compute sizeof (long long int)
28150 See \`config.log' for more details." >&2;}
28151    { (exit 77); exit 77; }; } ;;
28152 esac
28153 else
28154   cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160 $ac_includes_default
28161                    typedef long long int ac__type_sizeof_;
28162 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28163 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28164 #include <stdio.h>
28165 #include <stdlib.h>
28166 int
28167 main ()
28168 {
28169
28170   FILE *f = fopen ("conftest.val", "w");
28171   if (! f)
28172     return 1;
28173   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28174     {
28175       long int i = longval ();
28176       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28177         return 1;
28178       fprintf (f, "%ld\n", i);
28179     }
28180   else
28181     {
28182       unsigned long int i = ulongval ();
28183       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28184         return 1;
28185       fprintf (f, "%lu\n", i);
28186     }
28187   return ferror (f) || fclose (f) != 0;
28188
28189   ;
28190   return 0;
28191 }
28192 _ACEOF
28193 rm -f conftest$ac_exeext
28194 if { (ac_try="$ac_link"
28195 case "(($ac_try" in
28196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28197   *) ac_try_echo=$ac_try;;
28198 esac
28199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28200   (eval "$ac_link") 2>&5
28201   ac_status=$?
28202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28203   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28204   { (case "(($ac_try" in
28205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28206   *) ac_try_echo=$ac_try;;
28207 esac
28208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28209   (eval "$ac_try") 2>&5
28210   ac_status=$?
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); }; }; then
28213   ac_cv_sizeof_long_long_int=`cat conftest.val`
28214 else
28215   echo "$as_me: program exited with status $ac_status" >&5
28216 echo "$as_me: failed program was:" >&5
28217 sed 's/^/| /' conftest.$ac_ext >&5
28218
28219 ( exit $ac_status )
28220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28221 See \`config.log' for more details." >&5
28222 echo "$as_me: error: cannot compute sizeof (long long int)
28223 See \`config.log' for more details." >&2;}
28224    { (exit 77); exit 77; }; }
28225 fi
28226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28227 fi
28228 rm -f conftest.val
28229 else
28230   ac_cv_sizeof_long_long_int=0
28231 fi
28232 fi
28233 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28234 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28235 cat >>confdefs.h <<_ACEOF
28236 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28237 _ACEOF
28238
28239
28240 { echo "$as_me:$LINENO: checking for int *" >&5
28241 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28242 if test "${ac_cv_type_int_p+set}" = set; then
28243   echo $ECHO_N "(cached) $ECHO_C" >&6
28244 else
28245   cat >conftest.$ac_ext <<_ACEOF
28246 /* confdefs.h.  */
28247 _ACEOF
28248 cat confdefs.h >>conftest.$ac_ext
28249 cat >>conftest.$ac_ext <<_ACEOF
28250 /* end confdefs.h.  */
28251 $ac_includes_default
28252 typedef int * ac__type_new_;
28253 int
28254 main ()
28255 {
28256 if ((ac__type_new_ *) 0)
28257   return 0;
28258 if (sizeof (ac__type_new_))
28259   return 0;
28260   ;
28261   return 0;
28262 }
28263 _ACEOF
28264 rm -f conftest.$ac_objext
28265 if { (ac_try="$ac_compile"
28266 case "(($ac_try" in
28267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28268   *) ac_try_echo=$ac_try;;
28269 esac
28270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28271   (eval "$ac_compile") 2>conftest.er1
28272   ac_status=$?
28273   grep -v '^ *+' conftest.er1 >conftest.err
28274   rm -f conftest.er1
28275   cat conftest.err >&5
28276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28277   (exit $ac_status); } &&
28278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28279   { (case "(($ac_try" in
28280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28281   *) ac_try_echo=$ac_try;;
28282 esac
28283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28284   (eval "$ac_try") 2>&5
28285   ac_status=$?
28286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28287   (exit $ac_status); }; } &&
28288          { ac_try='test -s conftest.$ac_objext'
28289   { (case "(($ac_try" in
28290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28291   *) ac_try_echo=$ac_try;;
28292 esac
28293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28294   (eval "$ac_try") 2>&5
28295   ac_status=$?
28296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297   (exit $ac_status); }; }; then
28298   ac_cv_type_int_p=yes
28299 else
28300   echo "$as_me: failed program was:" >&5
28301 sed 's/^/| /' conftest.$ac_ext >&5
28302
28303         ac_cv_type_int_p=no
28304 fi
28305
28306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28307 fi
28308 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28309 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28310
28311 { echo "$as_me:$LINENO: checking size of int *" >&5
28312 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28313 if test "${ac_cv_sizeof_int_p+set}" = set; then
28314   echo $ECHO_N "(cached) $ECHO_C" >&6
28315 else
28316   if test "$ac_cv_type_int_p" = yes; then
28317   # The cast to long int works around a bug in the HP C Compiler
28318   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28319   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28320   # This bug is HP SR number 8606223364.
28321   if test "$cross_compiling" = yes; then
28322   # Depending upon the size, compute the lo and hi bounds.
28323 cat >conftest.$ac_ext <<_ACEOF
28324 /* confdefs.h.  */
28325 _ACEOF
28326 cat confdefs.h >>conftest.$ac_ext
28327 cat >>conftest.$ac_ext <<_ACEOF
28328 /* end confdefs.h.  */
28329 $ac_includes_default
28330                    typedef int * ac__type_sizeof_;
28331 int
28332 main ()
28333 {
28334 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28335 test_array [0] = 0
28336
28337   ;
28338   return 0;
28339 }
28340 _ACEOF
28341 rm -f conftest.$ac_objext
28342 if { (ac_try="$ac_compile"
28343 case "(($ac_try" in
28344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28345   *) ac_try_echo=$ac_try;;
28346 esac
28347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28348   (eval "$ac_compile") 2>conftest.er1
28349   ac_status=$?
28350   grep -v '^ *+' conftest.er1 >conftest.err
28351   rm -f conftest.er1
28352   cat conftest.err >&5
28353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28354   (exit $ac_status); } &&
28355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28356   { (case "(($ac_try" in
28357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358   *) ac_try_echo=$ac_try;;
28359 esac
28360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28361   (eval "$ac_try") 2>&5
28362   ac_status=$?
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); }; } &&
28365          { ac_try='test -s conftest.$ac_objext'
28366   { (case "(($ac_try" in
28367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28368   *) ac_try_echo=$ac_try;;
28369 esac
28370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28371   (eval "$ac_try") 2>&5
28372   ac_status=$?
28373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374   (exit $ac_status); }; }; then
28375   ac_lo=0 ac_mid=0
28376   while :; do
28377     cat >conftest.$ac_ext <<_ACEOF
28378 /* confdefs.h.  */
28379 _ACEOF
28380 cat confdefs.h >>conftest.$ac_ext
28381 cat >>conftest.$ac_ext <<_ACEOF
28382 /* end confdefs.h.  */
28383 $ac_includes_default
28384                    typedef int * ac__type_sizeof_;
28385 int
28386 main ()
28387 {
28388 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28389 test_array [0] = 0
28390
28391   ;
28392   return 0;
28393 }
28394 _ACEOF
28395 rm -f conftest.$ac_objext
28396 if { (ac_try="$ac_compile"
28397 case "(($ac_try" in
28398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28399   *) ac_try_echo=$ac_try;;
28400 esac
28401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28402   (eval "$ac_compile") 2>conftest.er1
28403   ac_status=$?
28404   grep -v '^ *+' conftest.er1 >conftest.err
28405   rm -f conftest.er1
28406   cat conftest.err >&5
28407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28408   (exit $ac_status); } &&
28409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28410   { (case "(($ac_try" in
28411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28412   *) ac_try_echo=$ac_try;;
28413 esac
28414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28415   (eval "$ac_try") 2>&5
28416   ac_status=$?
28417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28418   (exit $ac_status); }; } &&
28419          { ac_try='test -s conftest.$ac_objext'
28420   { (case "(($ac_try" in
28421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28422   *) ac_try_echo=$ac_try;;
28423 esac
28424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28425   (eval "$ac_try") 2>&5
28426   ac_status=$?
28427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28428   (exit $ac_status); }; }; then
28429   ac_hi=$ac_mid; break
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         ac_lo=`expr $ac_mid + 1`
28435                         if test $ac_lo -le $ac_mid; then
28436                           ac_lo= ac_hi=
28437                           break
28438                         fi
28439                         ac_mid=`expr 2 '*' $ac_mid + 1`
28440 fi
28441
28442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28443   done
28444 else
28445   echo "$as_me: failed program was:" >&5
28446 sed 's/^/| /' conftest.$ac_ext >&5
28447
28448         cat >conftest.$ac_ext <<_ACEOF
28449 /* confdefs.h.  */
28450 _ACEOF
28451 cat confdefs.h >>conftest.$ac_ext
28452 cat >>conftest.$ac_ext <<_ACEOF
28453 /* end confdefs.h.  */
28454 $ac_includes_default
28455                    typedef int * ac__type_sizeof_;
28456 int
28457 main ()
28458 {
28459 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28460 test_array [0] = 0
28461
28462   ;
28463   return 0;
28464 }
28465 _ACEOF
28466 rm -f conftest.$ac_objext
28467 if { (ac_try="$ac_compile"
28468 case "(($ac_try" in
28469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28470   *) ac_try_echo=$ac_try;;
28471 esac
28472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28473   (eval "$ac_compile") 2>conftest.er1
28474   ac_status=$?
28475   grep -v '^ *+' conftest.er1 >conftest.err
28476   rm -f conftest.er1
28477   cat conftest.err >&5
28478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479   (exit $ac_status); } &&
28480          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28481   { (case "(($ac_try" in
28482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28483   *) ac_try_echo=$ac_try;;
28484 esac
28485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28486   (eval "$ac_try") 2>&5
28487   ac_status=$?
28488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28489   (exit $ac_status); }; } &&
28490          { ac_try='test -s conftest.$ac_objext'
28491   { (case "(($ac_try" in
28492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28493   *) ac_try_echo=$ac_try;;
28494 esac
28495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28496   (eval "$ac_try") 2>&5
28497   ac_status=$?
28498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28499   (exit $ac_status); }; }; then
28500   ac_hi=-1 ac_mid=-1
28501   while :; do
28502     cat >conftest.$ac_ext <<_ACEOF
28503 /* confdefs.h.  */
28504 _ACEOF
28505 cat confdefs.h >>conftest.$ac_ext
28506 cat >>conftest.$ac_ext <<_ACEOF
28507 /* end confdefs.h.  */
28508 $ac_includes_default
28509                    typedef int * ac__type_sizeof_;
28510 int
28511 main ()
28512 {
28513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28514 test_array [0] = 0
28515
28516   ;
28517   return 0;
28518 }
28519 _ACEOF
28520 rm -f conftest.$ac_objext
28521 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
28528   ac_status=$?
28529   grep -v '^ *+' conftest.er1 >conftest.err
28530   rm -f conftest.er1
28531   cat conftest.err >&5
28532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28533   (exit $ac_status); } &&
28534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28535   { (case "(($ac_try" in
28536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28537   *) ac_try_echo=$ac_try;;
28538 esac
28539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28540   (eval "$ac_try") 2>&5
28541   ac_status=$?
28542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28543   (exit $ac_status); }; } &&
28544          { ac_try='test -s conftest.$ac_objext'
28545   { (case "(($ac_try" in
28546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28547   *) ac_try_echo=$ac_try;;
28548 esac
28549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28550   (eval "$ac_try") 2>&5
28551   ac_status=$?
28552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28553   (exit $ac_status); }; }; then
28554   ac_lo=$ac_mid; break
28555 else
28556   echo "$as_me: failed program was:" >&5
28557 sed 's/^/| /' conftest.$ac_ext >&5
28558
28559         ac_hi=`expr '(' $ac_mid ')' - 1`
28560                         if test $ac_mid -le $ac_hi; then
28561                           ac_lo= ac_hi=
28562                           break
28563                         fi
28564                         ac_mid=`expr 2 '*' $ac_mid`
28565 fi
28566
28567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28568   done
28569 else
28570   echo "$as_me: failed program was:" >&5
28571 sed 's/^/| /' conftest.$ac_ext >&5
28572
28573         ac_lo= ac_hi=
28574 fi
28575
28576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28577 fi
28578
28579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28580 # Binary search between lo and hi bounds.
28581 while test "x$ac_lo" != "x$ac_hi"; do
28582   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28583   cat >conftest.$ac_ext <<_ACEOF
28584 /* confdefs.h.  */
28585 _ACEOF
28586 cat confdefs.h >>conftest.$ac_ext
28587 cat >>conftest.$ac_ext <<_ACEOF
28588 /* end confdefs.h.  */
28589 $ac_includes_default
28590                    typedef int * ac__type_sizeof_;
28591 int
28592 main ()
28593 {
28594 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28595 test_array [0] = 0
28596
28597   ;
28598   return 0;
28599 }
28600 _ACEOF
28601 rm -f conftest.$ac_objext
28602 if { (ac_try="$ac_compile"
28603 case "(($ac_try" in
28604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605   *) ac_try_echo=$ac_try;;
28606 esac
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608   (eval "$ac_compile") 2>conftest.er1
28609   ac_status=$?
28610   grep -v '^ *+' conftest.er1 >conftest.err
28611   rm -f conftest.er1
28612   cat conftest.err >&5
28613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); } &&
28615          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28616   { (case "(($ac_try" in
28617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28618   *) ac_try_echo=$ac_try;;
28619 esac
28620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28621   (eval "$ac_try") 2>&5
28622   ac_status=$?
28623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624   (exit $ac_status); }; } &&
28625          { ac_try='test -s conftest.$ac_objext'
28626   { (case "(($ac_try" in
28627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28628   *) ac_try_echo=$ac_try;;
28629 esac
28630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28631   (eval "$ac_try") 2>&5
28632   ac_status=$?
28633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28634   (exit $ac_status); }; }; then
28635   ac_hi=$ac_mid
28636 else
28637   echo "$as_me: failed program was:" >&5
28638 sed 's/^/| /' conftest.$ac_ext >&5
28639
28640         ac_lo=`expr '(' $ac_mid ')' + 1`
28641 fi
28642
28643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28644 done
28645 case $ac_lo in
28646 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28647 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28648 See \`config.log' for more details." >&5
28649 echo "$as_me: error: cannot compute sizeof (int *)
28650 See \`config.log' for more details." >&2;}
28651    { (exit 77); exit 77; }; } ;;
28652 esac
28653 else
28654   cat >conftest.$ac_ext <<_ACEOF
28655 /* confdefs.h.  */
28656 _ACEOF
28657 cat confdefs.h >>conftest.$ac_ext
28658 cat >>conftest.$ac_ext <<_ACEOF
28659 /* end confdefs.h.  */
28660 $ac_includes_default
28661                    typedef int * ac__type_sizeof_;
28662 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28663 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28664 #include <stdio.h>
28665 #include <stdlib.h>
28666 int
28667 main ()
28668 {
28669
28670   FILE *f = fopen ("conftest.val", "w");
28671   if (! f)
28672     return 1;
28673   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28674     {
28675       long int i = longval ();
28676       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28677         return 1;
28678       fprintf (f, "%ld\n", i);
28679     }
28680   else
28681     {
28682       unsigned long int i = ulongval ();
28683       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28684         return 1;
28685       fprintf (f, "%lu\n", i);
28686     }
28687   return ferror (f) || fclose (f) != 0;
28688
28689   ;
28690   return 0;
28691 }
28692 _ACEOF
28693 rm -f conftest$ac_exeext
28694 if { (ac_try="$ac_link"
28695 case "(($ac_try" in
28696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28697   *) ac_try_echo=$ac_try;;
28698 esac
28699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28700   (eval "$ac_link") 2>&5
28701   ac_status=$?
28702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28704   { (case "(($ac_try" in
28705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28706   *) ac_try_echo=$ac_try;;
28707 esac
28708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28709   (eval "$ac_try") 2>&5
28710   ac_status=$?
28711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712   (exit $ac_status); }; }; then
28713   ac_cv_sizeof_int_p=`cat conftest.val`
28714 else
28715   echo "$as_me: program exited with status $ac_status" >&5
28716 echo "$as_me: failed program was:" >&5
28717 sed 's/^/| /' conftest.$ac_ext >&5
28718
28719 ( exit $ac_status )
28720 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28721 See \`config.log' for more details." >&5
28722 echo "$as_me: error: cannot compute sizeof (int *)
28723 See \`config.log' for more details." >&2;}
28724    { (exit 77); exit 77; }; }
28725 fi
28726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28727 fi
28728 rm -f conftest.val
28729 else
28730   ac_cv_sizeof_int_p=0
28731 fi
28732 fi
28733 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28734 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28735 cat >>confdefs.h <<_ACEOF
28736 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28737 _ACEOF
28738
28739
28740
28741 # Check for sys/types.h types
28742 { echo "$as_me:$LINENO: checking for u_int type" >&5
28743 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28744 if test "${ac_cv_have_u_int+set}" = set; then
28745   echo $ECHO_N "(cached) $ECHO_C" >&6
28746 else
28747
28748     cat >conftest.$ac_ext <<_ACEOF
28749 /* confdefs.h.  */
28750 _ACEOF
28751 cat confdefs.h >>conftest.$ac_ext
28752 cat >>conftest.$ac_ext <<_ACEOF
28753 /* end confdefs.h.  */
28754  #include <sys/types.h>
28755 int
28756 main ()
28757 {
28758  u_int a; a = 1;
28759   ;
28760   return 0;
28761 }
28762 _ACEOF
28763 rm -f conftest.$ac_objext
28764 if { (ac_try="$ac_compile"
28765 case "(($ac_try" in
28766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28767   *) ac_try_echo=$ac_try;;
28768 esac
28769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28770   (eval "$ac_compile") 2>conftest.er1
28771   ac_status=$?
28772   grep -v '^ *+' conftest.er1 >conftest.err
28773   rm -f conftest.er1
28774   cat conftest.err >&5
28775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776   (exit $ac_status); } &&
28777          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28778   { (case "(($ac_try" in
28779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780   *) ac_try_echo=$ac_try;;
28781 esac
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783   (eval "$ac_try") 2>&5
28784   ac_status=$?
28785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); }; } &&
28787          { ac_try='test -s conftest.$ac_objext'
28788   { (case "(($ac_try" in
28789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28790   *) ac_try_echo=$ac_try;;
28791 esac
28792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28793   (eval "$ac_try") 2>&5
28794   ac_status=$?
28795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28796   (exit $ac_status); }; }; then
28797    ac_cv_have_u_int="yes"
28798 else
28799   echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28801
28802          ac_cv_have_u_int="no"
28803
28804 fi
28805
28806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28807
28808 fi
28809 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28810 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28811 if test "x$ac_cv_have_u_int" = "xyes" ; then
28812    cat >>confdefs.h <<\_ACEOF
28813 #define HAVE_U_INT 1
28814 _ACEOF
28815
28816    have_u_int=1
28817 fi
28818
28819 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28820 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28821 if test "${ac_cv_have_intmax_t+set}" = set; then
28822   echo $ECHO_N "(cached) $ECHO_C" >&6
28823 else
28824
28825    cat >conftest.$ac_ext <<_ACEOF
28826 /* confdefs.h.  */
28827 _ACEOF
28828 cat confdefs.h >>conftest.$ac_ext
28829 cat >>conftest.$ac_ext <<_ACEOF
28830 /* end confdefs.h.  */
28831  #include <sys/types.h>
28832 int
28833 main ()
28834 {
28835  intmax_t a; a = 1;
28836   ;
28837   return 0;
28838 }
28839 _ACEOF
28840 rm -f conftest.$ac_objext
28841 if { (ac_try="$ac_compile"
28842 case "(($ac_try" in
28843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28844   *) ac_try_echo=$ac_try;;
28845 esac
28846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28847   (eval "$ac_compile") 2>conftest.er1
28848   ac_status=$?
28849   grep -v '^ *+' conftest.er1 >conftest.err
28850   rm -f conftest.er1
28851   cat conftest.err >&5
28852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28853   (exit $ac_status); } &&
28854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28855   { (case "(($ac_try" in
28856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28857   *) ac_try_echo=$ac_try;;
28858 esac
28859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28860   (eval "$ac_try") 2>&5
28861   ac_status=$?
28862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863   (exit $ac_status); }; } &&
28864          { ac_try='test -s conftest.$ac_objext'
28865   { (case "(($ac_try" in
28866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28867   *) ac_try_echo=$ac_try;;
28868 esac
28869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28870   (eval "$ac_try") 2>&5
28871   ac_status=$?
28872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873   (exit $ac_status); }; }; then
28874    ac_cv_have_intmax_t="yes"
28875 else
28876   echo "$as_me: failed program was:" >&5
28877 sed 's/^/| /' conftest.$ac_ext >&5
28878
28879
28880          cat >conftest.$ac_ext <<_ACEOF
28881 /* confdefs.h.  */
28882 _ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h.  */
28886  #include <stdint.h>
28887 int
28888 main ()
28889 {
28890  intmax_t a; a = 1;
28891   ;
28892   return 0;
28893 }
28894 _ACEOF
28895 rm -f conftest.$ac_objext
28896 if { (ac_try="$ac_compile"
28897 case "(($ac_try" in
28898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28899   *) ac_try_echo=$ac_try;;
28900 esac
28901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28902   (eval "$ac_compile") 2>conftest.er1
28903   ac_status=$?
28904   grep -v '^ *+' conftest.er1 >conftest.err
28905   rm -f conftest.er1
28906   cat conftest.err >&5
28907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28908   (exit $ac_status); } &&
28909          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28910   { (case "(($ac_try" in
28911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28912   *) ac_try_echo=$ac_try;;
28913 esac
28914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28915   (eval "$ac_try") 2>&5
28916   ac_status=$?
28917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918   (exit $ac_status); }; } &&
28919          { ac_try='test -s conftest.$ac_objext'
28920   { (case "(($ac_try" in
28921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28922   *) ac_try_echo=$ac_try;;
28923 esac
28924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28925   (eval "$ac_try") 2>&5
28926   ac_status=$?
28927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28928   (exit $ac_status); }; }; then
28929    ac_cv_have_intmax_t="yes"
28930 else
28931   echo "$as_me: failed program was:" >&5
28932 sed 's/^/| /' conftest.$ac_ext >&5
28933
28934          ac_cv_have_intmax_t="no"
28935
28936 fi
28937
28938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28939
28940
28941 fi
28942
28943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28944
28945
28946 fi
28947 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
28948 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
28949 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28950    cat >>confdefs.h <<\_ACEOF
28951 #define HAVE_INTMAX_T 1
28952 _ACEOF
28953
28954    have_intmax_t=1
28955 fi
28956
28957
28958 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
28959 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
28960 if test "${ac_cv_have_u_intmax_t+set}" = set; then
28961   echo $ECHO_N "(cached) $ECHO_C" >&6
28962 else
28963
28964    cat >conftest.$ac_ext <<_ACEOF
28965 /* confdefs.h.  */
28966 _ACEOF
28967 cat confdefs.h >>conftest.$ac_ext
28968 cat >>conftest.$ac_ext <<_ACEOF
28969 /* end confdefs.h.  */
28970  #include <sys/types.h>
28971 int
28972 main ()
28973 {
28974  u_intmax_t a; a = 1;
28975   ;
28976   return 0;
28977 }
28978 _ACEOF
28979 rm -f conftest.$ac_objext
28980 if { (ac_try="$ac_compile"
28981 case "(($ac_try" in
28982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28983   *) ac_try_echo=$ac_try;;
28984 esac
28985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28986   (eval "$ac_compile") 2>conftest.er1
28987   ac_status=$?
28988   grep -v '^ *+' conftest.er1 >conftest.err
28989   rm -f conftest.er1
28990   cat conftest.err >&5
28991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992   (exit $ac_status); } &&
28993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28994   { (case "(($ac_try" in
28995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28996   *) ac_try_echo=$ac_try;;
28997 esac
28998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28999   (eval "$ac_try") 2>&5
29000   ac_status=$?
29001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002   (exit $ac_status); }; } &&
29003          { ac_try='test -s conftest.$ac_objext'
29004   { (case "(($ac_try" in
29005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29006   *) ac_try_echo=$ac_try;;
29007 esac
29008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29009   (eval "$ac_try") 2>&5
29010   ac_status=$?
29011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29012   (exit $ac_status); }; }; then
29013    ac_cv_have_u_intmax_t="yes"
29014 else
29015   echo "$as_me: failed program was:" >&5
29016 sed 's/^/| /' conftest.$ac_ext >&5
29017
29018
29019          cat >conftest.$ac_ext <<_ACEOF
29020 /* confdefs.h.  */
29021 _ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h.  */
29025  #include <stdint.h>
29026 int
29027 main ()
29028 {
29029  u_intmax_t a; a = 1;
29030   ;
29031   return 0;
29032 }
29033 _ACEOF
29034 rm -f conftest.$ac_objext
29035 if { (ac_try="$ac_compile"
29036 case "(($ac_try" in
29037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29038   *) ac_try_echo=$ac_try;;
29039 esac
29040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29041   (eval "$ac_compile") 2>conftest.er1
29042   ac_status=$?
29043   grep -v '^ *+' conftest.er1 >conftest.err
29044   rm -f conftest.er1
29045   cat conftest.err >&5
29046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29047   (exit $ac_status); } &&
29048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29049   { (case "(($ac_try" in
29050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051   *) ac_try_echo=$ac_try;;
29052 esac
29053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29054   (eval "$ac_try") 2>&5
29055   ac_status=$?
29056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29057   (exit $ac_status); }; } &&
29058          { ac_try='test -s conftest.$ac_objext'
29059   { (case "(($ac_try" in
29060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061   *) ac_try_echo=$ac_try;;
29062 esac
29063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29064   (eval "$ac_try") 2>&5
29065   ac_status=$?
29066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29067   (exit $ac_status); }; }; then
29068    ac_cv_have_u_intmax_t="yes"
29069 else
29070   echo "$as_me: failed program was:" >&5
29071 sed 's/^/| /' conftest.$ac_ext >&5
29072
29073          ac_cv_have_u_intmax_t="no"
29074
29075 fi
29076
29077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29078
29079
29080 fi
29081
29082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29083
29084 fi
29085 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29086 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29087 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29088    cat >>confdefs.h <<\_ACEOF
29089 #define HAVE_U_INTMAX_T 1
29090 _ACEOF
29091
29092    have_u_intmax_t=1
29093 fi
29094
29095
29096 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29097 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29098 if test "${ac_cv_have_intxx_t+set}" = set; then
29099   echo $ECHO_N "(cached) $ECHO_C" >&6
29100 else
29101
29102    cat >conftest.$ac_ext <<_ACEOF
29103 /* confdefs.h.  */
29104 _ACEOF
29105 cat confdefs.h >>conftest.$ac_ext
29106 cat >>conftest.$ac_ext <<_ACEOF
29107 /* end confdefs.h.  */
29108  #include <sys/types.h>
29109 int
29110 main ()
29111 {
29112  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29113   ;
29114   return 0;
29115 }
29116 _ACEOF
29117 rm -f conftest.$ac_objext
29118 if { (ac_try="$ac_compile"
29119 case "(($ac_try" in
29120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29121   *) ac_try_echo=$ac_try;;
29122 esac
29123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29124   (eval "$ac_compile") 2>conftest.er1
29125   ac_status=$?
29126   grep -v '^ *+' conftest.er1 >conftest.err
29127   rm -f conftest.er1
29128   cat conftest.err >&5
29129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29130   (exit $ac_status); } &&
29131          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29132   { (case "(($ac_try" in
29133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29134   *) ac_try_echo=$ac_try;;
29135 esac
29136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29137   (eval "$ac_try") 2>&5
29138   ac_status=$?
29139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29140   (exit $ac_status); }; } &&
29141          { ac_try='test -s conftest.$ac_objext'
29142   { (case "(($ac_try" in
29143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29144   *) ac_try_echo=$ac_try;;
29145 esac
29146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29147   (eval "$ac_try") 2>&5
29148   ac_status=$?
29149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150   (exit $ac_status); }; }; then
29151    ac_cv_have_intxx_t="yes"
29152 else
29153   echo "$as_me: failed program was:" >&5
29154 sed 's/^/| /' conftest.$ac_ext >&5
29155
29156          ac_cv_have_intxx_t="no"
29157
29158 fi
29159
29160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29161
29162 fi
29163 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29164 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29165 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29166    cat >>confdefs.h <<\_ACEOF
29167 #define HAVE_INTXX_T 1
29168 _ACEOF
29169
29170    have_intxx_t=1
29171 fi
29172
29173 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29174 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29175 if test "${ac_cv_have_int64_t+set}" = set; then
29176   echo $ECHO_N "(cached) $ECHO_C" >&6
29177 else
29178
29179    cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185  #include <sys/types.h>
29186 int
29187 main ()
29188 {
29189  int64_t a; a = 1;
29190   ;
29191   return 0;
29192 }
29193 _ACEOF
29194 rm -f conftest.$ac_objext
29195 if { (ac_try="$ac_compile"
29196 case "(($ac_try" in
29197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29198   *) ac_try_echo=$ac_try;;
29199 esac
29200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29201   (eval "$ac_compile") 2>conftest.er1
29202   ac_status=$?
29203   grep -v '^ *+' conftest.er1 >conftest.err
29204   rm -f conftest.er1
29205   cat conftest.err >&5
29206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29207   (exit $ac_status); } &&
29208          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29209   { (case "(($ac_try" in
29210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211   *) ac_try_echo=$ac_try;;
29212 esac
29213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29214   (eval "$ac_try") 2>&5
29215   ac_status=$?
29216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217   (exit $ac_status); }; } &&
29218          { ac_try='test -s conftest.$ac_objext'
29219   { (case "(($ac_try" in
29220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29221   *) ac_try_echo=$ac_try;;
29222 esac
29223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29224   (eval "$ac_try") 2>&5
29225   ac_status=$?
29226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227   (exit $ac_status); }; }; then
29228    ac_cv_have_int64_t="yes"
29229 else
29230   echo "$as_me: failed program was:" >&5
29231 sed 's/^/| /' conftest.$ac_ext >&5
29232
29233          ac_cv_have_int64_t="no"
29234
29235 fi
29236
29237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29238
29239 fi
29240 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29241 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29242 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29243    cat >>confdefs.h <<\_ACEOF
29244 #define HAVE_INT64_T 1
29245 _ACEOF
29246
29247    have_int64_t=1
29248 fi
29249
29250 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29251 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29252 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29253   echo $ECHO_N "(cached) $ECHO_C" >&6
29254 else
29255
29256    cat >conftest.$ac_ext <<_ACEOF
29257 /* confdefs.h.  */
29258 _ACEOF
29259 cat confdefs.h >>conftest.$ac_ext
29260 cat >>conftest.$ac_ext <<_ACEOF
29261 /* end confdefs.h.  */
29262  #include <sys/types.h>
29263 int
29264 main ()
29265 {
29266  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29267   ;
29268   return 0;
29269 }
29270 _ACEOF
29271 rm -f conftest.$ac_objext
29272 if { (ac_try="$ac_compile"
29273 case "(($ac_try" in
29274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29275   *) ac_try_echo=$ac_try;;
29276 esac
29277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29278   (eval "$ac_compile") 2>conftest.er1
29279   ac_status=$?
29280   grep -v '^ *+' conftest.er1 >conftest.err
29281   rm -f conftest.er1
29282   cat conftest.err >&5
29283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284   (exit $ac_status); } &&
29285          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29286   { (case "(($ac_try" in
29287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29288   *) ac_try_echo=$ac_try;;
29289 esac
29290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29291   (eval "$ac_try") 2>&5
29292   ac_status=$?
29293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; } &&
29295          { ac_try='test -s conftest.$ac_objext'
29296   { (case "(($ac_try" in
29297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298   *) ac_try_echo=$ac_try;;
29299 esac
29300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301   (eval "$ac_try") 2>&5
29302   ac_status=$?
29303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29304   (exit $ac_status); }; }; then
29305    ac_cv_have_u_intxx_t="yes"
29306 else
29307   echo "$as_me: failed program was:" >&5
29308 sed 's/^/| /' conftest.$ac_ext >&5
29309
29310          ac_cv_have_u_intxx_t="no"
29311
29312 fi
29313
29314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29315
29316 fi
29317 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29318 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29319 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29320    cat >>confdefs.h <<\_ACEOF
29321 #define HAVE_U_INTXX_T 1
29322 _ACEOF
29323
29324    have_u_intxx_t=1
29325 fi
29326
29327 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29328 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29329 if test "${ac_cv_have_u_int64_t+set}" = set; then
29330   echo $ECHO_N "(cached) $ECHO_C" >&6
29331 else
29332
29333    cat >conftest.$ac_ext <<_ACEOF
29334 /* confdefs.h.  */
29335 _ACEOF
29336 cat confdefs.h >>conftest.$ac_ext
29337 cat >>conftest.$ac_ext <<_ACEOF
29338 /* end confdefs.h.  */
29339  #include <sys/types.h>
29340 int
29341 main ()
29342 {
29343  u_int64_t a; a = 1;
29344   ;
29345   return 0;
29346 }
29347 _ACEOF
29348 rm -f conftest.$ac_objext
29349 if { (ac_try="$ac_compile"
29350 case "(($ac_try" in
29351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352   *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355   (eval "$ac_compile") 2>conftest.er1
29356   ac_status=$?
29357   grep -v '^ *+' conftest.er1 >conftest.err
29358   rm -f conftest.er1
29359   cat conftest.err >&5
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); } &&
29362          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29363   { (case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368   (eval "$ac_try") 2>&5
29369   ac_status=$?
29370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29371   (exit $ac_status); }; } &&
29372          { ac_try='test -s conftest.$ac_objext'
29373   { (case "(($ac_try" in
29374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29375   *) ac_try_echo=$ac_try;;
29376 esac
29377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29378   (eval "$ac_try") 2>&5
29379   ac_status=$?
29380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381   (exit $ac_status); }; }; then
29382    ac_cv_have_u_int64_t="yes"
29383 else
29384   echo "$as_me: failed program was:" >&5
29385 sed 's/^/| /' conftest.$ac_ext >&5
29386
29387          ac_cv_have_u_int64_t="no"
29388
29389 fi
29390
29391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392
29393 fi
29394 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29395 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29396 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29397    cat >>confdefs.h <<\_ACEOF
29398 #define HAVE_U_INT64_T 1
29399 _ACEOF
29400
29401    have_u_int64_t=1
29402 fi
29403
29404 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29405            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29406 then
29407    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29408 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29409    cat >conftest.$ac_ext <<_ACEOF
29410 /* confdefs.h.  */
29411 _ACEOF
29412 cat confdefs.h >>conftest.$ac_ext
29413 cat >>conftest.$ac_ext <<_ACEOF
29414 /* end confdefs.h.  */
29415  #include <sys/bitypes.h>
29416 int
29417 main ()
29418 {
29419  int8_t a; int16_t b; int32_t c;
29420         u_int8_t e; u_int16_t f; u_int32_t g;
29421         a = b = c = e = f = g = 1;
29422   ;
29423   return 0;
29424 }
29425 _ACEOF
29426 rm -f conftest.$ac_objext
29427 if { (ac_try="$ac_compile"
29428 case "(($ac_try" in
29429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430   *) ac_try_echo=$ac_try;;
29431 esac
29432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29433   (eval "$ac_compile") 2>conftest.er1
29434   ac_status=$?
29435   grep -v '^ *+' conftest.er1 >conftest.err
29436   rm -f conftest.er1
29437   cat conftest.err >&5
29438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439   (exit $ac_status); } &&
29440          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29441   { (case "(($ac_try" in
29442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29443   *) ac_try_echo=$ac_try;;
29444 esac
29445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29446   (eval "$ac_try") 2>&5
29447   ac_status=$?
29448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449   (exit $ac_status); }; } &&
29450          { ac_try='test -s conftest.$ac_objext'
29451   { (case "(($ac_try" in
29452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29453   *) ac_try_echo=$ac_try;;
29454 esac
29455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29456   (eval "$ac_try") 2>&5
29457   ac_status=$?
29458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459   (exit $ac_status); }; }; then
29460    cat >>confdefs.h <<\_ACEOF
29461 #define HAVE_U_INTXX_T 1
29462 _ACEOF
29463
29464         cat >>confdefs.h <<\_ACEOF
29465 #define HAVE_INTXX_T 1
29466 _ACEOF
29467
29468         cat >>confdefs.h <<\_ACEOF
29469 #define HAVE_SYS_BITYPES_H 1
29470 _ACEOF
29471
29472         { echo "$as_me:$LINENO: result: yes" >&5
29473 echo "${ECHO_T}yes" >&6; }
29474 else
29475   echo "$as_me: failed program was:" >&5
29476 sed 's/^/| /' conftest.$ac_ext >&5
29477
29478          { echo "$as_me:$LINENO: result: no" >&5
29479 echo "${ECHO_T}no" >&6; }
29480
29481 fi
29482
29483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29484 fi
29485
29486 if test -z "$have_u_intxx_t" ; then
29487    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29488 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29489 if test "${ac_cv_have_uintxx_t+set}" = set; then
29490   echo $ECHO_N "(cached) $ECHO_C" >&6
29491 else
29492
29493       cat >conftest.$ac_ext <<_ACEOF
29494 /* confdefs.h.  */
29495 _ACEOF
29496 cat confdefs.h >>conftest.$ac_ext
29497 cat >>conftest.$ac_ext <<_ACEOF
29498 /* end confdefs.h.  */
29499  #include <sys/types.h>
29500 int
29501 main ()
29502 {
29503  uint8_t a; uint16_t b;
29504            uint32_t c; a = b = c = 1;
29505   ;
29506   return 0;
29507 }
29508 _ACEOF
29509 rm -f conftest.$ac_objext
29510 if { (ac_try="$ac_compile"
29511 case "(($ac_try" in
29512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29513   *) ac_try_echo=$ac_try;;
29514 esac
29515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29516   (eval "$ac_compile") 2>conftest.er1
29517   ac_status=$?
29518   grep -v '^ *+' conftest.er1 >conftest.err
29519   rm -f conftest.er1
29520   cat conftest.err >&5
29521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29522   (exit $ac_status); } &&
29523          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29524   { (case "(($ac_try" in
29525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29526   *) ac_try_echo=$ac_try;;
29527 esac
29528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29529   (eval "$ac_try") 2>&5
29530   ac_status=$?
29531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532   (exit $ac_status); }; } &&
29533          { ac_try='test -s conftest.$ac_objext'
29534   { (case "(($ac_try" in
29535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29536   *) ac_try_echo=$ac_try;;
29537 esac
29538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29539   (eval "$ac_try") 2>&5
29540   ac_status=$?
29541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542   (exit $ac_status); }; }; then
29543    ac_cv_have_uintxx_t="yes"
29544 else
29545   echo "$as_me: failed program was:" >&5
29546 sed 's/^/| /' conftest.$ac_ext >&5
29547
29548          ac_cv_have_uintxx_t="no"
29549
29550 fi
29551
29552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29553
29554 fi
29555 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29556 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29557    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29558       cat >>confdefs.h <<\_ACEOF
29559 #define HAVE_UINTXX_T 1
29560 _ACEOF
29561
29562    fi
29563 fi
29564
29565 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29566           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29567 then
29568    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29569 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29570    cat >conftest.$ac_ext <<_ACEOF
29571 /* confdefs.h.  */
29572 _ACEOF
29573 cat confdefs.h >>conftest.$ac_ext
29574 cat >>conftest.$ac_ext <<_ACEOF
29575 /* end confdefs.h.  */
29576  #include <sys/bitypes.h>
29577 int
29578 main ()
29579 {
29580  int64_t a; u_int64_t b;
29581        a = b = 1;
29582   ;
29583   return 0;
29584 }
29585 _ACEOF
29586 rm -f conftest.$ac_objext
29587 if { (ac_try="$ac_compile"
29588 case "(($ac_try" in
29589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29590   *) ac_try_echo=$ac_try;;
29591 esac
29592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29593   (eval "$ac_compile") 2>conftest.er1
29594   ac_status=$?
29595   grep -v '^ *+' conftest.er1 >conftest.err
29596   rm -f conftest.er1
29597   cat conftest.err >&5
29598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599   (exit $ac_status); } &&
29600          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29601   { (case "(($ac_try" in
29602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603   *) ac_try_echo=$ac_try;;
29604 esac
29605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29606   (eval "$ac_try") 2>&5
29607   ac_status=$?
29608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29609   (exit $ac_status); }; } &&
29610          { ac_try='test -s conftest.$ac_objext'
29611   { (case "(($ac_try" in
29612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613   *) ac_try_echo=$ac_try;;
29614 esac
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616   (eval "$ac_try") 2>&5
29617   ac_status=$?
29618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29619   (exit $ac_status); }; }; then
29620    cat >>confdefs.h <<\_ACEOF
29621 #define HAVE_U_INT64_T 1
29622 _ACEOF
29623
29624        cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_INT64_T 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_uintxx_t" && \
29643           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29644 then
29645    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29646 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29647    cat >conftest.$ac_ext <<_ACEOF
29648 /* confdefs.h.  */
29649 _ACEOF
29650 cat confdefs.h >>conftest.$ac_ext
29651 cat >>conftest.$ac_ext <<_ACEOF
29652 /* end confdefs.h.  */
29653  #include <sys/bitypes.h>
29654 int
29655 main ()
29656 {
29657  uint8_t a; uint16_t b;
29658           uint32_t c; a = b = c = 1;
29659   ;
29660   return 0;
29661 }
29662 _ACEOF
29663 rm -f conftest.$ac_objext
29664 if { (ac_try="$ac_compile"
29665 case "(($ac_try" in
29666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29667   *) ac_try_echo=$ac_try;;
29668 esac
29669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29670   (eval "$ac_compile") 2>conftest.er1
29671   ac_status=$?
29672   grep -v '^ *+' conftest.er1 >conftest.err
29673   rm -f conftest.er1
29674   cat conftest.err >&5
29675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29676   (exit $ac_status); } &&
29677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29678   { (case "(($ac_try" in
29679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29680   *) ac_try_echo=$ac_try;;
29681 esac
29682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29683   (eval "$ac_try") 2>&5
29684   ac_status=$?
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); }; } &&
29687          { ac_try='test -s conftest.$ac_objext'
29688   { (case "(($ac_try" in
29689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29690   *) ac_try_echo=$ac_try;;
29691 esac
29692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29693   (eval "$ac_try") 2>&5
29694   ac_status=$?
29695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29696   (exit $ac_status); }; }; then
29697    cat >>confdefs.h <<\_ACEOF
29698 #define HAVE_UINTXX_T 1
29699 _ACEOF
29700
29701        { echo "$as_me:$LINENO: result: yes" >&5
29702 echo "${ECHO_T}yes" >&6; }
29703 else
29704   echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707          { echo "$as_me:$LINENO: result: no" >&5
29708 echo "${ECHO_T}no" >&6; }
29709
29710 fi
29711
29712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29713
29714 fi
29715
29716
29717
29718
29719
29720
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730
29731
29732 for ac_func in \
29733         fork \
29734         getcwd \
29735         gethostname \
29736         getpid \
29737         gettimeofday \
29738         setpgid \
29739         setpgrp \
29740         setsid \
29741         signal \
29742         strerror \
29743         strncmp \
29744         strncpy \
29745         vfprintf \
29746
29747 do
29748 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29749 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29750 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29751 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29752   echo $ECHO_N "(cached) $ECHO_C" >&6
29753 else
29754   cat >conftest.$ac_ext <<_ACEOF
29755 /* confdefs.h.  */
29756 _ACEOF
29757 cat confdefs.h >>conftest.$ac_ext
29758 cat >>conftest.$ac_ext <<_ACEOF
29759 /* end confdefs.h.  */
29760 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29762 #define $ac_func innocuous_$ac_func
29763
29764 /* System header to define __stub macros and hopefully few prototypes,
29765     which can conflict with char $ac_func (); below.
29766     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29767     <limits.h> exists even on freestanding compilers.  */
29768
29769 #ifdef __STDC__
29770 # include <limits.h>
29771 #else
29772 # include <assert.h>
29773 #endif
29774
29775 #undef $ac_func
29776
29777 /* Override any GCC internal prototype to avoid an error.
29778    Use char because int might match the return type of a GCC
29779    builtin and then its argument prototype would still apply.  */
29780 #ifdef __cplusplus
29781 extern "C"
29782 #endif
29783 char $ac_func ();
29784 /* The GNU C library defines this for functions which it implements
29785     to always fail with ENOSYS.  Some functions are actually named
29786     something starting with __ and the normal name is an alias.  */
29787 #if defined __stub_$ac_func || defined __stub___$ac_func
29788 choke me
29789 #endif
29790
29791 int
29792 main ()
29793 {
29794 return $ac_func ();
29795   ;
29796   return 0;
29797 }
29798 _ACEOF
29799 rm -f conftest.$ac_objext conftest$ac_exeext
29800 if { (ac_try="$ac_link"
29801 case "(($ac_try" in
29802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29803   *) ac_try_echo=$ac_try;;
29804 esac
29805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29806   (eval "$ac_link") 2>conftest.er1
29807   ac_status=$?
29808   grep -v '^ *+' conftest.er1 >conftest.err
29809   rm -f conftest.er1
29810   cat conftest.err >&5
29811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29812   (exit $ac_status); } &&
29813          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29814   { (case "(($ac_try" in
29815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29816   *) ac_try_echo=$ac_try;;
29817 esac
29818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29819   (eval "$ac_try") 2>&5
29820   ac_status=$?
29821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29822   (exit $ac_status); }; } &&
29823          { ac_try='test -s conftest$ac_exeext'
29824   { (case "(($ac_try" in
29825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29826   *) ac_try_echo=$ac_try;;
29827 esac
29828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29829   (eval "$ac_try") 2>&5
29830   ac_status=$?
29831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29832   (exit $ac_status); }; }; then
29833   eval "$as_ac_var=yes"
29834 else
29835   echo "$as_me: failed program was:" >&5
29836 sed 's/^/| /' conftest.$ac_ext >&5
29837
29838         eval "$as_ac_var=no"
29839 fi
29840
29841 rm -f core conftest.err conftest.$ac_objext \
29842       conftest$ac_exeext conftest.$ac_ext
29843 fi
29844 ac_res=`eval echo '${'$as_ac_var'}'`
29845                { echo "$as_me:$LINENO: result: $ac_res" >&5
29846 echo "${ECHO_T}$ac_res" >&6; }
29847 if test `eval echo '${'$as_ac_var'}'` = yes; then
29848   cat >>confdefs.h <<_ACEOF
29849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29850 _ACEOF
29851
29852 else
29853   echo 'configure: cannot find needed function.'; exit 1
29854
29855 fi
29856 done
29857
29858
29859
29860 for ac_func in fchdir
29861 do
29862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29866   echo $ECHO_N "(cached) $ECHO_C" >&6
29867 else
29868   cat >conftest.$ac_ext <<_ACEOF
29869 /* confdefs.h.  */
29870 _ACEOF
29871 cat confdefs.h >>conftest.$ac_ext
29872 cat >>conftest.$ac_ext <<_ACEOF
29873 /* end confdefs.h.  */
29874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29876 #define $ac_func innocuous_$ac_func
29877
29878 /* System header to define __stub macros and hopefully few prototypes,
29879     which can conflict with char $ac_func (); below.
29880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29881     <limits.h> exists even on freestanding compilers.  */
29882
29883 #ifdef __STDC__
29884 # include <limits.h>
29885 #else
29886 # include <assert.h>
29887 #endif
29888
29889 #undef $ac_func
29890
29891 /* Override any GCC internal prototype to avoid an error.
29892    Use char because int might match the return type of a GCC
29893    builtin and then its argument prototype would still apply.  */
29894 #ifdef __cplusplus
29895 extern "C"
29896 #endif
29897 char $ac_func ();
29898 /* The GNU C library defines this for functions which it implements
29899     to always fail with ENOSYS.  Some functions are actually named
29900     something starting with __ and the normal name is an alias.  */
29901 #if defined __stub_$ac_func || defined __stub___$ac_func
29902 choke me
29903 #endif
29904
29905 int
29906 main ()
29907 {
29908 return $ac_func ();
29909   ;
29910   return 0;
29911 }
29912 _ACEOF
29913 rm -f conftest.$ac_objext conftest$ac_exeext
29914 if { (ac_try="$ac_link"
29915 case "(($ac_try" in
29916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29917   *) ac_try_echo=$ac_try;;
29918 esac
29919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29920   (eval "$ac_link") 2>conftest.er1
29921   ac_status=$?
29922   grep -v '^ *+' conftest.er1 >conftest.err
29923   rm -f conftest.er1
29924   cat conftest.err >&5
29925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29926   (exit $ac_status); } &&
29927          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29928   { (case "(($ac_try" in
29929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29930   *) ac_try_echo=$ac_try;;
29931 esac
29932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29933   (eval "$ac_try") 2>&5
29934   ac_status=$?
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); }; } &&
29937          { ac_try='test -s conftest$ac_exeext'
29938   { (case "(($ac_try" in
29939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940   *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943   (eval "$ac_try") 2>&5
29944   ac_status=$?
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); }; }; then
29947   eval "$as_ac_var=yes"
29948 else
29949   echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29951
29952         eval "$as_ac_var=no"
29953 fi
29954
29955 rm -f core conftest.err conftest.$ac_objext \
29956       conftest$ac_exeext conftest.$ac_ext
29957 fi
29958 ac_res=`eval echo '${'$as_ac_var'}'`
29959                { echo "$as_me:$LINENO: result: $ac_res" >&5
29960 echo "${ECHO_T}$ac_res" >&6; }
29961 if test `eval echo '${'$as_ac_var'}'` = yes; then
29962   cat >>confdefs.h <<_ACEOF
29963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29964 _ACEOF
29965  cat >>confdefs.h <<\_ACEOF
29966 #define HAVE_FCHDIR 1
29967 _ACEOF
29968
29969 fi
29970 done
29971
29972
29973 for ac_func in strtoll
29974 do
29975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29979   echo $ECHO_N "(cached) $ECHO_C" >&6
29980 else
29981   cat >conftest.$ac_ext <<_ACEOF
29982 /* confdefs.h.  */
29983 _ACEOF
29984 cat confdefs.h >>conftest.$ac_ext
29985 cat >>conftest.$ac_ext <<_ACEOF
29986 /* end confdefs.h.  */
29987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29988    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29989 #define $ac_func innocuous_$ac_func
29990
29991 /* System header to define __stub macros and hopefully few prototypes,
29992     which can conflict with char $ac_func (); below.
29993     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29994     <limits.h> exists even on freestanding compilers.  */
29995
29996 #ifdef __STDC__
29997 # include <limits.h>
29998 #else
29999 # include <assert.h>
30000 #endif
30001
30002 #undef $ac_func
30003
30004 /* Override any GCC internal prototype to avoid an error.
30005    Use char because int might match the return type of a GCC
30006    builtin and then its argument prototype would still apply.  */
30007 #ifdef __cplusplus
30008 extern "C"
30009 #endif
30010 char $ac_func ();
30011 /* The GNU C library defines this for functions which it implements
30012     to always fail with ENOSYS.  Some functions are actually named
30013     something starting with __ and the normal name is an alias.  */
30014 #if defined __stub_$ac_func || defined __stub___$ac_func
30015 choke me
30016 #endif
30017
30018 int
30019 main ()
30020 {
30021 return $ac_func ();
30022   ;
30023   return 0;
30024 }
30025 _ACEOF
30026 rm -f conftest.$ac_objext conftest$ac_exeext
30027 if { (ac_try="$ac_link"
30028 case "(($ac_try" in
30029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030   *) ac_try_echo=$ac_try;;
30031 esac
30032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033   (eval "$ac_link") 2>conftest.er1
30034   ac_status=$?
30035   grep -v '^ *+' conftest.er1 >conftest.err
30036   rm -f conftest.er1
30037   cat conftest.err >&5
30038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039   (exit $ac_status); } &&
30040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30041   { (case "(($ac_try" in
30042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043   *) ac_try_echo=$ac_try;;
30044 esac
30045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30046   (eval "$ac_try") 2>&5
30047   ac_status=$?
30048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30049   (exit $ac_status); }; } &&
30050          { ac_try='test -s conftest$ac_exeext'
30051   { (case "(($ac_try" in
30052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053   *) ac_try_echo=$ac_try;;
30054 esac
30055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30056   (eval "$ac_try") 2>&5
30057   ac_status=$?
30058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059   (exit $ac_status); }; }; then
30060   eval "$as_ac_var=yes"
30061 else
30062   echo "$as_me: failed program was:" >&5
30063 sed 's/^/| /' conftest.$ac_ext >&5
30064
30065         eval "$as_ac_var=no"
30066 fi
30067
30068 rm -f core conftest.err conftest.$ac_objext \
30069       conftest$ac_exeext conftest.$ac_ext
30070 fi
30071 ac_res=`eval echo '${'$as_ac_var'}'`
30072                { echo "$as_me:$LINENO: result: $ac_res" >&5
30073 echo "${ECHO_T}$ac_res" >&6; }
30074 if test `eval echo '${'$as_ac_var'}'` = yes; then
30075   cat >>confdefs.h <<_ACEOF
30076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30077 _ACEOF
30078  cat >>confdefs.h <<\_ACEOF
30079 #define HAVE_STRTOLL 1
30080 _ACEOF
30081
30082 fi
30083 done
30084
30085
30086
30087 for ac_func in chflags
30088 do
30089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30093   echo $ECHO_N "(cached) $ECHO_C" >&6
30094 else
30095   cat >conftest.$ac_ext <<_ACEOF
30096 /* confdefs.h.  */
30097 _ACEOF
30098 cat confdefs.h >>conftest.$ac_ext
30099 cat >>conftest.$ac_ext <<_ACEOF
30100 /* end confdefs.h.  */
30101 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30102    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30103 #define $ac_func innocuous_$ac_func
30104
30105 /* System header to define __stub macros and hopefully few prototypes,
30106     which can conflict with char $ac_func (); below.
30107     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30108     <limits.h> exists even on freestanding compilers.  */
30109
30110 #ifdef __STDC__
30111 # include <limits.h>
30112 #else
30113 # include <assert.h>
30114 #endif
30115
30116 #undef $ac_func
30117
30118 /* Override any GCC internal prototype to avoid an error.
30119    Use char because int might match the return type of a GCC
30120    builtin and then its argument prototype would still apply.  */
30121 #ifdef __cplusplus
30122 extern "C"
30123 #endif
30124 char $ac_func ();
30125 /* The GNU C library defines this for functions which it implements
30126     to always fail with ENOSYS.  Some functions are actually named
30127     something starting with __ and the normal name is an alias.  */
30128 #if defined __stub_$ac_func || defined __stub___$ac_func
30129 choke me
30130 #endif
30131
30132 int
30133 main ()
30134 {
30135 return $ac_func ();
30136   ;
30137   return 0;
30138 }
30139 _ACEOF
30140 rm -f conftest.$ac_objext conftest$ac_exeext
30141 if { (ac_try="$ac_link"
30142 case "(($ac_try" in
30143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30144   *) ac_try_echo=$ac_try;;
30145 esac
30146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30147   (eval "$ac_link") 2>conftest.er1
30148   ac_status=$?
30149   grep -v '^ *+' conftest.er1 >conftest.err
30150   rm -f conftest.er1
30151   cat conftest.err >&5
30152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30153   (exit $ac_status); } &&
30154          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30155   { (case "(($ac_try" in
30156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157   *) ac_try_echo=$ac_try;;
30158 esac
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160   (eval "$ac_try") 2>&5
30161   ac_status=$?
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); }; } &&
30164          { ac_try='test -s conftest$ac_exeext'
30165   { (case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170   (eval "$ac_try") 2>&5
30171   ac_status=$?
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); }; }; then
30174   eval "$as_ac_var=yes"
30175 else
30176   echo "$as_me: failed program was:" >&5
30177 sed 's/^/| /' conftest.$ac_ext >&5
30178
30179         eval "$as_ac_var=no"
30180 fi
30181
30182 rm -f core conftest.err conftest.$ac_objext \
30183       conftest$ac_exeext conftest.$ac_ext
30184 fi
30185 ac_res=`eval echo '${'$as_ac_var'}'`
30186                { echo "$as_me:$LINENO: result: $ac_res" >&5
30187 echo "${ECHO_T}$ac_res" >&6; }
30188 if test `eval echo '${'$as_ac_var'}'` = yes; then
30189   cat >>confdefs.h <<_ACEOF
30190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30191 _ACEOF
30192
30193 fi
30194 done
30195
30196
30197
30198
30199
30200
30201 for ac_func in snprintf vsnprintf gethostid fseeko
30202 do
30203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30207   echo $ECHO_N "(cached) $ECHO_C" >&6
30208 else
30209   cat >conftest.$ac_ext <<_ACEOF
30210 /* confdefs.h.  */
30211 _ACEOF
30212 cat confdefs.h >>conftest.$ac_ext
30213 cat >>conftest.$ac_ext <<_ACEOF
30214 /* end confdefs.h.  */
30215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30216    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30217 #define $ac_func innocuous_$ac_func
30218
30219 /* System header to define __stub macros and hopefully few prototypes,
30220     which can conflict with char $ac_func (); below.
30221     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30222     <limits.h> exists even on freestanding compilers.  */
30223
30224 #ifdef __STDC__
30225 # include <limits.h>
30226 #else
30227 # include <assert.h>
30228 #endif
30229
30230 #undef $ac_func
30231
30232 /* Override any GCC internal prototype to avoid an error.
30233    Use char because int might match the return type of a GCC
30234    builtin and then its argument prototype would still apply.  */
30235 #ifdef __cplusplus
30236 extern "C"
30237 #endif
30238 char $ac_func ();
30239 /* The GNU C library defines this for functions which it implements
30240     to always fail with ENOSYS.  Some functions are actually named
30241     something starting with __ and the normal name is an alias.  */
30242 #if defined __stub_$ac_func || defined __stub___$ac_func
30243 choke me
30244 #endif
30245
30246 int
30247 main ()
30248 {
30249 return $ac_func ();
30250   ;
30251   return 0;
30252 }
30253 _ACEOF
30254 rm -f conftest.$ac_objext conftest$ac_exeext
30255 if { (ac_try="$ac_link"
30256 case "(($ac_try" in
30257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30258   *) ac_try_echo=$ac_try;;
30259 esac
30260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30261   (eval "$ac_link") 2>conftest.er1
30262   ac_status=$?
30263   grep -v '^ *+' conftest.er1 >conftest.err
30264   rm -f conftest.er1
30265   cat conftest.err >&5
30266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30267   (exit $ac_status); } &&
30268          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30269   { (case "(($ac_try" in
30270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30271   *) ac_try_echo=$ac_try;;
30272 esac
30273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30274   (eval "$ac_try") 2>&5
30275   ac_status=$?
30276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30277   (exit $ac_status); }; } &&
30278          { ac_try='test -s conftest$ac_exeext'
30279   { (case "(($ac_try" in
30280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30281   *) ac_try_echo=$ac_try;;
30282 esac
30283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30284   (eval "$ac_try") 2>&5
30285   ac_status=$?
30286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30287   (exit $ac_status); }; }; then
30288   eval "$as_ac_var=yes"
30289 else
30290   echo "$as_me: failed program was:" >&5
30291 sed 's/^/| /' conftest.$ac_ext >&5
30292
30293         eval "$as_ac_var=no"
30294 fi
30295
30296 rm -f core conftest.err conftest.$ac_objext \
30297       conftest$ac_exeext conftest.$ac_ext
30298 fi
30299 ac_res=`eval echo '${'$as_ac_var'}'`
30300                { echo "$as_me:$LINENO: result: $ac_res" >&5
30301 echo "${ECHO_T}$ac_res" >&6; }
30302 if test `eval echo '${'$as_ac_var'}'` = yes; then
30303   cat >>confdefs.h <<_ACEOF
30304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30305 _ACEOF
30306
30307 fi
30308 done
30309
30310
30311
30312
30313
30314
30315 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30316 do
30317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30318 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30320 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30321   echo $ECHO_N "(cached) $ECHO_C" >&6
30322 else
30323   cat >conftest.$ac_ext <<_ACEOF
30324 /* confdefs.h.  */
30325 _ACEOF
30326 cat confdefs.h >>conftest.$ac_ext
30327 cat >>conftest.$ac_ext <<_ACEOF
30328 /* end confdefs.h.  */
30329 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30330    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30331 #define $ac_func innocuous_$ac_func
30332
30333 /* System header to define __stub macros and hopefully few prototypes,
30334     which can conflict with char $ac_func (); below.
30335     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30336     <limits.h> exists even on freestanding compilers.  */
30337
30338 #ifdef __STDC__
30339 # include <limits.h>
30340 #else
30341 # include <assert.h>
30342 #endif
30343
30344 #undef $ac_func
30345
30346 /* Override any GCC internal prototype to avoid an error.
30347    Use char because int might match the return type of a GCC
30348    builtin and then its argument prototype would still apply.  */
30349 #ifdef __cplusplus
30350 extern "C"
30351 #endif
30352 char $ac_func ();
30353 /* The GNU C library defines this for functions which it implements
30354     to always fail with ENOSYS.  Some functions are actually named
30355     something starting with __ and the normal name is an alias.  */
30356 #if defined __stub_$ac_func || defined __stub___$ac_func
30357 choke me
30358 #endif
30359
30360 int
30361 main ()
30362 {
30363 return $ac_func ();
30364   ;
30365   return 0;
30366 }
30367 _ACEOF
30368 rm -f conftest.$ac_objext conftest$ac_exeext
30369 if { (ac_try="$ac_link"
30370 case "(($ac_try" in
30371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30372   *) ac_try_echo=$ac_try;;
30373 esac
30374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30375   (eval "$ac_link") 2>conftest.er1
30376   ac_status=$?
30377   grep -v '^ *+' conftest.er1 >conftest.err
30378   rm -f conftest.er1
30379   cat conftest.err >&5
30380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } &&
30382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30383   { (case "(($ac_try" in
30384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30385   *) ac_try_echo=$ac_try;;
30386 esac
30387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30388   (eval "$ac_try") 2>&5
30389   ac_status=$?
30390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30391   (exit $ac_status); }; } &&
30392          { ac_try='test -s conftest$ac_exeext'
30393   { (case "(($ac_try" in
30394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395   *) ac_try_echo=$ac_try;;
30396 esac
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398   (eval "$ac_try") 2>&5
30399   ac_status=$?
30400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401   (exit $ac_status); }; }; then
30402   eval "$as_ac_var=yes"
30403 else
30404   echo "$as_me: failed program was:" >&5
30405 sed 's/^/| /' conftest.$ac_ext >&5
30406
30407         eval "$as_ac_var=no"
30408 fi
30409
30410 rm -f core conftest.err conftest.$ac_objext \
30411       conftest$ac_exeext conftest.$ac_ext
30412 fi
30413 ac_res=`eval echo '${'$as_ac_var'}'`
30414                { echo "$as_me:$LINENO: result: $ac_res" >&5
30415 echo "${ECHO_T}$ac_res" >&6; }
30416 if test `eval echo '${'$as_ac_var'}'` = yes; then
30417   cat >>confdefs.h <<_ACEOF
30418 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30419 _ACEOF
30420
30421 fi
30422 done
30423
30424
30425 # If resolver functions are not in libc check for -lnsl or -lresolv.
30426 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30427 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30428 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30429   echo $ECHO_N "(cached) $ECHO_C" >&6
30430 else
30431   cat >conftest.$ac_ext <<_ACEOF
30432 /* confdefs.h.  */
30433 _ACEOF
30434 cat confdefs.h >>conftest.$ac_ext
30435 cat >>conftest.$ac_ext <<_ACEOF
30436 /* end confdefs.h.  */
30437 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30439 #define gethostbyname_r innocuous_gethostbyname_r
30440
30441 /* System header to define __stub macros and hopefully few prototypes,
30442     which can conflict with char gethostbyname_r (); below.
30443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30444     <limits.h> exists even on freestanding compilers.  */
30445
30446 #ifdef __STDC__
30447 # include <limits.h>
30448 #else
30449 # include <assert.h>
30450 #endif
30451
30452 #undef gethostbyname_r
30453
30454 /* Override any GCC internal prototype to avoid an error.
30455    Use char because int might match the return type of a GCC
30456    builtin and then its argument prototype would still apply.  */
30457 #ifdef __cplusplus
30458 extern "C"
30459 #endif
30460 char gethostbyname_r ();
30461 /* The GNU C library defines this for functions which it implements
30462     to always fail with ENOSYS.  Some functions are actually named
30463     something starting with __ and the normal name is an alias.  */
30464 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30465 choke me
30466 #endif
30467
30468 int
30469 main ()
30470 {
30471 return gethostbyname_r ();
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 rm -f conftest.$ac_objext conftest$ac_exeext
30477 if { (ac_try="$ac_link"
30478 case "(($ac_try" in
30479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30480   *) ac_try_echo=$ac_try;;
30481 esac
30482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30483   (eval "$ac_link") 2>conftest.er1
30484   ac_status=$?
30485   grep -v '^ *+' conftest.er1 >conftest.err
30486   rm -f conftest.er1
30487   cat conftest.err >&5
30488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30489   (exit $ac_status); } &&
30490          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30491   { (case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_try") 2>&5
30497   ac_status=$?
30498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30499   (exit $ac_status); }; } &&
30500          { ac_try='test -s conftest$ac_exeext'
30501   { (case "(($ac_try" in
30502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503   *) ac_try_echo=$ac_try;;
30504 esac
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506   (eval "$ac_try") 2>&5
30507   ac_status=$?
30508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509   (exit $ac_status); }; }; then
30510   ac_cv_func_gethostbyname_r=yes
30511 else
30512   echo "$as_me: failed program was:" >&5
30513 sed 's/^/| /' conftest.$ac_ext >&5
30514
30515         ac_cv_func_gethostbyname_r=no
30516 fi
30517
30518 rm -f core conftest.err conftest.$ac_objext \
30519       conftest$ac_exeext conftest.$ac_ext
30520 fi
30521 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30522 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30523 if test $ac_cv_func_gethostbyname_r = yes; then
30524   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30525 echo "${ECHO_T}using libc's resolver" >&6; }
30526 else
30527
30528 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30529 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30530 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30531   echo $ECHO_N "(cached) $ECHO_C" >&6
30532 else
30533   ac_check_lib_save_LIBS=$LIBS
30534 LIBS="-lnsl  $LIBS"
30535 cat >conftest.$ac_ext <<_ACEOF
30536 /* confdefs.h.  */
30537 _ACEOF
30538 cat confdefs.h >>conftest.$ac_ext
30539 cat >>conftest.$ac_ext <<_ACEOF
30540 /* end confdefs.h.  */
30541
30542 /* Override any GCC internal prototype to avoid an error.
30543    Use char because int might match the return type of a GCC
30544    builtin and then its argument prototype would still apply.  */
30545 #ifdef __cplusplus
30546 extern "C"
30547 #endif
30548 char gethostbyname_r ();
30549 int
30550 main ()
30551 {
30552 return gethostbyname_r ();
30553   ;
30554   return 0;
30555 }
30556 _ACEOF
30557 rm -f conftest.$ac_objext conftest$ac_exeext
30558 if { (ac_try="$ac_link"
30559 case "(($ac_try" in
30560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30561   *) ac_try_echo=$ac_try;;
30562 esac
30563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30564   (eval "$ac_link") 2>conftest.er1
30565   ac_status=$?
30566   grep -v '^ *+' conftest.er1 >conftest.err
30567   rm -f conftest.er1
30568   cat conftest.err >&5
30569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570   (exit $ac_status); } &&
30571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30572   { (case "(($ac_try" in
30573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30574   *) ac_try_echo=$ac_try;;
30575 esac
30576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30577   (eval "$ac_try") 2>&5
30578   ac_status=$?
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); }; } &&
30581          { ac_try='test -s conftest$ac_exeext'
30582   { (case "(($ac_try" in
30583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30584   *) ac_try_echo=$ac_try;;
30585 esac
30586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30587   (eval "$ac_try") 2>&5
30588   ac_status=$?
30589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30590   (exit $ac_status); }; }; then
30591   ac_cv_lib_nsl_gethostbyname_r=yes
30592 else
30593   echo "$as_me: failed program was:" >&5
30594 sed 's/^/| /' conftest.$ac_ext >&5
30595
30596         ac_cv_lib_nsl_gethostbyname_r=no
30597 fi
30598
30599 rm -f core conftest.err conftest.$ac_objext \
30600       conftest$ac_exeext conftest.$ac_ext
30601 LIBS=$ac_check_lib_save_LIBS
30602 fi
30603 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30604 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30605 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30606   cat >>confdefs.h <<_ACEOF
30607 #define HAVE_LIBNSL 1
30608 _ACEOF
30609
30610   LIBS="-lnsl $LIBS"
30611
30612 fi
30613
30614
30615 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30616 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30617 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30618   echo $ECHO_N "(cached) $ECHO_C" >&6
30619 else
30620   ac_check_lib_save_LIBS=$LIBS
30621 LIBS="-lresolv  $LIBS"
30622 cat >conftest.$ac_ext <<_ACEOF
30623 /* confdefs.h.  */
30624 _ACEOF
30625 cat confdefs.h >>conftest.$ac_ext
30626 cat >>conftest.$ac_ext <<_ACEOF
30627 /* end confdefs.h.  */
30628
30629 /* Override any GCC internal prototype to avoid an error.
30630    Use char because int might match the return type of a GCC
30631    builtin and then its argument prototype would still apply.  */
30632 #ifdef __cplusplus
30633 extern "C"
30634 #endif
30635 char gethostbyname_r ();
30636 int
30637 main ()
30638 {
30639 return gethostbyname_r ();
30640   ;
30641   return 0;
30642 }
30643 _ACEOF
30644 rm -f conftest.$ac_objext conftest$ac_exeext
30645 if { (ac_try="$ac_link"
30646 case "(($ac_try" in
30647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648   *) ac_try_echo=$ac_try;;
30649 esac
30650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30651   (eval "$ac_link") 2>conftest.er1
30652   ac_status=$?
30653   grep -v '^ *+' conftest.er1 >conftest.err
30654   rm -f conftest.er1
30655   cat conftest.err >&5
30656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30657   (exit $ac_status); } &&
30658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30659   { (case "(($ac_try" in
30660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30661   *) ac_try_echo=$ac_try;;
30662 esac
30663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30664   (eval "$ac_try") 2>&5
30665   ac_status=$?
30666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30667   (exit $ac_status); }; } &&
30668          { ac_try='test -s conftest$ac_exeext'
30669   { (case "(($ac_try" in
30670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30671   *) ac_try_echo=$ac_try;;
30672 esac
30673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30674   (eval "$ac_try") 2>&5
30675   ac_status=$?
30676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30677   (exit $ac_status); }; }; then
30678   ac_cv_lib_resolv_gethostbyname_r=yes
30679 else
30680   echo "$as_me: failed program was:" >&5
30681 sed 's/^/| /' conftest.$ac_ext >&5
30682
30683         ac_cv_lib_resolv_gethostbyname_r=no
30684 fi
30685
30686 rm -f core conftest.err conftest.$ac_objext \
30687       conftest$ac_exeext conftest.$ac_ext
30688 LIBS=$ac_check_lib_save_LIBS
30689 fi
30690 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
30691 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
30692 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
30693   cat >>confdefs.h <<_ACEOF
30694 #define HAVE_LIBRESOLV 1
30695 _ACEOF
30696
30697   LIBS="-lresolv $LIBS"
30698
30699 fi
30700
30701 fi
30702
30703
30704
30705
30706
30707 for ac_func in inet_pton
30708 do
30709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30713   echo $ECHO_N "(cached) $ECHO_C" >&6
30714 else
30715   cat >conftest.$ac_ext <<_ACEOF
30716 /* confdefs.h.  */
30717 _ACEOF
30718 cat confdefs.h >>conftest.$ac_ext
30719 cat >>conftest.$ac_ext <<_ACEOF
30720 /* end confdefs.h.  */
30721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30723 #define $ac_func innocuous_$ac_func
30724
30725 /* System header to define __stub macros and hopefully few prototypes,
30726     which can conflict with char $ac_func (); below.
30727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30728     <limits.h> exists even on freestanding compilers.  */
30729
30730 #ifdef __STDC__
30731 # include <limits.h>
30732 #else
30733 # include <assert.h>
30734 #endif
30735
30736 #undef $ac_func
30737
30738 /* Override any GCC internal prototype to avoid an error.
30739    Use char because int might match the return type of a GCC
30740    builtin and then its argument prototype would still apply.  */
30741 #ifdef __cplusplus
30742 extern "C"
30743 #endif
30744 char $ac_func ();
30745 /* The GNU C library defines this for functions which it implements
30746     to always fail with ENOSYS.  Some functions are actually named
30747     something starting with __ and the normal name is an alias.  */
30748 #if defined __stub_$ac_func || defined __stub___$ac_func
30749 choke me
30750 #endif
30751
30752 int
30753 main ()
30754 {
30755 return $ac_func ();
30756   ;
30757   return 0;
30758 }
30759 _ACEOF
30760 rm -f conftest.$ac_objext conftest$ac_exeext
30761 if { (ac_try="$ac_link"
30762 case "(($ac_try" in
30763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764   *) ac_try_echo=$ac_try;;
30765 esac
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767   (eval "$ac_link") 2>conftest.er1
30768   ac_status=$?
30769   grep -v '^ *+' conftest.er1 >conftest.err
30770   rm -f conftest.er1
30771   cat conftest.err >&5
30772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773   (exit $ac_status); } &&
30774          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30775   { (case "(($ac_try" in
30776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30777   *) ac_try_echo=$ac_try;;
30778 esac
30779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30780   (eval "$ac_try") 2>&5
30781   ac_status=$?
30782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783   (exit $ac_status); }; } &&
30784          { ac_try='test -s conftest$ac_exeext'
30785   { (case "(($ac_try" in
30786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30787   *) ac_try_echo=$ac_try;;
30788 esac
30789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30790   (eval "$ac_try") 2>&5
30791   ac_status=$?
30792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793   (exit $ac_status); }; }; then
30794   eval "$as_ac_var=yes"
30795 else
30796   echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30798
30799         eval "$as_ac_var=no"
30800 fi
30801
30802 rm -f core conftest.err conftest.$ac_objext \
30803       conftest$ac_exeext conftest.$ac_ext
30804 fi
30805 ac_res=`eval echo '${'$as_ac_var'}'`
30806                { echo "$as_me:$LINENO: result: $ac_res" >&5
30807 echo "${ECHO_T}$ac_res" >&6; }
30808 if test `eval echo '${'$as_ac_var'}'` = yes; then
30809   cat >>confdefs.h <<_ACEOF
30810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30811 _ACEOF
30812  cat >>confdefs.h <<\_ACEOF
30813 #define HAVE_INET_PTON 1
30814 _ACEOF
30815
30816 fi
30817 done
30818
30819
30820 for ac_func in inet_ntop
30821 do
30822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30826   echo $ECHO_N "(cached) $ECHO_C" >&6
30827 else
30828   cat >conftest.$ac_ext <<_ACEOF
30829 /* confdefs.h.  */
30830 _ACEOF
30831 cat confdefs.h >>conftest.$ac_ext
30832 cat >>conftest.$ac_ext <<_ACEOF
30833 /* end confdefs.h.  */
30834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30836 #define $ac_func innocuous_$ac_func
30837
30838 /* System header to define __stub macros and hopefully few prototypes,
30839     which can conflict with char $ac_func (); below.
30840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30841     <limits.h> exists even on freestanding compilers.  */
30842
30843 #ifdef __STDC__
30844 # include <limits.h>
30845 #else
30846 # include <assert.h>
30847 #endif
30848
30849 #undef $ac_func
30850
30851 /* Override any GCC internal prototype to avoid an error.
30852    Use char because int might match the return type of a GCC
30853    builtin and then its argument prototype would still apply.  */
30854 #ifdef __cplusplus
30855 extern "C"
30856 #endif
30857 char $ac_func ();
30858 /* The GNU C library defines this for functions which it implements
30859     to always fail with ENOSYS.  Some functions are actually named
30860     something starting with __ and the normal name is an alias.  */
30861 #if defined __stub_$ac_func || defined __stub___$ac_func
30862 choke me
30863 #endif
30864
30865 int
30866 main ()
30867 {
30868 return $ac_func ();
30869   ;
30870   return 0;
30871 }
30872 _ACEOF
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (ac_try="$ac_link"
30875 case "(($ac_try" in
30876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30877   *) ac_try_echo=$ac_try;;
30878 esac
30879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30880   (eval "$ac_link") 2>conftest.er1
30881   ac_status=$?
30882   grep -v '^ *+' conftest.er1 >conftest.err
30883   rm -f conftest.er1
30884   cat conftest.err >&5
30885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886   (exit $ac_status); } &&
30887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30888   { (case "(($ac_try" in
30889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30890   *) ac_try_echo=$ac_try;;
30891 esac
30892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30893   (eval "$ac_try") 2>&5
30894   ac_status=$?
30895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896   (exit $ac_status); }; } &&
30897          { ac_try='test -s conftest$ac_exeext'
30898   { (case "(($ac_try" in
30899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30900   *) ac_try_echo=$ac_try;;
30901 esac
30902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30903   (eval "$ac_try") 2>&5
30904   ac_status=$?
30905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906   (exit $ac_status); }; }; then
30907   eval "$as_ac_var=yes"
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912         eval "$as_ac_var=no"
30913 fi
30914
30915 rm -f core conftest.err conftest.$ac_objext \
30916       conftest$ac_exeext conftest.$ac_ext
30917 fi
30918 ac_res=`eval echo '${'$as_ac_var'}'`
30919                { echo "$as_me:$LINENO: result: $ac_res" >&5
30920 echo "${ECHO_T}$ac_res" >&6; }
30921 if test `eval echo '${'$as_ac_var'}'` = yes; then
30922   cat >>confdefs.h <<_ACEOF
30923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30924 _ACEOF
30925  cat >>confdefs.h <<\_ACEOF
30926 #define HAVE_INET_NTOP 1
30927 _ACEOF
30928
30929 fi
30930 done
30931
30932
30933 for ac_func in gethostbyname2
30934 do
30935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30939   echo $ECHO_N "(cached) $ECHO_C" >&6
30940 else
30941   cat >conftest.$ac_ext <<_ACEOF
30942 /* confdefs.h.  */
30943 _ACEOF
30944 cat confdefs.h >>conftest.$ac_ext
30945 cat >>conftest.$ac_ext <<_ACEOF
30946 /* end confdefs.h.  */
30947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30949 #define $ac_func innocuous_$ac_func
30950
30951 /* System header to define __stub macros and hopefully few prototypes,
30952     which can conflict with char $ac_func (); below.
30953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30954     <limits.h> exists even on freestanding compilers.  */
30955
30956 #ifdef __STDC__
30957 # include <limits.h>
30958 #else
30959 # include <assert.h>
30960 #endif
30961
30962 #undef $ac_func
30963
30964 /* Override any GCC internal prototype to avoid an error.
30965    Use char because int might match the return type of a GCC
30966    builtin and then its argument prototype would still apply.  */
30967 #ifdef __cplusplus
30968 extern "C"
30969 #endif
30970 char $ac_func ();
30971 /* The GNU C library defines this for functions which it implements
30972     to always fail with ENOSYS.  Some functions are actually named
30973     something starting with __ and the normal name is an alias.  */
30974 #if defined __stub_$ac_func || defined __stub___$ac_func
30975 choke me
30976 #endif
30977
30978 int
30979 main ()
30980 {
30981 return $ac_func ();
30982   ;
30983   return 0;
30984 }
30985 _ACEOF
30986 rm -f conftest.$ac_objext conftest$ac_exeext
30987 if { (ac_try="$ac_link"
30988 case "(($ac_try" in
30989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30990   *) ac_try_echo=$ac_try;;
30991 esac
30992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30993   (eval "$ac_link") 2>conftest.er1
30994   ac_status=$?
30995   grep -v '^ *+' conftest.er1 >conftest.err
30996   rm -f conftest.er1
30997   cat conftest.err >&5
30998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30999   (exit $ac_status); } &&
31000          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31001   { (case "(($ac_try" in
31002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003   *) ac_try_echo=$ac_try;;
31004 esac
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006   (eval "$ac_try") 2>&5
31007   ac_status=$?
31008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009   (exit $ac_status); }; } &&
31010          { ac_try='test -s conftest$ac_exeext'
31011   { (case "(($ac_try" in
31012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31013   *) ac_try_echo=$ac_try;;
31014 esac
31015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31016   (eval "$ac_try") 2>&5
31017   ac_status=$?
31018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31019   (exit $ac_status); }; }; then
31020   eval "$as_ac_var=yes"
31021 else
31022   echo "$as_me: failed program was:" >&5
31023 sed 's/^/| /' conftest.$ac_ext >&5
31024
31025         eval "$as_ac_var=no"
31026 fi
31027
31028 rm -f core conftest.err conftest.$ac_objext \
31029       conftest$ac_exeext conftest.$ac_ext
31030 fi
31031 ac_res=`eval echo '${'$as_ac_var'}'`
31032                { echo "$as_me:$LINENO: result: $ac_res" >&5
31033 echo "${ECHO_T}$ac_res" >&6; }
31034 if test `eval echo '${'$as_ac_var'}'` = yes; then
31035   cat >>confdefs.h <<_ACEOF
31036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31037 _ACEOF
31038  cat >>confdefs.h <<\_ACEOF
31039 #define HAVE_GETHOSTBYNAME2 1
31040 _ACEOF
31041
31042 fi
31043 done
31044
31045
31046 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31047 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31048 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31049   echo $ECHO_N "(cached) $ECHO_C" >&6
31050 else
31051   cat >conftest.$ac_ext <<_ACEOF
31052 /* confdefs.h.  */
31053 _ACEOF
31054 cat confdefs.h >>conftest.$ac_ext
31055 cat >>conftest.$ac_ext <<_ACEOF
31056 /* end confdefs.h.  */
31057 #include <sys/socket.h>
31058 int
31059 main ()
31060 {
31061 struct sockaddr s; s.sa_len;
31062   ;
31063   return 0;
31064 }
31065 _ACEOF
31066 rm -f conftest.$ac_objext
31067 if { (ac_try="$ac_compile"
31068 case "(($ac_try" in
31069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31070   *) ac_try_echo=$ac_try;;
31071 esac
31072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31073   (eval "$ac_compile") 2>conftest.er1
31074   ac_status=$?
31075   grep -v '^ *+' conftest.er1 >conftest.err
31076   rm -f conftest.er1
31077   cat conftest.err >&5
31078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31079   (exit $ac_status); } &&
31080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31081   { (case "(($ac_try" in
31082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31083   *) ac_try_echo=$ac_try;;
31084 esac
31085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31086   (eval "$ac_try") 2>&5
31087   ac_status=$?
31088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31089   (exit $ac_status); }; } &&
31090          { ac_try='test -s conftest.$ac_objext'
31091   { (case "(($ac_try" in
31092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31093   *) ac_try_echo=$ac_try;;
31094 esac
31095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31096   (eval "$ac_try") 2>&5
31097   ac_status=$?
31098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31099   (exit $ac_status); }; }; then
31100   ac_cv_struct_sockaddr_sa_len=yes
31101 else
31102   echo "$as_me: failed program was:" >&5
31103 sed 's/^/| /' conftest.$ac_ext >&5
31104
31105         ac_cv_struct_sockaddr_sa_len=no
31106 fi
31107
31108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31109 fi
31110 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31111 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31112
31113  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31114
31115 cat >>confdefs.h <<\_ACEOF
31116 #define HAVE_SA_LEN 1
31117 _ACEOF
31118
31119  fi
31120
31121
31122
31123
31124
31125 for ac_func in strftime
31126 do
31127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31131   echo $ECHO_N "(cached) $ECHO_C" >&6
31132 else
31133   cat >conftest.$ac_ext <<_ACEOF
31134 /* confdefs.h.  */
31135 _ACEOF
31136 cat confdefs.h >>conftest.$ac_ext
31137 cat >>conftest.$ac_ext <<_ACEOF
31138 /* end confdefs.h.  */
31139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31140    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31141 #define $ac_func innocuous_$ac_func
31142
31143 /* System header to define __stub macros and hopefully few prototypes,
31144     which can conflict with char $ac_func (); below.
31145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31146     <limits.h> exists even on freestanding compilers.  */
31147
31148 #ifdef __STDC__
31149 # include <limits.h>
31150 #else
31151 # include <assert.h>
31152 #endif
31153
31154 #undef $ac_func
31155
31156 /* Override any GCC internal prototype to avoid an error.
31157    Use char because int might match the return type of a GCC
31158    builtin and then its argument prototype would still apply.  */
31159 #ifdef __cplusplus
31160 extern "C"
31161 #endif
31162 char $ac_func ();
31163 /* The GNU C library defines this for functions which it implements
31164     to always fail with ENOSYS.  Some functions are actually named
31165     something starting with __ and the normal name is an alias.  */
31166 #if defined __stub_$ac_func || defined __stub___$ac_func
31167 choke me
31168 #endif
31169
31170 int
31171 main ()
31172 {
31173 return $ac_func ();
31174   ;
31175   return 0;
31176 }
31177 _ACEOF
31178 rm -f conftest.$ac_objext conftest$ac_exeext
31179 if { (ac_try="$ac_link"
31180 case "(($ac_try" in
31181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31182   *) ac_try_echo=$ac_try;;
31183 esac
31184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31185   (eval "$ac_link") 2>conftest.er1
31186   ac_status=$?
31187   grep -v '^ *+' conftest.er1 >conftest.err
31188   rm -f conftest.er1
31189   cat conftest.err >&5
31190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191   (exit $ac_status); } &&
31192          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31193   { (case "(($ac_try" in
31194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31195   *) ac_try_echo=$ac_try;;
31196 esac
31197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31198   (eval "$ac_try") 2>&5
31199   ac_status=$?
31200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31201   (exit $ac_status); }; } &&
31202          { ac_try='test -s conftest$ac_exeext'
31203   { (case "(($ac_try" in
31204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31205   *) ac_try_echo=$ac_try;;
31206 esac
31207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31208   (eval "$ac_try") 2>&5
31209   ac_status=$?
31210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31211   (exit $ac_status); }; }; then
31212   eval "$as_ac_var=yes"
31213 else
31214   echo "$as_me: failed program was:" >&5
31215 sed 's/^/| /' conftest.$ac_ext >&5
31216
31217         eval "$as_ac_var=no"
31218 fi
31219
31220 rm -f core conftest.err conftest.$ac_objext \
31221       conftest$ac_exeext conftest.$ac_ext
31222 fi
31223 ac_res=`eval echo '${'$as_ac_var'}'`
31224                { echo "$as_me:$LINENO: result: $ac_res" >&5
31225 echo "${ECHO_T}$ac_res" >&6; }
31226 if test `eval echo '${'$as_ac_var'}'` = yes; then
31227   cat >>confdefs.h <<_ACEOF
31228 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31229 _ACEOF
31230
31231 else
31232   # strftime is in -lintl on SCO UNIX.
31233 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31234 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31235 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31236   echo $ECHO_N "(cached) $ECHO_C" >&6
31237 else
31238   ac_check_lib_save_LIBS=$LIBS
31239 LIBS="-lintl  $LIBS"
31240 cat >conftest.$ac_ext <<_ACEOF
31241 /* confdefs.h.  */
31242 _ACEOF
31243 cat confdefs.h >>conftest.$ac_ext
31244 cat >>conftest.$ac_ext <<_ACEOF
31245 /* end confdefs.h.  */
31246
31247 /* Override any GCC internal prototype to avoid an error.
31248    Use char because int might match the return type of a GCC
31249    builtin and then its argument prototype would still apply.  */
31250 #ifdef __cplusplus
31251 extern "C"
31252 #endif
31253 char strftime ();
31254 int
31255 main ()
31256 {
31257 return strftime ();
31258   ;
31259   return 0;
31260 }
31261 _ACEOF
31262 rm -f conftest.$ac_objext conftest$ac_exeext
31263 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31270   ac_status=$?
31271   grep -v '^ *+' conftest.er1 >conftest.err
31272   rm -f conftest.er1
31273   cat conftest.err >&5
31274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); } &&
31276          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31277   { (case "(($ac_try" in
31278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279   *) ac_try_echo=$ac_try;;
31280 esac
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282   (eval "$ac_try") 2>&5
31283   ac_status=$?
31284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31285   (exit $ac_status); }; } &&
31286          { ac_try='test -s conftest$ac_exeext'
31287   { (case "(($ac_try" in
31288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289   *) ac_try_echo=$ac_try;;
31290 esac
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292   (eval "$ac_try") 2>&5
31293   ac_status=$?
31294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295   (exit $ac_status); }; }; then
31296   ac_cv_lib_intl_strftime=yes
31297 else
31298   echo "$as_me: failed program was:" >&5
31299 sed 's/^/| /' conftest.$ac_ext >&5
31300
31301         ac_cv_lib_intl_strftime=no
31302 fi
31303
31304 rm -f core conftest.err conftest.$ac_objext \
31305       conftest$ac_exeext conftest.$ac_ext
31306 LIBS=$ac_check_lib_save_LIBS
31307 fi
31308 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31309 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31310 if test $ac_cv_lib_intl_strftime = yes; then
31311   cat >>confdefs.h <<\_ACEOF
31312 #define HAVE_STRFTIME 1
31313 _ACEOF
31314
31315 LIBS="-lintl $LIBS"
31316 fi
31317
31318 fi
31319 done
31320
31321
31322 for ac_func in vprintf
31323 do
31324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31325 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31328   echo $ECHO_N "(cached) $ECHO_C" >&6
31329 else
31330   cat >conftest.$ac_ext <<_ACEOF
31331 /* confdefs.h.  */
31332 _ACEOF
31333 cat confdefs.h >>conftest.$ac_ext
31334 cat >>conftest.$ac_ext <<_ACEOF
31335 /* end confdefs.h.  */
31336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31337    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31338 #define $ac_func innocuous_$ac_func
31339
31340 /* System header to define __stub macros and hopefully few prototypes,
31341     which can conflict with char $ac_func (); below.
31342     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31343     <limits.h> exists even on freestanding compilers.  */
31344
31345 #ifdef __STDC__
31346 # include <limits.h>
31347 #else
31348 # include <assert.h>
31349 #endif
31350
31351 #undef $ac_func
31352
31353 /* Override any GCC internal prototype to avoid an error.
31354    Use char because int might match the return type of a GCC
31355    builtin and then its argument prototype would still apply.  */
31356 #ifdef __cplusplus
31357 extern "C"
31358 #endif
31359 char $ac_func ();
31360 /* The GNU C library defines this for functions which it implements
31361     to always fail with ENOSYS.  Some functions are actually named
31362     something starting with __ and the normal name is an alias.  */
31363 #if defined __stub_$ac_func || defined __stub___$ac_func
31364 choke me
31365 #endif
31366
31367 int
31368 main ()
31369 {
31370 return $ac_func ();
31371   ;
31372   return 0;
31373 }
31374 _ACEOF
31375 rm -f conftest.$ac_objext conftest$ac_exeext
31376 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
31383   ac_status=$?
31384   grep -v '^ *+' conftest.er1 >conftest.err
31385   rm -f conftest.er1
31386   cat conftest.err >&5
31387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31388   (exit $ac_status); } &&
31389          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31390   { (case "(($ac_try" in
31391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31392   *) ac_try_echo=$ac_try;;
31393 esac
31394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31395   (eval "$ac_try") 2>&5
31396   ac_status=$?
31397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398   (exit $ac_status); }; } &&
31399          { ac_try='test -s conftest$ac_exeext'
31400   { (case "(($ac_try" in
31401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31402   *) ac_try_echo=$ac_try;;
31403 esac
31404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31405   (eval "$ac_try") 2>&5
31406   ac_status=$?
31407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31408   (exit $ac_status); }; }; then
31409   eval "$as_ac_var=yes"
31410 else
31411   echo "$as_me: failed program was:" >&5
31412 sed 's/^/| /' conftest.$ac_ext >&5
31413
31414         eval "$as_ac_var=no"
31415 fi
31416
31417 rm -f core conftest.err conftest.$ac_objext \
31418       conftest$ac_exeext conftest.$ac_ext
31419 fi
31420 ac_res=`eval echo '${'$as_ac_var'}'`
31421                { echo "$as_me:$LINENO: result: $ac_res" >&5
31422 echo "${ECHO_T}$ac_res" >&6; }
31423 if test `eval echo '${'$as_ac_var'}'` = yes; then
31424   cat >>confdefs.h <<_ACEOF
31425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31426 _ACEOF
31427
31428 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31429 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31430 if test "${ac_cv_func__doprnt+set}" = set; then
31431   echo $ECHO_N "(cached) $ECHO_C" >&6
31432 else
31433   cat >conftest.$ac_ext <<_ACEOF
31434 /* confdefs.h.  */
31435 _ACEOF
31436 cat confdefs.h >>conftest.$ac_ext
31437 cat >>conftest.$ac_ext <<_ACEOF
31438 /* end confdefs.h.  */
31439 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31440    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31441 #define _doprnt innocuous__doprnt
31442
31443 /* System header to define __stub macros and hopefully few prototypes,
31444     which can conflict with char _doprnt (); below.
31445     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31446     <limits.h> exists even on freestanding compilers.  */
31447
31448 #ifdef __STDC__
31449 # include <limits.h>
31450 #else
31451 # include <assert.h>
31452 #endif
31453
31454 #undef _doprnt
31455
31456 /* Override any GCC internal prototype to avoid an error.
31457    Use char because int might match the return type of a GCC
31458    builtin and then its argument prototype would still apply.  */
31459 #ifdef __cplusplus
31460 extern "C"
31461 #endif
31462 char _doprnt ();
31463 /* The GNU C library defines this for functions which it implements
31464     to always fail with ENOSYS.  Some functions are actually named
31465     something starting with __ and the normal name is an alias.  */
31466 #if defined __stub__doprnt || defined __stub____doprnt
31467 choke me
31468 #endif
31469
31470 int
31471 main ()
31472 {
31473 return _doprnt ();
31474   ;
31475   return 0;
31476 }
31477 _ACEOF
31478 rm -f conftest.$ac_objext conftest$ac_exeext
31479 if { (ac_try="$ac_link"
31480 case "(($ac_try" in
31481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31482   *) ac_try_echo=$ac_try;;
31483 esac
31484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31485   (eval "$ac_link") 2>conftest.er1
31486   ac_status=$?
31487   grep -v '^ *+' conftest.er1 >conftest.err
31488   rm -f conftest.er1
31489   cat conftest.err >&5
31490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491   (exit $ac_status); } &&
31492          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31493   { (case "(($ac_try" in
31494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31495   *) ac_try_echo=$ac_try;;
31496 esac
31497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31498   (eval "$ac_try") 2>&5
31499   ac_status=$?
31500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31501   (exit $ac_status); }; } &&
31502          { ac_try='test -s conftest$ac_exeext'
31503   { (case "(($ac_try" in
31504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31505   *) ac_try_echo=$ac_try;;
31506 esac
31507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31508   (eval "$ac_try") 2>&5
31509   ac_status=$?
31510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31511   (exit $ac_status); }; }; then
31512   ac_cv_func__doprnt=yes
31513 else
31514   echo "$as_me: failed program was:" >&5
31515 sed 's/^/| /' conftest.$ac_ext >&5
31516
31517         ac_cv_func__doprnt=no
31518 fi
31519
31520 rm -f core conftest.err conftest.$ac_objext \
31521       conftest$ac_exeext conftest.$ac_ext
31522 fi
31523 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31524 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31525 if test $ac_cv_func__doprnt = yes; then
31526
31527 cat >>confdefs.h <<\_ACEOF
31528 #define HAVE_DOPRNT 1
31529 _ACEOF
31530
31531 fi
31532
31533 fi
31534 done
31535
31536
31537 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31538 # for constant arguments.  Useless!
31539 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31540 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31541 if test "${ac_cv_working_alloca_h+set}" = set; then
31542   echo $ECHO_N "(cached) $ECHO_C" >&6
31543 else
31544   cat >conftest.$ac_ext <<_ACEOF
31545 /* confdefs.h.  */
31546 _ACEOF
31547 cat confdefs.h >>conftest.$ac_ext
31548 cat >>conftest.$ac_ext <<_ACEOF
31549 /* end confdefs.h.  */
31550 #include <alloca.h>
31551 int
31552 main ()
31553 {
31554 char *p = (char *) alloca (2 * sizeof (int));
31555                           if (p) return 0;
31556   ;
31557   return 0;
31558 }
31559 _ACEOF
31560 rm -f conftest.$ac_objext conftest$ac_exeext
31561 if { (ac_try="$ac_link"
31562 case "(($ac_try" in
31563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31564   *) ac_try_echo=$ac_try;;
31565 esac
31566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31567   (eval "$ac_link") 2>conftest.er1
31568   ac_status=$?
31569   grep -v '^ *+' conftest.er1 >conftest.err
31570   rm -f conftest.er1
31571   cat conftest.err >&5
31572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573   (exit $ac_status); } &&
31574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31575   { (case "(($ac_try" in
31576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31577   *) ac_try_echo=$ac_try;;
31578 esac
31579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31580   (eval "$ac_try") 2>&5
31581   ac_status=$?
31582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31583   (exit $ac_status); }; } &&
31584          { ac_try='test -s conftest$ac_exeext'
31585   { (case "(($ac_try" in
31586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31587   *) ac_try_echo=$ac_try;;
31588 esac
31589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31590   (eval "$ac_try") 2>&5
31591   ac_status=$?
31592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593   (exit $ac_status); }; }; then
31594   ac_cv_working_alloca_h=yes
31595 else
31596   echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31598
31599         ac_cv_working_alloca_h=no
31600 fi
31601
31602 rm -f core conftest.err conftest.$ac_objext \
31603       conftest$ac_exeext conftest.$ac_ext
31604 fi
31605 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31606 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31607 if test $ac_cv_working_alloca_h = yes; then
31608
31609 cat >>confdefs.h <<\_ACEOF
31610 #define HAVE_ALLOCA_H 1
31611 _ACEOF
31612
31613 fi
31614
31615 { echo "$as_me:$LINENO: checking for alloca" >&5
31616 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31617 if test "${ac_cv_func_alloca_works+set}" = set; then
31618   echo $ECHO_N "(cached) $ECHO_C" >&6
31619 else
31620   cat >conftest.$ac_ext <<_ACEOF
31621 /* confdefs.h.  */
31622 _ACEOF
31623 cat confdefs.h >>conftest.$ac_ext
31624 cat >>conftest.$ac_ext <<_ACEOF
31625 /* end confdefs.h.  */
31626 #ifdef __GNUC__
31627 # define alloca __builtin_alloca
31628 #else
31629 # ifdef _MSC_VER
31630 #  include <malloc.h>
31631 #  define alloca _alloca
31632 # else
31633 #  if HAVE_ALLOCA_H
31634 #   include <alloca.h>
31635 #  else
31636 #   ifdef _AIX
31637  #pragma alloca
31638 #   else
31639 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31640 char *alloca ();
31641 #    endif
31642 #   endif
31643 #  endif
31644 # endif
31645 #endif
31646
31647 int
31648 main ()
31649 {
31650 char *p = (char *) alloca (1);
31651                                     if (p) return 0;
31652   ;
31653   return 0;
31654 }
31655 _ACEOF
31656 rm -f conftest.$ac_objext conftest$ac_exeext
31657 if { (ac_try="$ac_link"
31658 case "(($ac_try" in
31659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31660   *) ac_try_echo=$ac_try;;
31661 esac
31662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31663   (eval "$ac_link") 2>conftest.er1
31664   ac_status=$?
31665   grep -v '^ *+' conftest.er1 >conftest.err
31666   rm -f conftest.er1
31667   cat conftest.err >&5
31668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669   (exit $ac_status); } &&
31670          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31671   { (case "(($ac_try" in
31672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31673   *) ac_try_echo=$ac_try;;
31674 esac
31675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31676   (eval "$ac_try") 2>&5
31677   ac_status=$?
31678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31679   (exit $ac_status); }; } &&
31680          { ac_try='test -s conftest$ac_exeext'
31681   { (case "(($ac_try" in
31682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31683   *) ac_try_echo=$ac_try;;
31684 esac
31685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31686   (eval "$ac_try") 2>&5
31687   ac_status=$?
31688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31689   (exit $ac_status); }; }; then
31690   ac_cv_func_alloca_works=yes
31691 else
31692   echo "$as_me: failed program was:" >&5
31693 sed 's/^/| /' conftest.$ac_ext >&5
31694
31695         ac_cv_func_alloca_works=no
31696 fi
31697
31698 rm -f core conftest.err conftest.$ac_objext \
31699       conftest$ac_exeext conftest.$ac_ext
31700 fi
31701 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
31702 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
31703
31704 if test $ac_cv_func_alloca_works = yes; then
31705
31706 cat >>confdefs.h <<\_ACEOF
31707 #define HAVE_ALLOCA 1
31708 _ACEOF
31709
31710 else
31711   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
31712 # that cause trouble.  Some versions do not even contain alloca or
31713 # contain a buggy version.  If you still want to use their alloca,
31714 # use ar to extract alloca.o from them instead of compiling alloca.c.
31715
31716 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
31717
31718 cat >>confdefs.h <<\_ACEOF
31719 #define C_ALLOCA 1
31720 _ACEOF
31721
31722
31723 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
31724 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
31725 if test "${ac_cv_os_cray+set}" = set; then
31726   echo $ECHO_N "(cached) $ECHO_C" >&6
31727 else
31728   cat >conftest.$ac_ext <<_ACEOF
31729 /* confdefs.h.  */
31730 _ACEOF
31731 cat confdefs.h >>conftest.$ac_ext
31732 cat >>conftest.$ac_ext <<_ACEOF
31733 /* end confdefs.h.  */
31734 #if defined CRAY && ! defined CRAY2
31735 webecray
31736 #else
31737 wenotbecray
31738 #endif
31739
31740 _ACEOF
31741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31742   $EGREP "webecray" >/dev/null 2>&1; then
31743   ac_cv_os_cray=yes
31744 else
31745   ac_cv_os_cray=no
31746 fi
31747 rm -f conftest*
31748
31749 fi
31750 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
31751 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
31752 if test $ac_cv_os_cray = yes; then
31753   for ac_func in _getb67 GETB67 getb67; do
31754     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31758   echo $ECHO_N "(cached) $ECHO_C" >&6
31759 else
31760   cat >conftest.$ac_ext <<_ACEOF
31761 /* confdefs.h.  */
31762 _ACEOF
31763 cat confdefs.h >>conftest.$ac_ext
31764 cat >>conftest.$ac_ext <<_ACEOF
31765 /* end confdefs.h.  */
31766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31768 #define $ac_func innocuous_$ac_func
31769
31770 /* System header to define __stub macros and hopefully few prototypes,
31771     which can conflict with char $ac_func (); below.
31772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31773     <limits.h> exists even on freestanding compilers.  */
31774
31775 #ifdef __STDC__
31776 # include <limits.h>
31777 #else
31778 # include <assert.h>
31779 #endif
31780
31781 #undef $ac_func
31782
31783 /* Override any GCC internal prototype to avoid an error.
31784    Use char because int might match the return type of a GCC
31785    builtin and then its argument prototype would still apply.  */
31786 #ifdef __cplusplus
31787 extern "C"
31788 #endif
31789 char $ac_func ();
31790 /* The GNU C library defines this for functions which it implements
31791     to always fail with ENOSYS.  Some functions are actually named
31792     something starting with __ and the normal name is an alias.  */
31793 #if defined __stub_$ac_func || defined __stub___$ac_func
31794 choke me
31795 #endif
31796
31797 int
31798 main ()
31799 {
31800 return $ac_func ();
31801   ;
31802   return 0;
31803 }
31804 _ACEOF
31805 rm -f conftest.$ac_objext conftest$ac_exeext
31806 if { (ac_try="$ac_link"
31807 case "(($ac_try" in
31808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31809   *) ac_try_echo=$ac_try;;
31810 esac
31811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31812   (eval "$ac_link") 2>conftest.er1
31813   ac_status=$?
31814   grep -v '^ *+' conftest.er1 >conftest.err
31815   rm -f conftest.er1
31816   cat conftest.err >&5
31817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31818   (exit $ac_status); } &&
31819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31820   { (case "(($ac_try" in
31821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31822   *) ac_try_echo=$ac_try;;
31823 esac
31824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31825   (eval "$ac_try") 2>&5
31826   ac_status=$?
31827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31828   (exit $ac_status); }; } &&
31829          { ac_try='test -s conftest$ac_exeext'
31830   { (case "(($ac_try" in
31831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31832   *) ac_try_echo=$ac_try;;
31833 esac
31834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31835   (eval "$ac_try") 2>&5
31836   ac_status=$?
31837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31838   (exit $ac_status); }; }; then
31839   eval "$as_ac_var=yes"
31840 else
31841   echo "$as_me: failed program was:" >&5
31842 sed 's/^/| /' conftest.$ac_ext >&5
31843
31844         eval "$as_ac_var=no"
31845 fi
31846
31847 rm -f core conftest.err conftest.$ac_objext \
31848       conftest$ac_exeext conftest.$ac_ext
31849 fi
31850 ac_res=`eval echo '${'$as_ac_var'}'`
31851                { echo "$as_me:$LINENO: result: $ac_res" >&5
31852 echo "${ECHO_T}$ac_res" >&6; }
31853 if test `eval echo '${'$as_ac_var'}'` = yes; then
31854
31855 cat >>confdefs.h <<_ACEOF
31856 #define CRAY_STACKSEG_END $ac_func
31857 _ACEOF
31858
31859     break
31860 fi
31861
31862   done
31863 fi
31864
31865 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
31866 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
31867 if test "${ac_cv_c_stack_direction+set}" = set; then
31868   echo $ECHO_N "(cached) $ECHO_C" >&6
31869 else
31870   if test "$cross_compiling" = yes; then
31871   ac_cv_c_stack_direction=0
31872 else
31873   cat >conftest.$ac_ext <<_ACEOF
31874 /* confdefs.h.  */
31875 _ACEOF
31876 cat confdefs.h >>conftest.$ac_ext
31877 cat >>conftest.$ac_ext <<_ACEOF
31878 /* end confdefs.h.  */
31879 $ac_includes_default
31880 int
31881 find_stack_direction ()
31882 {
31883   static char *addr = 0;
31884   auto char dummy;
31885   if (addr == 0)
31886     {
31887       addr = &dummy;
31888       return find_stack_direction ();
31889     }
31890   else
31891     return (&dummy > addr) ? 1 : -1;
31892 }
31893
31894 int
31895 main ()
31896 {
31897   return find_stack_direction () < 0;
31898 }
31899 _ACEOF
31900 rm -f conftest$ac_exeext
31901 if { (ac_try="$ac_link"
31902 case "(($ac_try" in
31903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31904   *) ac_try_echo=$ac_try;;
31905 esac
31906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31907   (eval "$ac_link") 2>&5
31908   ac_status=$?
31909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31911   { (case "(($ac_try" in
31912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31913   *) ac_try_echo=$ac_try;;
31914 esac
31915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31916   (eval "$ac_try") 2>&5
31917   ac_status=$?
31918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919   (exit $ac_status); }; }; then
31920   ac_cv_c_stack_direction=1
31921 else
31922   echo "$as_me: program exited with status $ac_status" >&5
31923 echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31925
31926 ( exit $ac_status )
31927 ac_cv_c_stack_direction=-1
31928 fi
31929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31930 fi
31931
31932
31933 fi
31934 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
31935 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
31936
31937 cat >>confdefs.h <<_ACEOF
31938 #define STACK_DIRECTION $ac_cv_c_stack_direction
31939 _ACEOF
31940
31941
31942 fi
31943
31944 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
31945 # -lseq on Dynix/PTX, -lgen on Unixware.
31946 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
31947 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
31948 if test "${ac_cv_search_getmntent+set}" = set; then
31949   echo $ECHO_N "(cached) $ECHO_C" >&6
31950 else
31951   ac_func_search_save_LIBS=$LIBS
31952 cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h.  */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h.  */
31958
31959 /* Override any GCC internal prototype to avoid an error.
31960    Use char because int might match the return type of a GCC
31961    builtin and then its argument prototype would still apply.  */
31962 #ifdef __cplusplus
31963 extern "C"
31964 #endif
31965 char getmntent ();
31966 int
31967 main ()
31968 {
31969 return getmntent ();
31970   ;
31971   return 0;
31972 }
31973 _ACEOF
31974 for ac_lib in '' sun seq gen; do
31975   if test -z "$ac_lib"; then
31976     ac_res="none required"
31977   else
31978     ac_res=-l$ac_lib
31979     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
31980   fi
31981   rm -f conftest.$ac_objext conftest$ac_exeext
31982 if { (ac_try="$ac_link"
31983 case "(($ac_try" in
31984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985   *) ac_try_echo=$ac_try;;
31986 esac
31987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988   (eval "$ac_link") 2>conftest.er1
31989   ac_status=$?
31990   grep -v '^ *+' conftest.er1 >conftest.err
31991   rm -f conftest.er1
31992   cat conftest.err >&5
31993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994   (exit $ac_status); } &&
31995          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31996   { (case "(($ac_try" in
31997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31998   *) ac_try_echo=$ac_try;;
31999 esac
32000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32001   (eval "$ac_try") 2>&5
32002   ac_status=$?
32003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004   (exit $ac_status); }; } &&
32005          { ac_try='test -s conftest$ac_exeext'
32006   { (case "(($ac_try" in
32007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32008   *) ac_try_echo=$ac_try;;
32009 esac
32010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32011   (eval "$ac_try") 2>&5
32012   ac_status=$?
32013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32014   (exit $ac_status); }; }; then
32015   ac_cv_search_getmntent=$ac_res
32016 else
32017   echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.$ac_ext >&5
32019
32020
32021 fi
32022
32023 rm -f core conftest.err conftest.$ac_objext \
32024       conftest$ac_exeext
32025   if test "${ac_cv_search_getmntent+set}" = set; then
32026   break
32027 fi
32028 done
32029 if test "${ac_cv_search_getmntent+set}" = set; then
32030   :
32031 else
32032   ac_cv_search_getmntent=no
32033 fi
32034 rm conftest.$ac_ext
32035 LIBS=$ac_func_search_save_LIBS
32036 fi
32037 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32038 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32039 ac_res=$ac_cv_search_getmntent
32040 if test "$ac_res" != no; then
32041   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32042
32043 fi
32044
32045
32046 for ac_func in getmntent
32047 do
32048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32052   echo $ECHO_N "(cached) $ECHO_C" >&6
32053 else
32054   cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h.  */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h.  */
32060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32062 #define $ac_func innocuous_$ac_func
32063
32064 /* System header to define __stub macros and hopefully few prototypes,
32065     which can conflict with char $ac_func (); below.
32066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32067     <limits.h> exists even on freestanding compilers.  */
32068
32069 #ifdef __STDC__
32070 # include <limits.h>
32071 #else
32072 # include <assert.h>
32073 #endif
32074
32075 #undef $ac_func
32076
32077 /* Override any GCC internal prototype to avoid an error.
32078    Use char because int might match the return type of a GCC
32079    builtin and then its argument prototype would still apply.  */
32080 #ifdef __cplusplus
32081 extern "C"
32082 #endif
32083 char $ac_func ();
32084 /* The GNU C library defines this for functions which it implements
32085     to always fail with ENOSYS.  Some functions are actually named
32086     something starting with __ and the normal name is an alias.  */
32087 #if defined __stub_$ac_func || defined __stub___$ac_func
32088 choke me
32089 #endif
32090
32091 int
32092 main ()
32093 {
32094 return $ac_func ();
32095   ;
32096   return 0;
32097 }
32098 _ACEOF
32099 rm -f conftest.$ac_objext conftest$ac_exeext
32100 if { (ac_try="$ac_link"
32101 case "(($ac_try" in
32102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32103   *) ac_try_echo=$ac_try;;
32104 esac
32105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32106   (eval "$ac_link") 2>conftest.er1
32107   ac_status=$?
32108   grep -v '^ *+' conftest.er1 >conftest.err
32109   rm -f conftest.er1
32110   cat conftest.err >&5
32111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32112   (exit $ac_status); } &&
32113          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32114   { (case "(($ac_try" in
32115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116   *) ac_try_echo=$ac_try;;
32117 esac
32118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32119   (eval "$ac_try") 2>&5
32120   ac_status=$?
32121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32122   (exit $ac_status); }; } &&
32123          { ac_try='test -s conftest$ac_exeext'
32124   { (case "(($ac_try" in
32125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126   *) ac_try_echo=$ac_try;;
32127 esac
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129   (eval "$ac_try") 2>&5
32130   ac_status=$?
32131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132   (exit $ac_status); }; }; then
32133   eval "$as_ac_var=yes"
32134 else
32135   echo "$as_me: failed program was:" >&5
32136 sed 's/^/| /' conftest.$ac_ext >&5
32137
32138         eval "$as_ac_var=no"
32139 fi
32140
32141 rm -f core conftest.err conftest.$ac_objext \
32142       conftest$ac_exeext conftest.$ac_ext
32143 fi
32144 ac_res=`eval echo '${'$as_ac_var'}'`
32145                { echo "$as_me:$LINENO: result: $ac_res" >&5
32146 echo "${ECHO_T}$ac_res" >&6; }
32147 if test `eval echo '${'$as_ac_var'}'` = yes; then
32148   cat >>confdefs.h <<_ACEOF
32149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32150 _ACEOF
32151
32152 fi
32153 done
32154
32155
32156 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32157 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32158 if test "${ac_cv_func_closedir_void+set}" = set; then
32159   echo $ECHO_N "(cached) $ECHO_C" >&6
32160 else
32161   if test "$cross_compiling" = yes; then
32162   ac_cv_func_closedir_void=yes
32163 else
32164   cat >conftest.$ac_ext <<_ACEOF
32165 /* confdefs.h.  */
32166 _ACEOF
32167 cat confdefs.h >>conftest.$ac_ext
32168 cat >>conftest.$ac_ext <<_ACEOF
32169 /* end confdefs.h.  */
32170 $ac_includes_default
32171 #include <$ac_header_dirent>
32172 #ifndef __cplusplus
32173 int closedir ();
32174 #endif
32175
32176 int
32177 main ()
32178 {
32179 return closedir (opendir (".")) != 0;
32180   ;
32181   return 0;
32182 }
32183 _ACEOF
32184 rm -f conftest$ac_exeext
32185 if { (ac_try="$ac_link"
32186 case "(($ac_try" in
32187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32188   *) ac_try_echo=$ac_try;;
32189 esac
32190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32191   (eval "$ac_link") 2>&5
32192   ac_status=$?
32193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32195   { (case "(($ac_try" in
32196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32197   *) ac_try_echo=$ac_try;;
32198 esac
32199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32200   (eval "$ac_try") 2>&5
32201   ac_status=$?
32202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32203   (exit $ac_status); }; }; then
32204   ac_cv_func_closedir_void=no
32205 else
32206   echo "$as_me: program exited with status $ac_status" >&5
32207 echo "$as_me: failed program was:" >&5
32208 sed 's/^/| /' conftest.$ac_ext >&5
32209
32210 ( exit $ac_status )
32211 ac_cv_func_closedir_void=yes
32212 fi
32213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32214 fi
32215
32216
32217 fi
32218 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32219 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32220 if test $ac_cv_func_closedir_void = yes; then
32221
32222 cat >>confdefs.h <<\_ACEOF
32223 #define CLOSEDIR_VOID 1
32224 _ACEOF
32225
32226 fi
32227
32228 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32229 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32230 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32231   echo $ECHO_N "(cached) $ECHO_C" >&6
32232 else
32233   if test "$cross_compiling" = yes; then
32234   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32235 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32236    { (exit 1); exit 1; }; }
32237 else
32238   cat >conftest.$ac_ext <<_ACEOF
32239 /* confdefs.h.  */
32240 _ACEOF
32241 cat confdefs.h >>conftest.$ac_ext
32242 cat >>conftest.$ac_ext <<_ACEOF
32243 /* end confdefs.h.  */
32244 $ac_includes_default
32245 int
32246 main ()
32247 {
32248 /* If this system has a BSD-style setpgrp which takes arguments,
32249   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32250   exit successfully. */
32251   return setpgrp (1,1) != -1;
32252   ;
32253   return 0;
32254 }
32255 _ACEOF
32256 rm -f conftest$ac_exeext
32257 if { (ac_try="$ac_link"
32258 case "(($ac_try" in
32259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32260   *) ac_try_echo=$ac_try;;
32261 esac
32262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32263   (eval "$ac_link") 2>&5
32264   ac_status=$?
32265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32267   { (case "(($ac_try" in
32268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32269   *) ac_try_echo=$ac_try;;
32270 esac
32271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32272   (eval "$ac_try") 2>&5
32273   ac_status=$?
32274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32275   (exit $ac_status); }; }; then
32276   ac_cv_func_setpgrp_void=no
32277 else
32278   echo "$as_me: program exited with status $ac_status" >&5
32279 echo "$as_me: failed program was:" >&5
32280 sed 's/^/| /' conftest.$ac_ext >&5
32281
32282 ( exit $ac_status )
32283 ac_cv_func_setpgrp_void=yes
32284 fi
32285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32286 fi
32287
32288
32289 fi
32290 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32291 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32292 if test $ac_cv_func_setpgrp_void = yes; then
32293
32294 cat >>confdefs.h <<\_ACEOF
32295 #define SETPGRP_VOID 1
32296 _ACEOF
32297
32298 fi
32299                       # AC_FUNC_FNMATCH    dnl use local version
32300
32301
32302 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32303 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32304 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32305   echo $ECHO_N "(cached) $ECHO_C" >&6
32306 else
32307   ac_check_lib_save_LIBS=$LIBS
32308 LIBS="-lintl  $LIBS"
32309 cat >conftest.$ac_ext <<_ACEOF
32310 /* confdefs.h.  */
32311 _ACEOF
32312 cat confdefs.h >>conftest.$ac_ext
32313 cat >>conftest.$ac_ext <<_ACEOF
32314 /* end confdefs.h.  */
32315
32316 /* Override any GCC internal prototype to avoid an error.
32317    Use char because int might match the return type of a GCC
32318    builtin and then its argument prototype would still apply.  */
32319 #ifdef __cplusplus
32320 extern "C"
32321 #endif
32322 char gettext ();
32323 int
32324 main ()
32325 {
32326 return gettext ();
32327   ;
32328   return 0;
32329 }
32330 _ACEOF
32331 rm -f conftest.$ac_objext conftest$ac_exeext
32332 if { (ac_try="$ac_link"
32333 case "(($ac_try" in
32334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32335   *) ac_try_echo=$ac_try;;
32336 esac
32337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32338   (eval "$ac_link") 2>conftest.er1
32339   ac_status=$?
32340   grep -v '^ *+' conftest.er1 >conftest.err
32341   rm -f conftest.er1
32342   cat conftest.err >&5
32343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32344   (exit $ac_status); } &&
32345          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32346   { (case "(($ac_try" in
32347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32348   *) ac_try_echo=$ac_try;;
32349 esac
32350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32351   (eval "$ac_try") 2>&5
32352   ac_status=$?
32353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32354   (exit $ac_status); }; } &&
32355          { ac_try='test -s conftest$ac_exeext'
32356   { (case "(($ac_try" in
32357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32358   *) ac_try_echo=$ac_try;;
32359 esac
32360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32361   (eval "$ac_try") 2>&5
32362   ac_status=$?
32363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364   (exit $ac_status); }; }; then
32365   ac_cv_lib_intl_gettext=yes
32366 else
32367   echo "$as_me: failed program was:" >&5
32368 sed 's/^/| /' conftest.$ac_ext >&5
32369
32370         ac_cv_lib_intl_gettext=no
32371 fi
32372
32373 rm -f core conftest.err conftest.$ac_objext \
32374       conftest$ac_exeext conftest.$ac_ext
32375 LIBS=$ac_check_lib_save_LIBS
32376 fi
32377 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32378 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32379 if test $ac_cv_lib_intl_gettext = yes; then
32380   LIBS="$LIBS -lintl"
32381 fi
32382
32383
32384
32385
32386 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32387 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32388 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32389   echo $ECHO_N "(cached) $ECHO_C" >&6
32390 else
32391   ac_check_lib_save_LIBS=$LIBS
32392 LIBS="-lsun  $LIBS"
32393 cat >conftest.$ac_ext <<_ACEOF
32394 /* confdefs.h.  */
32395 _ACEOF
32396 cat confdefs.h >>conftest.$ac_ext
32397 cat >>conftest.$ac_ext <<_ACEOF
32398 /* end confdefs.h.  */
32399
32400 /* Override any GCC internal prototype to avoid an error.
32401    Use char because int might match the return type of a GCC
32402    builtin and then its argument prototype would still apply.  */
32403 #ifdef __cplusplus
32404 extern "C"
32405 #endif
32406 char getpwnam ();
32407 int
32408 main ()
32409 {
32410 return getpwnam ();
32411   ;
32412   return 0;
32413 }
32414 _ACEOF
32415 rm -f conftest.$ac_objext conftest$ac_exeext
32416 if { (ac_try="$ac_link"
32417 case "(($ac_try" in
32418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32419   *) ac_try_echo=$ac_try;;
32420 esac
32421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32422   (eval "$ac_link") 2>conftest.er1
32423   ac_status=$?
32424   grep -v '^ *+' conftest.er1 >conftest.err
32425   rm -f conftest.er1
32426   cat conftest.err >&5
32427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428   (exit $ac_status); } &&
32429          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32430   { (case "(($ac_try" in
32431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32432   *) ac_try_echo=$ac_try;;
32433 esac
32434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32435   (eval "$ac_try") 2>&5
32436   ac_status=$?
32437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32438   (exit $ac_status); }; } &&
32439          { ac_try='test -s conftest$ac_exeext'
32440   { (case "(($ac_try" in
32441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32442   *) ac_try_echo=$ac_try;;
32443 esac
32444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32445   (eval "$ac_try") 2>&5
32446   ac_status=$?
32447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32448   (exit $ac_status); }; }; then
32449   ac_cv_lib_sun_getpwnam=yes
32450 else
32451   echo "$as_me: failed program was:" >&5
32452 sed 's/^/| /' conftest.$ac_ext >&5
32453
32454         ac_cv_lib_sun_getpwnam=no
32455 fi
32456
32457 rm -f core conftest.err conftest.$ac_objext \
32458       conftest$ac_exeext conftest.$ac_ext
32459 LIBS=$ac_check_lib_save_LIBS
32460 fi
32461 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32462 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32463 if test $ac_cv_lib_sun_getpwnam = yes; then
32464   cat >>confdefs.h <<_ACEOF
32465 #define HAVE_LIBSUN 1
32466 _ACEOF
32467
32468   LIBS="-lsun $LIBS"
32469
32470 fi
32471
32472
32473
32474 for ac_header in zlib.h
32475 do
32476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32478   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32481   echo $ECHO_N "(cached) $ECHO_C" >&6
32482 fi
32483 ac_res=`eval echo '${'$as_ac_Header'}'`
32484                { echo "$as_me:$LINENO: result: $ac_res" >&5
32485 echo "${ECHO_T}$ac_res" >&6; }
32486 else
32487   # Is the header compilable?
32488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32490 cat >conftest.$ac_ext <<_ACEOF
32491 /* confdefs.h.  */
32492 _ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h.  */
32496 $ac_includes_default
32497 #include <$ac_header>
32498 _ACEOF
32499 rm -f conftest.$ac_objext
32500 if { (ac_try="$ac_compile"
32501 case "(($ac_try" in
32502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32503   *) ac_try_echo=$ac_try;;
32504 esac
32505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32506   (eval "$ac_compile") 2>conftest.er1
32507   ac_status=$?
32508   grep -v '^ *+' conftest.er1 >conftest.err
32509   rm -f conftest.er1
32510   cat conftest.err >&5
32511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512   (exit $ac_status); } &&
32513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32514   { (case "(($ac_try" in
32515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516   *) ac_try_echo=$ac_try;;
32517 esac
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519   (eval "$ac_try") 2>&5
32520   ac_status=$?
32521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522   (exit $ac_status); }; } &&
32523          { ac_try='test -s conftest.$ac_objext'
32524   { (case "(($ac_try" in
32525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32526   *) ac_try_echo=$ac_try;;
32527 esac
32528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32529   (eval "$ac_try") 2>&5
32530   ac_status=$?
32531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32532   (exit $ac_status); }; }; then
32533   ac_header_compiler=yes
32534 else
32535   echo "$as_me: failed program was:" >&5
32536 sed 's/^/| /' conftest.$ac_ext >&5
32537
32538         ac_header_compiler=no
32539 fi
32540
32541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32543 echo "${ECHO_T}$ac_header_compiler" >&6; }
32544
32545 # Is the header present?
32546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32548 cat >conftest.$ac_ext <<_ACEOF
32549 /* confdefs.h.  */
32550 _ACEOF
32551 cat confdefs.h >>conftest.$ac_ext
32552 cat >>conftest.$ac_ext <<_ACEOF
32553 /* end confdefs.h.  */
32554 #include <$ac_header>
32555 _ACEOF
32556 if { (ac_try="$ac_cpp conftest.$ac_ext"
32557 case "(($ac_try" in
32558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32559   *) ac_try_echo=$ac_try;;
32560 esac
32561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32563   ac_status=$?
32564   grep -v '^ *+' conftest.er1 >conftest.err
32565   rm -f conftest.er1
32566   cat conftest.err >&5
32567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568   (exit $ac_status); } >/dev/null; then
32569   if test -s conftest.err; then
32570     ac_cpp_err=$ac_c_preproc_warn_flag
32571     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32572   else
32573     ac_cpp_err=
32574   fi
32575 else
32576   ac_cpp_err=yes
32577 fi
32578 if test -z "$ac_cpp_err"; then
32579   ac_header_preproc=yes
32580 else
32581   echo "$as_me: failed program was:" >&5
32582 sed 's/^/| /' conftest.$ac_ext >&5
32583
32584   ac_header_preproc=no
32585 fi
32586
32587 rm -f conftest.err conftest.$ac_ext
32588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32589 echo "${ECHO_T}$ac_header_preproc" >&6; }
32590
32591 # So?  What about this header?
32592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32593   yes:no: )
32594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32598     ac_header_preproc=yes
32599     ;;
32600   no:yes:* )
32601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32613
32614     ;;
32615 esac
32616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32619   echo $ECHO_N "(cached) $ECHO_C" >&6
32620 else
32621   eval "$as_ac_Header=\$ac_header_preproc"
32622 fi
32623 ac_res=`eval echo '${'$as_ac_Header'}'`
32624                { echo "$as_me:$LINENO: result: $ac_res" >&5
32625 echo "${ECHO_T}$ac_res" >&6; }
32626
32627 fi
32628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32629   cat >>confdefs.h <<_ACEOF
32630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32631 _ACEOF
32632
32633 fi
32634
32635 done
32636
32637 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32638 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32639 if test "${ac_cv_lib_z_deflate+set}" = set; then
32640   echo $ECHO_N "(cached) $ECHO_C" >&6
32641 else
32642   ac_check_lib_save_LIBS=$LIBS
32643 LIBS="-lz  $LIBS"
32644 cat >conftest.$ac_ext <<_ACEOF
32645 /* confdefs.h.  */
32646 _ACEOF
32647 cat confdefs.h >>conftest.$ac_ext
32648 cat >>conftest.$ac_ext <<_ACEOF
32649 /* end confdefs.h.  */
32650
32651 /* Override any GCC internal prototype to avoid an error.
32652    Use char because int might match the return type of a GCC
32653    builtin and then its argument prototype would still apply.  */
32654 #ifdef __cplusplus
32655 extern "C"
32656 #endif
32657 char deflate ();
32658 int
32659 main ()
32660 {
32661 return deflate ();
32662   ;
32663   return 0;
32664 }
32665 _ACEOF
32666 rm -f conftest.$ac_objext conftest$ac_exeext
32667 if { (ac_try="$ac_link"
32668 case "(($ac_try" in
32669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32670   *) ac_try_echo=$ac_try;;
32671 esac
32672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32673   (eval "$ac_link") 2>conftest.er1
32674   ac_status=$?
32675   grep -v '^ *+' conftest.er1 >conftest.err
32676   rm -f conftest.er1
32677   cat conftest.err >&5
32678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32679   (exit $ac_status); } &&
32680          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32681   { (case "(($ac_try" in
32682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32683   *) ac_try_echo=$ac_try;;
32684 esac
32685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32686   (eval "$ac_try") 2>&5
32687   ac_status=$?
32688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32689   (exit $ac_status); }; } &&
32690          { ac_try='test -s conftest$ac_exeext'
32691   { (case "(($ac_try" in
32692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32693   *) ac_try_echo=$ac_try;;
32694 esac
32695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32696   (eval "$ac_try") 2>&5
32697   ac_status=$?
32698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699   (exit $ac_status); }; }; then
32700   ac_cv_lib_z_deflate=yes
32701 else
32702   echo "$as_me: failed program was:" >&5
32703 sed 's/^/| /' conftest.$ac_ext >&5
32704
32705         ac_cv_lib_z_deflate=no
32706 fi
32707
32708 rm -f core conftest.err conftest.$ac_objext \
32709       conftest$ac_exeext conftest.$ac_ext
32710 LIBS=$ac_check_lib_save_LIBS
32711 fi
32712 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
32713 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
32714 if test $ac_cv_lib_z_deflate = yes; then
32715   FDLIBS="-lz"
32716 fi
32717
32718 have_zlib=no
32719 if test x$FDLIBS = x-lz; then
32720   cat >>confdefs.h <<\_ACEOF
32721 #define HAVE_LIBZ 1
32722 _ACEOF
32723
32724   have_zlib=yes
32725 fi
32726
32727 #
32728 # Check for ACL libraries
32729 #
32730 have_acl=no
32731 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32732   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32733 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32734 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32735   echo $ECHO_N "(cached) $ECHO_C" >&6
32736 fi
32737 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32738 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32739 else
32740   # Is the header compilable?
32741 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
32742 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
32743 cat >conftest.$ac_ext <<_ACEOF
32744 /* confdefs.h.  */
32745 _ACEOF
32746 cat confdefs.h >>conftest.$ac_ext
32747 cat >>conftest.$ac_ext <<_ACEOF
32748 /* end confdefs.h.  */
32749 $ac_includes_default
32750 #include <sys/acl.h>
32751 _ACEOF
32752 rm -f conftest.$ac_objext
32753 if { (ac_try="$ac_compile"
32754 case "(($ac_try" in
32755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32756   *) ac_try_echo=$ac_try;;
32757 esac
32758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32759   (eval "$ac_compile") 2>conftest.er1
32760   ac_status=$?
32761   grep -v '^ *+' conftest.er1 >conftest.err
32762   rm -f conftest.er1
32763   cat conftest.err >&5
32764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765   (exit $ac_status); } &&
32766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32767   { (case "(($ac_try" in
32768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32769   *) ac_try_echo=$ac_try;;
32770 esac
32771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32772   (eval "$ac_try") 2>&5
32773   ac_status=$?
32774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32775   (exit $ac_status); }; } &&
32776          { ac_try='test -s conftest.$ac_objext'
32777   { (case "(($ac_try" in
32778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32779   *) ac_try_echo=$ac_try;;
32780 esac
32781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32782   (eval "$ac_try") 2>&5
32783   ac_status=$?
32784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32785   (exit $ac_status); }; }; then
32786   ac_header_compiler=yes
32787 else
32788   echo "$as_me: failed program was:" >&5
32789 sed 's/^/| /' conftest.$ac_ext >&5
32790
32791         ac_header_compiler=no
32792 fi
32793
32794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32796 echo "${ECHO_T}$ac_header_compiler" >&6; }
32797
32798 # Is the header present?
32799 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
32800 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
32801 cat >conftest.$ac_ext <<_ACEOF
32802 /* confdefs.h.  */
32803 _ACEOF
32804 cat confdefs.h >>conftest.$ac_ext
32805 cat >>conftest.$ac_ext <<_ACEOF
32806 /* end confdefs.h.  */
32807 #include <sys/acl.h>
32808 _ACEOF
32809 if { (ac_try="$ac_cpp conftest.$ac_ext"
32810 case "(($ac_try" in
32811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812   *) ac_try_echo=$ac_try;;
32813 esac
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32816   ac_status=$?
32817   grep -v '^ *+' conftest.er1 >conftest.err
32818   rm -f conftest.er1
32819   cat conftest.err >&5
32820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821   (exit $ac_status); } >/dev/null; then
32822   if test -s conftest.err; then
32823     ac_cpp_err=$ac_c_preproc_warn_flag
32824     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32825   else
32826     ac_cpp_err=
32827   fi
32828 else
32829   ac_cpp_err=yes
32830 fi
32831 if test -z "$ac_cpp_err"; then
32832   ac_header_preproc=yes
32833 else
32834   echo "$as_me: failed program was:" >&5
32835 sed 's/^/| /' conftest.$ac_ext >&5
32836
32837   ac_header_preproc=no
32838 fi
32839
32840 rm -f conftest.err conftest.$ac_ext
32841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32842 echo "${ECHO_T}$ac_header_preproc" >&6; }
32843
32844 # So?  What about this header?
32845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32846   yes:no: )
32847     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
32848 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32849     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
32850 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
32851     ac_header_preproc=yes
32852     ;;
32853   no:yes:* )
32854     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
32855 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
32856     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
32857 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
32858     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
32859 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
32860     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
32861 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
32862     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
32863 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
32864     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
32865 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
32866
32867     ;;
32868 esac
32869 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
32870 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
32871 if test "${ac_cv_header_sys_acl_h+set}" = set; then
32872   echo $ECHO_N "(cached) $ECHO_C" >&6
32873 else
32874   ac_cv_header_sys_acl_h=$ac_header_preproc
32875 fi
32876 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
32877 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
32878
32879 fi
32880
32881
32882 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
32883 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
32884 if test "${ac_cv_func_acl_get_file+set}" = set; then
32885   echo $ECHO_N "(cached) $ECHO_C" >&6
32886 else
32887   cat >conftest.$ac_ext <<_ACEOF
32888 /* confdefs.h.  */
32889 _ACEOF
32890 cat confdefs.h >>conftest.$ac_ext
32891 cat >>conftest.$ac_ext <<_ACEOF
32892 /* end confdefs.h.  */
32893 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
32894    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32895 #define acl_get_file innocuous_acl_get_file
32896
32897 /* System header to define __stub macros and hopefully few prototypes,
32898     which can conflict with char acl_get_file (); below.
32899     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32900     <limits.h> exists even on freestanding compilers.  */
32901
32902 #ifdef __STDC__
32903 # include <limits.h>
32904 #else
32905 # include <assert.h>
32906 #endif
32907
32908 #undef acl_get_file
32909
32910 /* Override any GCC internal prototype to avoid an error.
32911    Use char because int might match the return type of a GCC
32912    builtin and then its argument prototype would still apply.  */
32913 #ifdef __cplusplus
32914 extern "C"
32915 #endif
32916 char acl_get_file ();
32917 /* The GNU C library defines this for functions which it implements
32918     to always fail with ENOSYS.  Some functions are actually named
32919     something starting with __ and the normal name is an alias.  */
32920 #if defined __stub_acl_get_file || defined __stub___acl_get_file
32921 choke me
32922 #endif
32923
32924 int
32925 main ()
32926 {
32927 return acl_get_file ();
32928   ;
32929   return 0;
32930 }
32931 _ACEOF
32932 rm -f conftest.$ac_objext conftest$ac_exeext
32933 if { (ac_try="$ac_link"
32934 case "(($ac_try" in
32935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32936   *) ac_try_echo=$ac_try;;
32937 esac
32938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32939   (eval "$ac_link") 2>conftest.er1
32940   ac_status=$?
32941   grep -v '^ *+' conftest.er1 >conftest.err
32942   rm -f conftest.er1
32943   cat conftest.err >&5
32944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945   (exit $ac_status); } &&
32946          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32947   { (case "(($ac_try" in
32948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949   *) ac_try_echo=$ac_try;;
32950 esac
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952   (eval "$ac_try") 2>&5
32953   ac_status=$?
32954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32955   (exit $ac_status); }; } &&
32956          { ac_try='test -s conftest$ac_exeext'
32957   { (case "(($ac_try" in
32958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32959   *) ac_try_echo=$ac_try;;
32960 esac
32961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32962   (eval "$ac_try") 2>&5
32963   ac_status=$?
32964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32965   (exit $ac_status); }; }; then
32966   ac_cv_func_acl_get_file=yes
32967 else
32968   echo "$as_me: failed program was:" >&5
32969 sed 's/^/| /' conftest.$ac_ext >&5
32970
32971         ac_cv_func_acl_get_file=no
32972 fi
32973
32974 rm -f core conftest.err conftest.$ac_objext \
32975       conftest$ac_exeext conftest.$ac_ext
32976 fi
32977 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
32978 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
32979 if test $ac_cv_func_acl_get_file = yes; then
32980   have_acl=yes
32981 else
32982   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
32983 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
32984 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
32985   echo $ECHO_N "(cached) $ECHO_C" >&6
32986 else
32987   ac_check_lib_save_LIBS=$LIBS
32988 LIBS="-lacl  $LIBS"
32989 cat >conftest.$ac_ext <<_ACEOF
32990 /* confdefs.h.  */
32991 _ACEOF
32992 cat confdefs.h >>conftest.$ac_ext
32993 cat >>conftest.$ac_ext <<_ACEOF
32994 /* end confdefs.h.  */
32995
32996 /* Override any GCC internal prototype to avoid an error.
32997    Use char because int might match the return type of a GCC
32998    builtin and then its argument prototype would still apply.  */
32999 #ifdef __cplusplus
33000 extern "C"
33001 #endif
33002 char acl_get_file ();
33003 int
33004 main ()
33005 {
33006 return acl_get_file ();
33007   ;
33008   return 0;
33009 }
33010 _ACEOF
33011 rm -f conftest.$ac_objext conftest$ac_exeext
33012 if { (ac_try="$ac_link"
33013 case "(($ac_try" in
33014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015   *) ac_try_echo=$ac_try;;
33016 esac
33017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33018   (eval "$ac_link") 2>conftest.er1
33019   ac_status=$?
33020   grep -v '^ *+' conftest.er1 >conftest.err
33021   rm -f conftest.er1
33022   cat conftest.err >&5
33023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33024   (exit $ac_status); } &&
33025          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33026   { (case "(($ac_try" in
33027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33028   *) ac_try_echo=$ac_try;;
33029 esac
33030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33031   (eval "$ac_try") 2>&5
33032   ac_status=$?
33033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33034   (exit $ac_status); }; } &&
33035          { ac_try='test -s conftest$ac_exeext'
33036   { (case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_try") 2>&5
33042   ac_status=$?
33043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33044   (exit $ac_status); }; }; then
33045   ac_cv_lib_acl_acl_get_file=yes
33046 else
33047   echo "$as_me: failed program was:" >&5
33048 sed 's/^/| /' conftest.$ac_ext >&5
33049
33050         ac_cv_lib_acl_acl_get_file=no
33051 fi
33052
33053 rm -f core conftest.err conftest.$ac_objext \
33054       conftest$ac_exeext conftest.$ac_ext
33055 LIBS=$ac_check_lib_save_LIBS
33056 fi
33057 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33058 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33059 if test $ac_cv_lib_acl_acl_get_file = yes; then
33060   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33061 else
33062   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33063 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33064 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33065   echo $ECHO_N "(cached) $ECHO_C" >&6
33066 else
33067   ac_check_lib_save_LIBS=$LIBS
33068 LIBS="-lsec  $LIBS"
33069 cat >conftest.$ac_ext <<_ACEOF
33070 /* confdefs.h.  */
33071 _ACEOF
33072 cat confdefs.h >>conftest.$ac_ext
33073 cat >>conftest.$ac_ext <<_ACEOF
33074 /* end confdefs.h.  */
33075
33076 /* Override any GCC internal prototype to avoid an error.
33077    Use char because int might match the return type of a GCC
33078    builtin and then its argument prototype would still apply.  */
33079 #ifdef __cplusplus
33080 extern "C"
33081 #endif
33082 char acltotext ();
33083 int
33084 main ()
33085 {
33086 return acltotext ();
33087   ;
33088   return 0;
33089 }
33090 _ACEOF
33091 rm -f conftest.$ac_objext conftest$ac_exeext
33092 if { (ac_try="$ac_link"
33093 case "(($ac_try" in
33094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33095   *) ac_try_echo=$ac_try;;
33096 esac
33097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33098   (eval "$ac_link") 2>conftest.er1
33099   ac_status=$?
33100   grep -v '^ *+' conftest.er1 >conftest.err
33101   rm -f conftest.er1
33102   cat conftest.err >&5
33103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33104   (exit $ac_status); } &&
33105          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33106   { (case "(($ac_try" in
33107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33108   *) ac_try_echo=$ac_try;;
33109 esac
33110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33111   (eval "$ac_try") 2>&5
33112   ac_status=$?
33113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33114   (exit $ac_status); }; } &&
33115          { ac_try='test -s conftest$ac_exeext'
33116   { (case "(($ac_try" in
33117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33118   *) ac_try_echo=$ac_try;;
33119 esac
33120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33121   (eval "$ac_try") 2>&5
33122   ac_status=$?
33123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33124   (exit $ac_status); }; }; then
33125   ac_cv_lib_sec_acltotext=yes
33126 else
33127   echo "$as_me: failed program was:" >&5
33128 sed 's/^/| /' conftest.$ac_ext >&5
33129
33130         ac_cv_lib_sec_acltotext=no
33131 fi
33132
33133 rm -f core conftest.err conftest.$ac_objext \
33134       conftest$ac_exeext conftest.$ac_ext
33135 LIBS=$ac_check_lib_save_LIBS
33136 fi
33137 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33138 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33139 if test $ac_cv_lib_sec_acltotext = yes; then
33140   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33141 fi
33142
33143
33144 fi
33145
33146
33147 fi
33148
33149 if test $have_acl = yes; then
33150    cat >>confdefs.h <<\_ACEOF
33151 #define HAVE_ACL 1
33152 _ACEOF
33153
33154 fi
33155
33156 PTHREAD_LIB=""
33157 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33158 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33159 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33160   echo $ECHO_N "(cached) $ECHO_C" >&6
33161 else
33162   ac_check_lib_save_LIBS=$LIBS
33163 LIBS="-lpthread  $LIBS"
33164 cat >conftest.$ac_ext <<_ACEOF
33165 /* confdefs.h.  */
33166 _ACEOF
33167 cat confdefs.h >>conftest.$ac_ext
33168 cat >>conftest.$ac_ext <<_ACEOF
33169 /* end confdefs.h.  */
33170
33171 /* Override any GCC internal prototype to avoid an error.
33172    Use char because int might match the return type of a GCC
33173    builtin and then its argument prototype would still apply.  */
33174 #ifdef __cplusplus
33175 extern "C"
33176 #endif
33177 char pthread_create ();
33178 int
33179 main ()
33180 {
33181 return pthread_create ();
33182   ;
33183   return 0;
33184 }
33185 _ACEOF
33186 rm -f conftest.$ac_objext conftest$ac_exeext
33187 if { (ac_try="$ac_link"
33188 case "(($ac_try" in
33189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33190   *) ac_try_echo=$ac_try;;
33191 esac
33192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33193   (eval "$ac_link") 2>conftest.er1
33194   ac_status=$?
33195   grep -v '^ *+' conftest.er1 >conftest.err
33196   rm -f conftest.er1
33197   cat conftest.err >&5
33198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33199   (exit $ac_status); } &&
33200          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33201   { (case "(($ac_try" in
33202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33203   *) ac_try_echo=$ac_try;;
33204 esac
33205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33206   (eval "$ac_try") 2>&5
33207   ac_status=$?
33208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33209   (exit $ac_status); }; } &&
33210          { ac_try='test -s conftest$ac_exeext'
33211   { (case "(($ac_try" in
33212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33213   *) ac_try_echo=$ac_try;;
33214 esac
33215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33216   (eval "$ac_try") 2>&5
33217   ac_status=$?
33218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33219   (exit $ac_status); }; }; then
33220   ac_cv_lib_pthread_pthread_create=yes
33221 else
33222   echo "$as_me: failed program was:" >&5
33223 sed 's/^/| /' conftest.$ac_ext >&5
33224
33225         ac_cv_lib_pthread_pthread_create=no
33226 fi
33227
33228 rm -f core conftest.err conftest.$ac_objext \
33229       conftest$ac_exeext conftest.$ac_ext
33230 LIBS=$ac_check_lib_save_LIBS
33231 fi
33232 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33233 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33234 if test $ac_cv_lib_pthread_pthread_create = yes; then
33235   PTHREAD_LIB="-lpthread"
33236 else
33237   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33238 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33239 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33240   echo $ECHO_N "(cached) $ECHO_C" >&6
33241 else
33242   ac_check_lib_save_LIBS=$LIBS
33243 LIBS="-lpthreads  $LIBS"
33244 cat >conftest.$ac_ext <<_ACEOF
33245 /* confdefs.h.  */
33246 _ACEOF
33247 cat confdefs.h >>conftest.$ac_ext
33248 cat >>conftest.$ac_ext <<_ACEOF
33249 /* end confdefs.h.  */
33250
33251 /* Override any GCC internal prototype to avoid an error.
33252    Use char because int might match the return type of a GCC
33253    builtin and then its argument prototype would still apply.  */
33254 #ifdef __cplusplus
33255 extern "C"
33256 #endif
33257 char pthread_create ();
33258 int
33259 main ()
33260 {
33261 return pthread_create ();
33262   ;
33263   return 0;
33264 }
33265 _ACEOF
33266 rm -f conftest.$ac_objext conftest$ac_exeext
33267 if { (ac_try="$ac_link"
33268 case "(($ac_try" in
33269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33270   *) ac_try_echo=$ac_try;;
33271 esac
33272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33273   (eval "$ac_link") 2>conftest.er1
33274   ac_status=$?
33275   grep -v '^ *+' conftest.er1 >conftest.err
33276   rm -f conftest.er1
33277   cat conftest.err >&5
33278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33279   (exit $ac_status); } &&
33280          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33281   { (case "(($ac_try" in
33282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283   *) ac_try_echo=$ac_try;;
33284 esac
33285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33286   (eval "$ac_try") 2>&5
33287   ac_status=$?
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); }; } &&
33290          { ac_try='test -s conftest$ac_exeext'
33291   { (case "(($ac_try" in
33292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293   *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296   (eval "$ac_try") 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; }; then
33300   ac_cv_lib_pthreads_pthread_create=yes
33301 else
33302   echo "$as_me: failed program was:" >&5
33303 sed 's/^/| /' conftest.$ac_ext >&5
33304
33305         ac_cv_lib_pthreads_pthread_create=no
33306 fi
33307
33308 rm -f core conftest.err conftest.$ac_objext \
33309       conftest$ac_exeext conftest.$ac_ext
33310 LIBS=$ac_check_lib_save_LIBS
33311 fi
33312 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33313 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33314 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33315   PTHREAD_LIB="-lpthreads"
33316 else
33317   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33318 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33319 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33320   echo $ECHO_N "(cached) $ECHO_C" >&6
33321 else
33322   ac_check_lib_save_LIBS=$LIBS
33323 LIBS="-lc_r  $LIBS"
33324 cat >conftest.$ac_ext <<_ACEOF
33325 /* confdefs.h.  */
33326 _ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h.  */
33330
33331 /* Override any GCC internal prototype to avoid an error.
33332    Use char because int might match the return type of a GCC
33333    builtin and then its argument prototype would still apply.  */
33334 #ifdef __cplusplus
33335 extern "C"
33336 #endif
33337 char pthread_create ();
33338 int
33339 main ()
33340 {
33341 return pthread_create ();
33342   ;
33343   return 0;
33344 }
33345 _ACEOF
33346 rm -f conftest.$ac_objext conftest$ac_exeext
33347 if { (ac_try="$ac_link"
33348 case "(($ac_try" in
33349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33350   *) ac_try_echo=$ac_try;;
33351 esac
33352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33353   (eval "$ac_link") 2>conftest.er1
33354   ac_status=$?
33355   grep -v '^ *+' conftest.er1 >conftest.err
33356   rm -f conftest.er1
33357   cat conftest.err >&5
33358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359   (exit $ac_status); } &&
33360          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33361   { (case "(($ac_try" in
33362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33363   *) ac_try_echo=$ac_try;;
33364 esac
33365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33366   (eval "$ac_try") 2>&5
33367   ac_status=$?
33368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33369   (exit $ac_status); }; } &&
33370          { ac_try='test -s conftest$ac_exeext'
33371   { (case "(($ac_try" in
33372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33373   *) ac_try_echo=$ac_try;;
33374 esac
33375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33376   (eval "$ac_try") 2>&5
33377   ac_status=$?
33378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379   (exit $ac_status); }; }; then
33380   ac_cv_lib_c_r_pthread_create=yes
33381 else
33382   echo "$as_me: failed program was:" >&5
33383 sed 's/^/| /' conftest.$ac_ext >&5
33384
33385         ac_cv_lib_c_r_pthread_create=no
33386 fi
33387
33388 rm -f core conftest.err conftest.$ac_objext \
33389       conftest$ac_exeext conftest.$ac_ext
33390 LIBS=$ac_check_lib_save_LIBS
33391 fi
33392 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33393 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33394 if test $ac_cv_lib_c_r_pthread_create = yes; then
33395   PTHREAD_LIB="-lc_r"
33396 else
33397   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33398 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33399 if test "${ac_cv_func_pthread_create+set}" = set; then
33400   echo $ECHO_N "(cached) $ECHO_C" >&6
33401 else
33402   cat >conftest.$ac_ext <<_ACEOF
33403 /* confdefs.h.  */
33404 _ACEOF
33405 cat confdefs.h >>conftest.$ac_ext
33406 cat >>conftest.$ac_ext <<_ACEOF
33407 /* end confdefs.h.  */
33408 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33409    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33410 #define pthread_create innocuous_pthread_create
33411
33412 /* System header to define __stub macros and hopefully few prototypes,
33413     which can conflict with char pthread_create (); below.
33414     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33415     <limits.h> exists even on freestanding compilers.  */
33416
33417 #ifdef __STDC__
33418 # include <limits.h>
33419 #else
33420 # include <assert.h>
33421 #endif
33422
33423 #undef pthread_create
33424
33425 /* Override any GCC internal prototype to avoid an error.
33426    Use char because int might match the return type of a GCC
33427    builtin and then its argument prototype would still apply.  */
33428 #ifdef __cplusplus
33429 extern "C"
33430 #endif
33431 char pthread_create ();
33432 /* The GNU C library defines this for functions which it implements
33433     to always fail with ENOSYS.  Some functions are actually named
33434     something starting with __ and the normal name is an alias.  */
33435 #if defined __stub_pthread_create || defined __stub___pthread_create
33436 choke me
33437 #endif
33438
33439 int
33440 main ()
33441 {
33442 return pthread_create ();
33443   ;
33444   return 0;
33445 }
33446 _ACEOF
33447 rm -f conftest.$ac_objext conftest$ac_exeext
33448 if { (ac_try="$ac_link"
33449 case "(($ac_try" in
33450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33451   *) ac_try_echo=$ac_try;;
33452 esac
33453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33454   (eval "$ac_link") 2>conftest.er1
33455   ac_status=$?
33456   grep -v '^ *+' conftest.er1 >conftest.err
33457   rm -f conftest.er1
33458   cat conftest.err >&5
33459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33460   (exit $ac_status); } &&
33461          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33462   { (case "(($ac_try" in
33463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464   *) ac_try_echo=$ac_try;;
33465 esac
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467   (eval "$ac_try") 2>&5
33468   ac_status=$?
33469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); }; } &&
33471          { ac_try='test -s conftest$ac_exeext'
33472   { (case "(($ac_try" in
33473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33474   *) ac_try_echo=$ac_try;;
33475 esac
33476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33477   (eval "$ac_try") 2>&5
33478   ac_status=$?
33479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); }; }; then
33481   ac_cv_func_pthread_create=yes
33482 else
33483   echo "$as_me: failed program was:" >&5
33484 sed 's/^/| /' conftest.$ac_ext >&5
33485
33486         ac_cv_func_pthread_create=no
33487 fi
33488
33489 rm -f core conftest.err conftest.$ac_objext \
33490       conftest$ac_exeext conftest.$ac_ext
33491 fi
33492 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33493 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33494
33495
33496 fi
33497
33498
33499 fi
33500
33501
33502 fi
33503
33504
33505
33506 cat >>confdefs.h <<\_ACEOF
33507 #define FDLIBS 1
33508 _ACEOF
33509
33510
33511
33512 CFLAGS=${CFLAGS--O}
33513
33514 if test x$have_gcc = xyes ; then
33515    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33516    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33517 fi
33518 LDFLAGS=${LDFLAGS--O}
33519 DB_LIBS="${SQL_LFLAGS}"
33520 CPPFLAGS="$CPPFLAGS"
33521 CFLAGS="$CFLAGS"
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534
33535
33536
33537
33538 OBJLIST=
33539
33540
33541 lld="lld"
33542 llu="llu"
33543
33544 WCFLAGS=
33545 WLDFLAGS=
33546
33547 #
33548 # Finally we set appropriate distribution specific
33549 #  variables and defaults
33550 #
33551 # PFILES are platform specific files
33552 PFILES="platforms/Makefile"
33553 PSCMD="ps -e"
33554 WIN32=
33555 MACOSX=
33556 hostname=`uname -n | cut -d '.' -f 1`
33557 if test x${hostname} = x ; then
33558   hostname="localhost"
33559 fi
33560 case "$DISTNAME" in
33561 aix)
33562         DISTVER=`uname -r`
33563         PSCMD="ps -e -o pid,comm"
33564         PFILES="${PFILES} \
33565            platforms/aix/Makefile"
33566         TAPEDRIVE="/dev/rmt0.1"
33567   ;;
33568 alpha)
33569         DISTVER=`uname -r`
33570         PTHREAD_LIB="-lpthread -lexc"
33571         if test "${CC}" = "gcc" ; then
33572            lld="lld"
33573            llu="llu"
33574         else
33575            lld="ld"
33576            llu="lu"
33577         fi
33578         TAPEDRIVE="/dev/nrmt0"
33579   ;;
33580 bsdi)
33581         DISTVER=`uname -a |awk '{print $3}'`
33582         TAPEDRIVE="/dev/nrmt0"
33583         PTHREAD_LIB="-pthread"
33584         CFLAGS="${CFLAGS} -pthread"
33585         PSCMD="ps -ax -o pid,command"
33586         lld="qd"
33587         llu="qu"
33588         PFILES="${PFILES} \
33589             platforms/bsdi/Makefile \
33590             platforms/bsdi/bacula-fd \
33591             platforms/bsdi/bacula-sd \
33592             platforms/bsdi/bacula-dir"
33593         largefile_support="yes"
33594   ;;
33595 cygwin)
33596         DISTVER=`uname -a |awk '{print $3}'`
33597         TAPEDRIVE="/dev/nrst0"
33598         WIN32=win32
33599         WCFLAGS="-mwindows"
33600         WLDFLAGS="-mwindows"
33601   ;;
33602 darwin)
33603         DISTVER=`uname -r`
33604         TAPEDRIVE="/dev/nst0"
33605         PSCMD="ps -e -o pid,command"
33606         MACOSX=macosx
33607         PFILES="${PFILES} \
33608            platforms/darwin/Makefile"
33609   ;;
33610 debian)
33611         DISTVER=`cat /etc/debian_version`
33612         TAPEDRIVE="/dev/nrst0"
33613         PSCMD="ps -e -o pid,command"
33614   ;;
33615 freebsd)
33616         DISTVER=`uname -a |awk '{print $3}'`
33617         VER=`echo $DISTVER | cut -c 1`
33618         if test x$VER = x4 ; then
33619            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33620            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33621         fi
33622         lld="qd"
33623         llu="qu"
33624         TAPEDRIVE="/dev/nrsa0"
33625         PSCMD="ps -ax -o pid,command"
33626         PFILES="${PFILES} \
33627             platforms/freebsd/Makefile \
33628             platforms/freebsd/bacula-fd \
33629             platforms/freebsd/bacula-sd \
33630             platforms/freebsd/bacula-dir"
33631         largefile_support="yes"
33632   ;;
33633 hpux)
33634         PSCMD="UNIX95=1 ps -e -o pid,comm"
33635         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33636         DISTVER=`uname -r`
33637         TAPEDRIVE="/dev/rmt/0hnb"
33638         PTHREAD_LIB="-lpthread"
33639         cat >>confdefs.h <<\_ACEOF
33640 #define _INCLUDE_LONGLONG 1
33641 _ACEOF
33642
33643   ;;
33644 irix)
33645         DISTVER=`uname -r`
33646         TAPEDRIVE="/dev/rmt/0cbn"
33647         PSCMD="ps -e -o pid,comm"
33648         PFILES="${PFILES} \
33649             platforms/irix/Makefile \
33650             platforms/irix/bacula-fd \
33651             platforms/irix/bacula-sd \
33652             platforms/irix/bacula-dir"
33653   ;;
33654 netbsd)
33655         DISTVER=`uname -a |awk '{print $3}'`
33656         lld="qd"
33657         llu="qu"
33658         TAPEDRIVE="/dev/nrst0"
33659         PSCMD="ps -ax -o pid,command"
33660         PTHREAD_LIB="-pthread"
33661         CFLAGS="${CFLAGS} -pthread"
33662   ;;
33663 openbsd)
33664         DISTVER=`uname -a |awk '{print $3}'`
33665         lld="qd"
33666         llu="qu"
33667         TAPEDRIVE="/dev/nrst0"
33668         PSCMD="ps -ax -o pid,command"
33669         PTHREAD_LIB="-pthread"
33670         CFLAGS="${CFLAGS} -pthread"
33671         PFILES="${PFILES} \
33672             platforms/openbsd/Makefile \
33673             platforms/openbsd/bacula-fd \
33674             platforms/openbsd/bacula-sd \
33675             platforms/openbsd/bacula-dir"
33676   ;;
33677 redhat)
33678         if test -f /etc/whitebox-release ; then
33679            f=/etc/whitebox-release
33680         else
33681            f=/etc/redhat-release
33682         fi
33683         if test `cat $f | grep release |\
33684                    cut -f 3 -d ' '`x = "Enterprise"x ; then
33685            DISTVER="Enterprise "`cat $f | grep release |\
33686                     cut -f 6 -d ' '`
33687         else
33688             DISTVER=`cat /etc/redhat-release | grep release |\
33689                      cut -f 5 -d ' '`
33690         fi
33691         TAPEDRIVE="/dev/nst0"
33692         PSCMD="ps -e -o pid,command"
33693         PFILES="${PFILES} \
33694             platforms/redhat/Makefile \
33695             platforms/redhat/bacula-fd \
33696             platforms/redhat/bacula-sd \
33697             platforms/redhat/bacula-dir \
33698             platforms/redhat/bacula.spec \
33699             "
33700   ;;
33701 mandrake)
33702         DISTVER=`cat /etc/mandrake-release | grep release |\
33703            cut -f 5 -d ' '`
33704         TAPEDRIVE="/dev/nst0"
33705         PSCMD="ps -e -o pid,command"
33706         PFILES="${PFILES} \
33707             platforms/mandrake/Makefile \
33708             platforms/mandrake/bacula-fd \
33709             platforms/mandrake/bacula-sd \
33710             platforms/mandrake/bacula-dir \
33711             platforms/mandrake/bacula.spec \
33712             "
33713   ;;
33714 gentoo)
33715         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
33716         TAPEDRIVE="/dev/nst0"
33717         PSCMD="ps -e -o pid,command"
33718         PFILES="${PFILES} \
33719             platforms/gentoo/Makefile \
33720          platforms/gentoo/bacula-init \
33721             platforms/gentoo/bacula-fd \
33722             platforms/gentoo/bacula-sd \
33723             platforms/gentoo/bacula-dir"
33724   ;;
33725 slackware)
33726         DISTVER=`cat /etc/slackware-version`
33727         TAPEDRIVE="/dev/nst0"
33728         PSCMD="ps -e -o pid,command"
33729         PFILES="${PFILES} \
33730             platforms/slackware/Makefile \
33731             platforms/slackware/rc.bacula-fd \
33732             platforms/slackware/rc.bacula-sd \
33733             platforms/slackware/rc.bacula-dir\
33734             platforms/slackware/functions.bacula"
33735   ;;
33736 solaris)
33737         DISTVER=`uname -r`
33738         TAPEDRIVE="/dev/rmt/0cbn"
33739         PSCMD="ps -e -o pid,comm"
33740         PFILES="${PFILES} \
33741             platforms/solaris/Makefile \
33742             platforms/solaris/bacula-fd \
33743             platforms/solaris/bacula-sd \
33744             platforms/solaris/bacula-dir"
33745         if test x$DISTVER = x5.6 ; then
33746             cat >>confdefs.h <<\_ACEOF
33747 #define HAVE_OLD_SOCKOPT 1
33748 _ACEOF
33749
33750         fi
33751         LIBS="$LIBS -lresolv"
33752   ;;
33753 suse)
33754         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
33755             cut -f 3 -d ' '`
33756         TAPEDRIVE="/dev/nst0"
33757         PSCMD="ps -e -o pid,command"
33758         PFILES="${PFILES} \
33759             platforms/suse/Makefile \
33760             platforms/suse/bacula-fd \
33761             platforms/suse/bacula-sd \
33762             platforms/suse/bacula-dir \
33763             platforms/suse/bacula \
33764             platforms/suse/bacula.spec"
33765   ;;
33766 suse5)
33767         DISTNAME=suse
33768         DISTVER=5.x
33769         TAPEDRIVE="/dev/nst0"
33770         PSCMD="ps -e -o pid,command"
33771         PFILES="${PFILES} \
33772             platforms/suse/Makefile \
33773             platforms/suse/bacula-fd \
33774             platforms/suse/bacula-sd \
33775             platforms/suse/bacula-dir"
33776   ;;
33777 unknown)
33778         DISTVER=unknown
33779         TAPEDRIVE="/dev/nst0"
33780   ;;
33781 *)
33782   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
33783   ;;
33784 esac
33785
33786
33787
33788 LIBS="$PTHREAD_LIB $LIBS"
33789
33790 cat >>confdefs.h <<_ACEOF
33791 #define lld "$lld"
33792 _ACEOF
33793
33794 cat >>confdefs.h <<_ACEOF
33795 #define llu "$llu"
33796 _ACEOF
33797
33798
33799
33800
33801
33802
33803
33804
33805 MCOMMON=./autoconf/Make.common
33806
33807
33808 if test "x${subsysdir}" = "x${sbindir}" ; then
33809    echo " "
33810    echo " "
33811    echo "You have set both --sbindir and --with-subsys-dir"
33812    echo "  equal to: ${subsysdir} "
33813    echo "This is not permitted. Please reconfigure."
33814    echo " "
33815    echo "Aborting configuration ..."
33816    echo " "
33817    echo " "
33818    exit 1
33819 fi
33820
33821 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
33822
33823 ac_config_commands="$ac_config_commands default"
33824
33825 cat >confcache <<\_ACEOF
33826 # This file is a shell script that caches the results of configure
33827 # tests run on this system so they can be shared between configure
33828 # scripts and configure runs, see configure's option --config-cache.
33829 # It is not useful on other systems.  If it contains results you don't
33830 # want to keep, you may remove or edit it.
33831 #
33832 # config.status only pays attention to the cache file if you give it
33833 # the --recheck option to rerun configure.
33834 #
33835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33837 # following values.
33838
33839 _ACEOF
33840
33841 # The following way of writing the cache mishandles newlines in values,
33842 # but we know of no workaround that is simple, portable, and efficient.
33843 # So, we kill variables containing newlines.
33844 # Ultrix sh set writes to stderr and can't be redirected directly,
33845 # and sets the high bit in the cache file unless we assign to the vars.
33846 (
33847   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33848     eval ac_val=\$$ac_var
33849     case $ac_val in #(
33850     *${as_nl}*)
33851       case $ac_var in #(
33852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33854       esac
33855       case $ac_var in #(
33856       _ | IFS | as_nl) ;; #(
33857       *) $as_unset $ac_var ;;
33858       esac ;;
33859     esac
33860   done
33861
33862   (set) 2>&1 |
33863     case $as_nl`(ac_space=' '; set) 2>&1` in #(
33864     *${as_nl}ac_space=\ *)
33865       # `set' does not quote correctly, so add quotes (double-quote
33866       # substitution turns \\\\ into \\, and sed turns \\ into \).
33867       sed -n \
33868         "s/'/'\\\\''/g;
33869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33870       ;; #(
33871     *)
33872       # `set' quotes correctly as required by POSIX, so do not add quotes.
33873       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33874       ;;
33875     esac |
33876     sort
33877 ) |
33878   sed '
33879      /^ac_cv_env_/b end
33880      t clear
33881      :clear
33882      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33883      t end
33884      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33885      :end' >>confcache
33886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33887   if test -w "$cache_file"; then
33888     test "x$cache_file" != "x/dev/null" &&
33889       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
33890 echo "$as_me: updating cache $cache_file" >&6;}
33891     cat confcache >$cache_file
33892   else
33893     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33894 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33895   fi
33896 fi
33897 rm -f confcache
33898
33899 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33900 # Let make expand exec_prefix.
33901 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33902
33903 DEFS=-DHAVE_CONFIG_H
33904
33905 ac_libobjs=
33906 ac_ltlibobjs=
33907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33908   # 1. Remove the extension, and $U if already installed.
33909   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33910   ac_i=`echo "$ac_i" | sed "$ac_script"`
33911   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
33912   #    will be set to the directory where LIBOBJS objects are built.
33913   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33914   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33915 done
33916 LIBOBJS=$ac_libobjs
33917
33918 LTLIBOBJS=$ac_ltlibobjs
33919
33920
33921
33922 : ${CONFIG_STATUS=./config.status}
33923 ac_clean_files_save=$ac_clean_files
33924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33925 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33926 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33927 cat >$CONFIG_STATUS <<_ACEOF
33928 #! $SHELL
33929 # Generated by $as_me.
33930 # Run this file to recreate the current configuration.
33931 # Compiler output produced by configure, useful for debugging
33932 # configure, is in config.log if it exists.
33933
33934 debug=false
33935 ac_cs_recheck=false
33936 ac_cs_silent=false
33937 SHELL=\${CONFIG_SHELL-$SHELL}
33938 _ACEOF
33939
33940 cat >>$CONFIG_STATUS <<\_ACEOF
33941 ## --------------------- ##
33942 ## M4sh Initialization.  ##
33943 ## --------------------- ##
33944
33945 # Be Bourne compatible
33946 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33947   emulate sh
33948   NULLCMD=:
33949   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33950   # is contrary to our usage.  Disable this feature.
33951   alias -g '${1+"$@"}'='"$@"'
33952   setopt NO_GLOB_SUBST
33953 else
33954   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
33955 fi
33956 BIN_SH=xpg4; export BIN_SH # for Tru64
33957 DUALCASE=1; export DUALCASE # for MKS sh
33958
33959
33960 # PATH needs CR
33961 # Avoid depending upon Character Ranges.
33962 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33963 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33964 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33965 as_cr_digits='0123456789'
33966 as_cr_alnum=$as_cr_Letters$as_cr_digits
33967
33968 # The user is always right.
33969 if test "${PATH_SEPARATOR+set}" != set; then
33970   echo "#! /bin/sh" >conf$$.sh
33971   echo  "exit 0"   >>conf$$.sh
33972   chmod +x conf$$.sh
33973   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33974     PATH_SEPARATOR=';'
33975   else
33976     PATH_SEPARATOR=:
33977   fi
33978   rm -f conf$$.sh
33979 fi
33980
33981 # Support unset when possible.
33982 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33983   as_unset=unset
33984 else
33985   as_unset=false
33986 fi
33987
33988
33989 # IFS
33990 # We need space, tab and new line, in precisely that order.  Quoting is
33991 # there to prevent editors from complaining about space-tab.
33992 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33993 # splitting by setting IFS to empty value.)
33994 as_nl='
33995 '
33996 IFS=" ""        $as_nl"
33997
33998 # Find who we are.  Look in the path if we contain no directory separator.
33999 case $0 in
34000   *[\\/]* ) as_myself=$0 ;;
34001   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34002 for as_dir in $PATH
34003 do
34004   IFS=$as_save_IFS
34005   test -z "$as_dir" && as_dir=.
34006   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34007 done
34008 IFS=$as_save_IFS
34009
34010      ;;
34011 esac
34012 # We did not find ourselves, most probably we were run as `sh COMMAND'
34013 # in which case we are not to be found in the path.
34014 if test "x$as_myself" = x; then
34015   as_myself=$0
34016 fi
34017 if test ! -f "$as_myself"; then
34018   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34019   { (exit 1); exit 1; }
34020 fi
34021
34022 # Work around bugs in pre-3.0 UWIN ksh.
34023 for as_var in ENV MAIL MAILPATH
34024 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34025 done
34026 PS1='$ '
34027 PS2='> '
34028 PS4='+ '
34029
34030 # NLS nuisances.
34031 for as_var in \
34032   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34033   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34034   LC_TELEPHONE LC_TIME
34035 do
34036   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34037     eval $as_var=C; export $as_var
34038   else
34039     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34040   fi
34041 done
34042
34043 # Required to use basename.
34044 if expr a : '\(a\)' >/dev/null 2>&1 &&
34045    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34046   as_expr=expr
34047 else
34048   as_expr=false
34049 fi
34050
34051 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34052   as_basename=basename
34053 else
34054   as_basename=false
34055 fi
34056
34057
34058 # Name of the executable.
34059 as_me=`$as_basename -- "$0" ||
34060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34061          X"$0" : 'X\(//\)$' \| \
34062          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34063 echo X/"$0" |
34064     sed '/^.*\/\([^/][^/]*\)\/*$/{
34065             s//\1/
34066             q
34067           }
34068           /^X\/\(\/\/\)$/{
34069             s//\1/
34070             q
34071           }
34072           /^X\/\(\/\).*/{
34073             s//\1/
34074             q
34075           }
34076           s/.*/./; q'`
34077
34078 # CDPATH.
34079 $as_unset CDPATH
34080
34081
34082
34083   as_lineno_1=$LINENO
34084   as_lineno_2=$LINENO
34085   test "x$as_lineno_1" != "x$as_lineno_2" &&
34086   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34087
34088   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34089   # uniformly replaced by the line number.  The first 'sed' inserts a
34090   # line-number line after each line using $LINENO; the second 'sed'
34091   # does the real work.  The second script uses 'N' to pair each
34092   # line-number line with the line containing $LINENO, and appends
34093   # trailing '-' during substitution so that $LINENO is not a special
34094   # case at line end.
34095   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34096   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34097   # E. McMahon (1931-1989) for sed's syntax.  :-)
34098   sed -n '
34099     p
34100     /[$]LINENO/=
34101   ' <$as_myself |
34102     sed '
34103       s/[$]LINENO.*/&-/
34104       t lineno
34105       b
34106       :lineno
34107       N
34108       :loop
34109       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34110       t loop
34111       s/-\n.*//
34112     ' >$as_me.lineno &&
34113   chmod +x "$as_me.lineno" ||
34114     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34115    { (exit 1); exit 1; }; }
34116
34117   # Don't try to exec as it changes $[0], causing all sort of problems
34118   # (the dirname of $[0] is not the place where we might find the
34119   # original and so on.  Autoconf is especially sensitive to this).
34120   . "./$as_me.lineno"
34121   # Exit status is that of the last command.
34122   exit
34123 }
34124
34125
34126 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34127   as_dirname=dirname
34128 else
34129   as_dirname=false
34130 fi
34131
34132 ECHO_C= ECHO_N= ECHO_T=
34133 case `echo -n x` in
34134 -n*)
34135   case `echo 'x\c'` in
34136   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34137   *)   ECHO_C='\c';;
34138   esac;;
34139 *)
34140   ECHO_N='-n';;
34141 esac
34142
34143 if expr a : '\(a\)' >/dev/null 2>&1 &&
34144    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34145   as_expr=expr
34146 else
34147   as_expr=false
34148 fi
34149
34150 rm -f conf$$ conf$$.exe conf$$.file
34151 if test -d conf$$.dir; then
34152   rm -f conf$$.dir/conf$$.file
34153 else
34154   rm -f conf$$.dir
34155   mkdir conf$$.dir
34156 fi
34157 echo >conf$$.file
34158 if ln -s conf$$.file conf$$ 2>/dev/null; then
34159   as_ln_s='ln -s'
34160   # ... but there are two gotchas:
34161   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34162   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34163   # In both cases, we have to default to `cp -p'.
34164   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34165     as_ln_s='cp -p'
34166 elif ln conf$$.file conf$$ 2>/dev/null; then
34167   as_ln_s=ln
34168 else
34169   as_ln_s='cp -p'
34170 fi
34171 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34172 rmdir conf$$.dir 2>/dev/null
34173
34174 if mkdir -p . 2>/dev/null; then
34175   as_mkdir_p=:
34176 else
34177   test -d ./-p && rmdir ./-p
34178   as_mkdir_p=false
34179 fi
34180
34181 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34182 # systems may use methods other than mode bits to determine executability.
34183 cat >conf$$.file <<_ASEOF
34184 #! /bin/sh
34185 exit 0
34186 _ASEOF
34187 chmod +x conf$$.file
34188 if test -x conf$$.file >/dev/null 2>&1; then
34189   as_executable_p="test -x"
34190 else
34191   as_executable_p=:
34192 fi
34193 rm -f conf$$.file
34194
34195 # Sed expression to map a string onto a valid CPP name.
34196 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34197
34198 # Sed expression to map a string onto a valid variable name.
34199 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34200
34201
34202 exec 6>&1
34203
34204 # Save the log message, to keep $[0] and so on meaningful, and to
34205 # report actual input values of CONFIG_FILES etc. instead of their
34206 # values after options handling.
34207 ac_log="
34208 This file was extended by $as_me, which was
34209 generated by GNU Autoconf 2.60.  Invocation command line was
34210
34211   CONFIG_FILES    = $CONFIG_FILES
34212   CONFIG_HEADERS  = $CONFIG_HEADERS
34213   CONFIG_LINKS    = $CONFIG_LINKS
34214   CONFIG_COMMANDS = $CONFIG_COMMANDS
34215   $ $0 $@
34216
34217 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34218 "
34219
34220 _ACEOF
34221
34222 cat >>$CONFIG_STATUS <<_ACEOF
34223 # Files that config.status was made for.
34224 config_files="$ac_config_files"
34225 config_headers="$ac_config_headers"
34226 config_commands="$ac_config_commands"
34227
34228 _ACEOF
34229
34230 cat >>$CONFIG_STATUS <<\_ACEOF
34231 ac_cs_usage="\
34232 \`$as_me' instantiates files from templates according to the
34233 current configuration.
34234
34235 Usage: $0 [OPTIONS] [FILE]...
34236
34237   -h, --help       print this help, then exit
34238   -V, --version    print version number, then exit
34239   -q, --quiet      do not print progress messages
34240   -d, --debug      don't remove temporary files
34241       --recheck    update $as_me by reconfiguring in the same conditions
34242   --file=FILE[:TEMPLATE]
34243                    instantiate the configuration file FILE
34244   --header=FILE[:TEMPLATE]
34245                    instantiate the configuration header FILE
34246
34247 Configuration files:
34248 $config_files
34249
34250 Configuration headers:
34251 $config_headers
34252
34253 Configuration commands:
34254 $config_commands
34255
34256 Report bugs to <bug-autoconf@gnu.org>."
34257
34258 _ACEOF
34259 cat >>$CONFIG_STATUS <<_ACEOF
34260 ac_cs_version="\\
34261 config.status
34262 configured by $0, generated by GNU Autoconf 2.60,
34263   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34264
34265 Copyright (C) 2006 Free Software Foundation, Inc.
34266 This config.status script is free software; the Free Software Foundation
34267 gives unlimited permission to copy, distribute and modify it."
34268
34269 ac_pwd='$ac_pwd'
34270 srcdir='$srcdir'
34271 INSTALL='$INSTALL'
34272 _ACEOF
34273
34274 cat >>$CONFIG_STATUS <<\_ACEOF
34275 # If no file are specified by the user, then we need to provide default
34276 # value.  By we need to know if files were specified by the user.
34277 ac_need_defaults=:
34278 while test $# != 0
34279 do
34280   case $1 in
34281   --*=*)
34282     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34283     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34284     ac_shift=:
34285     ;;
34286   *)
34287     ac_option=$1
34288     ac_optarg=$2
34289     ac_shift=shift
34290     ;;
34291   esac
34292
34293   case $ac_option in
34294   # Handling of the options.
34295   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34296     ac_cs_recheck=: ;;
34297   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34298     echo "$ac_cs_version"; exit ;;
34299   --debug | --debu | --deb | --de | --d | -d )
34300     debug=: ;;
34301   --file | --fil | --fi | --f )
34302     $ac_shift
34303     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34304     ac_need_defaults=false;;
34305   --header | --heade | --head | --hea )
34306     $ac_shift
34307     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34308     ac_need_defaults=false;;
34309   --he | --h)
34310     # Conflict between --help and --header
34311     { echo "$as_me: error: ambiguous option: $1
34312 Try \`$0 --help' for more information." >&2
34313    { (exit 1); exit 1; }; };;
34314   --help | --hel | -h )
34315     echo "$ac_cs_usage"; exit ;;
34316   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34317   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34318     ac_cs_silent=: ;;
34319
34320   # This is an error.
34321   -*) { echo "$as_me: error: unrecognized option: $1
34322 Try \`$0 --help' for more information." >&2
34323    { (exit 1); exit 1; }; } ;;
34324
34325   *) ac_config_targets="$ac_config_targets $1"
34326      ac_need_defaults=false ;;
34327
34328   esac
34329   shift
34330 done
34331
34332 ac_configure_extra_args=
34333
34334 if $ac_cs_silent; then
34335   exec 6>/dev/null
34336   ac_configure_extra_args="$ac_configure_extra_args --silent"
34337 fi
34338
34339 _ACEOF
34340 cat >>$CONFIG_STATUS <<_ACEOF
34341 if \$ac_cs_recheck; then
34342   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34343   CONFIG_SHELL=$SHELL
34344   export CONFIG_SHELL
34345   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34346 fi
34347
34348 _ACEOF
34349 cat >>$CONFIG_STATUS <<\_ACEOF
34350 exec 5>>config.log
34351 {
34352   echo
34353   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34354 ## Running $as_me. ##
34355 _ASBOX
34356   echo "$ac_log"
34357 } >&5
34358
34359 _ACEOF
34360 cat >>$CONFIG_STATUS <<_ACEOF
34361 #
34362 # INIT-COMMANDS
34363 #
34364 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34365     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34366     # from automake.
34367     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34368     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34369     LINGUAS="${LINGUAS-%UNSET%}"
34370
34371
34372 _ACEOF
34373
34374 cat >>$CONFIG_STATUS <<\_ACEOF
34375
34376 # Handling of arguments.
34377 for ac_config_target in $ac_config_targets
34378 do
34379   case $ac_config_target in
34380     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34381     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34382     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34383     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34384     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34385     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34386     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34387     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34388     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34389     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34390     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34391     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34392     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34393     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34394     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34395     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34396     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34397     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34398     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34399     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34400     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34401     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34402     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34403     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34404     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34405     "scripts/gnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
34406     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34407     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34408     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34409     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34410     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34411     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34412     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34413     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34414     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34415     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34416     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34417     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34418     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34419     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34420     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34421     "src/gnome2-console/gnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
34422     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34423     "src/wx-console/wx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
34424     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34425     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34426     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34427     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34428     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34429     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34430     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34431     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34432     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34433     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34434     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34435     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34436     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34437     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34438     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34439     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34440     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34441     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34442     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34443     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34444     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34445     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34446     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34447     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34448     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34449     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34450     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34451     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34452     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34453     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34454     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34455     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34456     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34457     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34458     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34459     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34460     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34461     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34462     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34463     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34464     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34465     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34466     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34467     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34468     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34469     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34470     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34471     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34472     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34473     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34474     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34475     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34476     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34477     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34478     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34479
34480   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34481 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34482    { (exit 1); exit 1; }; };;
34483   esac
34484 done
34485
34486
34487 # If the user did not use the arguments to specify the items to instantiate,
34488 # then the envvar interface is used.  Set only those that are not.
34489 # We use the long form for the default assignment because of an extremely
34490 # bizarre bug on SunOS 4.1.3.
34491 if $ac_need_defaults; then
34492   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34493   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34494   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34495 fi
34496
34497 # Have a temporary directory for convenience.  Make it in the build tree
34498 # simply because there is no reason against having it here, and in addition,
34499 # creating and moving files from /tmp can sometimes cause problems.
34500 # Hook for its removal unless debugging.
34501 # Note that there is a small window in which the directory will not be cleaned:
34502 # after its creation but before its name has been assigned to `$tmp'.
34503 $debug ||
34504 {
34505   tmp=
34506   trap 'exit_status=$?
34507   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34508 ' 0
34509   trap '{ (exit 1); exit 1; }' 1 2 13 15
34510 }
34511 # Create a (secure) tmp directory for tmp files.
34512
34513 {
34514   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34515   test -n "$tmp" && test -d "$tmp"
34516 }  ||
34517 {
34518   tmp=./conf$$-$RANDOM
34519   (umask 077 && mkdir "$tmp")
34520 } ||
34521 {
34522    echo "$me: cannot create a temporary directory in ." >&2
34523    { (exit 1); exit 1; }
34524 }
34525
34526 #
34527 # Set up the sed scripts for CONFIG_FILES section.
34528 #
34529
34530 # No need to generate the scripts if there are no CONFIG_FILES.
34531 # This happens for instance when ./config.status config.h
34532 if test -n "$CONFIG_FILES"; then
34533
34534 _ACEOF
34535
34536 # Create sed commands to just substitute file output variables.
34537
34538 # Remaining file output variables are in a fragment that also has non-file
34539 # output varibles.
34540
34541
34542
34543 ac_delim='%!_!# '
34544 for ac_last_try in false false false false false :; do
34545   cat >conf$$subs.sed <<_ACEOF
34546 SHELL!$SHELL$ac_delim
34547 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34548 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34549 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34550 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34551 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34552 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34553 exec_prefix!$exec_prefix$ac_delim
34554 prefix!$prefix$ac_delim
34555 program_transform_name!$program_transform_name$ac_delim
34556 bindir!$bindir$ac_delim
34557 sbindir!$sbindir$ac_delim
34558 libexecdir!$libexecdir$ac_delim
34559 datarootdir!$datarootdir$ac_delim
34560 datadir!$datadir$ac_delim
34561 sysconfdir!$sysconfdir$ac_delim
34562 sharedstatedir!$sharedstatedir$ac_delim
34563 localstatedir!$localstatedir$ac_delim
34564 includedir!$includedir$ac_delim
34565 oldincludedir!$oldincludedir$ac_delim
34566 docdir!$docdir$ac_delim
34567 infodir!$infodir$ac_delim
34568 htmldir!$htmldir$ac_delim
34569 dvidir!$dvidir$ac_delim
34570 pdfdir!$pdfdir$ac_delim
34571 psdir!$psdir$ac_delim
34572 libdir!$libdir$ac_delim
34573 localedir!$localedir$ac_delim
34574 mandir!$mandir$ac_delim
34575 DEFS!$DEFS$ac_delim
34576 ECHO_C!$ECHO_C$ac_delim
34577 ECHO_N!$ECHO_N$ac_delim
34578 ECHO_T!$ECHO_T$ac_delim
34579 LIBS!$LIBS$ac_delim
34580 build_alias!$build_alias$ac_delim
34581 host_alias!$host_alias$ac_delim
34582 target_alias!$target_alias$ac_delim
34583 BUILD_DIR!$BUILD_DIR$ac_delim
34584 TOP_DIR!$TOP_DIR$ac_delim
34585 TRUEPRG!$TRUEPRG$ac_delim
34586 FALSEPRG!$FALSEPRG$ac_delim
34587 VERSION!$VERSION$ac_delim
34588 DATE!$DATE$ac_delim
34589 LSMDATE!$LSMDATE$ac_delim
34590 CC!$CC$ac_delim
34591 CFLAGS!$CFLAGS$ac_delim
34592 LDFLAGS!$LDFLAGS$ac_delim
34593 CPPFLAGS!$CPPFLAGS$ac_delim
34594 ac_ct_CC!$ac_ct_CC$ac_delim
34595 EXEEXT!$EXEEXT$ac_delim
34596 OBJEXT!$OBJEXT$ac_delim
34597 CXX!$CXX$ac_delim
34598 CXXFLAGS!$CXXFLAGS$ac_delim
34599 ac_ct_CXX!$ac_ct_CXX$ac_delim
34600 CPP!$CPP$ac_delim
34601 GREP!$GREP$ac_delim
34602 EGREP!$EGREP$ac_delim
34603 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34604 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34605 INSTALL_DATA!$INSTALL_DATA$ac_delim
34606 RANLIB!$RANLIB$ac_delim
34607 MV!$MV$ac_delim
34608 RM!$RM$ac_delim
34609 CP!$CP$ac_delim
34610 SED!$SED$ac_delim
34611 ECHO!$ECHO$ac_delim
34612 CMP!$CMP$ac_delim
34613 TBL!$TBL$ac_delim
34614 AR!$AR$ac_delim
34615 OPENSSL!$OPENSSL$ac_delim
34616 MTX!$MTX$ac_delim
34617 DD!$DD$ac_delim
34618 MKISOFS!$MKISOFS$ac_delim
34619 PYTHON!$PYTHON$ac_delim
34620 GROWISOFS!$GROWISOFS$ac_delim
34621 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34622 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34623 PKGCONFIG!$PKGCONFIG$ac_delim
34624 WXCONFIG!$WXCONFIG$ac_delim
34625 WXFLAGS!$WXFLAGS$ac_delim
34626 CDRECORD!$CDRECORD$ac_delim
34627 PIDOF!$PIDOF$ac_delim
34628 AWK!$AWK$ac_delim
34629 ARFLAGS!$ARFLAGS$ac_delim
34630 MAKE_SHELL!$MAKE_SHELL$ac_delim
34631 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34632 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34633 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34634 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34635 build!$build$ac_delim
34636 build_cpu!$build_cpu$ac_delim
34637 build_vendor!$build_vendor$ac_delim
34638 build_os!$build_os$ac_delim
34639 host!$host$ac_delim
34640 _ACEOF
34641
34642   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34643     break
34644   elif $ac_last_try; then
34645     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34646 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34647    { (exit 1); exit 1; }; }
34648   else
34649     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34650   fi
34651 done
34652
34653 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34654 if test -n "$ac_eof"; then
34655   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34656   ac_eof=`expr $ac_eof + 1`
34657 fi
34658
34659 cat >>$CONFIG_STATUS <<_ACEOF
34660 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34661 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34662 /^[      ]*@MCOMMON@[    ]*$/{
34663 r $MCOMMON
34664 d
34665 }
34666 _ACEOF
34667 sed '
34668 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34669 s/^/s,@/; s/!/@,|#_!!_#|/
34670 :n
34671 t n
34672 s/'"$ac_delim"'$/,g/; t
34673 s/$/\\/; p
34674 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34675 ' >>$CONFIG_STATUS <conf$$subs.sed
34676 rm -f conf$$subs.sed
34677 cat >>$CONFIG_STATUS <<_ACEOF
34678 CEOF$ac_eof
34679 _ACEOF
34680
34681
34682 ac_delim='%!_!# '
34683 for ac_last_try in false false false false false :; do
34684   cat >conf$$subs.sed <<_ACEOF
34685 host_cpu!$host_cpu$ac_delim
34686 host_vendor!$host_vendor$ac_delim
34687 host_os!$host_os$ac_delim
34688 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
34689 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
34690 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
34691 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
34692 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
34693 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
34694 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
34695 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
34696 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
34697 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
34698 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
34699 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
34700 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
34701 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
34702 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
34703 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
34704 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
34705 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
34706 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
34707 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
34708 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
34709 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
34710 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
34711 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
34712 SET_MAKE!$SET_MAKE$ac_delim
34713 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
34714 USE_NLS!$USE_NLS$ac_delim
34715 MSGFMT!$MSGFMT$ac_delim
34716 GMSGFMT!$GMSGFMT$ac_delim
34717 XGETTEXT!$XGETTEXT$ac_delim
34718 MSGMERGE!$MSGMERGE$ac_delim
34719 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
34720 LIBICONV!$LIBICONV$ac_delim
34721 LTLIBICONV!$LTLIBICONV$ac_delim
34722 INTLLIBS!$INTLLIBS$ac_delim
34723 LIBINTL!$LIBINTL$ac_delim
34724 LTLIBINTL!$LTLIBINTL$ac_delim
34725 POSUB!$POSUB$ac_delim
34726 GLIBC2!$GLIBC2$ac_delim
34727 ALLOCA!$ALLOCA$ac_delim
34728 GLIBC21!$GLIBC21$ac_delim
34729 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
34730 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
34731 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
34732 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
34733 INTLBISON!$INTLBISON$ac_delim
34734 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
34735 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
34736 CATOBJEXT!$CATOBJEXT$ac_delim
34737 DATADIRNAME!$DATADIRNAME$ac_delim
34738 INSTOBJEXT!$INSTOBJEXT$ac_delim
34739 GENCAT!$GENCAT$ac_delim
34740 INTLOBJS!$INTLOBJS$ac_delim
34741 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
34742 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
34743 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
34744 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
34745 GNOME_LIBS!$GNOME_LIBS$ac_delim
34746 GNOME_DIR!$GNOME_DIR$ac_delim
34747 BAT_DIR!$BAT_DIR$ac_delim
34748 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
34749 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
34750 WX_DIR!$WX_DIR$ac_delim
34751 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
34752 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
34753 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
34754 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
34755 STATIC_FD!$STATIC_FD$ac_delim
34756 STATIC_SD!$STATIC_SD$ac_delim
34757 STATIC_DIR!$STATIC_DIR$ac_delim
34758 STATIC_CONS!$STATIC_CONS$ac_delim
34759 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
34760 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
34761 ALL_DIRS!$ALL_DIRS$ac_delim
34762 DIRD_DIR!$DIRD_DIR$ac_delim
34763 DIR_TOOLS!$DIR_TOOLS$ac_delim
34764 STORED_DIR!$STORED_DIR$ac_delim
34765 CONS_INC!$CONS_INC$ac_delim
34766 CONS_OBJ!$CONS_OBJ$ac_delim
34767 CONS_SRC!$CONS_SRC$ac_delim
34768 CONS_LIBS!$CONS_LIBS$ac_delim
34769 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
34770 READLINE_SRC!$READLINE_SRC$ac_delim
34771 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
34772 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
34773 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
34774 OPENSSL_INC!$OPENSSL_INC$ac_delim
34775 working_dir!$working_dir$ac_delim
34776 scriptdir!$scriptdir$ac_delim
34777 dump_email!$dump_email$ac_delim
34778 job_email!$job_email$ac_delim
34779 smtp_host!$smtp_host$ac_delim
34780 piddir!$piddir$ac_delim
34781 subsysdir!$subsysdir$ac_delim
34782 _ACEOF
34783
34784   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34785     break
34786   elif $ac_last_try; then
34787     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34788 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34789    { (exit 1); exit 1; }; }
34790   else
34791     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34792   fi
34793 done
34794
34795 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34796 if test -n "$ac_eof"; then
34797   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34798   ac_eof=`expr $ac_eof + 1`
34799 fi
34800
34801 cat >>$CONFIG_STATUS <<_ACEOF
34802 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34804 _ACEOF
34805 sed '
34806 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34807 s/^/s,@/; s/!/@,|#_!!_#|/
34808 :n
34809 t n
34810 s/'"$ac_delim"'$/,g/; t
34811 s/$/\\/; p
34812 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34813 ' >>$CONFIG_STATUS <conf$$subs.sed
34814 rm -f conf$$subs.sed
34815 cat >>$CONFIG_STATUS <<_ACEOF
34816 CEOF$ac_eof
34817 _ACEOF
34818
34819
34820 ac_delim='%!_!# '
34821 for ac_last_try in false false false false false :; do
34822   cat >conf$$subs.sed <<_ACEOF
34823 baseport!$baseport$ac_delim
34824 dir_port!$dir_port$ac_delim
34825 fd_port!$fd_port$ac_delim
34826 sd_port!$sd_port$ac_delim
34827 dir_password!$dir_password$ac_delim
34828 fd_password!$fd_password$ac_delim
34829 sd_password!$sd_password$ac_delim
34830 mon_dir_password!$mon_dir_password$ac_delim
34831 mon_fd_password!$mon_fd_password$ac_delim
34832 mon_sd_password!$mon_sd_password$ac_delim
34833 dir_user!$dir_user$ac_delim
34834 dir_group!$dir_group$ac_delim
34835 sd_user!$sd_user$ac_delim
34836 sd_group!$sd_group$ac_delim
34837 fd_user!$fd_user$ac_delim
34838 fd_group!$fd_group$ac_delim
34839 SBINPERM!$SBINPERM$ac_delim
34840 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
34841 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
34842 SQL_BINDIR!$SQL_BINDIR$ac_delim
34843 cats!$cats$ac_delim
34844 DB_NAME!$DB_NAME$ac_delim
34845 GETCONF!$GETCONF$ac_delim
34846 XMKMF!$XMKMF$ac_delim
34847 X_CFLAGS!$X_CFLAGS$ac_delim
34848 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34849 X_LIBS!$X_LIBS$ac_delim
34850 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34851 LIBOBJS!$LIBOBJS$ac_delim
34852 FDLIBS!$FDLIBS$ac_delim
34853 DEBUG!$DEBUG$ac_delim
34854 DINCLUDE!$DINCLUDE$ac_delim
34855 DLIB!$DLIB$ac_delim
34856 DB_LIBS!$DB_LIBS$ac_delim
34857 WCFLAGS!$WCFLAGS$ac_delim
34858 WLDFLAGS!$WLDFLAGS$ac_delim
34859 WRAPLIBS!$WRAPLIBS$ac_delim
34860 OBJLIST!$OBJLIST$ac_delim
34861 hostname!$hostname$ac_delim
34862 TAPEDRIVE!$TAPEDRIVE$ac_delim
34863 PSCMD!$PSCMD$ac_delim
34864 WIN32!$WIN32$ac_delim
34865 MACOSX!$MACOSX$ac_delim
34866 DISTNAME!$DISTNAME$ac_delim
34867 DISTVER!$DISTVER$ac_delim
34868 LTLIBOBJS!$LTLIBOBJS$ac_delim
34869 _ACEOF
34870
34871   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 46; then
34872     break
34873   elif $ac_last_try; then
34874     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34875 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34876    { (exit 1); exit 1; }; }
34877   else
34878     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34879   fi
34880 done
34881
34882 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34883 if test -n "$ac_eof"; then
34884   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34885   ac_eof=`expr $ac_eof + 1`
34886 fi
34887
34888 cat >>$CONFIG_STATUS <<_ACEOF
34889 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34891 _ACEOF
34892 sed '
34893 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34894 s/^/s,@/; s/!/@,|#_!!_#|/
34895 :n
34896 t n
34897 s/'"$ac_delim"'$/,g/; t
34898 s/$/\\/; p
34899 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34900 ' >>$CONFIG_STATUS <conf$$subs.sed
34901 rm -f conf$$subs.sed
34902 cat >>$CONFIG_STATUS <<_ACEOF
34903 :end
34904 s/|#_!!_#|//g
34905 CEOF$ac_eof
34906 _ACEOF
34907
34908
34909 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34910 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34911 # trailing colons and then remove the whole line if VPATH becomes empty
34912 # (actually we leave an empty line to preserve line numbers).
34913 if test "x$srcdir" = x.; then
34914   ac_vpsub='/^[  ]*VPATH[        ]*=/{
34915 s/:*\$(srcdir):*/:/
34916 s/:*\${srcdir}:*/:/
34917 s/:*@srcdir@:*/:/
34918 s/^\([^=]*=[     ]*\):*/\1/
34919 s/:*$//
34920 s/^[^=]*=[       ]*$//
34921 }'
34922 fi
34923
34924 cat >>$CONFIG_STATUS <<\_ACEOF
34925 fi # test -n "$CONFIG_FILES"
34926
34927
34928 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
34929 do
34930   case $ac_tag in
34931   :[FHLC]) ac_mode=$ac_tag; continue;;
34932   esac
34933   case $ac_mode$ac_tag in
34934   :[FHL]*:*);;
34935   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34936 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34937    { (exit 1); exit 1; }; };;
34938   :[FH]-) ac_tag=-:-;;
34939   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34940   esac
34941   ac_save_IFS=$IFS
34942   IFS=:
34943   set x $ac_tag
34944   IFS=$ac_save_IFS
34945   shift
34946   ac_file=$1
34947   shift
34948
34949   case $ac_mode in
34950   :L) ac_source=$1;;
34951   :[FH])
34952     ac_file_inputs=
34953     for ac_f
34954     do
34955       case $ac_f in
34956       -) ac_f="$tmp/stdin";;
34957       *) # Look for the file first in the build tree, then in the source tree
34958          # (if the path is not absolute).  The absolute path cannot be DOS-style,
34959          # because $ac_f cannot contain `:'.
34960          test -f "$ac_f" ||
34961            case $ac_f in
34962            [\\/$]*) false;;
34963            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34964            esac ||
34965            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34966 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34967    { (exit 1); exit 1; }; };;
34968       esac
34969       ac_file_inputs="$ac_file_inputs $ac_f"
34970     done
34971
34972     # Let's still pretend it is `configure' which instantiates (i.e., don't
34973     # use $as_me), people would be surprised to read:
34974     #    /* config.h.  Generated by config.status.  */
34975     configure_input="Generated from "`IFS=:
34976           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34977     if test x"$ac_file" != x-; then
34978       configure_input="$ac_file.  $configure_input"
34979       { echo "$as_me:$LINENO: creating $ac_file" >&5
34980 echo "$as_me: creating $ac_file" >&6;}
34981     fi
34982
34983     case $ac_tag in
34984     *:-:* | *:-) cat >"$tmp/stdin";;
34985     esac
34986     ;;
34987   esac
34988
34989   ac_dir=`$as_dirname -- "$ac_file" ||
34990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34991          X"$ac_file" : 'X\(//\)[^/]' \| \
34992          X"$ac_file" : 'X\(//\)$' \| \
34993          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34994 echo X"$ac_file" |
34995     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34996             s//\1/
34997             q
34998           }
34999           /^X\(\/\/\)[^/].*/{
35000             s//\1/
35001             q
35002           }
35003           /^X\(\/\/\)$/{
35004             s//\1/
35005             q
35006           }
35007           /^X\(\/\).*/{
35008             s//\1/
35009             q
35010           }
35011           s/.*/./; q'`
35012   { as_dir="$ac_dir"
35013   case $as_dir in #(
35014   -*) as_dir=./$as_dir;;
35015   esac
35016   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35017     as_dirs=
35018     while :; do
35019       case $as_dir in #(
35020       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35021       *) as_qdir=$as_dir;;
35022       esac
35023       as_dirs="'$as_qdir' $as_dirs"
35024       as_dir=`$as_dirname -- "$as_dir" ||
35025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35026          X"$as_dir" : 'X\(//\)[^/]' \| \
35027          X"$as_dir" : 'X\(//\)$' \| \
35028          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35029 echo X"$as_dir" |
35030     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35031             s//\1/
35032             q
35033           }
35034           /^X\(\/\/\)[^/].*/{
35035             s//\1/
35036             q
35037           }
35038           /^X\(\/\/\)$/{
35039             s//\1/
35040             q
35041           }
35042           /^X\(\/\).*/{
35043             s//\1/
35044             q
35045           }
35046           s/.*/./; q'`
35047       test -d "$as_dir" && break
35048     done
35049     test -z "$as_dirs" || eval "mkdir $as_dirs"
35050   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35051 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35052    { (exit 1); exit 1; }; }; }
35053   ac_builddir=.
35054
35055 case "$ac_dir" in
35056 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35057 *)
35058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35059   # A ".." for each directory in $ac_dir_suffix.
35060   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35061   case $ac_top_builddir_sub in
35062   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35063   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35064   esac ;;
35065 esac
35066 ac_abs_top_builddir=$ac_pwd
35067 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35068 # for backward compatibility:
35069 ac_top_builddir=$ac_top_build_prefix
35070
35071 case $srcdir in
35072   .)  # We are building in place.
35073     ac_srcdir=.
35074     ac_top_srcdir=$ac_top_builddir_sub
35075     ac_abs_top_srcdir=$ac_pwd ;;
35076   [\\/]* | ?:[\\/]* )  # Absolute name.
35077     ac_srcdir=$srcdir$ac_dir_suffix;
35078     ac_top_srcdir=$srcdir
35079     ac_abs_top_srcdir=$srcdir ;;
35080   *) # Relative name.
35081     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35082     ac_top_srcdir=$ac_top_build_prefix$srcdir
35083     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35084 esac
35085 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35086
35087
35088   case $ac_mode in
35089   :F)
35090   #
35091   # CONFIG_FILE
35092   #
35093
35094   case $INSTALL in
35095   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35096   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35097   esac
35098 _ACEOF
35099
35100 cat >>$CONFIG_STATUS <<\_ACEOF
35101 # If the template does not know about datarootdir, expand it.
35102 # FIXME: This hack should be removed a few years after 2.60.
35103 ac_datarootdir_hack=; ac_datarootdir_seen=
35104
35105 case `sed -n '/datarootdir/ {
35106   p
35107   q
35108 }
35109 /@datadir@/p
35110 /@docdir@/p
35111 /@infodir@/p
35112 /@localedir@/p
35113 /@mandir@/p
35114 ' $ac_file_inputs` in
35115 *datarootdir*) ac_datarootdir_seen=yes;;
35116 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35117   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35118 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35119 _ACEOF
35120 cat >>$CONFIG_STATUS <<_ACEOF
35121   ac_datarootdir_hack='
35122   s&@datadir@&$datadir&g
35123   s&@docdir@&$docdir&g
35124   s&@infodir@&$infodir&g
35125   s&@localedir@&$localedir&g
35126   s&@mandir@&$mandir&g
35127     s&\\\${datarootdir}&$datarootdir&g' ;;
35128 esac
35129 _ACEOF
35130
35131 # Neutralize VPATH when `$srcdir' = `.'.
35132 # Shell code in configure.ac might set extrasub.
35133 # FIXME: do we really want to maintain this feature?
35134 cat >>$CONFIG_STATUS <<_ACEOF
35135   sed "$ac_vpsub
35136 $extrasub
35137 _ACEOF
35138 cat >>$CONFIG_STATUS <<\_ACEOF
35139 :t
35140 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35141 s&@configure_input@&$configure_input&;t t
35142 s&@top_builddir@&$ac_top_builddir_sub&;t t
35143 s&@srcdir@&$ac_srcdir&;t t
35144 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35145 s&@top_srcdir@&$ac_top_srcdir&;t t
35146 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35147 s&@builddir@&$ac_builddir&;t t
35148 s&@abs_builddir@&$ac_abs_builddir&;t t
35149 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35150 s&@INSTALL@&$ac_INSTALL&;t t
35151 $ac_datarootdir_hack
35152 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35153
35154 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35155   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35156   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35157   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35158 which seems to be undefined.  Please make sure it is defined." >&5
35159 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35160 which seems to be undefined.  Please make sure it is defined." >&2;}
35161
35162   rm -f "$tmp/stdin"
35163   case $ac_file in
35164   -) cat "$tmp/out"; rm -f "$tmp/out";;
35165   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35166   esac
35167  ;;
35168   :H)
35169   #
35170   # CONFIG_HEADER
35171   #
35172 _ACEOF
35173
35174 # Transform confdefs.h into a sed script `conftest.defines', that
35175 # substitutes the proper values into config.h.in to produce config.h.
35176 rm -f conftest.defines conftest.tail
35177 # First, append a space to every undef/define line, to ease matching.
35178 echo 's/$/ /' >conftest.defines
35179 # Then, protect against being on the right side of a sed subst, or in
35180 # an unquoted here document, in config.status.  If some macros were
35181 # called several times there might be several #defines for the same
35182 # symbol, which is useless.  But do not sort them, since the last
35183 # AC_DEFINE must be honored.
35184 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35185 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35186 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35187 # PARAMS is the parameter list in the macro definition--in most cases, it's
35188 # just an empty string.
35189 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35190 ac_dB='\\)[      (].*,\\1define\\2'
35191 ac_dC=' '
35192 ac_dD=' ,'
35193
35194 uniq confdefs.h |
35195   sed -n '
35196         t rset
35197         :rset
35198         s/^[     ]*#[    ]*define[       ][      ]*//
35199         t ok
35200         d
35201         :ok
35202         s/[\\&,]/\\&/g
35203         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35204         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35205   ' >>conftest.defines
35206
35207 # Remove the space that was appended to ease matching.
35208 # Then replace #undef with comments.  This is necessary, for
35209 # example, in the case of _POSIX_SOURCE, which is predefined and required
35210 # on some systems where configure will not decide to define it.
35211 # (The regexp can be short, since the line contains either #define or #undef.)
35212 echo 's/ $//
35213 s,^[     #]*u.*,/* & */,' >>conftest.defines
35214
35215 # Break up conftest.defines:
35216 ac_max_sed_lines=50
35217
35218 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35219 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35220 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35221 # et cetera.
35222 ac_in='$ac_file_inputs'
35223 ac_out='"$tmp/out1"'
35224 ac_nxt='"$tmp/out2"'
35225
35226 while :
35227 do
35228   # Write a here document:
35229     cat >>$CONFIG_STATUS <<_ACEOF
35230     # First, check the format of the line:
35231     cat >"\$tmp/defines.sed" <<\\CEOF
35232 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35233 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35234 b
35235 :def
35236 _ACEOF
35237   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35238   echo 'CEOF
35239     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35240   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35241   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35242   grep . conftest.tail >/dev/null || break
35243   rm -f conftest.defines
35244   mv conftest.tail conftest.defines
35245 done
35246 rm -f conftest.defines conftest.tail
35247
35248 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35249 cat >>$CONFIG_STATUS <<\_ACEOF
35250   if test x"$ac_file" != x-; then
35251     echo "/* $configure_input  */" >"$tmp/config.h"
35252     cat "$ac_result" >>"$tmp/config.h"
35253     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35254       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35255 echo "$as_me: $ac_file is unchanged" >&6;}
35256     else
35257       rm -f $ac_file
35258       mv "$tmp/config.h" $ac_file
35259     fi
35260   else
35261     echo "/* $configure_input  */"
35262     cat "$ac_result"
35263   fi
35264   rm -f "$tmp/out12"
35265  ;;
35266
35267   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35268 echo "$as_me: executing $ac_file commands" >&6;}
35269  ;;
35270   esac
35271
35272
35273   case $ac_file$ac_mode in
35274     "default-1":C)
35275     for ac_file in $CONFIG_FILES; do
35276       # Support "outfile[:infile[:infile...]]"
35277       case "$ac_file" in
35278         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35279       esac
35280       # PO directories have a Makefile.in generated from Makefile.in.in.
35281       case "$ac_file" in */Makefile.in)
35282         # Adjust a relative srcdir.
35283         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35284         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35285         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35286         # In autoconf-2.13 it is called $ac_given_srcdir.
35287         # In autoconf-2.50 it is called $srcdir.
35288         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35289         case "$ac_given_srcdir" in
35290           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35291           /*) top_srcdir="$ac_given_srcdir" ;;
35292           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35293         esac
35294         # Treat a directory as a PO directory if and only if it has a
35295         # POTFILES.in file. This allows packages to have multiple PO
35296         # directories under different names or in different locations.
35297         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35298           rm -f "$ac_dir/POTFILES"
35299           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35300           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35301           POMAKEFILEDEPS="POTFILES.in"
35302           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35303           # on $ac_dir but don't depend on user-specified configuration
35304           # parameters.
35305           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35306             # The LINGUAS file contains the set of available languages.
35307             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35308               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35309             fi
35310             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35311             # Hide the ALL_LINGUAS assigment from automake.
35312             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35313             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35314           else
35315             # The set of available languages was given in configure.in.
35316             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35317           fi
35318           # Compute POFILES
35319           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35320           # Compute UPDATEPOFILES
35321           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35322           # Compute DUMMYPOFILES
35323           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35324           # Compute GMOFILES
35325           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35326           case "$ac_given_srcdir" in
35327             .) srcdirpre= ;;
35328             *) srcdirpre='$(srcdir)/' ;;
35329           esac
35330           POFILES=
35331           UPDATEPOFILES=
35332           DUMMYPOFILES=
35333           GMOFILES=
35334           for lang in $ALL_LINGUAS; do
35335             POFILES="$POFILES $srcdirpre$lang.po"
35336             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35337             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35338             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35339           done
35340           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35341           # environment variable.
35342           INST_LINGUAS=
35343           if test -n "$ALL_LINGUAS"; then
35344             for presentlang in $ALL_LINGUAS; do
35345               useit=no
35346               if test "%UNSET%" != "$LINGUAS"; then
35347                 desiredlanguages="$LINGUAS"
35348               else
35349                 desiredlanguages="$ALL_LINGUAS"
35350               fi
35351               for desiredlang in $desiredlanguages; do
35352                 # Use the presentlang catalog if desiredlang is
35353                 #   a. equal to presentlang, or
35354                 #   b. a variant of presentlang (because in this case,
35355                 #      presentlang can be used as a fallback for messages
35356                 #      which are not translated in the desiredlang catalog).
35357                 case "$desiredlang" in
35358                   "$presentlang"*) useit=yes;;
35359                 esac
35360               done
35361               if test $useit = yes; then
35362                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35363               fi
35364             done
35365           fi
35366           CATALOGS=
35367           if test -n "$INST_LINGUAS"; then
35368             for lang in $INST_LINGUAS; do
35369               CATALOGS="$CATALOGS $lang.gmo"
35370             done
35371           fi
35372           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35373           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"
35374           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35375             if test -f "$f"; then
35376               case "$f" in
35377                 *.orig | *.bak | *~) ;;
35378                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35379               esac
35380             fi
35381           done
35382         fi
35383         ;;
35384       esac
35385     done ;;
35386     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35387  ;;
35388
35389   esac
35390 done # for ac_tag
35391
35392
35393 { (exit 0); exit 0; }
35394 _ACEOF
35395 chmod +x $CONFIG_STATUS
35396 ac_clean_files=$ac_clean_files_save
35397
35398
35399 # configure is writing to config.log, and then calls config.status.
35400 # config.status does its own redirection, appending to config.log.
35401 # Unfortunately, on DOS this fails, as config.log is still kept open
35402 # by configure, so config.status won't be able to write to it; its
35403 # output is simply discarded.  So we exec the FD to /dev/null,
35404 # effectively closing config.log, so it can be properly (re)opened and
35405 # appended to by config.status.  When coming back to configure, we
35406 # need to make the FD available again.
35407 if test "$no_create" != yes; then
35408   ac_cs_success=:
35409   ac_config_status_args=
35410   test "$silent" = yes &&
35411     ac_config_status_args="$ac_config_status_args --quiet"
35412   exec 5>/dev/null
35413   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35414   exec 5>>config.log
35415   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35416   # would make configure fail if this is the last instruction.
35417   $ac_cs_success || { (exit 1); exit 1; }
35418 fi
35419
35420
35421 cd scripts
35422 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35423 chmod 755 dvd-handler dvd-simulator
35424 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35425 cd ..
35426
35427 c=src/cats
35428
35429 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35430 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35431
35432 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35433 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35434
35435 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35436 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35437
35438 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35439 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35440
35441 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35442 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35443
35444 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35445 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35446
35447 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35448 chmod 755 $c/sqlite
35449 chmod 755 $c/mysql
35450
35451 chmod 755 src/win32/build-depkgs-mingw32
35452
35453 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35454    largefile_support="yes"
35455 fi
35456
35457 #
35458 # A whole lot of hand springs to get the compiler version.
35459 #  This is because gcc changed the output in version 3.0
35460 #
35461 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35462 if test "x${CCVERSION}" = "x" ; then
35463   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35464 fi
35465 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35466 if test x"${CXXVERSION}" = x ; then
35467   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35468 fi
35469
35470 if test "x${subsysdir}" = "x${sbindir}" ; then
35471    echo " "
35472    echo " "
35473    echo "You have set --sbindir and --with-subsys-dir"
35474    echo "  both equal to: ${subsysdir} "
35475    echo "  This is not permitted. Please reconfigure."
35476    echo " "
35477    echo "Aborting configuration ..."
35478    echo " "
35479    echo " "
35480    exit 1
35481 fi
35482
35483 if test "x${db_name}" = "xInternal" ; then
35484    echo " "
35485    echo " "
35486    echo "You have not specified either --enable-client-only or one of the"
35487    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35488    echo "  This is not permitted. Please reconfigure."
35489    echo " "
35490    echo "Aborting the configuration ..."
35491    echo " "
35492    echo " "
35493    exit 1
35494 fi
35495
35496 echo "
35497 Configuration on `date`:
35498
35499   Host:                       $host -- ${DISTNAME} ${DISTVER}
35500   Bacula version:             ${VERSION} (${DATE})
35501   Source code location:       ${srcdir}
35502   Install binaries:           ${sbindir}
35503   Install config files:       ${sysconfdir}
35504   Scripts directory:          ${scriptdir}
35505   Working directory:          ${working_dir}
35506   PID directory:              ${piddir}
35507   Subsys directory:           ${subsysdir}
35508   Man directory:              ${mandir}
35509   Data directory:             ${datadir}
35510   C Compiler:                 ${CC} ${CCVERSION}
35511   C++ Compiler:               ${CXX} ${CXXVERSION}
35512   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35513   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35514   Libraries:                  ${LIBS}
35515   Statically Linked Tools:    ${support_static_tools}
35516   Statically Linked FD:       ${support_static_fd}
35517   Statically Linked SD:       ${support_static_sd}
35518   Statically Linked DIR:      ${support_static_dir}
35519   Statically Linked CONS:     ${support_static_cons}
35520   Database type:              ${db_name}
35521   Database lib:               ${DB_LIBS}
35522
35523   Job Output Email:           ${job_email}
35524   Traceback Email:            ${dump_email}
35525   SMTP Host Address:          ${smtp_host}
35526
35527   Director Port:              ${dir_port}
35528   File daemon Port:           ${fd_port}
35529   Storage daemon Port:        ${sd_port}
35530
35531   Director User:              ${dir_user}
35532   Director Group:             ${dir_group}
35533   Storage Daemon User:        ${sd_user}
35534   Storage DaemonGroup:        ${sd_group}
35535   File Daemon User:           ${fd_user}
35536   File Daemon Group:          ${fd_group}
35537
35538   SQL binaries Directory      ${SQL_BINDIR}
35539
35540   Large file support:         $largefile_support
35541   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35542   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35543   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35544   TLS support:                ${support_tls}
35545   Encryption support:         ${support_crypto}
35546   ZLIB support:               ${have_zlib}
35547   enable-smartalloc:          ${support_smartalloc}
35548   enable-bat:                 ${support_bat}
35549   enable-gnome:               ${support_gnome} ${gnome_version}
35550   enable-wx-console:          ${support_wx_console} ${wx_version}
35551   enable-tray-monitor:        ${support_tray_monitor}
35552   client-only:                ${build_client_only}
35553   build-dird:                 ${build_dird}
35554   build-stored:               ${build_stored}
35555   ACL support:                ${have_acl}
35556   Python support:             ${support_python} ${PYTHON_LIBS}
35557
35558   " > config.out
35559
35560 cat config.out