]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Remove unwanted /etc/apt... in configure.in
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 QWT_LIB
778 QWT
779 WXCONS_CPPFLAGS
780 WXCONS_LDFLAGS
781 WX_DIR
782 TRAY_MONITOR_CPPFLAGS
783 TRAY_MONITOR_LDFLAGS
784 TRAY_MONITOR_DIR
785 TTOOL_LDFLAGS
786 STATIC_FD
787 STATIC_SD
788 STATIC_DIR
789 STATIC_CONS
790 STATIC_GNOME_CONS
791 STATIC_WX_CONS
792 ALL_DIRS
793 DIRD_DIR
794 DIR_TOOLS
795 STORED_DIR
796 CONS_INC
797 CONS_OBJ
798 CONS_SRC
799 CONS_LIBS
800 CONS_LDFLAGS
801 READLINE_SRC
802 PYTHON_LIBS
803 PYTHON_INCDIR
804 OPENSSL_LIBS
805 OPENSSL_INC
806 working_dir
807 archivedir
808 scriptdir
809 plugindir
810 dump_email
811 job_email
812 smtp_host
813 piddir
814 subsysdir
815 baseport
816 dir_port
817 fd_port
818 sd_port
819 dir_password
820 fd_password
821 sd_password
822 mon_dir_password
823 mon_fd_password
824 mon_sd_password
825 db_name
826 db_user
827 db_password
828 db_port
829 dir_user
830 dir_group
831 sd_user
832 sd_group
833 fd_user
834 fd_group
835 SBINPERM
836 SQL_LFLAGS
837 SQL_INCLUDE
838 SQL_BINDIR
839 DBI_DBD_DRIVERDIR
840 uncomment_dbi
841 DB_PROG
842 DB_PROG_LIB
843 cats
844 DB_TYPE
845 GETCONF
846 XMKMF
847 X_CFLAGS
848 X_PRE_LIBS
849 X_LIBS
850 X_EXTRA_LIBS
851 LIBOBJS
852 FDLIBS
853 DEBUG
854 DINCLUDE
855 DLIB
856 DB_LIBS
857 WCFLAGS
858 WLDFLAGS
859 WRAPLIBS
860 OBJLIST
861 hostname
862 TAPEDRIVE
863 PSCMD
864 WIN32
865 MACOSX
866 DISTNAME
867 DISTVER
868 LTLIBOBJS'
869 ac_subst_files='MCOMMON'
870       ac_precious_vars='build_alias
871 host_alias
872 target_alias
873 CC
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
878 CXX
879 CXXFLAGS
880 CCC
881 CPP
882 WXCONFIG
883 WXFLAGS
884 XMKMF'
885
886
887 # Initialize some variables set by options.
888 ac_init_help=
889 ac_init_version=false
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937   # If the previous option needs an argument, assign it.
938   if test -n "$ac_prev"; then
939     eval $ac_prev=\$ac_option
940     ac_prev=
941     continue
942   fi
943
944   case $ac_option in
945   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946   *)    ac_optarg=yes ;;
947   esac
948
949   # Accept the important Cygnus configure options, so we can diagnose typos.
950
951   case $ac_dashdash$ac_option in
952   --)
953     ac_dashdash=yes ;;
954
955   -bindir | --bindir | --bindi | --bind | --bin | --bi)
956     ac_prev=bindir ;;
957   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
958     bindir=$ac_optarg ;;
959
960   -build | --build | --buil | --bui | --bu)
961     ac_prev=build_alias ;;
962   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
963     build_alias=$ac_optarg ;;
964
965   -cache-file | --cache-file | --cache-fil | --cache-fi \
966   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967     ac_prev=cache_file ;;
968   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
970     cache_file=$ac_optarg ;;
971
972   --config-cache | -C)
973     cache_file=config.cache ;;
974
975   -datadir | --datadir | --datadi | --datad)
976     ac_prev=datadir ;;
977   -datadir=* | --datadir=* | --datadi=* | --datad=*)
978     datadir=$ac_optarg ;;
979
980   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981   | --dataroo | --dataro | --datar)
982     ac_prev=datarootdir ;;
983   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985     datarootdir=$ac_optarg ;;
986
987   -disable-* | --disable-*)
988     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
989     # Reject names that are not valid shell variable names.
990     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
991       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
992    { (exit 1); exit 1; }; }
993     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
994     eval enable_$ac_feature=no ;;
995
996   -docdir | --docdir | --docdi | --doc | --do)
997     ac_prev=docdir ;;
998   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999     docdir=$ac_optarg ;;
1000
1001   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002     ac_prev=dvidir ;;
1003   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004     dvidir=$ac_optarg ;;
1005
1006   -enable-* | --enable-*)
1007     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008     # Reject names that are not valid shell variable names.
1009     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1010       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1011    { (exit 1); exit 1; }; }
1012     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1013     eval enable_$ac_feature=\$ac_optarg ;;
1014
1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017   | --exec | --exe | --ex)
1018     ac_prev=exec_prefix ;;
1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021   | --exec=* | --exe=* | --ex=*)
1022     exec_prefix=$ac_optarg ;;
1023
1024   -gas | --gas | --ga | --g)
1025     # Obsolete; use --with-gas.
1026     with_gas=yes ;;
1027
1028   -help | --help | --hel | --he | -h)
1029     ac_init_help=long ;;
1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031     ac_init_help=recursive ;;
1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033     ac_init_help=short ;;
1034
1035   -host | --host | --hos | --ho)
1036     ac_prev=host_alias ;;
1037   -host=* | --host=* | --hos=* | --ho=*)
1038     host_alias=$ac_optarg ;;
1039
1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041     ac_prev=htmldir ;;
1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043   | --ht=*)
1044     htmldir=$ac_optarg ;;
1045
1046   -includedir | --includedir | --includedi | --included | --include \
1047   | --includ | --inclu | --incl | --inc)
1048     ac_prev=includedir ;;
1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
1051     includedir=$ac_optarg ;;
1052
1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
1054     ac_prev=infodir ;;
1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056     infodir=$ac_optarg ;;
1057
1058   -libdir | --libdir | --libdi | --libd)
1059     ac_prev=libdir ;;
1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061     libdir=$ac_optarg ;;
1062
1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064   | --libexe | --libex | --libe)
1065     ac_prev=libexecdir ;;
1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067   | --libexe=* | --libex=* | --libe=*)
1068     libexecdir=$ac_optarg ;;
1069
1070   -localedir | --localedir | --localedi | --localed | --locale)
1071     ac_prev=localedir ;;
1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073     localedir=$ac_optarg ;;
1074
1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
1076   | --localstate | --localstat | --localsta | --localst | --locals)
1077     ac_prev=localstatedir ;;
1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080     localstatedir=$ac_optarg ;;
1081
1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083     ac_prev=mandir ;;
1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085     mandir=$ac_optarg ;;
1086
1087   -nfp | --nfp | --nf)
1088     # Obsolete; use --without-fp.
1089     with_fp=no ;;
1090
1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092   | --no-cr | --no-c | -n)
1093     no_create=yes ;;
1094
1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097     no_recursion=yes ;;
1098
1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101   | --oldin | --oldi | --old | --ol | --o)
1102     ac_prev=oldincludedir ;;
1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106     oldincludedir=$ac_optarg ;;
1107
1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109     ac_prev=prefix ;;
1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111     prefix=$ac_optarg ;;
1112
1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114   | --program-pre | --program-pr | --program-p)
1115     ac_prev=program_prefix ;;
1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118     program_prefix=$ac_optarg ;;
1119
1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121   | --program-suf | --program-su | --program-s)
1122     ac_prev=program_suffix ;;
1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125     program_suffix=$ac_optarg ;;
1126
1127   -program-transform-name | --program-transform-name \
1128   | --program-transform-nam | --program-transform-na \
1129   | --program-transform-n | --program-transform- \
1130   | --program-transform | --program-transfor \
1131   | --program-transfo | --program-transf \
1132   | --program-trans | --program-tran \
1133   | --progr-tra | --program-tr | --program-t)
1134     ac_prev=program_transform_name ;;
1135   -program-transform-name=* | --program-transform-name=* \
1136   | --program-transform-nam=* | --program-transform-na=* \
1137   | --program-transform-n=* | --program-transform-=* \
1138   | --program-transform=* | --program-transfor=* \
1139   | --program-transfo=* | --program-transf=* \
1140   | --program-trans=* | --program-tran=* \
1141   | --progr-tra=* | --program-tr=* | --program-t=*)
1142     program_transform_name=$ac_optarg ;;
1143
1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145     ac_prev=pdfdir ;;
1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147     pdfdir=$ac_optarg ;;
1148
1149   -psdir | --psdir | --psdi | --psd | --ps)
1150     ac_prev=psdir ;;
1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152     psdir=$ac_optarg ;;
1153
1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155   | -silent | --silent | --silen | --sile | --sil)
1156     silent=yes ;;
1157
1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159     ac_prev=sbindir ;;
1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161   | --sbi=* | --sb=*)
1162     sbindir=$ac_optarg ;;
1163
1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166   | --sharedst | --shareds | --shared | --share | --shar \
1167   | --sha | --sh)
1168     ac_prev=sharedstatedir ;;
1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172   | --sha=* | --sh=*)
1173     sharedstatedir=$ac_optarg ;;
1174
1175   -site | --site | --sit)
1176     ac_prev=site ;;
1177   -site=* | --site=* | --sit=*)
1178     site=$ac_optarg ;;
1179
1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181     ac_prev=srcdir ;;
1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183     srcdir=$ac_optarg ;;
1184
1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186   | --syscon | --sysco | --sysc | --sys | --sy)
1187     ac_prev=sysconfdir ;;
1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190     sysconfdir=$ac_optarg ;;
1191
1192   -target | --target | --targe | --targ | --tar | --ta | --t)
1193     ac_prev=target_alias ;;
1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195     target_alias=$ac_optarg ;;
1196
1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198     verbose=yes ;;
1199
1200   -version | --version | --versio | --versi | --vers | -V)
1201     ac_init_version=: ;;
1202
1203   -with-* | --with-*)
1204     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207       { echo "$as_me: error: invalid package name: $ac_package" >&2
1208    { (exit 1); exit 1; }; }
1209     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210     eval with_$ac_package=\$ac_optarg ;;
1211
1212   -without-* | --without-*)
1213     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216       { echo "$as_me: error: invalid package name: $ac_package" >&2
1217    { (exit 1); exit 1; }; }
1218     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1219     eval with_$ac_package=no ;;
1220
1221   --x)
1222     # Obsolete; use --with-x.
1223     with_x=yes ;;
1224
1225   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1226   | --x-incl | --x-inc | --x-in | --x-i)
1227     ac_prev=x_includes ;;
1228   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1229   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1230     x_includes=$ac_optarg ;;
1231
1232   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1233   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1234     ac_prev=x_libraries ;;
1235   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1236   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1237     x_libraries=$ac_optarg ;;
1238
1239   -*) { echo "$as_me: error: unrecognized option: $ac_option
1240 Try \`$0 --help' for more information." >&2
1241    { (exit 1); exit 1; }; }
1242     ;;
1243
1244   *=*)
1245     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1248       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1249    { (exit 1); exit 1; }; }
1250     eval $ac_envvar=\$ac_optarg
1251     export $ac_envvar ;;
1252
1253   *)
1254     # FIXME: should be removed in autoconf 3.0.
1255     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1256     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1257       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1258     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1259     ;;
1260
1261   esac
1262 done
1263
1264 if test -n "$ac_prev"; then
1265   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1266   { echo "$as_me: error: missing argument to $ac_option" >&2
1267    { (exit 1); exit 1; }; }
1268 fi
1269
1270 # Be sure to have absolute directory names.
1271 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1272                 datadir sysconfdir sharedstatedir localstatedir includedir \
1273                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1274                 libdir localedir mandir
1275 do
1276   eval ac_val=\$$ac_var
1277   case $ac_val in
1278     [\\/$]* | ?:[\\/]* )  continue;;
1279     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1280   esac
1281   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1282    { (exit 1); exit 1; }; }
1283 done
1284
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1291
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294   if test "x$build_alias" = x; then
1295     cross_compiling=maybe
1296     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1297     If a cross compiler is detected then cross compile mode will be used." >&2
1298   elif test "x$build_alias" != "x$host_alias"; then
1299     cross_compiling=yes
1300   fi
1301 fi
1302
1303 ac_tool_prefix=
1304 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306 test "$silent" = yes && exec 6>/dev/null
1307
1308
1309 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310 ac_ls_di=`ls -di .` &&
1311 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1312   { echo "$as_me: error: Working directory cannot be determined" >&2
1313    { (exit 1); exit 1; }; }
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315   { echo "$as_me: error: pwd does not report name of working directory" >&2
1316    { (exit 1); exit 1; }; }
1317
1318
1319 # Find the source files, if location was not specified.
1320 if test -z "$srcdir"; then
1321   ac_srcdir_defaulted=yes
1322   # Try the directory containing this script, then the parent directory.
1323   ac_confdir=`$as_dirname -- "$0" ||
1324 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325          X"$0" : 'X\(//\)[^/]' \| \
1326          X"$0" : 'X\(//\)$' \| \
1327          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1328 echo X"$0" |
1329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330             s//\1/
1331             q
1332           }
1333           /^X\(\/\/\)[^/].*/{
1334             s//\1/
1335             q
1336           }
1337           /^X\(\/\/\)$/{
1338             s//\1/
1339             q
1340           }
1341           /^X\(\/\).*/{
1342             s//\1/
1343             q
1344           }
1345           s/.*/./; q'`
1346   srcdir=$ac_confdir
1347   if test ! -r "$srcdir/$ac_unique_file"; then
1348     srcdir=..
1349   fi
1350 else
1351   ac_srcdir_defaulted=no
1352 fi
1353 if test ! -r "$srcdir/$ac_unique_file"; then
1354   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1355   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1356    { (exit 1); exit 1; }; }
1357 fi
1358 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 ac_abs_confdir=`(
1360         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1361    { (exit 1); exit 1; }; }
1362         pwd)`
1363 # When building in place, set srcdir=.
1364 if test "$ac_abs_confdir" = "$ac_pwd"; then
1365   srcdir=.
1366 fi
1367 # Remove unnecessary trailing slashes from srcdir.
1368 # Double slashes in file names in object file debugging info
1369 # mess up M-x gdb in Emacs.
1370 case $srcdir in
1371 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 esac
1373 for ac_var in $ac_precious_vars; do
1374   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1375   eval ac_env_${ac_var}_value=\$${ac_var}
1376   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1378 done
1379
1380 #
1381 # Report the --help message.
1382 #
1383 if test "$ac_init_help" = "long"; then
1384   # Omit some internal or obsolete options to make the list less imposing.
1385   # This message is too long to be a string in the A/UX 3.1 sh.
1386   cat <<_ACEOF
1387 \`configure' configures this package to adapt to many kinds of systems.
1388
1389 Usage: $0 [OPTION]... [VAR=VALUE]...
1390
1391 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1392 VAR=VALUE.  See below for descriptions of some of the useful variables.
1393
1394 Defaults for the options are specified in brackets.
1395
1396 Configuration:
1397   -h, --help              display this help and exit
1398       --help=short        display options specific to this package
1399       --help=recursive    display the short help of all the included packages
1400   -V, --version           display version information and exit
1401   -q, --quiet, --silent   do not print \`checking...' messages
1402       --cache-file=FILE   cache test results in FILE [disabled]
1403   -C, --config-cache      alias for \`--cache-file=config.cache'
1404   -n, --no-create         do not create output files
1405       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1406
1407 Installation directories:
1408   --prefix=PREFIX         install architecture-independent files in PREFIX
1409                           [$ac_default_prefix]
1410   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1411                           [PREFIX]
1412
1413 By default, \`make install' will install all the files in
1414 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1415 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1416 for instance \`--prefix=\$HOME'.
1417
1418 For better control, use the options below.
1419
1420 Fine tuning of the installation directories:
1421   --bindir=DIR           user executables [EPREFIX/bin]
1422   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1423   --libexecdir=DIR       program executables [EPREFIX/libexec]
1424   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1425   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1426   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1427   --libdir=DIR           object code libraries [EPREFIX/lib]
1428   --includedir=DIR       C header files [PREFIX/include]
1429   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1430   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1431   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1432   --infodir=DIR          info documentation [DATAROOTDIR/info]
1433   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1434   --mandir=DIR           man documentation [DATAROOTDIR/man]
1435   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1436   --htmldir=DIR          html documentation [DOCDIR]
1437   --dvidir=DIR           dvi documentation [DOCDIR]
1438   --pdfdir=DIR           pdf documentation [DOCDIR]
1439   --psdir=DIR            ps documentation [DOCDIR]
1440 _ACEOF
1441
1442   cat <<\_ACEOF
1443
1444 X features:
1445   --x-includes=DIR    X include files are in DIR
1446   --x-libraries=DIR   X library files are in DIR
1447
1448 System types:
1449   --build=BUILD     configure for building on BUILD [guessed]
1450   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455
1456   cat <<\_ACEOF
1457
1458 Optional Features:
1459   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1460   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1461   --disable-nls           do not use Native Language Support
1462   --disable-rpath         do not hardcode runtime library paths
1463   --enable-gnome          enable build of bgnome-console GUI disabled
1464   --enable-bat  enable build of bat Qt4 GUI disabled
1465   --enable-bwx-console     enable build of wxWidgets console disabled
1466   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1467   --enable-smartalloc     enable smartalloc debugging support disabled
1468   --enable-static-tools   enable static tape tools disabled
1469   --enable-static-fd      enable static File daemon disabled
1470   --enable-static-sd      enable static Storage daemon disabled
1471   --enable-static-dir     enable static Director disabled
1472   --enable-static-cons    enable static Console disabled
1473   --enable-client-only    build client (File daemon) only disabled
1474   --enable-build-dird     enable building of dird (Director) enabled
1475   --enable-build-stored   enable building of stored (Storage daemon) enabled
1476  --disable-conio disable conio support enabled
1477
1478   --enable-ipv6             enable ipv6 support enabled
1479
1480   --disable-readline      disable readline support disable
1481
1482         --enable-batch-insert       enable the DB batch insert code disabled
1483  --enable-batch-insert      enable the DB batch insert code disabled
1484   --disable-largefile     omit support for large files
1485
1486 Optional Packages:
1487   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1490   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1491   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1492   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1493   --without-libintl-prefix     don't search for libintl in includedir and libdir
1494   --with-included-gettext use the GNU gettext library included here
1495  --with-qwt[=DIR]                 specify qwt library directory
1496  --with-readline[=DIR]         specify readline library directory
1497
1498   --with-python[=DIR]   Include Python support.  DIR is the Python base
1499                           install directory, default is to search through
1500                           a number of common places for the Python files.
1501   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1502   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1503   --with-working-dir=PATH        specify path of Bacula working directory
1504   --with-archivedir=PATH        specify path of SD archive directory
1505   --with-scriptdir=PATH    specify path of Bacula scripts directory
1506   --with-plugindir=PATH    specify path of Bacula plugins directory
1507   --with-dump-email=EMAIL        dump email address
1508   --with-job-email=EMAIL         job output email address
1509   --with-smtp-host=HOST          SMTP mail host address
1510   --with-pid-dir=PATH            specify location of Bacula pid files
1511   --with-subsys-dir=PATH         specify location of Bacula subsys file
1512   --with-baseport=PORT           specify base port address for daemons
1513   --with-dir-password=PASSWORD   specify Director's password
1514   --with-fd-password=PASSWORD    specify Client's password
1515   --with-sd-password=PASSWORD    specify Storage daemon's password
1516   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1517   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1518   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1519   --with-db-name=DBNAME        specify database name (default bacula)
1520   --with-db-user=UNAME         specify database user (default bacula)
1521   --with-db-password=UNAME         specify database password (default *none*)
1522   --with-db-port=DBPORT         specify a database port (default null)
1523   --with-dir-user=USER           specify user for Director daemon
1524   --with-dir-group=GROUP                 specify group for Director daemon
1525   --with-sd-user=USER            specify user for Storage daemon
1526   --with-sd-group=GROUP          specify group for Storage daemon
1527   --with-fd-user=USER            specify user for File daemon
1528   --with-fd-group=GROUP          specify group for File daemon
1529   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1530   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1531                           base install directory, defaults to /usr/local/pgsql
1532
1533   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1534                           install directory, default is to search through
1535                           a number of common places for the MySQL files.
1536
1537   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1538                           install directory, default is to search through
1539                           a number of common places for the MySQL files.
1540
1541   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1542                           install directory, default is to search through
1543                           a number of common places for the SQLite3 files.
1544
1545   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1546                           install directory, default is to search through
1547                           a number of common places for the SQLite files.
1548
1549   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1550                           install directory, default is to search through
1551                           a number of common places for the DBI files.
1552
1553   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1554                           the one DBI driver like Mysql, Postgresql, others.
1555                           Default is to not configure any driver.
1556   --with-x                use the X Window System
1557
1558 Some influential environment variables:
1559   CC          C compiler command
1560   CFLAGS      C compiler flags
1561   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1562               nonstandard directory <lib dir>
1563   LIBS        libraries to pass to the linker, e.g. -l<library>
1564   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1565               you have headers in a nonstandard directory <include dir>
1566   CXX         C++ compiler command
1567   CXXFLAGS    C++ compiler flags
1568   CPP         C preprocessor
1569   WXCONFIG    wx-config command. On some systems, you must set it to
1570               wx-config-2.6 to use wxWidgets 2.6.
1571   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1572   XMKMF       Path to xmkmf, Makefile generator for X Window System
1573
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1576
1577 _ACEOF
1578 ac_status=$?
1579 fi
1580
1581 if test "$ac_init_help" = "recursive"; then
1582   # If there are subdirs, report their specific --help.
1583   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1584     test -d "$ac_dir" || continue
1585     ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1591   # A ".." for each directory in $ac_dir_suffix.
1592   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1593   case $ac_top_builddir_sub in
1594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596   esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604   .)  # We are building in place.
1605     ac_srcdir=.
1606     ac_top_srcdir=$ac_top_builddir_sub
1607     ac_abs_top_srcdir=$ac_pwd ;;
1608   [\\/]* | ?:[\\/]* )  # Absolute name.
1609     ac_srcdir=$srcdir$ac_dir_suffix;
1610     ac_top_srcdir=$srcdir
1611     ac_abs_top_srcdir=$srcdir ;;
1612   *) # Relative name.
1613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614     ac_top_srcdir=$ac_top_build_prefix$srcdir
1615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619     cd "$ac_dir" || { ac_status=$?; continue; }
1620     # Check for guested configure.
1621     if test -f "$ac_srcdir/configure.gnu"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624     elif test -f "$ac_srcdir/configure"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure" --help=recursive
1627     else
1628       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629     fi || ac_status=$?
1630     cd "$ac_pwd" || { ac_status=$?; break; }
1631   done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636   cat <<\_ACEOF
1637 configure
1638 generated by GNU Autoconf 2.61
1639
1640 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1641 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645   exit
1646 fi
1647 cat >config.log <<_ACEOF
1648 This file contains any messages produced by compilers while
1649 running configure, to aid debugging if configure makes a mistake.
1650
1651 It was created by $as_me, which was
1652 generated by GNU Autoconf 2.61.  Invocation command line was
1653
1654   $ $0 $@
1655
1656 _ACEOF
1657 exec 5>>config.log
1658 {
1659 cat <<_ASUNAME
1660 ## --------- ##
1661 ## Platform. ##
1662 ## --------- ##
1663
1664 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669
1670 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1672
1673 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1674 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1675 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1677 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1678 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1679 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1680
1681 _ASUNAME
1682
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 for as_dir in $PATH
1685 do
1686   IFS=$as_save_IFS
1687   test -z "$as_dir" && as_dir=.
1688   echo "PATH: $as_dir"
1689 done
1690 IFS=$as_save_IFS
1691
1692 } >&5
1693
1694 cat >&5 <<_ACEOF
1695
1696
1697 ## ----------- ##
1698 ## Core tests. ##
1699 ## ----------- ##
1700
1701 _ACEOF
1702
1703
1704 # Keep a trace of the command line.
1705 # Strip out --no-create and --no-recursion so they do not pile up.
1706 # Strip out --silent because we don't want to record it for future runs.
1707 # Also quote any args containing shell meta-characters.
1708 # Make two passes to allow for proper duplicate-argument suppression.
1709 ac_configure_args=
1710 ac_configure_args0=
1711 ac_configure_args1=
1712 ac_must_keep_next=false
1713 for ac_pass in 1 2
1714 do
1715   for ac_arg
1716   do
1717     case $ac_arg in
1718     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720     | -silent | --silent | --silen | --sile | --sil)
1721       continue ;;
1722     *\'*)
1723       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724     esac
1725     case $ac_pass in
1726     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1727     2)
1728       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1729       if test $ac_must_keep_next = true; then
1730         ac_must_keep_next=false # Got value, back to normal.
1731       else
1732         case $ac_arg in
1733           *=* | --config-cache | -C | -disable-* | --disable-* \
1734           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736           | -with-* | --with-* | -without-* | --without-* | --x)
1737             case "$ac_configure_args0 " in
1738               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739             esac
1740             ;;
1741           -* ) ac_must_keep_next=true ;;
1742         esac
1743       fi
1744       ac_configure_args="$ac_configure_args '$ac_arg'"
1745       ;;
1746     esac
1747   done
1748 done
1749 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1750 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1751
1752 # When interrupted or exit'd, cleanup temporary files, and complete
1753 # config.log.  We remove comments because anyway the quotes in there
1754 # would cause problems or look ugly.
1755 # WARNING: Use '\'' to represent an apostrophe within the trap.
1756 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757 trap 'exit_status=$?
1758   # Save into config.log some information that might help in debugging.
1759   {
1760     echo
1761
1762     cat <<\_ASBOX
1763 ## ---------------- ##
1764 ## Cache variables. ##
1765 ## ---------------- ##
1766 _ASBOX
1767     echo
1768     # The following way of writing the cache mishandles newlines in values,
1769 (
1770   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1771     eval ac_val=\$$ac_var
1772     case $ac_val in #(
1773     *${as_nl}*)
1774       case $ac_var in #(
1775       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1776 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1777       esac
1778       case $ac_var in #(
1779       _ | IFS | as_nl) ;; #(
1780       *) $as_unset $ac_var ;;
1781       esac ;;
1782     esac
1783   done
1784   (set) 2>&1 |
1785     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1786     *${as_nl}ac_space=\ *)
1787       sed -n \
1788         "s/'\''/'\''\\\\'\'''\''/g;
1789           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1790       ;; #(
1791     *)
1792       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1793       ;;
1794     esac |
1795     sort
1796 )
1797     echo
1798
1799     cat <<\_ASBOX
1800 ## ----------------- ##
1801 ## Output variables. ##
1802 ## ----------------- ##
1803 _ASBOX
1804     echo
1805     for ac_var in $ac_subst_vars
1806     do
1807       eval ac_val=\$$ac_var
1808       case $ac_val in
1809       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1810       esac
1811       echo "$ac_var='\''$ac_val'\''"
1812     done | sort
1813     echo
1814
1815     if test -n "$ac_subst_files"; then
1816       cat <<\_ASBOX
1817 ## ------------------- ##
1818 ## File substitutions. ##
1819 ## ------------------- ##
1820 _ASBOX
1821       echo
1822       for ac_var in $ac_subst_files
1823       do
1824         eval ac_val=\$$ac_var
1825         case $ac_val in
1826         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1827         esac
1828         echo "$ac_var='\''$ac_val'\''"
1829       done | sort
1830       echo
1831     fi
1832
1833     if test -s confdefs.h; then
1834       cat <<\_ASBOX
1835 ## ----------- ##
1836 ## confdefs.h. ##
1837 ## ----------- ##
1838 _ASBOX
1839       echo
1840       cat confdefs.h
1841       echo
1842     fi
1843     test "$ac_signal" != 0 &&
1844       echo "$as_me: caught signal $ac_signal"
1845     echo "$as_me: exit $exit_status"
1846   } >&5
1847   rm -f core *.core core.conftest.* &&
1848     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1849     exit $exit_status
1850 ' 0
1851 for ac_signal in 1 2 13 15; do
1852   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1853 done
1854 ac_signal=0
1855
1856 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1857 rm -f -r conftest* confdefs.h
1858
1859 # Predefined preprocessor variables.
1860
1861 cat >>confdefs.h <<_ACEOF
1862 #define PACKAGE_NAME "$PACKAGE_NAME"
1863 _ACEOF
1864
1865
1866 cat >>confdefs.h <<_ACEOF
1867 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1868 _ACEOF
1869
1870
1871 cat >>confdefs.h <<_ACEOF
1872 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1873 _ACEOF
1874
1875
1876 cat >>confdefs.h <<_ACEOF
1877 #define PACKAGE_STRING "$PACKAGE_STRING"
1878 _ACEOF
1879
1880
1881 cat >>confdefs.h <<_ACEOF
1882 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1883 _ACEOF
1884
1885
1886 # Let the site file select an alternate cache file if it wants to.
1887 # Prefer explicitly selected file to automatically selected ones.
1888 if test -n "$CONFIG_SITE"; then
1889   set x "$CONFIG_SITE"
1890 elif test "x$prefix" != xNONE; then
1891   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1892 else
1893   set x "$ac_default_prefix/share/config.site" \
1894         "$ac_default_prefix/etc/config.site"
1895 fi
1896 shift
1897 for ac_site_file
1898 do
1899   if test -r "$ac_site_file"; then
1900     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1901 echo "$as_me: loading site script $ac_site_file" >&6;}
1902     sed 's/^/| /' "$ac_site_file" >&5
1903     . "$ac_site_file"
1904   fi
1905 done
1906
1907 if test -r "$cache_file"; then
1908   # Some versions of bash will fail to source /dev/null (special
1909   # files actually), so we avoid doing that.
1910   if test -f "$cache_file"; then
1911     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1912 echo "$as_me: loading cache $cache_file" >&6;}
1913     case $cache_file in
1914       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1915       *)                      . "./$cache_file";;
1916     esac
1917   fi
1918 else
1919   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1920 echo "$as_me: creating cache $cache_file" >&6;}
1921   >$cache_file
1922 fi
1923
1924 # Check that the precious variables saved in the cache have kept the same
1925 # value.
1926 ac_cache_corrupted=false
1927 for ac_var in $ac_precious_vars; do
1928   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1929   eval ac_new_set=\$ac_env_${ac_var}_set
1930   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1931   eval ac_new_val=\$ac_env_${ac_var}_value
1932   case $ac_old_set,$ac_new_set in
1933     set,)
1934       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1935 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1936       ac_cache_corrupted=: ;;
1937     ,set)
1938       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1939 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1940       ac_cache_corrupted=: ;;
1941     ,);;
1942     *)
1943       if test "x$ac_old_val" != "x$ac_new_val"; then
1944         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1945 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1946         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1947 echo "$as_me:   former value:  $ac_old_val" >&2;}
1948         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1949 echo "$as_me:   current value: $ac_new_val" >&2;}
1950         ac_cache_corrupted=:
1951       fi;;
1952   esac
1953   # Pass precious variables to config.status.
1954   if test "$ac_new_set" = set; then
1955     case $ac_new_val in
1956     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1957     *) ac_arg=$ac_var=$ac_new_val ;;
1958     esac
1959     case " $ac_configure_args " in
1960       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1961       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1962     esac
1963   fi
1964 done
1965 if $ac_cache_corrupted; then
1966   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1967 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1968   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1969 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1970    { (exit 1); exit 1; }; }
1971 fi
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989 ac_ext=c
1990 ac_cpp='$CPP $CPPFLAGS'
1991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1994
1995
1996 BUILD_DIR=`pwd`
1997 cd ..
1998 TOP_DIR=`pwd`
1999 cd ${BUILD_DIR}
2000
2001
2002 ac_aux_dir=
2003 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2004   if test -f "$ac_dir/install-sh"; then
2005     ac_aux_dir=$ac_dir
2006     ac_install_sh="$ac_aux_dir/install-sh -c"
2007     break
2008   elif test -f "$ac_dir/install.sh"; then
2009     ac_aux_dir=$ac_dir
2010     ac_install_sh="$ac_aux_dir/install.sh -c"
2011     break
2012   elif test -f "$ac_dir/shtool"; then
2013     ac_aux_dir=$ac_dir
2014     ac_install_sh="$ac_aux_dir/shtool install -c"
2015     break
2016   fi
2017 done
2018 if test -z "$ac_aux_dir"; then
2019   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2020 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2021    { (exit 1); exit 1; }; }
2022 fi
2023
2024 # These three variables are undocumented and unsupported,
2025 # and are intended to be withdrawn in a future Autoconf release.
2026 # They can cause serious problems if a builder's source tree is in a directory
2027 # whose full name contains unusual characters.
2028 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2029 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2030 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2031
2032
2033 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2034
2035
2036
2037
2038
2039 for ac_prog in true
2040 do
2041   # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   case $TRUEPRG in
2049   [\\/]* | ?:[\\/]*)
2050   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2051   ;;
2052   *)
2053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2060     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066 IFS=$as_save_IFS
2067
2068   ;;
2069 esac
2070 fi
2071 TRUEPRG=$ac_cv_path_TRUEPRG
2072 if test -n "$TRUEPRG"; then
2073   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2074 echo "${ECHO_T}$TRUEPRG" >&6; }
2075 else
2076   { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2078 fi
2079
2080
2081   test -n "$TRUEPRG" && break
2082 done
2083 test -n "$TRUEPRG" || TRUEPRG=":"
2084
2085 for ac_prog in false
2086 do
2087   # Extract the first word of "$ac_prog", so it can be a program name with args.
2088 set dummy $ac_prog; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   case $FALSEPRG in
2095   [\\/]* | ?:[\\/]*)
2096   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2097   ;;
2098   *)
2099   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102   IFS=$as_save_IFS
2103   test -z "$as_dir" && as_dir=.
2104   for ac_exec_ext in '' $ac_executable_extensions; do
2105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2106     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2108     break 2
2109   fi
2110 done
2111 done
2112 IFS=$as_save_IFS
2113
2114   ;;
2115 esac
2116 fi
2117 FALSEPRG=$ac_cv_path_FALSEPRG
2118 if test -n "$FALSEPRG"; then
2119   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2120 echo "${ECHO_T}$FALSEPRG" >&6; }
2121 else
2122   { echo "$as_me:$LINENO: result: no" >&5
2123 echo "${ECHO_T}no" >&6; }
2124 fi
2125
2126
2127   test -n "$FALSEPRG" && break
2128 done
2129 test -n "$FALSEPRG" || FALSEPRG=":"
2130
2131
2132
2133 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2134 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2135 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2136 echo "configuring for bacula $VERSION ($DATE)"
2137
2138
2139
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145 if test -n "$ac_tool_prefix"; then
2146   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2147 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2148 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2150 if test "${ac_cv_prog_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$CC"; then
2154   ac_cv_prog_CC="$CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2158 do
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2163     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2169 IFS=$as_save_IFS
2170
2171 fi
2172 fi
2173 CC=$ac_cv_prog_CC
2174 if test -n "$CC"; then
2175   { echo "$as_me:$LINENO: result: $CC" >&5
2176 echo "${ECHO_T}$CC" >&6; }
2177 else
2178   { echo "$as_me:$LINENO: result: no" >&5
2179 echo "${ECHO_T}no" >&6; }
2180 fi
2181
2182
2183 fi
2184 if test -z "$ac_cv_prog_CC"; then
2185   ac_ct_CC=$CC
2186   # Extract the first word of "gcc", so it can be a program name with args.
2187 set dummy gcc; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$ac_ct_CC"; then
2194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203     ac_cv_prog_ac_ct_CC="gcc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209 IFS=$as_save_IFS
2210
2211 fi
2212 fi
2213 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2214 if test -n "$ac_ct_CC"; then
2215   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2216 echo "${ECHO_T}$ac_ct_CC" >&6; }
2217 else
2218   { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2220 fi
2221
2222   if test "x$ac_ct_CC" = x; then
2223     CC=""
2224   else
2225     case $cross_compiling:$ac_tool_warned in
2226 yes:)
2227 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2228 whose name does not start with the host triplet.  If you think this
2229 configuration is useful to you, please write to autoconf@gnu.org." >&5
2230 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2231 whose name does not start with the host triplet.  If you think this
2232 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2233 ac_tool_warned=yes ;;
2234 esac
2235     CC=$ac_ct_CC
2236   fi
2237 else
2238   CC="$ac_cv_prog_CC"
2239 fi
2240
2241 if test -z "$CC"; then
2242           if test -n "$ac_tool_prefix"; then
2243     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2244 set dummy ${ac_tool_prefix}cc; ac_word=$2
2245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2247 if test "${ac_cv_prog_CC+set}" = set; then
2248   echo $ECHO_N "(cached) $ECHO_C" >&6
2249 else
2250   if test -n "$CC"; then
2251   ac_cv_prog_CC="$CC" # Let the user override the test.
2252 else
2253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 for as_dir in $PATH
2255 do
2256   IFS=$as_save_IFS
2257   test -z "$as_dir" && as_dir=.
2258   for ac_exec_ext in '' $ac_executable_extensions; do
2259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2260     ac_cv_prog_CC="${ac_tool_prefix}cc"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 fi
2269 fi
2270 CC=$ac_cv_prog_CC
2271 if test -n "$CC"; then
2272   { echo "$as_me:$LINENO: result: $CC" >&5
2273 echo "${ECHO_T}$CC" >&6; }
2274 else
2275   { echo "$as_me:$LINENO: result: no" >&5
2276 echo "${ECHO_T}no" >&6; }
2277 fi
2278
2279
2280   fi
2281 fi
2282 if test -z "$CC"; then
2283   # Extract the first word of "cc", so it can be a program name with args.
2284 set dummy cc; ac_word=$2
2285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   if test -n "$CC"; then
2291   ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293   ac_prog_rejected=no
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   for ac_exec_ext in '' $ac_executable_extensions; do
2300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2302        ac_prog_rejected=yes
2303        continue
2304      fi
2305     ac_cv_prog_CC="cc"
2306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 if test $ac_prog_rejected = yes; then
2314   # We found a bogon in the path, so make sure we never use it.
2315   set dummy $ac_cv_prog_CC
2316   shift
2317   if test $# != 0; then
2318     # We chose a different compiler from the bogus one.
2319     # However, it has the same basename, so the bogon will be chosen
2320     # first if we set CC to just the basename; use the full file name.
2321     shift
2322     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2323   fi
2324 fi
2325 fi
2326 fi
2327 CC=$ac_cv_prog_CC
2328 if test -n "$CC"; then
2329   { echo "$as_me:$LINENO: result: $CC" >&5
2330 echo "${ECHO_T}$CC" >&6; }
2331 else
2332   { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2334 fi
2335
2336
2337 fi
2338 if test -z "$CC"; then
2339   if test -n "$ac_tool_prefix"; then
2340   for ac_prog in cl.exe
2341   do
2342     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347   echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349   if test -n "$CC"; then
2350   ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353 for as_dir in $PATH
2354 do
2355   IFS=$as_save_IFS
2356   test -z "$as_dir" && as_dir=.
2357   for ac_exec_ext in '' $ac_executable_extensions; do
2358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2359     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361     break 2
2362   fi
2363 done
2364 done
2365 IFS=$as_save_IFS
2366
2367 fi
2368 fi
2369 CC=$ac_cv_prog_CC
2370 if test -n "$CC"; then
2371   { echo "$as_me:$LINENO: result: $CC" >&5
2372 echo "${ECHO_T}$CC" >&6; }
2373 else
2374   { echo "$as_me:$LINENO: result: no" >&5
2375 echo "${ECHO_T}no" >&6; }
2376 fi
2377
2378
2379     test -n "$CC" && break
2380   done
2381 fi
2382 if test -z "$CC"; then
2383   ac_ct_CC=$CC
2384   for ac_prog in cl.exe
2385 do
2386   # Extract the first word of "$ac_prog", so it can be a program name with args.
2387 set dummy $ac_prog; ac_word=$2
2388 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2391   echo $ECHO_N "(cached) $ECHO_C" >&6
2392 else
2393   if test -n "$ac_ct_CC"; then
2394   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2395 else
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 for as_dir in $PATH
2398 do
2399   IFS=$as_save_IFS
2400   test -z "$as_dir" && as_dir=.
2401   for ac_exec_ext in '' $ac_executable_extensions; do
2402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2403     ac_cv_prog_ac_ct_CC="$ac_prog"
2404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405     break 2
2406   fi
2407 done
2408 done
2409 IFS=$as_save_IFS
2410
2411 fi
2412 fi
2413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2414 if test -n "$ac_ct_CC"; then
2415   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2416 echo "${ECHO_T}$ac_ct_CC" >&6; }
2417 else
2418   { echo "$as_me:$LINENO: result: no" >&5
2419 echo "${ECHO_T}no" >&6; }
2420 fi
2421
2422
2423   test -n "$ac_ct_CC" && break
2424 done
2425
2426   if test "x$ac_ct_CC" = x; then
2427     CC=""
2428   else
2429     case $cross_compiling:$ac_tool_warned in
2430 yes:)
2431 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet.  If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&5
2434 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2435 whose name does not start with the host triplet.  If you think this
2436 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2437 ac_tool_warned=yes ;;
2438 esac
2439     CC=$ac_ct_CC
2440   fi
2441 fi
2442
2443 fi
2444
2445
2446 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2447 See \`config.log' for more details." >&5
2448 echo "$as_me: error: no acceptable C compiler found in \$PATH
2449 See \`config.log' for more details." >&2;}
2450    { (exit 1); exit 1; }; }
2451
2452 # Provide some information about the compiler.
2453 echo "$as_me:$LINENO: checking for C compiler version" >&5
2454 ac_compiler=`set X $ac_compile; echo $2`
2455 { (ac_try="$ac_compiler --version >&5"
2456 case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_compiler --version >&5") 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }
2465 { (ac_try="$ac_compiler -v >&5"
2466 case "(($ac_try" in
2467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468   *) ac_try_echo=$ac_try;;
2469 esac
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471   (eval "$ac_compiler -v >&5") 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }
2475 { (ac_try="$ac_compiler -V >&5"
2476 case "(($ac_try" in
2477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478   *) ac_try_echo=$ac_try;;
2479 esac
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481   (eval "$ac_compiler -V >&5") 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }
2485
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h.  */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h.  */
2492
2493 int
2494 main ()
2495 {
2496
2497   ;
2498   return 0;
2499 }
2500 _ACEOF
2501 ac_clean_files_save=$ac_clean_files
2502 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2503 # Try to create an executable without -o first, disregard a.out.
2504 # It will help us diagnose broken compilers, and finding out an intuition
2505 # of exeext.
2506 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2507 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2508 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2509 #
2510 # List of possible output files, starting from the most likely.
2511 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2512 # only as a last resort.  b.out is created by i960 compilers.
2513 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2514 #
2515 # The IRIX 6 linker writes into existing files which may not be
2516 # executable, retaining their permissions.  Remove them first so a
2517 # subsequent execution test works.
2518 ac_rmfiles=
2519 for ac_file in $ac_files
2520 do
2521   case $ac_file in
2522     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2523     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2524   esac
2525 done
2526 rm -f $ac_rmfiles
2527
2528 if { (ac_try="$ac_link_default"
2529 case "(($ac_try" in
2530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2531   *) ac_try_echo=$ac_try;;
2532 esac
2533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2534   (eval "$ac_link_default") 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; then
2538   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2539 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2540 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2541 # so that the user can short-circuit this test for compilers unknown to
2542 # Autoconf.
2543 for ac_file in $ac_files ''
2544 do
2545   test -f "$ac_file" || continue
2546   case $ac_file in
2547     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2548         ;;
2549     [ab].out )
2550         # We found the default executable, but exeext='' is most
2551         # certainly right.
2552         break;;
2553     *.* )
2554         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2555         then :; else
2556            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2557         fi
2558         # We set ac_cv_exeext here because the later test for it is not
2559         # safe: cross compilers may not add the suffix if given an `-o'
2560         # argument, so we may need to know it at that point already.
2561         # Even if this section looks crufty: it has the advantage of
2562         # actually working.
2563         break;;
2564     * )
2565         break;;
2566   esac
2567 done
2568 test "$ac_cv_exeext" = no && ac_cv_exeext=
2569
2570 else
2571   ac_file=''
2572 fi
2573
2574 { echo "$as_me:$LINENO: result: $ac_file" >&5
2575 echo "${ECHO_T}$ac_file" >&6; }
2576 if test -z "$ac_file"; then
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584    { (exit 77); exit 77; }; }
2585 fi
2586
2587 ac_exeext=$ac_cv_exeext
2588
2589 # Check that the compiler produces executables we can run.  If not, either
2590 # the compiler is broken, or we cross compile.
2591 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2592 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2593 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2594 # If not cross compiling, check that we can run a simple program.
2595 if test "$cross_compiling" != yes; then
2596   if { ac_try='./$ac_file'
2597   { (case "(($ac_try" in
2598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599   *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602   (eval "$ac_try") 2>&5
2603   ac_status=$?
2604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605   (exit $ac_status); }; }; then
2606     cross_compiling=no
2607   else
2608     if test "$cross_compiling" = maybe; then
2609         cross_compiling=yes
2610     else
2611         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2612 If you meant to cross compile, use \`--host'.
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&2;}
2617    { (exit 1); exit 1; }; }
2618     fi
2619   fi
2620 fi
2621 { echo "$as_me:$LINENO: result: yes" >&5
2622 echo "${ECHO_T}yes" >&6; }
2623
2624 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2625 ac_clean_files=$ac_clean_files_save
2626 # Check that the compiler produces executables we can run.  If not, either
2627 # the compiler is broken, or we cross compile.
2628 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2629 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2630 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2631 echo "${ECHO_T}$cross_compiling" >&6; }
2632
2633 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2634 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2635 if { (ac_try="$ac_link"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_link") 2>&5
2642   ac_status=$?
2643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; then
2645   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2646 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2647 # work properly (i.e., refer to `conftest.exe'), while it won't with
2648 # `rm'.
2649 for ac_file in conftest.exe conftest conftest.*; do
2650   test -f "$ac_file" || continue
2651   case $ac_file in
2652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2653     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2654           break;;
2655     * ) break;;
2656   esac
2657 done
2658 else
2659   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2660 See \`config.log' for more details." >&5
2661 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }
2664 fi
2665
2666 rm -f conftest$ac_cv_exeext
2667 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2668 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2669
2670 rm -f conftest.$ac_ext
2671 EXEEXT=$ac_cv_exeext
2672 ac_exeext=$EXEEXT
2673 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2674 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2675 if test "${ac_cv_objext+set}" = set; then
2676   echo $ECHO_N "(cached) $ECHO_C" >&6
2677 else
2678   cat >conftest.$ac_ext <<_ACEOF
2679 /* confdefs.h.  */
2680 _ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h.  */
2684
2685 int
2686 main ()
2687 {
2688
2689   ;
2690   return 0;
2691 }
2692 _ACEOF
2693 rm -f conftest.o conftest.obj
2694 if { (ac_try="$ac_compile"
2695 case "(($ac_try" in
2696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697   *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700   (eval "$ac_compile") 2>&5
2701   ac_status=$?
2702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703   (exit $ac_status); }; then
2704   for ac_file in conftest.o conftest.obj conftest.*; do
2705   test -f "$ac_file" || continue;
2706   case $ac_file in
2707     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2708     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2709        break;;
2710   esac
2711 done
2712 else
2713   echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2715
2716 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2717 See \`config.log' for more details." >&5
2718 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2719 See \`config.log' for more details." >&2;}
2720    { (exit 1); exit 1; }; }
2721 fi
2722
2723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2724 fi
2725 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2726 echo "${ECHO_T}$ac_cv_objext" >&6; }
2727 OBJEXT=$ac_cv_objext
2728 ac_objext=$OBJEXT
2729 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2730 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2731 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2732   echo $ECHO_N "(cached) $ECHO_C" >&6
2733 else
2734   cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h.  */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h.  */
2740
2741 int
2742 main ()
2743 {
2744 #ifndef __GNUC__
2745        choke me
2746 #endif
2747
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756   *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759   (eval "$ac_compile") 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } && {
2766          test -z "$ac_c_werror_flag" ||
2767          test ! -s conftest.err
2768        } && test -s conftest.$ac_objext; then
2769   ac_compiler_gnu=yes
2770 else
2771   echo "$as_me: failed program was:" >&5
2772 sed 's/^/| /' conftest.$ac_ext >&5
2773
2774         ac_compiler_gnu=no
2775 fi
2776
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2779
2780 fi
2781 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2782 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2783 GCC=`test $ac_compiler_gnu = yes && echo yes`
2784 ac_test_CFLAGS=${CFLAGS+set}
2785 ac_save_CFLAGS=$CFLAGS
2786 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2787 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2788 if test "${ac_cv_prog_cc_g+set}" = set; then
2789   echo $ECHO_N "(cached) $ECHO_C" >&6
2790 else
2791   ac_save_c_werror_flag=$ac_c_werror_flag
2792    ac_c_werror_flag=yes
2793    ac_cv_prog_cc_g=no
2794    CFLAGS="-g"
2795    cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h.  */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h.  */
2801
2802 int
2803 main ()
2804 {
2805
2806   ;
2807   return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (ac_try="$ac_compile"
2812 case "(($ac_try" in
2813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2814   *) ac_try_echo=$ac_try;;
2815 esac
2816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2817   (eval "$ac_compile") 2>conftest.er1
2818   ac_status=$?
2819   grep -v '^ *+' conftest.er1 >conftest.err
2820   rm -f conftest.er1
2821   cat conftest.err >&5
2822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); } && {
2824          test -z "$ac_c_werror_flag" ||
2825          test ! -s conftest.err
2826        } && test -s conftest.$ac_objext; then
2827   ac_cv_prog_cc_g=yes
2828 else
2829   echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832         CFLAGS=""
2833       cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839
2840 int
2841 main ()
2842 {
2843
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855   (eval "$ac_compile") 2>conftest.er1
2856   ac_status=$?
2857   grep -v '^ *+' conftest.er1 >conftest.err
2858   rm -f conftest.er1
2859   cat conftest.err >&5
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); } && {
2862          test -z "$ac_c_werror_flag" ||
2863          test ! -s conftest.err
2864        } && test -s conftest.$ac_objext; then
2865   :
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870         ac_c_werror_flag=$ac_save_c_werror_flag
2871          CFLAGS="-g"
2872          cat >conftest.$ac_ext <<_ACEOF
2873 /* confdefs.h.  */
2874 _ACEOF
2875 cat confdefs.h >>conftest.$ac_ext
2876 cat >>conftest.$ac_ext <<_ACEOF
2877 /* end confdefs.h.  */
2878
2879 int
2880 main ()
2881 {
2882
2883   ;
2884   return 0;
2885 }
2886 _ACEOF
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2889 case "(($ac_try" in
2890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891   *) ac_try_echo=$ac_try;;
2892 esac
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894   (eval "$ac_compile") 2>conftest.er1
2895   ac_status=$?
2896   grep -v '^ *+' conftest.er1 >conftest.err
2897   rm -f conftest.er1
2898   cat conftest.err >&5
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); } && {
2901          test -z "$ac_c_werror_flag" ||
2902          test ! -s conftest.err
2903        } && test -s conftest.$ac_objext; then
2904   ac_cv_prog_cc_g=yes
2905 else
2906   echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2908
2909
2910 fi
2911
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 fi
2914
2915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2916 fi
2917
2918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2919    ac_c_werror_flag=$ac_save_c_werror_flag
2920 fi
2921 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2922 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2923 if test "$ac_test_CFLAGS" = set; then
2924   CFLAGS=$ac_save_CFLAGS
2925 elif test $ac_cv_prog_cc_g = yes; then
2926   if test "$GCC" = yes; then
2927     CFLAGS="-g -O2"
2928   else
2929     CFLAGS="-g"
2930   fi
2931 else
2932   if test "$GCC" = yes; then
2933     CFLAGS="-O2"
2934   else
2935     CFLAGS=
2936   fi
2937 fi
2938 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2939 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2940 if test "${ac_cv_prog_cc_c89+set}" = set; then
2941   echo $ECHO_N "(cached) $ECHO_C" >&6
2942 else
2943   ac_cv_prog_cc_c89=no
2944 ac_save_CC=$CC
2945 cat >conftest.$ac_ext <<_ACEOF
2946 /* confdefs.h.  */
2947 _ACEOF
2948 cat confdefs.h >>conftest.$ac_ext
2949 cat >>conftest.$ac_ext <<_ACEOF
2950 /* end confdefs.h.  */
2951 #include <stdarg.h>
2952 #include <stdio.h>
2953 #include <sys/types.h>
2954 #include <sys/stat.h>
2955 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2956 struct buf { int x; };
2957 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2958 static char *e (p, i)
2959      char **p;
2960      int i;
2961 {
2962   return p[i];
2963 }
2964 static char *f (char * (*g) (char **, int), char **p, ...)
2965 {
2966   char *s;
2967   va_list v;
2968   va_start (v,p);
2969   s = g (p, va_arg (v,int));
2970   va_end (v);
2971   return s;
2972 }
2973
2974 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2975    function prototypes and stuff, but not '\xHH' hex character constants.
2976    These don't provoke an error unfortunately, instead are silently treated
2977    as 'x'.  The following induces an error, until -std is added to get
2978    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2979    array size at least.  It's necessary to write '\x00'==0 to get something
2980    that's true only with -std.  */
2981 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2982
2983 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2984    inside strings and character constants.  */
2985 #define FOO(x) 'x'
2986 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2987
2988 int test (int i, double x);
2989 struct s1 {int (*f) (int a);};
2990 struct s2 {int (*f) (double a);};
2991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2992 int argc;
2993 char **argv;
2994 int
2995 main ()
2996 {
2997 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3003         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3004 do
3005   CC="$ac_save_CC $ac_arg"
3006   rm -f conftest.$ac_objext
3007 if { (ac_try="$ac_compile"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compile") 2>conftest.er1
3014   ac_status=$?
3015   grep -v '^ *+' conftest.er1 >conftest.err
3016   rm -f conftest.er1
3017   cat conftest.err >&5
3018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019   (exit $ac_status); } && {
3020          test -z "$ac_c_werror_flag" ||
3021          test ! -s conftest.err
3022        } && test -s conftest.$ac_objext; then
3023   ac_cv_prog_cc_c89=$ac_arg
3024 else
3025   echo "$as_me: failed program was:" >&5
3026 sed 's/^/| /' conftest.$ac_ext >&5
3027
3028
3029 fi
3030
3031 rm -f core conftest.err conftest.$ac_objext
3032   test "x$ac_cv_prog_cc_c89" != "xno" && break
3033 done
3034 rm -f conftest.$ac_ext
3035 CC=$ac_save_CC
3036
3037 fi
3038 # AC_CACHE_VAL
3039 case "x$ac_cv_prog_cc_c89" in
3040   x)
3041     { echo "$as_me:$LINENO: result: none needed" >&5
3042 echo "${ECHO_T}none needed" >&6; } ;;
3043   xno)
3044     { echo "$as_me:$LINENO: result: unsupported" >&5
3045 echo "${ECHO_T}unsupported" >&6; } ;;
3046   *)
3047     CC="$CC $ac_cv_prog_cc_c89"
3048     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3049 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3050 esac
3051
3052
3053 ac_ext=c
3054 ac_cpp='$CPP $CPPFLAGS'
3055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058
3059 ac_ext=cpp
3060 ac_cpp='$CXXCPP $CPPFLAGS'
3061 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3062 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3063 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3064 if test -z "$CXX"; then
3065   if test -n "$CCC"; then
3066     CXX=$CCC
3067   else
3068     if test -n "$ac_tool_prefix"; then
3069   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3070   do
3071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3075 if test "${ac_cv_prog_CXX+set}" = set; then
3076   echo $ECHO_N "(cached) $ECHO_C" >&6
3077 else
3078   if test -n "$CXX"; then
3079   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 CXX=$ac_cv_prog_CXX
3099 if test -n "$CXX"; then
3100   { echo "$as_me:$LINENO: result: $CXX" >&5
3101 echo "${ECHO_T}$CXX" >&6; }
3102 else
3103   { echo "$as_me:$LINENO: result: no" >&5
3104 echo "${ECHO_T}no" >&6; }
3105 fi
3106
3107
3108     test -n "$CXX" && break
3109   done
3110 fi
3111 if test -z "$CXX"; then
3112   ac_ct_CXX=$CXX
3113   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3114 do
3115   # Extract the first word of "$ac_prog", so it can be a program name with args.
3116 set dummy $ac_prog; ac_word=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3120   echo $ECHO_N "(cached) $ECHO_C" >&6
3121 else
3122   if test -n "$ac_ct_CXX"; then
3123   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3124 else
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130   for ac_exec_ext in '' $ac_executable_extensions; do
3131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132     ac_cv_prog_ac_ct_CXX="$ac_prog"
3133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3134     break 2
3135   fi
3136 done
3137 done
3138 IFS=$as_save_IFS
3139
3140 fi
3141 fi
3142 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3143 if test -n "$ac_ct_CXX"; then
3144   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3145 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3146 else
3147   { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3149 fi
3150
3151
3152   test -n "$ac_ct_CXX" && break
3153 done
3154
3155   if test "x$ac_ct_CXX" = x; then
3156     CXX="g++"
3157   else
3158     case $cross_compiling:$ac_tool_warned in
3159 yes:)
3160 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3161 whose name does not start with the host triplet.  If you think this
3162 configuration is useful to you, please write to autoconf@gnu.org." >&5
3163 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3164 whose name does not start with the host triplet.  If you think this
3165 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3166 ac_tool_warned=yes ;;
3167 esac
3168     CXX=$ac_ct_CXX
3169   fi
3170 fi
3171
3172   fi
3173 fi
3174 # Provide some information about the compiler.
3175 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3176 ac_compiler=`set X $ac_compile; echo $2`
3177 { (ac_try="$ac_compiler --version >&5"
3178 case "(($ac_try" in
3179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180   *) ac_try_echo=$ac_try;;
3181 esac
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183   (eval "$ac_compiler --version >&5") 2>&5
3184   ac_status=$?
3185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186   (exit $ac_status); }
3187 { (ac_try="$ac_compiler -v >&5"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_compiler -v >&5") 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }
3197 { (ac_try="$ac_compiler -V >&5"
3198 case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_compiler -V >&5") 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }
3207
3208 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3209 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3210 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3211   echo $ECHO_N "(cached) $ECHO_C" >&6
3212 else
3213   cat >conftest.$ac_ext <<_ACEOF
3214 /* confdefs.h.  */
3215 _ACEOF
3216 cat confdefs.h >>conftest.$ac_ext
3217 cat >>conftest.$ac_ext <<_ACEOF
3218 /* end confdefs.h.  */
3219
3220 int
3221 main ()
3222 {
3223 #ifndef __GNUC__
3224        choke me
3225 #endif
3226
3227   ;
3228   return 0;
3229 }
3230 _ACEOF
3231 rm -f conftest.$ac_objext
3232 if { (ac_try="$ac_compile"
3233 case "(($ac_try" in
3234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235   *) ac_try_echo=$ac_try;;
3236 esac
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238   (eval "$ac_compile") 2>conftest.er1
3239   ac_status=$?
3240   grep -v '^ *+' conftest.er1 >conftest.err
3241   rm -f conftest.er1
3242   cat conftest.err >&5
3243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244   (exit $ac_status); } && {
3245          test -z "$ac_cxx_werror_flag" ||
3246          test ! -s conftest.err
3247        } && test -s conftest.$ac_objext; then
3248   ac_compiler_gnu=yes
3249 else
3250   echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253         ac_compiler_gnu=no
3254 fi
3255
3256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3257 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3258
3259 fi
3260 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3261 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3262 GXX=`test $ac_compiler_gnu = yes && echo yes`
3263 ac_test_CXXFLAGS=${CXXFLAGS+set}
3264 ac_save_CXXFLAGS=$CXXFLAGS
3265 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3266 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3267 if test "${ac_cv_prog_cxx_g+set}" = set; then
3268   echo $ECHO_N "(cached) $ECHO_C" >&6
3269 else
3270   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3271    ac_cxx_werror_flag=yes
3272    ac_cv_prog_cxx_g=no
3273    CXXFLAGS="-g"
3274    cat >conftest.$ac_ext <<_ACEOF
3275 /* confdefs.h.  */
3276 _ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h.  */
3280
3281 int
3282 main ()
3283 {
3284
3285   ;
3286   return 0;
3287 }
3288 _ACEOF
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3291 case "(($ac_try" in
3292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293   *) ac_try_echo=$ac_try;;
3294 esac
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296   (eval "$ac_compile") 2>conftest.er1
3297   ac_status=$?
3298   grep -v '^ *+' conftest.er1 >conftest.err
3299   rm -f conftest.er1
3300   cat conftest.err >&5
3301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302   (exit $ac_status); } && {
3303          test -z "$ac_cxx_werror_flag" ||
3304          test ! -s conftest.err
3305        } && test -s conftest.$ac_objext; then
3306   ac_cv_prog_cxx_g=yes
3307 else
3308   echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311         CXXFLAGS=""
3312       cat >conftest.$ac_ext <<_ACEOF
3313 /* confdefs.h.  */
3314 _ACEOF
3315 cat confdefs.h >>conftest.$ac_ext
3316 cat >>conftest.$ac_ext <<_ACEOF
3317 /* end confdefs.h.  */
3318
3319 int
3320 main ()
3321 {
3322
3323   ;
3324   return 0;
3325 }
3326 _ACEOF
3327 rm -f conftest.$ac_objext
3328 if { (ac_try="$ac_compile"
3329 case "(($ac_try" in
3330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331   *) ac_try_echo=$ac_try;;
3332 esac
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334   (eval "$ac_compile") 2>conftest.er1
3335   ac_status=$?
3336   grep -v '^ *+' conftest.er1 >conftest.err
3337   rm -f conftest.er1
3338   cat conftest.err >&5
3339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340   (exit $ac_status); } && {
3341          test -z "$ac_cxx_werror_flag" ||
3342          test ! -s conftest.err
3343        } && test -s conftest.$ac_objext; then
3344   :
3345 else
3346   echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3348
3349         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3350          CXXFLAGS="-g"
3351          cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357
3358 int
3359 main ()
3360 {
3361
3362   ;
3363   return 0;
3364 }
3365 _ACEOF
3366 rm -f conftest.$ac_objext
3367 if { (ac_try="$ac_compile"
3368 case "(($ac_try" in
3369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370   *) ac_try_echo=$ac_try;;
3371 esac
3372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373   (eval "$ac_compile") 2>conftest.er1
3374   ac_status=$?
3375   grep -v '^ *+' conftest.er1 >conftest.err
3376   rm -f conftest.er1
3377   cat conftest.err >&5
3378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379   (exit $ac_status); } && {
3380          test -z "$ac_cxx_werror_flag" ||
3381          test ! -s conftest.err
3382        } && test -s conftest.$ac_objext; then
3383   ac_cv_prog_cxx_g=yes
3384 else
3385   echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3387
3388
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 fi
3393
3394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3395 fi
3396
3397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3398    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3399 fi
3400 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3401 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3402 if test "$ac_test_CXXFLAGS" = set; then
3403   CXXFLAGS=$ac_save_CXXFLAGS
3404 elif test $ac_cv_prog_cxx_g = yes; then
3405   if test "$GXX" = yes; then
3406     CXXFLAGS="-g -O2"
3407   else
3408     CXXFLAGS="-g"
3409   fi
3410 else
3411   if test "$GXX" = yes; then
3412     CXXFLAGS="-O2"
3413   else
3414     CXXFLAGS=
3415   fi
3416 fi
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423 if test "x$CC" != xcc; then
3424   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3425 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3426 else
3427   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3428 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3429 fi
3430 set dummy $CC; ac_cc=`echo $2 |
3431                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3432 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3433   echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435   cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h.  */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h.  */
3441
3442 int
3443 main ()
3444 {
3445
3446   ;
3447   return 0;
3448 }
3449 _ACEOF
3450 # Make sure it works both with $CC and with simple cc.
3451 # We do the test twice because some compilers refuse to overwrite an
3452 # existing .o file with -o, though they will create one.
3453 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3454 rm -f conftest2.*
3455 if { (case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_try") 2>&5
3461   ac_status=$?
3462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463   (exit $ac_status); } &&
3464    test -f conftest2.$ac_objext && { (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 then
3474   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3475   if test "x$CC" != xcc; then
3476     # Test first that cc exists at all.
3477     if { ac_try='cc -c conftest.$ac_ext >&5'
3478   { (case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; }; then
3487       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3488       rm -f conftest2.*
3489       if { (case "(($ac_try" in
3490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491   *) ac_try_echo=$ac_try;;
3492 esac
3493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3494   (eval "$ac_try") 2>&5
3495   ac_status=$?
3496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3497   (exit $ac_status); } &&
3498          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500   *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503   (eval "$ac_try") 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); };
3507       then
3508         # cc works too.
3509         :
3510       else
3511         # cc exists but doesn't like -o.
3512         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3513       fi
3514     fi
3515   fi
3516 else
3517   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3518 fi
3519 rm -f core conftest*
3520
3521 fi
3522 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3523   { echo "$as_me:$LINENO: result: yes" >&5
3524 echo "${ECHO_T}yes" >&6; }
3525 else
3526   { echo "$as_me:$LINENO: result: no" >&5
3527 echo "${ECHO_T}no" >&6; }
3528
3529 cat >>confdefs.h <<\_ACEOF
3530 #define NO_MINUS_C_MINUS_O 1
3531 _ACEOF
3532
3533 fi
3534
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3540 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3541 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3542 # On Suns, sometimes $CPP names a directory.
3543 if test -n "$CPP" && test -d "$CPP"; then
3544   CPP=
3545 fi
3546 if test -z "$CPP"; then
3547   if test "${ac_cv_prog_CPP+set}" = set; then
3548   echo $ECHO_N "(cached) $ECHO_C" >&6
3549 else
3550       # Double quotes because CPP needs to be expanded
3551     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3552     do
3553       ac_preproc_ok=false
3554 for ac_c_preproc_warn_flag in '' yes
3555 do
3556   # Use a header file that comes with gcc, so configuring glibc
3557   # with a fresh cross-compiler works.
3558   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3559   # <limits.h> exists even on freestanding compilers.
3560   # On the NeXT, cc -E runs the code through the compiler's parser,
3561   # not just through cpp. "Syntax error" is here to catch this case.
3562   cat >conftest.$ac_ext <<_ACEOF
3563 /* confdefs.h.  */
3564 _ACEOF
3565 cat confdefs.h >>conftest.$ac_ext
3566 cat >>conftest.$ac_ext <<_ACEOF
3567 /* end confdefs.h.  */
3568 #ifdef __STDC__
3569 # include <limits.h>
3570 #else
3571 # include <assert.h>
3572 #endif
3573                      Syntax error
3574 _ACEOF
3575 if { (ac_try="$ac_cpp conftest.$ac_ext"
3576 case "(($ac_try" in
3577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578   *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3582   ac_status=$?
3583   grep -v '^ *+' conftest.er1 >conftest.err
3584   rm -f conftest.er1
3585   cat conftest.err >&5
3586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587   (exit $ac_status); } >/dev/null && {
3588          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3589          test ! -s conftest.err
3590        }; then
3591   :
3592 else
3593   echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3595
3596   # Broken: fails on valid input.
3597 continue
3598 fi
3599
3600 rm -f conftest.err conftest.$ac_ext
3601
3602   # OK, works on sane cases.  Now check whether nonexistent headers
3603   # can be detected and how.
3604   cat >conftest.$ac_ext <<_ACEOF
3605 /* confdefs.h.  */
3606 _ACEOF
3607 cat confdefs.h >>conftest.$ac_ext
3608 cat >>conftest.$ac_ext <<_ACEOF
3609 /* end confdefs.h.  */
3610 #include <ac_nonexistent.h>
3611 _ACEOF
3612 if { (ac_try="$ac_cpp conftest.$ac_ext"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3619   ac_status=$?
3620   grep -v '^ *+' conftest.er1 >conftest.err
3621   rm -f conftest.er1
3622   cat conftest.err >&5
3623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624   (exit $ac_status); } >/dev/null && {
3625          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3626          test ! -s conftest.err
3627        }; then
3628   # Broken: success on invalid input.
3629 continue
3630 else
3631   echo "$as_me: failed program was:" >&5
3632 sed 's/^/| /' conftest.$ac_ext >&5
3633
3634   # Passes both tests.
3635 ac_preproc_ok=:
3636 break
3637 fi
3638
3639 rm -f conftest.err conftest.$ac_ext
3640
3641 done
3642 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3643 rm -f conftest.err conftest.$ac_ext
3644 if $ac_preproc_ok; then
3645   break
3646 fi
3647
3648     done
3649     ac_cv_prog_CPP=$CPP
3650
3651 fi
3652   CPP=$ac_cv_prog_CPP
3653 else
3654   ac_cv_prog_CPP=$CPP
3655 fi
3656 { echo "$as_me:$LINENO: result: $CPP" >&5
3657 echo "${ECHO_T}$CPP" >&6; }
3658 ac_preproc_ok=false
3659 for ac_c_preproc_warn_flag in '' yes
3660 do
3661   # Use a header file that comes with gcc, so configuring glibc
3662   # with a fresh cross-compiler works.
3663   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664   # <limits.h> exists even on freestanding compilers.
3665   # On the NeXT, cc -E runs the code through the compiler's parser,
3666   # not just through cpp. "Syntax error" is here to catch this case.
3667   cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h.  */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h.  */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678                      Syntax error
3679 _ACEOF
3680 if { (ac_try="$ac_cpp conftest.$ac_ext"
3681 case "(($ac_try" in
3682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683   *) ac_try_echo=$ac_try;;
3684 esac
3685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3686   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3687   ac_status=$?
3688   grep -v '^ *+' conftest.er1 >conftest.err
3689   rm -f conftest.er1
3690   cat conftest.err >&5
3691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692   (exit $ac_status); } >/dev/null && {
3693          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3694          test ! -s conftest.err
3695        }; then
3696   :
3697 else
3698   echo "$as_me: failed program was:" >&5
3699 sed 's/^/| /' conftest.$ac_ext >&5
3700
3701   # Broken: fails on valid input.
3702 continue
3703 fi
3704
3705 rm -f conftest.err conftest.$ac_ext
3706
3707   # OK, works on sane cases.  Now check whether nonexistent headers
3708   # can be detected and how.
3709   cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h.  */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h.  */
3715 #include <ac_nonexistent.h>
3716 _ACEOF
3717 if { (ac_try="$ac_cpp conftest.$ac_ext"
3718 case "(($ac_try" in
3719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3720   *) ac_try_echo=$ac_try;;
3721 esac
3722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3724   ac_status=$?
3725   grep -v '^ *+' conftest.er1 >conftest.err
3726   rm -f conftest.er1
3727   cat conftest.err >&5
3728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729   (exit $ac_status); } >/dev/null && {
3730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3731          test ! -s conftest.err
3732        }; then
3733   # Broken: success on invalid input.
3734 continue
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739   # Passes both tests.
3740 ac_preproc_ok=:
3741 break
3742 fi
3743
3744 rm -f conftest.err conftest.$ac_ext
3745
3746 done
3747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3748 rm -f conftest.err conftest.$ac_ext
3749 if $ac_preproc_ok; then
3750   :
3751 else
3752   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3755 See \`config.log' for more details." >&2;}
3756    { (exit 1); exit 1; }; }
3757 fi
3758
3759 ac_ext=c
3760 ac_cpp='$CPP $CPPFLAGS'
3761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765
3766 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3767 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3768 if test "${ac_cv_path_GREP+set}" = set; then
3769   echo $ECHO_N "(cached) $ECHO_C" >&6
3770 else
3771   # Extract the first word of "grep ggrep" to use in msg output
3772 if test -z "$GREP"; then
3773 set dummy grep ggrep; ac_prog_name=$2
3774 if test "${ac_cv_path_GREP+set}" = set; then
3775   echo $ECHO_N "(cached) $ECHO_C" >&6
3776 else
3777   ac_path_GREP_found=false
3778 # Loop through the user's path and test for each of PROGNAME-LIST
3779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3781 do
3782   IFS=$as_save_IFS
3783   test -z "$as_dir" && as_dir=.
3784   for ac_prog in grep ggrep; do
3785   for ac_exec_ext in '' $ac_executable_extensions; do
3786     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3787     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3788     # Check for GNU ac_path_GREP and select it if it is found.
3789   # Check for GNU $ac_path_GREP
3790 case `"$ac_path_GREP" --version 2>&1` in
3791 *GNU*)
3792   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3793 *)
3794   ac_count=0
3795   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3796   while :
3797   do
3798     cat "conftest.in" "conftest.in" >"conftest.tmp"
3799     mv "conftest.tmp" "conftest.in"
3800     cp "conftest.in" "conftest.nl"
3801     echo 'GREP' >> "conftest.nl"
3802     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3803     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3804     ac_count=`expr $ac_count + 1`
3805     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3806       # Best one so far, save it but keep looking for a better one
3807       ac_cv_path_GREP="$ac_path_GREP"
3808       ac_path_GREP_max=$ac_count
3809     fi
3810     # 10*(2^10) chars as input seems more than enough
3811     test $ac_count -gt 10 && break
3812   done
3813   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3814 esac
3815
3816
3817     $ac_path_GREP_found && break 3
3818   done
3819 done
3820
3821 done
3822 IFS=$as_save_IFS
3823
3824
3825 fi
3826
3827 GREP="$ac_cv_path_GREP"
3828 if test -z "$GREP"; then
3829   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3830 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3831    { (exit 1); exit 1; }; }
3832 fi
3833
3834 else
3835   ac_cv_path_GREP=$GREP
3836 fi
3837
3838
3839 fi
3840 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3841 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3842  GREP="$ac_cv_path_GREP"
3843
3844
3845 { echo "$as_me:$LINENO: checking for egrep" >&5
3846 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_EGREP+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3851    then ac_cv_path_EGREP="$GREP -E"
3852    else
3853      # Extract the first word of "egrep" to use in msg output
3854 if test -z "$EGREP"; then
3855 set dummy egrep; ac_prog_name=$2
3856 if test "${ac_cv_path_EGREP+set}" = set; then
3857   echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859   ac_path_EGREP_found=false
3860 # Loop through the user's path and test for each of PROGNAME-LIST
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3863 do
3864   IFS=$as_save_IFS
3865   test -z "$as_dir" && as_dir=.
3866   for ac_prog in egrep; do
3867   for ac_exec_ext in '' $ac_executable_extensions; do
3868     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3869     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3870     # Check for GNU ac_path_EGREP and select it if it is found.
3871   # Check for GNU $ac_path_EGREP
3872 case `"$ac_path_EGREP" --version 2>&1` in
3873 *GNU*)
3874   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3875 *)
3876   ac_count=0
3877   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3878   while :
3879   do
3880     cat "conftest.in" "conftest.in" >"conftest.tmp"
3881     mv "conftest.tmp" "conftest.in"
3882     cp "conftest.in" "conftest.nl"
3883     echo 'EGREP' >> "conftest.nl"
3884     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3886     ac_count=`expr $ac_count + 1`
3887     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3888       # Best one so far, save it but keep looking for a better one
3889       ac_cv_path_EGREP="$ac_path_EGREP"
3890       ac_path_EGREP_max=$ac_count
3891     fi
3892     # 10*(2^10) chars as input seems more than enough
3893     test $ac_count -gt 10 && break
3894   done
3895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3896 esac
3897
3898
3899     $ac_path_EGREP_found && break 3
3900   done
3901 done
3902
3903 done
3904 IFS=$as_save_IFS
3905
3906
3907 fi
3908
3909 EGREP="$ac_cv_path_EGREP"
3910 if test -z "$EGREP"; then
3911   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3912 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3913    { (exit 1); exit 1; }; }
3914 fi
3915
3916 else
3917   ac_cv_path_EGREP=$EGREP
3918 fi
3919
3920
3921    fi
3922 fi
3923 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3924 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3925  EGREP="$ac_cv_path_EGREP"
3926
3927
3928 if test $ac_cv_c_compiler_gnu = yes; then
3929     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3930 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3931 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3932   echo $ECHO_N "(cached) $ECHO_C" >&6
3933 else
3934     ac_pattern="Autoconf.*'x'"
3935   cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h.  */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h.  */
3941 #include <sgtty.h>
3942 Autoconf TIOCGETP
3943 _ACEOF
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3946   ac_cv_prog_gcc_traditional=yes
3947 else
3948   ac_cv_prog_gcc_traditional=no
3949 fi
3950 rm -f conftest*
3951
3952
3953   if test $ac_cv_prog_gcc_traditional = no; then
3954     cat >conftest.$ac_ext <<_ACEOF
3955 /* confdefs.h.  */
3956 _ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h.  */
3960 #include <termio.h>
3961 Autoconf TCGETA
3962 _ACEOF
3963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3964   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3965   ac_cv_prog_gcc_traditional=yes
3966 fi
3967 rm -f conftest*
3968
3969   fi
3970 fi
3971 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3972 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3973   if test $ac_cv_prog_gcc_traditional = yes; then
3974     CC="$CC -traditional"
3975   fi
3976 fi
3977
3978 BASECC=`basename $CC`
3979 have_gcc=no
3980 if test "x$BASECC" = xgcc; then
3981    cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_GCC 1
3983 _ACEOF
3984
3985    have_gcc=yes
3986 fi
3987 # Extract the first word of "$CXX", so it can be a program name with args.
3988 set dummy $CXX; ac_word=$2
3989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3991 if test "${ac_cv_path_CXX+set}" = set; then
3992   echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994   case $CXX in
3995   [\\/]* | ?:[\\/]*)
3996   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3997   ;;
3998   *)
3999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004   for ac_exec_ext in '' $ac_executable_extensions; do
4005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008     break 2
4009   fi
4010 done
4011 done
4012 IFS=$as_save_IFS
4013
4014   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4015   ;;
4016 esac
4017 fi
4018 CXX=$ac_cv_path_CXX
4019 if test -n "$CXX"; then
4020   { echo "$as_me:$LINENO: result: $CXX" >&5
4021 echo "${ECHO_T}$CXX" >&6; }
4022 else
4023   { echo "$as_me:$LINENO: result: no" >&5
4024 echo "${ECHO_T}no" >&6; }
4025 fi
4026
4027
4028 if test ! -e $CXX; then
4029    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4030 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4031    { (exit 1); exit 1; }; }
4032 fi
4033
4034 # Find a good install program.  We prefer a C program (faster),
4035 # so one script is as good as another.  But avoid the broken or
4036 # incompatible versions:
4037 # SysV /etc/install, /usr/sbin/install
4038 # SunOS /usr/etc/install
4039 # IRIX /sbin/install
4040 # AIX /bin/install
4041 # AmigaOS /C/install, which installs bootblocks on floppy discs
4042 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4043 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4044 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4045 # OS/2's system install, which has a completely different semantic
4046 # ./install, which can be erroneously created by make from ./install.sh.
4047 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4048 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4049 if test -z "$INSTALL"; then
4050 if test "${ac_cv_path_install+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH
4055 do
4056   IFS=$as_save_IFS
4057   test -z "$as_dir" && as_dir=.
4058   # Account for people who put trailing slashes in PATH elements.
4059 case $as_dir/ in
4060   ./ | .// | /cC/* | \
4061   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4062   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4063   /usr/ucb/* ) ;;
4064   *)
4065     # OSF1 and SCO ODT 3.0 have their own names for install.
4066     # Don't use installbsd from OSF since it installs stuff as root
4067     # by default.
4068     for ac_prog in ginstall scoinst install; do
4069       for ac_exec_ext in '' $ac_executable_extensions; do
4070         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4071           if test $ac_prog = install &&
4072             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4073             # AIX install.  It has an incompatible calling convention.
4074             :
4075           elif test $ac_prog = install &&
4076             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4077             # program-specific install script used by HP pwplus--don't use.
4078             :
4079           else
4080             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4081             break 3
4082           fi
4083         fi
4084       done
4085     done
4086     ;;
4087 esac
4088 done
4089 IFS=$as_save_IFS
4090
4091
4092 fi
4093   if test "${ac_cv_path_install+set}" = set; then
4094     INSTALL=$ac_cv_path_install
4095   else
4096     # As a last resort, use the slow shell script.  Don't cache a
4097     # value for INSTALL within a source directory, because that will
4098     # break other packages using the cache if that directory is
4099     # removed, or if the value is a relative name.
4100     INSTALL=$ac_install_sh
4101   fi
4102 fi
4103 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4104 echo "${ECHO_T}$INSTALL" >&6; }
4105
4106 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4107 # It thinks the first close brace ends the variable substitution.
4108 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4109
4110 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4111
4112 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4113
4114 if test -n "$ac_tool_prefix"; then
4115   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}ranlib; 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_prog_RANLIB+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$RANLIB"; then
4123   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 RANLIB=$ac_cv_prog_RANLIB
4143 if test -n "$RANLIB"; then
4144   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4145 echo "${ECHO_T}$RANLIB" >&6; }
4146 else
4147   { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4149 fi
4150
4151
4152 fi
4153 if test -z "$ac_cv_prog_RANLIB"; then
4154   ac_ct_RANLIB=$RANLIB
4155   # Extract the first word of "ranlib", so it can be a program name with args.
4156 set dummy ranlib; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$ac_ct_RANLIB"; then
4163   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170   for ac_exec_ext in '' $ac_executable_extensions; do
4171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172     ac_cv_prog_ac_ct_RANLIB="ranlib"
4173     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174     break 2
4175   fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4183 if test -n "$ac_ct_RANLIB"; then
4184   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4185 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4186 else
4187   { echo "$as_me:$LINENO: result: no" >&5
4188 echo "${ECHO_T}no" >&6; }
4189 fi
4190
4191   if test "x$ac_ct_RANLIB" = x; then
4192     RANLIB=":"
4193   else
4194     case $cross_compiling:$ac_tool_warned in
4195 yes:)
4196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4197 whose name does not start with the host triplet.  If you think this
4198 configuration is useful to you, please write to autoconf@gnu.org." >&5
4199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4200 whose name does not start with the host triplet.  If you think this
4201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4202 ac_tool_warned=yes ;;
4203 esac
4204     RANLIB=$ac_ct_RANLIB
4205   fi
4206 else
4207   RANLIB="$ac_cv_prog_RANLIB"
4208 fi
4209
4210 # Extract the first word of "mv", so it can be a program name with args.
4211 set dummy mv; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_path_MV+set}" = set; then
4215   echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217   case $MV in
4218   [\\/]* | ?:[\\/]*)
4219   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4220   ;;
4221   *)
4222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223 for as_dir in $PATH
4224 do
4225   IFS=$as_save_IFS
4226   test -z "$as_dir" && as_dir=.
4227   for ac_exec_ext in '' $ac_executable_extensions; do
4228   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4230     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4231     break 2
4232   fi
4233 done
4234 done
4235 IFS=$as_save_IFS
4236
4237   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4238   ;;
4239 esac
4240 fi
4241 MV=$ac_cv_path_MV
4242 if test -n "$MV"; then
4243   { echo "$as_me:$LINENO: result: $MV" >&5
4244 echo "${ECHO_T}$MV" >&6; }
4245 else
4246   { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4248 fi
4249
4250
4251 # Extract the first word of "rm", so it can be a program name with args.
4252 set dummy rm; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_path_RM+set}" = set; then
4256   echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258   case $RM in
4259   [\\/]* | ?:[\\/]*)
4260   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4261   ;;
4262   *)
4263   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4265 do
4266   IFS=$as_save_IFS
4267   test -z "$as_dir" && as_dir=.
4268   for ac_exec_ext in '' $ac_executable_extensions; do
4269   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272     break 2
4273   fi
4274 done
4275 done
4276 IFS=$as_save_IFS
4277
4278   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4279   ;;
4280 esac
4281 fi
4282 RM=$ac_cv_path_RM
4283 if test -n "$RM"; then
4284   { echo "$as_me:$LINENO: result: $RM" >&5
4285 echo "${ECHO_T}$RM" >&6; }
4286 else
4287   { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4289 fi
4290
4291
4292 # Extract the first word of "cp", so it can be a program name with args.
4293 set dummy cp; ac_word=$2
4294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4296 if test "${ac_cv_path_CP+set}" = set; then
4297   echo $ECHO_N "(cached) $ECHO_C" >&6
4298 else
4299   case $CP in
4300   [\\/]* | ?:[\\/]*)
4301   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4302   ;;
4303   *)
4304   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4306 do
4307   IFS=$as_save_IFS
4308   test -z "$as_dir" && as_dir=.
4309   for ac_exec_ext in '' $ac_executable_extensions; do
4310   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4311     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4312     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4313     break 2
4314   fi
4315 done
4316 done
4317 IFS=$as_save_IFS
4318
4319   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4320   ;;
4321 esac
4322 fi
4323 CP=$ac_cv_path_CP
4324 if test -n "$CP"; then
4325   { echo "$as_me:$LINENO: result: $CP" >&5
4326 echo "${ECHO_T}$CP" >&6; }
4327 else
4328   { echo "$as_me:$LINENO: result: no" >&5
4329 echo "${ECHO_T}no" >&6; }
4330 fi
4331
4332
4333 # Extract the first word of "sed", so it can be a program name with args.
4334 set dummy sed; ac_word=$2
4335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4337 if test "${ac_cv_path_SED+set}" = set; then
4338   echo $ECHO_N "(cached) $ECHO_C" >&6
4339 else
4340   case $SED in
4341   [\\/]* | ?:[\\/]*)
4342   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4343   ;;
4344   *)
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350   for ac_exec_ext in '' $ac_executable_extensions; do
4351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357 done
4358 IFS=$as_save_IFS
4359
4360   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4361   ;;
4362 esac
4363 fi
4364 SED=$ac_cv_path_SED
4365 if test -n "$SED"; then
4366   { echo "$as_me:$LINENO: result: $SED" >&5
4367 echo "${ECHO_T}$SED" >&6; }
4368 else
4369   { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4371 fi
4372
4373
4374 # Extract the first word of "echo", so it can be a program name with args.
4375 set dummy echo; ac_word=$2
4376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4378 if test "${ac_cv_path_ECHO+set}" = set; then
4379   echo $ECHO_N "(cached) $ECHO_C" >&6
4380 else
4381   case $ECHO in
4382   [\\/]* | ?:[\\/]*)
4383   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4384   ;;
4385   *)
4386   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4388 do
4389   IFS=$as_save_IFS
4390   test -z "$as_dir" && as_dir=.
4391   for ac_exec_ext in '' $ac_executable_extensions; do
4392   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4393     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4394     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395     break 2
4396   fi
4397 done
4398 done
4399 IFS=$as_save_IFS
4400
4401   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4402   ;;
4403 esac
4404 fi
4405 ECHO=$ac_cv_path_ECHO
4406 if test -n "$ECHO"; then
4407   { echo "$as_me:$LINENO: result: $ECHO" >&5
4408 echo "${ECHO_T}$ECHO" >&6; }
4409 else
4410   { echo "$as_me:$LINENO: result: no" >&5
4411 echo "${ECHO_T}no" >&6; }
4412 fi
4413
4414
4415 # Extract the first word of "cmp", so it can be a program name with args.
4416 set dummy cmp; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_path_CMP+set}" = set; then
4420   echo $ECHO_N "(cached) $ECHO_C" >&6
4421 else
4422   case $CMP in
4423   [\\/]* | ?:[\\/]*)
4424   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4425   ;;
4426   *)
4427   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 for as_dir in $PATH
4429 do
4430   IFS=$as_save_IFS
4431   test -z "$as_dir" && as_dir=.
4432   for ac_exec_ext in '' $ac_executable_extensions; do
4433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4436     break 2
4437   fi
4438 done
4439 done
4440 IFS=$as_save_IFS
4441
4442   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4443   ;;
4444 esac
4445 fi
4446 CMP=$ac_cv_path_CMP
4447 if test -n "$CMP"; then
4448   { echo "$as_me:$LINENO: result: $CMP" >&5
4449 echo "${ECHO_T}$CMP" >&6; }
4450 else
4451   { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4453 fi
4454
4455
4456 # Extract the first word of "tbl", so it can be a program name with args.
4457 set dummy tbl; ac_word=$2
4458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460 if test "${ac_cv_path_TBL+set}" = set; then
4461   echo $ECHO_N "(cached) $ECHO_C" >&6
4462 else
4463   case $TBL in
4464   [\\/]* | ?:[\\/]*)
4465   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4466   ;;
4467   *)
4468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4469 for as_dir in $PATH
4470 do
4471   IFS=$as_save_IFS
4472   test -z "$as_dir" && as_dir=.
4473   for ac_exec_ext in '' $ac_executable_extensions; do
4474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4476     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4477     break 2
4478   fi
4479 done
4480 done
4481 IFS=$as_save_IFS
4482
4483   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4484   ;;
4485 esac
4486 fi
4487 TBL=$ac_cv_path_TBL
4488 if test -n "$TBL"; then
4489   { echo "$as_me:$LINENO: result: $TBL" >&5
4490 echo "${ECHO_T}$TBL" >&6; }
4491 else
4492   { echo "$as_me:$LINENO: result: no" >&5
4493 echo "${ECHO_T}no" >&6; }
4494 fi
4495
4496
4497 # Extract the first word of "ar", so it can be a program name with args.
4498 set dummy ar; ac_word=$2
4499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4501 if test "${ac_cv_path_AR+set}" = set; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   case $AR in
4505   [\\/]* | ?:[\\/]*)
4506   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4507   ;;
4508   *)
4509   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH
4511 do
4512   IFS=$as_save_IFS
4513   test -z "$as_dir" && as_dir=.
4514   for ac_exec_ext in '' $ac_executable_extensions; do
4515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4516     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518     break 2
4519   fi
4520 done
4521 done
4522 IFS=$as_save_IFS
4523
4524   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4525   ;;
4526 esac
4527 fi
4528 AR=$ac_cv_path_AR
4529 if test -n "$AR"; then
4530   { echo "$as_me:$LINENO: result: $AR" >&5
4531 echo "${ECHO_T}$AR" >&6; }
4532 else
4533   { echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6; }
4535 fi
4536
4537
4538 # Extract the first word of "openssl", so it can be a program name with args.
4539 set dummy openssl; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_OPENSSL+set}" = set; then
4543   echo $ECHO_N "(cached) $ECHO_C" >&6
4544 else
4545   case $OPENSSL in
4546   [\\/]* | ?:[\\/]*)
4547   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4548   ;;
4549   *)
4550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH
4552 do
4553   IFS=$as_save_IFS
4554   test -z "$as_dir" && as_dir=.
4555   for ac_exec_ext in '' $ac_executable_extensions; do
4556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4557     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4559     break 2
4560   fi
4561 done
4562 done
4563 IFS=$as_save_IFS
4564
4565   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4566   ;;
4567 esac
4568 fi
4569 OPENSSL=$ac_cv_path_OPENSSL
4570 if test -n "$OPENSSL"; then
4571   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4572 echo "${ECHO_T}$OPENSSL" >&6; }
4573 else
4574   { echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6; }
4576 fi
4577
4578
4579 # Extract the first word of "mtx", so it can be a program name with args.
4580 set dummy mtx; ac_word=$2
4581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583 if test "${ac_cv_path_MTX+set}" = set; then
4584   echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586   case $MTX in
4587   [\\/]* | ?:[\\/]*)
4588   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4589   ;;
4590   *)
4591   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH
4593 do
4594   IFS=$as_save_IFS
4595   test -z "$as_dir" && as_dir=.
4596   for ac_exec_ext in '' $ac_executable_extensions; do
4597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4598     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4599     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600     break 2
4601   fi
4602 done
4603 done
4604 IFS=$as_save_IFS
4605
4606   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4607   ;;
4608 esac
4609 fi
4610 MTX=$ac_cv_path_MTX
4611 if test -n "$MTX"; then
4612   { echo "$as_me:$LINENO: result: $MTX" >&5
4613 echo "${ECHO_T}$MTX" >&6; }
4614 else
4615   { echo "$as_me:$LINENO: result: no" >&5
4616 echo "${ECHO_T}no" >&6; }
4617 fi
4618
4619
4620 # Extract the first word of "dd", so it can be a program name with args.
4621 set dummy dd; ac_word=$2
4622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4624 if test "${ac_cv_path_DD+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   case $DD in
4628   [\\/]* | ?:[\\/]*)
4629   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4630   ;;
4631   *)
4632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH
4634 do
4635   IFS=$as_save_IFS
4636   test -z "$as_dir" && as_dir=.
4637   for ac_exec_ext in '' $ac_executable_extensions; do
4638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4639     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4641     break 2
4642   fi
4643 done
4644 done
4645 IFS=$as_save_IFS
4646
4647   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4648   ;;
4649 esac
4650 fi
4651 DD=$ac_cv_path_DD
4652 if test -n "$DD"; then
4653   { echo "$as_me:$LINENO: result: $DD" >&5
4654 echo "${ECHO_T}$DD" >&6; }
4655 else
4656   { echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6; }
4658 fi
4659
4660
4661 # Extract the first word of "mkisofs", so it can be a program name with args.
4662 set dummy mkisofs; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_path_MKISOFS+set}" = set; then
4666   echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668   case $MKISOFS in
4669   [\\/]* | ?:[\\/]*)
4670   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4671   ;;
4672   *)
4673   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4675 do
4676   IFS=$as_save_IFS
4677   test -z "$as_dir" && as_dir=.
4678   for ac_exec_ext in '' $ac_executable_extensions; do
4679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4681     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682     break 2
4683   fi
4684 done
4685 done
4686 IFS=$as_save_IFS
4687
4688   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4689   ;;
4690 esac
4691 fi
4692 MKISOFS=$ac_cv_path_MKISOFS
4693 if test -n "$MKISOFS"; then
4694   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4695 echo "${ECHO_T}$MKISOFS" >&6; }
4696 else
4697   { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4699 fi
4700
4701
4702 # Extract the first word of "python", so it can be a program name with args.
4703 set dummy python; ac_word=$2
4704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4706 if test "${ac_cv_path_PYTHON+set}" = set; then
4707   echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709   case $PYTHON in
4710   [\\/]* | ?:[\\/]*)
4711   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4712   ;;
4713   *)
4714   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4716 do
4717   IFS=$as_save_IFS
4718   test -z "$as_dir" && as_dir=.
4719   for ac_exec_ext in '' $ac_executable_extensions; do
4720   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4722     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723     break 2
4724   fi
4725 done
4726 done
4727 IFS=$as_save_IFS
4728
4729   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4730   ;;
4731 esac
4732 fi
4733 PYTHON=$ac_cv_path_PYTHON
4734 if test -n "$PYTHON"; then
4735   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4736 echo "${ECHO_T}$PYTHON" >&6; }
4737 else
4738   { echo "$as_me:$LINENO: result: no" >&5
4739 echo "${ECHO_T}no" >&6; }
4740 fi
4741
4742
4743 # Extract the first word of "growisofs", so it can be a program name with args.
4744 set dummy growisofs; ac_word=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4748   echo $ECHO_N "(cached) $ECHO_C" >&6
4749 else
4750   case $GROWISOFS in
4751   [\\/]* | ?:[\\/]*)
4752   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4753   ;;
4754   *)
4755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758   IFS=$as_save_IFS
4759   test -z "$as_dir" && as_dir=.
4760   for ac_exec_ext in '' $ac_executable_extensions; do
4761   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4763     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764     break 2
4765   fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4771   ;;
4772 esac
4773 fi
4774 GROWISOFS=$ac_cv_path_GROWISOFS
4775 if test -n "$GROWISOFS"; then
4776   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4777 echo "${ECHO_T}$GROWISOFS" >&6; }
4778 else
4779   { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4781 fi
4782
4783
4784 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4785 set dummy dvd+rw-mediainfo; ac_word=$2
4786 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4788 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4789   echo $ECHO_N "(cached) $ECHO_C" >&6
4790 else
4791   case $DVDRWMEDIAINFO in
4792   [\\/]* | ?:[\\/]*)
4793   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4794   ;;
4795   *)
4796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801   for ac_exec_ext in '' $ac_executable_extensions; do
4802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4803     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4804     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4805     break 2
4806   fi
4807 done
4808 done
4809 IFS=$as_save_IFS
4810
4811   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4812   ;;
4813 esac
4814 fi
4815 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4816 if test -n "$DVDRWMEDIAINFO"; then
4817   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4818 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4819 else
4820   { echo "$as_me:$LINENO: result: no" >&5
4821 echo "${ECHO_T}no" >&6; }
4822 fi
4823
4824
4825 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4826 set dummy dvd+rw-format; ac_word=$2
4827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4829 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4830   echo $ECHO_N "(cached) $ECHO_C" >&6
4831 else
4832   case $DVDRWFORMAT in
4833   [\\/]* | ?:[\\/]*)
4834   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4835   ;;
4836   *)
4837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4838 for as_dir in $PATH
4839 do
4840   IFS=$as_save_IFS
4841   test -z "$as_dir" && as_dir=.
4842   for ac_exec_ext in '' $ac_executable_extensions; do
4843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4844     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4846     break 2
4847   fi
4848 done
4849 done
4850 IFS=$as_save_IFS
4851
4852   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4853   ;;
4854 esac
4855 fi
4856 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4857 if test -n "$DVDRWFORMAT"; then
4858   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4859 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4860 else
4861   { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4863 fi
4864
4865
4866 # Extract the first word of "pkg-config", so it can be a program name with args.
4867 set dummy pkg-config; ac_word=$2
4868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4870 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 else
4873   case $PKGCONFIG in
4874   [\\/]* | ?:[\\/]*)
4875   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4876   ;;
4877   *)
4878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881   IFS=$as_save_IFS
4882   test -z "$as_dir" && as_dir=.
4883   for ac_exec_ext in '' $ac_executable_extensions; do
4884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4886     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887     break 2
4888   fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4894   ;;
4895 esac
4896 fi
4897 PKGCONFIG=$ac_cv_path_PKGCONFIG
4898 if test -n "$PKGCONFIG"; then
4899   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4900 echo "${ECHO_T}$PKGCONFIG" >&6; }
4901 else
4902   { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4904 fi
4905
4906
4907 # Extract the first word of "qmake", so it can be a program name with args.
4908 set dummy qmake; ac_word=$2
4909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4911 if test "${ac_cv_path_QMAKE+set}" = set; then
4912   echo $ECHO_N "(cached) $ECHO_C" >&6
4913 else
4914   case $QMAKE in
4915   [\\/]* | ?:[\\/]*)
4916   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4917   ;;
4918   *)
4919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924   for ac_exec_ext in '' $ac_executable_extensions; do
4925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4927     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931 done
4932 IFS=$as_save_IFS
4933
4934   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4935   ;;
4936 esac
4937 fi
4938 QMAKE=$ac_cv_path_QMAKE
4939 if test -n "$QMAKE"; then
4940   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4941 echo "${ECHO_T}$QMAKE" >&6; }
4942 else
4943   { echo "$as_me:$LINENO: result: no" >&5
4944 echo "${ECHO_T}no" >&6; }
4945 fi
4946
4947
4948 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4949 set dummy qmake-qt4; ac_word=$2
4950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4952 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4953   echo $ECHO_N "(cached) $ECHO_C" >&6
4954 else
4955   case $QMAKEQT4 in
4956   [\\/]* | ?:[\\/]*)
4957   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4958   ;;
4959   *)
4960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965   for ac_exec_ext in '' $ac_executable_extensions; do
4966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4967     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4974
4975   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4976   ;;
4977 esac
4978 fi
4979 QMAKEQT4=$ac_cv_path_QMAKEQT4
4980 if test -n "$QMAKEQT4"; then
4981   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4982 echo "${ECHO_T}$QMAKEQT4" >&6; }
4983 else
4984   { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4986 fi
4987
4988
4989
4990 if test "x$WXCONFIG" = x; then
4991   WXCONFIG=wx-config
4992 fi
4993 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4994 set dummy ${WXCONFIG}; ac_word=$2
4995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4997 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4998   echo $ECHO_N "(cached) $ECHO_C" >&6
4999 else
5000   case $WXCONFIG in
5001   [\\/]* | ?:[\\/]*)
5002   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5003   ;;
5004   *)
5005   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 for as_dir in $PATH
5007 do
5008   IFS=$as_save_IFS
5009   test -z "$as_dir" && as_dir=.
5010   for ac_exec_ext in '' $ac_executable_extensions; do
5011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5013     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5014     break 2
5015   fi
5016 done
5017 done
5018 IFS=$as_save_IFS
5019
5020   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5021   ;;
5022 esac
5023 fi
5024 WXCONFIG=$ac_cv_path_WXCONFIG
5025 if test -n "$WXCONFIG"; then
5026   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5027 echo "${ECHO_T}$WXCONFIG" >&6; }
5028 else
5029   { echo "$as_me:$LINENO: result: no" >&5
5030 echo "${ECHO_T}no" >&6; }
5031 fi
5032
5033
5034
5035 # Extract the first word of "cdrecord", so it can be a program name with args.
5036 set dummy cdrecord; ac_word=$2
5037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5039 if test "${ac_cv_path_CDRECORD+set}" = set; then
5040   echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042   case $CDRECORD in
5043   [\\/]* | ?:[\\/]*)
5044   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5045   ;;
5046   *)
5047   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5048 for as_dir in $PATH
5049 do
5050   IFS=$as_save_IFS
5051   test -z "$as_dir" && as_dir=.
5052   for ac_exec_ext in '' $ac_executable_extensions; do
5053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5054     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5055     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056     break 2
5057   fi
5058 done
5059 done
5060 IFS=$as_save_IFS
5061
5062   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5063   ;;
5064 esac
5065 fi
5066 CDRECORD=$ac_cv_path_CDRECORD
5067 if test -n "$CDRECORD"; then
5068   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5069 echo "${ECHO_T}$CDRECORD" >&6; }
5070 else
5071   { echo "$as_me:$LINENO: result: no" >&5
5072 echo "${ECHO_T}no" >&6; }
5073 fi
5074
5075
5076 # Extract the first word of "pidof", so it can be a program name with args.
5077 set dummy pidof; ac_word=$2
5078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5080 if test "${ac_cv_path_PIDOF+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   case $PIDOF in
5084   [\\/]* | ?:[\\/]*)
5085   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5086   ;;
5087   *)
5088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5104   ;;
5105 esac
5106 fi
5107 PIDOF=$ac_cv_path_PIDOF
5108 if test -n "$PIDOF"; then
5109   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5110 echo "${ECHO_T}$PIDOF" >&6; }
5111 else
5112   { echo "$as_me:$LINENO: result: no" >&5
5113 echo "${ECHO_T}no" >&6; }
5114 fi
5115
5116
5117 for ac_prog in gawk mawk nawk awk
5118 do
5119   # Extract the first word of "$ac_prog", so it can be a program name with args.
5120 set dummy $ac_prog; ac_word=$2
5121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5123 if test "${ac_cv_prog_AWK+set}" = set; then
5124   echo $ECHO_N "(cached) $ECHO_C" >&6
5125 else
5126   if test -n "$AWK"; then
5127   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134   for ac_exec_ext in '' $ac_executable_extensions; do
5135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5136     ac_cv_prog_AWK="$ac_prog"
5137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141 done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 AWK=$ac_cv_prog_AWK
5147 if test -n "$AWK"; then
5148   { echo "$as_me:$LINENO: result: $AWK" >&5
5149 echo "${ECHO_T}$AWK" >&6; }
5150 else
5151   { echo "$as_me:$LINENO: result: no" >&5
5152 echo "${ECHO_T}no" >&6; }
5153 fi
5154
5155
5156   test -n "$AWK" && break
5157 done
5158
5159 # Some AWK programs fail, so test it and warn the user
5160 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5161       { if ((prog == $2) || (("(" prog ")") == $2) ||
5162            (("" prog "") == $2) ||
5163            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5164 else
5165   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5166    The regex engine of $AWK is too broken to be used you
5167    might want to install GNU AWK.
5168    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5169 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5170    The regex engine of $AWK is too broken to be used you
5171    might want to install GNU AWK.
5172    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5173    { (exit 1); exit 1; }; }
5174 fi
5175 THE_AWK=$AWK
5176 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5177 set dummy $THE_AWK; ac_word=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_AWK+set}" = set; then
5181   echo $ECHO_N "(cached) $ECHO_C" >&6
5182 else
5183   case $AWK in
5184   [\\/]* | ?:[\\/]*)
5185   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5186   ;;
5187   *)
5188   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 for as_dir in $PATH
5190 do
5191   IFS=$as_save_IFS
5192   test -z "$as_dir" && as_dir=.
5193   for ac_exec_ext in '' $ac_executable_extensions; do
5194   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5196     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5197     break 2
5198   fi
5199 done
5200 done
5201 IFS=$as_save_IFS
5202
5203   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5204   ;;
5205 esac
5206 fi
5207 AWK=$ac_cv_path_AWK
5208 if test -n "$AWK"; then
5209   { echo "$as_me:$LINENO: result: $AWK" >&5
5210 echo "${ECHO_T}$AWK" >&6; }
5211 else
5212   { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5214 fi
5215
5216
5217
5218
5219 test -n "$ARFLAG" || ARFLAGS="cr"
5220
5221
5222 MAKE_SHELL=/bin/sh
5223
5224
5225
5226
5227
5228
5229
5230 # Make sure we can run config.sub.
5231 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5232   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5233 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5234    { (exit 1); exit 1; }; }
5235
5236 { echo "$as_me:$LINENO: checking build system type" >&5
5237 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5238 if test "${ac_cv_build+set}" = set; then
5239   echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241   ac_build_alias=$build_alias
5242 test "x$ac_build_alias" = x &&
5243   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5244 test "x$ac_build_alias" = x &&
5245   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5246 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5247    { (exit 1); exit 1; }; }
5248 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5249   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5250 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5251    { (exit 1); exit 1; }; }
5252
5253 fi
5254 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5255 echo "${ECHO_T}$ac_cv_build" >&6; }
5256 case $ac_cv_build in
5257 *-*-*) ;;
5258 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5259 echo "$as_me: error: invalid value of canonical build" >&2;}
5260    { (exit 1); exit 1; }; };;
5261 esac
5262 build=$ac_cv_build
5263 ac_save_IFS=$IFS; IFS='-'
5264 set x $ac_cv_build
5265 shift
5266 build_cpu=$1
5267 build_vendor=$2
5268 shift; shift
5269 # Remember, the first character of IFS is used to create $*,
5270 # except with old shells:
5271 build_os=$*
5272 IFS=$ac_save_IFS
5273 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5274
5275
5276
5277 { echo "$as_me:$LINENO: checking host system type" >&5
5278 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5279 if test "${ac_cv_host+set}" = set; then
5280   echo $ECHO_N "(cached) $ECHO_C" >&6
5281 else
5282   if test "x$host_alias" = x; then
5283   ac_cv_host=$ac_cv_build
5284 else
5285   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5286     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5287 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5288    { (exit 1); exit 1; }; }
5289 fi
5290
5291 fi
5292 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5293 echo "${ECHO_T}$ac_cv_host" >&6; }
5294 case $ac_cv_host in
5295 *-*-*) ;;
5296 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5297 echo "$as_me: error: invalid value of canonical host" >&2;}
5298    { (exit 1); exit 1; }; };;
5299 esac
5300 host=$ac_cv_host
5301 ac_save_IFS=$IFS; IFS='-'
5302 set x $ac_cv_host
5303 shift
5304 host_cpu=$1
5305 host_vendor=$2
5306 shift; shift
5307 # Remember, the first character of IFS is used to create $*,
5308 # except with old shells:
5309 host_os=$*
5310 IFS=$ac_save_IFS
5311 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5312
5313
5314 case $host_os in
5315   *cygwin* ) CYGWIN=yes;;
5316          * ) CYGWIN=no;;
5317 esac
5318
5319 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5320 then
5321
5322
5323 if $TRUEPRG; then
5324   HAVE_SUN_OS_TRUE=
5325   HAVE_SUN_OS_FALSE='#'
5326 else
5327   HAVE_SUN_OS_TRUE='#'
5328   HAVE_SUN_OS_FALSE=
5329 fi
5330         cat >>confdefs.h <<\_ACEOF
5331 #define HAVE_SUN_OS 1
5332 _ACEOF
5333
5334 else
5335
5336
5337 if $FALSEPRG; then
5338   HAVE_SUN_OS_TRUE=
5339   HAVE_SUN_OS_FALSE='#'
5340 else
5341   HAVE_SUN_OS_TRUE='#'
5342   HAVE_SUN_OS_FALSE=
5343 fi
5344 fi
5345
5346 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5347 then
5348
5349
5350 if $TRUEPRG; then
5351   HAVE_OSF1_OS_TRUE=
5352   HAVE_OSF1_OS_FALSE='#'
5353 else
5354   HAVE_OSF1_OS_TRUE='#'
5355   HAVE_OSF1_OS_FALSE=
5356 fi
5357         cat >>confdefs.h <<\_ACEOF
5358 #define HAVE_OSF1_OS 1
5359 _ACEOF
5360
5361 else
5362
5363
5364 if $FALSEPRG; then
5365   HAVE_OSF1_OS_TRUE=
5366   HAVE_OSF1_OS_FALSE='#'
5367 else
5368   HAVE_OSF1_OS_TRUE='#'
5369   HAVE_OSF1_OS_FALSE=
5370 fi
5371 fi
5372
5373 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5374 then
5375
5376
5377 if $TRUEPRG; then
5378   HAVE_AIX_OS_TRUE=
5379   HAVE_AIX_OS_FALSE='#'
5380 else
5381   HAVE_AIX_OS_TRUE='#'
5382   HAVE_AIX_OS_FALSE=
5383 fi
5384         cat >>confdefs.h <<\_ACEOF
5385 #define HAVE_AIX_OS 1
5386 _ACEOF
5387
5388 else
5389
5390
5391 if $FALSEPRG; then
5392   HAVE_AIX_OS_TRUE=
5393   HAVE_AIX_OS_FALSE='#'
5394 else
5395   HAVE_AIX_OS_TRUE='#'
5396   HAVE_AIX_OS_FALSE=
5397 fi
5398 fi
5399
5400 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5401 then
5402
5403
5404 if $TRUEPRG; then
5405   HAVE_HPUX_OS_TRUE=
5406   HAVE_HPUX_OS_FALSE='#'
5407 else
5408   HAVE_HPUX_OS_TRUE='#'
5409   HAVE_HPUX_OS_FALSE=
5410 fi
5411         cat >>confdefs.h <<\_ACEOF
5412 #define HAVE_HPUX_OS 1
5413 _ACEOF
5414
5415 else
5416
5417
5418 if $FALSEPRG; then
5419   HAVE_HPUX_OS_TRUE=
5420   HAVE_HPUX_OS_FALSE='#'
5421 else
5422   HAVE_HPUX_OS_TRUE='#'
5423   HAVE_HPUX_OS_FALSE=
5424 fi
5425 fi
5426
5427 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5428 then
5429
5430
5431 if $TRUEPRG; then
5432   HAVE_LINUX_OS_TRUE=
5433   HAVE_LINUX_OS_FALSE='#'
5434 else
5435   HAVE_LINUX_OS_TRUE='#'
5436   HAVE_LINUX_OS_FALSE=
5437 fi
5438         cat >>confdefs.h <<\_ACEOF
5439 #define HAVE_LINUX_OS 1
5440 _ACEOF
5441
5442 else
5443
5444
5445 if $FALSEPRG; then
5446   HAVE_LINUX_OS_TRUE=
5447   HAVE_LINUX_OS_FALSE='#'
5448 else
5449   HAVE_LINUX_OS_TRUE='#'
5450   HAVE_LINUX_OS_FALSE=
5451 fi
5452 fi
5453
5454 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5455 then
5456
5457
5458 if $TRUEPRG; then
5459   HAVE_FREEBSD_OS_TRUE=
5460   HAVE_FREEBSD_OS_FALSE='#'
5461 else
5462   HAVE_FREEBSD_OS_TRUE='#'
5463   HAVE_FREEBSD_OS_FALSE=
5464 fi
5465         cat >>confdefs.h <<\_ACEOF
5466 #define HAVE_FREEBSD_OS 1
5467 _ACEOF
5468
5469 else
5470
5471
5472 if $FALSEPRG; then
5473   HAVE_FREEBSD_OS_TRUE=
5474   HAVE_FREEBSD_OS_FALSE='#'
5475 else
5476   HAVE_FREEBSD_OS_TRUE='#'
5477   HAVE_FREEBSD_OS_FALSE=
5478 fi
5479 fi
5480
5481 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5482 then
5483
5484
5485 if $TRUEPRG; then
5486   HAVE_NETBSD_OS_TRUE=
5487   HAVE_NETBSD_OS_FALSE='#'
5488 else
5489   HAVE_NETBSD_OS_TRUE='#'
5490   HAVE_NETBSD_OS_FALSE=
5491 fi
5492         cat >>confdefs.h <<\_ACEOF
5493 #define HAVE_NETBSD_OS 1
5494 _ACEOF
5495
5496 else
5497
5498
5499 if $FALSEPRG; then
5500   HAVE_NETBSD_OS_TRUE=
5501   HAVE_NETBSD_OS_FALSE='#'
5502 else
5503   HAVE_NETBSD_OS_TRUE='#'
5504   HAVE_NETBSD_OS_FALSE=
5505 fi
5506 fi
5507
5508 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5509 then
5510
5511
5512 if $TRUEPRG; then
5513   HAVE_OPENBSD_OS_TRUE=
5514   HAVE_OPENBSD_OS_FALSE='#'
5515 else
5516   HAVE_OPENBSD_OS_TRUE='#'
5517   HAVE_OPENBSD_OS_FALSE=
5518 fi
5519         cat >>confdefs.h <<\_ACEOF
5520 #define HAVE_OPENBSD_OS 1
5521 _ACEOF
5522
5523 else
5524
5525
5526 if $FALSEPRG; then
5527   HAVE_OPENBSD_OS_TRUE=
5528   HAVE_OPENBSD_OS_FALSE='#'
5529 else
5530   HAVE_OPENBSD_OS_TRUE='#'
5531   HAVE_OPENBSD_OS_FALSE=
5532 fi
5533 fi
5534
5535 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5536 then
5537
5538
5539 if $TRUEPRG; then
5540   HAVE_BSDI_OS_TRUE=
5541   HAVE_BSDI_OS_FALSE='#'
5542 else
5543   HAVE_BSDI_OS_TRUE='#'
5544   HAVE_BSDI_OS_FALSE=
5545 fi
5546         cat >>confdefs.h <<\_ACEOF
5547 #define HAVE_BSDI_OS 1
5548 _ACEOF
5549
5550 else
5551
5552
5553 if $FALSEPRG; then
5554   HAVE_BSDI_OS_TRUE=
5555   HAVE_BSDI_OS_FALSE='#'
5556 else
5557   HAVE_BSDI_OS_TRUE='#'
5558   HAVE_BSDI_OS_FALSE=
5559 fi
5560 fi
5561
5562 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5563 then
5564
5565
5566 if $TRUEPRG; then
5567   HAVE_SGI_OS_TRUE=
5568   HAVE_SGI_OS_FALSE='#'
5569 else
5570   HAVE_SGI_OS_TRUE='#'
5571   HAVE_SGI_OS_FALSE=
5572 fi
5573         cat >>confdefs.h <<\_ACEOF
5574 #define HAVE_SGI_OS 1
5575 _ACEOF
5576
5577 else
5578
5579
5580 if $FALSEPRG; then
5581   HAVE_SGI_OS_TRUE=
5582   HAVE_SGI_OS_FALSE='#'
5583 else
5584   HAVE_SGI_OS_TRUE='#'
5585   HAVE_SGI_OS_FALSE=
5586 fi
5587 fi
5588
5589 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5590 then
5591
5592
5593 if $TRUEPRG; then
5594   HAVE_IRIX_OS_TRUE=
5595   HAVE_IRIX_OS_FALSE='#'
5596 else
5597   HAVE_IRIX_OS_TRUE='#'
5598   HAVE_IRIX_OS_FALSE=
5599 fi
5600         cat >>confdefs.h <<\_ACEOF
5601 #define HAVE_IRIX_OS 1
5602 _ACEOF
5603
5604 else
5605
5606
5607 if $FALSEPRG; then
5608   HAVE_IRIX_OS_TRUE=
5609   HAVE_IRIX_OS_FALSE='#'
5610 else
5611   HAVE_IRIX_OS_TRUE='#'
5612   HAVE_IRIX_OS_FALSE=
5613 fi
5614 fi
5615
5616 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5617 then
5618
5619
5620 if $TRUEPRG; then
5621   HAVE_DARWIN_OS_TRUE=
5622   HAVE_DARWIN_OS_FALSE='#'
5623 else
5624   HAVE_DARWIN_OS_TRUE='#'
5625   HAVE_DARWIN_OS_FALSE=
5626 fi
5627     cat >>confdefs.h <<\_ACEOF
5628 #define HAVE_DARWIN_OS 1
5629 _ACEOF
5630
5631 else
5632
5633
5634 if $FALSEPRG; then
5635   HAVE_DARWIN_OS_TRUE=
5636   HAVE_DARWIN_OS_FALSE='#'
5637 else
5638   HAVE_DARWIN_OS_TRUE='#'
5639   HAVE_DARWIN_OS_FALSE=
5640 fi
5641 fi
5642
5643
5644 # -----------------------------------------------------------
5645 # ----------------------------------------------------------
5646 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5647 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5648 if test "x$DISTNAME" != "x"
5649 then
5650         echo "distname set to $DISTNAME"
5651 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5652 then
5653         DISTNAME=alpha
5654 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5655 then
5656         DISTNAME=aix
5657 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5658 then
5659         DISTNAME=hpux
5660 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5661 then
5662         DISTNAME=solaris
5663 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5664 then
5665         DISTNAME=freebsd
5666 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5667 then
5668         DISTNAME=netbsd
5669 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5670 then
5671         DISTNAME=openbsd
5672 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5673 then
5674         DISTNAME=irix
5675 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5676 then
5677         DISTNAME=bsdi
5678 elif test -f /etc/SuSE-release
5679 then
5680         DISTNAME=suse
5681 elif test -d /etc/SuSEconfig
5682 then
5683         DISTNAME=suse5
5684 elif test -f /etc/mandrake-release
5685 then
5686         DISTNAME=mandrake
5687 elif test -f /etc/whitebox-release
5688 then
5689        DISTNAME=redhat
5690 elif test -f /etc/redhat-release
5691 then
5692         DISTNAME=redhat
5693 elif test -f /etc/gentoo-release
5694 then
5695         DISTNAME=gentoo
5696 elif test -f /etc/debian_version
5697 then
5698         DISTNAME=debian
5699 elif test -f /etc/slackware-version
5700 then
5701         DISTNAME=slackware
5702 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5703 then
5704     DISTNAME=darwin
5705 elif test -f /etc/engarde-version
5706 then
5707         DISTNAME=engarde
5708 elif test "$CYGWIN" = yes
5709 then
5710         DISTNAME=cygwin
5711         cat >>confdefs.h <<\_ACEOF
5712 #define HAVE_CYGWIN 1
5713 _ACEOF
5714
5715 else
5716         DISTNAME=unknown
5717 fi
5718 { echo "$as_me:$LINENO: result: done" >&5
5719 echo "${ECHO_T}done" >&6; }
5720
5721
5722 # --------------------------------------------------
5723 # Suppport for gettext (translations)
5724 # By default, $datadir is ${prefix}/share
5725 # --------------------------------------------------
5726 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5727 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5728 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5729 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   cat >conftest.make <<\_ACEOF
5733 SHELL = /bin/sh
5734 all:
5735         @echo '@@@%%%=$(MAKE)=@@@%%%'
5736 _ACEOF
5737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5738 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5739   *@@@%%%=?*=@@@%%%*)
5740     eval ac_cv_prog_make_${ac_make}_set=yes;;
5741   *)
5742     eval ac_cv_prog_make_${ac_make}_set=no;;
5743 esac
5744 rm -f conftest.make
5745 fi
5746 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5747   { echo "$as_me:$LINENO: result: yes" >&5
5748 echo "${ECHO_T}yes" >&6; }
5749   SET_MAKE=
5750 else
5751   { echo "$as_me:$LINENO: result: no" >&5
5752 echo "${ECHO_T}no" >&6; }
5753   SET_MAKE="MAKE=${MAKE-make}"
5754 fi
5755
5756
5757
5758         MKINSTALLDIRS=
5759   if test -n "$ac_aux_dir"; then
5760     case "$ac_aux_dir" in
5761       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5762       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5763     esac
5764   fi
5765   if test -z "$MKINSTALLDIRS"; then
5766     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5767   fi
5768
5769
5770
5771   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5772 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5773     # Check whether --enable-nls was given.
5774 if test "${enable_nls+set}" = set; then
5775   enableval=$enable_nls; USE_NLS=$enableval
5776 else
5777   USE_NLS=yes
5778 fi
5779
5780   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5781 echo "${ECHO_T}$USE_NLS" >&6; }
5782
5783
5784
5785
5786
5787
5788 # Prepare PATH_SEPARATOR.
5789 # The user is always right.
5790 if test "${PATH_SEPARATOR+set}" != set; then
5791   echo "#! /bin/sh" >conf$$.sh
5792   echo  "exit 0"   >>conf$$.sh
5793   chmod +x conf$$.sh
5794   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5795     PATH_SEPARATOR=';'
5796   else
5797     PATH_SEPARATOR=:
5798   fi
5799   rm -f conf$$.sh
5800 fi
5801
5802 # Find out how to test for executable files. Don't use a zero-byte file,
5803 # as systems may use methods other than mode bits to determine executability.
5804 cat >conf$$.file <<_ASEOF
5805 #! /bin/sh
5806 exit 0
5807 _ASEOF
5808 chmod +x conf$$.file
5809 if test -x conf$$.file >/dev/null 2>&1; then
5810   ac_executable_p="test -x"
5811 else
5812   ac_executable_p="test -f"
5813 fi
5814 rm -f conf$$.file
5815
5816 # Extract the first word of "msgfmt", so it can be a program name with args.
5817 set dummy msgfmt; ac_word=$2
5818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5820 if test "${ac_cv_path_MSGFMT+set}" = set; then
5821   echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823   case "$MSGFMT" in
5824   [\\/]* | ?:[\\/]*)
5825     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5826     ;;
5827   *)
5828     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5829     for ac_dir in $PATH; do
5830       IFS="$ac_save_IFS"
5831       test -z "$ac_dir" && ac_dir=.
5832       for ac_exec_ext in '' $ac_executable_extensions; do
5833         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5834           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5835           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5836      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5837             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5838             break 2
5839           fi
5840         fi
5841       done
5842     done
5843     IFS="$ac_save_IFS"
5844   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5845     ;;
5846 esac
5847 fi
5848 MSGFMT="$ac_cv_path_MSGFMT"
5849 if test "$MSGFMT" != ":"; then
5850   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5851 echo "${ECHO_T}$MSGFMT" >&6; }
5852 else
5853   { echo "$as_me:$LINENO: result: no" >&5
5854 echo "${ECHO_T}no" >&6; }
5855 fi
5856
5857   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5858 set dummy gmsgfmt; ac_word=$2
5859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5861 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   case $GMSGFMT in
5865   [\\/]* | ?:[\\/]*)
5866   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5867   ;;
5868   *)
5869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872   IFS=$as_save_IFS
5873   test -z "$as_dir" && as_dir=.
5874   for ac_exec_ext in '' $ac_executable_extensions; do
5875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878     break 2
5879   fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5885   ;;
5886 esac
5887 fi
5888 GMSGFMT=$ac_cv_path_GMSGFMT
5889 if test -n "$GMSGFMT"; then
5890   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5891 echo "${ECHO_T}$GMSGFMT" >&6; }
5892 else
5893   { echo "$as_me:$LINENO: result: no" >&5
5894 echo "${ECHO_T}no" >&6; }
5895 fi
5896
5897
5898
5899
5900 # Prepare PATH_SEPARATOR.
5901 # The user is always right.
5902 if test "${PATH_SEPARATOR+set}" != set; then
5903   echo "#! /bin/sh" >conf$$.sh
5904   echo  "exit 0"   >>conf$$.sh
5905   chmod +x conf$$.sh
5906   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5907     PATH_SEPARATOR=';'
5908   else
5909     PATH_SEPARATOR=:
5910   fi
5911   rm -f conf$$.sh
5912 fi
5913
5914 # Find out how to test for executable files. Don't use a zero-byte file,
5915 # as systems may use methods other than mode bits to determine executability.
5916 cat >conf$$.file <<_ASEOF
5917 #! /bin/sh
5918 exit 0
5919 _ASEOF
5920 chmod +x conf$$.file
5921 if test -x conf$$.file >/dev/null 2>&1; then
5922   ac_executable_p="test -x"
5923 else
5924   ac_executable_p="test -f"
5925 fi
5926 rm -f conf$$.file
5927
5928 # Extract the first word of "xgettext", so it can be a program name with args.
5929 set dummy xgettext; ac_word=$2
5930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5932 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   case "$XGETTEXT" in
5936   [\\/]* | ?:[\\/]*)
5937     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5938     ;;
5939   *)
5940     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5941     for ac_dir in $PATH; do
5942       IFS="$ac_save_IFS"
5943       test -z "$ac_dir" && ac_dir=.
5944       for ac_exec_ext in '' $ac_executable_extensions; do
5945         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5946           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5947           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5948      (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
5949             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5950             break 2
5951           fi
5952         fi
5953       done
5954     done
5955     IFS="$ac_save_IFS"
5956   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5957     ;;
5958 esac
5959 fi
5960 XGETTEXT="$ac_cv_path_XGETTEXT"
5961 if test "$XGETTEXT" != ":"; then
5962   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5963 echo "${ECHO_T}$XGETTEXT" >&6; }
5964 else
5965   { echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6; }
5967 fi
5968
5969     rm -f messages.po
5970
5971
5972 # Prepare PATH_SEPARATOR.
5973 # The user is always right.
5974 if test "${PATH_SEPARATOR+set}" != set; then
5975   echo "#! /bin/sh" >conf$$.sh
5976   echo  "exit 0"   >>conf$$.sh
5977   chmod +x conf$$.sh
5978   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5979     PATH_SEPARATOR=';'
5980   else
5981     PATH_SEPARATOR=:
5982   fi
5983   rm -f conf$$.sh
5984 fi
5985
5986 # Find out how to test for executable files. Don't use a zero-byte file,
5987 # as systems may use methods other than mode bits to determine executability.
5988 cat >conf$$.file <<_ASEOF
5989 #! /bin/sh
5990 exit 0
5991 _ASEOF
5992 chmod +x conf$$.file
5993 if test -x conf$$.file >/dev/null 2>&1; then
5994   ac_executable_p="test -x"
5995 else
5996   ac_executable_p="test -f"
5997 fi
5998 rm -f conf$$.file
5999
6000 # Extract the first word of "msgmerge", so it can be a program name with args.
6001 set dummy msgmerge; ac_word=$2
6002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6004 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6005   echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007   case "$MSGMERGE" in
6008   [\\/]* | ?:[\\/]*)
6009     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6010     ;;
6011   *)
6012     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6013     for ac_dir in $PATH; do
6014       IFS="$ac_save_IFS"
6015       test -z "$ac_dir" && ac_dir=.
6016       for ac_exec_ext in '' $ac_executable_extensions; do
6017         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6018           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6019           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6020             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6021             break 2
6022           fi
6023         fi
6024       done
6025     done
6026     IFS="$ac_save_IFS"
6027   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6028     ;;
6029 esac
6030 fi
6031 MSGMERGE="$ac_cv_path_MSGMERGE"
6032 if test "$MSGMERGE" != ":"; then
6033   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6034 echo "${ECHO_T}$MSGMERGE" >&6; }
6035 else
6036   { echo "$as_me:$LINENO: result: no" >&5
6037 echo "${ECHO_T}no" >&6; }
6038 fi
6039
6040
6041       if test "$GMSGFMT" != ":"; then
6042             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6043        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6044       : ;
6045     else
6046       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6047       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6048 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6049       GMSGFMT=":"
6050     fi
6051   fi
6052
6053       if test "$XGETTEXT" != ":"; then
6054             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6055        (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
6056       : ;
6057     else
6058       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6059 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6060       XGETTEXT=":"
6061     fi
6062         rm -f messages.po
6063   fi
6064
6065   ac_config_commands="$ac_config_commands default-1"
6066
6067
6068
6069       if test "X$prefix" = "XNONE"; then
6070     acl_final_prefix="$ac_default_prefix"
6071   else
6072     acl_final_prefix="$prefix"
6073   fi
6074   if test "X$exec_prefix" = "XNONE"; then
6075     acl_final_exec_prefix='${prefix}'
6076   else
6077     acl_final_exec_prefix="$exec_prefix"
6078   fi
6079   acl_save_prefix="$prefix"
6080   prefix="$acl_final_prefix"
6081   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6082   prefix="$acl_save_prefix"
6083
6084
6085 # Check whether --with-gnu-ld was given.
6086 if test "${with_gnu_ld+set}" = set; then
6087   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6088 else
6089   with_gnu_ld=no
6090 fi
6091
6092 # Prepare PATH_SEPARATOR.
6093 # The user is always right.
6094 if test "${PATH_SEPARATOR+set}" != set; then
6095   echo "#! /bin/sh" >conf$$.sh
6096   echo  "exit 0"   >>conf$$.sh
6097   chmod +x conf$$.sh
6098   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6099     PATH_SEPARATOR=';'
6100   else
6101     PATH_SEPARATOR=:
6102   fi
6103   rm -f conf$$.sh
6104 fi
6105 ac_prog=ld
6106 if test "$GCC" = yes; then
6107   # Check if gcc -print-prog-name=ld gives a path.
6108   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6109 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6110   case $host in
6111   *-*-mingw*)
6112     # gcc leaves a trailing carriage return which upsets mingw
6113     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6114   *)
6115     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6116   esac
6117   case $ac_prog in
6118     # Accept absolute paths.
6119     [\\/]* | [A-Za-z]:[\\/]*)
6120       re_direlt='/[^/][^/]*/\.\./'
6121       # Canonicalize the path of ld
6122       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6123       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6124         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6125       done
6126       test -z "$LD" && LD="$ac_prog"
6127       ;;
6128   "")
6129     # If it fails, then pretend we aren't using GCC.
6130     ac_prog=ld
6131     ;;
6132   *)
6133     # If it is relative, then search for the first ld in PATH.
6134     with_gnu_ld=unknown
6135     ;;
6136   esac
6137 elif test "$with_gnu_ld" = yes; then
6138   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6139 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6140 else
6141   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6142 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6143 fi
6144 if test "${acl_cv_path_LD+set}" = set; then
6145   echo $ECHO_N "(cached) $ECHO_C" >&6
6146 else
6147   if test -z "$LD"; then
6148   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6149   for ac_dir in $PATH; do
6150     test -z "$ac_dir" && ac_dir=.
6151     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6152       acl_cv_path_LD="$ac_dir/$ac_prog"
6153       # Check to see if the program is GNU ld.  I'd rather use --version,
6154       # but apparently some GNU ld's only accept -v.
6155       # Break only if it was the GNU/non-GNU ld that we prefer.
6156       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6157       *GNU* | *'with BFD'*)
6158         test "$with_gnu_ld" != no && break ;;
6159       *)
6160         test "$with_gnu_ld" != yes && break ;;
6161       esac
6162     fi
6163   done
6164   IFS="$ac_save_ifs"
6165 else
6166   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6167 fi
6168 fi
6169
6170 LD="$acl_cv_path_LD"
6171 if test -n "$LD"; then
6172   { echo "$as_me:$LINENO: result: $LD" >&5
6173 echo "${ECHO_T}$LD" >&6; }
6174 else
6175   { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6177 fi
6178 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6179 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6180    { (exit 1); exit 1; }; }
6181 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6182 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6183 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6184   echo $ECHO_N "(cached) $ECHO_C" >&6
6185 else
6186   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6187 case `$LD -v 2>&1 </dev/null` in
6188 *GNU* | *'with BFD'*)
6189   acl_cv_prog_gnu_ld=yes ;;
6190 *)
6191   acl_cv_prog_gnu_ld=no ;;
6192 esac
6193 fi
6194 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6195 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6196 with_gnu_ld=$acl_cv_prog_gnu_ld
6197
6198
6199
6200
6201                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6202 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6203 if test "${acl_cv_rpath+set}" = set; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206
6207     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6208     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6209     . ./conftest.sh
6210     rm -f ./conftest.sh
6211     acl_cv_rpath=done
6212
6213 fi
6214 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6215 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6216   wl="$acl_cv_wl"
6217   libext="$acl_cv_libext"
6218   shlibext="$acl_cv_shlibext"
6219   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6220   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6221   hardcode_direct="$acl_cv_hardcode_direct"
6222   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6223     # Check whether --enable-rpath was given.
6224 if test "${enable_rpath+set}" = set; then
6225   enableval=$enable_rpath; :
6226 else
6227   enable_rpath=yes
6228 fi
6229
6230
6231
6232
6233
6234
6235
6236
6237     use_additional=yes
6238
6239   acl_save_prefix="$prefix"
6240   prefix="$acl_final_prefix"
6241   acl_save_exec_prefix="$exec_prefix"
6242   exec_prefix="$acl_final_exec_prefix"
6243
6244     eval additional_includedir=\"$includedir\"
6245     eval additional_libdir=\"$libdir\"
6246
6247   exec_prefix="$acl_save_exec_prefix"
6248   prefix="$acl_save_prefix"
6249
6250
6251 # Check whether --with-libiconv-prefix was given.
6252 if test "${with_libiconv_prefix+set}" = set; then
6253   withval=$with_libiconv_prefix;
6254     if test "X$withval" = "Xno"; then
6255       use_additional=no
6256     else
6257       if test "X$withval" = "X"; then
6258
6259   acl_save_prefix="$prefix"
6260   prefix="$acl_final_prefix"
6261   acl_save_exec_prefix="$exec_prefix"
6262   exec_prefix="$acl_final_exec_prefix"
6263
6264           eval additional_includedir=\"$includedir\"
6265           eval additional_libdir=\"$libdir\"
6266
6267   exec_prefix="$acl_save_exec_prefix"
6268   prefix="$acl_save_prefix"
6269
6270       else
6271         additional_includedir="$withval/include"
6272         additional_libdir="$withval/lib"
6273       fi
6274     fi
6275
6276 fi
6277
6278       LIBICONV=
6279   LTLIBICONV=
6280   INCICONV=
6281   rpathdirs=
6282   ltrpathdirs=
6283   names_already_handled=
6284   names_next_round='iconv '
6285   while test -n "$names_next_round"; do
6286     names_this_round="$names_next_round"
6287     names_next_round=
6288     for name in $names_this_round; do
6289       already_handled=
6290       for n in $names_already_handled; do
6291         if test "$n" = "$name"; then
6292           already_handled=yes
6293           break
6294         fi
6295       done
6296       if test -z "$already_handled"; then
6297         names_already_handled="$names_already_handled $name"
6298                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6299         eval value=\"\$HAVE_LIB$uppername\"
6300         if test -n "$value"; then
6301           if test "$value" = yes; then
6302             eval value=\"\$LIB$uppername\"
6303             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6304             eval value=\"\$LTLIB$uppername\"
6305             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6306           else
6307                                     :
6308           fi
6309         else
6310                               found_dir=
6311           found_la=
6312           found_so=
6313           found_a=
6314           if test $use_additional = yes; then
6315             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6316               found_dir="$additional_libdir"
6317               found_so="$additional_libdir/lib$name.$shlibext"
6318               if test -f "$additional_libdir/lib$name.la"; then
6319                 found_la="$additional_libdir/lib$name.la"
6320               fi
6321             else
6322               if test -f "$additional_libdir/lib$name.$libext"; then
6323                 found_dir="$additional_libdir"
6324                 found_a="$additional_libdir/lib$name.$libext"
6325                 if test -f "$additional_libdir/lib$name.la"; then
6326                   found_la="$additional_libdir/lib$name.la"
6327                 fi
6328               fi
6329             fi
6330           fi
6331           if test "X$found_dir" = "X"; then
6332             for x in $LDFLAGS $LTLIBICONV; do
6333
6334   acl_save_prefix="$prefix"
6335   prefix="$acl_final_prefix"
6336   acl_save_exec_prefix="$exec_prefix"
6337   exec_prefix="$acl_final_exec_prefix"
6338   eval x=\"$x\"
6339   exec_prefix="$acl_save_exec_prefix"
6340   prefix="$acl_save_prefix"
6341
6342               case "$x" in
6343                 -L*)
6344                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6345                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6346                     found_dir="$dir"
6347                     found_so="$dir/lib$name.$shlibext"
6348                     if test -f "$dir/lib$name.la"; then
6349                       found_la="$dir/lib$name.la"
6350                     fi
6351                   else
6352                     if test -f "$dir/lib$name.$libext"; then
6353                       found_dir="$dir"
6354                       found_a="$dir/lib$name.$libext"
6355                       if test -f "$dir/lib$name.la"; then
6356                         found_la="$dir/lib$name.la"
6357                       fi
6358                     fi
6359                   fi
6360                   ;;
6361               esac
6362               if test "X$found_dir" != "X"; then
6363                 break
6364               fi
6365             done
6366           fi
6367           if test "X$found_dir" != "X"; then
6368                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6369             if test "X$found_so" != "X"; then
6370                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6371                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6372               else
6373                                                                                 haveit=
6374                 for x in $ltrpathdirs; do
6375                   if test "X$x" = "X$found_dir"; then
6376                     haveit=yes
6377                     break
6378                   fi
6379                 done
6380                 if test -z "$haveit"; then
6381                   ltrpathdirs="$ltrpathdirs $found_dir"
6382                 fi
6383                                 if test "$hardcode_direct" = yes; then
6384                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6385                 else
6386                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6387                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6388                                                             haveit=
6389                     for x in $rpathdirs; do
6390                       if test "X$x" = "X$found_dir"; then
6391                         haveit=yes
6392                         break
6393                       fi
6394                     done
6395                     if test -z "$haveit"; then
6396                       rpathdirs="$rpathdirs $found_dir"
6397                     fi
6398                   else
6399                                                                                 haveit=
6400                     for x in $LDFLAGS $LIBICONV; do
6401
6402   acl_save_prefix="$prefix"
6403   prefix="$acl_final_prefix"
6404   acl_save_exec_prefix="$exec_prefix"
6405   exec_prefix="$acl_final_exec_prefix"
6406   eval x=\"$x\"
6407   exec_prefix="$acl_save_exec_prefix"
6408   prefix="$acl_save_prefix"
6409
6410                       if test "X$x" = "X-L$found_dir"; then
6411                         haveit=yes
6412                         break
6413                       fi
6414                     done
6415                     if test -z "$haveit"; then
6416                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6417                     fi
6418                     if test "$hardcode_minus_L" != no; then
6419                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6420                     else
6421                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6422                     fi
6423                   fi
6424                 fi
6425               fi
6426             else
6427               if test "X$found_a" != "X"; then
6428                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6429               else
6430                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6431               fi
6432             fi
6433                         additional_includedir=
6434             case "$found_dir" in
6435               */lib | */lib/)
6436                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6437                 additional_includedir="$basedir/include"
6438                 ;;
6439             esac
6440             if test "X$additional_includedir" != "X"; then
6441                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6442                 haveit=
6443                 if test "X$additional_includedir" = "X/usr/local/include"; then
6444                   if test -n "$GCC"; then
6445                     case $host_os in
6446                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6447                     esac
6448                   fi
6449                 fi
6450                 if test -z "$haveit"; then
6451                   for x in $CPPFLAGS $INCICONV; do
6452
6453   acl_save_prefix="$prefix"
6454   prefix="$acl_final_prefix"
6455   acl_save_exec_prefix="$exec_prefix"
6456   exec_prefix="$acl_final_exec_prefix"
6457   eval x=\"$x\"
6458   exec_prefix="$acl_save_exec_prefix"
6459   prefix="$acl_save_prefix"
6460
6461                     if test "X$x" = "X-I$additional_includedir"; then
6462                       haveit=yes
6463                       break
6464                     fi
6465                   done
6466                   if test -z "$haveit"; then
6467                     if test -d "$additional_includedir"; then
6468                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6469                     fi
6470                   fi
6471                 fi
6472               fi
6473             fi
6474                         if test -n "$found_la"; then
6475                                                         save_libdir="$libdir"
6476               case "$found_la" in
6477                 */* | *\\*) . "$found_la" ;;
6478                 *) . "./$found_la" ;;
6479               esac
6480               libdir="$save_libdir"
6481                             for dep in $dependency_libs; do
6482                 case "$dep" in
6483                   -L*)
6484                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6485                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6486                       haveit=
6487                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6488                         if test -n "$GCC"; then
6489                           case $host_os in
6490                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6491                           esac
6492                         fi
6493                       fi
6494                       if test -z "$haveit"; then
6495                         haveit=
6496                         for x in $LDFLAGS $LIBICONV; 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-L$additional_libdir"; then
6507                             haveit=yes
6508                             break
6509                           fi
6510                         done
6511                         if test -z "$haveit"; then
6512                           if test -d "$additional_libdir"; then
6513                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6514                           fi
6515                         fi
6516                         haveit=
6517                         for x in $LDFLAGS $LTLIBICONV; do
6518
6519   acl_save_prefix="$prefix"
6520   prefix="$acl_final_prefix"
6521   acl_save_exec_prefix="$exec_prefix"
6522   exec_prefix="$acl_final_exec_prefix"
6523   eval x=\"$x\"
6524   exec_prefix="$acl_save_exec_prefix"
6525   prefix="$acl_save_prefix"
6526
6527                           if test "X$x" = "X-L$additional_libdir"; then
6528                             haveit=yes
6529                             break
6530                           fi
6531                         done
6532                         if test -z "$haveit"; then
6533                           if test -d "$additional_libdir"; then
6534                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6535                           fi
6536                         fi
6537                       fi
6538                     fi
6539                     ;;
6540                   -R*)
6541                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6542                     if test "$enable_rpath" != no; then
6543                                                                   haveit=
6544                       for x in $rpathdirs; do
6545                         if test "X$x" = "X$dir"; then
6546                           haveit=yes
6547                           break
6548                         fi
6549                       done
6550                       if test -z "$haveit"; then
6551                         rpathdirs="$rpathdirs $dir"
6552                       fi
6553                                                                   haveit=
6554                       for x in $ltrpathdirs; do
6555                         if test "X$x" = "X$dir"; then
6556                           haveit=yes
6557                           break
6558                         fi
6559                       done
6560                       if test -z "$haveit"; then
6561                         ltrpathdirs="$ltrpathdirs $dir"
6562                       fi
6563                     fi
6564                     ;;
6565                   -l*)
6566                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6567                     ;;
6568                   *.la)
6569                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6570                     ;;
6571                   *)
6572                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6573                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6574                     ;;
6575                 esac
6576               done
6577             fi
6578           else
6579                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6580             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6581           fi
6582         fi
6583       fi
6584     done
6585   done
6586   if test "X$rpathdirs" != "X"; then
6587     if test -n "$hardcode_libdir_separator"; then
6588                         alldirs=
6589       for found_dir in $rpathdirs; do
6590         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6591       done
6592             acl_save_libdir="$libdir"
6593       libdir="$alldirs"
6594       eval flag=\"$hardcode_libdir_flag_spec\"
6595       libdir="$acl_save_libdir"
6596       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6597     else
6598             for found_dir in $rpathdirs; do
6599         acl_save_libdir="$libdir"
6600         libdir="$found_dir"
6601         eval flag=\"$hardcode_libdir_flag_spec\"
6602         libdir="$acl_save_libdir"
6603         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6604       done
6605     fi
6606   fi
6607   if test "X$ltrpathdirs" != "X"; then
6608             for found_dir in $ltrpathdirs; do
6609       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6610     done
6611   fi
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6631 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6632 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6633   echo $ECHO_N "(cached) $ECHO_C" >&6
6634 else
6635   gt_save_CPPFLAGS="$CPPFLAGS"
6636      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6637      gt_save_LIBS="$LIBS"
6638      LIBS="$LIBS -framework CoreFoundation"
6639      cat >conftest.$ac_ext <<_ACEOF
6640 /* confdefs.h.  */
6641 _ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h.  */
6645 #include <CFPreferences.h>
6646 int
6647 main ()
6648 {
6649 CFPreferencesCopyAppValue(NULL, NULL)
6650   ;
6651   return 0;
6652 }
6653 _ACEOF
6654 rm -f conftest.$ac_objext conftest$ac_exeext
6655 if { (ac_try="$ac_link"
6656 case "(($ac_try" in
6657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658   *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661   (eval "$ac_link") 2>conftest.er1
6662   ac_status=$?
6663   grep -v '^ *+' conftest.er1 >conftest.err
6664   rm -f conftest.er1
6665   cat conftest.err >&5
6666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667   (exit $ac_status); } && {
6668          test -z "$ac_c_werror_flag" ||
6669          test ! -s conftest.err
6670        } && test -s conftest$ac_exeext &&
6671        $as_test_x conftest$ac_exeext; then
6672   gt_cv_func_CFPreferencesCopyAppValue=yes
6673 else
6674   echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6676
6677         gt_cv_func_CFPreferencesCopyAppValue=no
6678 fi
6679
6680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6681       conftest$ac_exeext conftest.$ac_ext
6682      CPPFLAGS="$gt_save_CPPFLAGS"
6683      LIBS="$gt_save_LIBS"
6684 fi
6685 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6686 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6687   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6688
6689 cat >>confdefs.h <<\_ACEOF
6690 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6691 _ACEOF
6692
6693   fi
6694     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6695 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6696 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6697   echo $ECHO_N "(cached) $ECHO_C" >&6
6698 else
6699   gt_save_CPPFLAGS="$CPPFLAGS"
6700      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6701      gt_save_LIBS="$LIBS"
6702      LIBS="$LIBS -framework CoreFoundation"
6703      cat >conftest.$ac_ext <<_ACEOF
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709 #include <CFLocale.h>
6710 int
6711 main ()
6712 {
6713 CFLocaleCopyCurrent();
6714   ;
6715   return 0;
6716 }
6717 _ACEOF
6718 rm -f conftest.$ac_objext conftest$ac_exeext
6719 if { (ac_try="$ac_link"
6720 case "(($ac_try" in
6721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6722   *) ac_try_echo=$ac_try;;
6723 esac
6724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6725   (eval "$ac_link") 2>conftest.er1
6726   ac_status=$?
6727   grep -v '^ *+' conftest.er1 >conftest.err
6728   rm -f conftest.er1
6729   cat conftest.err >&5
6730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731   (exit $ac_status); } && {
6732          test -z "$ac_c_werror_flag" ||
6733          test ! -s conftest.err
6734        } && test -s conftest$ac_exeext &&
6735        $as_test_x conftest$ac_exeext; then
6736   gt_cv_func_CFLocaleCopyCurrent=yes
6737 else
6738   echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741         gt_cv_func_CFLocaleCopyCurrent=no
6742 fi
6743
6744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6745       conftest$ac_exeext conftest.$ac_ext
6746      CPPFLAGS="$gt_save_CPPFLAGS"
6747      LIBS="$gt_save_LIBS"
6748 fi
6749 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6750 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6751   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6752
6753 cat >>confdefs.h <<\_ACEOF
6754 #define HAVE_CFLOCALECOPYCURRENT 1
6755 _ACEOF
6756
6757   fi
6758   INTL_MACOSX_LIBS=
6759   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6760     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6761   fi
6762
6763
6764
6765
6766   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6767 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6768     # Check whether --enable-nls was given.
6769 if test "${enable_nls+set}" = set; then
6770   enableval=$enable_nls; USE_NLS=$enableval
6771 else
6772   USE_NLS=yes
6773 fi
6774
6775   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6776 echo "${ECHO_T}$USE_NLS" >&6; }
6777
6778
6779
6780
6781   LIBINTL=
6782   LTLIBINTL=
6783   POSUB=
6784
6785     if test "$USE_NLS" = "yes"; then
6786     gt_use_preinstalled_gnugettext=no
6787
6788
6789
6790
6791
6792
6793         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6794 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6795 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   cat >conftest.$ac_ext <<_ACEOF
6799 /* confdefs.h.  */
6800 _ACEOF
6801 cat confdefs.h >>conftest.$ac_ext
6802 cat >>conftest.$ac_ext <<_ACEOF
6803 /* end confdefs.h.  */
6804 #include <libintl.h>
6805 extern int _nl_msg_cat_cntr;
6806 extern int *_nl_domain_bindings;
6807 int
6808 main ()
6809 {
6810 bindtextdomain ("", "");
6811 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6812   ;
6813   return 0;
6814 }
6815 _ACEOF
6816 rm -f conftest.$ac_objext conftest$ac_exeext
6817 if { (ac_try="$ac_link"
6818 case "(($ac_try" in
6819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820   *) ac_try_echo=$ac_try;;
6821 esac
6822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6823   (eval "$ac_link") 2>conftest.er1
6824   ac_status=$?
6825   grep -v '^ *+' conftest.er1 >conftest.err
6826   rm -f conftest.er1
6827   cat conftest.err >&5
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); } && {
6830          test -z "$ac_c_werror_flag" ||
6831          test ! -s conftest.err
6832        } && test -s conftest$ac_exeext &&
6833        $as_test_x conftest$ac_exeext; then
6834   gt_cv_func_gnugettext1_libc=yes
6835 else
6836   echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6838
6839         gt_cv_func_gnugettext1_libc=no
6840 fi
6841
6842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6843       conftest$ac_exeext conftest.$ac_ext
6844 fi
6845 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6846 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6847
6848         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6849
6850
6851
6852
6853
6854           am_save_CPPFLAGS="$CPPFLAGS"
6855
6856   for element in $INCICONV; do
6857     haveit=
6858     for x in $CPPFLAGS; do
6859
6860   acl_save_prefix="$prefix"
6861   prefix="$acl_final_prefix"
6862   acl_save_exec_prefix="$exec_prefix"
6863   exec_prefix="$acl_final_exec_prefix"
6864   eval x=\"$x\"
6865   exec_prefix="$acl_save_exec_prefix"
6866   prefix="$acl_save_prefix"
6867
6868       if test "X$x" = "X$element"; then
6869         haveit=yes
6870         break
6871       fi
6872     done
6873     if test -z "$haveit"; then
6874       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6875     fi
6876   done
6877
6878
6879   { echo "$as_me:$LINENO: checking for iconv" >&5
6880 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6881 if test "${am_cv_func_iconv+set}" = set; then
6882   echo $ECHO_N "(cached) $ECHO_C" >&6
6883 else
6884
6885     am_cv_func_iconv="no, consider installing GNU libiconv"
6886     am_cv_lib_iconv=no
6887     cat >conftest.$ac_ext <<_ACEOF
6888 /* confdefs.h.  */
6889 _ACEOF
6890 cat confdefs.h >>conftest.$ac_ext
6891 cat >>conftest.$ac_ext <<_ACEOF
6892 /* end confdefs.h.  */
6893 #include <stdlib.h>
6894 #include <iconv.h>
6895 int
6896 main ()
6897 {
6898 iconv_t cd = iconv_open("","");
6899        iconv(cd,NULL,NULL,NULL,NULL);
6900        iconv_close(cd);
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 rm -f conftest.$ac_objext conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6907 case "(($ac_try" in
6908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6909   *) ac_try_echo=$ac_try;;
6910 esac
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912   (eval "$ac_link") 2>conftest.er1
6913   ac_status=$?
6914   grep -v '^ *+' conftest.er1 >conftest.err
6915   rm -f conftest.er1
6916   cat conftest.err >&5
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } && {
6919          test -z "$ac_c_werror_flag" ||
6920          test ! -s conftest.err
6921        } && test -s conftest$ac_exeext &&
6922        $as_test_x conftest$ac_exeext; then
6923   am_cv_func_iconv=yes
6924 else
6925   echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6927
6928
6929 fi
6930
6931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6932       conftest$ac_exeext conftest.$ac_ext
6933     if test "$am_cv_func_iconv" != yes; then
6934       am_save_LIBS="$LIBS"
6935       LIBS="$LIBS $LIBICONV"
6936       cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h.  */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h.  */
6942 #include <stdlib.h>
6943 #include <iconv.h>
6944 int
6945 main ()
6946 {
6947 iconv_t cd = iconv_open("","");
6948          iconv(cd,NULL,NULL,NULL,NULL);
6949          iconv_close(cd);
6950   ;
6951   return 0;
6952 }
6953 _ACEOF
6954 rm -f conftest.$ac_objext conftest$ac_exeext
6955 if { (ac_try="$ac_link"
6956 case "(($ac_try" in
6957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6958   *) ac_try_echo=$ac_try;;
6959 esac
6960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6961   (eval "$ac_link") 2>conftest.er1
6962   ac_status=$?
6963   grep -v '^ *+' conftest.er1 >conftest.err
6964   rm -f conftest.er1
6965   cat conftest.err >&5
6966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967   (exit $ac_status); } && {
6968          test -z "$ac_c_werror_flag" ||
6969          test ! -s conftest.err
6970        } && test -s conftest$ac_exeext &&
6971        $as_test_x conftest$ac_exeext; then
6972   am_cv_lib_iconv=yes
6973         am_cv_func_iconv=yes
6974 else
6975   echo "$as_me: failed program was:" >&5
6976 sed 's/^/| /' conftest.$ac_ext >&5
6977
6978
6979 fi
6980
6981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6982       conftest$ac_exeext conftest.$ac_ext
6983       LIBS="$am_save_LIBS"
6984     fi
6985
6986 fi
6987 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6988 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6989   if test "$am_cv_func_iconv" = yes; then
6990
6991 cat >>confdefs.h <<\_ACEOF
6992 #define HAVE_ICONV 1
6993 _ACEOF
6994
6995   fi
6996   if test "$am_cv_lib_iconv" = yes; then
6997     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6998 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6999     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7000 echo "${ECHO_T}$LIBICONV" >&6; }
7001   else
7002             CPPFLAGS="$am_save_CPPFLAGS"
7003     LIBICONV=
7004     LTLIBICONV=
7005   fi
7006
7007
7008
7009
7010
7011
7012     use_additional=yes
7013
7014   acl_save_prefix="$prefix"
7015   prefix="$acl_final_prefix"
7016   acl_save_exec_prefix="$exec_prefix"
7017   exec_prefix="$acl_final_exec_prefix"
7018
7019     eval additional_includedir=\"$includedir\"
7020     eval additional_libdir=\"$libdir\"
7021
7022   exec_prefix="$acl_save_exec_prefix"
7023   prefix="$acl_save_prefix"
7024
7025
7026 # Check whether --with-libintl-prefix was given.
7027 if test "${with_libintl_prefix+set}" = set; then
7028   withval=$with_libintl_prefix;
7029     if test "X$withval" = "Xno"; then
7030       use_additional=no
7031     else
7032       if test "X$withval" = "X"; then
7033
7034   acl_save_prefix="$prefix"
7035   prefix="$acl_final_prefix"
7036   acl_save_exec_prefix="$exec_prefix"
7037   exec_prefix="$acl_final_exec_prefix"
7038
7039           eval additional_includedir=\"$includedir\"
7040           eval additional_libdir=\"$libdir\"
7041
7042   exec_prefix="$acl_save_exec_prefix"
7043   prefix="$acl_save_prefix"
7044
7045       else
7046         additional_includedir="$withval/include"
7047         additional_libdir="$withval/lib"
7048       fi
7049     fi
7050
7051 fi
7052
7053       LIBINTL=
7054   LTLIBINTL=
7055   INCINTL=
7056   rpathdirs=
7057   ltrpathdirs=
7058   names_already_handled=
7059   names_next_round='intl '
7060   while test -n "$names_next_round"; do
7061     names_this_round="$names_next_round"
7062     names_next_round=
7063     for name in $names_this_round; do
7064       already_handled=
7065       for n in $names_already_handled; do
7066         if test "$n" = "$name"; then
7067           already_handled=yes
7068           break
7069         fi
7070       done
7071       if test -z "$already_handled"; then
7072         names_already_handled="$names_already_handled $name"
7073                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7074         eval value=\"\$HAVE_LIB$uppername\"
7075         if test -n "$value"; then
7076           if test "$value" = yes; then
7077             eval value=\"\$LIB$uppername\"
7078             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7079             eval value=\"\$LTLIB$uppername\"
7080             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7081           else
7082                                     :
7083           fi
7084         else
7085                               found_dir=
7086           found_la=
7087           found_so=
7088           found_a=
7089           if test $use_additional = yes; then
7090             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7091               found_dir="$additional_libdir"
7092               found_so="$additional_libdir/lib$name.$shlibext"
7093               if test -f "$additional_libdir/lib$name.la"; then
7094                 found_la="$additional_libdir/lib$name.la"
7095               fi
7096             else
7097               if test -f "$additional_libdir/lib$name.$libext"; then
7098                 found_dir="$additional_libdir"
7099                 found_a="$additional_libdir/lib$name.$libext"
7100                 if test -f "$additional_libdir/lib$name.la"; then
7101                   found_la="$additional_libdir/lib$name.la"
7102                 fi
7103               fi
7104             fi
7105           fi
7106           if test "X$found_dir" = "X"; then
7107             for x in $LDFLAGS $LTLIBINTL; do
7108
7109   acl_save_prefix="$prefix"
7110   prefix="$acl_final_prefix"
7111   acl_save_exec_prefix="$exec_prefix"
7112   exec_prefix="$acl_final_exec_prefix"
7113   eval x=\"$x\"
7114   exec_prefix="$acl_save_exec_prefix"
7115   prefix="$acl_save_prefix"
7116
7117               case "$x" in
7118                 -L*)
7119                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7120                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7121                     found_dir="$dir"
7122                     found_so="$dir/lib$name.$shlibext"
7123                     if test -f "$dir/lib$name.la"; then
7124                       found_la="$dir/lib$name.la"
7125                     fi
7126                   else
7127                     if test -f "$dir/lib$name.$libext"; then
7128                       found_dir="$dir"
7129                       found_a="$dir/lib$name.$libext"
7130                       if test -f "$dir/lib$name.la"; then
7131                         found_la="$dir/lib$name.la"
7132                       fi
7133                     fi
7134                   fi
7135                   ;;
7136               esac
7137               if test "X$found_dir" != "X"; then
7138                 break
7139               fi
7140             done
7141           fi
7142           if test "X$found_dir" != "X"; then
7143                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7144             if test "X$found_so" != "X"; then
7145                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7146                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7147               else
7148                                                                                 haveit=
7149                 for x in $ltrpathdirs; do
7150                   if test "X$x" = "X$found_dir"; then
7151                     haveit=yes
7152                     break
7153                   fi
7154                 done
7155                 if test -z "$haveit"; then
7156                   ltrpathdirs="$ltrpathdirs $found_dir"
7157                 fi
7158                                 if test "$hardcode_direct" = yes; then
7159                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7160                 else
7161                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7162                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7163                                                             haveit=
7164                     for x in $rpathdirs; do
7165                       if test "X$x" = "X$found_dir"; then
7166                         haveit=yes
7167                         break
7168                       fi
7169                     done
7170                     if test -z "$haveit"; then
7171                       rpathdirs="$rpathdirs $found_dir"
7172                     fi
7173                   else
7174                                                                                 haveit=
7175                     for x in $LDFLAGS $LIBINTL; do
7176
7177   acl_save_prefix="$prefix"
7178   prefix="$acl_final_prefix"
7179   acl_save_exec_prefix="$exec_prefix"
7180   exec_prefix="$acl_final_exec_prefix"
7181   eval x=\"$x\"
7182   exec_prefix="$acl_save_exec_prefix"
7183   prefix="$acl_save_prefix"
7184
7185                       if test "X$x" = "X-L$found_dir"; then
7186                         haveit=yes
7187                         break
7188                       fi
7189                     done
7190                     if test -z "$haveit"; then
7191                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7192                     fi
7193                     if test "$hardcode_minus_L" != no; then
7194                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7195                     else
7196                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7197                     fi
7198                   fi
7199                 fi
7200               fi
7201             else
7202               if test "X$found_a" != "X"; then
7203                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7204               else
7205                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7206               fi
7207             fi
7208                         additional_includedir=
7209             case "$found_dir" in
7210               */lib | */lib/)
7211                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7212                 additional_includedir="$basedir/include"
7213                 ;;
7214             esac
7215             if test "X$additional_includedir" != "X"; then
7216                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7217                 haveit=
7218                 if test "X$additional_includedir" = "X/usr/local/include"; then
7219                   if test -n "$GCC"; then
7220                     case $host_os in
7221                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7222                     esac
7223                   fi
7224                 fi
7225                 if test -z "$haveit"; then
7226                   for x in $CPPFLAGS $INCINTL; do
7227
7228   acl_save_prefix="$prefix"
7229   prefix="$acl_final_prefix"
7230   acl_save_exec_prefix="$exec_prefix"
7231   exec_prefix="$acl_final_exec_prefix"
7232   eval x=\"$x\"
7233   exec_prefix="$acl_save_exec_prefix"
7234   prefix="$acl_save_prefix"
7235
7236                     if test "X$x" = "X-I$additional_includedir"; then
7237                       haveit=yes
7238                       break
7239                     fi
7240                   done
7241                   if test -z "$haveit"; then
7242                     if test -d "$additional_includedir"; then
7243                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7244                     fi
7245                   fi
7246                 fi
7247               fi
7248             fi
7249                         if test -n "$found_la"; then
7250                                                         save_libdir="$libdir"
7251               case "$found_la" in
7252                 */* | *\\*) . "$found_la" ;;
7253                 *) . "./$found_la" ;;
7254               esac
7255               libdir="$save_libdir"
7256                             for dep in $dependency_libs; do
7257                 case "$dep" in
7258                   -L*)
7259                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7260                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7261                       haveit=
7262                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7263                         if test -n "$GCC"; then
7264                           case $host_os in
7265                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7266                           esac
7267                         fi
7268                       fi
7269                       if test -z "$haveit"; then
7270                         haveit=
7271                         for x in $LDFLAGS $LIBINTL; do
7272
7273   acl_save_prefix="$prefix"
7274   prefix="$acl_final_prefix"
7275   acl_save_exec_prefix="$exec_prefix"
7276   exec_prefix="$acl_final_exec_prefix"
7277   eval x=\"$x\"
7278   exec_prefix="$acl_save_exec_prefix"
7279   prefix="$acl_save_prefix"
7280
7281                           if test "X$x" = "X-L$additional_libdir"; then
7282                             haveit=yes
7283                             break
7284                           fi
7285                         done
7286                         if test -z "$haveit"; then
7287                           if test -d "$additional_libdir"; then
7288                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7289                           fi
7290                         fi
7291                         haveit=
7292                         for x in $LDFLAGS $LTLIBINTL; do
7293
7294   acl_save_prefix="$prefix"
7295   prefix="$acl_final_prefix"
7296   acl_save_exec_prefix="$exec_prefix"
7297   exec_prefix="$acl_final_exec_prefix"
7298   eval x=\"$x\"
7299   exec_prefix="$acl_save_exec_prefix"
7300   prefix="$acl_save_prefix"
7301
7302                           if test "X$x" = "X-L$additional_libdir"; then
7303                             haveit=yes
7304                             break
7305                           fi
7306                         done
7307                         if test -z "$haveit"; then
7308                           if test -d "$additional_libdir"; then
7309                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7310                           fi
7311                         fi
7312                       fi
7313                     fi
7314                     ;;
7315                   -R*)
7316                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7317                     if test "$enable_rpath" != no; then
7318                                                                   haveit=
7319                       for x in $rpathdirs; do
7320                         if test "X$x" = "X$dir"; then
7321                           haveit=yes
7322                           break
7323                         fi
7324                       done
7325                       if test -z "$haveit"; then
7326                         rpathdirs="$rpathdirs $dir"
7327                       fi
7328                                                                   haveit=
7329                       for x in $ltrpathdirs; do
7330                         if test "X$x" = "X$dir"; then
7331                           haveit=yes
7332                           break
7333                         fi
7334                       done
7335                       if test -z "$haveit"; then
7336                         ltrpathdirs="$ltrpathdirs $dir"
7337                       fi
7338                     fi
7339                     ;;
7340                   -l*)
7341                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7342                     ;;
7343                   *.la)
7344                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7345                     ;;
7346                   *)
7347                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7348                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7349                     ;;
7350                 esac
7351               done
7352             fi
7353           else
7354                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7355             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7356           fi
7357         fi
7358       fi
7359     done
7360   done
7361   if test "X$rpathdirs" != "X"; then
7362     if test -n "$hardcode_libdir_separator"; then
7363                         alldirs=
7364       for found_dir in $rpathdirs; do
7365         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7366       done
7367             acl_save_libdir="$libdir"
7368       libdir="$alldirs"
7369       eval flag=\"$hardcode_libdir_flag_spec\"
7370       libdir="$acl_save_libdir"
7371       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7372     else
7373             for found_dir in $rpathdirs; do
7374         acl_save_libdir="$libdir"
7375         libdir="$found_dir"
7376         eval flag=\"$hardcode_libdir_flag_spec\"
7377         libdir="$acl_save_libdir"
7378         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7379       done
7380     fi
7381   fi
7382   if test "X$ltrpathdirs" != "X"; then
7383             for found_dir in $ltrpathdirs; do
7384       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7385     done
7386   fi
7387
7388           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7389 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7390 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   gt_save_CPPFLAGS="$CPPFLAGS"
7394             CPPFLAGS="$CPPFLAGS $INCINTL"
7395             gt_save_LIBS="$LIBS"
7396             LIBS="$LIBS $LIBINTL"
7397                         cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 #include <libintl.h>
7404 extern int _nl_msg_cat_cntr;
7405 extern
7406 #ifdef __cplusplus
7407 "C"
7408 #endif
7409 const char *_nl_expand_alias (const char *);
7410 int
7411 main ()
7412 {
7413 bindtextdomain ("", "");
7414 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7415   ;
7416   return 0;
7417 }
7418 _ACEOF
7419 rm -f conftest.$ac_objext conftest$ac_exeext
7420 if { (ac_try="$ac_link"
7421 case "(($ac_try" in
7422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423   *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426   (eval "$ac_link") 2>conftest.er1
7427   ac_status=$?
7428   grep -v '^ *+' conftest.er1 >conftest.err
7429   rm -f conftest.er1
7430   cat conftest.err >&5
7431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432   (exit $ac_status); } && {
7433          test -z "$ac_c_werror_flag" ||
7434          test ! -s conftest.err
7435        } && test -s conftest$ac_exeext &&
7436        $as_test_x conftest$ac_exeext; then
7437   gt_cv_func_gnugettext1_libintl=yes
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442         gt_cv_func_gnugettext1_libintl=no
7443 fi
7444
7445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7446       conftest$ac_exeext conftest.$ac_ext
7447                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7448               LIBS="$LIBS $LIBICONV"
7449               cat >conftest.$ac_ext <<_ACEOF
7450 /* confdefs.h.  */
7451 _ACEOF
7452 cat confdefs.h >>conftest.$ac_ext
7453 cat >>conftest.$ac_ext <<_ACEOF
7454 /* end confdefs.h.  */
7455 #include <libintl.h>
7456 extern int _nl_msg_cat_cntr;
7457 extern
7458 #ifdef __cplusplus
7459 "C"
7460 #endif
7461 const char *_nl_expand_alias (const char *);
7462 int
7463 main ()
7464 {
7465 bindtextdomain ("", "");
7466 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 rm -f conftest.$ac_objext conftest$ac_exeext
7472 if { (ac_try="$ac_link"
7473 case "(($ac_try" in
7474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475   *) ac_try_echo=$ac_try;;
7476 esac
7477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7478   (eval "$ac_link") 2>conftest.er1
7479   ac_status=$?
7480   grep -v '^ *+' conftest.er1 >conftest.err
7481   rm -f conftest.er1
7482   cat conftest.err >&5
7483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); } && {
7485          test -z "$ac_c_werror_flag" ||
7486          test ! -s conftest.err
7487        } && test -s conftest$ac_exeext &&
7488        $as_test_x conftest$ac_exeext; then
7489   LIBINTL="$LIBINTL $LIBICONV"
7490                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7491                 gt_cv_func_gnugettext1_libintl=yes
7492
7493 else
7494   echo "$as_me: failed program was:" >&5
7495 sed 's/^/| /' conftest.$ac_ext >&5
7496
7497
7498 fi
7499
7500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7501       conftest$ac_exeext conftest.$ac_ext
7502             fi
7503             CPPFLAGS="$gt_save_CPPFLAGS"
7504             LIBS="$gt_save_LIBS"
7505 fi
7506 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7507 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7508         fi
7509
7510                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7511            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7512                 && test "$PACKAGE" != gettext-runtime \
7513                 && test "$PACKAGE" != gettext-tools; }; then
7514           gt_use_preinstalled_gnugettext=yes
7515         else
7516                     LIBINTL=
7517           LTLIBINTL=
7518           INCINTL=
7519         fi
7520
7521
7522
7523     if test -n "$INTL_MACOSX_LIBS"; then
7524       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7525          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7526                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7527         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7528       fi
7529     fi
7530
7531     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7532        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7533
7534 cat >>confdefs.h <<\_ACEOF
7535 #define ENABLE_NLS 1
7536 _ACEOF
7537
7538     else
7539       USE_NLS=no
7540     fi
7541   fi
7542
7543   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7544 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7545   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7546 echo "${ECHO_T}$USE_NLS" >&6; }
7547   if test "$USE_NLS" = "yes"; then
7548     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7549 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7550     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7551       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7552         gt_source="external libintl"
7553       else
7554         gt_source="libc"
7555       fi
7556     else
7557       gt_source="included intl directory"
7558     fi
7559     { echo "$as_me:$LINENO: result: $gt_source" >&5
7560 echo "${ECHO_T}$gt_source" >&6; }
7561   fi
7562
7563   if test "$USE_NLS" = "yes"; then
7564
7565     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7566       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7567         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7568 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7569         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7570 echo "${ECHO_T}$LIBINTL" >&6; }
7571
7572   for element in $INCINTL; do
7573     haveit=
7574     for x in $CPPFLAGS; do
7575
7576   acl_save_prefix="$prefix"
7577   prefix="$acl_final_prefix"
7578   acl_save_exec_prefix="$exec_prefix"
7579   exec_prefix="$acl_final_exec_prefix"
7580   eval x=\"$x\"
7581   exec_prefix="$acl_save_exec_prefix"
7582   prefix="$acl_save_prefix"
7583
7584       if test "X$x" = "X$element"; then
7585         haveit=yes
7586         break
7587       fi
7588     done
7589     if test -z "$haveit"; then
7590       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7591     fi
7592   done
7593
7594       fi
7595
7596
7597 cat >>confdefs.h <<\_ACEOF
7598 #define HAVE_GETTEXT 1
7599 _ACEOF
7600
7601
7602 cat >>confdefs.h <<\_ACEOF
7603 #define HAVE_DCGETTEXT 1
7604 _ACEOF
7605
7606     fi
7607
7608         POSUB=po
7609   fi
7610
7611
7612
7613     INTLLIBS="$LIBINTL"
7614
7615
7616
7617
7618
7619
7620 if test x${prefix} = xNONE ; then
7621    if test `eval echo ${datadir}` = NONE/share ; then
7622       datadir=/usr/share
7623    fi
7624 fi
7625
7626 # ------------------------------------------------------------------
7627 #  If the user has not set --prefix, we set our default to nothing.
7628 #  In this case, if the user has not set --sysconfdir, we set it
7629 #  to the package default of /etc/bacula.  If either --prefix or
7630 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7631 # ------------------------------------------------------------------
7632 if test x${prefix} = xNONE ; then
7633     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7634         sysconfdir=/etc/bacula
7635     fi
7636     prefix=
7637 fi
7638 sysconfdir=`eval echo ${sysconfdir}`
7639 datadir=`eval echo ${datadir}`
7640 localedir=`eval echo ${datadir}/locale`
7641 cat >>confdefs.h <<_ACEOF
7642 #define LOCALEDIR "$localedir"
7643 _ACEOF
7644
7645 cat >>confdefs.h <<_ACEOF
7646 #define SYSCONFDIR "$sysconfdir"
7647 _ACEOF
7648
7649
7650 # -------------------------------------------------------------------------
7651 #  If the user has not set --exec-prefix, we default to ${prefix}
7652 # -------------------------------------------------------------------------
7653 if test x${exec_prefix} = xNONE ; then
7654     exec_prefix=${prefix}
7655 fi
7656
7657 # ------------------------------------------------------------------
7658 # If the user has not set --sbindir, we set our default as /sbin
7659 # ------------------------------------------------------------------
7660 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7661     sbindir=${exec_prefix}/sbin
7662 fi
7663 sbindir=`eval echo ${sbindir}`
7664
7665
7666 # -------------------------------------------------------------------------
7667 #  If the user has not set --mandir, we default to /usr/share/man
7668 # -------------------------------------------------------------------------
7669 if test x$mandir = x'${prefix}/man' ; then
7670    mandir=/usr/share/man
7671 fi
7672
7673
7674 for ac_prog in msgfmt
7675 do
7676   # Extract the first word of "$ac_prog", so it can be a program name with args.
7677 set dummy $ac_prog; ac_word=$2
7678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7680 if test "${ac_cv_path_MSGFMT+set}" = set; then
7681   echo $ECHO_N "(cached) $ECHO_C" >&6
7682 else
7683   case $MSGFMT in
7684   [\\/]* | ?:[\\/]*)
7685   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7686   ;;
7687   *)
7688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 for as_dir in $PATH
7690 do
7691   IFS=$as_save_IFS
7692   test -z "$as_dir" && as_dir=.
7693   for ac_exec_ext in '' $ac_executable_extensions; do
7694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7696     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697     break 2
7698   fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703   ;;
7704 esac
7705 fi
7706 MSGFMT=$ac_cv_path_MSGFMT
7707 if test -n "$MSGFMT"; then
7708   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7709 echo "${ECHO_T}$MSGFMT" >&6; }
7710 else
7711   { echo "$as_me:$LINENO: result: no" >&5
7712 echo "${ECHO_T}no" >&6; }
7713 fi
7714
7715
7716   test -n "$MSGFMT" && break
7717 done
7718 test -n "$MSGFMT" || MSGFMT="no"
7719
7720 if test "$MSGFMT" = "no"
7721 then
7722    echo 'msgfmt program not found, disabling NLS !'
7723    USE_NLS=no
7724    USE_INCLUDED_LIBINTL=no
7725 #else
7726
7727     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7728 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7729 if test "${ac_cv_gnu_library_2+set}" = set; then
7730   echo $ECHO_N "(cached) $ECHO_C" >&6
7731 else
7732   cat >conftest.$ac_ext <<_ACEOF
7733 /* confdefs.h.  */
7734 _ACEOF
7735 cat confdefs.h >>conftest.$ac_ext
7736 cat >>conftest.$ac_ext <<_ACEOF
7737 /* end confdefs.h.  */
7738
7739 #include <features.h>
7740 #ifdef __GNU_LIBRARY__
7741  #if (__GLIBC__ >= 2)
7742   Lucky GNU user
7743  #endif
7744 #endif
7745
7746 _ACEOF
7747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7748   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7749   ac_cv_gnu_library_2=yes
7750 else
7751   ac_cv_gnu_library_2=no
7752 fi
7753 rm -f conftest*
7754
7755
7756
7757 fi
7758 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7759 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7760
7761     GLIBC2="$ac_cv_gnu_library_2"
7762
7763
7764
7765         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7766 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7767 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7768   echo $ECHO_N "(cached) $ECHO_C" >&6
7769 else
7770   ac_check_lib_save_LIBS=$LIBS
7771 LIBS="-lcposix  $LIBS"
7772 cat >conftest.$ac_ext <<_ACEOF
7773 /* confdefs.h.  */
7774 _ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h.  */
7778
7779 /* Override any GCC internal prototype to avoid an error.
7780    Use char because int might match the return type of a GCC
7781    builtin and then its argument prototype would still apply.  */
7782 #ifdef __cplusplus
7783 extern "C"
7784 #endif
7785 char strerror ();
7786 int
7787 main ()
7788 {
7789 return strerror ();
7790   ;
7791   return 0;
7792 }
7793 _ACEOF
7794 rm -f conftest.$ac_objext conftest$ac_exeext
7795 if { (ac_try="$ac_link"
7796 case "(($ac_try" in
7797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798   *) ac_try_echo=$ac_try;;
7799 esac
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801   (eval "$ac_link") 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } && {
7808          test -z "$ac_c_werror_flag" ||
7809          test ! -s conftest.err
7810        } && test -s conftest$ac_exeext &&
7811        $as_test_x conftest$ac_exeext; then
7812   ac_cv_lib_cposix_strerror=yes
7813 else
7814   echo "$as_me: failed program was:" >&5
7815 sed 's/^/| /' conftest.$ac_ext >&5
7816
7817         ac_cv_lib_cposix_strerror=no
7818 fi
7819
7820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7821       conftest$ac_exeext conftest.$ac_ext
7822 LIBS=$ac_check_lib_save_LIBS
7823 fi
7824 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7825 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7826 if test $ac_cv_lib_cposix_strerror = yes; then
7827   LIBS="$LIBS -lcposix"
7828 fi
7829
7830
7831
7832 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7833 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7834 if test "${ac_cv_header_stdc+set}" = set; then
7835   echo $ECHO_N "(cached) $ECHO_C" >&6
7836 else
7837   cat >conftest.$ac_ext <<_ACEOF
7838 /* confdefs.h.  */
7839 _ACEOF
7840 cat confdefs.h >>conftest.$ac_ext
7841 cat >>conftest.$ac_ext <<_ACEOF
7842 /* end confdefs.h.  */
7843 #include <stdlib.h>
7844 #include <stdarg.h>
7845 #include <string.h>
7846 #include <float.h>
7847
7848 int
7849 main ()
7850 {
7851
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7858 case "(($ac_try" in
7859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860   *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863   (eval "$ac_compile") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest.$ac_objext; then
7873   ac_cv_header_stdc=yes
7874 else
7875   echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878         ac_cv_header_stdc=no
7879 fi
7880
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882
7883 if test $ac_cv_header_stdc = yes; then
7884   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7885   cat >conftest.$ac_ext <<_ACEOF
7886 /* confdefs.h.  */
7887 _ACEOF
7888 cat confdefs.h >>conftest.$ac_ext
7889 cat >>conftest.$ac_ext <<_ACEOF
7890 /* end confdefs.h.  */
7891 #include <string.h>
7892
7893 _ACEOF
7894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7895   $EGREP "memchr" >/dev/null 2>&1; then
7896   :
7897 else
7898   ac_cv_header_stdc=no
7899 fi
7900 rm -f conftest*
7901
7902 fi
7903
7904 if test $ac_cv_header_stdc = yes; then
7905   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7906   cat >conftest.$ac_ext <<_ACEOF
7907 /* confdefs.h.  */
7908 _ACEOF
7909 cat confdefs.h >>conftest.$ac_ext
7910 cat >>conftest.$ac_ext <<_ACEOF
7911 /* end confdefs.h.  */
7912 #include <stdlib.h>
7913
7914 _ACEOF
7915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916   $EGREP "free" >/dev/null 2>&1; then
7917   :
7918 else
7919   ac_cv_header_stdc=no
7920 fi
7921 rm -f conftest*
7922
7923 fi
7924
7925 if test $ac_cv_header_stdc = yes; then
7926   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7927   if test "$cross_compiling" = yes; then
7928   :
7929 else
7930   cat >conftest.$ac_ext <<_ACEOF
7931 /* confdefs.h.  */
7932 _ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h.  */
7936 #include <ctype.h>
7937 #include <stdlib.h>
7938 #if ((' ' & 0x0FF) == 0x020)
7939 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7940 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7941 #else
7942 # define ISLOWER(c) \
7943                    (('a' <= (c) && (c) <= 'i') \
7944                      || ('j' <= (c) && (c) <= 'r') \
7945                      || ('s' <= (c) && (c) <= 'z'))
7946 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7947 #endif
7948
7949 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7950 int
7951 main ()
7952 {
7953   int i;
7954   for (i = 0; i < 256; i++)
7955     if (XOR (islower (i), ISLOWER (i))
7956         || toupper (i) != TOUPPER (i))
7957       return 2;
7958   return 0;
7959 }
7960 _ACEOF
7961 rm -f conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7963 case "(($ac_try" in
7964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7965   *) ac_try_echo=$ac_try;;
7966 esac
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968   (eval "$ac_link") 2>&5
7969   ac_status=$?
7970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7972   { (case "(($ac_try" in
7973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974   *) ac_try_echo=$ac_try;;
7975 esac
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977   (eval "$ac_try") 2>&5
7978   ac_status=$?
7979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980   (exit $ac_status); }; }; then
7981   :
7982 else
7983   echo "$as_me: program exited with status $ac_status" >&5
7984 echo "$as_me: failed program was:" >&5
7985 sed 's/^/| /' conftest.$ac_ext >&5
7986
7987 ( exit $ac_status )
7988 ac_cv_header_stdc=no
7989 fi
7990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7991 fi
7992
7993
7994 fi
7995 fi
7996 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7997 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7998 if test $ac_cv_header_stdc = yes; then
7999
8000 cat >>confdefs.h <<\_ACEOF
8001 #define STDC_HEADERS 1
8002 _ACEOF
8003
8004 fi
8005
8006 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8007 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8008 if test "${ac_cv_c_const+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   cat >conftest.$ac_ext <<_ACEOF
8012 /* confdefs.h.  */
8013 _ACEOF
8014 cat confdefs.h >>conftest.$ac_ext
8015 cat >>conftest.$ac_ext <<_ACEOF
8016 /* end confdefs.h.  */
8017
8018 int
8019 main ()
8020 {
8021 /* FIXME: Include the comments suggested by Paul. */
8022 #ifndef __cplusplus
8023   /* Ultrix mips cc rejects this.  */
8024   typedef int charset[2];
8025   const charset cs;
8026   /* SunOS 4.1.1 cc rejects this.  */
8027   char const *const *pcpcc;
8028   char **ppc;
8029   /* NEC SVR4.0.2 mips cc rejects this.  */
8030   struct point {int x, y;};
8031   static struct point const zero = {0,0};
8032   /* AIX XL C 1.02.0.0 rejects this.
8033      It does not let you subtract one const X* pointer from another in
8034      an arm of an if-expression whose if-part is not a constant
8035      expression */
8036   const char *g = "string";
8037   pcpcc = &g + (g ? g-g : 0);
8038   /* HPUX 7.0 cc rejects these. */
8039   ++pcpcc;
8040   ppc = (char**) pcpcc;
8041   pcpcc = (char const *const *) ppc;
8042   { /* SCO 3.2v4 cc rejects this.  */
8043     char *t;
8044     char const *s = 0 ? (char *) 0 : (char const *) 0;
8045
8046     *t++ = 0;
8047     if (s) return 0;
8048   }
8049   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8050     int x[] = {25, 17};
8051     const int *foo = &x[0];
8052     ++foo;
8053   }
8054   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8055     typedef const int *iptr;
8056     iptr p = 0;
8057     ++p;
8058   }
8059   { /* AIX XL C 1.02.0.0 rejects this saying
8060        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8061     struct s { int j; const int *ap[3]; };
8062     struct s *b; b->j = 5;
8063   }
8064   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8065     const int foo = 10;
8066     if (!foo) return 0;
8067   }
8068   return !cs[0] && !zero.x;
8069 #endif
8070
8071   ;
8072   return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079   *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082   (eval "$ac_compile") 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } && {
8089          test -z "$ac_c_werror_flag" ||
8090          test ! -s conftest.err
8091        } && test -s conftest.$ac_objext; then
8092   ac_cv_c_const=yes
8093 else
8094   echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         ac_cv_c_const=no
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8103 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8104 if test $ac_cv_c_const = no; then
8105
8106 cat >>confdefs.h <<\_ACEOF
8107 #define const
8108 _ACEOF
8109
8110 fi
8111
8112
8113   { echo "$as_me:$LINENO: checking for signed" >&5
8114 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8115 if test "${bh_cv_c_signed+set}" = set; then
8116   echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118   cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h.  */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h.  */
8124
8125 int
8126 main ()
8127 {
8128 signed char x;
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext
8134 if { (ac_try="$ac_compile"
8135 case "(($ac_try" in
8136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8137   *) ac_try_echo=$ac_try;;
8138 esac
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140   (eval "$ac_compile") 2>conftest.er1
8141   ac_status=$?
8142   grep -v '^ *+' conftest.er1 >conftest.err
8143   rm -f conftest.er1
8144   cat conftest.err >&5
8145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146   (exit $ac_status); } && {
8147          test -z "$ac_c_werror_flag" ||
8148          test ! -s conftest.err
8149        } && test -s conftest.$ac_objext; then
8150   bh_cv_c_signed=yes
8151 else
8152   echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8154
8155         bh_cv_c_signed=no
8156 fi
8157
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8161 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8162   if test $bh_cv_c_signed = no; then
8163
8164 cat >>confdefs.h <<\_ACEOF
8165 #define signed
8166 _ACEOF
8167
8168   fi
8169
8170 { echo "$as_me:$LINENO: checking for inline" >&5
8171 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8172 if test "${ac_cv_c_inline+set}" = set; then
8173   echo $ECHO_N "(cached) $ECHO_C" >&6
8174 else
8175   ac_cv_c_inline=no
8176 for ac_kw in inline __inline__ __inline; do
8177   cat >conftest.$ac_ext <<_ACEOF
8178 /* confdefs.h.  */
8179 _ACEOF
8180 cat confdefs.h >>conftest.$ac_ext
8181 cat >>conftest.$ac_ext <<_ACEOF
8182 /* end confdefs.h.  */
8183 #ifndef __cplusplus
8184 typedef int foo_t;
8185 static $ac_kw foo_t static_foo () {return 0; }
8186 $ac_kw foo_t foo () {return 0; }
8187 #endif
8188
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194   *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197   (eval "$ac_compile") 2>conftest.er1
8198   ac_status=$?
8199   grep -v '^ *+' conftest.er1 >conftest.err
8200   rm -f conftest.er1
8201   cat conftest.err >&5
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); } && {
8204          test -z "$ac_c_werror_flag" ||
8205          test ! -s conftest.err
8206        } && test -s conftest.$ac_objext; then
8207   ac_cv_c_inline=$ac_kw
8208 else
8209   echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212
8213 fi
8214
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216   test "$ac_cv_c_inline" != no && break
8217 done
8218
8219 fi
8220 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8221 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8222
8223
8224 case $ac_cv_c_inline in
8225   inline | yes) ;;
8226   *)
8227     case $ac_cv_c_inline in
8228       no) ac_val=;;
8229       *) ac_val=$ac_cv_c_inline;;
8230     esac
8231     cat >>confdefs.h <<_ACEOF
8232 #ifndef __cplusplus
8233 #define inline $ac_val
8234 #endif
8235 _ACEOF
8236     ;;
8237 esac
8238
8239 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8250                   inttypes.h stdint.h unistd.h
8251 do
8252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8256   echo $ECHO_N "(cached) $ECHO_C" >&6
8257 else
8258   cat >conftest.$ac_ext <<_ACEOF
8259 /* confdefs.h.  */
8260 _ACEOF
8261 cat confdefs.h >>conftest.$ac_ext
8262 cat >>conftest.$ac_ext <<_ACEOF
8263 /* end confdefs.h.  */
8264 $ac_includes_default
8265
8266 #include <$ac_header>
8267 _ACEOF
8268 rm -f conftest.$ac_objext
8269 if { (ac_try="$ac_compile"
8270 case "(($ac_try" in
8271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272   *) ac_try_echo=$ac_try;;
8273 esac
8274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8275   (eval "$ac_compile") 2>conftest.er1
8276   ac_status=$?
8277   grep -v '^ *+' conftest.er1 >conftest.err
8278   rm -f conftest.er1
8279   cat conftest.err >&5
8280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281   (exit $ac_status); } && {
8282          test -z "$ac_c_werror_flag" ||
8283          test ! -s conftest.err
8284        } && test -s conftest.$ac_objext; then
8285   eval "$as_ac_Header=yes"
8286 else
8287   echo "$as_me: failed program was:" >&5
8288 sed 's/^/| /' conftest.$ac_ext >&5
8289
8290         eval "$as_ac_Header=no"
8291 fi
8292
8293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 fi
8295 ac_res=`eval echo '${'$as_ac_Header'}'`
8296                { echo "$as_me:$LINENO: result: $ac_res" >&5
8297 echo "${ECHO_T}$ac_res" >&6; }
8298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8299   cat >>confdefs.h <<_ACEOF
8300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8301 _ACEOF
8302
8303 fi
8304
8305 done
8306
8307
8308 { echo "$as_me:$LINENO: checking for off_t" >&5
8309 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8310 if test "${ac_cv_type_off_t+set}" = set; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 $ac_includes_default
8320 typedef off_t ac__type_new_;
8321 int
8322 main ()
8323 {
8324 if ((ac__type_new_ *) 0)
8325   return 0;
8326 if (sizeof (ac__type_new_))
8327   return 0;
8328   ;
8329   return 0;
8330 }
8331 _ACEOF
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8334 case "(($ac_try" in
8335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336   *) ac_try_echo=$ac_try;;
8337 esac
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339   (eval "$ac_compile") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } && {
8346          test -z "$ac_c_werror_flag" ||
8347          test ! -s conftest.err
8348        } && test -s conftest.$ac_objext; then
8349   ac_cv_type_off_t=yes
8350 else
8351   echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.$ac_ext >&5
8353
8354         ac_cv_type_off_t=no
8355 fi
8356
8357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8358 fi
8359 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8360 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8361 if test $ac_cv_type_off_t = yes; then
8362   :
8363 else
8364
8365 cat >>confdefs.h <<_ACEOF
8366 #define off_t long int
8367 _ACEOF
8368
8369 fi
8370
8371 { echo "$as_me:$LINENO: checking for size_t" >&5
8372 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8373 if test "${ac_cv_type_size_t+set}" = set; then
8374   echo $ECHO_N "(cached) $ECHO_C" >&6
8375 else
8376   cat >conftest.$ac_ext <<_ACEOF
8377 /* confdefs.h.  */
8378 _ACEOF
8379 cat confdefs.h >>conftest.$ac_ext
8380 cat >>conftest.$ac_ext <<_ACEOF
8381 /* end confdefs.h.  */
8382 $ac_includes_default
8383 typedef size_t ac__type_new_;
8384 int
8385 main ()
8386 {
8387 if ((ac__type_new_ *) 0)
8388   return 0;
8389 if (sizeof (ac__type_new_))
8390   return 0;
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 rm -f conftest.$ac_objext
8396 if { (ac_try="$ac_compile"
8397 case "(($ac_try" in
8398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8399   *) ac_try_echo=$ac_try;;
8400 esac
8401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8402   (eval "$ac_compile") 2>conftest.er1
8403   ac_status=$?
8404   grep -v '^ *+' conftest.er1 >conftest.err
8405   rm -f conftest.er1
8406   cat conftest.err >&5
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); } && {
8409          test -z "$ac_c_werror_flag" ||
8410          test ! -s conftest.err
8411        } && test -s conftest.$ac_objext; then
8412   ac_cv_type_size_t=yes
8413 else
8414   echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417         ac_cv_type_size_t=no
8418 fi
8419
8420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8421 fi
8422 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8423 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8424 if test $ac_cv_type_size_t = yes; then
8425   :
8426 else
8427
8428 cat >>confdefs.h <<_ACEOF
8429 #define size_t unsigned int
8430 _ACEOF
8431
8432 fi
8433
8434
8435   { echo "$as_me:$LINENO: checking for long long" >&5
8436 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8437 if test "${ac_cv_type_long_long+set}" = set; then
8438   echo $ECHO_N "(cached) $ECHO_C" >&6
8439 else
8440   cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h.  */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h.  */
8446 long long ll = 1LL; int i = 63;
8447 int
8448 main ()
8449 {
8450 long long llmax = (long long) -1;
8451      return ll << i | ll >> i | llmax / ll | llmax % ll;
8452   ;
8453   return 0;
8454 }
8455 _ACEOF
8456 rm -f conftest.$ac_objext conftest$ac_exeext
8457 if { (ac_try="$ac_link"
8458 case "(($ac_try" in
8459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460   *) ac_try_echo=$ac_try;;
8461 esac
8462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8463   (eval "$ac_link") 2>conftest.er1
8464   ac_status=$?
8465   grep -v '^ *+' conftest.er1 >conftest.err
8466   rm -f conftest.er1
8467   cat conftest.err >&5
8468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469   (exit $ac_status); } && {
8470          test -z "$ac_c_werror_flag" ||
8471          test ! -s conftest.err
8472        } && test -s conftest$ac_exeext &&
8473        $as_test_x conftest$ac_exeext; then
8474   ac_cv_type_long_long=yes
8475 else
8476   echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8478
8479         ac_cv_type_long_long=no
8480 fi
8481
8482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8483       conftest$ac_exeext conftest.$ac_ext
8484 fi
8485 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8486 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8487   if test $ac_cv_type_long_long = yes; then
8488
8489 cat >>confdefs.h <<\_ACEOF
8490 #define HAVE_LONG_LONG 1
8491 _ACEOF
8492
8493   fi
8494
8495
8496   { echo "$as_me:$LINENO: checking for long double" >&5
8497 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8498 if test "${gt_cv_c_long_double+set}" = set; then
8499   echo $ECHO_N "(cached) $ECHO_C" >&6
8500 else
8501   if test "$GCC" = yes; then
8502        gt_cv_c_long_double=yes
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
8511          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8512          long double foo = 0.0;
8513          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8514          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8515
8516 int
8517 main ()
8518 {
8519
8520   ;
8521   return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8526 case "(($ac_try" in
8527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528   *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531   (eval "$ac_compile") 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } && {
8538          test -z "$ac_c_werror_flag" ||
8539          test ! -s conftest.err
8540        } && test -s conftest.$ac_objext; then
8541   gt_cv_c_long_double=yes
8542 else
8543   echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.$ac_ext >&5
8545
8546         gt_cv_c_long_double=no
8547 fi
8548
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550      fi
8551 fi
8552 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8553 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8554   if test $gt_cv_c_long_double = yes; then
8555
8556 cat >>confdefs.h <<\_ACEOF
8557 #define HAVE_LONG_DOUBLE 1
8558 _ACEOF
8559
8560   fi
8561
8562
8563   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8564 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8565 if test "${gt_cv_c_wchar_t+set}" = set; then
8566   echo $ECHO_N "(cached) $ECHO_C" >&6
8567 else
8568   cat >conftest.$ac_ext <<_ACEOF
8569 /* confdefs.h.  */
8570 _ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h.  */
8574 #include <stddef.h>
8575        wchar_t foo = (wchar_t)'\0';
8576 int
8577 main ()
8578 {
8579
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext
8585 if { (ac_try="$ac_compile"
8586 case "(($ac_try" in
8587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8588   *) ac_try_echo=$ac_try;;
8589 esac
8590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8591   (eval "$ac_compile") 2>conftest.er1
8592   ac_status=$?
8593   grep -v '^ *+' conftest.er1 >conftest.err
8594   rm -f conftest.er1
8595   cat conftest.err >&5
8596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597   (exit $ac_status); } && {
8598          test -z "$ac_c_werror_flag" ||
8599          test ! -s conftest.err
8600        } && test -s conftest.$ac_objext; then
8601   gt_cv_c_wchar_t=yes
8602 else
8603   echo "$as_me: failed program was:" >&5
8604 sed 's/^/| /' conftest.$ac_ext >&5
8605
8606         gt_cv_c_wchar_t=no
8607 fi
8608
8609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8610 fi
8611 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8612 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8613   if test $gt_cv_c_wchar_t = yes; then
8614
8615 cat >>confdefs.h <<\_ACEOF
8616 #define HAVE_WCHAR_T 1
8617 _ACEOF
8618
8619   fi
8620
8621
8622   { echo "$as_me:$LINENO: checking for wint_t" >&5
8623 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8624 if test "${gt_cv_c_wint_t+set}" = set; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h.  */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h.  */
8633 #include <wchar.h>
8634        wint_t foo = (wchar_t)'\0';
8635 int
8636 main ()
8637 {
8638
8639   ;
8640   return 0;
8641 }
8642 _ACEOF
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8645 case "(($ac_try" in
8646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647   *) ac_try_echo=$ac_try;;
8648 esac
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650   (eval "$ac_compile") 2>conftest.er1
8651   ac_status=$?
8652   grep -v '^ *+' conftest.er1 >conftest.err
8653   rm -f conftest.er1
8654   cat conftest.err >&5
8655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656   (exit $ac_status); } && {
8657          test -z "$ac_c_werror_flag" ||
8658          test ! -s conftest.err
8659        } && test -s conftest.$ac_objext; then
8660   gt_cv_c_wint_t=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665         gt_cv_c_wint_t=no
8666 fi
8667
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8669 fi
8670 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8671 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8672   if test $gt_cv_c_wint_t = yes; then
8673
8674 cat >>confdefs.h <<\_ACEOF
8675 #define HAVE_WINT_T 1
8676 _ACEOF
8677
8678   fi
8679
8680
8681   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8682 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8683 if test "${gl_cv_header_inttypes_h+set}" = set; then
8684   echo $ECHO_N "(cached) $ECHO_C" >&6
8685 else
8686   cat >conftest.$ac_ext <<_ACEOF
8687 /* confdefs.h.  */
8688 _ACEOF
8689 cat confdefs.h >>conftest.$ac_ext
8690 cat >>conftest.$ac_ext <<_ACEOF
8691 /* end confdefs.h.  */
8692 #include <sys/types.h>
8693 #include <inttypes.h>
8694 int
8695 main ()
8696 {
8697 uintmax_t i = (uintmax_t) -1;
8698   ;
8699   return 0;
8700 }
8701 _ACEOF
8702 rm -f conftest.$ac_objext
8703 if { (ac_try="$ac_compile"
8704 case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709   (eval "$ac_compile") 2>conftest.er1
8710   ac_status=$?
8711   grep -v '^ *+' conftest.er1 >conftest.err
8712   rm -f conftest.er1
8713   cat conftest.err >&5
8714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715   (exit $ac_status); } && {
8716          test -z "$ac_c_werror_flag" ||
8717          test ! -s conftest.err
8718        } && test -s conftest.$ac_objext; then
8719   gl_cv_header_inttypes_h=yes
8720 else
8721   echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8723
8724         gl_cv_header_inttypes_h=no
8725 fi
8726
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 fi
8729 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8730 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8731   if test $gl_cv_header_inttypes_h = yes; then
8732
8733 cat >>confdefs.h <<_ACEOF
8734 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8735 _ACEOF
8736
8737   fi
8738
8739
8740   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8741 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8742 if test "${gl_cv_header_stdint_h+set}" = set; then
8743   echo $ECHO_N "(cached) $ECHO_C" >&6
8744 else
8745   cat >conftest.$ac_ext <<_ACEOF
8746 /* confdefs.h.  */
8747 _ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h.  */
8751 #include <sys/types.h>
8752 #include <stdint.h>
8753 int
8754 main ()
8755 {
8756 uintmax_t i = (uintmax_t) -1;
8757   ;
8758   return 0;
8759 }
8760 _ACEOF
8761 rm -f conftest.$ac_objext
8762 if { (ac_try="$ac_compile"
8763 case "(($ac_try" in
8764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8765   *) ac_try_echo=$ac_try;;
8766 esac
8767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8768   (eval "$ac_compile") 2>conftest.er1
8769   ac_status=$?
8770   grep -v '^ *+' conftest.er1 >conftest.err
8771   rm -f conftest.er1
8772   cat conftest.err >&5
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); } && {
8775          test -z "$ac_c_werror_flag" ||
8776          test ! -s conftest.err
8777        } && test -s conftest.$ac_objext; then
8778   gl_cv_header_stdint_h=yes
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783         gl_cv_header_stdint_h=no
8784 fi
8785
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 fi
8788 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8789 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8790   if test $gl_cv_header_stdint_h = yes; then
8791
8792 cat >>confdefs.h <<_ACEOF
8793 #define HAVE_STDINT_H_WITH_UINTMAX 1
8794 _ACEOF
8795
8796   fi
8797
8798
8799
8800
8801   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8802 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8803 if test "${gt_cv_c_intmax_t+set}" = set; then
8804   echo $ECHO_N "(cached) $ECHO_C" >&6
8805 else
8806   cat >conftest.$ac_ext <<_ACEOF
8807 /* confdefs.h.  */
8808 _ACEOF
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h.  */
8812
8813 #include <stddef.h>
8814 #include <stdlib.h>
8815 #if HAVE_STDINT_H_WITH_UINTMAX
8816 #include <stdint.h>
8817 #endif
8818 #if HAVE_INTTYPES_H_WITH_UINTMAX
8819 #include <inttypes.h>
8820 #endif
8821
8822 int
8823 main ()
8824 {
8825 intmax_t x = -1;
8826   ;
8827   return 0;
8828 }
8829 _ACEOF
8830 rm -f conftest.$ac_objext
8831 if { (ac_try="$ac_compile"
8832 case "(($ac_try" in
8833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8834   *) ac_try_echo=$ac_try;;
8835 esac
8836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8837   (eval "$ac_compile") 2>conftest.er1
8838   ac_status=$?
8839   grep -v '^ *+' conftest.er1 >conftest.err
8840   rm -f conftest.er1
8841   cat conftest.err >&5
8842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843   (exit $ac_status); } && {
8844          test -z "$ac_c_werror_flag" ||
8845          test ! -s conftest.err
8846        } && test -s conftest.$ac_objext; then
8847   gt_cv_c_intmax_t=yes
8848 else
8849   echo "$as_me: failed program was:" >&5
8850 sed 's/^/| /' conftest.$ac_ext >&5
8851
8852         gt_cv_c_intmax_t=no
8853 fi
8854
8855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8856 fi
8857 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8858 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8859   if test $gt_cv_c_intmax_t = yes; then
8860
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_INTMAX_T 1
8863 _ACEOF
8864
8865   fi
8866
8867
8868
8869   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8870 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8871 if test "${gt_cv_func_printf_posix+set}" = set; then
8872   echo $ECHO_N "(cached) $ECHO_C" >&6
8873 else
8874
8875       if test "$cross_compiling" = yes; then
8876
8877         cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h.  */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h.  */
8883
8884 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8885   notposix
8886 #endif
8887
8888 _ACEOF
8889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8890   $EGREP "notposix" >/dev/null 2>&1; then
8891   gt_cv_func_printf_posix="guessing no"
8892 else
8893   gt_cv_func_printf_posix="guessing yes"
8894 fi
8895 rm -f conftest*
8896
8897
8898 else
8899   cat >conftest.$ac_ext <<_ACEOF
8900 /* confdefs.h.  */
8901 _ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h.  */
8905
8906 #include <stdio.h>
8907 #include <string.h>
8908 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8909    dollar expansion (possibly an autoconf bug).  */
8910 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8911 static char buf[100];
8912 int main ()
8913 {
8914   sprintf (buf, format, 33, 55);
8915   return (strcmp (buf, "55 33") != 0);
8916 }
8917 _ACEOF
8918 rm -f conftest$ac_exeext
8919 if { (ac_try="$ac_link"
8920 case "(($ac_try" in
8921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922   *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925   (eval "$ac_link") 2>&5
8926   ac_status=$?
8927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
8938   gt_cv_func_printf_posix=yes
8939 else
8940   echo "$as_me: program exited with status $ac_status" >&5
8941 echo "$as_me: failed program was:" >&5
8942 sed 's/^/| /' conftest.$ac_ext >&5
8943
8944 ( exit $ac_status )
8945 gt_cv_func_printf_posix=no
8946 fi
8947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8948 fi
8949
8950
8951
8952 fi
8953 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8954 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8955   case $gt_cv_func_printf_posix in
8956     *yes)
8957
8958 cat >>confdefs.h <<\_ACEOF
8959 #define HAVE_POSIX_PRINTF 1
8960 _ACEOF
8961
8962       ;;
8963   esac
8964
8965 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8966 # for constant arguments.  Useless!
8967 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8968 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8969 if test "${ac_cv_working_alloca_h+set}" = set; then
8970   echo $ECHO_N "(cached) $ECHO_C" >&6
8971 else
8972   cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978 #include <alloca.h>
8979 int
8980 main ()
8981 {
8982 char *p = (char *) alloca (2 * sizeof (int));
8983                           if (p) return 0;
8984   ;
8985   return 0;
8986 }
8987 _ACEOF
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8990 case "(($ac_try" in
8991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992   *) ac_try_echo=$ac_try;;
8993 esac
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995   (eval "$ac_link") 2>conftest.er1
8996   ac_status=$?
8997   grep -v '^ *+' conftest.er1 >conftest.err
8998   rm -f conftest.er1
8999   cat conftest.err >&5
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } && {
9002          test -z "$ac_c_werror_flag" ||
9003          test ! -s conftest.err
9004        } && test -s conftest$ac_exeext &&
9005        $as_test_x conftest$ac_exeext; then
9006   ac_cv_working_alloca_h=yes
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011         ac_cv_working_alloca_h=no
9012 fi
9013
9014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9015       conftest$ac_exeext conftest.$ac_ext
9016 fi
9017 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9018 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9019 if test $ac_cv_working_alloca_h = yes; then
9020
9021 cat >>confdefs.h <<\_ACEOF
9022 #define HAVE_ALLOCA_H 1
9023 _ACEOF
9024
9025 fi
9026
9027 { echo "$as_me:$LINENO: checking for alloca" >&5
9028 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9029 if test "${ac_cv_func_alloca_works+set}" = set; then
9030   echo $ECHO_N "(cached) $ECHO_C" >&6
9031 else
9032   cat >conftest.$ac_ext <<_ACEOF
9033 /* confdefs.h.  */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h.  */
9038 #ifdef __GNUC__
9039 # define alloca __builtin_alloca
9040 #else
9041 # ifdef _MSC_VER
9042 #  include <malloc.h>
9043 #  define alloca _alloca
9044 # else
9045 #  ifdef HAVE_ALLOCA_H
9046 #   include <alloca.h>
9047 #  else
9048 #   ifdef _AIX
9049  #pragma alloca
9050 #   else
9051 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9052 char *alloca ();
9053 #    endif
9054 #   endif
9055 #  endif
9056 # endif
9057 #endif
9058
9059 int
9060 main ()
9061 {
9062 char *p = (char *) alloca (1);
9063                                     if (p) return 0;
9064   ;
9065   return 0;
9066 }
9067 _ACEOF
9068 rm -f conftest.$ac_objext conftest$ac_exeext
9069 if { (ac_try="$ac_link"
9070 case "(($ac_try" in
9071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9072   *) ac_try_echo=$ac_try;;
9073 esac
9074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9075   (eval "$ac_link") 2>conftest.er1
9076   ac_status=$?
9077   grep -v '^ *+' conftest.er1 >conftest.err
9078   rm -f conftest.er1
9079   cat conftest.err >&5
9080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081   (exit $ac_status); } && {
9082          test -z "$ac_c_werror_flag" ||
9083          test ! -s conftest.err
9084        } && test -s conftest$ac_exeext &&
9085        $as_test_x conftest$ac_exeext; then
9086   ac_cv_func_alloca_works=yes
9087 else
9088   echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9090
9091         ac_cv_func_alloca_works=no
9092 fi
9093
9094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9095       conftest$ac_exeext conftest.$ac_ext
9096 fi
9097 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9098 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9099
9100 if test $ac_cv_func_alloca_works = yes; then
9101
9102 cat >>confdefs.h <<\_ACEOF
9103 #define HAVE_ALLOCA 1
9104 _ACEOF
9105
9106 else
9107   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9108 # that cause trouble.  Some versions do not even contain alloca or
9109 # contain a buggy version.  If you still want to use their alloca,
9110 # use ar to extract alloca.o from them instead of compiling alloca.c.
9111
9112 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9113
9114 cat >>confdefs.h <<\_ACEOF
9115 #define C_ALLOCA 1
9116 _ACEOF
9117
9118
9119 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9120 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9121 if test "${ac_cv_os_cray+set}" = set; then
9122   echo $ECHO_N "(cached) $ECHO_C" >&6
9123 else
9124   cat >conftest.$ac_ext <<_ACEOF
9125 /* confdefs.h.  */
9126 _ACEOF
9127 cat confdefs.h >>conftest.$ac_ext
9128 cat >>conftest.$ac_ext <<_ACEOF
9129 /* end confdefs.h.  */
9130 #if defined CRAY && ! defined CRAY2
9131 webecray
9132 #else
9133 wenotbecray
9134 #endif
9135
9136 _ACEOF
9137 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9138   $EGREP "webecray" >/dev/null 2>&1; then
9139   ac_cv_os_cray=yes
9140 else
9141   ac_cv_os_cray=no
9142 fi
9143 rm -f conftest*
9144
9145 fi
9146 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9147 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9148 if test $ac_cv_os_cray = yes; then
9149   for ac_func in _getb67 GETB67 getb67; do
9150     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9151 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9153 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9154   echo $ECHO_N "(cached) $ECHO_C" >&6
9155 else
9156   cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h.  */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h.  */
9162 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9163    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9164 #define $ac_func innocuous_$ac_func
9165
9166 /* System header to define __stub macros and hopefully few prototypes,
9167     which can conflict with char $ac_func (); below.
9168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9169     <limits.h> exists even on freestanding compilers.  */
9170
9171 #ifdef __STDC__
9172 # include <limits.h>
9173 #else
9174 # include <assert.h>
9175 #endif
9176
9177 #undef $ac_func
9178
9179 /* Override any GCC internal prototype to avoid an error.
9180    Use char because int might match the return type of a GCC
9181    builtin and then its argument prototype would still apply.  */
9182 #ifdef __cplusplus
9183 extern "C"
9184 #endif
9185 char $ac_func ();
9186 /* The GNU C library defines this for functions which it implements
9187     to always fail with ENOSYS.  Some functions are actually named
9188     something starting with __ and the normal name is an alias.  */
9189 #if defined __stub_$ac_func || defined __stub___$ac_func
9190 choke me
9191 #endif
9192
9193 int
9194 main ()
9195 {
9196 return $ac_func ();
9197   ;
9198   return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (ac_try="$ac_link"
9203 case "(($ac_try" in
9204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205   *) ac_try_echo=$ac_try;;
9206 esac
9207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9208   (eval "$ac_link") 2>conftest.er1
9209   ac_status=$?
9210   grep -v '^ *+' conftest.er1 >conftest.err
9211   rm -f conftest.er1
9212   cat conftest.err >&5
9213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); } && {
9215          test -z "$ac_c_werror_flag" ||
9216          test ! -s conftest.err
9217        } && test -s conftest$ac_exeext &&
9218        $as_test_x conftest$ac_exeext; then
9219   eval "$as_ac_var=yes"
9220 else
9221   echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9223
9224         eval "$as_ac_var=no"
9225 fi
9226
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228       conftest$ac_exeext conftest.$ac_ext
9229 fi
9230 ac_res=`eval echo '${'$as_ac_var'}'`
9231                { echo "$as_me:$LINENO: result: $ac_res" >&5
9232 echo "${ECHO_T}$ac_res" >&6; }
9233 if test `eval echo '${'$as_ac_var'}'` = yes; then
9234
9235 cat >>confdefs.h <<_ACEOF
9236 #define CRAY_STACKSEG_END $ac_func
9237 _ACEOF
9238
9239     break
9240 fi
9241
9242   done
9243 fi
9244
9245 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9246 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9247 if test "${ac_cv_c_stack_direction+set}" = set; then
9248   echo $ECHO_N "(cached) $ECHO_C" >&6
9249 else
9250   if test "$cross_compiling" = yes; then
9251   ac_cv_c_stack_direction=0
9252 else
9253   cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259 $ac_includes_default
9260 int
9261 find_stack_direction ()
9262 {
9263   static char *addr = 0;
9264   auto char dummy;
9265   if (addr == 0)
9266     {
9267       addr = &dummy;
9268       return find_stack_direction ();
9269     }
9270   else
9271     return (&dummy > addr) ? 1 : -1;
9272 }
9273
9274 int
9275 main ()
9276 {
9277   return find_stack_direction () < 0;
9278 }
9279 _ACEOF
9280 rm -f conftest$ac_exeext
9281 if { (ac_try="$ac_link"
9282 case "(($ac_try" in
9283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284   *) ac_try_echo=$ac_try;;
9285 esac
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287   (eval "$ac_link") 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9291   { (case "(($ac_try" in
9292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293   *) ac_try_echo=$ac_try;;
9294 esac
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296   (eval "$ac_try") 2>&5
9297   ac_status=$?
9298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299   (exit $ac_status); }; }; then
9300   ac_cv_c_stack_direction=1
9301 else
9302   echo "$as_me: program exited with status $ac_status" >&5
9303 echo "$as_me: failed program was:" >&5
9304 sed 's/^/| /' conftest.$ac_ext >&5
9305
9306 ( exit $ac_status )
9307 ac_cv_c_stack_direction=-1
9308 fi
9309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9310 fi
9311
9312
9313 fi
9314 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9315 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9316
9317 cat >>confdefs.h <<_ACEOF
9318 #define STACK_DIRECTION $ac_cv_c_stack_direction
9319 _ACEOF
9320
9321
9322 fi
9323
9324
9325
9326 for ac_header in stdlib.h unistd.h
9327 do
9328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9330   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9333   echo $ECHO_N "(cached) $ECHO_C" >&6
9334 fi
9335 ac_res=`eval echo '${'$as_ac_Header'}'`
9336                { echo "$as_me:$LINENO: result: $ac_res" >&5
9337 echo "${ECHO_T}$ac_res" >&6; }
9338 else
9339   # Is the header compilable?
9340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h.  */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h.  */
9348 $ac_includes_default
9349 #include <$ac_header>
9350 _ACEOF
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9353 case "(($ac_try" in
9354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355   *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358   (eval "$ac_compile") 2>conftest.er1
9359   ac_status=$?
9360   grep -v '^ *+' conftest.er1 >conftest.err
9361   rm -f conftest.er1
9362   cat conftest.err >&5
9363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364   (exit $ac_status); } && {
9365          test -z "$ac_c_werror_flag" ||
9366          test ! -s conftest.err
9367        } && test -s conftest.$ac_objext; then
9368   ac_header_compiler=yes
9369 else
9370   echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373         ac_header_compiler=no
9374 fi
9375
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9378 echo "${ECHO_T}$ac_header_compiler" >&6; }
9379
9380 # Is the header present?
9381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9383 cat >conftest.$ac_ext <<_ACEOF
9384 /* confdefs.h.  */
9385 _ACEOF
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h.  */
9389 #include <$ac_header>
9390 _ACEOF
9391 if { (ac_try="$ac_cpp conftest.$ac_ext"
9392 case "(($ac_try" in
9393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394   *) ac_try_echo=$ac_try;;
9395 esac
9396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9398   ac_status=$?
9399   grep -v '^ *+' conftest.er1 >conftest.err
9400   rm -f conftest.er1
9401   cat conftest.err >&5
9402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403   (exit $ac_status); } >/dev/null && {
9404          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9405          test ! -s conftest.err
9406        }; then
9407   ac_header_preproc=yes
9408 else
9409   echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412   ac_header_preproc=no
9413 fi
9414
9415 rm -f conftest.err conftest.$ac_ext
9416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9417 echo "${ECHO_T}$ac_header_preproc" >&6; }
9418
9419 # So?  What about this header?
9420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9421   yes:no: )
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9424     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9426     ac_header_preproc=yes
9427     ;;
9428   no:yes:* )
9429     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9432 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9435     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9436 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9437     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9439     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9441
9442     ;;
9443 esac
9444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447   echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449   eval "$as_ac_Header=\$ac_header_preproc"
9450 fi
9451 ac_res=`eval echo '${'$as_ac_Header'}'`
9452                { echo "$as_me:$LINENO: result: $ac_res" >&5
9453 echo "${ECHO_T}$ac_res" >&6; }
9454
9455 fi
9456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9457   cat >>confdefs.h <<_ACEOF
9458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9459 _ACEOF
9460
9461 fi
9462
9463 done
9464
9465
9466 for ac_func in getpagesize
9467 do
9468 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9469 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9470 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9472   echo $ECHO_N "(cached) $ECHO_C" >&6
9473 else
9474   cat >conftest.$ac_ext <<_ACEOF
9475 /* confdefs.h.  */
9476 _ACEOF
9477 cat confdefs.h >>conftest.$ac_ext
9478 cat >>conftest.$ac_ext <<_ACEOF
9479 /* end confdefs.h.  */
9480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9481    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9482 #define $ac_func innocuous_$ac_func
9483
9484 /* System header to define __stub macros and hopefully few prototypes,
9485     which can conflict with char $ac_func (); below.
9486     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9487     <limits.h> exists even on freestanding compilers.  */
9488
9489 #ifdef __STDC__
9490 # include <limits.h>
9491 #else
9492 # include <assert.h>
9493 #endif
9494
9495 #undef $ac_func
9496
9497 /* Override any GCC internal prototype to avoid an error.
9498    Use char because int might match the return type of a GCC
9499    builtin and then its argument prototype would still apply.  */
9500 #ifdef __cplusplus
9501 extern "C"
9502 #endif
9503 char $ac_func ();
9504 /* The GNU C library defines this for functions which it implements
9505     to always fail with ENOSYS.  Some functions are actually named
9506     something starting with __ and the normal name is an alias.  */
9507 #if defined __stub_$ac_func || defined __stub___$ac_func
9508 choke me
9509 #endif
9510
9511 int
9512 main ()
9513 {
9514 return $ac_func ();
9515   ;
9516   return 0;
9517 }
9518 _ACEOF
9519 rm -f conftest.$ac_objext conftest$ac_exeext
9520 if { (ac_try="$ac_link"
9521 case "(($ac_try" in
9522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523   *) ac_try_echo=$ac_try;;
9524 esac
9525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9526   (eval "$ac_link") 2>conftest.er1
9527   ac_status=$?
9528   grep -v '^ *+' conftest.er1 >conftest.err
9529   rm -f conftest.er1
9530   cat conftest.err >&5
9531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532   (exit $ac_status); } && {
9533          test -z "$ac_c_werror_flag" ||
9534          test ! -s conftest.err
9535        } && test -s conftest$ac_exeext &&
9536        $as_test_x conftest$ac_exeext; then
9537   eval "$as_ac_var=yes"
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542         eval "$as_ac_var=no"
9543 fi
9544
9545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9546       conftest$ac_exeext conftest.$ac_ext
9547 fi
9548 ac_res=`eval echo '${'$as_ac_var'}'`
9549                { echo "$as_me:$LINENO: result: $ac_res" >&5
9550 echo "${ECHO_T}$ac_res" >&6; }
9551 if test `eval echo '${'$as_ac_var'}'` = yes; then
9552   cat >>confdefs.h <<_ACEOF
9553 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9554 _ACEOF
9555
9556 fi
9557 done
9558
9559 { echo "$as_me:$LINENO: checking for working mmap" >&5
9560 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9561 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9562   echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564   if test "$cross_compiling" = yes; then
9565   ac_cv_func_mmap_fixed_mapped=no
9566 else
9567   cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h.  */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h.  */
9573 $ac_includes_default
9574 /* malloc might have been renamed as rpl_malloc. */
9575 #undef malloc
9576
9577 /* Thanks to Mike Haertel and Jim Avera for this test.
9578    Here is a matrix of mmap possibilities:
9579         mmap private not fixed
9580         mmap private fixed at somewhere currently unmapped
9581         mmap private fixed at somewhere already mapped
9582         mmap shared not fixed
9583         mmap shared fixed at somewhere currently unmapped
9584         mmap shared fixed at somewhere already mapped
9585    For private mappings, we should verify that changes cannot be read()
9586    back from the file, nor mmap's back from the file at a different
9587    address.  (There have been systems where private was not correctly
9588    implemented like the infamous i386 svr4.0, and systems where the
9589    VM page cache was not coherent with the file system buffer cache
9590    like early versions of FreeBSD and possibly contemporary NetBSD.)
9591    For shared mappings, we should conversely verify that changes get
9592    propagated back to all the places they're supposed to be.
9593
9594    Grep wants private fixed already mapped.
9595    The main things grep needs to know about mmap are:
9596    * does it exist and is it safe to write into the mmap'd area
9597    * how to use it (BSD variants)  */
9598
9599 #include <fcntl.h>
9600 #include <sys/mman.h>
9601
9602 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9603 char *malloc ();
9604 #endif
9605
9606 /* This mess was copied from the GNU getpagesize.h.  */
9607 #ifndef HAVE_GETPAGESIZE
9608 /* Assume that all systems that can run configure have sys/param.h.  */
9609 # ifndef HAVE_SYS_PARAM_H
9610 #  define HAVE_SYS_PARAM_H 1
9611 # endif
9612
9613 # ifdef _SC_PAGESIZE
9614 #  define getpagesize() sysconf(_SC_PAGESIZE)
9615 # else /* no _SC_PAGESIZE */
9616 #  ifdef HAVE_SYS_PARAM_H
9617 #   include <sys/param.h>
9618 #   ifdef EXEC_PAGESIZE
9619 #    define getpagesize() EXEC_PAGESIZE
9620 #   else /* no EXEC_PAGESIZE */
9621 #    ifdef NBPG
9622 #     define getpagesize() NBPG * CLSIZE
9623 #     ifndef CLSIZE
9624 #      define CLSIZE 1
9625 #     endif /* no CLSIZE */
9626 #    else /* no NBPG */
9627 #     ifdef NBPC
9628 #      define getpagesize() NBPC
9629 #     else /* no NBPC */
9630 #      ifdef PAGESIZE
9631 #       define getpagesize() PAGESIZE
9632 #      endif /* PAGESIZE */
9633 #     endif /* no NBPC */
9634 #    endif /* no NBPG */
9635 #   endif /* no EXEC_PAGESIZE */
9636 #  else /* no HAVE_SYS_PARAM_H */
9637 #   define getpagesize() 8192   /* punt totally */
9638 #  endif /* no HAVE_SYS_PARAM_H */
9639 # endif /* no _SC_PAGESIZE */
9640
9641 #endif /* no HAVE_GETPAGESIZE */
9642
9643 int
9644 main ()
9645 {
9646   char *data, *data2, *data3;
9647   int i, pagesize;
9648   int fd;
9649
9650   pagesize = getpagesize ();
9651
9652   /* First, make a file with some known garbage in it. */
9653   data = (char *) malloc (pagesize);
9654   if (!data)
9655     return 1;
9656   for (i = 0; i < pagesize; ++i)
9657     *(data + i) = rand ();
9658   umask (0);
9659   fd = creat ("conftest.mmap", 0600);
9660   if (fd < 0)
9661     return 1;
9662   if (write (fd, data, pagesize) != pagesize)
9663     return 1;
9664   close (fd);
9665
9666   /* Next, try to mmap the file at a fixed address which already has
9667      something else allocated at it.  If we can, also make sure that
9668      we see the same garbage.  */
9669   fd = open ("conftest.mmap", O_RDWR);
9670   if (fd < 0)
9671     return 1;
9672   data2 = (char *) malloc (2 * pagesize);
9673   if (!data2)
9674     return 1;
9675   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9676   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9677                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9678     return 1;
9679   for (i = 0; i < pagesize; ++i)
9680     if (*(data + i) != *(data2 + i))
9681       return 1;
9682
9683   /* Finally, make sure that changes to the mapped area do not
9684      percolate back to the file as seen by read().  (This is a bug on
9685      some variants of i386 svr4.0.)  */
9686   for (i = 0; i < pagesize; ++i)
9687     *(data2 + i) = *(data2 + i) + 1;
9688   data3 = (char *) malloc (pagesize);
9689   if (!data3)
9690     return 1;
9691   if (read (fd, data3, pagesize) != pagesize)
9692     return 1;
9693   for (i = 0; i < pagesize; ++i)
9694     if (*(data + i) != *(data3 + i))
9695       return 1;
9696   close (fd);
9697   return 0;
9698 }
9699 _ACEOF
9700 rm -f conftest$ac_exeext
9701 if { (ac_try="$ac_link"
9702 case "(($ac_try" in
9703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9704   *) ac_try_echo=$ac_try;;
9705 esac
9706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9707   (eval "$ac_link") 2>&5
9708   ac_status=$?
9709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9711   { (case "(($ac_try" in
9712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9713   *) ac_try_echo=$ac_try;;
9714 esac
9715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9716   (eval "$ac_try") 2>&5
9717   ac_status=$?
9718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719   (exit $ac_status); }; }; then
9720   ac_cv_func_mmap_fixed_mapped=yes
9721 else
9722   echo "$as_me: program exited with status $ac_status" >&5
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726 ( exit $ac_status )
9727 ac_cv_func_mmap_fixed_mapped=no
9728 fi
9729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9730 fi
9731
9732
9733 fi
9734 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9735 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9736 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9737
9738 cat >>confdefs.h <<\_ACEOF
9739 #define HAVE_MMAP 1
9740 _ACEOF
9741
9742 fi
9743 rm -f conftest.mmap
9744
9745
9746     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9747 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9748 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9749   echo $ECHO_N "(cached) $ECHO_C" >&6
9750 else
9751   cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h.  */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h.  */
9757
9758 #include <features.h>
9759 #ifdef __GNU_LIBRARY__
9760  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9761   Lucky GNU user
9762  #endif
9763 #endif
9764
9765 _ACEOF
9766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9767   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9768   ac_cv_gnu_library_2_1=yes
9769 else
9770   ac_cv_gnu_library_2_1=no
9771 fi
9772 rm -f conftest*
9773
9774
9775
9776 fi
9777 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9778 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9779
9780     GLIBC21="$ac_cv_gnu_library_2_1"
9781
9782
9783
9784
9785   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9786 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9787 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9788   echo $ECHO_N "(cached) $ECHO_C" >&6
9789 else
9790
9791       if test "$cross_compiling" = yes; then
9792
9793           # Guess based on the CPU.
9794           case "$host_cpu" in
9795             alpha* | i3456786 | m68k | s390*)
9796               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9797             *)
9798               gt_cv_int_divbyzero_sigfpe="guessing no";;
9799           esac
9800
9801 else
9802   cat >conftest.$ac_ext <<_ACEOF
9803 /* confdefs.h.  */
9804 _ACEOF
9805 cat confdefs.h >>conftest.$ac_ext
9806 cat >>conftest.$ac_ext <<_ACEOF
9807 /* end confdefs.h.  */
9808
9809 #include <stdlib.h>
9810 #include <signal.h>
9811
9812 static void
9813 #ifdef __cplusplus
9814 sigfpe_handler (int sig)
9815 #else
9816 sigfpe_handler (sig) int sig;
9817 #endif
9818 {
9819   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9820   exit (sig != SIGFPE);
9821 }
9822
9823 int x = 1;
9824 int y = 0;
9825 int z;
9826 int nan;
9827
9828 int main ()
9829 {
9830   signal (SIGFPE, sigfpe_handler);
9831 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9832 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9833   signal (SIGTRAP, sigfpe_handler);
9834 #endif
9835 /* Linux/SPARC yields signal SIGILL.  */
9836 #if defined (__sparc__) && defined (__linux__)
9837   signal (SIGILL, sigfpe_handler);
9838 #endif
9839
9840   z = x / y;
9841   nan = y / y;
9842   exit (1);
9843 }
9844
9845 _ACEOF
9846 rm -f conftest$ac_exeext
9847 if { (ac_try="$ac_link"
9848 case "(($ac_try" in
9849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9850   *) ac_try_echo=$ac_try;;
9851 esac
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853   (eval "$ac_link") 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9857   { (case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9862   (eval "$ac_try") 2>&5
9863   ac_status=$?
9864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865   (exit $ac_status); }; }; then
9866   gt_cv_int_divbyzero_sigfpe=yes
9867 else
9868   echo "$as_me: program exited with status $ac_status" >&5
9869 echo "$as_me: failed program was:" >&5
9870 sed 's/^/| /' conftest.$ac_ext >&5
9871
9872 ( exit $ac_status )
9873 gt_cv_int_divbyzero_sigfpe=no
9874 fi
9875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9876 fi
9877
9878
9879
9880 fi
9881 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9882 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9883   case "$gt_cv_int_divbyzero_sigfpe" in
9884     *yes) value=1;;
9885     *) value=0;;
9886   esac
9887
9888 cat >>confdefs.h <<_ACEOF
9889 #define INTDIV0_RAISES_SIGFPE $value
9890 _ACEOF
9891
9892
9893
9894   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9895 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9896 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9897   echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899   cat >conftest.$ac_ext <<_ACEOF
9900 /* confdefs.h.  */
9901 _ACEOF
9902 cat confdefs.h >>conftest.$ac_ext
9903 cat >>conftest.$ac_ext <<_ACEOF
9904 /* end confdefs.h.  */
9905 unsigned long long ull = 1ULL; int i = 63;
9906 int
9907 main ()
9908 {
9909 unsigned long long ullmax = (unsigned long long) -1;
9910      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9911   ;
9912   return 0;
9913 }
9914 _ACEOF
9915 rm -f conftest.$ac_objext conftest$ac_exeext
9916 if { (ac_try="$ac_link"
9917 case "(($ac_try" in
9918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919   *) ac_try_echo=$ac_try;;
9920 esac
9921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922   (eval "$ac_link") 2>conftest.er1
9923   ac_status=$?
9924   grep -v '^ *+' conftest.er1 >conftest.err
9925   rm -f conftest.er1
9926   cat conftest.err >&5
9927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928   (exit $ac_status); } && {
9929          test -z "$ac_c_werror_flag" ||
9930          test ! -s conftest.err
9931        } && test -s conftest$ac_exeext &&
9932        $as_test_x conftest$ac_exeext; then
9933   ac_cv_type_unsigned_long_long=yes
9934 else
9935   echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9937
9938         ac_cv_type_unsigned_long_long=no
9939 fi
9940
9941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9942       conftest$ac_exeext conftest.$ac_ext
9943 fi
9944 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9945 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9946   if test $ac_cv_type_unsigned_long_long = yes; then
9947
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_UNSIGNED_LONG_LONG 1
9950 _ACEOF
9951
9952   fi
9953
9954
9955
9956
9957   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9958
9959     test $ac_cv_type_unsigned_long_long = yes \
9960       && ac_type='unsigned long long' \
9961       || ac_type='unsigned long'
9962
9963 cat >>confdefs.h <<_ACEOF
9964 #define uintmax_t $ac_type
9965 _ACEOF
9966
9967   else
9968
9969 cat >>confdefs.h <<\_ACEOF
9970 #define HAVE_UINTMAX_T 1
9971 _ACEOF
9972
9973   fi
9974
9975
9976   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9977 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9978 if test "${gt_cv_header_inttypes_h+set}" = set; then
9979   echo $ECHO_N "(cached) $ECHO_C" >&6
9980 else
9981
9982     cat >conftest.$ac_ext <<_ACEOF
9983 /* confdefs.h.  */
9984 _ACEOF
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h.  */
9988 #include <sys/types.h>
9989 #include <inttypes.h>
9990 int
9991 main ()
9992 {
9993
9994   ;
9995   return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext
9999 if { (ac_try="$ac_compile"
10000 case "(($ac_try" in
10001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002   *) ac_try_echo=$ac_try;;
10003 esac
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005   (eval "$ac_compile") 2>conftest.er1
10006   ac_status=$?
10007   grep -v '^ *+' conftest.er1 >conftest.err
10008   rm -f conftest.er1
10009   cat conftest.err >&5
10010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011   (exit $ac_status); } && {
10012          test -z "$ac_c_werror_flag" ||
10013          test ! -s conftest.err
10014        } && test -s conftest.$ac_objext; then
10015   gt_cv_header_inttypes_h=yes
10016 else
10017   echo "$as_me: failed program was:" >&5
10018 sed 's/^/| /' conftest.$ac_ext >&5
10019
10020         gt_cv_header_inttypes_h=no
10021 fi
10022
10023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10024
10025 fi
10026 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10027 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10028   if test $gt_cv_header_inttypes_h = yes; then
10029
10030 cat >>confdefs.h <<_ACEOF
10031 #define HAVE_INTTYPES_H 1
10032 _ACEOF
10033
10034   fi
10035
10036
10037
10038   if test $gt_cv_header_inttypes_h = yes; then
10039     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10040 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10041 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10042   echo $ECHO_N "(cached) $ECHO_C" >&6
10043 else
10044
10045         cat >conftest.$ac_ext <<_ACEOF
10046 /* confdefs.h.  */
10047 _ACEOF
10048 cat confdefs.h >>conftest.$ac_ext
10049 cat >>conftest.$ac_ext <<_ACEOF
10050 /* end confdefs.h.  */
10051 #include <inttypes.h>
10052 #ifdef PRId32
10053 char *p = PRId32;
10054 #endif
10055
10056 int
10057 main ()
10058 {
10059
10060   ;
10061   return 0;
10062 }
10063 _ACEOF
10064 rm -f conftest.$ac_objext
10065 if { (ac_try="$ac_compile"
10066 case "(($ac_try" in
10067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068   *) ac_try_echo=$ac_try;;
10069 esac
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071   (eval "$ac_compile") 2>conftest.er1
10072   ac_status=$?
10073   grep -v '^ *+' conftest.er1 >conftest.err
10074   rm -f conftest.er1
10075   cat conftest.err >&5
10076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077   (exit $ac_status); } && {
10078          test -z "$ac_c_werror_flag" ||
10079          test ! -s conftest.err
10080        } && test -s conftest.$ac_objext; then
10081   gt_cv_inttypes_pri_broken=no
10082 else
10083   echo "$as_me: failed program was:" >&5
10084 sed 's/^/| /' conftest.$ac_ext >&5
10085
10086         gt_cv_inttypes_pri_broken=yes
10087 fi
10088
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090
10091 fi
10092 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10093 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10094   fi
10095   if test "$gt_cv_inttypes_pri_broken" = yes; then
10096
10097 cat >>confdefs.h <<_ACEOF
10098 #define PRI_MACROS_BROKEN 1
10099 _ACEOF
10100
10101   fi
10102
10103
10104
10105 for ac_header in stdint.h
10106 do
10107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10109   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10112   echo $ECHO_N "(cached) $ECHO_C" >&6
10113 fi
10114 ac_res=`eval echo '${'$as_ac_Header'}'`
10115                { echo "$as_me:$LINENO: result: $ac_res" >&5
10116 echo "${ECHO_T}$ac_res" >&6; }
10117 else
10118   # Is the header compilable?
10119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10121 cat >conftest.$ac_ext <<_ACEOF
10122 /* confdefs.h.  */
10123 _ACEOF
10124 cat confdefs.h >>conftest.$ac_ext
10125 cat >>conftest.$ac_ext <<_ACEOF
10126 /* end confdefs.h.  */
10127 $ac_includes_default
10128 #include <$ac_header>
10129 _ACEOF
10130 rm -f conftest.$ac_objext
10131 if { (ac_try="$ac_compile"
10132 case "(($ac_try" in
10133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10134   *) ac_try_echo=$ac_try;;
10135 esac
10136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10137   (eval "$ac_compile") 2>conftest.er1
10138   ac_status=$?
10139   grep -v '^ *+' conftest.er1 >conftest.err
10140   rm -f conftest.er1
10141   cat conftest.err >&5
10142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10143   (exit $ac_status); } && {
10144          test -z "$ac_c_werror_flag" ||
10145          test ! -s conftest.err
10146        } && test -s conftest.$ac_objext; then
10147   ac_header_compiler=yes
10148 else
10149   echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10151
10152         ac_header_compiler=no
10153 fi
10154
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10157 echo "${ECHO_T}$ac_header_compiler" >&6; }
10158
10159 # Is the header present?
10160 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10162 cat >conftest.$ac_ext <<_ACEOF
10163 /* confdefs.h.  */
10164 _ACEOF
10165 cat confdefs.h >>conftest.$ac_ext
10166 cat >>conftest.$ac_ext <<_ACEOF
10167 /* end confdefs.h.  */
10168 #include <$ac_header>
10169 _ACEOF
10170 if { (ac_try="$ac_cpp conftest.$ac_ext"
10171 case "(($ac_try" in
10172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10173   *) ac_try_echo=$ac_try;;
10174 esac
10175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10176   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10177   ac_status=$?
10178   grep -v '^ *+' conftest.er1 >conftest.err
10179   rm -f conftest.er1
10180   cat conftest.err >&5
10181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182   (exit $ac_status); } >/dev/null && {
10183          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10184          test ! -s conftest.err
10185        }; then
10186   ac_header_preproc=yes
10187 else
10188   echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10190
10191   ac_header_preproc=no
10192 fi
10193
10194 rm -f conftest.err conftest.$ac_ext
10195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10196 echo "${ECHO_T}$ac_header_preproc" >&6; }
10197
10198 # So?  What about this header?
10199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10200   yes:no: )
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10202 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10204 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10205     ac_header_preproc=yes
10206     ;;
10207   no:yes:* )
10208     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10209 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10211 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10212     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10213 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10214     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10215 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10216     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10217 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10218     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10219 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10220
10221     ;;
10222 esac
10223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10226   echo $ECHO_N "(cached) $ECHO_C" >&6
10227 else
10228   eval "$as_ac_Header=\$ac_header_preproc"
10229 fi
10230 ac_res=`eval echo '${'$as_ac_Header'}'`
10231                { echo "$as_me:$LINENO: result: $ac_res" >&5
10232 echo "${ECHO_T}$ac_res" >&6; }
10233
10234 fi
10235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10236   cat >>confdefs.h <<_ACEOF
10237 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10238 _ACEOF
10239
10240 fi
10241
10242 done
10243
10244     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10245 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10246   result=
10247   cat >conftest.$ac_ext <<_ACEOF
10248 /* confdefs.h.  */
10249 _ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h.  */
10253
10254 #include <limits.h>
10255 #if HAVE_STDINT_H
10256 #include <stdint.h>
10257 #endif
10258 #ifdef SIZE_MAX
10259 Found it
10260 #endif
10261
10262 _ACEOF
10263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10264   $EGREP "Found it" >/dev/null 2>&1; then
10265   result=yes
10266 fi
10267 rm -f conftest*
10268
10269   if test -z "$result"; then
10270                     if test "$cross_compiling" = yes; then
10271   # Depending upon the size, compute the lo and hi bounds.
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h.  */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h.  */
10278 #include <stddef.h>
10279 int
10280 main ()
10281 {
10282 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10283 test_array [0] = 0
10284
10285   ;
10286   return 0;
10287 }
10288 _ACEOF
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293   *) ac_try_echo=$ac_try;;
10294 esac
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296   (eval "$ac_compile") 2>conftest.er1
10297   ac_status=$?
10298   grep -v '^ *+' conftest.er1 >conftest.err
10299   rm -f conftest.er1
10300   cat conftest.err >&5
10301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302   (exit $ac_status); } && {
10303          test -z "$ac_c_werror_flag" ||
10304          test ! -s conftest.err
10305        } && test -s conftest.$ac_objext; then
10306   ac_lo=0 ac_mid=0
10307   while :; do
10308     cat >conftest.$ac_ext <<_ACEOF
10309 /* confdefs.h.  */
10310 _ACEOF
10311 cat confdefs.h >>conftest.$ac_ext
10312 cat >>conftest.$ac_ext <<_ACEOF
10313 /* end confdefs.h.  */
10314 #include <stddef.h>
10315 int
10316 main ()
10317 {
10318 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10319 test_array [0] = 0
10320
10321   ;
10322   return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext
10326 if { (ac_try="$ac_compile"
10327 case "(($ac_try" in
10328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329   *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332   (eval "$ac_compile") 2>conftest.er1
10333   ac_status=$?
10334   grep -v '^ *+' conftest.er1 >conftest.err
10335   rm -f conftest.er1
10336   cat conftest.err >&5
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } && {
10339          test -z "$ac_c_werror_flag" ||
10340          test ! -s conftest.err
10341        } && test -s conftest.$ac_objext; then
10342   ac_hi=$ac_mid; break
10343 else
10344   echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347         ac_lo=`expr $ac_mid + 1`
10348                         if test $ac_lo -le $ac_mid; then
10349                           ac_lo= ac_hi=
10350                           break
10351                         fi
10352                         ac_mid=`expr 2 '*' $ac_mid + 1`
10353 fi
10354
10355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10356   done
10357 else
10358   echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10360
10361         cat >conftest.$ac_ext <<_ACEOF
10362 /* confdefs.h.  */
10363 _ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h.  */
10367 #include <stddef.h>
10368 int
10369 main ()
10370 {
10371 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10372 test_array [0] = 0
10373
10374   ;
10375   return 0;
10376 }
10377 _ACEOF
10378 rm -f conftest.$ac_objext
10379 if { (ac_try="$ac_compile"
10380 case "(($ac_try" in
10381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382   *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385   (eval "$ac_compile") 2>conftest.er1
10386   ac_status=$?
10387   grep -v '^ *+' conftest.er1 >conftest.err
10388   rm -f conftest.er1
10389   cat conftest.err >&5
10390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391   (exit $ac_status); } && {
10392          test -z "$ac_c_werror_flag" ||
10393          test ! -s conftest.err
10394        } && test -s conftest.$ac_objext; then
10395   ac_hi=-1 ac_mid=-1
10396   while :; do
10397     cat >conftest.$ac_ext <<_ACEOF
10398 /* confdefs.h.  */
10399 _ACEOF
10400 cat confdefs.h >>conftest.$ac_ext
10401 cat >>conftest.$ac_ext <<_ACEOF
10402 /* end confdefs.h.  */
10403 #include <stddef.h>
10404 int
10405 main ()
10406 {
10407 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10408 test_array [0] = 0
10409
10410   ;
10411   return 0;
10412 }
10413 _ACEOF
10414 rm -f conftest.$ac_objext
10415 if { (ac_try="$ac_compile"
10416 case "(($ac_try" in
10417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10418   *) ac_try_echo=$ac_try;;
10419 esac
10420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10421   (eval "$ac_compile") 2>conftest.er1
10422   ac_status=$?
10423   grep -v '^ *+' conftest.er1 >conftest.err
10424   rm -f conftest.er1
10425   cat conftest.err >&5
10426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427   (exit $ac_status); } && {
10428          test -z "$ac_c_werror_flag" ||
10429          test ! -s conftest.err
10430        } && test -s conftest.$ac_objext; then
10431   ac_lo=$ac_mid; break
10432 else
10433   echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436         ac_hi=`expr '(' $ac_mid ')' - 1`
10437                         if test $ac_mid -le $ac_hi; then
10438                           ac_lo= ac_hi=
10439                           break
10440                         fi
10441                         ac_mid=`expr 2 '*' $ac_mid`
10442 fi
10443
10444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445   done
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450         ac_lo= ac_hi=
10451 fi
10452
10453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10454 fi
10455
10456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10457 # Binary search between lo and hi bounds.
10458 while test "x$ac_lo" != "x$ac_hi"; do
10459   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10460   cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466 #include <stddef.h>
10467 int
10468 main ()
10469 {
10470 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10471 test_array [0] = 0
10472
10473   ;
10474   return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext
10478 if { (ac_try="$ac_compile"
10479 case "(($ac_try" in
10480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481   *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484   (eval "$ac_compile") 2>conftest.er1
10485   ac_status=$?
10486   grep -v '^ *+' conftest.er1 >conftest.err
10487   rm -f conftest.er1
10488   cat conftest.err >&5
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); } && {
10491          test -z "$ac_c_werror_flag" ||
10492          test ! -s conftest.err
10493        } && test -s conftest.$ac_objext; then
10494   ac_hi=$ac_mid
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499         ac_lo=`expr '(' $ac_mid ')' + 1`
10500 fi
10501
10502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10503 done
10504 case $ac_lo in
10505 ?*) res_hi=$ac_lo;;
10506 '') result=? ;;
10507 esac
10508 else
10509   cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515 #include <stddef.h>
10516 static long int longval () { return ~(size_t)0 / 10; }
10517 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10518 #include <stdio.h>
10519 #include <stdlib.h>
10520 int
10521 main ()
10522 {
10523
10524   FILE *f = fopen ("conftest.val", "w");
10525   if (! f)
10526     return 1;
10527   if ((~(size_t)0 / 10) < 0)
10528     {
10529       long int i = longval ();
10530       if (i != (~(size_t)0 / 10))
10531         return 1;
10532       fprintf (f, "%ld\n", i);
10533     }
10534   else
10535     {
10536       unsigned long int i = ulongval ();
10537       if (i != (~(size_t)0 / 10))
10538         return 1;
10539       fprintf (f, "%lu\n", i);
10540     }
10541   return ferror (f) || fclose (f) != 0;
10542
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551   *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554   (eval "$ac_link") 2>&5
10555   ac_status=$?
10556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10558   { (case "(($ac_try" in
10559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560   *) ac_try_echo=$ac_try;;
10561 esac
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563   (eval "$ac_try") 2>&5
10564   ac_status=$?
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); }; }; then
10567   res_hi=`cat conftest.val`
10568 else
10569   echo "$as_me: program exited with status $ac_status" >&5
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ( exit $ac_status )
10574 result=?
10575 fi
10576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10577 fi
10578 rm -f conftest.val
10579
10580     if test "$cross_compiling" = yes; then
10581   # Depending upon the size, compute the lo and hi bounds.
10582 cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 #include <stddef.h>
10589 int
10590 main ()
10591 {
10592 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10593 test_array [0] = 0
10594
10595   ;
10596   return 0;
10597 }
10598 _ACEOF
10599 rm -f conftest.$ac_objext
10600 if { (ac_try="$ac_compile"
10601 case "(($ac_try" in
10602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603   *) ac_try_echo=$ac_try;;
10604 esac
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606   (eval "$ac_compile") 2>conftest.er1
10607   ac_status=$?
10608   grep -v '^ *+' conftest.er1 >conftest.err
10609   rm -f conftest.er1
10610   cat conftest.err >&5
10611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612   (exit $ac_status); } && {
10613          test -z "$ac_c_werror_flag" ||
10614          test ! -s conftest.err
10615        } && test -s conftest.$ac_objext; then
10616   ac_lo=0 ac_mid=0
10617   while :; do
10618     cat >conftest.$ac_ext <<_ACEOF
10619 /* confdefs.h.  */
10620 _ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h.  */
10624 #include <stddef.h>
10625 int
10626 main ()
10627 {
10628 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10629 test_array [0] = 0
10630
10631   ;
10632   return 0;
10633 }
10634 _ACEOF
10635 rm -f conftest.$ac_objext
10636 if { (ac_try="$ac_compile"
10637 case "(($ac_try" in
10638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10639   *) ac_try_echo=$ac_try;;
10640 esac
10641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10642   (eval "$ac_compile") 2>conftest.er1
10643   ac_status=$?
10644   grep -v '^ *+' conftest.er1 >conftest.err
10645   rm -f conftest.er1
10646   cat conftest.err >&5
10647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648   (exit $ac_status); } && {
10649          test -z "$ac_c_werror_flag" ||
10650          test ! -s conftest.err
10651        } && test -s conftest.$ac_objext; then
10652   ac_hi=$ac_mid; break
10653 else
10654   echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10656
10657         ac_lo=`expr $ac_mid + 1`
10658                         if test $ac_lo -le $ac_mid; then
10659                           ac_lo= ac_hi=
10660                           break
10661                         fi
10662                         ac_mid=`expr 2 '*' $ac_mid + 1`
10663 fi
10664
10665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10666   done
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         cat >conftest.$ac_ext <<_ACEOF
10672 /* confdefs.h.  */
10673 _ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h.  */
10677 #include <stddef.h>
10678 int
10679 main ()
10680 {
10681 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10682 test_array [0] = 0
10683
10684   ;
10685   return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext
10689 if { (ac_try="$ac_compile"
10690 case "(($ac_try" in
10691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692   *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695   (eval "$ac_compile") 2>conftest.er1
10696   ac_status=$?
10697   grep -v '^ *+' conftest.er1 >conftest.err
10698   rm -f conftest.er1
10699   cat conftest.err >&5
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } && {
10702          test -z "$ac_c_werror_flag" ||
10703          test ! -s conftest.err
10704        } && test -s conftest.$ac_objext; then
10705   ac_hi=-1 ac_mid=-1
10706   while :; do
10707     cat >conftest.$ac_ext <<_ACEOF
10708 /* confdefs.h.  */
10709 _ACEOF
10710 cat confdefs.h >>conftest.$ac_ext
10711 cat >>conftest.$ac_ext <<_ACEOF
10712 /* end confdefs.h.  */
10713 #include <stddef.h>
10714 int
10715 main ()
10716 {
10717 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10718 test_array [0] = 0
10719
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 rm -f conftest.$ac_objext
10725 if { (ac_try="$ac_compile"
10726 case "(($ac_try" in
10727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728   *) ac_try_echo=$ac_try;;
10729 esac
10730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10731   (eval "$ac_compile") 2>conftest.er1
10732   ac_status=$?
10733   grep -v '^ *+' conftest.er1 >conftest.err
10734   rm -f conftest.er1
10735   cat conftest.err >&5
10736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737   (exit $ac_status); } && {
10738          test -z "$ac_c_werror_flag" ||
10739          test ! -s conftest.err
10740        } && test -s conftest.$ac_objext; then
10741   ac_lo=$ac_mid; break
10742 else
10743   echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10745
10746         ac_hi=`expr '(' $ac_mid ')' - 1`
10747                         if test $ac_mid -le $ac_hi; then
10748                           ac_lo= ac_hi=
10749                           break
10750                         fi
10751                         ac_mid=`expr 2 '*' $ac_mid`
10752 fi
10753
10754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10755   done
10756 else
10757   echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760         ac_lo= ac_hi=
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10764 fi
10765
10766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10767 # Binary search between lo and hi bounds.
10768 while test "x$ac_lo" != "x$ac_hi"; do
10769   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10770   cat >conftest.$ac_ext <<_ACEOF
10771 /* confdefs.h.  */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h.  */
10776 #include <stddef.h>
10777 int
10778 main ()
10779 {
10780 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10781 test_array [0] = 0
10782
10783   ;
10784   return 0;
10785 }
10786 _ACEOF
10787 rm -f conftest.$ac_objext
10788 if { (ac_try="$ac_compile"
10789 case "(($ac_try" in
10790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791   *) ac_try_echo=$ac_try;;
10792 esac
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794   (eval "$ac_compile") 2>conftest.er1
10795   ac_status=$?
10796   grep -v '^ *+' conftest.er1 >conftest.err
10797   rm -f conftest.er1
10798   cat conftest.err >&5
10799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800   (exit $ac_status); } && {
10801          test -z "$ac_c_werror_flag" ||
10802          test ! -s conftest.err
10803        } && test -s conftest.$ac_objext; then
10804   ac_hi=$ac_mid
10805 else
10806   echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809         ac_lo=`expr '(' $ac_mid ')' + 1`
10810 fi
10811
10812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 done
10814 case $ac_lo in
10815 ?*) res_lo=$ac_lo;;
10816 '') result=? ;;
10817 esac
10818 else
10819   cat >conftest.$ac_ext <<_ACEOF
10820 /* confdefs.h.  */
10821 _ACEOF
10822 cat confdefs.h >>conftest.$ac_ext
10823 cat >>conftest.$ac_ext <<_ACEOF
10824 /* end confdefs.h.  */
10825 #include <stddef.h>
10826 static long int longval () { return ~(size_t)0 % 10; }
10827 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10828 #include <stdio.h>
10829 #include <stdlib.h>
10830 int
10831 main ()
10832 {
10833
10834   FILE *f = fopen ("conftest.val", "w");
10835   if (! f)
10836     return 1;
10837   if ((~(size_t)0 % 10) < 0)
10838     {
10839       long int i = longval ();
10840       if (i != (~(size_t)0 % 10))
10841         return 1;
10842       fprintf (f, "%ld\n", i);
10843     }
10844   else
10845     {
10846       unsigned long int i = ulongval ();
10847       if (i != (~(size_t)0 % 10))
10848         return 1;
10849       fprintf (f, "%lu\n", i);
10850     }
10851   return ferror (f) || fclose (f) != 0;
10852
10853   ;
10854   return 0;
10855 }
10856 _ACEOF
10857 rm -f conftest$ac_exeext
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861   *) ac_try_echo=$ac_try;;
10862 esac
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864   (eval "$ac_link") 2>&5
10865   ac_status=$?
10866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; }; then
10877   res_lo=`cat conftest.val`
10878 else
10879   echo "$as_me: program exited with status $ac_status" >&5
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10882
10883 ( exit $ac_status )
10884 result=?
10885 fi
10886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10887 fi
10888 rm -f conftest.val
10889
10890     if test "$cross_compiling" = yes; then
10891   # Depending upon the size, compute the lo and hi bounds.
10892 cat >conftest.$ac_ext <<_ACEOF
10893 /* confdefs.h.  */
10894 _ACEOF
10895 cat confdefs.h >>conftest.$ac_ext
10896 cat >>conftest.$ac_ext <<_ACEOF
10897 /* end confdefs.h.  */
10898 #include <stddef.h>
10899 int
10900 main ()
10901 {
10902 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10903 test_array [0] = 0
10904
10905   ;
10906   return 0;
10907 }
10908 _ACEOF
10909 rm -f conftest.$ac_objext
10910 if { (ac_try="$ac_compile"
10911 case "(($ac_try" in
10912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913   *) ac_try_echo=$ac_try;;
10914 esac
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916   (eval "$ac_compile") 2>conftest.er1
10917   ac_status=$?
10918   grep -v '^ *+' conftest.er1 >conftest.err
10919   rm -f conftest.er1
10920   cat conftest.err >&5
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); } && {
10923          test -z "$ac_c_werror_flag" ||
10924          test ! -s conftest.err
10925        } && test -s conftest.$ac_objext; then
10926   ac_lo=0 ac_mid=0
10927   while :; do
10928     cat >conftest.$ac_ext <<_ACEOF
10929 /* confdefs.h.  */
10930 _ACEOF
10931 cat confdefs.h >>conftest.$ac_ext
10932 cat >>conftest.$ac_ext <<_ACEOF
10933 /* end confdefs.h.  */
10934 #include <stddef.h>
10935 int
10936 main ()
10937 {
10938 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10939 test_array [0] = 0
10940
10941   ;
10942   return 0;
10943 }
10944 _ACEOF
10945 rm -f conftest.$ac_objext
10946 if { (ac_try="$ac_compile"
10947 case "(($ac_try" in
10948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10949   *) ac_try_echo=$ac_try;;
10950 esac
10951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10952   (eval "$ac_compile") 2>conftest.er1
10953   ac_status=$?
10954   grep -v '^ *+' conftest.er1 >conftest.err
10955   rm -f conftest.er1
10956   cat conftest.err >&5
10957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10958   (exit $ac_status); } && {
10959          test -z "$ac_c_werror_flag" ||
10960          test ! -s conftest.err
10961        } && test -s conftest.$ac_objext; then
10962   ac_hi=$ac_mid; break
10963 else
10964   echo "$as_me: failed program was:" >&5
10965 sed 's/^/| /' conftest.$ac_ext >&5
10966
10967         ac_lo=`expr $ac_mid + 1`
10968                         if test $ac_lo -le $ac_mid; then
10969                           ac_lo= ac_hi=
10970                           break
10971                         fi
10972                         ac_mid=`expr 2 '*' $ac_mid + 1`
10973 fi
10974
10975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10976   done
10977 else
10978   echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10980
10981         cat >conftest.$ac_ext <<_ACEOF
10982 /* confdefs.h.  */
10983 _ACEOF
10984 cat confdefs.h >>conftest.$ac_ext
10985 cat >>conftest.$ac_ext <<_ACEOF
10986 /* end confdefs.h.  */
10987 #include <stddef.h>
10988 int
10989 main ()
10990 {
10991 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10992 test_array [0] = 0
10993
10994   ;
10995   return 0;
10996 }
10997 _ACEOF
10998 rm -f conftest.$ac_objext
10999 if { (ac_try="$ac_compile"
11000 case "(($ac_try" in
11001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002   *) ac_try_echo=$ac_try;;
11003 esac
11004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005   (eval "$ac_compile") 2>conftest.er1
11006   ac_status=$?
11007   grep -v '^ *+' conftest.er1 >conftest.err
11008   rm -f conftest.er1
11009   cat conftest.err >&5
11010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011   (exit $ac_status); } && {
11012          test -z "$ac_c_werror_flag" ||
11013          test ! -s conftest.err
11014        } && test -s conftest.$ac_objext; then
11015   ac_hi=-1 ac_mid=-1
11016   while :; do
11017     cat >conftest.$ac_ext <<_ACEOF
11018 /* confdefs.h.  */
11019 _ACEOF
11020 cat confdefs.h >>conftest.$ac_ext
11021 cat >>conftest.$ac_ext <<_ACEOF
11022 /* end confdefs.h.  */
11023 #include <stddef.h>
11024 int
11025 main ()
11026 {
11027 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11028 test_array [0] = 0
11029
11030   ;
11031   return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext
11035 if { (ac_try="$ac_compile"
11036 case "(($ac_try" in
11037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038   *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041   (eval "$ac_compile") 2>conftest.er1
11042   ac_status=$?
11043   grep -v '^ *+' conftest.er1 >conftest.err
11044   rm -f conftest.er1
11045   cat conftest.err >&5
11046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047   (exit $ac_status); } && {
11048          test -z "$ac_c_werror_flag" ||
11049          test ! -s conftest.err
11050        } && test -s conftest.$ac_objext; then
11051   ac_lo=$ac_mid; break
11052 else
11053   echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11055
11056         ac_hi=`expr '(' $ac_mid ')' - 1`
11057                         if test $ac_mid -le $ac_hi; then
11058                           ac_lo= ac_hi=
11059                           break
11060                         fi
11061                         ac_mid=`expr 2 '*' $ac_mid`
11062 fi
11063
11064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11065   done
11066 else
11067   echo "$as_me: failed program was:" >&5
11068 sed 's/^/| /' conftest.$ac_ext >&5
11069
11070         ac_lo= ac_hi=
11071 fi
11072
11073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11074 fi
11075
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 # Binary search between lo and hi bounds.
11078 while test "x$ac_lo" != "x$ac_hi"; do
11079   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11080   cat >conftest.$ac_ext <<_ACEOF
11081 /* confdefs.h.  */
11082 _ACEOF
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h.  */
11086 #include <stddef.h>
11087 int
11088 main ()
11089 {
11090 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11091 test_array [0] = 0
11092
11093   ;
11094   return 0;
11095 }
11096 _ACEOF
11097 rm -f conftest.$ac_objext
11098 if { (ac_try="$ac_compile"
11099 case "(($ac_try" in
11100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101   *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104   (eval "$ac_compile") 2>conftest.er1
11105   ac_status=$?
11106   grep -v '^ *+' conftest.er1 >conftest.err
11107   rm -f conftest.er1
11108   cat conftest.err >&5
11109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11110   (exit $ac_status); } && {
11111          test -z "$ac_c_werror_flag" ||
11112          test ! -s conftest.err
11113        } && test -s conftest.$ac_objext; then
11114   ac_hi=$ac_mid
11115 else
11116   echo "$as_me: failed program was:" >&5
11117 sed 's/^/| /' conftest.$ac_ext >&5
11118
11119         ac_lo=`expr '(' $ac_mid ')' + 1`
11120 fi
11121
11122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11123 done
11124 case $ac_lo in
11125 ?*) fits_in_uint=$ac_lo;;
11126 '') result=? ;;
11127 esac
11128 else
11129   cat >conftest.$ac_ext <<_ACEOF
11130 /* confdefs.h.  */
11131 _ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h.  */
11135 #include <stddef.h>
11136 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11137 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11138 #include <stdio.h>
11139 #include <stdlib.h>
11140 int
11141 main ()
11142 {
11143
11144   FILE *f = fopen ("conftest.val", "w");
11145   if (! f)
11146     return 1;
11147   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11148     {
11149       long int i = longval ();
11150       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11151         return 1;
11152       fprintf (f, "%ld\n", i);
11153     }
11154   else
11155     {
11156       unsigned long int i = ulongval ();
11157       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11158         return 1;
11159       fprintf (f, "%lu\n", i);
11160     }
11161   return ferror (f) || fclose (f) != 0;
11162
11163   ;
11164   return 0;
11165 }
11166 _ACEOF
11167 rm -f conftest$ac_exeext
11168 if { (ac_try="$ac_link"
11169 case "(($ac_try" in
11170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11171   *) ac_try_echo=$ac_try;;
11172 esac
11173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11174   (eval "$ac_link") 2>&5
11175   ac_status=$?
11176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11178   { (case "(($ac_try" in
11179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180   *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183   (eval "$ac_try") 2>&5
11184   ac_status=$?
11185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186   (exit $ac_status); }; }; then
11187   fits_in_uint=`cat conftest.val`
11188 else
11189   echo "$as_me: program exited with status $ac_status" >&5
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11192
11193 ( exit $ac_status )
11194 result=?
11195 fi
11196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11197 fi
11198 rm -f conftest.val
11199
11200     if test "$fits_in_uint" = 1; then
11201                   cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h.  */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h.  */
11207 #include <stddef.h>
11208         extern size_t foo;
11209         extern unsigned long foo;
11210
11211 int
11212 main ()
11213 {
11214
11215   ;
11216   return 0;
11217 }
11218 _ACEOF
11219 rm -f conftest.$ac_objext
11220 if { (ac_try="$ac_compile"
11221 case "(($ac_try" in
11222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11223   *) ac_try_echo=$ac_try;;
11224 esac
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226   (eval "$ac_compile") 2>conftest.er1
11227   ac_status=$?
11228   grep -v '^ *+' conftest.er1 >conftest.err
11229   rm -f conftest.er1
11230   cat conftest.err >&5
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } && {
11233          test -z "$ac_c_werror_flag" ||
11234          test ! -s conftest.err
11235        } && test -s conftest.$ac_objext; then
11236   fits_in_uint=0
11237 else
11238   echo "$as_me: failed program was:" >&5
11239 sed 's/^/| /' conftest.$ac_ext >&5
11240
11241
11242 fi
11243
11244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245     fi
11246     if test -z "$result"; then
11247       if test "$fits_in_uint" = 1; then
11248         result="$res_hi$res_lo"U
11249       else
11250         result="$res_hi$res_lo"UL
11251       fi
11252     else
11253             result='~(size_t)0'
11254     fi
11255   fi
11256   { echo "$as_me:$LINENO: result: $result" >&5
11257 echo "${ECHO_T}$result" >&6; }
11258   if test "$result" != yes; then
11259
11260 cat >>confdefs.h <<_ACEOF
11261 #define SIZE_MAX $result
11262 _ACEOF
11263
11264   fi
11265
11266
11267
11268
11269
11270 for ac_header in stdint.h
11271 do
11272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11274   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 fi
11279 ac_res=`eval echo '${'$as_ac_Header'}'`
11280                { echo "$as_me:$LINENO: result: $ac_res" >&5
11281 echo "${ECHO_T}$ac_res" >&6; }
11282 else
11283   # Is the header compilable?
11284 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11285 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11286 cat >conftest.$ac_ext <<_ACEOF
11287 /* confdefs.h.  */
11288 _ACEOF
11289 cat confdefs.h >>conftest.$ac_ext
11290 cat >>conftest.$ac_ext <<_ACEOF
11291 /* end confdefs.h.  */
11292 $ac_includes_default
11293 #include <$ac_header>
11294 _ACEOF
11295 rm -f conftest.$ac_objext
11296 if { (ac_try="$ac_compile"
11297 case "(($ac_try" in
11298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11299   *) ac_try_echo=$ac_try;;
11300 esac
11301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11302   (eval "$ac_compile") 2>conftest.er1
11303   ac_status=$?
11304   grep -v '^ *+' conftest.er1 >conftest.err
11305   rm -f conftest.er1
11306   cat conftest.err >&5
11307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308   (exit $ac_status); } && {
11309          test -z "$ac_c_werror_flag" ||
11310          test ! -s conftest.err
11311        } && test -s conftest.$ac_objext; then
11312   ac_header_compiler=yes
11313 else
11314   echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317         ac_header_compiler=no
11318 fi
11319
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6; }
11323
11324 # Is the header present?
11325 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h.  */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h.  */
11333 #include <$ac_header>
11334 _ACEOF
11335 if { (ac_try="$ac_cpp conftest.$ac_ext"
11336 case "(($ac_try" in
11337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338   *) ac_try_echo=$ac_try;;
11339 esac
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11342   ac_status=$?
11343   grep -v '^ *+' conftest.er1 >conftest.err
11344   rm -f conftest.er1
11345   cat conftest.err >&5
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); } >/dev/null && {
11348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11349          test ! -s conftest.err
11350        }; then
11351   ac_header_preproc=yes
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356   ac_header_preproc=no
11357 fi
11358
11359 rm -f conftest.err conftest.$ac_ext
11360 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11361 echo "${ECHO_T}$ac_header_preproc" >&6; }
11362
11363 # So?  What about this header?
11364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11365   yes:no: )
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11370     ac_header_preproc=yes
11371     ;;
11372   no:yes:* )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11385
11386     ;;
11387 esac
11388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11391   echo $ECHO_N "(cached) $ECHO_C" >&6
11392 else
11393   eval "$as_ac_Header=\$ac_header_preproc"
11394 fi
11395 ac_res=`eval echo '${'$as_ac_Header'}'`
11396                { echo "$as_me:$LINENO: result: $ac_res" >&5
11397 echo "${ECHO_T}$ac_res" >&6; }
11398
11399 fi
11400 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11401   cat >>confdefs.h <<_ACEOF
11402 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11403 _ACEOF
11404
11405 fi
11406
11407 done
11408
11409
11410
11411
11412
11413
11414
11415
11416   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11417 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11418 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11419   echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421   cat >conftest.$ac_ext <<_ACEOF
11422 /* confdefs.h.  */
11423 _ACEOF
11424 cat confdefs.h >>conftest.$ac_ext
11425 cat >>conftest.$ac_ext <<_ACEOF
11426 /* end confdefs.h.  */
11427 $ac_includes_default
11428 typedef ptrdiff_t ac__type_new_;
11429 int
11430 main ()
11431 {
11432 if ((ac__type_new_ *) 0)
11433   return 0;
11434 if (sizeof (ac__type_new_))
11435   return 0;
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_compile") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } && {
11454          test -z "$ac_c_werror_flag" ||
11455          test ! -s conftest.err
11456        } && test -s conftest.$ac_objext; then
11457   ac_cv_type_ptrdiff_t=yes
11458 else
11459   echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11461
11462         ac_cv_type_ptrdiff_t=no
11463 fi
11464
11465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11466 fi
11467 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11468 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11469 if test $ac_cv_type_ptrdiff_t = yes; then
11470   :
11471 else
11472
11473 cat >>confdefs.h <<\_ACEOF
11474 #define ptrdiff_t long
11475 _ACEOF
11476
11477
11478 fi
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11491 stdlib.h string.h unistd.h sys/param.h
11492 do
11493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11498   echo $ECHO_N "(cached) $ECHO_C" >&6
11499 fi
11500 ac_res=`eval echo '${'$as_ac_Header'}'`
11501                { echo "$as_me:$LINENO: result: $ac_res" >&5
11502 echo "${ECHO_T}$ac_res" >&6; }
11503 else
11504   # Is the header compilable?
11505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11507 cat >conftest.$ac_ext <<_ACEOF
11508 /* confdefs.h.  */
11509 _ACEOF
11510 cat confdefs.h >>conftest.$ac_ext
11511 cat >>conftest.$ac_ext <<_ACEOF
11512 /* end confdefs.h.  */
11513 $ac_includes_default
11514 #include <$ac_header>
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          test -z "$ac_c_werror_flag" ||
11531          test ! -s conftest.err
11532        } && test -s conftest.$ac_objext; then
11533   ac_header_compiler=yes
11534 else
11535   echo "$as_me: failed program was:" >&5
11536 sed 's/^/| /' conftest.$ac_ext >&5
11537
11538         ac_header_compiler=no
11539 fi
11540
11541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11543 echo "${ECHO_T}$ac_header_compiler" >&6; }
11544
11545 # Is the header present?
11546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11548 cat >conftest.$ac_ext <<_ACEOF
11549 /* confdefs.h.  */
11550 _ACEOF
11551 cat confdefs.h >>conftest.$ac_ext
11552 cat >>conftest.$ac_ext <<_ACEOF
11553 /* end confdefs.h.  */
11554 #include <$ac_header>
11555 _ACEOF
11556 if { (ac_try="$ac_cpp conftest.$ac_ext"
11557 case "(($ac_try" in
11558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11559   *) ac_try_echo=$ac_try;;
11560 esac
11561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11563   ac_status=$?
11564   grep -v '^ *+' conftest.er1 >conftest.err
11565   rm -f conftest.er1
11566   cat conftest.err >&5
11567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568   (exit $ac_status); } >/dev/null && {
11569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11570          test ! -s conftest.err
11571        }; then
11572   ac_header_preproc=yes
11573 else
11574   echo "$as_me: failed program was:" >&5
11575 sed 's/^/| /' conftest.$ac_ext >&5
11576
11577   ac_header_preproc=no
11578 fi
11579
11580 rm -f conftest.err conftest.$ac_ext
11581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11582 echo "${ECHO_T}$ac_header_preproc" >&6; }
11583
11584 # So?  What about this header?
11585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11586   yes:no: )
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11591     ac_header_preproc=yes
11592     ;;
11593   no:yes:* )
11594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11606
11607     ;;
11608 esac
11609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11612   echo $ECHO_N "(cached) $ECHO_C" >&6
11613 else
11614   eval "$as_ac_Header=\$ac_header_preproc"
11615 fi
11616 ac_res=`eval echo '${'$as_ac_Header'}'`
11617                { echo "$as_me:$LINENO: result: $ac_res" >&5
11618 echo "${ECHO_T}$ac_res" >&6; }
11619
11620 fi
11621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11622   cat >>confdefs.h <<_ACEOF
11623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11624 _ACEOF
11625
11626 fi
11627
11628 done
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11654 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11655 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11656 __fsetlocking
11657 do
11658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11659 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11660 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11662   echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664   cat >conftest.$ac_ext <<_ACEOF
11665 /* confdefs.h.  */
11666 _ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h.  */
11670 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11671    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11672 #define $ac_func innocuous_$ac_func
11673
11674 /* System header to define __stub macros and hopefully few prototypes,
11675     which can conflict with char $ac_func (); below.
11676     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11677     <limits.h> exists even on freestanding compilers.  */
11678
11679 #ifdef __STDC__
11680 # include <limits.h>
11681 #else
11682 # include <assert.h>
11683 #endif
11684
11685 #undef $ac_func
11686
11687 /* Override any GCC internal prototype to avoid an error.
11688    Use char because int might match the return type of a GCC
11689    builtin and then its argument prototype would still apply.  */
11690 #ifdef __cplusplus
11691 extern "C"
11692 #endif
11693 char $ac_func ();
11694 /* The GNU C library defines this for functions which it implements
11695     to always fail with ENOSYS.  Some functions are actually named
11696     something starting with __ and the normal name is an alias.  */
11697 #if defined __stub_$ac_func || defined __stub___$ac_func
11698 choke me
11699 #endif
11700
11701 int
11702 main ()
11703 {
11704 return $ac_func ();
11705   ;
11706   return 0;
11707 }
11708 _ACEOF
11709 rm -f conftest.$ac_objext conftest$ac_exeext
11710 if { (ac_try="$ac_link"
11711 case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_link") 2>conftest.er1
11717   ac_status=$?
11718   grep -v '^ *+' conftest.er1 >conftest.err
11719   rm -f conftest.er1
11720   cat conftest.err >&5
11721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722   (exit $ac_status); } && {
11723          test -z "$ac_c_werror_flag" ||
11724          test ! -s conftest.err
11725        } && test -s conftest$ac_exeext &&
11726        $as_test_x conftest$ac_exeext; then
11727   eval "$as_ac_var=yes"
11728 else
11729   echo "$as_me: failed program was:" >&5
11730 sed 's/^/| /' conftest.$ac_ext >&5
11731
11732         eval "$as_ac_var=no"
11733 fi
11734
11735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11736       conftest$ac_exeext conftest.$ac_ext
11737 fi
11738 ac_res=`eval echo '${'$as_ac_var'}'`
11739                { echo "$as_me:$LINENO: result: $ac_res" >&5
11740 echo "${ECHO_T}$ac_res" >&6; }
11741 if test `eval echo '${'$as_ac_var'}'` = yes; then
11742   cat >>confdefs.h <<_ACEOF
11743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 _ACEOF
11745
11746 fi
11747 done
11748
11749
11750
11751   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11752 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11753 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11754   echo $ECHO_N "(cached) $ECHO_C" >&6
11755 else
11756   cat >conftest.$ac_ext <<_ACEOF
11757 /* confdefs.h.  */
11758 _ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h.  */
11762 #include <stdio.h>
11763 int
11764 main ()
11765 {
11766
11767 #ifndef _snprintf
11768   char *p = (char *) _snprintf;
11769 #endif
11770
11771   ;
11772   return 0;
11773 }
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779   *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782   (eval "$ac_compile") 2>conftest.er1
11783   ac_status=$?
11784   grep -v '^ *+' conftest.er1 >conftest.err
11785   rm -f conftest.er1
11786   cat conftest.err >&5
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); } && {
11789          test -z "$ac_c_werror_flag" ||
11790          test ! -s conftest.err
11791        } && test -s conftest.$ac_objext; then
11792   ac_cv_have_decl__snprintf=yes
11793 else
11794   echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797         ac_cv_have_decl__snprintf=no
11798 fi
11799
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 fi
11802 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11803 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11804   if test $ac_cv_have_decl__snprintf = yes; then
11805     gt_value=1
11806   else
11807     gt_value=0
11808   fi
11809
11810 cat >>confdefs.h <<_ACEOF
11811 #define HAVE_DECL__SNPRINTF $gt_value
11812 _ACEOF
11813
11814
11815
11816   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11817 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11818 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11819   echo $ECHO_N "(cached) $ECHO_C" >&6
11820 else
11821   cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h.  */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h.  */
11827 #include <stdio.h>
11828 int
11829 main ()
11830 {
11831
11832 #ifndef _snwprintf
11833   char *p = (char *) _snwprintf;
11834 #endif
11835
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_compile") 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } && {
11854          test -z "$ac_c_werror_flag" ||
11855          test ! -s conftest.err
11856        } && test -s conftest.$ac_objext; then
11857   ac_cv_have_decl__snwprintf=yes
11858 else
11859   echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.$ac_ext >&5
11861
11862         ac_cv_have_decl__snwprintf=no
11863 fi
11864
11865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11866 fi
11867 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11868 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11869   if test $ac_cv_have_decl__snwprintf = yes; then
11870     gt_value=1
11871   else
11872     gt_value=0
11873   fi
11874
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_DECL__SNWPRINTF $gt_value
11877 _ACEOF
11878
11879
11880
11881
11882   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11883 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11884 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11885   echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887   cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h.  */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h.  */
11893 #include <stdio.h>
11894 int
11895 main ()
11896 {
11897
11898 #ifndef feof_unlocked
11899   char *p = (char *) feof_unlocked;
11900 #endif
11901
11902   ;
11903   return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext
11907 if { (ac_try="$ac_compile"
11908 case "(($ac_try" in
11909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910   *) ac_try_echo=$ac_try;;
11911 esac
11912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11913   (eval "$ac_compile") 2>conftest.er1
11914   ac_status=$?
11915   grep -v '^ *+' conftest.er1 >conftest.err
11916   rm -f conftest.er1
11917   cat conftest.err >&5
11918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919   (exit $ac_status); } && {
11920          test -z "$ac_c_werror_flag" ||
11921          test ! -s conftest.err
11922        } && test -s conftest.$ac_objext; then
11923   ac_cv_have_decl_feof_unlocked=yes
11924 else
11925   echo "$as_me: failed program was:" >&5
11926 sed 's/^/| /' conftest.$ac_ext >&5
11927
11928         ac_cv_have_decl_feof_unlocked=no
11929 fi
11930
11931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11932 fi
11933 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11934 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11935   if test $ac_cv_have_decl_feof_unlocked = yes; then
11936     gt_value=1
11937   else
11938     gt_value=0
11939   fi
11940
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11943 _ACEOF
11944
11945
11946
11947   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11948 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11949 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11950   echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952   cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 #include <stdio.h>
11959 int
11960 main ()
11961 {
11962
11963 #ifndef fgets_unlocked
11964   char *p = (char *) fgets_unlocked;
11965 #endif
11966
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11975   *) ac_try_echo=$ac_try;;
11976 esac
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978   (eval "$ac_compile") 2>conftest.er1
11979   ac_status=$?
11980   grep -v '^ *+' conftest.er1 >conftest.err
11981   rm -f conftest.er1
11982   cat conftest.err >&5
11983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984   (exit $ac_status); } && {
11985          test -z "$ac_c_werror_flag" ||
11986          test ! -s conftest.err
11987        } && test -s conftest.$ac_objext; then
11988   ac_cv_have_decl_fgets_unlocked=yes
11989 else
11990   echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11992
11993         ac_cv_have_decl_fgets_unlocked=no
11994 fi
11995
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 fi
11998 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11999 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12000   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12001     gt_value=1
12002   else
12003     gt_value=0
12004   fi
12005
12006 cat >>confdefs.h <<_ACEOF
12007 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12008 _ACEOF
12009
12010
12011
12012   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12013 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12014 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12015   echo $ECHO_N "(cached) $ECHO_C" >&6
12016 else
12017   cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h.  */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h.  */
12023 #include <stdio.h>
12024 int
12025 main ()
12026 {
12027
12028 #ifndef getc_unlocked
12029   char *p = (char *) getc_unlocked;
12030 #endif
12031
12032   ;
12033   return 0;
12034 }
12035 _ACEOF
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040   *) ac_try_echo=$ac_try;;
12041 esac
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043   (eval "$ac_compile") 2>conftest.er1
12044   ac_status=$?
12045   grep -v '^ *+' conftest.er1 >conftest.err
12046   rm -f conftest.er1
12047   cat conftest.err >&5
12048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049   (exit $ac_status); } && {
12050          test -z "$ac_c_werror_flag" ||
12051          test ! -s conftest.err
12052        } && test -s conftest.$ac_objext; then
12053   ac_cv_have_decl_getc_unlocked=yes
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058         ac_cv_have_decl_getc_unlocked=no
12059 fi
12060
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12062 fi
12063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12064 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12065   if test $ac_cv_have_decl_getc_unlocked = yes; then
12066     gt_value=1
12067   else
12068     gt_value=0
12069   fi
12070
12071 cat >>confdefs.h <<_ACEOF
12072 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12073 _ACEOF
12074
12075
12076
12077   case $gt_cv_func_printf_posix in
12078     *yes) HAVE_POSIX_PRINTF=1 ;;
12079     *) HAVE_POSIX_PRINTF=0 ;;
12080   esac
12081
12082   if test "$ac_cv_func_asprintf" = yes; then
12083     HAVE_ASPRINTF=1
12084   else
12085     HAVE_ASPRINTF=0
12086   fi
12087
12088   if test "$ac_cv_func_snprintf" = yes; then
12089     HAVE_SNPRINTF=1
12090   else
12091     HAVE_SNPRINTF=0
12092   fi
12093
12094   if test "$ac_cv_func_wprintf" = yes; then
12095     HAVE_WPRINTF=1
12096   else
12097     HAVE_WPRINTF=0
12098   fi
12099
12100
12101
12102
12103
12104
12105
12106           am_save_CPPFLAGS="$CPPFLAGS"
12107
12108   for element in $INCICONV; do
12109     haveit=
12110     for x in $CPPFLAGS; do
12111
12112   acl_save_prefix="$prefix"
12113   prefix="$acl_final_prefix"
12114   acl_save_exec_prefix="$exec_prefix"
12115   exec_prefix="$acl_final_exec_prefix"
12116   eval x=\"$x\"
12117   exec_prefix="$acl_save_exec_prefix"
12118   prefix="$acl_save_prefix"
12119
12120       if test "X$x" = "X$element"; then
12121         haveit=yes
12122         break
12123       fi
12124     done
12125     if test -z "$haveit"; then
12126       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12127     fi
12128   done
12129
12130
12131   { echo "$as_me:$LINENO: checking for iconv" >&5
12132 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12133 if test "${am_cv_func_iconv+set}" = set; then
12134   echo $ECHO_N "(cached) $ECHO_C" >&6
12135 else
12136
12137     am_cv_func_iconv="no, consider installing GNU libiconv"
12138     am_cv_lib_iconv=no
12139     cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h.  */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h.  */
12145 #include <stdlib.h>
12146 #include <iconv.h>
12147 int
12148 main ()
12149 {
12150 iconv_t cd = iconv_open("","");
12151        iconv(cd,NULL,NULL,NULL,NULL);
12152        iconv_close(cd);
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 rm -f conftest.$ac_objext conftest$ac_exeext
12158 if { (ac_try="$ac_link"
12159 case "(($ac_try" in
12160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161   *) ac_try_echo=$ac_try;;
12162 esac
12163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12164   (eval "$ac_link") 2>conftest.er1
12165   ac_status=$?
12166   grep -v '^ *+' conftest.er1 >conftest.err
12167   rm -f conftest.er1
12168   cat conftest.err >&5
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } && {
12171          test -z "$ac_c_werror_flag" ||
12172          test ! -s conftest.err
12173        } && test -s conftest$ac_exeext &&
12174        $as_test_x conftest$ac_exeext; then
12175   am_cv_func_iconv=yes
12176 else
12177   echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12179
12180
12181 fi
12182
12183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12184       conftest$ac_exeext conftest.$ac_ext
12185     if test "$am_cv_func_iconv" != yes; then
12186       am_save_LIBS="$LIBS"
12187       LIBS="$LIBS $LIBICONV"
12188       cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h.  */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h.  */
12194 #include <stdlib.h>
12195 #include <iconv.h>
12196 int
12197 main ()
12198 {
12199 iconv_t cd = iconv_open("","");
12200          iconv(cd,NULL,NULL,NULL,NULL);
12201          iconv_close(cd);
12202   ;
12203   return 0;
12204 }
12205 _ACEOF
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210   *) ac_try_echo=$ac_try;;
12211 esac
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213   (eval "$ac_link") 2>conftest.er1
12214   ac_status=$?
12215   grep -v '^ *+' conftest.er1 >conftest.err
12216   rm -f conftest.er1
12217   cat conftest.err >&5
12218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219   (exit $ac_status); } && {
12220          test -z "$ac_c_werror_flag" ||
12221          test ! -s conftest.err
12222        } && test -s conftest$ac_exeext &&
12223        $as_test_x conftest$ac_exeext; then
12224   am_cv_lib_iconv=yes
12225         am_cv_func_iconv=yes
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230
12231 fi
12232
12233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12234       conftest$ac_exeext conftest.$ac_ext
12235       LIBS="$am_save_LIBS"
12236     fi
12237
12238 fi
12239 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12240 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12241   if test "$am_cv_func_iconv" = yes; then
12242
12243 cat >>confdefs.h <<\_ACEOF
12244 #define HAVE_ICONV 1
12245 _ACEOF
12246
12247   fi
12248   if test "$am_cv_lib_iconv" = yes; then
12249     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12250 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12251     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12252 echo "${ECHO_T}$LIBICONV" >&6; }
12253   else
12254             CPPFLAGS="$am_save_CPPFLAGS"
12255     LIBICONV=
12256     LTLIBICONV=
12257   fi
12258
12259
12260
12261   if test "$am_cv_func_iconv" = yes; then
12262     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12263 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12264     if test "${am_cv_proto_iconv+set}" = set; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267
12268       cat >conftest.$ac_ext <<_ACEOF
12269 /* confdefs.h.  */
12270 _ACEOF
12271 cat confdefs.h >>conftest.$ac_ext
12272 cat >>conftest.$ac_ext <<_ACEOF
12273 /* end confdefs.h.  */
12274
12275 #include <stdlib.h>
12276 #include <iconv.h>
12277 extern
12278 #ifdef __cplusplus
12279 "C"
12280 #endif
12281 #if defined(__STDC__) || defined(__cplusplus)
12282 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12283 #else
12284 size_t iconv();
12285 #endif
12286
12287 int
12288 main ()
12289 {
12290
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 rm -f conftest.$ac_objext
12296 if { (ac_try="$ac_compile"
12297 case "(($ac_try" in
12298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299   *) ac_try_echo=$ac_try;;
12300 esac
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302   (eval "$ac_compile") 2>conftest.er1
12303   ac_status=$?
12304   grep -v '^ *+' conftest.er1 >conftest.err
12305   rm -f conftest.er1
12306   cat conftest.err >&5
12307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308   (exit $ac_status); } && {
12309          test -z "$ac_c_werror_flag" ||
12310          test ! -s conftest.err
12311        } && test -s conftest.$ac_objext; then
12312   am_cv_proto_iconv_arg1=""
12313 else
12314   echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317         am_cv_proto_iconv_arg1="const"
12318 fi
12319
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321       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);"
12322 fi
12323
12324     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12325     { echo "$as_me:$LINENO: result: ${ac_t:-
12326          }$am_cv_proto_iconv" >&5
12327 echo "${ECHO_T}${ac_t:-
12328          }$am_cv_proto_iconv" >&6; }
12329
12330 cat >>confdefs.h <<_ACEOF
12331 #define ICONV_CONST $am_cv_proto_iconv_arg1
12332 _ACEOF
12333
12334   fi
12335
12336
12337   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12338 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12339 if test "${am_cv_langinfo_codeset+set}" = set; then
12340   echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12342   cat >conftest.$ac_ext <<_ACEOF
12343 /* confdefs.h.  */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h.  */
12348 #include <langinfo.h>
12349 int
12350 main ()
12351 {
12352 char* cs = nl_langinfo(CODESET);
12353   ;
12354   return 0;
12355 }
12356 _ACEOF
12357 rm -f conftest.$ac_objext conftest$ac_exeext
12358 if { (ac_try="$ac_link"
12359 case "(($ac_try" in
12360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361   *) ac_try_echo=$ac_try;;
12362 esac
12363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364   (eval "$ac_link") 2>conftest.er1
12365   ac_status=$?
12366   grep -v '^ *+' conftest.er1 >conftest.err
12367   rm -f conftest.er1
12368   cat conftest.err >&5
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); } && {
12371          test -z "$ac_c_werror_flag" ||
12372          test ! -s conftest.err
12373        } && test -s conftest$ac_exeext &&
12374        $as_test_x conftest$ac_exeext; then
12375   am_cv_langinfo_codeset=yes
12376 else
12377   echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380         am_cv_langinfo_codeset=no
12381 fi
12382
12383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12384       conftest$ac_exeext conftest.$ac_ext
12385
12386 fi
12387 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12388 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12389   if test $am_cv_langinfo_codeset = yes; then
12390
12391 cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_LANGINFO_CODESET 1
12393 _ACEOF
12394
12395   fi
12396
12397   if test $ac_cv_header_locale_h = yes; then
12398
12399   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12400 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12401 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12402   echo $ECHO_N "(cached) $ECHO_C" >&6
12403 else
12404   cat >conftest.$ac_ext <<_ACEOF
12405 /* confdefs.h.  */
12406 _ACEOF
12407 cat confdefs.h >>conftest.$ac_ext
12408 cat >>conftest.$ac_ext <<_ACEOF
12409 /* end confdefs.h.  */
12410 #include <locale.h>
12411 int
12412 main ()
12413 {
12414 return LC_MESSAGES
12415   ;
12416   return 0;
12417 }
12418 _ACEOF
12419 rm -f conftest.$ac_objext conftest$ac_exeext
12420 if { (ac_try="$ac_link"
12421 case "(($ac_try" in
12422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12423   *) ac_try_echo=$ac_try;;
12424 esac
12425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12426   (eval "$ac_link") 2>conftest.er1
12427   ac_status=$?
12428   grep -v '^ *+' conftest.er1 >conftest.err
12429   rm -f conftest.er1
12430   cat conftest.err >&5
12431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432   (exit $ac_status); } && {
12433          test -z "$ac_c_werror_flag" ||
12434          test ! -s conftest.err
12435        } && test -s conftest$ac_exeext &&
12436        $as_test_x conftest$ac_exeext; then
12437   gt_cv_val_LC_MESSAGES=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442         gt_cv_val_LC_MESSAGES=no
12443 fi
12444
12445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12446       conftest$ac_exeext conftest.$ac_ext
12447 fi
12448 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12449 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12450   if test $gt_cv_val_LC_MESSAGES = yes; then
12451
12452 cat >>confdefs.h <<\_ACEOF
12453 #define HAVE_LC_MESSAGES 1
12454 _ACEOF
12455
12456   fi
12457
12458   fi
12459
12460   if test -n "$INTL_MACOSX_LIBS"; then
12461     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12462   fi
12463
12464                       for ac_prog in bison
12465 do
12466   # Extract the first word of "$ac_prog", so it can be a program name with args.
12467 set dummy $ac_prog; ac_word=$2
12468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12470 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   if test -n "$INTLBISON"; then
12474   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12475 else
12476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481   for ac_exec_ext in '' $ac_executable_extensions; do
12482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483     ac_cv_prog_INTLBISON="$ac_prog"
12484     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488 done
12489 IFS=$as_save_IFS
12490
12491 fi
12492 fi
12493 INTLBISON=$ac_cv_prog_INTLBISON
12494 if test -n "$INTLBISON"; then
12495   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12496 echo "${ECHO_T}$INTLBISON" >&6; }
12497 else
12498   { echo "$as_me:$LINENO: result: no" >&5
12499 echo "${ECHO_T}no" >&6; }
12500 fi
12501
12502
12503   test -n "$INTLBISON" && break
12504 done
12505
12506   if test -z "$INTLBISON"; then
12507     ac_verc_fail=yes
12508   else
12509         { echo "$as_me:$LINENO: checking version of bison" >&5
12510 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12511     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12512     case $ac_prog_version in
12513       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12514       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12515          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12516       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12517     esac
12518     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12519 echo "${ECHO_T}$ac_prog_version" >&6; }
12520   fi
12521   if test $ac_verc_fail = yes; then
12522     INTLBISON=:
12523   fi
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12541 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12542 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12543   echo $ECHO_N "(cached) $ECHO_C" >&6
12544 else
12545   gt_save_CPPFLAGS="$CPPFLAGS"
12546      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12547      gt_save_LIBS="$LIBS"
12548      LIBS="$LIBS -framework CoreFoundation"
12549      cat >conftest.$ac_ext <<_ACEOF
12550 /* confdefs.h.  */
12551 _ACEOF
12552 cat confdefs.h >>conftest.$ac_ext
12553 cat >>conftest.$ac_ext <<_ACEOF
12554 /* end confdefs.h.  */
12555 #include <CFPreferences.h>
12556 int
12557 main ()
12558 {
12559 CFPreferencesCopyAppValue(NULL, NULL)
12560   ;
12561   return 0;
12562 }
12563 _ACEOF
12564 rm -f conftest.$ac_objext conftest$ac_exeext
12565 if { (ac_try="$ac_link"
12566 case "(($ac_try" in
12567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12568   *) ac_try_echo=$ac_try;;
12569 esac
12570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12571   (eval "$ac_link") 2>conftest.er1
12572   ac_status=$?
12573   grep -v '^ *+' conftest.er1 >conftest.err
12574   rm -f conftest.er1
12575   cat conftest.err >&5
12576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577   (exit $ac_status); } && {
12578          test -z "$ac_c_werror_flag" ||
12579          test ! -s conftest.err
12580        } && test -s conftest$ac_exeext &&
12581        $as_test_x conftest$ac_exeext; then
12582   gt_cv_func_CFPreferencesCopyAppValue=yes
12583 else
12584   echo "$as_me: failed program was:" >&5
12585 sed 's/^/| /' conftest.$ac_ext >&5
12586
12587         gt_cv_func_CFPreferencesCopyAppValue=no
12588 fi
12589
12590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12591       conftest$ac_exeext conftest.$ac_ext
12592      CPPFLAGS="$gt_save_CPPFLAGS"
12593      LIBS="$gt_save_LIBS"
12594 fi
12595 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12596 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12597   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12598
12599 cat >>confdefs.h <<\_ACEOF
12600 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12601 _ACEOF
12602
12603   fi
12604     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12605 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12606 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12607   echo $ECHO_N "(cached) $ECHO_C" >&6
12608 else
12609   gt_save_CPPFLAGS="$CPPFLAGS"
12610      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12611      gt_save_LIBS="$LIBS"
12612      LIBS="$LIBS -framework CoreFoundation"
12613      cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 #include <CFLocale.h>
12620 int
12621 main ()
12622 {
12623 CFLocaleCopyCurrent();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 rm -f conftest.$ac_objext conftest$ac_exeext
12629 if { (ac_try="$ac_link"
12630 case "(($ac_try" in
12631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12632   *) ac_try_echo=$ac_try;;
12633 esac
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635   (eval "$ac_link") 2>conftest.er1
12636   ac_status=$?
12637   grep -v '^ *+' conftest.er1 >conftest.err
12638   rm -f conftest.er1
12639   cat conftest.err >&5
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } && {
12642          test -z "$ac_c_werror_flag" ||
12643          test ! -s conftest.err
12644        } && test -s conftest$ac_exeext &&
12645        $as_test_x conftest$ac_exeext; then
12646   gt_cv_func_CFLocaleCopyCurrent=yes
12647 else
12648   echo "$as_me: failed program was:" >&5
12649 sed 's/^/| /' conftest.$ac_ext >&5
12650
12651         gt_cv_func_CFLocaleCopyCurrent=no
12652 fi
12653
12654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12655       conftest$ac_exeext conftest.$ac_ext
12656      CPPFLAGS="$gt_save_CPPFLAGS"
12657      LIBS="$gt_save_LIBS"
12658 fi
12659 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12660 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12661   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12662
12663 cat >>confdefs.h <<\_ACEOF
12664 #define HAVE_CFLOCALECOPYCURRENT 1
12665 _ACEOF
12666
12667   fi
12668   INTL_MACOSX_LIBS=
12669   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12670     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12671   fi
12672
12673
12674
12675
12676   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12677 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12678     # Check whether --enable-nls was given.
12679 if test "${enable_nls+set}" = set; then
12680   enableval=$enable_nls; USE_NLS=$enableval
12681 else
12682   USE_NLS=yes
12683 fi
12684
12685   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12686 echo "${ECHO_T}$USE_NLS" >&6; }
12687
12688
12689
12690
12691     BUILD_INCLUDED_LIBINTL=no
12692     USE_INCLUDED_LIBINTL=no
12693
12694   LIBINTL=
12695   LTLIBINTL=
12696   POSUB=
12697
12698     if test "$USE_NLS" = "yes"; then
12699     gt_use_preinstalled_gnugettext=no
12700
12701       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12702 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12703
12704 # Check whether --with-included-gettext was given.
12705 if test "${with_included_gettext+set}" = set; then
12706   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12707 else
12708   nls_cv_force_use_gnu_gettext=no
12709 fi
12710
12711       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12712 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12713
12714       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12715       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12716
12717
12718
12719
12720
12721
12722         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12723 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12724 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12725   echo $ECHO_N "(cached) $ECHO_C" >&6
12726 else
12727   cat >conftest.$ac_ext <<_ACEOF
12728 /* confdefs.h.  */
12729 _ACEOF
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h.  */
12733 #include <libintl.h>
12734 extern int _nl_msg_cat_cntr;
12735 extern int *_nl_domain_bindings;
12736 int
12737 main ()
12738 {
12739 bindtextdomain ("", "");
12740 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12741   ;
12742   return 0;
12743 }
12744 _ACEOF
12745 rm -f conftest.$ac_objext conftest$ac_exeext
12746 if { (ac_try="$ac_link"
12747 case "(($ac_try" in
12748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749   *) ac_try_echo=$ac_try;;
12750 esac
12751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12752   (eval "$ac_link") 2>conftest.er1
12753   ac_status=$?
12754   grep -v '^ *+' conftest.er1 >conftest.err
12755   rm -f conftest.er1
12756   cat conftest.err >&5
12757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758   (exit $ac_status); } && {
12759          test -z "$ac_c_werror_flag" ||
12760          test ! -s conftest.err
12761        } && test -s conftest$ac_exeext &&
12762        $as_test_x conftest$ac_exeext; then
12763   gt_cv_func_gnugettext1_libc=yes
12764 else
12765   echo "$as_me: failed program was:" >&5
12766 sed 's/^/| /' conftest.$ac_ext >&5
12767
12768         gt_cv_func_gnugettext1_libc=no
12769 fi
12770
12771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12772       conftest$ac_exeext conftest.$ac_ext
12773 fi
12774 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12775 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12776
12777         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12778
12779
12780
12781     use_additional=yes
12782
12783   acl_save_prefix="$prefix"
12784   prefix="$acl_final_prefix"
12785   acl_save_exec_prefix="$exec_prefix"
12786   exec_prefix="$acl_final_exec_prefix"
12787
12788     eval additional_includedir=\"$includedir\"
12789     eval additional_libdir=\"$libdir\"
12790
12791   exec_prefix="$acl_save_exec_prefix"
12792   prefix="$acl_save_prefix"
12793
12794
12795 # Check whether --with-libintl-prefix was given.
12796 if test "${with_libintl_prefix+set}" = set; then
12797   withval=$with_libintl_prefix;
12798     if test "X$withval" = "Xno"; then
12799       use_additional=no
12800     else
12801       if test "X$withval" = "X"; then
12802
12803   acl_save_prefix="$prefix"
12804   prefix="$acl_final_prefix"
12805   acl_save_exec_prefix="$exec_prefix"
12806   exec_prefix="$acl_final_exec_prefix"
12807
12808           eval additional_includedir=\"$includedir\"
12809           eval additional_libdir=\"$libdir\"
12810
12811   exec_prefix="$acl_save_exec_prefix"
12812   prefix="$acl_save_prefix"
12813
12814       else
12815         additional_includedir="$withval/include"
12816         additional_libdir="$withval/lib"
12817       fi
12818     fi
12819
12820 fi
12821
12822       LIBINTL=
12823   LTLIBINTL=
12824   INCINTL=
12825   rpathdirs=
12826   ltrpathdirs=
12827   names_already_handled=
12828   names_next_round='intl '
12829   while test -n "$names_next_round"; do
12830     names_this_round="$names_next_round"
12831     names_next_round=
12832     for name in $names_this_round; do
12833       already_handled=
12834       for n in $names_already_handled; do
12835         if test "$n" = "$name"; then
12836           already_handled=yes
12837           break
12838         fi
12839       done
12840       if test -z "$already_handled"; then
12841         names_already_handled="$names_already_handled $name"
12842                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12843         eval value=\"\$HAVE_LIB$uppername\"
12844         if test -n "$value"; then
12845           if test "$value" = yes; then
12846             eval value=\"\$LIB$uppername\"
12847             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12848             eval value=\"\$LTLIB$uppername\"
12849             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12850           else
12851                                     :
12852           fi
12853         else
12854                               found_dir=
12855           found_la=
12856           found_so=
12857           found_a=
12858           if test $use_additional = yes; then
12859             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12860               found_dir="$additional_libdir"
12861               found_so="$additional_libdir/lib$name.$shlibext"
12862               if test -f "$additional_libdir/lib$name.la"; then
12863                 found_la="$additional_libdir/lib$name.la"
12864               fi
12865             else
12866               if test -f "$additional_libdir/lib$name.$libext"; then
12867                 found_dir="$additional_libdir"
12868                 found_a="$additional_libdir/lib$name.$libext"
12869                 if test -f "$additional_libdir/lib$name.la"; then
12870                   found_la="$additional_libdir/lib$name.la"
12871                 fi
12872               fi
12873             fi
12874           fi
12875           if test "X$found_dir" = "X"; then
12876             for x in $LDFLAGS $LTLIBINTL; do
12877
12878   acl_save_prefix="$prefix"
12879   prefix="$acl_final_prefix"
12880   acl_save_exec_prefix="$exec_prefix"
12881   exec_prefix="$acl_final_exec_prefix"
12882   eval x=\"$x\"
12883   exec_prefix="$acl_save_exec_prefix"
12884   prefix="$acl_save_prefix"
12885
12886               case "$x" in
12887                 -L*)
12888                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12889                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12890                     found_dir="$dir"
12891                     found_so="$dir/lib$name.$shlibext"
12892                     if test -f "$dir/lib$name.la"; then
12893                       found_la="$dir/lib$name.la"
12894                     fi
12895                   else
12896                     if test -f "$dir/lib$name.$libext"; then
12897                       found_dir="$dir"
12898                       found_a="$dir/lib$name.$libext"
12899                       if test -f "$dir/lib$name.la"; then
12900                         found_la="$dir/lib$name.la"
12901                       fi
12902                     fi
12903                   fi
12904                   ;;
12905               esac
12906               if test "X$found_dir" != "X"; then
12907                 break
12908               fi
12909             done
12910           fi
12911           if test "X$found_dir" != "X"; then
12912                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12913             if test "X$found_so" != "X"; then
12914                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12915                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12916               else
12917                                                                                 haveit=
12918                 for x in $ltrpathdirs; do
12919                   if test "X$x" = "X$found_dir"; then
12920                     haveit=yes
12921                     break
12922                   fi
12923                 done
12924                 if test -z "$haveit"; then
12925                   ltrpathdirs="$ltrpathdirs $found_dir"
12926                 fi
12927                                 if test "$hardcode_direct" = yes; then
12928                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12929                 else
12930                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12931                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12932                                                             haveit=
12933                     for x in $rpathdirs; do
12934                       if test "X$x" = "X$found_dir"; then
12935                         haveit=yes
12936                         break
12937                       fi
12938                     done
12939                     if test -z "$haveit"; then
12940                       rpathdirs="$rpathdirs $found_dir"
12941                     fi
12942                   else
12943                                                                                 haveit=
12944                     for x in $LDFLAGS $LIBINTL; do
12945
12946   acl_save_prefix="$prefix"
12947   prefix="$acl_final_prefix"
12948   acl_save_exec_prefix="$exec_prefix"
12949   exec_prefix="$acl_final_exec_prefix"
12950   eval x=\"$x\"
12951   exec_prefix="$acl_save_exec_prefix"
12952   prefix="$acl_save_prefix"
12953
12954                       if test "X$x" = "X-L$found_dir"; then
12955                         haveit=yes
12956                         break
12957                       fi
12958                     done
12959                     if test -z "$haveit"; then
12960                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12961                     fi
12962                     if test "$hardcode_minus_L" != no; then
12963                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12964                     else
12965                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12966                     fi
12967                   fi
12968                 fi
12969               fi
12970             else
12971               if test "X$found_a" != "X"; then
12972                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12973               else
12974                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12975               fi
12976             fi
12977                         additional_includedir=
12978             case "$found_dir" in
12979               */lib | */lib/)
12980                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12981                 additional_includedir="$basedir/include"
12982                 ;;
12983             esac
12984             if test "X$additional_includedir" != "X"; then
12985                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12986                 haveit=
12987                 if test "X$additional_includedir" = "X/usr/local/include"; then
12988                   if test -n "$GCC"; then
12989                     case $host_os in
12990                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12991                     esac
12992                   fi
12993                 fi
12994                 if test -z "$haveit"; then
12995                   for x in $CPPFLAGS $INCINTL; do
12996
12997   acl_save_prefix="$prefix"
12998   prefix="$acl_final_prefix"
12999   acl_save_exec_prefix="$exec_prefix"
13000   exec_prefix="$acl_final_exec_prefix"
13001   eval x=\"$x\"
13002   exec_prefix="$acl_save_exec_prefix"
13003   prefix="$acl_save_prefix"
13004
13005                     if test "X$x" = "X-I$additional_includedir"; then
13006                       haveit=yes
13007                       break
13008                     fi
13009                   done
13010                   if test -z "$haveit"; then
13011                     if test -d "$additional_includedir"; then
13012                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13013                     fi
13014                   fi
13015                 fi
13016               fi
13017             fi
13018                         if test -n "$found_la"; then
13019                                                         save_libdir="$libdir"
13020               case "$found_la" in
13021                 */* | *\\*) . "$found_la" ;;
13022                 *) . "./$found_la" ;;
13023               esac
13024               libdir="$save_libdir"
13025                             for dep in $dependency_libs; do
13026                 case "$dep" in
13027                   -L*)
13028                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13029                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13030                       haveit=
13031                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13032                         if test -n "$GCC"; then
13033                           case $host_os in
13034                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13035                           esac
13036                         fi
13037                       fi
13038                       if test -z "$haveit"; then
13039                         haveit=
13040                         for x in $LDFLAGS $LIBINTL; do
13041
13042   acl_save_prefix="$prefix"
13043   prefix="$acl_final_prefix"
13044   acl_save_exec_prefix="$exec_prefix"
13045   exec_prefix="$acl_final_exec_prefix"
13046   eval x=\"$x\"
13047   exec_prefix="$acl_save_exec_prefix"
13048   prefix="$acl_save_prefix"
13049
13050                           if test "X$x" = "X-L$additional_libdir"; then
13051                             haveit=yes
13052                             break
13053                           fi
13054                         done
13055                         if test -z "$haveit"; then
13056                           if test -d "$additional_libdir"; then
13057                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13058                           fi
13059                         fi
13060                         haveit=
13061                         for x in $LDFLAGS $LTLIBINTL; do
13062
13063   acl_save_prefix="$prefix"
13064   prefix="$acl_final_prefix"
13065   acl_save_exec_prefix="$exec_prefix"
13066   exec_prefix="$acl_final_exec_prefix"
13067   eval x=\"$x\"
13068   exec_prefix="$acl_save_exec_prefix"
13069   prefix="$acl_save_prefix"
13070
13071                           if test "X$x" = "X-L$additional_libdir"; then
13072                             haveit=yes
13073                             break
13074                           fi
13075                         done
13076                         if test -z "$haveit"; then
13077                           if test -d "$additional_libdir"; then
13078                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13079                           fi
13080                         fi
13081                       fi
13082                     fi
13083                     ;;
13084                   -R*)
13085                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13086                     if test "$enable_rpath" != no; then
13087                                                                   haveit=
13088                       for x in $rpathdirs; do
13089                         if test "X$x" = "X$dir"; then
13090                           haveit=yes
13091                           break
13092                         fi
13093                       done
13094                       if test -z "$haveit"; then
13095                         rpathdirs="$rpathdirs $dir"
13096                       fi
13097                                                                   haveit=
13098                       for x in $ltrpathdirs; do
13099                         if test "X$x" = "X$dir"; then
13100                           haveit=yes
13101                           break
13102                         fi
13103                       done
13104                       if test -z "$haveit"; then
13105                         ltrpathdirs="$ltrpathdirs $dir"
13106                       fi
13107                     fi
13108                     ;;
13109                   -l*)
13110                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13111                     ;;
13112                   *.la)
13113                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13114                     ;;
13115                   *)
13116                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13117                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13118                     ;;
13119                 esac
13120               done
13121             fi
13122           else
13123                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13124             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13125           fi
13126         fi
13127       fi
13128     done
13129   done
13130   if test "X$rpathdirs" != "X"; then
13131     if test -n "$hardcode_libdir_separator"; then
13132                         alldirs=
13133       for found_dir in $rpathdirs; do
13134         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13135       done
13136             acl_save_libdir="$libdir"
13137       libdir="$alldirs"
13138       eval flag=\"$hardcode_libdir_flag_spec\"
13139       libdir="$acl_save_libdir"
13140       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13141     else
13142             for found_dir in $rpathdirs; do
13143         acl_save_libdir="$libdir"
13144         libdir="$found_dir"
13145         eval flag=\"$hardcode_libdir_flag_spec\"
13146         libdir="$acl_save_libdir"
13147         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13148       done
13149     fi
13150   fi
13151   if test "X$ltrpathdirs" != "X"; then
13152             for found_dir in $ltrpathdirs; do
13153       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13154     done
13155   fi
13156
13157           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13158 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13159 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   gt_save_CPPFLAGS="$CPPFLAGS"
13163             CPPFLAGS="$CPPFLAGS $INCINTL"
13164             gt_save_LIBS="$LIBS"
13165             LIBS="$LIBS $LIBINTL"
13166                         cat >conftest.$ac_ext <<_ACEOF
13167 /* confdefs.h.  */
13168 _ACEOF
13169 cat confdefs.h >>conftest.$ac_ext
13170 cat >>conftest.$ac_ext <<_ACEOF
13171 /* end confdefs.h.  */
13172 #include <libintl.h>
13173 extern int _nl_msg_cat_cntr;
13174 extern
13175 #ifdef __cplusplus
13176 "C"
13177 #endif
13178 const char *_nl_expand_alias (const char *);
13179 int
13180 main ()
13181 {
13182 bindtextdomain ("", "");
13183 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13184   ;
13185   return 0;
13186 }
13187 _ACEOF
13188 rm -f conftest.$ac_objext conftest$ac_exeext
13189 if { (ac_try="$ac_link"
13190 case "(($ac_try" in
13191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13192   *) ac_try_echo=$ac_try;;
13193 esac
13194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13195   (eval "$ac_link") 2>conftest.er1
13196   ac_status=$?
13197   grep -v '^ *+' conftest.er1 >conftest.err
13198   rm -f conftest.er1
13199   cat conftest.err >&5
13200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13201   (exit $ac_status); } && {
13202          test -z "$ac_c_werror_flag" ||
13203          test ! -s conftest.err
13204        } && test -s conftest$ac_exeext &&
13205        $as_test_x conftest$ac_exeext; then
13206   gt_cv_func_gnugettext1_libintl=yes
13207 else
13208   echo "$as_me: failed program was:" >&5
13209 sed 's/^/| /' conftest.$ac_ext >&5
13210
13211         gt_cv_func_gnugettext1_libintl=no
13212 fi
13213
13214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13215       conftest$ac_exeext conftest.$ac_ext
13216                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13217               LIBS="$LIBS $LIBICONV"
13218               cat >conftest.$ac_ext <<_ACEOF
13219 /* confdefs.h.  */
13220 _ACEOF
13221 cat confdefs.h >>conftest.$ac_ext
13222 cat >>conftest.$ac_ext <<_ACEOF
13223 /* end confdefs.h.  */
13224 #include <libintl.h>
13225 extern int _nl_msg_cat_cntr;
13226 extern
13227 #ifdef __cplusplus
13228 "C"
13229 #endif
13230 const char *_nl_expand_alias (const char *);
13231 int
13232 main ()
13233 {
13234 bindtextdomain ("", "");
13235 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_link") 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } && {
13254          test -z "$ac_c_werror_flag" ||
13255          test ! -s conftest.err
13256        } && test -s conftest$ac_exeext &&
13257        $as_test_x conftest$ac_exeext; then
13258   LIBINTL="$LIBINTL $LIBICONV"
13259                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13260                 gt_cv_func_gnugettext1_libintl=yes
13261
13262 else
13263   echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13265
13266
13267 fi
13268
13269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13270       conftest$ac_exeext conftest.$ac_ext
13271             fi
13272             CPPFLAGS="$gt_save_CPPFLAGS"
13273             LIBS="$gt_save_LIBS"
13274 fi
13275 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13276 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13277         fi
13278
13279                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13280            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13281                 && test "$PACKAGE" != gettext-runtime \
13282                 && test "$PACKAGE" != gettext-tools; }; then
13283           gt_use_preinstalled_gnugettext=yes
13284         else
13285                     LIBINTL=
13286           LTLIBINTL=
13287           INCINTL=
13288         fi
13289
13290
13291         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13292                               nls_cv_use_gnu_gettext=yes
13293         fi
13294       fi
13295
13296       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13297                 BUILD_INCLUDED_LIBINTL=yes
13298         USE_INCLUDED_LIBINTL=yes
13299         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13300         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13301         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13302       fi
13303
13304       CATOBJEXT=
13305       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13306          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13307                 CATOBJEXT=.gmo
13308       fi
13309
13310
13311     if test -n "$INTL_MACOSX_LIBS"; then
13312       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13313          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13314                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13315         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13316       fi
13317     fi
13318
13319     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13320        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13321
13322 cat >>confdefs.h <<\_ACEOF
13323 #define ENABLE_NLS 1
13324 _ACEOF
13325
13326     else
13327       USE_NLS=no
13328     fi
13329   fi
13330
13331   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13332 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13333   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13334 echo "${ECHO_T}$USE_NLS" >&6; }
13335   if test "$USE_NLS" = "yes"; then
13336     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13337 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13338     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13339       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13340         gt_source="external libintl"
13341       else
13342         gt_source="libc"
13343       fi
13344     else
13345       gt_source="included intl directory"
13346     fi
13347     { echo "$as_me:$LINENO: result: $gt_source" >&5
13348 echo "${ECHO_T}$gt_source" >&6; }
13349   fi
13350
13351   if test "$USE_NLS" = "yes"; then
13352
13353     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13354       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13355         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13356 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13357         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13358 echo "${ECHO_T}$LIBINTL" >&6; }
13359
13360   for element in $INCINTL; do
13361     haveit=
13362     for x in $CPPFLAGS; do
13363
13364   acl_save_prefix="$prefix"
13365   prefix="$acl_final_prefix"
13366   acl_save_exec_prefix="$exec_prefix"
13367   exec_prefix="$acl_final_exec_prefix"
13368   eval x=\"$x\"
13369   exec_prefix="$acl_save_exec_prefix"
13370   prefix="$acl_save_prefix"
13371
13372       if test "X$x" = "X$element"; then
13373         haveit=yes
13374         break
13375       fi
13376     done
13377     if test -z "$haveit"; then
13378       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13379     fi
13380   done
13381
13382       fi
13383
13384
13385 cat >>confdefs.h <<\_ACEOF
13386 #define HAVE_GETTEXT 1
13387 _ACEOF
13388
13389
13390 cat >>confdefs.h <<\_ACEOF
13391 #define HAVE_DCGETTEXT 1
13392 _ACEOF
13393
13394     fi
13395
13396         POSUB=po
13397   fi
13398
13399
13400             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13401       BUILD_INCLUDED_LIBINTL=yes
13402     fi
13403
13404
13405
13406
13407
13408         nls_cv_header_intl=
13409     nls_cv_header_libgt=
13410
13411         DATADIRNAME=share
13412
13413
13414         INSTOBJEXT=.mo
13415
13416
13417         GENCAT=gencat
13418
13419
13420         INTLOBJS=
13421     if test "$USE_INCLUDED_LIBINTL" = yes; then
13422       INTLOBJS="\$(GETTOBJS)"
13423     fi
13424
13425
13426         INTL_LIBTOOL_SUFFIX_PREFIX=
13427
13428
13429
13430     INTLLIBS="$LIBINTL"
13431
13432
13433
13434
13435
13436
13437 fi
13438
13439 support_mysql=no
13440 support_sqlite=no
13441 support_sqlite3=no
13442 support_postgresql=no
13443 support_dbi=no
13444 support_smartalloc=yes
13445 support_readline=yes
13446 support_conio=yes
13447 support_gnome=no
13448 support_bat=no
13449 support_wx_console=no
13450 support_tls=no
13451 support_crypto=no
13452 gnome_version=
13453 wx_version=
13454 support_static_tools=no
13455 support_static_fd=no
13456 support_static_sd=no
13457 support_static_dir=no
13458 support_static_cons=no
13459 support_python=no
13460 build_client_only=no
13461 build_dird=yes
13462 build_stored=yes
13463 cats=
13464 db_type=Internal
13465 DB_TYPE=bdb
13466
13467
13468 # -------------------------------------------
13469 # gnome (default off)
13470 # -------------------------------------------
13471 # Check whether --enable-gnome was given.
13472 if test "${enable_gnome+set}" = set; then
13473   enableval=$enable_gnome; if test x$enableval = xyes; then
13474     support_gnome=yes
13475   fi
13476 fi
13477
13478
13479 GNOME_DIR=
13480 if test x$support_gnome = xyes; then
13481   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13482   pkg=$?
13483   if test $pkg = 0; then
13484      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13485      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13486      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13487      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13488
13489
13490
13491
13492      GNOME_DIR=src/gnome2-console
13493      gnome_version="Version 2.x"
13494   else
13495      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13496 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13497    { (exit 1); exit 1; }; }
13498   fi
13499 fi
13500
13501
13502 # -------------------------------------------
13503 # bat (default off)
13504 # -------------------------------------------
13505 # Check whether --enable-bat was given.
13506 if test "${enable_bat+set}" = set; then
13507   enableval=$enable_bat; if test x$enableval = xyes; then
13508
13509 cat >>confdefs.h <<\_ACEOF
13510 #define HAVE_BAT 1
13511 _ACEOF
13512
13513     support_bat=yes
13514   fi
13515 fi
13516
13517
13518 BAT_DIR=
13519 if test x$support_bat = xyes; then
13520   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13521   pkg=$?
13522   if test $pkg = 0; then
13523      BAT_DIR=src/qt-console
13524   else
13525      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13526 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13527    { (exit 1); exit 1; }; }
13528   fi
13529 fi
13530
13531 #
13532 #  If bat is enabled, we need the qwt library
13533 got_qwt=no
13534 QWT_INC=
13535 QWT_LDFLAGS=
13536 QWT_LIB=
13537 QWT=
13538 no_qwt=no
13539 if test x$support_bat = xyes; then
13540    { echo "$as_me:$LINENO: checking for qwt support" >&5
13541 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13542
13543 # Check whether --with-qwt was given.
13544 if test "${with_qwt+set}" = set; then
13545   withval=$with_qwt;
13546         case "$with_qwt" in
13547         no)
13548            no_qwt=yes
13549           ;;
13550         yes|*)
13551           if test -f ${with_qwt}/include/qwt.h; then
13552              QWT_INC="${with_qwt}/include"
13553              QWT_LDFLAGS="-L${with_qwt}/lib"
13554              QWT_LIB="-lqwt"
13555              QWT="qwt"
13556           fi
13557           ;;
13558         esac
13559
13560
13561 fi
13562
13563 #
13564 # Search in standard places, or --with-qwt not specified
13565 #
13566    if test $no_qwt = no; then
13567     if test x$QWT_INC = x; then
13568       for root in /usr /usr/local; do
13569          for ver in qwt qwt5 qwt-qt4; do
13570             if test -f ${root}/include/${ver}/qwt.h; then
13571                QWT_INC="${root}/include/${ver}"
13572                if test -d ${root}/lib64/; then
13573                   QWT_LDFLAGS="-L${root}/lib64"
13574                else
13575                   QWT_LDFLAGS="-L${root}/lib"
13576                fi
13577                QWT_LIB="-lqwt"
13578                QWT="qwt"
13579                got_qwt=yes
13580                break;
13581             fi
13582          done
13583       done
13584     fi
13585    fi
13586    if test x$QWT_INC = x; then
13587       { echo "$as_me:$LINENO: result: no" >&5
13588 echo "${ECHO_T}no" >&6; }
13589    else
13590
13591 cat >>confdefs.h <<\_ACEOF
13592 #define HAVE_QWT 1
13593 _ACEOF
13594
13595       { echo "$as_me:$LINENO: result: yes" >&5
13596 echo "${ECHO_T}yes" >&6; }
13597    fi
13598 fi
13599
13600
13601
13602
13603
13604
13605
13606
13607 # -------------------------------------------
13608 # bwx-console (default off)
13609 # -------------------------------------------
13610 # Check whether --enable-bwx-console was given.
13611 if test "${enable_bwx_console+set}" = set; then
13612   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13613     support_wx_console=yes
13614   fi
13615 fi
13616
13617
13618 WX_DIR=
13619 if test x$support_wx_console = xyes; then
13620   abc=`$WXCONFIG $WXFLAGS --cppflags`
13621   pkg=$?
13622   if test $pkg = 0; then
13623      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13624      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13625      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13626
13627
13628
13629      WX_DIR=src/wx-console
13630   else
13631      echo " "
13632      echo "wx-config program not found. bwx-console disabled."
13633      echo " "
13634      support_wx_console=no
13635   fi
13636 fi
13637
13638
13639
13640 # -------------------------------------------
13641 # tray-monitor (default off)
13642 # -------------------------------------------
13643 # Check whether --enable-tray-monitor was given.
13644 if test "${enable_tray_monitor+set}" = set; then
13645   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13646     support_tray_monitor=yes
13647   fi
13648 fi
13649
13650
13651 TRAY_MONITOR_DIR=
13652 if test x$support_tray_monitor = xyes; then
13653   abc=`$PKGCONFIG --exists gtk+-2.0`
13654   pkg=$?
13655   if test $pkg = 0; then
13656      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13657      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13658
13659
13660      TRAY_MONITOR_DIR=src/tray-monitor
13661      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13662      pkg=$?
13663      if test $pkg = 0; then
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define HAVE_GTK_2_4 1
13667 _ACEOF
13668
13669      fi
13670   fi
13671 fi
13672
13673
13674 # -------------------------------------------
13675 # smartalloc (default off)
13676 # -------------------------------------------
13677 # Check whether --enable-smartalloc was given.
13678 if test "${enable_smartalloc+set}" = set; then
13679   enableval=$enable_smartalloc; if test x$enableval = xno; then
13680     support_smartalloc=no
13681   fi
13682 fi
13683
13684
13685 if test x$support_smartalloc = xyes; then
13686
13687 cat >>confdefs.h <<\_ACEOF
13688 #define SMARTALLOC 1
13689 _ACEOF
13690
13691 fi
13692
13693 # -------------------------------------------
13694 # static-tools (default off)
13695 # -------------------------------------------
13696 # Check whether --enable-static-tools was given.
13697 if test "${enable_static_tools+set}" = set; then
13698   enableval=$enable_static_tools; if test x$enableval = xyes; then
13699      support_static_tools=yes
13700    fi
13701 fi
13702
13703
13704 TTOOL_LDFLAGS=
13705 if test x$support_static_tools = xyes; then
13706    TTOOL_LDFLAGS="-static"
13707 fi
13708
13709
13710 # -------------------------------------------
13711 # static-fd    (default off)
13712 # -------------------------------------------
13713 # Check whether --enable-static-fd was given.
13714 if test "${enable_static_fd+set}" = set; then
13715   enableval=$enable_static_fd; if test x$enableval = xyes; then
13716      support_static_fd=yes
13717    fi
13718 fi
13719
13720
13721 STATIC_FD=
13722 if test x$support_static_fd = xyes; then
13723    STATIC_FD="static-bacula-fd"
13724 fi
13725
13726
13727 # -------------------------------------------
13728 # static-sd    (default off)
13729 # -------------------------------------------
13730 # Check whether --enable-static-sd was given.
13731 if test "${enable_static_sd+set}" = set; then
13732   enableval=$enable_static_sd; if test x$enableval = xyes; then
13733      support_static_sd=yes
13734    fi
13735 fi
13736
13737
13738 STATIC_SD=
13739 if test x$support_static_sd = xyes; then
13740    STATIC_SD="static-bacula-sd"
13741 fi
13742
13743
13744 # -------------------------------------------
13745 # static-dir   (default off)
13746 # -------------------------------------------
13747 # Check whether --enable-static-dir was given.
13748 if test "${enable_static_dir+set}" = set; then
13749   enableval=$enable_static_dir; if test x$enableval = xyes; then
13750      support_static_dir=yes
13751    fi
13752 fi
13753
13754
13755 STATIC_DIR=
13756 if test x$support_static_dir = xyes; then
13757    STATIC_DIR="static-bacula-dir"
13758 fi
13759
13760
13761 # -------------------------------------------
13762 # static-cons  (default off)
13763 # -------------------------------------------
13764 # Check whether --enable-static-cons was given.
13765 if test "${enable_static_cons+set}" = set; then
13766   enableval=$enable_static_cons; if test x$enableval = xyes; then
13767      support_static_cons=yes
13768    fi
13769 fi
13770
13771
13772 STATIC_CONS=
13773 STATIC_GNOME_CONS=
13774 STATIC_WX_CONS=
13775 if test x$support_static_cons = xyes; then
13776    STATIC_CONS="static-bconsole"
13777    STATIC_GNOME_CONS="static-bgnome-console"
13778    STATIC_WX_CONS="static-bwx-console"
13779 fi
13780
13781
13782
13783
13784 # -------------------------------------------
13785 # client_only  (default off)
13786 # -------------------------------------------
13787 # Check whether --enable-client-only was given.
13788 if test "${enable_client_only+set}" = set; then
13789   enableval=$enable_client_only; if test x$enableval = xyes; then
13790       build_client_only=yes
13791       db_type=None
13792       DB_TYPE=none
13793    fi
13794 fi
13795
13796 if test x$build_client_only = xno; then
13797    ALL_DIRS="subdirs"
13798 else
13799    ALL_DIRS=""
13800 fi
13801
13802
13803 # -------------------------------------------
13804 # director  (default on)
13805 # -------------------------------------------
13806 # Check whether --enable-build-dird was given.
13807 if test "${enable_build_dird+set}" = set; then
13808   enableval=$enable_build_dird; if test x$enableval = xno; then
13809       build_dird=no
13810    fi
13811 fi
13812
13813 if test x$build_dird = xyes; then
13814    DIRD_DIR="src/dird"
13815    DIR_TOOLS="DIRTOOLS"
13816 else
13817    DIRD_DIR=""
13818    DIR_TOOLS="NODIRTOOLS"
13819 fi
13820
13821
13822
13823 # -------------------------------------------
13824 # stored  (default on)
13825 # -------------------------------------------
13826 # Check whether --enable-build-stored was given.
13827 if test "${enable_build_stored+set}" = set; then
13828   enableval=$enable_build_stored; if test x$enableval = xno; then
13829       build_stored=no
13830    fi
13831 fi
13832
13833 if test x$build_stored = xyes; then
13834    STORED_DIR="src/stored"
13835 else
13836    STORED_DIR=""
13837 fi
13838
13839
13840 # ---------------------------------------------------
13841 # Check for conio (Bacula readline substitute)(
13842 # ---------------------------------------------------
13843 # this allows you to turn it completely off
13844 # Check whether --enable-conio was given.
13845 if test "${enable_conio+set}" = set; then
13846   enableval=$enable_conio; if test x$enableval = xno; then
13847      support_conio=no
13848   fi
13849
13850 fi
13851
13852
13853
13854 # ---------------------------------------------------
13855 # Check for IPv6 support
13856 # ---------------------------------------------------
13857 # this allows you to turn it completely off
13858 support_ipv6=yes
13859 # Check whether --enable-ipv6 was given.
13860 if test "${enable_ipv6+set}" = set; then
13861   enableval=$enable_ipv6; if test x$enableval = xno; then
13862      support_ipv6=no
13863   fi
13864
13865 fi
13866
13867
13868 if test x$support_ipv6 = xyes; then
13869     cat >conftest.$ac_ext <<_ACEOF
13870 /* confdefs.h.  */
13871 _ACEOF
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h.  */
13875  #include <sys/types.h>
13876 #include <sys/socket.h>
13877 #include <netinet/in.h>
13878 int
13879 main ()
13880 {
13881 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 rm -f conftest.$ac_objext conftest$ac_exeext
13887 if { (ac_try="$ac_link"
13888 case "(($ac_try" in
13889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13890   *) ac_try_echo=$ac_try;;
13891 esac
13892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13893   (eval "$ac_link") 2>conftest.er1
13894   ac_status=$?
13895   grep -v '^ *+' conftest.er1 >conftest.err
13896   rm -f conftest.er1
13897   cat conftest.err >&5
13898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899   (exit $ac_status); } && {
13900          test -z "$ac_c_werror_flag" ||
13901          test ! -s conftest.err
13902        } && test -s conftest$ac_exeext &&
13903        $as_test_x conftest$ac_exeext; then
13904   support_ipv6=yes
13905 else
13906   echo "$as_me: failed program was:" >&5
13907 sed 's/^/| /' conftest.$ac_ext >&5
13908
13909         support_ipv6=no
13910 fi
13911
13912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13913       conftest$ac_exeext conftest.$ac_ext
13914 fi
13915
13916 if test x$support_ipv6 = xyes; then
13917
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_IPV6 1
13920 _ACEOF
13921
13922 fi
13923
13924
13925
13926 got_conio="no"
13927 if test x$support_conio = xyes; then
13928    if test "${ac_cv_header_termcap_h+set}" = set; then
13929   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13930 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13931 if test "${ac_cv_header_termcap_h+set}" = set; then
13932   echo $ECHO_N "(cached) $ECHO_C" >&6
13933 fi
13934 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13935 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13936 else
13937   # Is the header compilable?
13938 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13939 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13940 cat >conftest.$ac_ext <<_ACEOF
13941 /* confdefs.h.  */
13942 _ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h.  */
13946 $ac_includes_default
13947 #include <termcap.h>
13948 _ACEOF
13949 rm -f conftest.$ac_objext
13950 if { (ac_try="$ac_compile"
13951 case "(($ac_try" in
13952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13953   *) ac_try_echo=$ac_try;;
13954 esac
13955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13956   (eval "$ac_compile") 2>conftest.er1
13957   ac_status=$?
13958   grep -v '^ *+' conftest.er1 >conftest.err
13959   rm -f conftest.er1
13960   cat conftest.err >&5
13961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962   (exit $ac_status); } && {
13963          test -z "$ac_c_werror_flag" ||
13964          test ! -s conftest.err
13965        } && test -s conftest.$ac_objext; then
13966   ac_header_compiler=yes
13967 else
13968   echo "$as_me: failed program was:" >&5
13969 sed 's/^/| /' conftest.$ac_ext >&5
13970
13971         ac_header_compiler=no
13972 fi
13973
13974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13976 echo "${ECHO_T}$ac_header_compiler" >&6; }
13977
13978 # Is the header present?
13979 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13980 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13981 cat >conftest.$ac_ext <<_ACEOF
13982 /* confdefs.h.  */
13983 _ACEOF
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h.  */
13987 #include <termcap.h>
13988 _ACEOF
13989 if { (ac_try="$ac_cpp conftest.$ac_ext"
13990 case "(($ac_try" in
13991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13992   *) ac_try_echo=$ac_try;;
13993 esac
13994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13996   ac_status=$?
13997   grep -v '^ *+' conftest.er1 >conftest.err
13998   rm -f conftest.er1
13999   cat conftest.err >&5
14000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001   (exit $ac_status); } >/dev/null && {
14002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14003          test ! -s conftest.err
14004        }; then
14005   ac_header_preproc=yes
14006 else
14007   echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14009
14010   ac_header_preproc=no
14011 fi
14012
14013 rm -f conftest.err conftest.$ac_ext
14014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14015 echo "${ECHO_T}$ac_header_preproc" >&6; }
14016
14017 # So?  What about this header?
14018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14019   yes:no: )
14020     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14021 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14022     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14023 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14024     ac_header_preproc=yes
14025     ;;
14026   no:yes:* )
14027     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14028 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14029     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14030 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14032 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14034 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14036 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14038 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14039
14040     ;;
14041 esac
14042 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14043 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14044 if test "${ac_cv_header_termcap_h+set}" = set; then
14045   echo $ECHO_N "(cached) $ECHO_C" >&6
14046 else
14047   ac_cv_header_termcap_h=$ac_header_preproc
14048 fi
14049 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14050 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14051
14052 fi
14053 if test $ac_cv_header_termcap_h = yes; then
14054    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14055 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14056 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-ltermcap  $LIBS"
14061 cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067
14068 /* Override any GCC internal prototype to avoid an error.
14069    Use char because int might match the return type of a GCC
14070    builtin and then its argument prototype would still apply.  */
14071 #ifdef __cplusplus
14072 extern "C"
14073 #endif
14074 char tgetent ();
14075 int
14076 main ()
14077 {
14078 return tgetent ();
14079   ;
14080   return 0;
14081 }
14082 _ACEOF
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087   *) ac_try_echo=$ac_try;;
14088 esac
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090   (eval "$ac_link") 2>conftest.er1
14091   ac_status=$?
14092   grep -v '^ *+' conftest.er1 >conftest.err
14093   rm -f conftest.er1
14094   cat conftest.err >&5
14095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096   (exit $ac_status); } && {
14097          test -z "$ac_c_werror_flag" ||
14098          test ! -s conftest.err
14099        } && test -s conftest$ac_exeext &&
14100        $as_test_x conftest$ac_exeext; then
14101   ac_cv_lib_termcap_tgetent=yes
14102 else
14103   echo "$as_me: failed program was:" >&5
14104 sed 's/^/| /' conftest.$ac_ext >&5
14105
14106         ac_cv_lib_termcap_tgetent=no
14107 fi
14108
14109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14110       conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14112 fi
14113 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14114 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14115 if test $ac_cv_lib_termcap_tgetent = yes; then
14116    CONS_LIBS="-ltermcap"
14117          CONS_OBJ="conio.o"
14118          CONS_SRC="conio.c"
14119          got_conio="yes"
14120          support_readline=no
14121
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_CONIO 1
14124 _ACEOF
14125
14126
14127 else
14128    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14129 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14130 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14131   echo $ECHO_N "(cached) $ECHO_C" >&6
14132 else
14133   ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-lncurses  $LIBS"
14135 cat >conftest.$ac_ext <<_ACEOF
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141
14142 /* Override any GCC internal prototype to avoid an error.
14143    Use char because int might match the return type of a GCC
14144    builtin and then its argument prototype would still apply.  */
14145 #ifdef __cplusplus
14146 extern "C"
14147 #endif
14148 char tgetent ();
14149 int
14150 main ()
14151 {
14152 return tgetent ();
14153   ;
14154   return 0;
14155 }
14156 _ACEOF
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (ac_try="$ac_link"
14159 case "(($ac_try" in
14160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161   *) ac_try_echo=$ac_try;;
14162 esac
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164   (eval "$ac_link") 2>conftest.er1
14165   ac_status=$?
14166   grep -v '^ *+' conftest.er1 >conftest.err
14167   rm -f conftest.er1
14168   cat conftest.err >&5
14169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170   (exit $ac_status); } && {
14171          test -z "$ac_c_werror_flag" ||
14172          test ! -s conftest.err
14173        } && test -s conftest$ac_exeext &&
14174        $as_test_x conftest$ac_exeext; then
14175   ac_cv_lib_ncurses_tgetent=yes
14176 else
14177   echo "$as_me: failed program was:" >&5
14178 sed 's/^/| /' conftest.$ac_ext >&5
14179
14180         ac_cv_lib_ncurses_tgetent=no
14181 fi
14182
14183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14184       conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14186 fi
14187 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14188 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14189 if test $ac_cv_lib_ncurses_tgetent = yes; then
14190    CONS_LIBS="-lncurses"
14191            CONS_OBJ="conio.o"
14192            CONS_SRC="conio.c"
14193            got_conio="yes"
14194            support_readline=no
14195
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_CONIO 1
14198 _ACEOF
14199
14200
14201 fi
14202
14203
14204 fi
14205
14206
14207 else
14208
14209
14210 for ac_header in curses.h
14211 do
14212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14214   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14217   echo $ECHO_N "(cached) $ECHO_C" >&6
14218 fi
14219 ac_res=`eval echo '${'$as_ac_Header'}'`
14220                { echo "$as_me:$LINENO: result: $ac_res" >&5
14221 echo "${ECHO_T}$ac_res" >&6; }
14222 else
14223   # Is the header compilable?
14224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14226 cat >conftest.$ac_ext <<_ACEOF
14227 /* confdefs.h.  */
14228 _ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h.  */
14232 $ac_includes_default
14233 #include <$ac_header>
14234 _ACEOF
14235 rm -f conftest.$ac_objext
14236 if { (ac_try="$ac_compile"
14237 case "(($ac_try" in
14238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14239   *) ac_try_echo=$ac_try;;
14240 esac
14241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14242   (eval "$ac_compile") 2>conftest.er1
14243   ac_status=$?
14244   grep -v '^ *+' conftest.er1 >conftest.err
14245   rm -f conftest.er1
14246   cat conftest.err >&5
14247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248   (exit $ac_status); } && {
14249          test -z "$ac_c_werror_flag" ||
14250          test ! -s conftest.err
14251        } && test -s conftest.$ac_objext; then
14252   ac_header_compiler=yes
14253 else
14254   echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257         ac_header_compiler=no
14258 fi
14259
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14262 echo "${ECHO_T}$ac_header_compiler" >&6; }
14263
14264 # Is the header present?
14265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h.  */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h.  */
14273 #include <$ac_header>
14274 _ACEOF
14275 if { (ac_try="$ac_cpp conftest.$ac_ext"
14276 case "(($ac_try" in
14277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278   *) ac_try_echo=$ac_try;;
14279 esac
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14282   ac_status=$?
14283   grep -v '^ *+' conftest.er1 >conftest.err
14284   rm -f conftest.er1
14285   cat conftest.err >&5
14286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287   (exit $ac_status); } >/dev/null && {
14288          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14289          test ! -s conftest.err
14290        }; then
14291   ac_header_preproc=yes
14292 else
14293   echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14295
14296   ac_header_preproc=no
14297 fi
14298
14299 rm -f conftest.err conftest.$ac_ext
14300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6; }
14302
14303 # So?  What about this header?
14304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14305   yes:no: )
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14310     ac_header_preproc=yes
14311     ;;
14312   no:yes:* )
14313     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14315     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14316 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14317     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14319     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14320 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14321     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14323     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14325
14326     ;;
14327 esac
14328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14331   echo $ECHO_N "(cached) $ECHO_C" >&6
14332 else
14333   eval "$as_ac_Header=\$ac_header_preproc"
14334 fi
14335 ac_res=`eval echo '${'$as_ac_Header'}'`
14336                { echo "$as_me:$LINENO: result: $ac_res" >&5
14337 echo "${ECHO_T}$ac_res" >&6; }
14338
14339 fi
14340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14341   cat >>confdefs.h <<_ACEOF
14342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14343 _ACEOF
14344
14345 fi
14346
14347 done
14348
14349          { echo "$as_me:$LINENO: checking for term.h" >&5
14350 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14351 if test "${ac_cv_header_term_h+set}" = set; then
14352   echo $ECHO_N "(cached) $ECHO_C" >&6
14353 else
14354   cat >conftest.$ac_ext <<_ACEOF
14355 /* confdefs.h.  */
14356 _ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h.  */
14360 #if HAVE_CURSES_H
14361 #include <curses.h>
14362 #endif
14363
14364
14365 #include <term.h>
14366 _ACEOF
14367 rm -f conftest.$ac_objext
14368 if { (ac_try="$ac_compile"
14369 case "(($ac_try" in
14370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14371   *) ac_try_echo=$ac_try;;
14372 esac
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374   (eval "$ac_compile") 2>conftest.er1
14375   ac_status=$?
14376   grep -v '^ *+' conftest.er1 >conftest.err
14377   rm -f conftest.er1
14378   cat conftest.err >&5
14379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380   (exit $ac_status); } && {
14381          test -z "$ac_c_werror_flag" ||
14382          test ! -s conftest.err
14383        } && test -s conftest.$ac_objext; then
14384   ac_cv_header_term_h=yes
14385 else
14386   echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.$ac_ext >&5
14388
14389         ac_cv_header_term_h=no
14390 fi
14391
14392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14393 fi
14394 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14395 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14396 if test $ac_cv_header_term_h = yes; then
14397    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14398 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14399 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14400   echo $ECHO_N "(cached) $ECHO_C" >&6
14401 else
14402   ac_check_lib_save_LIBS=$LIBS
14403 LIBS="-lcurses  $LIBS"
14404 cat >conftest.$ac_ext <<_ACEOF
14405 /* confdefs.h.  */
14406 _ACEOF
14407 cat confdefs.h >>conftest.$ac_ext
14408 cat >>conftest.$ac_ext <<_ACEOF
14409 /* end confdefs.h.  */
14410
14411 /* Override any GCC internal prototype to avoid an error.
14412    Use char because int might match the return type of a GCC
14413    builtin and then its argument prototype would still apply.  */
14414 #ifdef __cplusplus
14415 extern "C"
14416 #endif
14417 char tgetent ();
14418 int
14419 main ()
14420 {
14421 return tgetent ();
14422   ;
14423   return 0;
14424 }
14425 _ACEOF
14426 rm -f conftest.$ac_objext conftest$ac_exeext
14427 if { (ac_try="$ac_link"
14428 case "(($ac_try" in
14429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430   *) ac_try_echo=$ac_try;;
14431 esac
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433   (eval "$ac_link") 2>conftest.er1
14434   ac_status=$?
14435   grep -v '^ *+' conftest.er1 >conftest.err
14436   rm -f conftest.er1
14437   cat conftest.err >&5
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); } && {
14440          test -z "$ac_c_werror_flag" ||
14441          test ! -s conftest.err
14442        } && test -s conftest$ac_exeext &&
14443        $as_test_x conftest$ac_exeext; then
14444   ac_cv_lib_curses_tgetent=yes
14445 else
14446   echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14448
14449         ac_cv_lib_curses_tgetent=no
14450 fi
14451
14452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14453       conftest$ac_exeext conftest.$ac_ext
14454 LIBS=$ac_check_lib_save_LIBS
14455 fi
14456 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14457 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14458 if test $ac_cv_lib_curses_tgetent = yes; then
14459    CONS_LIBS="-lcurses"
14460                    CONS_OBJ="conio.o"
14461                    CONS_SRC="conio.c"
14462                    got_conio="yes"
14463                    support_readline=no
14464
14465 cat >>confdefs.h <<\_ACEOF
14466 #define HAVE_CONIO 1
14467 _ACEOF
14468
14469
14470 fi
14471
14472
14473 else
14474    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14475 fi
14476
14477
14478
14479 fi
14480
14481
14482 fi
14483
14484
14485 # ---------------------------------------------------
14486 # Check for readline support/directory (default off)
14487 # ---------------------------------------------------
14488 # this allows you to turn it completely off
14489 # Check whether --enable-readline was given.
14490 if test "${enable_readline+set}" = set; then
14491   enableval=$enable_readline; if test x$enableval = xno; then
14492     support_readline=no
14493   fi
14494 fi
14495
14496
14497 got_readline="no"
14498 READLINE_SRC=
14499 if test x$support_readline = xyes; then
14500
14501 # Check whether --with-readline was given.
14502 if test "${with_readline+set}" = set; then
14503   withval=$with_readline;
14504         case "$with_readline" in
14505         no) : ;;
14506         yes|*)
14507           if test -f ${with_readline}/readline.h; then
14508              CONS_INC="-I${with_readline}"
14509              CONS_LDFLAGS="-L$with_readline"
14510           elif test -f ${with_readline}/include/readline/readline.h; then
14511              CONS_INC="-I${with_readline}/include/readline"
14512              CONS_LDFLAGS="-L${with_readline}/lib"
14513              with_readline="${with_readline}/include/readline"
14514           else
14515              with_readline="/usr/include/readline"
14516           fi
14517           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14519   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14520 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14522   echo $ECHO_N "(cached) $ECHO_C" >&6
14523 fi
14524 ac_res=`eval echo '${'$as_ac_Header'}'`
14525                { echo "$as_me:$LINENO: result: $ac_res" >&5
14526 echo "${ECHO_T}$ac_res" >&6; }
14527 else
14528   # Is the header compilable?
14529 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14530 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14531 cat >conftest.$ac_ext <<_ACEOF
14532 /* confdefs.h.  */
14533 _ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h.  */
14537 $ac_includes_default
14538 #include <${with_readline}/readline.h>
14539 _ACEOF
14540 rm -f conftest.$ac_objext
14541 if { (ac_try="$ac_compile"
14542 case "(($ac_try" in
14543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544   *) ac_try_echo=$ac_try;;
14545 esac
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547   (eval "$ac_compile") 2>conftest.er1
14548   ac_status=$?
14549   grep -v '^ *+' conftest.er1 >conftest.err
14550   rm -f conftest.er1
14551   cat conftest.err >&5
14552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553   (exit $ac_status); } && {
14554          test -z "$ac_c_werror_flag" ||
14555          test ! -s conftest.err
14556        } && test -s conftest.$ac_objext; then
14557   ac_header_compiler=yes
14558 else
14559   echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.$ac_ext >&5
14561
14562         ac_header_compiler=no
14563 fi
14564
14565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14567 echo "${ECHO_T}$ac_header_compiler" >&6; }
14568
14569 # Is the header present?
14570 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14571 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14572 cat >conftest.$ac_ext <<_ACEOF
14573 /* confdefs.h.  */
14574 _ACEOF
14575 cat confdefs.h >>conftest.$ac_ext
14576 cat >>conftest.$ac_ext <<_ACEOF
14577 /* end confdefs.h.  */
14578 #include <${with_readline}/readline.h>
14579 _ACEOF
14580 if { (ac_try="$ac_cpp conftest.$ac_ext"
14581 case "(($ac_try" in
14582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583   *) ac_try_echo=$ac_try;;
14584 esac
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14587   ac_status=$?
14588   grep -v '^ *+' conftest.er1 >conftest.err
14589   rm -f conftest.er1
14590   cat conftest.err >&5
14591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592   (exit $ac_status); } >/dev/null && {
14593          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14594          test ! -s conftest.err
14595        }; then
14596   ac_header_preproc=yes
14597 else
14598   echo "$as_me: failed program was:" >&5
14599 sed 's/^/| /' conftest.$ac_ext >&5
14600
14601   ac_header_preproc=no
14602 fi
14603
14604 rm -f conftest.err conftest.$ac_ext
14605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14606 echo "${ECHO_T}$ac_header_preproc" >&6; }
14607
14608 # So?  What about this header?
14609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14610   yes:no: )
14611     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14613     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14614 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14615     ac_header_preproc=yes
14616     ;;
14617   no:yes:* )
14618     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14619 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14620     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14621 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14622     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14623 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14624     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14625 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14626     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14627 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14628     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14629 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14630
14631     ;;
14632 esac
14633 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14634 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14636   echo $ECHO_N "(cached) $ECHO_C" >&6
14637 else
14638   eval "$as_ac_Header=\$ac_header_preproc"
14639 fi
14640 ac_res=`eval echo '${'$as_ac_Header'}'`
14641                { echo "$as_me:$LINENO: result: $ac_res" >&5
14642 echo "${ECHO_T}$ac_res" >&6; }
14643
14644 fi
14645 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14646
14647 cat >>confdefs.h <<\_ACEOF
14648 #define HAVE_READLINE 1
14649 _ACEOF
14650
14651                CONS_LIBS="-lreadline -lhistory -ltermcap"
14652                got_readline="yes"
14653
14654 else
14655    echo " "
14656                echo "readline.h not found. readline turned off ..."
14657                echo " "
14658
14659
14660 fi
14661
14662
14663           ;;
14664         esac
14665
14666 else
14667
14668        # check for standard readline library
14669        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14670   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14671 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14672 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14673   echo $ECHO_N "(cached) $ECHO_C" >&6
14674 fi
14675 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14676 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14677 else
14678   # Is the header compilable?
14679 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14680 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14681 cat >conftest.$ac_ext <<_ACEOF
14682 /* confdefs.h.  */
14683 _ACEOF
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h.  */
14687 $ac_includes_default
14688 #include </usr/include/readline/readline.h>
14689 _ACEOF
14690 rm -f conftest.$ac_objext
14691 if { (ac_try="$ac_compile"
14692 case "(($ac_try" in
14693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694   *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697   (eval "$ac_compile") 2>conftest.er1
14698   ac_status=$?
14699   grep -v '^ *+' conftest.er1 >conftest.err
14700   rm -f conftest.er1
14701   cat conftest.err >&5
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); } && {
14704          test -z "$ac_c_werror_flag" ||
14705          test ! -s conftest.err
14706        } && test -s conftest.$ac_objext; then
14707   ac_header_compiler=yes
14708 else
14709   echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712         ac_header_compiler=no
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14717 echo "${ECHO_T}$ac_header_compiler" >&6; }
14718
14719 # Is the header present?
14720 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14721 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h.  */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h.  */
14728 #include </usr/include/readline/readline.h>
14729 _ACEOF
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733   *) ac_try_echo=$ac_try;;
14734 esac
14735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14736   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } >/dev/null && {
14743          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14744          test ! -s conftest.err
14745        }; then
14746   ac_header_preproc=yes
14747 else
14748   echo "$as_me: failed program was:" >&5
14749 sed 's/^/| /' conftest.$ac_ext >&5
14750
14751   ac_header_preproc=no
14752 fi
14753
14754 rm -f conftest.err conftest.$ac_ext
14755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14756 echo "${ECHO_T}$ac_header_preproc" >&6; }
14757
14758 # So?  What about this header?
14759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14760   yes:no: )
14761     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14763     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14764 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14765     ac_header_preproc=yes
14766     ;;
14767   no:yes:* )
14768     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14769 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14770     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14771 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14772     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14773 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14774     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14775 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14776     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14777 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14778     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14779 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14780
14781     ;;
14782 esac
14783 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14784 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14785 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14786   echo $ECHO_N "(cached) $ECHO_C" >&6
14787 else
14788   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14789 fi
14790 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14791 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14792
14793 fi
14794 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14795
14796 cat >>confdefs.h <<\_ACEOF
14797 #define HAVE_READLINE 1
14798 _ACEOF
14799
14800            got_readline="yes"
14801            CONS_INC="-I/usr/include/readline"
14802            CONS_LIBS="-lreadline -ltermcap"
14803
14804 else
14805
14806            # Did not find standard library, so try Bacula's default
14807             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14809   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14810 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14812   echo $ECHO_N "(cached) $ECHO_C" >&6
14813 fi
14814 ac_res=`eval echo '${'$as_ac_Header'}'`
14815                { echo "$as_me:$LINENO: result: $ac_res" >&5
14816 echo "${ECHO_T}$ac_res" >&6; }
14817 else
14818   # Is the header compilable?
14819 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14820 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14821 cat >conftest.$ac_ext <<_ACEOF
14822 /* confdefs.h.  */
14823 _ACEOF
14824 cat confdefs.h >>conftest.$ac_ext
14825 cat >>conftest.$ac_ext <<_ACEOF
14826 /* end confdefs.h.  */
14827 $ac_includes_default
14828 #include <${TOP_DIR}/depkgs/readline/readline.h>
14829 _ACEOF
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834   *) ac_try_echo=$ac_try;;
14835 esac
14836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14837   (eval "$ac_compile") 2>conftest.er1
14838   ac_status=$?
14839   grep -v '^ *+' conftest.er1 >conftest.err
14840   rm -f conftest.er1
14841   cat conftest.err >&5
14842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843   (exit $ac_status); } && {
14844          test -z "$ac_c_werror_flag" ||
14845          test ! -s conftest.err
14846        } && test -s conftest.$ac_objext; then
14847   ac_header_compiler=yes
14848 else
14849   echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14851
14852         ac_header_compiler=no
14853 fi
14854
14855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14857 echo "${ECHO_T}$ac_header_compiler" >&6; }
14858
14859 # Is the header present?
14860 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14861 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h.  */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h.  */
14868 #include <${TOP_DIR}/depkgs/readline/readline.h>
14869 _ACEOF
14870 if { (ac_try="$ac_cpp conftest.$ac_ext"
14871 case "(($ac_try" in
14872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14873   *) ac_try_echo=$ac_try;;
14874 esac
14875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14876   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14877   ac_status=$?
14878   grep -v '^ *+' conftest.er1 >conftest.err
14879   rm -f conftest.er1
14880   cat conftest.err >&5
14881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14882   (exit $ac_status); } >/dev/null && {
14883          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14884          test ! -s conftest.err
14885        }; then
14886   ac_header_preproc=yes
14887 else
14888   echo "$as_me: failed program was:" >&5
14889 sed 's/^/| /' conftest.$ac_ext >&5
14890
14891   ac_header_preproc=no
14892 fi
14893
14894 rm -f conftest.err conftest.$ac_ext
14895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14896 echo "${ECHO_T}$ac_header_preproc" >&6; }
14897
14898 # So?  What about this header?
14899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14900   yes:no: )
14901     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14903     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14904 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14905     ac_header_preproc=yes
14906     ;;
14907   no:yes:* )
14908     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14909 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14911 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14912     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14913 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14914     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14915 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14916     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14917 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14918     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14919 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14920
14921     ;;
14922 esac
14923 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14924 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14926   echo $ECHO_N "(cached) $ECHO_C" >&6
14927 else
14928   eval "$as_ac_Header=\$ac_header_preproc"
14929 fi
14930 ac_res=`eval echo '${'$as_ac_Header'}'`
14931                { echo "$as_me:$LINENO: result: $ac_res" >&5
14932 echo "${ECHO_T}$ac_res" >&6; }
14933
14934 fi
14935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14936
14937 cat >>confdefs.h <<\_ACEOF
14938 #define HAVE_READLINE 1
14939 _ACEOF
14940
14941                  got_readline="yes"
14942                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14943                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14944                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14945                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14946
14947 else
14948    echo " "
14949                 echo "readline.h not found. readline turned off ..."
14950                 echo " "
14951
14952
14953 fi
14954
14955
14956
14957
14958 fi
14959
14960
14961
14962
14963 fi
14964
14965 fi
14966
14967
14968
14969
14970
14971
14972
14973
14974
14975
14976 # Minimal stuff for readline Makefile configuration
14977 MAKE_SHELL=/bin/sh
14978
14979 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14980 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14981 if test "${ac_cv_header_stat_broken+set}" = set; then
14982   echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984   cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h.  */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h.  */
14990 #include <sys/types.h>
14991 #include <sys/stat.h>
14992
14993 #if defined S_ISBLK && defined S_IFDIR
14994 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14995 #endif
14996
14997 #if defined S_ISBLK && defined S_IFCHR
14998 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14999 #endif
15000
15001 #if defined S_ISLNK && defined S_IFREG
15002 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15003 #endif
15004
15005 #if defined S_ISSOCK && defined S_IFREG
15006 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15007 #endif
15008
15009 _ACEOF
15010 rm -f conftest.$ac_objext
15011 if { (ac_try="$ac_compile"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_compile") 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } && {
15024          test -z "$ac_c_werror_flag" ||
15025          test ! -s conftest.err
15026        } && test -s conftest.$ac_objext; then
15027   ac_cv_header_stat_broken=no
15028 else
15029   echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15031
15032         ac_cv_header_stat_broken=yes
15033 fi
15034
15035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15036 fi
15037 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15038 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15039 if test $ac_cv_header_stat_broken = yes; then
15040
15041 cat >>confdefs.h <<\_ACEOF
15042 #define STAT_MACROS_BROKEN 1
15043 _ACEOF
15044
15045 fi
15046
15047
15048
15049
15050
15051
15052 ac_header_dirent=no
15053 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15054   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15055 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15056 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15057 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 else
15060   cat >conftest.$ac_ext <<_ACEOF
15061 /* confdefs.h.  */
15062 _ACEOF
15063 cat confdefs.h >>conftest.$ac_ext
15064 cat >>conftest.$ac_ext <<_ACEOF
15065 /* end confdefs.h.  */
15066 #include <sys/types.h>
15067 #include <$ac_hdr>
15068
15069 int
15070 main ()
15071 {
15072 if ((DIR *) 0)
15073 return 0;
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_compile") 2>conftest.er1
15086   ac_status=$?
15087   grep -v '^ *+' conftest.er1 >conftest.err
15088   rm -f conftest.er1
15089   cat conftest.err >&5
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } && {
15092          test -z "$ac_c_werror_flag" ||
15093          test ! -s conftest.err
15094        } && test -s conftest.$ac_objext; then
15095   eval "$as_ac_Header=yes"
15096 else
15097   echo "$as_me: failed program was:" >&5
15098 sed 's/^/| /' conftest.$ac_ext >&5
15099
15100         eval "$as_ac_Header=no"
15101 fi
15102
15103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15104 fi
15105 ac_res=`eval echo '${'$as_ac_Header'}'`
15106                { echo "$as_me:$LINENO: result: $ac_res" >&5
15107 echo "${ECHO_T}$ac_res" >&6; }
15108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15109   cat >>confdefs.h <<_ACEOF
15110 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15111 _ACEOF
15112
15113 ac_header_dirent=$ac_hdr; break
15114 fi
15115
15116 done
15117 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15118 if test $ac_header_dirent = dirent.h; then
15119   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15120 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15121 if test "${ac_cv_search_opendir+set}" = set; then
15122   echo $ECHO_N "(cached) $ECHO_C" >&6
15123 else
15124   ac_func_search_save_LIBS=$LIBS
15125 cat >conftest.$ac_ext <<_ACEOF
15126 /* confdefs.h.  */
15127 _ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h.  */
15131
15132 /* Override any GCC internal prototype to avoid an error.
15133    Use char because int might match the return type of a GCC
15134    builtin and then its argument prototype would still apply.  */
15135 #ifdef __cplusplus
15136 extern "C"
15137 #endif
15138 char opendir ();
15139 int
15140 main ()
15141 {
15142 return opendir ();
15143   ;
15144   return 0;
15145 }
15146 _ACEOF
15147 for ac_lib in '' dir; do
15148   if test -z "$ac_lib"; then
15149     ac_res="none required"
15150   else
15151     ac_res=-l$ac_lib
15152     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15153   fi
15154   rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158   *) ac_try_echo=$ac_try;;
15159 esac
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161   (eval "$ac_link") 2>conftest.er1
15162   ac_status=$?
15163   grep -v '^ *+' conftest.er1 >conftest.err
15164   rm -f conftest.er1
15165   cat conftest.err >&5
15166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167   (exit $ac_status); } && {
15168          test -z "$ac_c_werror_flag" ||
15169          test ! -s conftest.err
15170        } && test -s conftest$ac_exeext &&
15171        $as_test_x conftest$ac_exeext; then
15172   ac_cv_search_opendir=$ac_res
15173 else
15174   echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.$ac_ext >&5
15176
15177
15178 fi
15179
15180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15181       conftest$ac_exeext
15182   if test "${ac_cv_search_opendir+set}" = set; then
15183   break
15184 fi
15185 done
15186 if test "${ac_cv_search_opendir+set}" = set; then
15187   :
15188 else
15189   ac_cv_search_opendir=no
15190 fi
15191 rm conftest.$ac_ext
15192 LIBS=$ac_func_search_save_LIBS
15193 fi
15194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15196 ac_res=$ac_cv_search_opendir
15197 if test "$ac_res" != no; then
15198   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15199
15200 fi
15201
15202 else
15203   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15205 if test "${ac_cv_search_opendir+set}" = set; then
15206   echo $ECHO_N "(cached) $ECHO_C" >&6
15207 else
15208   ac_func_search_save_LIBS=$LIBS
15209 cat >conftest.$ac_ext <<_ACEOF
15210 /* confdefs.h.  */
15211 _ACEOF
15212 cat confdefs.h >>conftest.$ac_ext
15213 cat >>conftest.$ac_ext <<_ACEOF
15214 /* end confdefs.h.  */
15215
15216 /* Override any GCC internal prototype to avoid an error.
15217    Use char because int might match the return type of a GCC
15218    builtin and then its argument prototype would still apply.  */
15219 #ifdef __cplusplus
15220 extern "C"
15221 #endif
15222 char opendir ();
15223 int
15224 main ()
15225 {
15226 return opendir ();
15227   ;
15228   return 0;
15229 }
15230 _ACEOF
15231 for ac_lib in '' x; do
15232   if test -z "$ac_lib"; then
15233     ac_res="none required"
15234   else
15235     ac_res=-l$ac_lib
15236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15237   fi
15238   rm -f conftest.$ac_objext conftest$ac_exeext
15239 if { (ac_try="$ac_link"
15240 case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_link") 2>conftest.er1
15246   ac_status=$?
15247   grep -v '^ *+' conftest.er1 >conftest.err
15248   rm -f conftest.er1
15249   cat conftest.err >&5
15250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251   (exit $ac_status); } && {
15252          test -z "$ac_c_werror_flag" ||
15253          test ! -s conftest.err
15254        } && test -s conftest$ac_exeext &&
15255        $as_test_x conftest$ac_exeext; then
15256   ac_cv_search_opendir=$ac_res
15257 else
15258   echo "$as_me: failed program was:" >&5
15259 sed 's/^/| /' conftest.$ac_ext >&5
15260
15261
15262 fi
15263
15264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15265       conftest$ac_exeext
15266   if test "${ac_cv_search_opendir+set}" = set; then
15267   break
15268 fi
15269 done
15270 if test "${ac_cv_search_opendir+set}" = set; then
15271   :
15272 else
15273   ac_cv_search_opendir=no
15274 fi
15275 rm conftest.$ac_ext
15276 LIBS=$ac_func_search_save_LIBS
15277 fi
15278 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15279 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15280 ac_res=$ac_cv_search_opendir
15281 if test "$ac_res" != no; then
15282   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15283
15284 fi
15285
15286 fi
15287
15288
15289
15290
15291
15292
15293
15294
15295 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15296 do
15297 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15298 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15299 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15300 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15301   echo $ECHO_N "(cached) $ECHO_C" >&6
15302 else
15303   cat >conftest.$ac_ext <<_ACEOF
15304 /* confdefs.h.  */
15305 _ACEOF
15306 cat confdefs.h >>conftest.$ac_ext
15307 cat >>conftest.$ac_ext <<_ACEOF
15308 /* end confdefs.h.  */
15309 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15310    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15311 #define $ac_func innocuous_$ac_func
15312
15313 /* System header to define __stub macros and hopefully few prototypes,
15314     which can conflict with char $ac_func (); below.
15315     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15316     <limits.h> exists even on freestanding compilers.  */
15317
15318 #ifdef __STDC__
15319 # include <limits.h>
15320 #else
15321 # include <assert.h>
15322 #endif
15323
15324 #undef $ac_func
15325
15326 /* Override any GCC internal prototype to avoid an error.
15327    Use char because int might match the return type of a GCC
15328    builtin and then its argument prototype would still apply.  */
15329 #ifdef __cplusplus
15330 extern "C"
15331 #endif
15332 char $ac_func ();
15333 /* The GNU C library defines this for functions which it implements
15334     to always fail with ENOSYS.  Some functions are actually named
15335     something starting with __ and the normal name is an alias.  */
15336 #if defined __stub_$ac_func || defined __stub___$ac_func
15337 choke me
15338 #endif
15339
15340 int
15341 main ()
15342 {
15343 return $ac_func ();
15344   ;
15345   return 0;
15346 }
15347 _ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352   *) ac_try_echo=$ac_try;;
15353 esac
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355   (eval "$ac_link") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } && {
15362          test -z "$ac_c_werror_flag" ||
15363          test ! -s conftest.err
15364        } && test -s conftest$ac_exeext &&
15365        $as_test_x conftest$ac_exeext; then
15366   eval "$as_ac_var=yes"
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371         eval "$as_ac_var=no"
15372 fi
15373
15374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15375       conftest$ac_exeext conftest.$ac_ext
15376 fi
15377 ac_res=`eval echo '${'$as_ac_var'}'`
15378                { echo "$as_me:$LINENO: result: $ac_res" >&5
15379 echo "${ECHO_T}$ac_res" >&6; }
15380 if test `eval echo '${'$as_ac_var'}'` = yes; then
15381   cat >>confdefs.h <<_ACEOF
15382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15383 _ACEOF
15384
15385 fi
15386 done
15387
15388
15389
15390 for ac_func in nanosleep nl_langinfo
15391 do
15392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15396   echo $ECHO_N "(cached) $ECHO_C" >&6
15397 else
15398   cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h.  */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h.  */
15404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15406 #define $ac_func innocuous_$ac_func
15407
15408 /* System header to define __stub macros and hopefully few prototypes,
15409     which can conflict with char $ac_func (); below.
15410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15411     <limits.h> exists even on freestanding compilers.  */
15412
15413 #ifdef __STDC__
15414 # include <limits.h>
15415 #else
15416 # include <assert.h>
15417 #endif
15418
15419 #undef $ac_func
15420
15421 /* Override any GCC internal prototype to avoid an error.
15422    Use char because int might match the return type of a GCC
15423    builtin and then its argument prototype would still apply.  */
15424 #ifdef __cplusplus
15425 extern "C"
15426 #endif
15427 char $ac_func ();
15428 /* The GNU C library defines this for functions which it implements
15429     to always fail with ENOSYS.  Some functions are actually named
15430     something starting with __ and the normal name is an alias.  */
15431 #if defined __stub_$ac_func || defined __stub___$ac_func
15432 choke me
15433 #endif
15434
15435 int
15436 main ()
15437 {
15438 return $ac_func ();
15439   ;
15440   return 0;
15441 }
15442 _ACEOF
15443 rm -f conftest.$ac_objext conftest$ac_exeext
15444 if { (ac_try="$ac_link"
15445 case "(($ac_try" in
15446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447   *) ac_try_echo=$ac_try;;
15448 esac
15449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15450   (eval "$ac_link") 2>conftest.er1
15451   ac_status=$?
15452   grep -v '^ *+' conftest.er1 >conftest.err
15453   rm -f conftest.er1
15454   cat conftest.err >&5
15455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456   (exit $ac_status); } && {
15457          test -z "$ac_c_werror_flag" ||
15458          test ! -s conftest.err
15459        } && test -s conftest$ac_exeext &&
15460        $as_test_x conftest$ac_exeext; then
15461   eval "$as_ac_var=yes"
15462 else
15463   echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15465
15466         eval "$as_ac_var=no"
15467 fi
15468
15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470       conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 ac_res=`eval echo '${'$as_ac_var'}'`
15473                { echo "$as_me:$LINENO: result: $ac_res" >&5
15474 echo "${ECHO_T}$ac_res" >&6; }
15475 if test `eval echo '${'$as_ac_var'}'` = yes; then
15476   cat >>confdefs.h <<_ACEOF
15477 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15478 _ACEOF
15479
15480 fi
15481 done
15482
15483
15484 for ac_header in varargs.h
15485 do
15486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15491   echo $ECHO_N "(cached) $ECHO_C" >&6
15492 fi
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494                { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15496 else
15497   # Is the header compilable?
15498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15500 cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506 $ac_includes_default
15507 #include <$ac_header>
15508 _ACEOF
15509 rm -f conftest.$ac_objext
15510 if { (ac_try="$ac_compile"
15511 case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15516   (eval "$ac_compile") 2>conftest.er1
15517   ac_status=$?
15518   grep -v '^ *+' conftest.er1 >conftest.err
15519   rm -f conftest.er1
15520   cat conftest.err >&5
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); } && {
15523          test -z "$ac_c_werror_flag" ||
15524          test ! -s conftest.err
15525        } && test -s conftest.$ac_objext; then
15526   ac_header_compiler=yes
15527 else
15528   echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15530
15531         ac_header_compiler=no
15532 fi
15533
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6; }
15537
15538 # Is the header present?
15539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15542 /* confdefs.h.  */
15543 _ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h.  */
15547 #include <$ac_header>
15548 _ACEOF
15549 if { (ac_try="$ac_cpp conftest.$ac_ext"
15550 case "(($ac_try" in
15551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552   *) ac_try_echo=$ac_try;;
15553 esac
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15556   ac_status=$?
15557   grep -v '^ *+' conftest.er1 >conftest.err
15558   rm -f conftest.er1
15559   cat conftest.err >&5
15560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561   (exit $ac_status); } >/dev/null && {
15562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15563          test ! -s conftest.err
15564        }; then
15565   ac_header_preproc=yes
15566 else
15567   echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570   ac_header_preproc=no
15571 fi
15572
15573 rm -f conftest.err conftest.$ac_ext
15574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15575 echo "${ECHO_T}$ac_header_preproc" >&6; }
15576
15577 # So?  What about this header?
15578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15579   yes:no: )
15580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15584     ac_header_preproc=yes
15585     ;;
15586   no:yes:* )
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15599
15600     ;;
15601 esac
15602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15605   echo $ECHO_N "(cached) $ECHO_C" >&6
15606 else
15607   eval "$as_ac_Header=\$ac_header_preproc"
15608 fi
15609 ac_res=`eval echo '${'$as_ac_Header'}'`
15610                { echo "$as_me:$LINENO: result: $ac_res" >&5
15611 echo "${ECHO_T}$ac_res" >&6; }
15612
15613 fi
15614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15615   cat >>confdefs.h <<_ACEOF
15616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15617 _ACEOF
15618
15619 fi
15620
15621 done
15622
15623
15624 # End of readline/conio stuff
15625 # -----------------------------------------------------------------------
15626
15627 # -----------------------------------------------------------------------
15628 #  Check for Python support
15629 #
15630 { echo "$as_me:$LINENO: checking for Python support" >&5
15631 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15632
15633 # Check whether --with-python was given.
15634 if test "${with_python+set}" = set; then
15635   withval=$with_python;
15636   PYTHON_INCDIR=
15637   PYTHON_LIBS=
15638   if test "$withval" != "no"; then
15639      if test "$withval" = "yes"; then
15640         for python_root in /usr /usr/local /usr/sfw; do
15641           for ver in python2.2 python2.3 python2.4 python2.5; do
15642              if test -f $python_root/include/${ver}/Python.h; then
15643                 PYTHON_INCDIR=-I$python_root/include/${ver}
15644                 if test -d $python_root/lib64/${ver}/config; then
15645                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15646                 else
15647                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15648                 fi
15649                 break
15650              fi
15651           done
15652         done
15653         if test x$PYTHON_INCDIR = x; then
15654           if test -f $prefix/include/Python.h; then
15655              PYTHON_INCDIR=-I$prefix/include
15656              if test -d $prefix/lib64/config; then
15657                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15658              else
15659                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15660              fi
15661           else
15662            { echo "$as_me:$LINENO: result: no" >&5
15663 echo "${ECHO_T}no" >&6; }
15664            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15665 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15666    { (exit 1); exit 1; }; }
15667           fi
15668         fi
15669      else
15670         if test -f $withval/Python.h; then
15671            PYTHON_INCDIR=-I$withval
15672            PYTHON_LIBS="-L$withval/config -lpython"
15673         elif test -f $withval/include/Python.h; then
15674            PYTHON_INCDIR=-I$withval/include
15675            if test -d $withval/lib64/config; then
15676               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15677            else
15678               PYTHON_LIBS="-L$withval/lib/config -lpython"
15679            fi
15680         elif test -f $withval/include/python/Python.h; then
15681            PYTHON_INCDIR=-I$withval/include/python
15682            if test -d $withval/lib64/python/config; then
15683               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15684            else
15685               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15686            fi
15687         else
15688            { echo "$as_me:$LINENO: result: no" >&5
15689 echo "${ECHO_T}no" >&6; }
15690            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15691 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15692    { (exit 1); exit 1; }; }
15693         fi
15694      fi
15695      cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_PYTHON 1
15697 _ACEOF
15698
15699      { echo "$as_me:$LINENO: result: yes" >&5
15700 echo "${ECHO_T}yes" >&6; }
15701      support_python=yes
15702      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15703 echo "$as_me: checking for more Python libs" >&6;}
15704      saved_LIBS="$LIBS"; LIBS=
15705      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15706 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15707 if test "${ac_cv_search_shm_open+set}" = set; then
15708   echo $ECHO_N "(cached) $ECHO_C" >&6
15709 else
15710   ac_func_search_save_LIBS=$LIBS
15711 cat >conftest.$ac_ext <<_ACEOF
15712 /* confdefs.h.  */
15713 _ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h.  */
15717
15718 /* Override any GCC internal prototype to avoid an error.
15719    Use char because int might match the return type of a GCC
15720    builtin and then its argument prototype would still apply.  */
15721 #ifdef __cplusplus
15722 extern "C"
15723 #endif
15724 char shm_open ();
15725 int
15726 main ()
15727 {
15728 return shm_open ();
15729   ;
15730   return 0;
15731 }
15732 _ACEOF
15733 for ac_lib in '' rt; do
15734   if test -z "$ac_lib"; then
15735     ac_res="none required"
15736   else
15737     ac_res=-l$ac_lib
15738     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15739   fi
15740   rm -f conftest.$ac_objext conftest$ac_exeext
15741 if { (ac_try="$ac_link"
15742 case "(($ac_try" in
15743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744   *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747   (eval "$ac_link") 2>conftest.er1
15748   ac_status=$?
15749   grep -v '^ *+' conftest.er1 >conftest.err
15750   rm -f conftest.er1
15751   cat conftest.err >&5
15752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753   (exit $ac_status); } && {
15754          test -z "$ac_c_werror_flag" ||
15755          test ! -s conftest.err
15756        } && test -s conftest$ac_exeext &&
15757        $as_test_x conftest$ac_exeext; then
15758   ac_cv_search_shm_open=$ac_res
15759 else
15760   echo "$as_me: failed program was:" >&5
15761 sed 's/^/| /' conftest.$ac_ext >&5
15762
15763
15764 fi
15765
15766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15767       conftest$ac_exeext
15768   if test "${ac_cv_search_shm_open+set}" = set; then
15769   break
15770 fi
15771 done
15772 if test "${ac_cv_search_shm_open+set}" = set; then
15773   :
15774 else
15775   ac_cv_search_shm_open=no
15776 fi
15777 rm conftest.$ac_ext
15778 LIBS=$ac_func_search_save_LIBS
15779 fi
15780 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15781 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15782 ac_res=$ac_cv_search_shm_open
15783 if test "$ac_res" != no; then
15784   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15785
15786 fi
15787
15788
15789 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15790 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_util_openpty+set}" = set; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-lutil  $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802
15803 /* Override any GCC internal prototype to avoid an error.
15804    Use char because int might match the return type of a GCC
15805    builtin and then its argument prototype would still apply.  */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 char openpty ();
15810 int
15811 main ()
15812 {
15813 return openpty ();
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_link") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } && {
15832          test -z "$ac_c_werror_flag" ||
15833          test ! -s conftest.err
15834        } && test -s conftest$ac_exeext &&
15835        $as_test_x conftest$ac_exeext; then
15836   ac_cv_lib_util_openpty=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         ac_cv_lib_util_openpty=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845       conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15847 fi
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15849 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15850 if test $ac_cv_lib_util_openpty = yes; then
15851   cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBUTIL 1
15853 _ACEOF
15854
15855   LIBS="-lutil $LIBS"
15856
15857 fi
15858
15859      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15860      LIBS="$saved_LIBS"
15861   else
15862      { echo "$as_me:$LINENO: result: no" >&5
15863 echo "${ECHO_T}no" >&6; }
15864   fi
15865
15866 else
15867
15868   { echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6; }
15870
15871 fi
15872
15873
15874
15875
15876 #
15877 # Find where sockets are (especially for Solaris)
15878 # Do this before the TCP Wrappers test since tcp wrappers
15879 # uses the socket library and some linkers are stupid.
15880 #
15881 { echo "$as_me:$LINENO: checking for socket" >&5
15882 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15883 if test "${ac_cv_func_socket+set}" = set; then
15884   echo $ECHO_N "(cached) $ECHO_C" >&6
15885 else
15886   cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15894 #define socket innocuous_socket
15895
15896 /* System header to define __stub macros and hopefully few prototypes,
15897     which can conflict with char socket (); below.
15898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15899     <limits.h> exists even on freestanding compilers.  */
15900
15901 #ifdef __STDC__
15902 # include <limits.h>
15903 #else
15904 # include <assert.h>
15905 #endif
15906
15907 #undef socket
15908
15909 /* Override any GCC internal prototype to avoid an error.
15910    Use char because int might match the return type of a GCC
15911    builtin and then its argument prototype would still apply.  */
15912 #ifdef __cplusplus
15913 extern "C"
15914 #endif
15915 char socket ();
15916 /* The GNU C library defines this for functions which it implements
15917     to always fail with ENOSYS.  Some functions are actually named
15918     something starting with __ and the normal name is an alias.  */
15919 #if defined __stub_socket || defined __stub___socket
15920 choke me
15921 #endif
15922
15923 int
15924 main ()
15925 {
15926 return socket ();
15927   ;
15928   return 0;
15929 }
15930 _ACEOF
15931 rm -f conftest.$ac_objext conftest$ac_exeext
15932 if { (ac_try="$ac_link"
15933 case "(($ac_try" in
15934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15935   *) ac_try_echo=$ac_try;;
15936 esac
15937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15938   (eval "$ac_link") 2>conftest.er1
15939   ac_status=$?
15940   grep -v '^ *+' conftest.er1 >conftest.err
15941   rm -f conftest.er1
15942   cat conftest.err >&5
15943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944   (exit $ac_status); } && {
15945          test -z "$ac_c_werror_flag" ||
15946          test ! -s conftest.err
15947        } && test -s conftest$ac_exeext &&
15948        $as_test_x conftest$ac_exeext; then
15949   ac_cv_func_socket=yes
15950 else
15951   echo "$as_me: failed program was:" >&5
15952 sed 's/^/| /' conftest.$ac_ext >&5
15953
15954         ac_cv_func_socket=no
15955 fi
15956
15957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15958       conftest$ac_exeext conftest.$ac_ext
15959 fi
15960 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15961 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15962 if test $ac_cv_func_socket = yes; then
15963   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15964 echo "${ECHO_T}using libc's socket" >&6; }
15965 else
15966
15967 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15968 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-lxnet  $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982    Use char because int might match the return type of a GCC
15983    builtin and then its argument prototype would still apply.  */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char socket ();
15988 int
15989 main ()
15990 {
15991 return socket ();
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } && {
16010          test -z "$ac_c_werror_flag" ||
16011          test ! -s conftest.err
16012        } && test -s conftest$ac_exeext &&
16013        $as_test_x conftest$ac_exeext; then
16014   ac_cv_lib_xnet_socket=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_cv_lib_xnet_socket=no
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023       conftest$ac_exeext conftest.$ac_ext
16024 LIBS=$ac_check_lib_save_LIBS
16025 fi
16026 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16027 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16028 if test $ac_cv_lib_xnet_socket = yes; then
16029   cat >>confdefs.h <<_ACEOF
16030 #define HAVE_LIBXNET 1
16031 _ACEOF
16032
16033   LIBS="-lxnet $LIBS"
16034
16035 fi
16036
16037
16038 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16039 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16040 if test "${ac_cv_lib_socket_socket+set}" = set; then
16041   echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043   ac_check_lib_save_LIBS=$LIBS
16044 LIBS="-lsocket  $LIBS"
16045 cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051
16052 /* Override any GCC internal prototype to avoid an error.
16053    Use char because int might match the return type of a GCC
16054    builtin and then its argument prototype would still apply.  */
16055 #ifdef __cplusplus
16056 extern "C"
16057 #endif
16058 char socket ();
16059 int
16060 main ()
16061 {
16062 return socket ();
16063   ;
16064   return 0;
16065 }
16066 _ACEOF
16067 rm -f conftest.$ac_objext conftest$ac_exeext
16068 if { (ac_try="$ac_link"
16069 case "(($ac_try" in
16070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16071   *) ac_try_echo=$ac_try;;
16072 esac
16073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16074   (eval "$ac_link") 2>conftest.er1
16075   ac_status=$?
16076   grep -v '^ *+' conftest.er1 >conftest.err
16077   rm -f conftest.er1
16078   cat conftest.err >&5
16079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080   (exit $ac_status); } && {
16081          test -z "$ac_c_werror_flag" ||
16082          test ! -s conftest.err
16083        } && test -s conftest$ac_exeext &&
16084        $as_test_x conftest$ac_exeext; then
16085   ac_cv_lib_socket_socket=yes
16086 else
16087   echo "$as_me: failed program was:" >&5
16088 sed 's/^/| /' conftest.$ac_ext >&5
16089
16090         ac_cv_lib_socket_socket=no
16091 fi
16092
16093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16094       conftest$ac_exeext conftest.$ac_ext
16095 LIBS=$ac_check_lib_save_LIBS
16096 fi
16097 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16098 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16099 if test $ac_cv_lib_socket_socket = yes; then
16100   cat >>confdefs.h <<_ACEOF
16101 #define HAVE_LIBSOCKET 1
16102 _ACEOF
16103
16104   LIBS="-lsocket $LIBS"
16105
16106 fi
16107
16108
16109 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16110 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16111 if test "${ac_cv_lib_inet_socket+set}" = set; then
16112   echo $ECHO_N "(cached) $ECHO_C" >&6
16113 else
16114   ac_check_lib_save_LIBS=$LIBS
16115 LIBS="-linet  $LIBS"
16116 cat >conftest.$ac_ext <<_ACEOF
16117 /* confdefs.h.  */
16118 _ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h.  */
16122
16123 /* Override any GCC internal prototype to avoid an error.
16124    Use char because int might match the return type of a GCC
16125    builtin and then its argument prototype would still apply.  */
16126 #ifdef __cplusplus
16127 extern "C"
16128 #endif
16129 char socket ();
16130 int
16131 main ()
16132 {
16133 return socket ();
16134   ;
16135   return 0;
16136 }
16137 _ACEOF
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142   *) ac_try_echo=$ac_try;;
16143 esac
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145   (eval "$ac_link") 2>conftest.er1
16146   ac_status=$?
16147   grep -v '^ *+' conftest.er1 >conftest.err
16148   rm -f conftest.er1
16149   cat conftest.err >&5
16150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151   (exit $ac_status); } && {
16152          test -z "$ac_c_werror_flag" ||
16153          test ! -s conftest.err
16154        } && test -s conftest$ac_exeext &&
16155        $as_test_x conftest$ac_exeext; then
16156   ac_cv_lib_inet_socket=yes
16157 else
16158   echo "$as_me: failed program was:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16160
16161         ac_cv_lib_inet_socket=no
16162 fi
16163
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165       conftest$ac_exeext conftest.$ac_ext
16166 LIBS=$ac_check_lib_save_LIBS
16167 fi
16168 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16169 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16170 if test $ac_cv_lib_inet_socket = yes; then
16171   cat >>confdefs.h <<_ACEOF
16172 #define HAVE_LIBINET 1
16173 _ACEOF
16174
16175   LIBS="-linet $LIBS"
16176
16177 fi
16178
16179 fi
16180
16181
16182
16183 # -----------------------------------------------------------
16184 # Check whether user wants TCP wrappers support (default off)
16185 # -----------------------------------------------------------
16186 TCPW_MSG="no"
16187 WRAPLIBS=""
16188
16189 # Check whether --with-tcp-wrappers was given.
16190 if test "${with_tcp_wrappers+set}" = set; then
16191   withval=$with_tcp_wrappers;
16192     if test "x$withval" != "xno" ; then
16193        saved_LIBS="$LIBS"
16194        LIBS="$saved_LIBS -lwrap"
16195        { echo "$as_me:$LINENO: checking for libwrap" >&5
16196 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16197        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16198 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16199 if test "${ac_cv_search_nanosleep+set}" = set; then
16200   echo $ECHO_N "(cached) $ECHO_C" >&6
16201 else
16202   ac_func_search_save_LIBS=$LIBS
16203 cat >conftest.$ac_ext <<_ACEOF
16204 /* confdefs.h.  */
16205 _ACEOF
16206 cat confdefs.h >>conftest.$ac_ext
16207 cat >>conftest.$ac_ext <<_ACEOF
16208 /* end confdefs.h.  */
16209
16210 /* Override any GCC internal prototype to avoid an error.
16211    Use char because int might match the return type of a GCC
16212    builtin and then its argument prototype would still apply.  */
16213 #ifdef __cplusplus
16214 extern "C"
16215 #endif
16216 char nanosleep ();
16217 int
16218 main ()
16219 {
16220 return nanosleep ();
16221   ;
16222   return 0;
16223 }
16224 _ACEOF
16225 for ac_lib in '' rt; do
16226   if test -z "$ac_lib"; then
16227     ac_res="none required"
16228   else
16229     ac_res=-l$ac_lib
16230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16231   fi
16232   rm -f conftest.$ac_objext conftest$ac_exeext
16233 if { (ac_try="$ac_link"
16234 case "(($ac_try" in
16235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236   *) ac_try_echo=$ac_try;;
16237 esac
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239   (eval "$ac_link") 2>conftest.er1
16240   ac_status=$?
16241   grep -v '^ *+' conftest.er1 >conftest.err
16242   rm -f conftest.er1
16243   cat conftest.err >&5
16244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245   (exit $ac_status); } && {
16246          test -z "$ac_c_werror_flag" ||
16247          test ! -s conftest.err
16248        } && test -s conftest$ac_exeext &&
16249        $as_test_x conftest$ac_exeext; then
16250   ac_cv_search_nanosleep=$ac_res
16251 else
16252   echo "$as_me: failed program was:" >&5
16253 sed 's/^/| /' conftest.$ac_ext >&5
16254
16255
16256 fi
16257
16258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16259       conftest$ac_exeext
16260   if test "${ac_cv_search_nanosleep+set}" = set; then
16261   break
16262 fi
16263 done
16264 if test "${ac_cv_search_nanosleep+set}" = set; then
16265   :
16266 else
16267   ac_cv_search_nanosleep=no
16268 fi
16269 rm conftest.$ac_ext
16270 LIBS=$ac_func_search_save_LIBS
16271 fi
16272 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16273 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16274 ac_res=$ac_cv_search_nanosleep
16275 if test "$ac_res" != no; then
16276   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16277
16278 fi
16279
16280        cat >conftest.$ac_ext <<_ACEOF
16281 /* confdefs.h.  */
16282 _ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h.  */
16286  #include <sys/types.h>
16287             #include <tcpd.h>
16288              int deny_severity = 0;
16289              int allow_severity = 0;
16290              struct request_info *req;
16291 int
16292 main ()
16293 {
16294  hosts_access(req);
16295   ;
16296   return 0;
16297 }
16298 _ACEOF
16299 rm -f conftest.$ac_objext conftest$ac_exeext
16300 if { (ac_try="$ac_link"
16301 case "(($ac_try" in
16302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303   *) ac_try_echo=$ac_try;;
16304 esac
16305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16306   (eval "$ac_link") 2>conftest.er1
16307   ac_status=$?
16308   grep -v '^ *+' conftest.er1 >conftest.err
16309   rm -f conftest.er1
16310   cat conftest.err >&5
16311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312   (exit $ac_status); } && {
16313          test -z "$ac_c_werror_flag" ||
16314          test ! -s conftest.err
16315        } && test -s conftest$ac_exeext &&
16316        $as_test_x conftest$ac_exeext; then
16317
16318             { echo "$as_me:$LINENO: result: yes" >&5
16319 echo "${ECHO_T}yes" >&6; }
16320
16321 cat >>confdefs.h <<\_ACEOF
16322 #define HAVE_LIBWRAP 1
16323 _ACEOF
16324
16325             TCPW_MSG="yes"
16326             LIBS="$saved_LIBS"
16327             WRAPLIBS="-lwrap"
16328
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333
16334             LIBS="$saved_LIBS -lwrap -lnsl"
16335             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16336             cat >conftest.$ac_ext <<_ACEOF
16337 /* confdefs.h.  */
16338 _ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h.  */
16342  #include <sys/types.h>
16343                  #include <tcpd.h>
16344                  int deny_severity = 0;
16345                  int allow_severity = 0;
16346                  struct request_info *req;
16347 int
16348 main ()
16349 {
16350  hosts_access(req);
16351   ;
16352   return 0;
16353 }
16354 _ACEOF
16355 rm -f conftest.$ac_objext conftest$ac_exeext
16356 if { (ac_try="$ac_link"
16357 case "(($ac_try" in
16358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16359   *) ac_try_echo=$ac_try;;
16360 esac
16361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16362   (eval "$ac_link") 2>conftest.er1
16363   ac_status=$?
16364   grep -v '^ *+' conftest.er1 >conftest.err
16365   rm -f conftest.er1
16366   cat conftest.err >&5
16367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16368   (exit $ac_status); } && {
16369          test -z "$ac_c_werror_flag" ||
16370          test ! -s conftest.err
16371        } && test -s conftest$ac_exeext &&
16372        $as_test_x conftest$ac_exeext; then
16373
16374                  { echo "$as_me:$LINENO: result: yes" >&5
16375 echo "${ECHO_T}yes" >&6; }
16376
16377 cat >>confdefs.h <<\_ACEOF
16378 #define HAVE_LIBWRAP 1
16379 _ACEOF
16380
16381                  TCPW_MSG="yes"
16382                  LIBS="$saved_LIBS"
16383                  WRAPLIBS="-lwrap"
16384
16385 else
16386   echo "$as_me: failed program was:" >&5
16387 sed 's/^/| /' conftest.$ac_ext >&5
16388
16389         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16390 echo "$as_me: error: *** libwrap missing" >&2;}
16391    { (exit 1); exit 1; }; }
16392
16393 fi
16394
16395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16396       conftest$ac_exeext conftest.$ac_ext
16397
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16401       conftest$ac_exeext conftest.$ac_ext
16402     fi
16403
16404
16405 fi
16406
16407
16408 # -----------------------------------------------------------
16409 # Check whether OpenSSL is available
16410 # -----------------------------------------------------------
16411 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16412 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16413
16414 # Check whether --with-openssl was given.
16415 if test "${with_openssl+set}" = set; then
16416   withval=$with_openssl; with_openssl_directory=${withval}
16417 fi
16418
16419
16420 if test "x$with_openssl_directory" != "x"; then
16421         OPENSSL_LIBS="-lssl -lcrypto"
16422         OPENSSL_INC=""
16423
16424         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16425                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16426                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16427         fi
16428
16429         saved_LIBS="${LIBS}"
16430         saved_CFLAGS="${CFLAGS}"
16431         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16432         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16433
16434         cat >conftest.$ac_ext <<_ACEOF
16435 /* confdefs.h.  */
16436 _ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h.  */
16440  #include <openssl/ssl.h>
16441 int
16442 main ()
16443 {
16444  CRYPTO_set_id_callback(NULL);
16445   ;
16446   return 0;
16447 }
16448 _ACEOF
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (ac_try="$ac_link"
16451 case "(($ac_try" in
16452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16453   *) ac_try_echo=$ac_try;;
16454 esac
16455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16456   (eval "$ac_link") 2>conftest.er1
16457   ac_status=$?
16458   grep -v '^ *+' conftest.er1 >conftest.err
16459   rm -f conftest.er1
16460   cat conftest.err >&5
16461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462   (exit $ac_status); } && {
16463          test -z "$ac_c_werror_flag" ||
16464          test ! -s conftest.err
16465        } && test -s conftest$ac_exeext &&
16466        $as_test_x conftest$ac_exeext; then
16467
16468                         support_tls="yes"
16469                         support_crypto="yes"
16470
16471 else
16472   echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16474
16475          support_tls="no"
16476
16477 fi
16478
16479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16480       conftest$ac_exeext conftest.$ac_ext
16481
16482         cat >conftest.$ac_ext <<_ACEOF
16483 /* confdefs.h.  */
16484 _ACEOF
16485 cat confdefs.h >>conftest.$ac_ext
16486 cat >>conftest.$ac_ext <<_ACEOF
16487 /* end confdefs.h.  */
16488  #include <openssl/evp.h>
16489 int
16490 main ()
16491 {
16492  EVP_sha512();
16493   ;
16494   return 0;
16495 }
16496 _ACEOF
16497 rm -f conftest.$ac_objext conftest$ac_exeext
16498 if { (ac_try="$ac_link"
16499 case "(($ac_try" in
16500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501   *) ac_try_echo=$ac_try;;
16502 esac
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504   (eval "$ac_link") 2>conftest.er1
16505   ac_status=$?
16506   grep -v '^ *+' conftest.er1 >conftest.err
16507   rm -f conftest.er1
16508   cat conftest.err >&5
16509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510   (exit $ac_status); } && {
16511          test -z "$ac_c_werror_flag" ||
16512          test ! -s conftest.err
16513        } && test -s conftest$ac_exeext &&
16514        $as_test_x conftest$ac_exeext; then
16515    ac_cv_openssl_sha2="yes"
16516 else
16517   echo "$as_me: failed program was:" >&5
16518 sed 's/^/| /' conftest.$ac_ext >&5
16519
16520          ac_cv_openssl_sha2="no"
16521
16522 fi
16523
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525       conftest$ac_exeext conftest.$ac_ext
16526
16527         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16528         # implementation, presumably for export reasons. If 192bit AES
16529         # is available, we assume that we're running with a 'non-export'
16530         # openssl library.
16531         cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537  #include <openssl/evp.h>
16538 int
16539 main ()
16540 {
16541  EVP_aes_192_cbc();
16542   ;
16543   return 0;
16544 }
16545 _ACEOF
16546 rm -f conftest.$ac_objext conftest$ac_exeext
16547 if { (ac_try="$ac_link"
16548 case "(($ac_try" in
16549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550   *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553   (eval "$ac_link") 2>conftest.er1
16554   ac_status=$?
16555   grep -v '^ *+' conftest.er1 >conftest.err
16556   rm -f conftest.er1
16557   cat conftest.err >&5
16558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559   (exit $ac_status); } && {
16560          test -z "$ac_c_werror_flag" ||
16561          test ! -s conftest.err
16562        } && test -s conftest$ac_exeext &&
16563        $as_test_x conftest$ac_exeext; then
16564    ac_cv_openssl_export="no"
16565 else
16566   echo "$as_me: failed program was:" >&5
16567 sed 's/^/| /' conftest.$ac_ext >&5
16568
16569          ac_cv_openssl_export="yes"
16570
16571 fi
16572
16573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16574       conftest$ac_exeext conftest.$ac_ext
16575
16576         LIBS="${saved_LIBS}"
16577         CFLAGS="${saved_CFLAGS}"
16578
16579         if test "$support_tls" = "yes"; then
16580
16581 cat >>confdefs.h <<\_ACEOF
16582 #define HAVE_OPENSSL 1
16583 _ACEOF
16584
16585
16586 cat >>confdefs.h <<\_ACEOF
16587 #define HAVE_TLS 1
16588 _ACEOF
16589
16590
16591 cat >>confdefs.h <<\_ACEOF
16592 #define HAVE_CRYPTO 1
16593 _ACEOF
16594
16595         fi
16596
16597         if test "$ac_cv_openssl_sha2" = "yes"; then
16598
16599 cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_SHA2 1
16601 _ACEOF
16602
16603         fi
16604
16605         if test "$ac_cv_openssl_export" = "yes"; then
16606
16607 cat >>confdefs.h <<\_ACEOF
16608 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16609 _ACEOF
16610
16611         fi
16612 else
16613         support_tls="no"
16614         support_crypto="no"
16615         OPENSSL_LIBS=""
16616         OPENSSL_INC=""
16617 fi
16618
16619 { echo "$as_me:$LINENO: result: $support_tls" >&5
16620 echo "${ECHO_T}$support_tls" >&6; }
16621
16622
16623
16624
16625 # -----------------------------------------------------------
16626 # dlopen is needed for plugins
16627 # -----------------------------------------------------------
16628 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16629 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16630 if test "${ac_cv_search_dlopen+set}" = set; then
16631   echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633   ac_func_search_save_LIBS=$LIBS
16634 cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h.  */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h.  */
16640
16641 /* Override any GCC internal prototype to avoid an error.
16642    Use char because int might match the return type of a GCC
16643    builtin and then its argument prototype would still apply.  */
16644 #ifdef __cplusplus
16645 extern "C"
16646 #endif
16647 char dlopen ();
16648 int
16649 main ()
16650 {
16651 return dlopen ();
16652   ;
16653   return 0;
16654 }
16655 _ACEOF
16656 for ac_lib in '' dl; do
16657   if test -z "$ac_lib"; then
16658     ac_res="none required"
16659   else
16660     ac_res=-l$ac_lib
16661     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16662   fi
16663   rm -f conftest.$ac_objext conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_link") 2>conftest.er1
16671   ac_status=$?
16672   grep -v '^ *+' conftest.er1 >conftest.err
16673   rm -f conftest.er1
16674   cat conftest.err >&5
16675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676   (exit $ac_status); } && {
16677          test -z "$ac_c_werror_flag" ||
16678          test ! -s conftest.err
16679        } && test -s conftest$ac_exeext &&
16680        $as_test_x conftest$ac_exeext; then
16681   ac_cv_search_dlopen=$ac_res
16682 else
16683   echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686
16687 fi
16688
16689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16690       conftest$ac_exeext
16691   if test "${ac_cv_search_dlopen+set}" = set; then
16692   break
16693 fi
16694 done
16695 if test "${ac_cv_search_dlopen+set}" = set; then
16696   :
16697 else
16698   ac_cv_search_dlopen=no
16699 fi
16700 rm conftest.$ac_ext
16701 LIBS=$ac_func_search_save_LIBS
16702 fi
16703 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16704 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16705 ac_res=$ac_cv_search_dlopen
16706 if test "$ac_res" != no; then
16707   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16708
16709 fi
16710
16711
16712 # ------------------------------------------
16713 # Where to place working dir
16714 # ------------------------------------------
16715 working_dir=`eval echo ${prefix}/var/bacula/working`
16716
16717 # Check whether --with-working-dir was given.
16718 if test "${with_working_dir+set}" = set; then
16719   withval=$with_working_dir;
16720        if test "x$withval" != "xno" ; then
16721               working_dir=$withval
16722        fi
16723
16724
16725 fi
16726
16727
16728
16729
16730 # ------------------------------------------------------------------
16731 # If the user has not set archivedir, we set our default as /tmp
16732 # ------------------------------------------------------------------
16733 archive_dir=/tmp
16734
16735 # Check whether --with-archivedir was given.
16736 if test "${with_archivedir+set}" = set; then
16737   withval=$with_archivedir;
16738        if test "x$withval" != "xno" ; then
16739               archivedir=$withval
16740        fi
16741
16742
16743 fi
16744
16745
16746
16747
16748
16749
16750 # ------------------------------------------
16751 # Where to place scriptdir (script files)
16752 # ------------------------------------------
16753 scriptdir=`eval echo ${sysconfdir}`
16754
16755 # Check whether --with-scriptdir was given.
16756 if test "${with_scriptdir+set}" = set; then
16757   withval=$with_scriptdir;
16758        if test "x$withval" != "xno" ; then
16759               scriptdir=$withval
16760        fi
16761
16762
16763 fi
16764
16765
16766
16767
16768
16769 # ------------------------------------------
16770 # Where to place plugindir (script files)
16771 # ------------------------------------------
16772 plugindir=`eval echo ${sysconfdir}`
16773
16774 # Check whether --with-plugindir was given.
16775 if test "${with_plugindir+set}" = set; then
16776   withval=$with_plugindir;
16777        if test "x$withval" != "xno" ; then
16778               plugindir=$withval
16779        fi
16780
16781
16782 fi
16783
16784
16785
16786
16787
16788 # ------------------------------------------
16789 # Where to send dump email
16790 # ------------------------------------------
16791 dump_email=root@localhost
16792
16793 # Check whether --with-dump-email was given.
16794 if test "${with_dump_email+set}" = set; then
16795   withval=$with_dump_email;
16796        if test "x$withval" != "xno" ; then
16797               dump_email=$withval
16798        fi
16799
16800
16801 fi
16802
16803
16804
16805
16806 # ------------------------------------------
16807 # Where to send job email
16808 # ------------------------------------------
16809 job_email=root@localhost
16810
16811 # Check whether --with-job-email was given.
16812 if test "${with_job_email+set}" = set; then
16813   withval=$with_job_email;
16814        if test "x$withval" != "xno" ; then
16815               job_email=$withval
16816        fi
16817
16818
16819 fi
16820
16821
16822
16823
16824 # ------------------------------------------
16825 # Where to find smtp host
16826 # ------------------------------------------
16827 smtp_host=localhost
16828
16829 # Check whether --with-smtp_host was given.
16830 if test "${with_smtp_host+set}" = set; then
16831   withval=$with_smtp_host;
16832        if test "x$withval" != "xno" ; then
16833               smtp_host=$withval
16834        fi
16835
16836
16837 fi
16838
16839
16840
16841
16842
16843 # ------------------------------------
16844 # Where to place pid files
16845 # ------------------------------------
16846 piddir=/var/run
16847
16848 # Check whether --with-pid-dir was given.
16849 if test "${with_pid_dir+set}" = set; then
16850   withval=$with_pid_dir;
16851         if test "x$withval" != "xno" ; then
16852             piddir=$withval
16853         fi
16854
16855
16856 fi
16857
16858
16859 cat >>confdefs.h <<_ACEOF
16860 #define _PATH_BACULA_PIDDIR "$piddir"
16861 _ACEOF
16862
16863
16864
16865
16866 # ------------------------------------
16867 # Where to place subsys "lock file"
16868 # ------------------------------------
16869 subsysdir=/var/run/subsys
16870 if test -d /var/run/subsys; then
16871    subsysdir=/var/run/subsys
16872 elif test -d /var/lock/subsys; then
16873    subsysdir=/var/lock/subsys
16874 else
16875    subsysdir=/var/run/subsys
16876 fi
16877
16878 # Check whether --with-subsys-dir was given.
16879 if test "${with_subsys_dir+set}" = set; then
16880   withval=$with_subsys_dir;
16881         if test "x$withval" != "xno" ; then
16882             subsysdir=$withval
16883         fi
16884
16885
16886 fi
16887
16888
16889
16890
16891
16892
16893 # ------------------------------------
16894 # Where to start assigning ports
16895 # ------------------------------------
16896 baseport=9101
16897
16898 # Check whether --with-baseport was given.
16899 if test "${with_baseport+set}" = set; then
16900   withval=$with_baseport;
16901         if test "x$withval" != "xno" ; then
16902              baseport=$withval
16903         fi
16904
16905
16906 fi
16907
16908
16909
16910 dir_port=`expr $baseport`
16911 fd_port=`expr $baseport + 1`
16912 sd_port=`expr $fd_port + 1`
16913
16914
16915
16916
16917
16918
16919 # ------------------------------------------
16920 # Generate passwords
16921 # ------------------------------------------
16922 dir_password=
16923
16924 # Check whether --with-dir-password was given.
16925 if test "${with_dir_password+set}" = set; then
16926   withval=$with_dir_password;
16927        if test "x$withval" != "xno" ; then
16928            dir_password=$withval
16929        fi
16930
16931
16932 fi
16933
16934
16935 if test "x$dir_password" = "x" ; then
16936    if test "x$OPENSSL" = "xnone" ; then
16937       key=`autoconf/randpass 33`
16938    else
16939       key=`openssl rand -base64 33`
16940    fi
16941    dir_password=$key
16942 fi
16943
16944 fd_password=
16945
16946 # Check whether --with-fd-password was given.
16947 if test "${with_fd_password+set}" = set; then
16948   withval=$with_fd_password;
16949        if test "x$withval" != "xno" ; then
16950            fd_password=$withval
16951        fi
16952
16953
16954 fi
16955
16956
16957 if test "x$fd_password" = "x" ; then
16958    if test "x$OPENSSL" = "xnone" ; then
16959       key=`autoconf/randpass 37`
16960    else
16961       key=`openssl rand -base64 33`
16962    fi
16963    fd_password=$key
16964 fi
16965
16966 sd_password=
16967
16968 # Check whether --with-sd-password was given.
16969 if test "${with_sd_password+set}" = set; then
16970   withval=$with_sd_password;
16971        if test "x$withval" != "xno" ; then
16972            sd_password=$withval
16973        fi
16974
16975
16976 fi
16977
16978
16979 if test "x$sd_password" = "x" ; then
16980    if test "x$OPENSSL" = "xnone" ; then
16981       key=`autoconf/randpass 41`
16982    else
16983       key=`openssl rand -base64 33`
16984    fi
16985    sd_password=$key
16986 fi
16987
16988 mon_dir_password=
16989
16990 # Check whether --with-mon-dir-password was given.
16991 if test "${with_mon_dir_password+set}" = set; then
16992   withval=$with_mon_dir_password;
16993        if test "x$withval" != "xno" ; then
16994            mon_dir_password=$withval
16995        fi
16996
16997
16998 fi
16999
17000
17001 if test "x$mon_dir_password" = "x" ; then
17002    if test "x$OPENSSL" = "xnone" ; then
17003       key=`autoconf/randpass 33`
17004    else
17005       key=`openssl rand -base64 33`
17006    fi
17007    mon_dir_password=$key
17008 fi
17009
17010 mon_fd_password=
17011
17012 # Check whether --with-mon-fd-password was given.
17013 if test "${with_mon_fd_password+set}" = set; then
17014   withval=$with_mon_fd_password;
17015        if test "x$withval" != "xno" ; then
17016            mon_fd_password=$withval
17017        fi
17018
17019
17020 fi
17021
17022
17023 if test "x$mon_fd_password" = "x" ; then
17024    if test "x$OPENSSL" = "xnone" ; then
17025       key=`autoconf/randpass 37`
17026    else
17027       key=`openssl rand -base64 33`
17028    fi
17029    mon_fd_password=$key
17030 fi
17031
17032 mon_sd_password=
17033
17034 # Check whether --with-mon-sd-password was given.
17035 if test "${with_mon_sd_password+set}" = set; then
17036   withval=$with_mon_sd_password;
17037        if test "x$withval" != "xno" ; then
17038            mon_sd_password=$withval
17039        fi
17040
17041
17042 fi
17043
17044
17045 if test "x$mon_sd_password" = "x" ; then
17046    if test "x$OPENSSL" = "xnone" ; then
17047       key=`autoconf/randpass 41`
17048    else
17049       key=`openssl rand -base64 33`
17050    fi
17051    mon_sd_password=$key
17052 fi
17053
17054
17055
17056
17057
17058
17059
17060
17061 #
17062 # Pickup any database name
17063 #
17064 db_name=bacula
17065
17066 # Check whether --with-db_name was given.
17067 if test "${with_db_name+set}" = set; then
17068   withval=$with_db_name;
17069         if test "x$withval" != "x" ; then
17070              db_name=$withval
17071         fi
17072
17073
17074 fi
17075
17076
17077
17078 db_user=bacula
17079
17080 # Check whether --with-db_user was given.
17081 if test "${with_db_user+set}" = set; then
17082   withval=$with_db_user;
17083         if test "x$withval" != "x" ; then
17084              db_user=$withval
17085         fi
17086
17087
17088 fi
17089
17090
17091
17092 db_password=
17093
17094 # Check whether --with-db_password was given.
17095 if test "${with_db_password+set}" = set; then
17096   withval=$with_db_password;
17097         if test "x$withval" != "x" ; then
17098              db_password=$withval
17099         fi
17100
17101
17102 fi
17103
17104
17105
17106 #
17107 # Pickup a database port
17108 #
17109 db_port=" "
17110
17111 # Check whether --with-db_port was given.
17112 if test "${with_db_port+set}" = set; then
17113   withval=$with_db_port;
17114         if test "x$withval" != "x" ; then
17115              db_port=$withval
17116         fi
17117
17118
17119 fi
17120
17121
17122
17123 #
17124 # Handle users and groups for each daemon
17125 #
17126 dir_user=
17127
17128 # Check whether --with-dir_user was given.
17129 if test "${with_dir_user+set}" = set; then
17130   withval=$with_dir_user;
17131         if test "x$withval" != "x" ; then
17132              dir_user=$withval
17133         fi
17134
17135
17136 fi
17137
17138
17139 dir_group=
17140
17141 # Check whether --with-dir_group was given.
17142 if test "${with_dir_group+set}" = set; then
17143   withval=$with_dir_group;
17144         if test "x$withval" != "x" ; then
17145              dir_group=$withval
17146         fi
17147
17148
17149 fi
17150
17151
17152 sd_user=
17153
17154 # Check whether --with-sd_user was given.
17155 if test "${with_sd_user+set}" = set; then
17156   withval=$with_sd_user;
17157         if test "x$withval" != "x" ; then
17158              sd_user=$withval
17159         fi
17160
17161
17162 fi
17163
17164
17165 sd_group=
17166
17167 # Check whether --with-sd_group was given.
17168 if test "${with_sd_group+set}" = set; then
17169   withval=$with_sd_group;
17170         if test "x$withval" != "x" ; then
17171              sd_group=$withval
17172         fi
17173
17174
17175 fi
17176
17177
17178 fd_user=
17179
17180 # Check whether --with-fd_user was given.
17181 if test "${with_fd_user+set}" = set; then
17182   withval=$with_fd_user;
17183         if test "x$withval" != "x" ; then
17184              fd_user=$withval
17185         fi
17186
17187
17188 fi
17189
17190
17191 fd_group=
17192
17193 # Check whether --with-fd_group was given.
17194 if test "${with_fd_group+set}" = set; then
17195   withval=$with_fd_group;
17196         if test "x$withval" != "x" ; then
17197              fd_group=$withval
17198         fi
17199
17200
17201 fi
17202
17203
17204
17205
17206
17207
17208
17209
17210
17211 #
17212 # allow setting default executable permissions
17213 #
17214 SBINPERM=0754
17215
17216 # Check whether --with-sbin-perm was given.
17217 if test "${with_sbin_perm+set}" = set; then
17218   withval=$with_sbin_perm;
17219         if test "x$withval" != "x" ; then
17220             SBINPERM=$withval
17221         fi
17222
17223
17224 fi
17225
17226
17227
17228
17229 # ------------------------------------------------
17230 # Bacula check for various SQL database engines
17231 # ------------------------------------------------
17232 SQL_LIB=
17233
17234 db_found=no
17235 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17236 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17237
17238 # Check whether --with-postgresql was given.
17239 if test "${with_postgresql+set}" = set; then
17240   withval=$with_postgresql;
17241   if test "$withval" != "no"; then
17242       if test "$db_found" = "yes"; then
17243           { echo "$as_me:$LINENO: result: error" >&5
17244 echo "${ECHO_T}error" >&6; }
17245           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17246 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17247    { (exit 1); exit 1; }; };
17248       fi
17249       if test "$withval" = "yes"; then
17250           PG_CONFIG=`which pg_config`
17251           if test -n "$PG_CONFIG";then
17252               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17253               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17254               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17255           elif test -f /usr/local/include/libpq-fe.h; then
17256               POSTGRESQL_INCDIR=/usr/local/include
17257               if test -d /usr/local/lib64; then
17258                  POSTGRESQL_LIBDIR=/usr/local/lib64
17259               else
17260                  POSTGRESQL_LIBDIR=/usr/local/lib
17261               fi
17262               POSTGRESQL_BINDIR=/usr/local/bin
17263           elif test -f /usr/include/libpq-fe.h; then
17264               POSTGRESQL_INCDIR=/usr/include
17265               if test -d /usr/lib64; then
17266                  POSTGRESQL_LIBDIR=/usr/lib64
17267               else
17268                  POSTGRESQL_LIBDIR=/usr/lib
17269               fi
17270               POSTGRESQL_BINDIR=/usr/bin
17271           elif test -f /usr/include/pgsql/libpq-fe.h; then
17272               POSTGRESQL_INCDIR=/usr/include/pgsql
17273               if test -d /usr/lib64/pgsql; then
17274                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17275               else
17276                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17277               fi
17278               POSTGRESQL_BINDIR=/usr/bin
17279           elif test -f /usr/include/postgresql/libpq-fe.h; then
17280               POSTGRESQL_INCDIR=/usr/include/postgresql
17281               if test -d /usr/lib64/postgresql; then
17282                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17283               else
17284                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17285               fi
17286               POSTGRESQL_BINDIR=/usr/bin
17287           else
17288               { echo "$as_me:$LINENO: result: no" >&5
17289 echo "${ECHO_T}no" >&6; }
17290               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17291 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17292    { (exit 1); exit 1; }; }
17293           fi
17294       elif test -f $withval/include/libpq-fe.h; then
17295           POSTGRESQL_INCDIR=$withval/include
17296           POSTGRESQL_LIBDIR=$withval/lib
17297           POSTGRESQL_BINDIR=$withval/bin
17298       elif test -f $withval/include/postgresql/libpq-fe.h; then
17299           POSTGRESQL_INCDIR=$withval/include/postgresql
17300      if test -d $withval/lib64; then
17301          POSTGRESQL_LIBDIR=$withval/lib64
17302      else
17303          POSTGRESQL_LIBDIR=$withval/lib
17304      fi
17305           POSTGRESQL_BINDIR=$withval/bin
17306       else
17307           { echo "$as_me:$LINENO: result: no" >&5
17308 echo "${ECHO_T}no" >&6; }
17309           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17310 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17311    { (exit 1); exit 1; }; }
17312       fi
17313       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17314       { echo "$as_me:$LINENO: checking for crypt" >&5
17315 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17316 if test "${ac_cv_func_crypt+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319   cat >conftest.$ac_ext <<_ACEOF
17320 /* confdefs.h.  */
17321 _ACEOF
17322 cat confdefs.h >>conftest.$ac_ext
17323 cat >>conftest.$ac_ext <<_ACEOF
17324 /* end confdefs.h.  */
17325 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17326    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17327 #define crypt innocuous_crypt
17328
17329 /* System header to define __stub macros and hopefully few prototypes,
17330     which can conflict with char crypt (); below.
17331     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17332     <limits.h> exists even on freestanding compilers.  */
17333
17334 #ifdef __STDC__
17335 # include <limits.h>
17336 #else
17337 # include <assert.h>
17338 #endif
17339
17340 #undef crypt
17341
17342 /* Override any GCC internal prototype to avoid an error.
17343    Use char because int might match the return type of a GCC
17344    builtin and then its argument prototype would still apply.  */
17345 #ifdef __cplusplus
17346 extern "C"
17347 #endif
17348 char crypt ();
17349 /* The GNU C library defines this for functions which it implements
17350     to always fail with ENOSYS.  Some functions are actually named
17351     something starting with __ and the normal name is an alias.  */
17352 #if defined __stub_crypt || defined __stub___crypt
17353 choke me
17354 #endif
17355
17356 int
17357 main ()
17358 {
17359 return crypt ();
17360   ;
17361   return 0;
17362 }
17363 _ACEOF
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368   *) ac_try_echo=$ac_try;;
17369 esac
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371   (eval "$ac_link") 2>conftest.er1
17372   ac_status=$?
17373   grep -v '^ *+' conftest.er1 >conftest.err
17374   rm -f conftest.er1
17375   cat conftest.err >&5
17376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17377   (exit $ac_status); } && {
17378          test -z "$ac_c_werror_flag" ||
17379          test ! -s conftest.err
17380        } && test -s conftest$ac_exeext &&
17381        $as_test_x conftest$ac_exeext; then
17382   ac_cv_func_crypt=yes
17383 else
17384   echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17386
17387         ac_cv_func_crypt=no
17388 fi
17389
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391       conftest$ac_exeext conftest.$ac_ext
17392 fi
17393 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17394 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17395 if test $ac_cv_func_crypt = yes; then
17396   :
17397 else
17398   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17399 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17400 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17401   echo $ECHO_N "(cached) $ECHO_C" >&6
17402 else
17403   ac_check_lib_save_LIBS=$LIBS
17404 LIBS="-lcrypt  $LIBS"
17405 cat >conftest.$ac_ext <<_ACEOF
17406 /* confdefs.h.  */
17407 _ACEOF
17408 cat confdefs.h >>conftest.$ac_ext
17409 cat >>conftest.$ac_ext <<_ACEOF
17410 /* end confdefs.h.  */
17411
17412 /* Override any GCC internal prototype to avoid an error.
17413    Use char because int might match the return type of a GCC
17414    builtin and then its argument prototype would still apply.  */
17415 #ifdef __cplusplus
17416 extern "C"
17417 #endif
17418 char crypt ();
17419 int
17420 main ()
17421 {
17422 return crypt ();
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (ac_try="$ac_link"
17429 case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_link") 2>conftest.er1
17435   ac_status=$?
17436   grep -v '^ *+' conftest.er1 >conftest.err
17437   rm -f conftest.er1
17438   cat conftest.err >&5
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } && {
17441          test -z "$ac_c_werror_flag" ||
17442          test ! -s conftest.err
17443        } && test -s conftest$ac_exeext &&
17444        $as_test_x conftest$ac_exeext; then
17445   ac_cv_lib_crypt_crypt=yes
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450         ac_cv_lib_crypt_crypt=no
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454       conftest$ac_exeext conftest.$ac_ext
17455 LIBS=$ac_check_lib_save_LIBS
17456 fi
17457 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17458 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17459 if test $ac_cv_lib_crypt_crypt = yes; then
17460   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17461 fi
17462
17463 fi
17464
17465       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17466       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17467       SQL_BINDIR=$POSTGRESQL_BINDIR
17468       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17469
17470       cat >>confdefs.h <<\_ACEOF
17471 #define HAVE_POSTGRESQL 1
17472 _ACEOF
17473
17474       { echo "$as_me:$LINENO: result: yes" >&5
17475 echo "${ECHO_T}yes" >&6; }
17476       db_found=yes
17477       support_postgresql=yes
17478       db_type=PostgreSQL
17479       DB_TYPE=postgresql
17480   else
17481       { echo "$as_me:$LINENO: result: no" >&5
17482 echo "${ECHO_T}no" >&6; }
17483   fi
17484
17485 else
17486
17487   { echo "$as_me:$LINENO: result: no" >&5
17488 echo "${ECHO_T}no" >&6; }
17489
17490 fi
17491
17492
17493
17494
17495
17496
17497
17498
17499 db_found=no
17500 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17501 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17502
17503 # Check whether --with-mysql was given.
17504 if test "${with_mysql+set}" = set; then
17505   withval=$with_mysql;
17506   if test "$withval" != "no"; then
17507         if test "$withval" = "yes"; then
17508            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17509                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17510                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17511                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17512                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17513                    else
17514                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17515                    fi
17516                    MYSQL_BINDIR=/usr/local/mysql/bin
17517            elif test -f /usr/include/mysql/mysql.h; then
17518                    MYSQL_INCDIR=/usr/include/mysql
17519                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17520                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17521                            MYSQL_LIBDIR=/usr/lib64/mysql
17522                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17523                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17524                            MYSQL_LIBDIR=/usr/lib/mysql
17525                    else
17526                            MYSQL_LIBDIR=/usr/lib
17527                    fi
17528                    MYSQL_BINDIR=/usr/bin
17529            elif test -f /usr/include/mysql.h; then
17530                    MYSQL_INCDIR=/usr/include
17531                    if test -f /usr/lib64/libmysqlclient_r.a \
17532                         -o -f /usr/lib64/libmysqlclient_r.so; then
17533                            MYSQL_LIBDIR=/usr/lib64
17534                    else
17535                            MYSQL_LIBDIR=/usr/lib
17536                    fi
17537                    MYSQL_BINDIR=/usr/bin
17538            elif test -f /usr/local/include/mysql/mysql.h; then
17539                    MYSQL_INCDIR=/usr/local/include/mysql
17540                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17541                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17542                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17543                    else
17544                            MYSQL_LIBDIR=/usr/local/lib/mysql
17545                    fi
17546                    MYSQL_BINDIR=/usr/local/bin
17547            elif test -f /usr/local/include/mysql.h; then
17548                    MYSQL_INCDIR=/usr/local/include
17549                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17550                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17551                            MYSQL_LIBDIR=/usr/local/lib64
17552                    else
17553                            MYSQL_LIBDIR=/usr/local/lib
17554                    fi
17555                    MYSQL_BINDIR=/usr/local/bin
17556            else
17557               { echo "$as_me:$LINENO: result: no" >&5
17558 echo "${ECHO_T}no" >&6; }
17559               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17560 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17561    { (exit 1); exit 1; }; }
17562            fi
17563         else
17564            if test -f $withval/include/mysql/mysql.h; then
17565               MYSQL_INCDIR=$withval/include/mysql
17566               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17567                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17568                  MYSQL_LIBDIR=$withval/lib64/mysql
17569               else
17570                  MYSQL_LIBDIR=$withval/lib/mysql
17571                  # Solaris ...
17572                  if test -f $withval/lib/libmysqlclient_r.so; then
17573                     MYSQL_LIBDIR=$withval/lib
17574                  fi
17575               fi
17576               MYSQL_BINDIR=$withval/bin
17577            elif test -f $withval/include/mysql.h; then
17578               MYSQL_INCDIR=$withval/include
17579               if test -f $withval/lib64/libmysqlclient_r.a \
17580                    -o -f $withval/lib64/libmysqlclient_r.so; then
17581                  MYSQL_LIBDIR=$withval/lib64
17582               else
17583                  MYSQL_LIBDIR=$withval/lib
17584               fi
17585               MYSQL_BINDIR=$withval/bin
17586            else
17587               { echo "$as_me:$LINENO: result: no" >&5
17588 echo "${ECHO_T}no" >&6; }
17589               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17590 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17591    { (exit 1); exit 1; }; }
17592            fi
17593         fi
17594     SQL_INCLUDE=-I$MYSQL_INCDIR
17595     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17596          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17597        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17598        cat >>confdefs.h <<\_ACEOF
17599 #define HAVE_THREAD_SAFE_MYSQL 1
17600 _ACEOF
17601
17602     fi
17603     SQL_BINDIR=$MYSQL_BINDIR
17604     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17605
17606     cat >>confdefs.h <<\_ACEOF
17607 #define HAVE_MYSQL 1
17608 _ACEOF
17609
17610     { echo "$as_me:$LINENO: result: yes" >&5
17611 echo "${ECHO_T}yes" >&6; }
17612     db_found=yes
17613     support_mysql=yes
17614     db_type=MySQL
17615     DB_TYPE=mysql
17616
17617   else
17618         { echo "$as_me:$LINENO: result: no" >&5
17619 echo "${ECHO_T}no" >&6; }
17620   fi
17621
17622
17623 fi
17624
17625
17626
17627 # Check whether --with-embedded-mysql was given.
17628 if test "${with_embedded_mysql+set}" = set; then
17629   withval=$with_embedded_mysql;
17630   if test "$withval" != "no"; then
17631         if test "$withval" = "yes"; then
17632                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17633                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17634                         if test -d /usr/local/mysql/lib64/mysql; then
17635                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17636                         else
17637                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17638                         fi
17639                         MYSQL_BINDIR=/usr/local/mysql/bin
17640                 elif test -f /usr/include/mysql/mysql.h; then
17641                         MYSQL_INCDIR=/usr/include/mysql
17642                         if test -d /usr/lib64/mysql; then
17643                                 MYSQL_LIBDIR=/usr/lib64/mysql
17644                         else
17645                                 MYSQL_LIBDIR=/usr/lib/mysql
17646                         fi
17647                         MYSQL_BINDIR=/usr/bin
17648                 elif test -f /usr/include/mysql.h; then
17649                         MYSQL_INCDIR=/usr/include
17650                         if test -d /usr/lib64; then
17651                                 MYSQL_LIBDIR=/usr/lib64
17652                         else
17653                                 MYSQL_LIBDIR=/usr/lib
17654                         fi
17655                         MYSQL_BINDIR=/usr/bin
17656                 elif test -f /usr/local/include/mysql/mysql.h; then
17657                         MYSQL_INCDIR=/usr/local/include/mysql
17658                         if test -d /usr/local/lib64/mysql; then
17659                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17660                         else
17661                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17662                         fi
17663                         MYSQL_BINDIR=/usr/local/bin
17664                 elif test -f /usr/local/include/mysql.h; then
17665                         MYSQL_INCDIR=/usr/local/include
17666                         if test -d /usr/local/lib64; then
17667                                 MYSQL_LIBDIR=/usr/local/lib64
17668                         else
17669                                 MYSQL_LIBDIR=/usr/local/lib
17670                         fi
17671                         MYSQL_BINDIR=/usr/local/bin
17672                 else
17673                    { echo "$as_me:$LINENO: result: no" >&5
17674 echo "${ECHO_T}no" >&6; }
17675                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17676 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17677    { (exit 1); exit 1; }; }
17678                 fi
17679         else
17680                 if test -f $withval/include/mysql/mysql.h; then
17681                         MYSQL_INCDIR=$withval/include/mysql
17682                         if test -d $withval/lib64/mysql; then
17683                                 MYSQL_LIBDIR=$withval/lib64/mysql
17684                         else
17685                                 MYSQL_LIBDIR=$withval/lib/mysql
17686                         fi
17687                         MYSQL_BINDIR=$withval/bin
17688                 elif test -f $withval/include/mysql.h; then
17689                         MYSQL_INCDIR=$withval/include
17690                         if test -d $withval/lib64; then
17691                                 MYSQL_LIBDIR=$withval/lib64
17692                         else
17693                                 MYSQL_LIBDIR=$withval/lib
17694                         fi
17695                         MYSQL_BINDIR=$withval/bin
17696                 else
17697                    { echo "$as_me:$LINENO: result: no" >&5
17698 echo "${ECHO_T}no" >&6; }
17699                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17700 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17701    { (exit 1); exit 1; }; }
17702                 fi
17703         fi
17704     SQL_INCLUDE=-I$MYSQL_INCDIR
17705     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17706     SQL_BINDIR=$MYSQL_BINDIR
17707     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17708
17709     cat >>confdefs.h <<\_ACEOF
17710 #define HAVE_MYSQL 1
17711 _ACEOF
17712
17713     cat >>confdefs.h <<\_ACEOF
17714 #define HAVE_EMBEDDED_MYSQL 1
17715 _ACEOF
17716
17717     { echo "$as_me:$LINENO: result: yes" >&5
17718 echo "${ECHO_T}yes" >&6; }
17719     db_found=yes
17720     support_mysql=yes
17721     db_type=MySQL
17722     DB_TYPE=mysql
17723
17724   else
17725         { echo "$as_me:$LINENO: result: no" >&5
17726 echo "${ECHO_T}no" >&6; }
17727   fi
17728
17729
17730 fi
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741 db_found=no
17742 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17743 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17744
17745 # Check whether --with-sqlite3 was given.
17746 if test "${with_sqlite3+set}" = set; then
17747   withval=$with_sqlite3;
17748   if test "$withval" != "no"; then
17749      if test "$withval" = "yes"; then
17750         if test -f /usr/local/include/sqlite3.h; then
17751            SQLITE_INCDIR=/usr/local/include
17752            if test -d /usr/local/lib64; then
17753               SQLITE_LIBDIR=/usr/local/lib64
17754            else
17755               SQLITE_LIBDIR=/usr/local/lib
17756            fi
17757            SQLITE_BINDIR=/usr/local/bin
17758         elif test -f /usr/include/sqlite3.h; then
17759            SQLITE_INCDIR=/usr/include
17760            if test -d /usr/lib64; then
17761               SQLITE_LIBDIR=/usr/lib64
17762            else
17763               SQLITE_LIBDIR=/usr/lib
17764            fi
17765            SQLITE_BINDIR=/usr/bin
17766         elif test -f $prefix/include/sqlite3.h; then
17767            SQLITE_INCDIR=$prefix/include
17768            if test -d $prefix/lib64; then
17769               SQLITE_LIBDIR=$prefix/lib64
17770            else
17771               SQLITE_LIBDIR=$prefix/lib
17772            fi
17773            SQLITE_BINDIR=$prefix/bin
17774         else
17775            { echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6; }
17777            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17778 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17779    { (exit 1); exit 1; }; }
17780         fi
17781      else
17782         if test -f $withval/sqlite3.h; then
17783            SQLITE_INCDIR=$withval
17784            SQLITE_LIBDIR=$withval
17785            SQLITE_BINDIR=$withval
17786         elif test -f $withval/include/sqlite3.h; then
17787            SQLITE_INCDIR=$withval/include
17788            if test -d $withval/lib64; then
17789               SQLITE_LIBDIR=$withval/lib64
17790            else
17791               SQLITE_LIBDIR=$withval/lib
17792            fi
17793            SQLITE_BINDIR=$withval/bin
17794         else
17795            { echo "$as_me:$LINENO: result: no" >&5
17796 echo "${ECHO_T}no" >&6; }
17797            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17798 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17799    { (exit 1); exit 1; }; }
17800         fi
17801      fi
17802      SQL_INCLUDE=-I$SQLITE_INCDIR
17803      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17804      SQL_BINDIR=$SQLITE_BINDIR
17805      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17806
17807      cat >>confdefs.h <<\_ACEOF
17808 #define HAVE_SQLITE3 1
17809 _ACEOF
17810
17811      { echo "$as_me:$LINENO: result: yes" >&5
17812 echo "${ECHO_T}yes" >&6; }
17813      db_found=yes
17814      support_sqlite3=yes
17815      db_type=SQLite3
17816      DB_TYPE=sqlite3
17817
17818   else
17819      { echo "$as_me:$LINENO: result: no" >&5
17820 echo "${ECHO_T}no" >&6; }
17821   fi
17822
17823 else
17824
17825   { echo "$as_me:$LINENO: result: no" >&5
17826 echo "${ECHO_T}no" >&6; }
17827
17828 fi
17829
17830
17831
17832
17833
17834
17835
17836
17837 db_found=no
17838 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17839 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17840
17841 # Check whether --with-sqlite was given.
17842 if test "${with_sqlite+set}" = set; then
17843   withval=$with_sqlite;
17844   if test "$withval" != "no"; then
17845      if test "$withval" = "yes"; then
17846         if test -f /usr/local/include/sqlite.h; then
17847            SQLITE_INCDIR=/usr/local/include
17848            if test -d /usr/local/lib64; then
17849               SQLITE_LIBDIR=/usr/local/lib64
17850            else
17851               SQLITE_LIBDIR=/usr/local/lib
17852            fi
17853            SQLITE_BINDIR=/usr/local/bin
17854         elif test -f /usr/include/sqlite.h; then
17855            SQLITE_INCDIR=/usr/include
17856            if test -d /usr/lib64; then
17857               SQLITE_LIBDIR=/usr/lib64
17858            else
17859               SQLITE_LIBDIR=/usr/lib
17860            fi
17861            SQLITE_BINDIR=/usr/bin
17862         elif test -f $prefix/include/sqlite.h; then
17863            SQLITE_INCDIR=$prefix/include
17864            if test -d $prefix/lib64; then
17865               SQLITE_LIBDIR=$prefix/lib64
17866            else
17867               SQLITE_LIBDIR=$prefix/lib
17868            fi
17869            SQLITE_BINDIR=$prefix/bin
17870         else
17871            { echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6; }
17873            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17874 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17875    { (exit 1); exit 1; }; }
17876         fi
17877      else
17878         if test -f $withval/sqlite.h; then
17879            SQLITE_INCDIR=$withval
17880            SQLITE_LIBDIR=$withval
17881            SQLITE_BINDIR=$withval
17882         elif test -f $withval/include/sqlite.h; then
17883            SQLITE_INCDIR=$withval/include
17884            if test -d $withval/lib64; then
17885               SQLITE_LIBDIR=$withval/lib64
17886            else
17887               SQLITE_LIBDIR=$withval/lib
17888            fi
17889            SQLITE_BINDIR=$withval/bin
17890         else
17891            { echo "$as_me:$LINENO: result: no" >&5
17892 echo "${ECHO_T}no" >&6; }
17893            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17894 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17895    { (exit 1); exit 1; }; }
17896         fi
17897      fi
17898      SQL_INCLUDE=-I$SQLITE_INCDIR
17899      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17900      SQL_BINDIR=$SQLITE_BINDIR
17901      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17902
17903      cat >>confdefs.h <<\_ACEOF
17904 #define HAVE_SQLITE 1
17905 _ACEOF
17906
17907      { echo "$as_me:$LINENO: result: yes" >&5
17908 echo "${ECHO_T}yes" >&6; }
17909      db_found=yes
17910      support_sqlite=yes
17911      db_type=SQLite
17912      DB_TYPE=sqlite
17913
17914   else
17915      { echo "$as_me:$LINENO: result: no" >&5
17916 echo "${ECHO_T}no" >&6; }
17917   fi
17918
17919 else
17920
17921   { echo "$as_me:$LINENO: result: no" >&5
17922 echo "${ECHO_T}no" >&6; }
17923
17924 fi
17925
17926
17927
17928
17929
17930
17931
17932
17933 db_found=no
17934 { echo "$as_me:$LINENO: checking for DBI support" >&5
17935 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17936
17937 # Check whether --with-dbi was given.
17938 if test "${with_dbi+set}" = set; then
17939   withval=$with_dbi;
17940   if test "$withval" != "no"; then
17941      if test "$withval" = "yes"; then
17942         if test -f /usr/local/include/dbi/dbi.h; then
17943            DBI_INCDIR=/usr/local/dbi/include
17944            if test -d /usr/local/lib64; then
17945               DBI_LIBDIR=/usr/local/lib64
17946            else
17947               DBI_LIBDIR=/usr/local/lib
17948            fi
17949            DBI_BINDIR=/usr/local/bin
17950         elif test -f /usr/include/dbi/dbi.h; then
17951            DBI_INCDIR=/usr/include
17952            if test -d /usr/lib64; then
17953               DBI_LIBDIR=/usr/lib64
17954            else
17955               DBI_LIBDIR=/usr/lib
17956            fi
17957            DBI_BINDIR=/usr/bin
17958         elif test -f $prefix/include/dbi/dbi.h; then
17959            DBI_INCDIR=$prefix/include
17960            if test -d $prefix/lib64; then
17961               DBI_LIBDIR=$prefix/lib64
17962            else
17963               DBI_LIBDIR=$prefix/lib
17964            fi
17965            DBI_BINDIR=$prefix/bin
17966         else
17967            { echo "$as_me:$LINENO: result: no" >&5
17968 echo "${ECHO_T}no" >&6; }
17969            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17970 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17971    { (exit 1); exit 1; }; }
17972         fi
17973         if test -d /usr/local/lib/dbd; then
17974            DRIVERDIR=/usr/local/lib/dbd
17975            if test -d /usr/local/lib64/dbd; then
17976               DRIVERDIR=/usr/local/lib64/dbd
17977            else
17978               DRIVERDIR=/usr/local/lib/dbd
17979            fi
17980         elif test -d /usr/lib/dbd; then
17981            DRIVERDIR=/usr/lib/dbd
17982            if test -d /usr/lib64/dbd; then
17983               DRIVERDIR=/usr/lib64/dbd
17984            else
17985               DRIVERDIR=/usr/lib/dbd
17986            fi
17987         elif test -d $prefix/lib/dbd; then
17988            if test -d $prefix/lib64/dbd; then
17989               DRIVERDIR=$prefix/lib64/dbd
17990            else
17991               DRIVERDIR=$prefix/lib/dbd
17992            fi
17993         else
17994            { echo "$as_me:$LINENO: result: no" >&5
17995 echo "${ECHO_T}no" >&6; }
17996            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17997 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17998    { (exit 1); exit 1; }; }
17999         fi
18000      else
18001         if test -f $withval/dbi.h; then
18002            DBI_INCDIR=$withval
18003            DBI_LIBDIR=$withval
18004            DBI_BINDIR=$withval
18005         elif test -f $withval/include/dbi/dbi.h; then
18006            DBI_INCDIR=$withval/include
18007            if test -d $withval/lib64; then
18008               DBI_LIBDIR=$withval/lib64
18009            else
18010               DBI_LIBDIR=$withval/lib
18011            fi
18012            DBI_BINDIR=$withval/bin
18013         else
18014            { echo "$as_me:$LINENO: result: no" >&5
18015 echo "${ECHO_T}no" >&6; }
18016            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
18017 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
18018    { (exit 1); exit 1; }; }
18019         fi
18020         if test -d $withval/dbd; then
18021            DRIVERDIR=$withval/dbd
18022         elif test -d $withval/lib/; then
18023            if test -d $withval/lib64/dbd; then
18024               DRIVERDIR=$withval/lib64/dbd
18025            else
18026               DRIVERDIR=$withval/lib/dbd
18027            fi
18028         else
18029            { echo "$as_me:$LINENO: result: no" >&5
18030 echo "${ECHO_T}no" >&6; }
18031            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
18032 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
18033    { (exit 1); exit 1; }; }
18034         fi
18035      fi
18036      SQL_INCLUDE=-I$DBI_INCDIR
18037      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18038      SQL_BINDIR=$DBI_BINDIR
18039      SQL_LIB=$DBI_LIBDIR/libdbi.a
18040      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18041
18042
18043 cat >>confdefs.h <<\_ACEOF
18044 #define HAVE_DBI 1
18045 _ACEOF
18046
18047      { echo "$as_me:$LINENO: result: yes" >&5
18048 echo "${ECHO_T}yes" >&6; }
18049      db_found=yes
18050      support_dbi=yes
18051      db_type=DBI
18052      DB_TYPE=dbi
18053      uncomment_dbi=" "
18054
18055   else
18056      { echo "$as_me:$LINENO: result: no" >&5
18057 echo "${ECHO_T}no" >&6; }
18058   fi
18059
18060 else
18061
18062   { echo "$as_me:$LINENO: result: no" >&5
18063 echo "${ECHO_T}no" >&6; }
18064
18065 fi
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076 db_found=no
18077 db_prog=no
18078 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18079 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18080
18081 # Check whether --with-dbi-driver was given.
18082 if test "${with_dbi_driver+set}" = set; then
18083   withval=$with_dbi_driver;
18084   if test "$withval" != "no"; then
18085      case $withval in
18086         "mysql")
18087            db_prog="mysql"
18088            if test -f /usr/local/mysql/bin/mysql; then
18089               SQL_BINDIR=/usr/local/mysql/bin
18090               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18091                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18092                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18093               else
18094                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18095               fi
18096            elif test -f /usr/bin/mysql; then
18097               SQL_BINDIR=/usr/bin
18098               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18099                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18100                   SQL_LIBDIR=/usr/lib64/mysql
18101               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18102                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18103                   SQL_LIBDIR=/usr/lib/mysql
18104               else
18105                   SQL_LIBDIR=/usr/lib
18106               fi
18107            elif test -f /usr/local/bin/mysql; then
18108               SQL_BINDIR=/usr/local/bin
18109               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18110                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18111                   SQL_LIBDIR=/usr/local/lib64/mysql
18112               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18113                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18114                   SQL_LIBDIR=/usr/local/lib/mysql
18115               else
18116                   SQL_LIBDIR=/usr/local/lib
18117               fi
18118            elif test -f $withval/bin/mysql; then
18119               SQL_BINDIR=$withval/bin
18120               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18121                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18122                   SQL_LIBDIR=$withval/lib64/mysql
18123               elif test -f $withval/lib64/libmysqlclient_r.a \
18124                   -o -f $withval/lib64/libmysqlclient_r.so; then
18125                   SQL_LIBDIR=$withval/lib64
18126               elif test -f $withval/lib/libmysqlclient_r.a \
18127                   -o -f $withval/lib/libmysqlclient_r.so; then
18128                   SQL_LIBDIR=$withval/lib/
18129               else
18130                   SQL_LIBDIR=$withval/lib/mysql
18131               fi
18132            else
18133               { echo "$as_me:$LINENO: result: no" >&5
18134 echo "${ECHO_T}no" >&6; }
18135               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18136 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18137    { (exit 1); exit 1; }; }
18138            fi
18139            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18140         ;;
18141         "postgresql")
18142            db_prog="postgresql"
18143            PG_CONFIG=`which pg_config`
18144            if test -n "$PG_CONFIG"; then
18145               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18146               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18147            elif test -f /usr/local/bin/psql; then
18148               SQL_BINDIR=/usr/local/bin
18149               if test -d /usr/local/lib64; then
18150                  SQL_LIBDIR=/usr/local/lib64
18151               else
18152                  SQL_LIBDIR=/usr/local/lib
18153               fi
18154            elif test -f /usr/bin/psql; then
18155               SQL_BINDIR=/usr/local/bin
18156               if test -d /usr/lib64/postgresql; then
18157                  SQL_LIBDIR=/usr/lib64/postgresql
18158               elif test -d /usr/lib/postgresql; then
18159                  SQL_LIBDIR=/usr/lib/postgresql
18160               elif test -d /usr/lib64; then
18161                  SQL_LIBDIR=/usr/lib64
18162               else
18163                  SQL_LIBDIR=/usr/lib
18164               fi
18165            elif test -f $withval/bin/psql; then
18166               SQL_BINDIR=$withval/bin
18167               if test -d $withval/lib64; then
18168                  SQL_LIBDIR=$withval/lib64
18169               else
18170                  SQL_LIBDIR=$withval/lib
18171               fi
18172            else
18173               { echo "$as_me:$LINENO: result: no" >&5
18174 echo "${ECHO_T}no" >&6; }
18175               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18176 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18177    { (exit 1); exit 1; }; }
18178            fi
18179            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18180         ;;
18181         "sqlite")
18182            db_prog="sqlite"
18183            if test -f /usr/local/bin/sqlite; then
18184               SQL_BINDIR=/usr/local/bin
18185               if test -d /usr/local/lib64; then
18186                  SQL_LIBDIR=/usr/local/lib64
18187               else
18188                  SQL_LIBDIR=/usr/local/lib
18189               fi
18190            elif test -f /usr/bin/sqlite; then
18191               SQL_BINDIR=/usr/bin
18192               if test -d /usr/lib64; then
18193                  SQL_LIBDIR=/usr/lib64
18194               else
18195                  SQL_LIBDIR=/usr/lib
18196               fi
18197            elif test -f $withval/bin/sqlite; then
18198               SQL_BINDIR=$withval/bin
18199               if test -d $withval/lib64; then
18200                  SQL_LIBDIR=$withval/lib64
18201               else
18202                  SQL_LIBDIR=$withval/lib
18203               fi
18204            else
18205               { echo "$as_me:$LINENO: result: no" >&5
18206 echo "${ECHO_T}no" >&6; }
18207               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18208 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18209    { (exit 1); exit 1; }; }
18210            fi
18211            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
18212         ;;
18213         "sqlite3")
18214            db_prog="sqlite3"
18215            if test -f /usr/local/bin/sqlite3; then
18216               SQL_BINDIR=/usr/local/bin
18217               if test -d /usr/local/lib64; then
18218                  SQL_LIBDIR=/usr/local/lib64
18219               else
18220                  SQL_LIBDIR=/usr/local/lib
18221               fi
18222            elif test -f /usr/bin/sqlite3; then
18223               SQL_BINDIR=/usr/bin
18224               if test -d /usr/lib64; then
18225                  SQL_LIBDIR=/usr/lib64
18226               else
18227                  SQL_LIBDIR=/usr/lib
18228               fi
18229            elif test -f $withval/bin/sqlite3; then
18230               SQL_BINDIR=$withval/bin
18231               if test -d $withval/lib64; then
18232                  SQL_LIBDIR=$withval/lib64
18233               else
18234                  SQL_LIBDIR=$withval/lib
18235               fi
18236            else
18237               { echo "$as_me:$LINENO: result: no" >&5
18238 echo "${ECHO_T}no" >&6; }
18239               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18240 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18241    { (exit 1); exit 1; }; }
18242            fi
18243            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
18244         ;;
18245         *)
18246            { echo "$as_me:$LINENO: result: no" >&5
18247 echo "${ECHO_T}no" >&6; }
18248            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18249 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18250    { (exit 1); exit 1; }; }
18251         ;;
18252      esac
18253
18254      { echo "$as_me:$LINENO: result: yes" >&5
18255 echo "${ECHO_T}yes" >&6; }
18256      DB_PROG=$db_prog
18257   else
18258      { echo "$as_me:$LINENO: result: no" >&5
18259 echo "${ECHO_T}no" >&6; }
18260   fi
18261
18262 else
18263
18264   { echo "$as_me:$LINENO: result: no" >&5
18265 echo "${ECHO_T}no" >&6; }
18266
18267 fi
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278 # -------------------------------------------
18279 # enable batch attribute DB insert (default on)
18280 # -------------------------------------------
18281 support_batch_insert=no
18282 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18283 pkg=$?
18284 if test $pkg = 0; then
18285    support_batch_insert=yes
18286    # Check whether --enable-batch-insert was given.
18287 if test "${enable_batch_insert+set}" = set; then
18288   enableval=$enable_batch_insert; if test x$enableval = xno; then
18289        support_batch_insert=no
18290       else
18291        support_batch_insert=yes
18292      fi
18293 fi
18294
18295 fi
18296
18297 # Check if postgresql support batch mode
18298 if test x$DB_TYPE = xpostgresql; then
18299    A=`nm $SQL_LIB | grep PQputCopyData`
18300    pkg=$?
18301    if test $pkg != 0; then
18302       support_batch_insert=no
18303    fi
18304 fi
18305
18306 if test x$DB_TYPE = xdbi; then
18307    DB_TYPE=$DB_PROG
18308    db_type=$DB_PROG
18309    pkg=1
18310    # Check for batch insert
18311    if test $DB_PROG = postgresql; then
18312       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18313       pkg=$?
18314    fi
18315
18316    if test $DB_PROG = mysql; then
18317       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18318       pkg=$?
18319    fi
18320
18321    if test $DB_PROG = sqlite3; then
18322       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18323       pkg=$?
18324    fi
18325
18326    if test $pkg = 0; then
18327       # Check whether --enable-batch-insert was given.
18328 if test "${enable_batch_insert+set}" = set; then
18329   enableval=$enable_batch_insert; if test x$enableval = xno; then
18330          support_batch_insert=no
18331        else
18332          support_batch_insert=yes
18333       fi
18334 fi
18335
18336    fi
18337 else
18338 # If dbi was not chosen, let the comment in file
18339 uncomment_dbi="#"
18340 fi
18341
18342
18343
18344 if test $support_batch_insert = yes ; then
18345
18346 cat >>confdefs.h <<\_ACEOF
18347 #define HAVE_BATCH_FILE_INSERT 1
18348 _ACEOF
18349
18350 fi
18351
18352
18353 cat >>confdefs.h <<\_ACEOF
18354 #define PROTOTYPES 1
18355 _ACEOF
18356
18357
18358 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18359     if test -z "$CCOPTS"; then
18360         CCOPTS='-g -O2 -Wall'
18361     fi
18362     CFLAGS="$CCOPTS"
18363 fi
18364
18365
18366
18367
18368 largefile_support="no"
18369
18370    # Check whether --enable-largefile was given.
18371 if test "${enable_largefile+set}" = set; then
18372   enableval=$enable_largefile;
18373 fi
18374
18375    if test "$enable_largefile" != no; then
18376      if test -n "$ac_tool_prefix"; then
18377   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18378 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18381 if test "${ac_cv_prog_GETCONF+set}" = set; then
18382   echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384   if test -n "$GETCONF"; then
18385   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18386 else
18387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18388 for as_dir in $PATH
18389 do
18390   IFS=$as_save_IFS
18391   test -z "$as_dir" && as_dir=.
18392   for ac_exec_ext in '' $ac_executable_extensions; do
18393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18394     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18396     break 2
18397   fi
18398 done
18399 done
18400 IFS=$as_save_IFS
18401
18402 fi
18403 fi
18404 GETCONF=$ac_cv_prog_GETCONF
18405 if test -n "$GETCONF"; then
18406   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18407 echo "${ECHO_T}$GETCONF" >&6; }
18408 else
18409   { echo "$as_me:$LINENO: result: no" >&5
18410 echo "${ECHO_T}no" >&6; }
18411 fi
18412
18413
18414 fi
18415 if test -z "$ac_cv_prog_GETCONF"; then
18416   ac_ct_GETCONF=$GETCONF
18417   # Extract the first word of "getconf", so it can be a program name with args.
18418 set dummy getconf; ac_word=$2
18419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18421 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18422   echo $ECHO_N "(cached) $ECHO_C" >&6
18423 else
18424   if test -n "$ac_ct_GETCONF"; then
18425   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18426 else
18427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18428 for as_dir in $PATH
18429 do
18430   IFS=$as_save_IFS
18431   test -z "$as_dir" && as_dir=.
18432   for ac_exec_ext in '' $ac_executable_extensions; do
18433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18434     ac_cv_prog_ac_ct_GETCONF="getconf"
18435     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18436     break 2
18437   fi
18438 done
18439 done
18440 IFS=$as_save_IFS
18441
18442 fi
18443 fi
18444 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18445 if test -n "$ac_ct_GETCONF"; then
18446   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18447 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18448 else
18449   { echo "$as_me:$LINENO: result: no" >&5
18450 echo "${ECHO_T}no" >&6; }
18451 fi
18452
18453   if test "x$ac_ct_GETCONF" = x; then
18454     GETCONF=""
18455   else
18456     case $cross_compiling:$ac_tool_warned in
18457 yes:)
18458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18459 whose name does not start with the host triplet.  If you think this
18460 configuration is useful to you, please write to autoconf@gnu.org." >&5
18461 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18462 whose name does not start with the host triplet.  If you think this
18463 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18464 ac_tool_warned=yes ;;
18465 esac
18466     GETCONF=$ac_ct_GETCONF
18467   fi
18468 else
18469   GETCONF="$ac_cv_prog_GETCONF"
18470 fi
18471
18472      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18473 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18474 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18475   echo $ECHO_N "(cached) $ECHO_C" >&6
18476 else
18477   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18478         ac_cv_sys_largefile_CFLAGS=no
18479         case "$host_os" in
18480            # IRIX 6.2 and later require cc -n32.
18481            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18482              if test "$GCC" != yes; then
18483                ac_cv_sys_largefile_CFLAGS=-n32
18484              fi
18485              ac_save_CC="$CC"
18486              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18487              cat >conftest.$ac_ext <<_ACEOF
18488 /* confdefs.h.  */
18489 _ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h.  */
18493
18494 int
18495 main ()
18496 {
18497
18498   ;
18499   return 0;
18500 }
18501 _ACEOF
18502 rm -f conftest.$ac_objext conftest$ac_exeext
18503 if { (ac_try="$ac_link"
18504 case "(($ac_try" in
18505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18506   *) ac_try_echo=$ac_try;;
18507 esac
18508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18509   (eval "$ac_link") 2>conftest.er1
18510   ac_status=$?
18511   grep -v '^ *+' conftest.er1 >conftest.err
18512   rm -f conftest.er1
18513   cat conftest.err >&5
18514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515   (exit $ac_status); } && {
18516          test -z "$ac_c_werror_flag" ||
18517          test ! -s conftest.err
18518        } && test -s conftest$ac_exeext &&
18519        $as_test_x conftest$ac_exeext; then
18520   :
18521 else
18522   echo "$as_me: failed program was:" >&5
18523 sed 's/^/| /' conftest.$ac_ext >&5
18524
18525         ac_cv_sys_largefile_CFLAGS=no
18526 fi
18527
18528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18529       conftest$ac_exeext conftest.$ac_ext
18530              CC="$ac_save_CC"
18531            esac
18532       }
18533 fi
18534 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18535 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18536      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18537 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18538 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18539   echo $ECHO_N "(cached) $ECHO_C" >&6
18540 else
18541   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18542         ac_cv_sys_largefile_LDFLAGS=no
18543
18544       }
18545 fi
18546 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18547 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18548      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18549 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18550 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18551   echo $ECHO_N "(cached) $ECHO_C" >&6
18552 else
18553   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18554         ac_cv_sys_largefile_LIBS=no
18555
18556       }
18557 fi
18558 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18559 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18560
18561      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18562        case "$ac_flag" in
18563        no) ;;
18564        -D_FILE_OFFSET_BITS=*) ;;
18565        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18566        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18567        -D?* | -I?*)
18568          case "$ac_flag" in
18569    no) ;;
18570    ?*)
18571      case "$CPPFLAGS" in
18572      '') CPPFLAGS="$ac_flag" ;;
18573      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18574      esac ;;
18575    esac ;;
18576        *)
18577          case "$ac_flag" in
18578    no) ;;
18579    ?*)
18580      case "$CFLAGS" in
18581      '') CFLAGS="$ac_flag" ;;
18582      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18583      esac ;;
18584    esac ;;
18585        esac
18586      done
18587      case "$ac_cv_sys_largefile_LDFLAGS" in
18588    no) ;;
18589    ?*)
18590      case "$LDFLAGS" in
18591      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18592      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18593      esac ;;
18594    esac
18595      case "$ac_cv_sys_largefile_LIBS" in
18596    no) ;;
18597    ?*)
18598      case "$LIBS" in
18599      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18600      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18601      esac ;;
18602    esac
18603      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18604 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18605 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18606   echo $ECHO_N "(cached) $ECHO_C" >&6
18607 else
18608   ac_cv_sys_file_offset_bits=no
18609       ac_cv_sys_file_offset_bits=64
18610       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18611         case "$ac_flag" in
18612         -D_FILE_OFFSET_BITS)
18613           ac_cv_sys_file_offset_bits=1 ;;
18614         -D_FILE_OFFSET_BITS=*)
18615           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18616         esac
18617       done
18618
18619 fi
18620 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18621 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18622    if test "$ac_cv_sys_file_offset_bits" != no; then
18623
18624 cat >>confdefs.h <<_ACEOF
18625 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18626 _ACEOF
18627
18628    fi
18629      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18630 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18631 if test "${ac_cv_sys_largefile_source+set}" = set; then
18632   echo $ECHO_N "(cached) $ECHO_C" >&6
18633 else
18634   ac_cv_sys_largefile_source=no
18635       ac_cv_sys_largefile_source=1
18636       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18637         case "$ac_flag" in
18638         -D_LARGEFILE_SOURCE)
18639           ac_cv_sys_largefile_source=1 ;;
18640         -D_LARGEFILE_SOURCE=*)
18641           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18642         esac
18643       done
18644
18645 fi
18646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18647 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18648    if test "$ac_cv_sys_largefile_source" != no; then
18649
18650 cat >>confdefs.h <<_ACEOF
18651 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18652 _ACEOF
18653
18654    fi
18655      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18656 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18657 if test "${ac_cv_sys_large_files+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660   ac_cv_sys_large_files=no
18661       ac_cv_sys_large_files=1
18662       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18663         case "$ac_flag" in
18664         -D_LARGE_FILES)
18665           ac_cv_sys_large_files=1 ;;
18666         -D_LARGE_FILES=*)
18667           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18668         esac
18669       done
18670
18671 fi
18672 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18673 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18674    if test "$ac_cv_sys_large_files" != no; then
18675
18676 cat >>confdefs.h <<_ACEOF
18677 #define _LARGE_FILES $ac_cv_sys_large_files
18678 _ACEOF
18679
18680    fi
18681    fi
18682
18683
18684
18685 { echo "$as_me:$LINENO: checking for X" >&5
18686 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18687
18688
18689 # Check whether --with-x was given.
18690 if test "${with_x+set}" = set; then
18691   withval=$with_x;
18692 fi
18693
18694 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18695 if test "x$with_x" = xno; then
18696   # The user explicitly disabled X.
18697   have_x=disabled
18698 else
18699   case $x_includes,$x_libraries in #(
18700     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18701 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18702    { (exit 1); exit 1; }; };; #(
18703     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18704   echo $ECHO_N "(cached) $ECHO_C" >&6
18705 else
18706   # One or both of the vars are not set, and there is no cached value.
18707 ac_x_includes=no ac_x_libraries=no
18708 rm -f -r conftest.dir
18709 if mkdir conftest.dir; then
18710   cd conftest.dir
18711   cat >Imakefile <<'_ACEOF'
18712 incroot:
18713         @echo incroot='${INCROOT}'
18714 usrlibdir:
18715         @echo usrlibdir='${USRLIBDIR}'
18716 libdir:
18717         @echo libdir='${LIBDIR}'
18718 _ACEOF
18719   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18720     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18721     for ac_var in incroot usrlibdir libdir; do
18722       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18723     done
18724     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18725     for ac_extension in a so sl; do
18726       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18727          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18728         ac_im_usrlibdir=$ac_im_libdir; break
18729       fi
18730     done
18731     # Screen out bogus values from the imake configuration.  They are
18732     # bogus both because they are the default anyway, and because
18733     # using them would break gcc on systems where it needs fixed includes.
18734     case $ac_im_incroot in
18735         /usr/include) ac_x_includes= ;;
18736         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18737     esac
18738     case $ac_im_usrlibdir in
18739         /usr/lib | /lib) ;;
18740         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18741     esac
18742   fi
18743   cd ..
18744   rm -f -r conftest.dir
18745 fi
18746
18747 # Standard set of common directories for X headers.
18748 # Check X11 before X11Rn because it is often a symlink to the current release.
18749 ac_x_header_dirs='
18750 /usr/X11/include
18751 /usr/X11R6/include
18752 /usr/X11R5/include
18753 /usr/X11R4/include
18754
18755 /usr/include/X11
18756 /usr/include/X11R6
18757 /usr/include/X11R5
18758 /usr/include/X11R4
18759
18760 /usr/local/X11/include
18761 /usr/local/X11R6/include
18762 /usr/local/X11R5/include
18763 /usr/local/X11R4/include
18764
18765 /usr/local/include/X11
18766 /usr/local/include/X11R6
18767 /usr/local/include/X11R5
18768 /usr/local/include/X11R4
18769
18770 /usr/X386/include
18771 /usr/x386/include
18772 /usr/XFree86/include/X11
18773
18774 /usr/include
18775 /usr/local/include
18776 /usr/unsupported/include
18777 /usr/athena/include
18778 /usr/local/x11r5/include
18779 /usr/lpp/Xamples/include
18780
18781 /usr/openwin/include
18782 /usr/openwin/share/include'
18783
18784 if test "$ac_x_includes" = no; then
18785   # Guess where to find include files, by looking for Xlib.h.
18786   # First, try using that file with no special directory specified.
18787   cat >conftest.$ac_ext <<_ACEOF
18788 /* confdefs.h.  */
18789 _ACEOF
18790 cat confdefs.h >>conftest.$ac_ext
18791 cat >>conftest.$ac_ext <<_ACEOF
18792 /* end confdefs.h.  */
18793 #include <X11/Xlib.h>
18794 _ACEOF
18795 if { (ac_try="$ac_cpp conftest.$ac_ext"
18796 case "(($ac_try" in
18797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798   *) ac_try_echo=$ac_try;;
18799 esac
18800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18801   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18802   ac_status=$?
18803   grep -v '^ *+' conftest.er1 >conftest.err
18804   rm -f conftest.er1
18805   cat conftest.err >&5
18806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807   (exit $ac_status); } >/dev/null && {
18808          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18809          test ! -s conftest.err
18810        }; then
18811   # We can compile using X headers with no special include directory.
18812 ac_x_includes=
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817   for ac_dir in $ac_x_header_dirs; do
18818   if test -r "$ac_dir/X11/Xlib.h"; then
18819     ac_x_includes=$ac_dir
18820     break
18821   fi
18822 done
18823 fi
18824
18825 rm -f conftest.err conftest.$ac_ext
18826 fi # $ac_x_includes = no
18827
18828 if test "$ac_x_libraries" = no; then
18829   # Check for the libraries.
18830   # See if we find them without any special options.
18831   # Don't add to $LIBS permanently.
18832   ac_save_LIBS=$LIBS
18833   LIBS="-lX11 $LIBS"
18834   cat >conftest.$ac_ext <<_ACEOF
18835 /* confdefs.h.  */
18836 _ACEOF
18837 cat confdefs.h >>conftest.$ac_ext
18838 cat >>conftest.$ac_ext <<_ACEOF
18839 /* end confdefs.h.  */
18840 #include <X11/Xlib.h>
18841 int
18842 main ()
18843 {
18844 XrmInitialize ()
18845   ;
18846   return 0;
18847 }
18848 _ACEOF
18849 rm -f conftest.$ac_objext conftest$ac_exeext
18850 if { (ac_try="$ac_link"
18851 case "(($ac_try" in
18852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18853   *) ac_try_echo=$ac_try;;
18854 esac
18855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18856   (eval "$ac_link") 2>conftest.er1
18857   ac_status=$?
18858   grep -v '^ *+' conftest.er1 >conftest.err
18859   rm -f conftest.er1
18860   cat conftest.err >&5
18861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862   (exit $ac_status); } && {
18863          test -z "$ac_c_werror_flag" ||
18864          test ! -s conftest.err
18865        } && test -s conftest$ac_exeext &&
18866        $as_test_x conftest$ac_exeext; then
18867   LIBS=$ac_save_LIBS
18868 # We can link X programs with no special library path.
18869 ac_x_libraries=
18870 else
18871   echo "$as_me: failed program was:" >&5
18872 sed 's/^/| /' conftest.$ac_ext >&5
18873
18874         LIBS=$ac_save_LIBS
18875 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18876 do
18877   # Don't even attempt the hair of trying to link an X program!
18878   for ac_extension in a so sl; do
18879     if test -r "$ac_dir/libX11.$ac_extension"; then
18880       ac_x_libraries=$ac_dir
18881       break 2
18882     fi
18883   done
18884 done
18885 fi
18886
18887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18888       conftest$ac_exeext conftest.$ac_ext
18889 fi # $ac_x_libraries = no
18890
18891 case $ac_x_includes,$ac_x_libraries in #(
18892   no,* | *,no | *\'*)
18893     # Didn't find X, or a directory has "'" in its name.
18894     ac_cv_have_x="have_x=no";; #(
18895   *)
18896     # Record where we found X for the cache.
18897     ac_cv_have_x="have_x=yes\
18898         ac_x_includes='$ac_x_includes'\
18899         ac_x_libraries='$ac_x_libraries'"
18900 esac
18901 fi
18902 ;; #(
18903     *) have_x=yes;;
18904   esac
18905   eval "$ac_cv_have_x"
18906 fi # $with_x != no
18907
18908 if test "$have_x" != yes; then
18909   { echo "$as_me:$LINENO: result: $have_x" >&5
18910 echo "${ECHO_T}$have_x" >&6; }
18911   no_x=yes
18912 else
18913   # If each of the values was on the command line, it overrides each guess.
18914   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18915   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18916   # Update the cache value to reflect the command line values.
18917   ac_cv_have_x="have_x=yes\
18918         ac_x_includes='$x_includes'\
18919         ac_x_libraries='$x_libraries'"
18920   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18921 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18922 fi
18923
18924 if test "$no_x" = yes; then
18925   # Not all programs may use this symbol, but it does not hurt to define it.
18926
18927 cat >>confdefs.h <<\_ACEOF
18928 #define X_DISPLAY_MISSING 1
18929 _ACEOF
18930
18931   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18932 else
18933   if test -n "$x_includes"; then
18934     X_CFLAGS="$X_CFLAGS -I$x_includes"
18935   fi
18936
18937   # It would also be nice to do this for all -L options, not just this one.
18938   if test -n "$x_libraries"; then
18939     X_LIBS="$X_LIBS -L$x_libraries"
18940     # For Solaris; some versions of Sun CC require a space after -R and
18941     # others require no space.  Words are not sufficient . . . .
18942     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18943 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18944     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18945     ac_xsave_c_werror_flag=$ac_c_werror_flag
18946     ac_c_werror_flag=yes
18947     cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953
18954 int
18955 main ()
18956 {
18957
18958   ;
18959   return 0;
18960 }
18961 _ACEOF
18962 rm -f conftest.$ac_objext conftest$ac_exeext
18963 if { (ac_try="$ac_link"
18964 case "(($ac_try" in
18965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966   *) ac_try_echo=$ac_try;;
18967 esac
18968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18969   (eval "$ac_link") 2>conftest.er1
18970   ac_status=$?
18971   grep -v '^ *+' conftest.er1 >conftest.err
18972   rm -f conftest.er1
18973   cat conftest.err >&5
18974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18975   (exit $ac_status); } && {
18976          test -z "$ac_c_werror_flag" ||
18977          test ! -s conftest.err
18978        } && test -s conftest$ac_exeext &&
18979        $as_test_x conftest$ac_exeext; then
18980   { echo "$as_me:$LINENO: result: no" >&5
18981 echo "${ECHO_T}no" >&6; }
18982        X_LIBS="$X_LIBS -R$x_libraries"
18983 else
18984   echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18986
18987         LIBS="$ac_xsave_LIBS -R $x_libraries"
18988        cat >conftest.$ac_ext <<_ACEOF
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994
18995 int
18996 main ()
18997 {
18998
18999   ;
19000   return 0;
19001 }
19002 _ACEOF
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (ac_try="$ac_link"
19005 case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_link") 2>conftest.er1
19011   ac_status=$?
19012   grep -v '^ *+' conftest.er1 >conftest.err
19013   rm -f conftest.er1
19014   cat conftest.err >&5
19015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016   (exit $ac_status); } && {
19017          test -z "$ac_c_werror_flag" ||
19018          test ! -s conftest.err
19019        } && test -s conftest$ac_exeext &&
19020        $as_test_x conftest$ac_exeext; then
19021   { echo "$as_me:$LINENO: result: yes" >&5
19022 echo "${ECHO_T}yes" >&6; }
19023           X_LIBS="$X_LIBS -R $x_libraries"
19024 else
19025   echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.$ac_ext >&5
19027
19028         { echo "$as_me:$LINENO: result: neither works" >&5
19029 echo "${ECHO_T}neither works" >&6; }
19030 fi
19031
19032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19033       conftest$ac_exeext conftest.$ac_ext
19034 fi
19035
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037       conftest$ac_exeext conftest.$ac_ext
19038     ac_c_werror_flag=$ac_xsave_c_werror_flag
19039     LIBS=$ac_xsave_LIBS
19040   fi
19041
19042   # Check for system-dependent libraries X programs must link with.
19043   # Do this before checking for the system-independent R6 libraries
19044   # (-lICE), since we may need -lsocket or whatever for X linking.
19045
19046   if test "$ISC" = yes; then
19047     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19048   else
19049     # Martyn Johnson says this is needed for Ultrix, if the X
19050     # libraries were built with DECnet support.  And Karl Berry says
19051     # the Alpha needs dnet_stub (dnet does not exist).
19052     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19053     cat >conftest.$ac_ext <<_ACEOF
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059
19060 /* Override any GCC internal prototype to avoid an error.
19061    Use char because int might match the return type of a GCC
19062    builtin and then its argument prototype would still apply.  */
19063 #ifdef __cplusplus
19064 extern "C"
19065 #endif
19066 char XOpenDisplay ();
19067 int
19068 main ()
19069 {
19070 return XOpenDisplay ();
19071   ;
19072   return 0;
19073 }
19074 _ACEOF
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079   *) ac_try_echo=$ac_try;;
19080 esac
19081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19082   (eval "$ac_link") 2>conftest.er1
19083   ac_status=$?
19084   grep -v '^ *+' conftest.er1 >conftest.err
19085   rm -f conftest.er1
19086   cat conftest.err >&5
19087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088   (exit $ac_status); } && {
19089          test -z "$ac_c_werror_flag" ||
19090          test ! -s conftest.err
19091        } && test -s conftest$ac_exeext &&
19092        $as_test_x conftest$ac_exeext; then
19093   :
19094 else
19095   echo "$as_me: failed program was:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19097
19098         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19099 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19100 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19101   echo $ECHO_N "(cached) $ECHO_C" >&6
19102 else
19103   ac_check_lib_save_LIBS=$LIBS
19104 LIBS="-ldnet  $LIBS"
19105 cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h.  */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h.  */
19111
19112 /* Override any GCC internal prototype to avoid an error.
19113    Use char because int might match the return type of a GCC
19114    builtin and then its argument prototype would still apply.  */
19115 #ifdef __cplusplus
19116 extern "C"
19117 #endif
19118 char dnet_ntoa ();
19119 int
19120 main ()
19121 {
19122 return dnet_ntoa ();
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 rm -f conftest.$ac_objext conftest$ac_exeext
19128 if { (ac_try="$ac_link"
19129 case "(($ac_try" in
19130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19131   *) ac_try_echo=$ac_try;;
19132 esac
19133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19134   (eval "$ac_link") 2>conftest.er1
19135   ac_status=$?
19136   grep -v '^ *+' conftest.er1 >conftest.err
19137   rm -f conftest.er1
19138   cat conftest.err >&5
19139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19140   (exit $ac_status); } && {
19141          test -z "$ac_c_werror_flag" ||
19142          test ! -s conftest.err
19143        } && test -s conftest$ac_exeext &&
19144        $as_test_x conftest$ac_exeext; then
19145   ac_cv_lib_dnet_dnet_ntoa=yes
19146 else
19147   echo "$as_me: failed program was:" >&5
19148 sed 's/^/| /' conftest.$ac_ext >&5
19149
19150         ac_cv_lib_dnet_dnet_ntoa=no
19151 fi
19152
19153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19154       conftest$ac_exeext conftest.$ac_ext
19155 LIBS=$ac_check_lib_save_LIBS
19156 fi
19157 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19158 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19159 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19160   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19161 fi
19162
19163     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19164       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19165 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19166 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19167   echo $ECHO_N "(cached) $ECHO_C" >&6
19168 else
19169   ac_check_lib_save_LIBS=$LIBS
19170 LIBS="-ldnet_stub  $LIBS"
19171 cat >conftest.$ac_ext <<_ACEOF
19172 /* confdefs.h.  */
19173 _ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char dnet_ntoa ();
19185 int
19186 main ()
19187 {
19188 return dnet_ntoa ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 rm -f conftest.$ac_objext conftest$ac_exeext
19194 if { (ac_try="$ac_link"
19195 case "(($ac_try" in
19196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197   *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200   (eval "$ac_link") 2>conftest.er1
19201   ac_status=$?
19202   grep -v '^ *+' conftest.er1 >conftest.err
19203   rm -f conftest.er1
19204   cat conftest.err >&5
19205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206   (exit $ac_status); } && {
19207          test -z "$ac_c_werror_flag" ||
19208          test ! -s conftest.err
19209        } && test -s conftest$ac_exeext &&
19210        $as_test_x conftest$ac_exeext; then
19211   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19212 else
19213   echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216         ac_cv_lib_dnet_stub_dnet_ntoa=no
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19220       conftest$ac_exeext conftest.$ac_ext
19221 LIBS=$ac_check_lib_save_LIBS
19222 fi
19223 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19224 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19225 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19226   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19227 fi
19228
19229     fi
19230 fi
19231
19232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19233       conftest$ac_exeext conftest.$ac_ext
19234     LIBS="$ac_xsave_LIBS"
19235
19236     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19237     # to get the SysV transport functions.
19238     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19239     # needs -lnsl.
19240     # The nsl library prevents programs from opening the X display
19241     # on Irix 5.2, according to T.E. Dickey.
19242     # The functions gethostbyname, getservbyname, and inet_addr are
19243     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19244     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19245 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19246 if test "${ac_cv_func_gethostbyname+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19256    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19257 #define gethostbyname innocuous_gethostbyname
19258
19259 /* System header to define __stub macros and hopefully few prototypes,
19260     which can conflict with char gethostbyname (); below.
19261     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19262     <limits.h> exists even on freestanding compilers.  */
19263
19264 #ifdef __STDC__
19265 # include <limits.h>
19266 #else
19267 # include <assert.h>
19268 #endif
19269
19270 #undef gethostbyname
19271
19272 /* Override any GCC internal prototype to avoid an error.
19273    Use char because int might match the return type of a GCC
19274    builtin and then its argument prototype would still apply.  */
19275 #ifdef __cplusplus
19276 extern "C"
19277 #endif
19278 char gethostbyname ();
19279 /* The GNU C library defines this for functions which it implements
19280     to always fail with ENOSYS.  Some functions are actually named
19281     something starting with __ and the normal name is an alias.  */
19282 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19283 choke me
19284 #endif
19285
19286 int
19287 main ()
19288 {
19289 return gethostbyname ();
19290   ;
19291   return 0;
19292 }
19293 _ACEOF
19294 rm -f conftest.$ac_objext conftest$ac_exeext
19295 if { (ac_try="$ac_link"
19296 case "(($ac_try" in
19297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298   *) ac_try_echo=$ac_try;;
19299 esac
19300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301   (eval "$ac_link") 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } && {
19308          test -z "$ac_c_werror_flag" ||
19309          test ! -s conftest.err
19310        } && test -s conftest$ac_exeext &&
19311        $as_test_x conftest$ac_exeext; then
19312   ac_cv_func_gethostbyname=yes
19313 else
19314   echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.$ac_ext >&5
19316
19317         ac_cv_func_gethostbyname=no
19318 fi
19319
19320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19321       conftest$ac_exeext conftest.$ac_ext
19322 fi
19323 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19324 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19325
19326     if test $ac_cv_func_gethostbyname = no; then
19327       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19328 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19329 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19330   echo $ECHO_N "(cached) $ECHO_C" >&6
19331 else
19332   ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lnsl  $LIBS"
19334 cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340
19341 /* Override any GCC internal prototype to avoid an error.
19342    Use char because int might match the return type of a GCC
19343    builtin and then its argument prototype would still apply.  */
19344 #ifdef __cplusplus
19345 extern "C"
19346 #endif
19347 char gethostbyname ();
19348 int
19349 main ()
19350 {
19351 return gethostbyname ();
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 rm -f conftest.$ac_objext conftest$ac_exeext
19357 if { (ac_try="$ac_link"
19358 case "(($ac_try" in
19359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19360   *) ac_try_echo=$ac_try;;
19361 esac
19362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19363   (eval "$ac_link") 2>conftest.er1
19364   ac_status=$?
19365   grep -v '^ *+' conftest.er1 >conftest.err
19366   rm -f conftest.er1
19367   cat conftest.err >&5
19368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369   (exit $ac_status); } && {
19370          test -z "$ac_c_werror_flag" ||
19371          test ! -s conftest.err
19372        } && test -s conftest$ac_exeext &&
19373        $as_test_x conftest$ac_exeext; then
19374   ac_cv_lib_nsl_gethostbyname=yes
19375 else
19376   echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379         ac_cv_lib_nsl_gethostbyname=no
19380 fi
19381
19382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19383       conftest$ac_exeext conftest.$ac_ext
19384 LIBS=$ac_check_lib_save_LIBS
19385 fi
19386 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19387 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19388 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19389   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19390 fi
19391
19392       if test $ac_cv_lib_nsl_gethostbyname = no; then
19393         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19394 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19395 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19396   echo $ECHO_N "(cached) $ECHO_C" >&6
19397 else
19398   ac_check_lib_save_LIBS=$LIBS
19399 LIBS="-lbsd  $LIBS"
19400 cat >conftest.$ac_ext <<_ACEOF
19401 /* confdefs.h.  */
19402 _ACEOF
19403 cat confdefs.h >>conftest.$ac_ext
19404 cat >>conftest.$ac_ext <<_ACEOF
19405 /* end confdefs.h.  */
19406
19407 /* Override any GCC internal prototype to avoid an error.
19408    Use char because int might match the return type of a GCC
19409    builtin and then its argument prototype would still apply.  */
19410 #ifdef __cplusplus
19411 extern "C"
19412 #endif
19413 char gethostbyname ();
19414 int
19415 main ()
19416 {
19417 return gethostbyname ();
19418   ;
19419   return 0;
19420 }
19421 _ACEOF
19422 rm -f conftest.$ac_objext conftest$ac_exeext
19423 if { (ac_try="$ac_link"
19424 case "(($ac_try" in
19425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426   *) ac_try_echo=$ac_try;;
19427 esac
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429   (eval "$ac_link") 2>conftest.er1
19430   ac_status=$?
19431   grep -v '^ *+' conftest.er1 >conftest.err
19432   rm -f conftest.er1
19433   cat conftest.err >&5
19434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435   (exit $ac_status); } && {
19436          test -z "$ac_c_werror_flag" ||
19437          test ! -s conftest.err
19438        } && test -s conftest$ac_exeext &&
19439        $as_test_x conftest$ac_exeext; then
19440   ac_cv_lib_bsd_gethostbyname=yes
19441 else
19442   echo "$as_me: failed program was:" >&5
19443 sed 's/^/| /' conftest.$ac_ext >&5
19444
19445         ac_cv_lib_bsd_gethostbyname=no
19446 fi
19447
19448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449       conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19451 fi
19452 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19453 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19454 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19455   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19456 fi
19457
19458       fi
19459     fi
19460
19461     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19462     # socket/setsockopt and other routines are undefined under SCO ODT
19463     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19464     # on later versions), says Simon Leinen: it contains gethostby*
19465     # variants that don't use the name server (or something).  -lsocket
19466     # must be given before -lnsl if both are needed.  We assume that
19467     # if connect needs -lnsl, so does gethostbyname.
19468     { echo "$as_me:$LINENO: checking for connect" >&5
19469 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19470 if test "${ac_cv_func_connect+set}" = set; then
19471   echo $ECHO_N "(cached) $ECHO_C" >&6
19472 else
19473   cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h.  */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h.  */
19479 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19481 #define connect innocuous_connect
19482
19483 /* System header to define __stub macros and hopefully few prototypes,
19484     which can conflict with char connect (); below.
19485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19486     <limits.h> exists even on freestanding compilers.  */
19487
19488 #ifdef __STDC__
19489 # include <limits.h>
19490 #else
19491 # include <assert.h>
19492 #endif
19493
19494 #undef connect
19495
19496 /* Override any GCC internal prototype to avoid an error.
19497    Use char because int might match the return type of a GCC
19498    builtin and then its argument prototype would still apply.  */
19499 #ifdef __cplusplus
19500 extern "C"
19501 #endif
19502 char connect ();
19503 /* The GNU C library defines this for functions which it implements
19504     to always fail with ENOSYS.  Some functions are actually named
19505     something starting with __ and the normal name is an alias.  */
19506 #if defined __stub_connect || defined __stub___connect
19507 choke me
19508 #endif
19509
19510 int
19511 main ()
19512 {
19513 return connect ();
19514   ;
19515   return 0;
19516 }
19517 _ACEOF
19518 rm -f conftest.$ac_objext conftest$ac_exeext
19519 if { (ac_try="$ac_link"
19520 case "(($ac_try" in
19521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522   *) ac_try_echo=$ac_try;;
19523 esac
19524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525   (eval "$ac_link") 2>conftest.er1
19526   ac_status=$?
19527   grep -v '^ *+' conftest.er1 >conftest.err
19528   rm -f conftest.er1
19529   cat conftest.err >&5
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); } && {
19532          test -z "$ac_c_werror_flag" ||
19533          test ! -s conftest.err
19534        } && test -s conftest$ac_exeext &&
19535        $as_test_x conftest$ac_exeext; then
19536   ac_cv_func_connect=yes
19537 else
19538   echo "$as_me: failed program was:" >&5
19539 sed 's/^/| /' conftest.$ac_ext >&5
19540
19541         ac_cv_func_connect=no
19542 fi
19543
19544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19545       conftest$ac_exeext conftest.$ac_ext
19546 fi
19547 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19548 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19549
19550     if test $ac_cv_func_connect = no; then
19551       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19552 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19553 if test "${ac_cv_lib_socket_connect+set}" = set; then
19554   echo $ECHO_N "(cached) $ECHO_C" >&6
19555 else
19556   ac_check_lib_save_LIBS=$LIBS
19557 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19558 cat >conftest.$ac_ext <<_ACEOF
19559 /* confdefs.h.  */
19560 _ACEOF
19561 cat confdefs.h >>conftest.$ac_ext
19562 cat >>conftest.$ac_ext <<_ACEOF
19563 /* end confdefs.h.  */
19564
19565 /* Override any GCC internal prototype to avoid an error.
19566    Use char because int might match the return type of a GCC
19567    builtin and then its argument prototype would still apply.  */
19568 #ifdef __cplusplus
19569 extern "C"
19570 #endif
19571 char connect ();
19572 int
19573 main ()
19574 {
19575 return connect ();
19576   ;
19577   return 0;
19578 }
19579 _ACEOF
19580 rm -f conftest.$ac_objext conftest$ac_exeext
19581 if { (ac_try="$ac_link"
19582 case "(($ac_try" in
19583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19584   *) ac_try_echo=$ac_try;;
19585 esac
19586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19587   (eval "$ac_link") 2>conftest.er1
19588   ac_status=$?
19589   grep -v '^ *+' conftest.er1 >conftest.err
19590   rm -f conftest.er1
19591   cat conftest.err >&5
19592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593   (exit $ac_status); } && {
19594          test -z "$ac_c_werror_flag" ||
19595          test ! -s conftest.err
19596        } && test -s conftest$ac_exeext &&
19597        $as_test_x conftest$ac_exeext; then
19598   ac_cv_lib_socket_connect=yes
19599 else
19600   echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603         ac_cv_lib_socket_connect=no
19604 fi
19605
19606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19607       conftest$ac_exeext conftest.$ac_ext
19608 LIBS=$ac_check_lib_save_LIBS
19609 fi
19610 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19611 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19612 if test $ac_cv_lib_socket_connect = yes; then
19613   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19614 fi
19615
19616     fi
19617
19618     # Guillermo Gomez says -lposix is necessary on A/UX.
19619     { echo "$as_me:$LINENO: checking for remove" >&5
19620 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19621 if test "${ac_cv_func_remove+set}" = set; then
19622   echo $ECHO_N "(cached) $ECHO_C" >&6
19623 else
19624   cat >conftest.$ac_ext <<_ACEOF
19625 /* confdefs.h.  */
19626 _ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h.  */
19630 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19632 #define remove innocuous_remove
19633
19634 /* System header to define __stub macros and hopefully few prototypes,
19635     which can conflict with char remove (); below.
19636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19637     <limits.h> exists even on freestanding compilers.  */
19638
19639 #ifdef __STDC__
19640 # include <limits.h>
19641 #else
19642 # include <assert.h>
19643 #endif
19644
19645 #undef remove
19646
19647 /* Override any GCC internal prototype to avoid an error.
19648    Use char because int might match the return type of a GCC
19649    builtin and then its argument prototype would still apply.  */
19650 #ifdef __cplusplus
19651 extern "C"
19652 #endif
19653 char remove ();
19654 /* The GNU C library defines this for functions which it implements
19655     to always fail with ENOSYS.  Some functions are actually named
19656     something starting with __ and the normal name is an alias.  */
19657 #if defined __stub_remove || defined __stub___remove
19658 choke me
19659 #endif
19660
19661 int
19662 main ()
19663 {
19664 return remove ();
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_link") 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } && {
19683          test -z "$ac_c_werror_flag" ||
19684          test ! -s conftest.err
19685        } && test -s conftest$ac_exeext &&
19686        $as_test_x conftest$ac_exeext; then
19687   ac_cv_func_remove=yes
19688 else
19689   echo "$as_me: failed program was:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19691
19692         ac_cv_func_remove=no
19693 fi
19694
19695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19696       conftest$ac_exeext conftest.$ac_ext
19697 fi
19698 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19699 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19700
19701     if test $ac_cv_func_remove = no; then
19702       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19703 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_posix_remove+set}" = set; then
19705   echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707   ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lposix  $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h.  */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h.  */
19715
19716 /* Override any GCC internal prototype to avoid an error.
19717    Use char because int might match the return type of a GCC
19718    builtin and then its argument prototype would still apply.  */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char remove ();
19723 int
19724 main ()
19725 {
19726 return remove ();
19727   ;
19728   return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735   *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738   (eval "$ac_link") 2>conftest.er1
19739   ac_status=$?
19740   grep -v '^ *+' conftest.er1 >conftest.err
19741   rm -f conftest.er1
19742   cat conftest.err >&5
19743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744   (exit $ac_status); } && {
19745          test -z "$ac_c_werror_flag" ||
19746          test ! -s conftest.err
19747        } && test -s conftest$ac_exeext &&
19748        $as_test_x conftest$ac_exeext; then
19749   ac_cv_lib_posix_remove=yes
19750 else
19751   echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754         ac_cv_lib_posix_remove=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758       conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19760 fi
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19762 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19763 if test $ac_cv_lib_posix_remove = yes; then
19764   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19765 fi
19766
19767     fi
19768
19769     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19770     { echo "$as_me:$LINENO: checking for shmat" >&5
19771 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19772 if test "${ac_cv_func_shmat+set}" = set; then
19773   echo $ECHO_N "(cached) $ECHO_C" >&6
19774 else
19775   cat >conftest.$ac_ext <<_ACEOF
19776 /* confdefs.h.  */
19777 _ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h.  */
19781 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19783 #define shmat innocuous_shmat
19784
19785 /* System header to define __stub macros and hopefully few prototypes,
19786     which can conflict with char shmat (); below.
19787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788     <limits.h> exists even on freestanding compilers.  */
19789
19790 #ifdef __STDC__
19791 # include <limits.h>
19792 #else
19793 # include <assert.h>
19794 #endif
19795
19796 #undef shmat
19797
19798 /* Override any GCC internal prototype to avoid an error.
19799    Use char because int might match the return type of a GCC
19800    builtin and then its argument prototype would still apply.  */
19801 #ifdef __cplusplus
19802 extern "C"
19803 #endif
19804 char shmat ();
19805 /* The GNU C library defines this for functions which it implements
19806     to always fail with ENOSYS.  Some functions are actually named
19807     something starting with __ and the normal name is an alias.  */
19808 #if defined __stub_shmat || defined __stub___shmat
19809 choke me
19810 #endif
19811
19812 int
19813 main ()
19814 {
19815 return shmat ();
19816   ;
19817   return 0;
19818 }
19819 _ACEOF
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824   *) ac_try_echo=$ac_try;;
19825 esac
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827   (eval "$ac_link") 2>conftest.er1
19828   ac_status=$?
19829   grep -v '^ *+' conftest.er1 >conftest.err
19830   rm -f conftest.er1
19831   cat conftest.err >&5
19832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833   (exit $ac_status); } && {
19834          test -z "$ac_c_werror_flag" ||
19835          test ! -s conftest.err
19836        } && test -s conftest$ac_exeext &&
19837        $as_test_x conftest$ac_exeext; then
19838   ac_cv_func_shmat=yes
19839 else
19840   echo "$as_me: failed program was:" >&5
19841 sed 's/^/| /' conftest.$ac_ext >&5
19842
19843         ac_cv_func_shmat=no
19844 fi
19845
19846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19847       conftest$ac_exeext conftest.$ac_ext
19848 fi
19849 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19850 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19851
19852     if test $ac_cv_func_shmat = no; then
19853       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19854 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19855 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19856   echo $ECHO_N "(cached) $ECHO_C" >&6
19857 else
19858   ac_check_lib_save_LIBS=$LIBS
19859 LIBS="-lipc  $LIBS"
19860 cat >conftest.$ac_ext <<_ACEOF
19861 /* confdefs.h.  */
19862 _ACEOF
19863 cat confdefs.h >>conftest.$ac_ext
19864 cat >>conftest.$ac_ext <<_ACEOF
19865 /* end confdefs.h.  */
19866
19867 /* Override any GCC internal prototype to avoid an error.
19868    Use char because int might match the return type of a GCC
19869    builtin and then its argument prototype would still apply.  */
19870 #ifdef __cplusplus
19871 extern "C"
19872 #endif
19873 char shmat ();
19874 int
19875 main ()
19876 {
19877 return shmat ();
19878   ;
19879   return 0;
19880 }
19881 _ACEOF
19882 rm -f conftest.$ac_objext conftest$ac_exeext
19883 if { (ac_try="$ac_link"
19884 case "(($ac_try" in
19885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886   *) ac_try_echo=$ac_try;;
19887 esac
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889   (eval "$ac_link") 2>conftest.er1
19890   ac_status=$?
19891   grep -v '^ *+' conftest.er1 >conftest.err
19892   rm -f conftest.er1
19893   cat conftest.err >&5
19894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895   (exit $ac_status); } && {
19896          test -z "$ac_c_werror_flag" ||
19897          test ! -s conftest.err
19898        } && test -s conftest$ac_exeext &&
19899        $as_test_x conftest$ac_exeext; then
19900   ac_cv_lib_ipc_shmat=yes
19901 else
19902   echo "$as_me: failed program was:" >&5
19903 sed 's/^/| /' conftest.$ac_ext >&5
19904
19905         ac_cv_lib_ipc_shmat=no
19906 fi
19907
19908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19909       conftest$ac_exeext conftest.$ac_ext
19910 LIBS=$ac_check_lib_save_LIBS
19911 fi
19912 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19913 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19914 if test $ac_cv_lib_ipc_shmat = yes; then
19915   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19916 fi
19917
19918     fi
19919   fi
19920
19921   # Check for libraries that X11R6 Xt/Xaw programs need.
19922   ac_save_LDFLAGS=$LDFLAGS
19923   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19924   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19925   # check for ICE first), but we must link in the order -lSM -lICE or
19926   # we get undefined symbols.  So assume we have SM if we have ICE.
19927   # These have to be linked with before -lX11, unlike the other
19928   # libraries we check for below, so use a different variable.
19929   # John Interrante, Karl Berry
19930   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19931 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19932 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19933   echo $ECHO_N "(cached) $ECHO_C" >&6
19934 else
19935   ac_check_lib_save_LIBS=$LIBS
19936 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19937 cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943
19944 /* Override any GCC internal prototype to avoid an error.
19945    Use char because int might match the return type of a GCC
19946    builtin and then its argument prototype would still apply.  */
19947 #ifdef __cplusplus
19948 extern "C"
19949 #endif
19950 char IceConnectionNumber ();
19951 int
19952 main ()
19953 {
19954 return IceConnectionNumber ();
19955   ;
19956   return 0;
19957 }
19958 _ACEOF
19959 rm -f conftest.$ac_objext conftest$ac_exeext
19960 if { (ac_try="$ac_link"
19961 case "(($ac_try" in
19962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963   *) ac_try_echo=$ac_try;;
19964 esac
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966   (eval "$ac_link") 2>conftest.er1
19967   ac_status=$?
19968   grep -v '^ *+' conftest.er1 >conftest.err
19969   rm -f conftest.er1
19970   cat conftest.err >&5
19971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972   (exit $ac_status); } && {
19973          test -z "$ac_c_werror_flag" ||
19974          test ! -s conftest.err
19975        } && test -s conftest$ac_exeext &&
19976        $as_test_x conftest$ac_exeext; then
19977   ac_cv_lib_ICE_IceConnectionNumber=yes
19978 else
19979   echo "$as_me: failed program was:" >&5
19980 sed 's/^/| /' conftest.$ac_ext >&5
19981
19982         ac_cv_lib_ICE_IceConnectionNumber=no
19983 fi
19984
19985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19986       conftest$ac_exeext conftest.$ac_ext
19987 LIBS=$ac_check_lib_save_LIBS
19988 fi
19989 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19990 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19991 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19992   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19993 fi
19994
19995   LDFLAGS=$ac_save_LDFLAGS
19996
19997 fi
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019
20020
20021
20022
20023
20024
20025
20026
20027
20028
20029
20030 for ac_header in \
20031         assert.h \
20032         fcntl.h \
20033         grp.h \
20034         pwd.h \
20035         libc.h \
20036         limits.h \
20037         stdarg.h \
20038         stdlib.h \
20039         stdint.h \
20040         string.h \
20041         strings.h \
20042         termios.h \
20043         termcap.h \
20044         term.h \
20045         unistd.h \
20046         sys/bitypes.h \
20047         sys/byteorder.h \
20048         sys/ioctl.h \
20049         sys/select.h \
20050         sys/socket.h \
20051         sys/sockio.h \
20052         sys/stat.h \
20053         sys/time.h \
20054         sys/types.h \
20055         arpa/nameser.h \
20056         resolv.h \
20057         mtio.h \
20058         sys/mtio.h \
20059         sys/tape.h \
20060         regex.h \
20061
20062 do
20063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20065   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20068   echo $ECHO_N "(cached) $ECHO_C" >&6
20069 fi
20070 ac_res=`eval echo '${'$as_ac_Header'}'`
20071                { echo "$as_me:$LINENO: result: $ac_res" >&5
20072 echo "${ECHO_T}$ac_res" >&6; }
20073 else
20074   # Is the header compilable?
20075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20077 cat >conftest.$ac_ext <<_ACEOF
20078 /* confdefs.h.  */
20079 _ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h.  */
20083 $ac_includes_default
20084 #include <$ac_header>
20085 _ACEOF
20086 rm -f conftest.$ac_objext
20087 if { (ac_try="$ac_compile"
20088 case "(($ac_try" in
20089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20090   *) ac_try_echo=$ac_try;;
20091 esac
20092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20093   (eval "$ac_compile") 2>conftest.er1
20094   ac_status=$?
20095   grep -v '^ *+' conftest.er1 >conftest.err
20096   rm -f conftest.er1
20097   cat conftest.err >&5
20098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099   (exit $ac_status); } && {
20100          test -z "$ac_c_werror_flag" ||
20101          test ! -s conftest.err
20102        } && test -s conftest.$ac_objext; then
20103   ac_header_compiler=yes
20104 else
20105   echo "$as_me: failed program was:" >&5
20106 sed 's/^/| /' conftest.$ac_ext >&5
20107
20108         ac_header_compiler=no
20109 fi
20110
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20113 echo "${ECHO_T}$ac_header_compiler" >&6; }
20114
20115 # Is the header present?
20116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20118 cat >conftest.$ac_ext <<_ACEOF
20119 /* confdefs.h.  */
20120 _ACEOF
20121 cat confdefs.h >>conftest.$ac_ext
20122 cat >>conftest.$ac_ext <<_ACEOF
20123 /* end confdefs.h.  */
20124 #include <$ac_header>
20125 _ACEOF
20126 if { (ac_try="$ac_cpp conftest.$ac_ext"
20127 case "(($ac_try" in
20128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129   *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20133   ac_status=$?
20134   grep -v '^ *+' conftest.er1 >conftest.err
20135   rm -f conftest.er1
20136   cat conftest.err >&5
20137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138   (exit $ac_status); } >/dev/null && {
20139          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20140          test ! -s conftest.err
20141        }; then
20142   ac_header_preproc=yes
20143 else
20144   echo "$as_me: failed program was:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20146
20147   ac_header_preproc=no
20148 fi
20149
20150 rm -f conftest.err conftest.$ac_ext
20151 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20152 echo "${ECHO_T}$ac_header_preproc" >&6; }
20153
20154 # So?  What about this header?
20155 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20156   yes:no: )
20157     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20158 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20159     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20160 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20161     ac_header_preproc=yes
20162     ;;
20163   no:yes:* )
20164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20166     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20167 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20168     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20169 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20170     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20171 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20172     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20173 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20174     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20175 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20176
20177     ;;
20178 esac
20179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20182   echo $ECHO_N "(cached) $ECHO_C" >&6
20183 else
20184   eval "$as_ac_Header=\$ac_header_preproc"
20185 fi
20186 ac_res=`eval echo '${'$as_ac_Header'}'`
20187                { echo "$as_me:$LINENO: result: $ac_res" >&5
20188 echo "${ECHO_T}$ac_res" >&6; }
20189
20190 fi
20191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20192   cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20194 _ACEOF
20195
20196 fi
20197
20198 done
20199
20200 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20202 if test "${ac_cv_header_stdc+set}" = set; then
20203   echo $ECHO_N "(cached) $ECHO_C" >&6
20204 else
20205   cat >conftest.$ac_ext <<_ACEOF
20206 /* confdefs.h.  */
20207 _ACEOF
20208 cat confdefs.h >>conftest.$ac_ext
20209 cat >>conftest.$ac_ext <<_ACEOF
20210 /* end confdefs.h.  */
20211 #include <stdlib.h>
20212 #include <stdarg.h>
20213 #include <string.h>
20214 #include <float.h>
20215
20216 int
20217 main ()
20218 {
20219
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 rm -f conftest.$ac_objext
20225 if { (ac_try="$ac_compile"
20226 case "(($ac_try" in
20227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228   *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231   (eval "$ac_compile") 2>conftest.er1
20232   ac_status=$?
20233   grep -v '^ *+' conftest.er1 >conftest.err
20234   rm -f conftest.er1
20235   cat conftest.err >&5
20236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237   (exit $ac_status); } && {
20238          test -z "$ac_c_werror_flag" ||
20239          test ! -s conftest.err
20240        } && test -s conftest.$ac_objext; then
20241   ac_cv_header_stdc=yes
20242 else
20243   echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20245
20246         ac_cv_header_stdc=no
20247 fi
20248
20249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20250
20251 if test $ac_cv_header_stdc = yes; then
20252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20253   cat >conftest.$ac_ext <<_ACEOF
20254 /* confdefs.h.  */
20255 _ACEOF
20256 cat confdefs.h >>conftest.$ac_ext
20257 cat >>conftest.$ac_ext <<_ACEOF
20258 /* end confdefs.h.  */
20259 #include <string.h>
20260
20261 _ACEOF
20262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20263   $EGREP "memchr" >/dev/null 2>&1; then
20264   :
20265 else
20266   ac_cv_header_stdc=no
20267 fi
20268 rm -f conftest*
20269
20270 fi
20271
20272 if test $ac_cv_header_stdc = yes; then
20273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20274   cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h.  */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h.  */
20280 #include <stdlib.h>
20281
20282 _ACEOF
20283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20284   $EGREP "free" >/dev/null 2>&1; then
20285   :
20286 else
20287   ac_cv_header_stdc=no
20288 fi
20289 rm -f conftest*
20290
20291 fi
20292
20293 if test $ac_cv_header_stdc = yes; then
20294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20295   if test "$cross_compiling" = yes; then
20296   :
20297 else
20298   cat >conftest.$ac_ext <<_ACEOF
20299 /* confdefs.h.  */
20300 _ACEOF
20301 cat confdefs.h >>conftest.$ac_ext
20302 cat >>conftest.$ac_ext <<_ACEOF
20303 /* end confdefs.h.  */
20304 #include <ctype.h>
20305 #include <stdlib.h>
20306 #if ((' ' & 0x0FF) == 0x020)
20307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20309 #else
20310 # define ISLOWER(c) \
20311                    (('a' <= (c) && (c) <= 'i') \
20312                      || ('j' <= (c) && (c) <= 'r') \
20313                      || ('s' <= (c) && (c) <= 'z'))
20314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20315 #endif
20316
20317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20318 int
20319 main ()
20320 {
20321   int i;
20322   for (i = 0; i < 256; i++)
20323     if (XOR (islower (i), ISLOWER (i))
20324         || toupper (i) != TOUPPER (i))
20325       return 2;
20326   return 0;
20327 }
20328 _ACEOF
20329 rm -f conftest$ac_exeext
20330 if { (ac_try="$ac_link"
20331 case "(($ac_try" in
20332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333   *) ac_try_echo=$ac_try;;
20334 esac
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336   (eval "$ac_link") 2>&5
20337   ac_status=$?
20338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20340   { (case "(($ac_try" in
20341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20342   *) ac_try_echo=$ac_try;;
20343 esac
20344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20345   (eval "$ac_try") 2>&5
20346   ac_status=$?
20347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348   (exit $ac_status); }; }; then
20349   :
20350 else
20351   echo "$as_me: program exited with status $ac_status" >&5
20352 echo "$as_me: failed program was:" >&5
20353 sed 's/^/| /' conftest.$ac_ext >&5
20354
20355 ( exit $ac_status )
20356 ac_cv_header_stdc=no
20357 fi
20358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20359 fi
20360
20361
20362 fi
20363 fi
20364 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20365 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20366 if test $ac_cv_header_stdc = yes; then
20367
20368 cat >>confdefs.h <<\_ACEOF
20369 #define STDC_HEADERS 1
20370 _ACEOF
20371
20372 fi
20373
20374 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20375 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20376 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20377   echo $ECHO_N "(cached) $ECHO_C" >&6
20378 else
20379   cat >conftest.$ac_ext <<_ACEOF
20380 /* confdefs.h.  */
20381 _ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h.  */
20385 #include <sys/types.h>
20386 int
20387 main ()
20388 {
20389 return makedev(0, 0);
20390   ;
20391   return 0;
20392 }
20393 _ACEOF
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398   *) ac_try_echo=$ac_try;;
20399 esac
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401   (eval "$ac_link") 2>conftest.er1
20402   ac_status=$?
20403   grep -v '^ *+' conftest.er1 >conftest.err
20404   rm -f conftest.er1
20405   cat conftest.err >&5
20406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407   (exit $ac_status); } && {
20408          test -z "$ac_c_werror_flag" ||
20409          test ! -s conftest.err
20410        } && test -s conftest$ac_exeext &&
20411        $as_test_x conftest$ac_exeext; then
20412   ac_cv_header_sys_types_h_makedev=yes
20413 else
20414   echo "$as_me: failed program was:" >&5
20415 sed 's/^/| /' conftest.$ac_ext >&5
20416
20417         ac_cv_header_sys_types_h_makedev=no
20418 fi
20419
20420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20421       conftest$ac_exeext conftest.$ac_ext
20422
20423 fi
20424 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20425 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20426
20427 if test $ac_cv_header_sys_types_h_makedev = no; then
20428 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20429   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20430 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20431 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20432   echo $ECHO_N "(cached) $ECHO_C" >&6
20433 fi
20434 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20435 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20436 else
20437   # Is the header compilable?
20438 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20439 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20441 /* confdefs.h.  */
20442 _ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h.  */
20446 $ac_includes_default
20447 #include <sys/mkdev.h>
20448 _ACEOF
20449 rm -f conftest.$ac_objext
20450 if { (ac_try="$ac_compile"
20451 case "(($ac_try" in
20452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453   *) ac_try_echo=$ac_try;;
20454 esac
20455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20456   (eval "$ac_compile") 2>conftest.er1
20457   ac_status=$?
20458   grep -v '^ *+' conftest.er1 >conftest.err
20459   rm -f conftest.er1
20460   cat conftest.err >&5
20461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462   (exit $ac_status); } && {
20463          test -z "$ac_c_werror_flag" ||
20464          test ! -s conftest.err
20465        } && test -s conftest.$ac_objext; then
20466   ac_header_compiler=yes
20467 else
20468   echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20470
20471         ac_header_compiler=no
20472 fi
20473
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20476 echo "${ECHO_T}$ac_header_compiler" >&6; }
20477
20478 # Is the header present?
20479 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20480 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20481 cat >conftest.$ac_ext <<_ACEOF
20482 /* confdefs.h.  */
20483 _ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h.  */
20487 #include <sys/mkdev.h>
20488 _ACEOF
20489 if { (ac_try="$ac_cpp conftest.$ac_ext"
20490 case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20496   ac_status=$?
20497   grep -v '^ *+' conftest.er1 >conftest.err
20498   rm -f conftest.er1
20499   cat conftest.err >&5
20500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20501   (exit $ac_status); } >/dev/null && {
20502          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20503          test ! -s conftest.err
20504        }; then
20505   ac_header_preproc=yes
20506 else
20507   echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20509
20510   ac_header_preproc=no
20511 fi
20512
20513 rm -f conftest.err conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20515 echo "${ECHO_T}$ac_header_preproc" >&6; }
20516
20517 # So?  What about this header?
20518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20519   yes:no: )
20520     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20521 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20522     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20523 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20524     ac_header_preproc=yes
20525     ;;
20526   no:yes:* )
20527     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20528 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20530 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20531     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20532 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20533     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20534 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20535     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20536 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20537     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20538 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20539
20540     ;;
20541 esac
20542 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20543 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20544 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20545   echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20548 fi
20549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20550 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20551
20552 fi
20553 if test $ac_cv_header_sys_mkdev_h = yes; then
20554
20555 cat >>confdefs.h <<\_ACEOF
20556 #define MAJOR_IN_MKDEV 1
20557 _ACEOF
20558
20559 fi
20560
20561
20562
20563   if test $ac_cv_header_sys_mkdev_h = no; then
20564     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20565   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20566 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20567 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20568   echo $ECHO_N "(cached) $ECHO_C" >&6
20569 fi
20570 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20571 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20572 else
20573   # Is the header compilable?
20574 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20575 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20576 cat >conftest.$ac_ext <<_ACEOF
20577 /* confdefs.h.  */
20578 _ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h.  */
20582 $ac_includes_default
20583 #include <sys/sysmacros.h>
20584 _ACEOF
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589   *) ac_try_echo=$ac_try;;
20590 esac
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592   (eval "$ac_compile") 2>conftest.er1
20593   ac_status=$?
20594   grep -v '^ *+' conftest.er1 >conftest.err
20595   rm -f conftest.er1
20596   cat conftest.err >&5
20597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598   (exit $ac_status); } && {
20599          test -z "$ac_c_werror_flag" ||
20600          test ! -s conftest.err
20601        } && test -s conftest.$ac_objext; then
20602   ac_header_compiler=yes
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607         ac_header_compiler=no
20608 fi
20609
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6; }
20613
20614 # Is the header present?
20615 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20616 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20618 /* confdefs.h.  */
20619 _ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h.  */
20623 #include <sys/sysmacros.h>
20624 _ACEOF
20625 if { (ac_try="$ac_cpp conftest.$ac_ext"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } >/dev/null && {
20638          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        }; then
20641   ac_header_preproc=yes
20642 else
20643   echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20645
20646   ac_header_preproc=no
20647 fi
20648
20649 rm -f conftest.err conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6; }
20652
20653 # So?  What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20655   yes:no: )
20656     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20660     ac_header_preproc=yes
20661     ;;
20662   no:yes:* )
20663     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20671     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20673     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20675
20676     ;;
20677 esac
20678 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20679 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20680 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20681   echo $ECHO_N "(cached) $ECHO_C" >&6
20682 else
20683   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20684 fi
20685 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20686 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20687
20688 fi
20689 if test $ac_cv_header_sys_sysmacros_h = yes; then
20690
20691 cat >>confdefs.h <<\_ACEOF
20692 #define MAJOR_IN_SYSMACROS 1
20693 _ACEOF
20694
20695 fi
20696
20697
20698   fi
20699 fi
20700
20701
20702
20703
20704
20705
20706 ac_header_dirent=no
20707 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20708   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20709 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20710 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712   echo $ECHO_N "(cached) $ECHO_C" >&6
20713 else
20714   cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720 #include <sys/types.h>
20721 #include <$ac_hdr>
20722
20723 int
20724 main ()
20725 {
20726 if ((DIR *) 0)
20727 return 0;
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 rm -f conftest.$ac_objext
20733 if { (ac_try="$ac_compile"
20734 case "(($ac_try" in
20735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20736   *) ac_try_echo=$ac_try;;
20737 esac
20738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20739   (eval "$ac_compile") 2>conftest.er1
20740   ac_status=$?
20741   grep -v '^ *+' conftest.er1 >conftest.err
20742   rm -f conftest.er1
20743   cat conftest.err >&5
20744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745   (exit $ac_status); } && {
20746          test -z "$ac_c_werror_flag" ||
20747          test ! -s conftest.err
20748        } && test -s conftest.$ac_objext; then
20749   eval "$as_ac_Header=yes"
20750 else
20751   echo "$as_me: failed program was:" >&5
20752 sed 's/^/| /' conftest.$ac_ext >&5
20753
20754         eval "$as_ac_Header=no"
20755 fi
20756
20757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 fi
20759 ac_res=`eval echo '${'$as_ac_Header'}'`
20760                { echo "$as_me:$LINENO: result: $ac_res" >&5
20761 echo "${ECHO_T}$ac_res" >&6; }
20762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20763   cat >>confdefs.h <<_ACEOF
20764 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20765 _ACEOF
20766
20767 ac_header_dirent=$ac_hdr; break
20768 fi
20769
20770 done
20771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20772 if test $ac_header_dirent = dirent.h; then
20773   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20774 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20775 if test "${ac_cv_search_opendir+set}" = set; then
20776   echo $ECHO_N "(cached) $ECHO_C" >&6
20777 else
20778   ac_func_search_save_LIBS=$LIBS
20779 cat >conftest.$ac_ext <<_ACEOF
20780 /* confdefs.h.  */
20781 _ACEOF
20782 cat confdefs.h >>conftest.$ac_ext
20783 cat >>conftest.$ac_ext <<_ACEOF
20784 /* end confdefs.h.  */
20785
20786 /* Override any GCC internal prototype to avoid an error.
20787    Use char because int might match the return type of a GCC
20788    builtin and then its argument prototype would still apply.  */
20789 #ifdef __cplusplus
20790 extern "C"
20791 #endif
20792 char opendir ();
20793 int
20794 main ()
20795 {
20796 return opendir ();
20797   ;
20798   return 0;
20799 }
20800 _ACEOF
20801 for ac_lib in '' dir; do
20802   if test -z "$ac_lib"; then
20803     ac_res="none required"
20804   else
20805     ac_res=-l$ac_lib
20806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20807   fi
20808   rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_link") 2>conftest.er1
20816   ac_status=$?
20817   grep -v '^ *+' conftest.er1 >conftest.err
20818   rm -f conftest.er1
20819   cat conftest.err >&5
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } && {
20822          test -z "$ac_c_werror_flag" ||
20823          test ! -s conftest.err
20824        } && test -s conftest$ac_exeext &&
20825        $as_test_x conftest$ac_exeext; then
20826   ac_cv_search_opendir=$ac_res
20827 else
20828   echo "$as_me: failed program was:" >&5
20829 sed 's/^/| /' conftest.$ac_ext >&5
20830
20831
20832 fi
20833
20834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20835       conftest$ac_exeext
20836   if test "${ac_cv_search_opendir+set}" = set; then
20837   break
20838 fi
20839 done
20840 if test "${ac_cv_search_opendir+set}" = set; then
20841   :
20842 else
20843   ac_cv_search_opendir=no
20844 fi
20845 rm conftest.$ac_ext
20846 LIBS=$ac_func_search_save_LIBS
20847 fi
20848 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20849 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20850 ac_res=$ac_cv_search_opendir
20851 if test "$ac_res" != no; then
20852   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20853
20854 fi
20855
20856 else
20857   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20858 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20859 if test "${ac_cv_search_opendir+set}" = set; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   ac_func_search_save_LIBS=$LIBS
20863 cat >conftest.$ac_ext <<_ACEOF
20864 /* confdefs.h.  */
20865 _ACEOF
20866 cat confdefs.h >>conftest.$ac_ext
20867 cat >>conftest.$ac_ext <<_ACEOF
20868 /* end confdefs.h.  */
20869
20870 /* Override any GCC internal prototype to avoid an error.
20871    Use char because int might match the return type of a GCC
20872    builtin and then its argument prototype would still apply.  */
20873 #ifdef __cplusplus
20874 extern "C"
20875 #endif
20876 char opendir ();
20877 int
20878 main ()
20879 {
20880 return opendir ();
20881   ;
20882   return 0;
20883 }
20884 _ACEOF
20885 for ac_lib in '' x; do
20886   if test -z "$ac_lib"; then
20887     ac_res="none required"
20888   else
20889     ac_res=-l$ac_lib
20890     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20891   fi
20892   rm -f conftest.$ac_objext conftest$ac_exeext
20893 if { (ac_try="$ac_link"
20894 case "(($ac_try" in
20895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20896   *) ac_try_echo=$ac_try;;
20897 esac
20898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20899   (eval "$ac_link") 2>conftest.er1
20900   ac_status=$?
20901   grep -v '^ *+' conftest.er1 >conftest.err
20902   rm -f conftest.er1
20903   cat conftest.err >&5
20904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905   (exit $ac_status); } && {
20906          test -z "$ac_c_werror_flag" ||
20907          test ! -s conftest.err
20908        } && test -s conftest$ac_exeext &&
20909        $as_test_x conftest$ac_exeext; then
20910   ac_cv_search_opendir=$ac_res
20911 else
20912   echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20914
20915
20916 fi
20917
20918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20919       conftest$ac_exeext
20920   if test "${ac_cv_search_opendir+set}" = set; then
20921   break
20922 fi
20923 done
20924 if test "${ac_cv_search_opendir+set}" = set; then
20925   :
20926 else
20927   ac_cv_search_opendir=no
20928 fi
20929 rm conftest.$ac_ext
20930 LIBS=$ac_func_search_save_LIBS
20931 fi
20932 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20933 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20934 ac_res=$ac_cv_search_opendir
20935 if test "$ac_res" != no; then
20936   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20937
20938 fi
20939
20940 fi
20941
20942 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20943 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20944 if test "${ac_cv_header_stat_broken+set}" = set; then
20945   echo $ECHO_N "(cached) $ECHO_C" >&6
20946 else
20947   cat >conftest.$ac_ext <<_ACEOF
20948 /* confdefs.h.  */
20949 _ACEOF
20950 cat confdefs.h >>conftest.$ac_ext
20951 cat >>conftest.$ac_ext <<_ACEOF
20952 /* end confdefs.h.  */
20953 #include <sys/types.h>
20954 #include <sys/stat.h>
20955
20956 #if defined S_ISBLK && defined S_IFDIR
20957 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20958 #endif
20959
20960 #if defined S_ISBLK && defined S_IFCHR
20961 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20962 #endif
20963
20964 #if defined S_ISLNK && defined S_IFREG
20965 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20966 #endif
20967
20968 #if defined S_ISSOCK && defined S_IFREG
20969 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20970 #endif
20971
20972 _ACEOF
20973 rm -f conftest.$ac_objext
20974 if { (ac_try="$ac_compile"
20975 case "(($ac_try" in
20976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20977   *) ac_try_echo=$ac_try;;
20978 esac
20979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20980   (eval "$ac_compile") 2>conftest.er1
20981   ac_status=$?
20982   grep -v '^ *+' conftest.er1 >conftest.err
20983   rm -f conftest.er1
20984   cat conftest.err >&5
20985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986   (exit $ac_status); } && {
20987          test -z "$ac_c_werror_flag" ||
20988          test ! -s conftest.err
20989        } && test -s conftest.$ac_objext; then
20990   ac_cv_header_stat_broken=no
20991 else
20992   echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20994
20995         ac_cv_header_stat_broken=yes
20996 fi
20997
20998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20999 fi
21000 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
21001 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
21002 if test $ac_cv_header_stat_broken = yes; then
21003
21004 cat >>confdefs.h <<\_ACEOF
21005 #define STAT_MACROS_BROKEN 1
21006 _ACEOF
21007
21008 fi
21009
21010 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21011 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21012 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21013   echo $ECHO_N "(cached) $ECHO_C" >&6
21014 else
21015   cat >conftest.$ac_ext <<_ACEOF
21016 /* confdefs.h.  */
21017 _ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h.  */
21021 #include <sys/types.h>
21022 #include <sys/wait.h>
21023 #ifndef WEXITSTATUS
21024 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21025 #endif
21026 #ifndef WIFEXITED
21027 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21028 #endif
21029
21030 int
21031 main ()
21032 {
21033   int s;
21034   wait (&s);
21035   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21036   ;
21037   return 0;
21038 }
21039 _ACEOF
21040 rm -f conftest.$ac_objext
21041 if { (ac_try="$ac_compile"
21042 case "(($ac_try" in
21043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21044   *) ac_try_echo=$ac_try;;
21045 esac
21046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21047   (eval "$ac_compile") 2>conftest.er1
21048   ac_status=$?
21049   grep -v '^ *+' conftest.er1 >conftest.err
21050   rm -f conftest.er1
21051   cat conftest.err >&5
21052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053   (exit $ac_status); } && {
21054          test -z "$ac_c_werror_flag" ||
21055          test ! -s conftest.err
21056        } && test -s conftest.$ac_objext; then
21057   ac_cv_header_sys_wait_h=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062         ac_cv_header_sys_wait_h=no
21063 fi
21064
21065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21066 fi
21067 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21068 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21069 if test $ac_cv_header_sys_wait_h = yes; then
21070
21071 cat >>confdefs.h <<\_ACEOF
21072 #define HAVE_SYS_WAIT_H 1
21073 _ACEOF
21074
21075 fi
21076
21077 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21078 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21079 if test "${ac_cv_header_time+set}" = set; then
21080   echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082   cat >conftest.$ac_ext <<_ACEOF
21083 /* confdefs.h.  */
21084 _ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h.  */
21088 #include <sys/types.h>
21089 #include <sys/time.h>
21090 #include <time.h>
21091
21092 int
21093 main ()
21094 {
21095 if ((struct tm *) 0)
21096 return 0;
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext
21102 if { (ac_try="$ac_compile"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_compile") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } && {
21115          test -z "$ac_c_werror_flag" ||
21116          test ! -s conftest.err
21117        } && test -s conftest.$ac_objext; then
21118   ac_cv_header_time=yes
21119 else
21120   echo "$as_me: failed program was:" >&5
21121 sed 's/^/| /' conftest.$ac_ext >&5
21122
21123         ac_cv_header_time=no
21124 fi
21125
21126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21127 fi
21128 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21129 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21130 if test $ac_cv_header_time = yes; then
21131
21132 cat >>confdefs.h <<\_ACEOF
21133 #define TIME_WITH_SYS_TIME 1
21134 _ACEOF
21135
21136 fi
21137
21138 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21139 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21140 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21141   echo $ECHO_N "(cached) $ECHO_C" >&6
21142 else
21143   cat >conftest.$ac_ext <<_ACEOF
21144 /* confdefs.h.  */
21145 _ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h.  */
21149 $ac_includes_default
21150 int
21151 main ()
21152 {
21153 static struct stat ac_aggr;
21154 if (ac_aggr.st_blksize)
21155 return 0;
21156   ;
21157   return 0;
21158 }
21159 _ACEOF
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
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_compile") 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          test -z "$ac_c_werror_flag" ||
21175          test ! -s conftest.err
21176        } && test -s conftest.$ac_objext; then
21177   ac_cv_member_struct_stat_st_blksize=yes
21178 else
21179   echo "$as_me: failed program was:" >&5
21180 sed 's/^/| /' conftest.$ac_ext >&5
21181
21182         cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h.  */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h.  */
21188 $ac_includes_default
21189 int
21190 main ()
21191 {
21192 static struct stat ac_aggr;
21193 if (sizeof ac_aggr.st_blksize)
21194 return 0;
21195   ;
21196   return 0;
21197 }
21198 _ACEOF
21199 rm -f conftest.$ac_objext
21200 if { (ac_try="$ac_compile"
21201 case "(($ac_try" in
21202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21203   *) ac_try_echo=$ac_try;;
21204 esac
21205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21206   (eval "$ac_compile") 2>conftest.er1
21207   ac_status=$?
21208   grep -v '^ *+' conftest.er1 >conftest.err
21209   rm -f conftest.er1
21210   cat conftest.err >&5
21211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212   (exit $ac_status); } && {
21213          test -z "$ac_c_werror_flag" ||
21214          test ! -s conftest.err
21215        } && test -s conftest.$ac_objext; then
21216   ac_cv_member_struct_stat_st_blksize=yes
21217 else
21218   echo "$as_me: failed program was:" >&5
21219 sed 's/^/| /' conftest.$ac_ext >&5
21220
21221         ac_cv_member_struct_stat_st_blksize=no
21222 fi
21223
21224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 fi
21226
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21228 fi
21229 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21230 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21231 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21232
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21235 _ACEOF
21236
21237
21238 cat >>confdefs.h <<\_ACEOF
21239 #define HAVE_ST_BLKSIZE 1
21240 _ACEOF
21241
21242 fi
21243
21244
21245 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21246 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21247 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21248   echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250   cat >conftest.$ac_ext <<_ACEOF
21251 /* confdefs.h.  */
21252 _ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h.  */
21256 $ac_includes_default
21257 int
21258 main ()
21259 {
21260 static struct stat ac_aggr;
21261 if (ac_aggr.st_blocks)
21262 return 0;
21263   ;
21264   return 0;
21265 }
21266 _ACEOF
21267 rm -f conftest.$ac_objext
21268 if { (ac_try="$ac_compile"
21269 case "(($ac_try" in
21270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21271   *) ac_try_echo=$ac_try;;
21272 esac
21273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21274   (eval "$ac_compile") 2>conftest.er1
21275   ac_status=$?
21276   grep -v '^ *+' conftest.er1 >conftest.err
21277   rm -f conftest.er1
21278   cat conftest.err >&5
21279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280   (exit $ac_status); } && {
21281          test -z "$ac_c_werror_flag" ||
21282          test ! -s conftest.err
21283        } && test -s conftest.$ac_objext; then
21284   ac_cv_member_struct_stat_st_blocks=yes
21285 else
21286   echo "$as_me: failed program was:" >&5
21287 sed 's/^/| /' conftest.$ac_ext >&5
21288
21289         cat >conftest.$ac_ext <<_ACEOF
21290 /* confdefs.h.  */
21291 _ACEOF
21292 cat confdefs.h >>conftest.$ac_ext
21293 cat >>conftest.$ac_ext <<_ACEOF
21294 /* end confdefs.h.  */
21295 $ac_includes_default
21296 int
21297 main ()
21298 {
21299 static struct stat ac_aggr;
21300 if (sizeof ac_aggr.st_blocks)
21301 return 0;
21302   ;
21303   return 0;
21304 }
21305 _ACEOF
21306 rm -f conftest.$ac_objext
21307 if { (ac_try="$ac_compile"
21308 case "(($ac_try" in
21309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21310   *) ac_try_echo=$ac_try;;
21311 esac
21312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21313   (eval "$ac_compile") 2>conftest.er1
21314   ac_status=$?
21315   grep -v '^ *+' conftest.er1 >conftest.err
21316   rm -f conftest.er1
21317   cat conftest.err >&5
21318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21319   (exit $ac_status); } && {
21320          test -z "$ac_c_werror_flag" ||
21321          test ! -s conftest.err
21322        } && test -s conftest.$ac_objext; then
21323   ac_cv_member_struct_stat_st_blocks=yes
21324 else
21325   echo "$as_me: failed program was:" >&5
21326 sed 's/^/| /' conftest.$ac_ext >&5
21327
21328         ac_cv_member_struct_stat_st_blocks=no
21329 fi
21330
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21332 fi
21333
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 fi
21336 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21338 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21339
21340 cat >>confdefs.h <<_ACEOF
21341 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21342 _ACEOF
21343
21344
21345 cat >>confdefs.h <<\_ACEOF
21346 #define HAVE_ST_BLOCKS 1
21347 _ACEOF
21348
21349 else
21350   case " $LIBOBJS " in
21351   *" fileblocks.$ac_objext "* ) ;;
21352   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21353  ;;
21354 esac
21355
21356 fi
21357
21358
21359 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21360 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21361 if test "${ac_cv_struct_tm+set}" = set; then
21362   echo $ECHO_N "(cached) $ECHO_C" >&6
21363 else
21364   cat >conftest.$ac_ext <<_ACEOF
21365 /* confdefs.h.  */
21366 _ACEOF
21367 cat confdefs.h >>conftest.$ac_ext
21368 cat >>conftest.$ac_ext <<_ACEOF
21369 /* end confdefs.h.  */
21370 #include <sys/types.h>
21371 #include <time.h>
21372
21373 int
21374 main ()
21375 {
21376 struct tm tm;
21377                                      int *p = &tm.tm_sec;
21378                                      return !p;
21379   ;
21380   return 0;
21381 }
21382 _ACEOF
21383 rm -f conftest.$ac_objext
21384 if { (ac_try="$ac_compile"
21385 case "(($ac_try" in
21386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387   *) ac_try_echo=$ac_try;;
21388 esac
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390   (eval "$ac_compile") 2>conftest.er1
21391   ac_status=$?
21392   grep -v '^ *+' conftest.er1 >conftest.err
21393   rm -f conftest.er1
21394   cat conftest.err >&5
21395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396   (exit $ac_status); } && {
21397          test -z "$ac_c_werror_flag" ||
21398          test ! -s conftest.err
21399        } && test -s conftest.$ac_objext; then
21400   ac_cv_struct_tm=time.h
21401 else
21402   echo "$as_me: failed program was:" >&5
21403 sed 's/^/| /' conftest.$ac_ext >&5
21404
21405         ac_cv_struct_tm=sys/time.h
21406 fi
21407
21408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21409 fi
21410 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21411 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21412 if test $ac_cv_struct_tm = sys/time.h; then
21413
21414 cat >>confdefs.h <<\_ACEOF
21415 #define TM_IN_SYS_TIME 1
21416 _ACEOF
21417
21418 fi
21419
21420 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21421 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21422 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21423   echo $ECHO_N "(cached) $ECHO_C" >&6
21424 else
21425   cat >conftest.$ac_ext <<_ACEOF
21426 /* confdefs.h.  */
21427 _ACEOF
21428 cat confdefs.h >>conftest.$ac_ext
21429 cat >>conftest.$ac_ext <<_ACEOF
21430 /* end confdefs.h.  */
21431 #include <sys/types.h>
21432 #include <$ac_cv_struct_tm>
21433
21434
21435 int
21436 main ()
21437 {
21438 static struct tm ac_aggr;
21439 if (ac_aggr.tm_zone)
21440 return 0;
21441   ;
21442   return 0;
21443 }
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449   *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452   (eval "$ac_compile") 2>conftest.er1
21453   ac_status=$?
21454   grep -v '^ *+' conftest.er1 >conftest.err
21455   rm -f conftest.er1
21456   cat conftest.err >&5
21457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458   (exit $ac_status); } && {
21459          test -z "$ac_c_werror_flag" ||
21460          test ! -s conftest.err
21461        } && test -s conftest.$ac_objext; then
21462   ac_cv_member_struct_tm_tm_zone=yes
21463 else
21464   echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467         cat >conftest.$ac_ext <<_ACEOF
21468 /* confdefs.h.  */
21469 _ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h.  */
21473 #include <sys/types.h>
21474 #include <$ac_cv_struct_tm>
21475
21476
21477 int
21478 main ()
21479 {
21480 static struct tm ac_aggr;
21481 if (sizeof ac_aggr.tm_zone)
21482 return 0;
21483   ;
21484   return 0;
21485 }
21486 _ACEOF
21487 rm -f conftest.$ac_objext
21488 if { (ac_try="$ac_compile"
21489 case "(($ac_try" in
21490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21491   *) ac_try_echo=$ac_try;;
21492 esac
21493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21494   (eval "$ac_compile") 2>conftest.er1
21495   ac_status=$?
21496   grep -v '^ *+' conftest.er1 >conftest.err
21497   rm -f conftest.er1
21498   cat conftest.err >&5
21499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500   (exit $ac_status); } && {
21501          test -z "$ac_c_werror_flag" ||
21502          test ! -s conftest.err
21503        } && test -s conftest.$ac_objext; then
21504   ac_cv_member_struct_tm_tm_zone=yes
21505 else
21506   echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21508
21509         ac_cv_member_struct_tm_tm_zone=no
21510 fi
21511
21512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513 fi
21514
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 fi
21517 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21518 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21519 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21520
21521 cat >>confdefs.h <<_ACEOF
21522 #define HAVE_STRUCT_TM_TM_ZONE 1
21523 _ACEOF
21524
21525
21526 fi
21527
21528 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21529
21530 cat >>confdefs.h <<\_ACEOF
21531 #define HAVE_TM_ZONE 1
21532 _ACEOF
21533
21534 else
21535   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21536 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21537 if test "${ac_cv_have_decl_tzname+set}" = set; then
21538   echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540   cat >conftest.$ac_ext <<_ACEOF
21541 /* confdefs.h.  */
21542 _ACEOF
21543 cat confdefs.h >>conftest.$ac_ext
21544 cat >>conftest.$ac_ext <<_ACEOF
21545 /* end confdefs.h.  */
21546 #include <time.h>
21547
21548 int
21549 main ()
21550 {
21551 #ifndef tzname
21552   (void) tzname;
21553 #endif
21554
21555   ;
21556   return 0;
21557 }
21558 _ACEOF
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563   *) ac_try_echo=$ac_try;;
21564 esac
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566   (eval "$ac_compile") 2>conftest.er1
21567   ac_status=$?
21568   grep -v '^ *+' conftest.er1 >conftest.err
21569   rm -f conftest.er1
21570   cat conftest.err >&5
21571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572   (exit $ac_status); } && {
21573          test -z "$ac_c_werror_flag" ||
21574          test ! -s conftest.err
21575        } && test -s conftest.$ac_objext; then
21576   ac_cv_have_decl_tzname=yes
21577 else
21578   echo "$as_me: failed program was:" >&5
21579 sed 's/^/| /' conftest.$ac_ext >&5
21580
21581         ac_cv_have_decl_tzname=no
21582 fi
21583
21584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21585 fi
21586 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21587 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21588 if test $ac_cv_have_decl_tzname = yes; then
21589
21590 cat >>confdefs.h <<_ACEOF
21591 #define HAVE_DECL_TZNAME 1
21592 _ACEOF
21593
21594
21595 else
21596   cat >>confdefs.h <<_ACEOF
21597 #define HAVE_DECL_TZNAME 0
21598 _ACEOF
21599
21600
21601 fi
21602
21603
21604   { echo "$as_me:$LINENO: checking for tzname" >&5
21605 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21606 if test "${ac_cv_var_tzname+set}" = set; then
21607   echo $ECHO_N "(cached) $ECHO_C" >&6
21608 else
21609   cat >conftest.$ac_ext <<_ACEOF
21610 /* confdefs.h.  */
21611 _ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h.  */
21615 #include <time.h>
21616 #if !HAVE_DECL_TZNAME
21617 extern char *tzname[];
21618 #endif
21619
21620 int
21621 main ()
21622 {
21623 return tzname[0][0];
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 rm -f conftest.$ac_objext conftest$ac_exeext
21629 if { (ac_try="$ac_link"
21630 case "(($ac_try" in
21631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21632   *) ac_try_echo=$ac_try;;
21633 esac
21634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21635   (eval "$ac_link") 2>conftest.er1
21636   ac_status=$?
21637   grep -v '^ *+' conftest.er1 >conftest.err
21638   rm -f conftest.er1
21639   cat conftest.err >&5
21640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21641   (exit $ac_status); } && {
21642          test -z "$ac_c_werror_flag" ||
21643          test ! -s conftest.err
21644        } && test -s conftest$ac_exeext &&
21645        $as_test_x conftest$ac_exeext; then
21646   ac_cv_var_tzname=yes
21647 else
21648   echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21650
21651         ac_cv_var_tzname=no
21652 fi
21653
21654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21655       conftest$ac_exeext conftest.$ac_ext
21656 fi
21657 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21658 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21659   if test $ac_cv_var_tzname = yes; then
21660
21661 cat >>confdefs.h <<\_ACEOF
21662 #define HAVE_TZNAME 1
21663 _ACEOF
21664
21665   fi
21666 fi
21667
21668
21669 { echo "$as_me:$LINENO: checking for utime.h" >&5
21670 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21671 if test "${ba_cv_header_utime_h+set}" = set; then
21672   echo $ECHO_N "(cached) $ECHO_C" >&6
21673 else
21674   cat >conftest.$ac_ext <<_ACEOF
21675 /* confdefs.h.  */
21676 _ACEOF
21677 cat confdefs.h >>conftest.$ac_ext
21678 cat >>conftest.$ac_ext <<_ACEOF
21679 /* end confdefs.h.  */
21680
21681 #include <sys/types.h>
21682 #include <utime.h>
21683 int
21684 main ()
21685 {
21686 struct utimbuf foo
21687   ;
21688   return 0;
21689 }
21690 _ACEOF
21691 rm -f conftest.$ac_objext
21692 if { (ac_try="$ac_compile"
21693 case "(($ac_try" in
21694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21695   *) ac_try_echo=$ac_try;;
21696 esac
21697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21698   (eval "$ac_compile") 2>conftest.er1
21699   ac_status=$?
21700   grep -v '^ *+' conftest.er1 >conftest.err
21701   rm -f conftest.er1
21702   cat conftest.err >&5
21703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704   (exit $ac_status); } && {
21705          test -z "$ac_c_werror_flag" ||
21706          test ! -s conftest.err
21707        } && test -s conftest.$ac_objext; then
21708   ba_cv_header_utime_h=yes
21709 else
21710   echo "$as_me: failed program was:" >&5
21711 sed 's/^/| /' conftest.$ac_ext >&5
21712
21713         ba_cv_header_utime_h=no
21714 fi
21715
21716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 fi
21718 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21719 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21720 test $ba_cv_header_utime_h = yes &&
21721 cat >>confdefs.h <<\_ACEOF
21722 #define HAVE_UTIME_H 1
21723 _ACEOF
21724
21725
21726 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21727 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21728 if test "${ba_cv_header_socklen_t+set}" = set; then
21729   echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731   cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h.  */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h.  */
21737
21738 #include <sys/types.h>
21739 #include <sys/socket.h>
21740 int
21741 main ()
21742 {
21743 socklen_t x
21744   ;
21745   return 0;
21746 }
21747 _ACEOF
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752   *) ac_try_echo=$ac_try;;
21753 esac
21754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21755   (eval "$ac_compile") 2>conftest.er1
21756   ac_status=$?
21757   grep -v '^ *+' conftest.er1 >conftest.err
21758   rm -f conftest.er1
21759   cat conftest.err >&5
21760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21761   (exit $ac_status); } && {
21762          test -z "$ac_c_werror_flag" ||
21763          test ! -s conftest.err
21764        } && test -s conftest.$ac_objext; then
21765   ba_cv_header_socklen_t=yes
21766 else
21767   echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21769
21770         ba_cv_header_socklen_t=no
21771 fi
21772
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 fi
21775 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21776 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21777 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21778 #define HAVE_SOCKLEN_T 1
21779 _ACEOF
21780
21781
21782 { echo "$as_me:$LINENO: checking for bigendian" >&5
21783 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21784 if test "${ba_cv_bigendian+set}" = set; then
21785   echo $ECHO_N "(cached) $ECHO_C" >&6
21786 else
21787   if test "$cross_compiling" = yes; then
21788   ba_cv_bigendian=no
21789 else
21790   cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21797 _ACEOF
21798 rm -f conftest$ac_exeext
21799 if { (ac_try="$ac_link"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_link") 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21809   { (case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814   (eval "$ac_try") 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818   ba_cv_bigendian=yes
21819 else
21820   echo "$as_me: program exited with status $ac_status" >&5
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 ( exit $ac_status )
21825 ba_cv_bigendian=no
21826 fi
21827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21828 fi
21829
21830
21831 fi
21832 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21833 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21834 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21835 #define HAVE_BIGENDIAN 1
21836 _ACEOF
21837
21838
21839 ac_ext=cpp
21840 ac_cpp='$CXXCPP $CPPFLAGS'
21841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21844
21845
21846 { echo "$as_me:$LINENO: checking for typeof" >&5
21847 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21848 if test "${ba_cv_have_typeof+set}" = set; then
21849   echo $ECHO_N "(cached) $ECHO_C" >&6
21850 else
21851   if test "$cross_compiling" = yes; then
21852   ba_cv_have_typeof=no
21853 else
21854   cat >conftest.$ac_ext <<_ACEOF
21855 /* confdefs.h.  */
21856 _ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h.  */
21860 main(){char *a = 0; a = (typeof a)a;}
21861 _ACEOF
21862 rm -f conftest$ac_exeext
21863 if { (ac_try="$ac_link"
21864 case "(($ac_try" in
21865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21866   *) ac_try_echo=$ac_try;;
21867 esac
21868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21869   (eval "$ac_link") 2>&5
21870   ac_status=$?
21871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21873   { (case "(($ac_try" in
21874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21875   *) ac_try_echo=$ac_try;;
21876 esac
21877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21878   (eval "$ac_try") 2>&5
21879   ac_status=$?
21880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881   (exit $ac_status); }; }; then
21882   ba_cv_have_typeof=yes
21883 else
21884   echo "$as_me: program exited with status $ac_status" >&5
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21887
21888 ( exit $ac_status )
21889 ba_cv_have_typeof=no
21890 fi
21891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21892 fi
21893
21894
21895 fi
21896 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21897 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21898 test $ba_cv_have_typeof = yes &&
21899 cat >>confdefs.h <<\_ACEOF
21900 #define HAVE_TYPEOF 1
21901 _ACEOF
21902
21903 ac_ext=c
21904 ac_cpp='$CPP $CPPFLAGS'
21905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908
21909
21910 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21911 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21912 if test "${ac_cv_c_const+set}" = set; then
21913   echo $ECHO_N "(cached) $ECHO_C" >&6
21914 else
21915   cat >conftest.$ac_ext <<_ACEOF
21916 /* confdefs.h.  */
21917 _ACEOF
21918 cat confdefs.h >>conftest.$ac_ext
21919 cat >>conftest.$ac_ext <<_ACEOF
21920 /* end confdefs.h.  */
21921
21922 int
21923 main ()
21924 {
21925 /* FIXME: Include the comments suggested by Paul. */
21926 #ifndef __cplusplus
21927   /* Ultrix mips cc rejects this.  */
21928   typedef int charset[2];
21929   const charset cs;
21930   /* SunOS 4.1.1 cc rejects this.  */
21931   char const *const *pcpcc;
21932   char **ppc;
21933   /* NEC SVR4.0.2 mips cc rejects this.  */
21934   struct point {int x, y;};
21935   static struct point const zero = {0,0};
21936   /* AIX XL C 1.02.0.0 rejects this.
21937      It does not let you subtract one const X* pointer from another in
21938      an arm of an if-expression whose if-part is not a constant
21939      expression */
21940   const char *g = "string";
21941   pcpcc = &g + (g ? g-g : 0);
21942   /* HPUX 7.0 cc rejects these. */
21943   ++pcpcc;
21944   ppc = (char**) pcpcc;
21945   pcpcc = (char const *const *) ppc;
21946   { /* SCO 3.2v4 cc rejects this.  */
21947     char *t;
21948     char const *s = 0 ? (char *) 0 : (char const *) 0;
21949
21950     *t++ = 0;
21951     if (s) return 0;
21952   }
21953   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21954     int x[] = {25, 17};
21955     const int *foo = &x[0];
21956     ++foo;
21957   }
21958   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21959     typedef const int *iptr;
21960     iptr p = 0;
21961     ++p;
21962   }
21963   { /* AIX XL C 1.02.0.0 rejects this saying
21964        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21965     struct s { int j; const int *ap[3]; };
21966     struct s *b; b->j = 5;
21967   }
21968   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21969     const int foo = 10;
21970     if (!foo) return 0;
21971   }
21972   return !cs[0] && !zero.x;
21973 #endif
21974
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 rm -f conftest.$ac_objext
21980 if { (ac_try="$ac_compile"
21981 case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_compile") 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } && {
21993          test -z "$ac_c_werror_flag" ||
21994          test ! -s conftest.err
21995        } && test -s conftest.$ac_objext; then
21996   ac_cv_c_const=yes
21997 else
21998   echo "$as_me: failed program was:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22000
22001         ac_cv_c_const=no
22002 fi
22003
22004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22005 fi
22006 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22007 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22008 if test $ac_cv_c_const = no; then
22009
22010 cat >>confdefs.h <<\_ACEOF
22011 #define const
22012 _ACEOF
22013
22014 fi
22015
22016
22017
22018 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
22019 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
22020 fstype=no
22021 # The order of these tests is important.
22022 cat >conftest.$ac_ext <<_ACEOF
22023 /* confdefs.h.  */
22024 _ACEOF
22025 cat confdefs.h >>conftest.$ac_ext
22026 cat >>conftest.$ac_ext <<_ACEOF
22027 /* end confdefs.h.  */
22028 #include <sys/statvfs.h>
22029 #include <sys/fstyp.h>
22030 _ACEOF
22031 if { (ac_try="$ac_cpp conftest.$ac_ext"
22032 case "(($ac_try" in
22033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22034   *) ac_try_echo=$ac_try;;
22035 esac
22036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22037   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22038   ac_status=$?
22039   grep -v '^ *+' conftest.er1 >conftest.err
22040   rm -f conftest.er1
22041   cat conftest.err >&5
22042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22043   (exit $ac_status); } >/dev/null && {
22044          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22045          test ! -s conftest.err
22046        }; then
22047   cat >>confdefs.h <<\_ACEOF
22048 #define FSTYPE_STATVFS 1
22049 _ACEOF
22050  fstype=SVR4
22051 else
22052   echo "$as_me: failed program was:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22054
22055
22056 fi
22057
22058 rm -f conftest.err conftest.$ac_ext
22059 if test $fstype = no; then
22060 cat >conftest.$ac_ext <<_ACEOF
22061 /* confdefs.h.  */
22062 _ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h.  */
22066 #include <sys/statfs.h>
22067 #include <sys/fstyp.h>
22068 _ACEOF
22069 if { (ac_try="$ac_cpp conftest.$ac_ext"
22070 case "(($ac_try" in
22071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072   *) ac_try_echo=$ac_try;;
22073 esac
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22076   ac_status=$?
22077   grep -v '^ *+' conftest.er1 >conftest.err
22078   rm -f conftest.er1
22079   cat conftest.err >&5
22080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081   (exit $ac_status); } >/dev/null && {
22082          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22083          test ! -s conftest.err
22084        }; then
22085   cat >>confdefs.h <<\_ACEOF
22086 #define FSTYPE_USG_STATFS 1
22087 _ACEOF
22088  fstype=SVR3
22089 else
22090   echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093
22094 fi
22095
22096 rm -f conftest.err conftest.$ac_ext
22097 fi
22098 if test $fstype = no; then
22099 cat >conftest.$ac_ext <<_ACEOF
22100 /* confdefs.h.  */
22101 _ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h.  */
22105 #include <sys/statfs.h>
22106 #include <sys/vmount.h>
22107 _ACEOF
22108 if { (ac_try="$ac_cpp conftest.$ac_ext"
22109 case "(($ac_try" in
22110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111   *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22115   ac_status=$?
22116   grep -v '^ *+' conftest.er1 >conftest.err
22117   rm -f conftest.er1
22118   cat conftest.err >&5
22119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120   (exit $ac_status); } >/dev/null && {
22121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22122          test ! -s conftest.err
22123        }; then
22124   cat >>confdefs.h <<\_ACEOF
22125 #define FSTYPE_AIX_STATFS 1
22126 _ACEOF
22127  fstype=AIX
22128 else
22129   echo "$as_me: failed program was:" >&5
22130 sed 's/^/| /' conftest.$ac_ext >&5
22131
22132
22133 fi
22134
22135 rm -f conftest.err conftest.$ac_ext
22136 fi
22137 if test $fstype = no; then
22138 cat >conftest.$ac_ext <<_ACEOF
22139 /* confdefs.h.  */
22140 _ACEOF
22141 cat confdefs.h >>conftest.$ac_ext
22142 cat >>conftest.$ac_ext <<_ACEOF
22143 /* end confdefs.h.  */
22144 #include <mntent.h>
22145 _ACEOF
22146 if { (ac_try="$ac_cpp conftest.$ac_ext"
22147 case "(($ac_try" in
22148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22149   *) ac_try_echo=$ac_try;;
22150 esac
22151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22153   ac_status=$?
22154   grep -v '^ *+' conftest.er1 >conftest.err
22155   rm -f conftest.er1
22156   cat conftest.err >&5
22157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158   (exit $ac_status); } >/dev/null && {
22159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22160          test ! -s conftest.err
22161        }; then
22162   cat >>confdefs.h <<\_ACEOF
22163 #define FSTYPE_MNTENT 1
22164 _ACEOF
22165  fstype=4.3BSD
22166 else
22167   echo "$as_me: failed program was:" >&5
22168 sed 's/^/| /' conftest.$ac_ext >&5
22169
22170
22171 fi
22172
22173 rm -f conftest.err conftest.$ac_ext
22174 fi
22175 if test $fstype = no; then
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h.  */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h.  */
22182 #include <sys/mount.h>
22183
22184 _ACEOF
22185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22186   $EGREP "f_type;" >/dev/null 2>&1; then
22187   cat >>confdefs.h <<\_ACEOF
22188 #define FSTYPE_STATFS 1
22189 _ACEOF
22190  fstype=4.4BSD/OSF1
22191 fi
22192 rm -f conftest*
22193
22194 fi
22195 if test $fstype = no; then
22196 cat >conftest.$ac_ext <<_ACEOF
22197 /* confdefs.h.  */
22198 _ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h.  */
22202 #include <sys/mount.h>
22203 #include <sys/fs_types.h>
22204 _ACEOF
22205 if { (ac_try="$ac_cpp conftest.$ac_ext"
22206 case "(($ac_try" in
22207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22208   *) ac_try_echo=$ac_try;;
22209 esac
22210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22211   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22212   ac_status=$?
22213   grep -v '^ *+' conftest.er1 >conftest.err
22214   rm -f conftest.er1
22215   cat conftest.err >&5
22216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22217   (exit $ac_status); } >/dev/null && {
22218          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22219          test ! -s conftest.err
22220        }; then
22221   cat >>confdefs.h <<\_ACEOF
22222 #define FSTYPE_GETMNT 1
22223 _ACEOF
22224  fstype=Ultrix
22225 else
22226   echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.$ac_ext >&5
22228
22229
22230 fi
22231
22232 rm -f conftest.err conftest.$ac_ext
22233 fi
22234 { echo "$as_me:$LINENO: result: $fstype" >&5
22235 echo "${ECHO_T}$fstype" >&6; }
22236
22237 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22238   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22239 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22240 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22241   echo $ECHO_N "(cached) $ECHO_C" >&6
22242 fi
22243 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22244 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22245 else
22246   # Is the header compilable?
22247 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22248 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22249 cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h.  */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h.  */
22255 $ac_includes_default
22256 #include <sys/statvfs.h>
22257 _ACEOF
22258 rm -f conftest.$ac_objext
22259 if { (ac_try="$ac_compile"
22260 case "(($ac_try" in
22261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22262   *) ac_try_echo=$ac_try;;
22263 esac
22264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22265   (eval "$ac_compile") 2>conftest.er1
22266   ac_status=$?
22267   grep -v '^ *+' conftest.er1 >conftest.err
22268   rm -f conftest.er1
22269   cat conftest.err >&5
22270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271   (exit $ac_status); } && {
22272          test -z "$ac_c_werror_flag" ||
22273          test ! -s conftest.err
22274        } && test -s conftest.$ac_objext; then
22275   ac_header_compiler=yes
22276 else
22277   echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280         ac_header_compiler=no
22281 fi
22282
22283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22285 echo "${ECHO_T}$ac_header_compiler" >&6; }
22286
22287 # Is the header present?
22288 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22289 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22290 cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h.  */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
22295 /* end confdefs.h.  */
22296 #include <sys/statvfs.h>
22297 _ACEOF
22298 if { (ac_try="$ac_cpp conftest.$ac_ext"
22299 case "(($ac_try" in
22300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301   *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22305   ac_status=$?
22306   grep -v '^ *+' conftest.er1 >conftest.err
22307   rm -f conftest.er1
22308   cat conftest.err >&5
22309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22310   (exit $ac_status); } >/dev/null && {
22311          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22312          test ! -s conftest.err
22313        }; then
22314   ac_header_preproc=yes
22315 else
22316   echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319   ac_header_preproc=no
22320 fi
22321
22322 rm -f conftest.err conftest.$ac_ext
22323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22324 echo "${ECHO_T}$ac_header_preproc" >&6; }
22325
22326 # So?  What about this header?
22327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22328   yes:no: )
22329     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22330 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22331     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22332 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22333     ac_header_preproc=yes
22334     ;;
22335   no:yes:* )
22336     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22337 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22338     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22339 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22340     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22341 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22342     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22343 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22344     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22345 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22346     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22347 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22348
22349     ;;
22350 esac
22351 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22352 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22353 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22354   echo $ECHO_N "(cached) $ECHO_C" >&6
22355 else
22356   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22357 fi
22358 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22359 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22360
22361 fi
22362 if test $ac_cv_header_sys_statvfs_h = yes; then
22363
22364 cat >>confdefs.h <<\_ACEOF
22365 #define HAVE_SYS_STATVFS_H 1
22366 _ACEOF
22367
22368 fi
22369
22370
22371
22372 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22373 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22374 if test "${ac_cv_type_signal+set}" = set; then
22375   echo $ECHO_N "(cached) $ECHO_C" >&6
22376 else
22377   cat >conftest.$ac_ext <<_ACEOF
22378 /* confdefs.h.  */
22379 _ACEOF
22380 cat confdefs.h >>conftest.$ac_ext
22381 cat >>conftest.$ac_ext <<_ACEOF
22382 /* end confdefs.h.  */
22383 #include <sys/types.h>
22384 #include <signal.h>
22385
22386 int
22387 main ()
22388 {
22389 return *(signal (0, 0)) (0) == 1;
22390   ;
22391   return 0;
22392 }
22393 _ACEOF
22394 rm -f conftest.$ac_objext
22395 if { (ac_try="$ac_compile"
22396 case "(($ac_try" in
22397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398   *) ac_try_echo=$ac_try;;
22399 esac
22400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401   (eval "$ac_compile") 2>conftest.er1
22402   ac_status=$?
22403   grep -v '^ *+' conftest.er1 >conftest.err
22404   rm -f conftest.er1
22405   cat conftest.err >&5
22406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407   (exit $ac_status); } && {
22408          test -z "$ac_c_werror_flag" ||
22409          test ! -s conftest.err
22410        } && test -s conftest.$ac_objext; then
22411   ac_cv_type_signal=int
22412 else
22413   echo "$as_me: failed program was:" >&5
22414 sed 's/^/| /' conftest.$ac_ext >&5
22415
22416         ac_cv_type_signal=void
22417 fi
22418
22419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22420 fi
22421 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22422 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22423
22424 cat >>confdefs.h <<_ACEOF
22425 #define RETSIGTYPE $ac_cv_type_signal
22426 _ACEOF
22427
22428
22429
22430   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22431 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22432   if test "${bash_cv_signal_vintage+set}" = set; then
22433   echo $ECHO_N "(cached) $ECHO_C" >&6
22434 else
22435
22436     cat >conftest.$ac_ext <<_ACEOF
22437 /* confdefs.h.  */
22438 _ACEOF
22439 cat confdefs.h >>conftest.$ac_ext
22440 cat >>conftest.$ac_ext <<_ACEOF
22441 /* end confdefs.h.  */
22442 #include <signal.h>
22443 int
22444 main ()
22445 {
22446
22447       sigset_t ss;
22448       struct sigaction sa;
22449       sigemptyset(&ss); sigsuspend(&ss);
22450       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22451       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22452
22453   ;
22454   return 0;
22455 }
22456 _ACEOF
22457 rm -f conftest.$ac_objext conftest$ac_exeext
22458 if { (ac_try="$ac_link"
22459 case "(($ac_try" in
22460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22461   *) ac_try_echo=$ac_try;;
22462 esac
22463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22464   (eval "$ac_link") 2>conftest.er1
22465   ac_status=$?
22466   grep -v '^ *+' conftest.er1 >conftest.err
22467   rm -f conftest.er1
22468   cat conftest.err >&5
22469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22470   (exit $ac_status); } && {
22471          test -z "$ac_c_werror_flag" ||
22472          test ! -s conftest.err
22473        } && test -s conftest$ac_exeext &&
22474        $as_test_x conftest$ac_exeext; then
22475   bash_cv_signal_vintage="posix"
22476 else
22477   echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480
22481       cat >conftest.$ac_ext <<_ACEOF
22482 /* confdefs.h.  */
22483 _ACEOF
22484 cat confdefs.h >>conftest.$ac_ext
22485 cat >>conftest.$ac_ext <<_ACEOF
22486 /* end confdefs.h.  */
22487 #include <signal.h>
22488 int
22489 main ()
22490 {
22491
22492           int mask = sigmask(SIGINT);
22493           sigsetmask(mask); sigblock(mask); sigpause(mask);
22494
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 rm -f conftest.$ac_objext conftest$ac_exeext
22500 if { (ac_try="$ac_link"
22501 case "(($ac_try" in
22502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503   *) ac_try_echo=$ac_try;;
22504 esac
22505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22506   (eval "$ac_link") 2>conftest.er1
22507   ac_status=$?
22508   grep -v '^ *+' conftest.er1 >conftest.err
22509   rm -f conftest.er1
22510   cat conftest.err >&5
22511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512   (exit $ac_status); } && {
22513          test -z "$ac_c_werror_flag" ||
22514          test ! -s conftest.err
22515        } && test -s conftest$ac_exeext &&
22516        $as_test_x conftest$ac_exeext; then
22517   bash_cv_signal_vintage="4.2bsd"
22518 else
22519   echo "$as_me: failed program was:" >&5
22520 sed 's/^/| /' conftest.$ac_ext >&5
22521
22522
22523         cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529
22530           #include <signal.h>
22531           RETSIGTYPE foo() { }
22532 int
22533 main ()
22534 {
22535
22536                   int mask = sigmask(SIGINT);
22537                   sigset(SIGINT, foo); sigrelse(SIGINT);
22538                   sighold(SIGINT); sigpause(SIGINT);
22539
22540   ;
22541   return 0;
22542 }
22543 _ACEOF
22544 rm -f conftest.$ac_objext conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548   *) ac_try_echo=$ac_try;;
22549 esac
22550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22551   (eval "$ac_link") 2>conftest.er1
22552   ac_status=$?
22553   grep -v '^ *+' conftest.er1 >conftest.err
22554   rm -f conftest.er1
22555   cat conftest.err >&5
22556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } && {
22558          test -z "$ac_c_werror_flag" ||
22559          test ! -s conftest.err
22560        } && test -s conftest$ac_exeext &&
22561        $as_test_x conftest$ac_exeext; then
22562   bash_cv_signal_vintage="svr3"
22563 else
22564   echo "$as_me: failed program was:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22566
22567         bash_cv_signal_vintage="v7"
22568
22569 fi
22570
22571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22572       conftest$ac_exeext conftest.$ac_ext
22573
22574 fi
22575
22576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22577       conftest$ac_exeext conftest.$ac_ext
22578
22579 fi
22580
22581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22582       conftest$ac_exeext conftest.$ac_ext
22583
22584 fi
22585
22586   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22587 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22588   if test "$bash_cv_signal_vintage" = "posix"; then
22589     cat >>confdefs.h <<\_ACEOF
22590 #define HAVE_POSIX_SIGNALS 1
22591 _ACEOF
22592
22593   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22594     cat >>confdefs.h <<\_ACEOF
22595 #define HAVE_BSD_SIGNALS 1
22596 _ACEOF
22597
22598   elif test "$bash_cv_signal_vintage" = "svr3"; then
22599     cat >>confdefs.h <<\_ACEOF
22600 #define HAVE_USG_SIGHOLD 1
22601 _ACEOF
22602
22603   fi
22604
22605 { echo "$as_me:$LINENO: checking for mode_t" >&5
22606 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22607 if test "${ac_cv_type_mode_t+set}" = set; then
22608   echo $ECHO_N "(cached) $ECHO_C" >&6
22609 else
22610   cat >conftest.$ac_ext <<_ACEOF
22611 /* confdefs.h.  */
22612 _ACEOF
22613 cat confdefs.h >>conftest.$ac_ext
22614 cat >>conftest.$ac_ext <<_ACEOF
22615 /* end confdefs.h.  */
22616 $ac_includes_default
22617 typedef mode_t ac__type_new_;
22618 int
22619 main ()
22620 {
22621 if ((ac__type_new_ *) 0)
22622   return 0;
22623 if (sizeof (ac__type_new_))
22624   return 0;
22625   ;
22626   return 0;
22627 }
22628 _ACEOF
22629 rm -f conftest.$ac_objext
22630 if { (ac_try="$ac_compile"
22631 case "(($ac_try" in
22632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22633   *) ac_try_echo=$ac_try;;
22634 esac
22635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22636   (eval "$ac_compile") 2>conftest.er1
22637   ac_status=$?
22638   grep -v '^ *+' conftest.er1 >conftest.err
22639   rm -f conftest.er1
22640   cat conftest.err >&5
22641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22642   (exit $ac_status); } && {
22643          test -z "$ac_c_werror_flag" ||
22644          test ! -s conftest.err
22645        } && test -s conftest.$ac_objext; then
22646   ac_cv_type_mode_t=yes
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651         ac_cv_type_mode_t=no
22652 fi
22653
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 fi
22656 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22657 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22658 if test $ac_cv_type_mode_t = yes; then
22659   :
22660 else
22661
22662 cat >>confdefs.h <<_ACEOF
22663 #define mode_t int
22664 _ACEOF
22665
22666 fi
22667
22668 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22669 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22670 if test "${ac_cv_type_uid_t+set}" = set; then
22671   echo $ECHO_N "(cached) $ECHO_C" >&6
22672 else
22673   cat >conftest.$ac_ext <<_ACEOF
22674 /* confdefs.h.  */
22675 _ACEOF
22676 cat confdefs.h >>conftest.$ac_ext
22677 cat >>conftest.$ac_ext <<_ACEOF
22678 /* end confdefs.h.  */
22679 #include <sys/types.h>
22680
22681 _ACEOF
22682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22683   $EGREP "uid_t" >/dev/null 2>&1; then
22684   ac_cv_type_uid_t=yes
22685 else
22686   ac_cv_type_uid_t=no
22687 fi
22688 rm -f conftest*
22689
22690 fi
22691 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22692 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22693 if test $ac_cv_type_uid_t = no; then
22694
22695 cat >>confdefs.h <<\_ACEOF
22696 #define uid_t int
22697 _ACEOF
22698
22699
22700 cat >>confdefs.h <<\_ACEOF
22701 #define gid_t int
22702 _ACEOF
22703
22704 fi
22705
22706 { echo "$as_me:$LINENO: checking for size_t" >&5
22707 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22708 if test "${ac_cv_type_size_t+set}" = set; then
22709   echo $ECHO_N "(cached) $ECHO_C" >&6
22710 else
22711   cat >conftest.$ac_ext <<_ACEOF
22712 /* confdefs.h.  */
22713 _ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h.  */
22717 $ac_includes_default
22718 typedef size_t ac__type_new_;
22719 int
22720 main ()
22721 {
22722 if ((ac__type_new_ *) 0)
22723   return 0;
22724 if (sizeof (ac__type_new_))
22725   return 0;
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734   *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737   (eval "$ac_compile") 2>conftest.er1
22738   ac_status=$?
22739   grep -v '^ *+' conftest.er1 >conftest.err
22740   rm -f conftest.er1
22741   cat conftest.err >&5
22742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743   (exit $ac_status); } && {
22744          test -z "$ac_c_werror_flag" ||
22745          test ! -s conftest.err
22746        } && test -s conftest.$ac_objext; then
22747   ac_cv_type_size_t=yes
22748 else
22749   echo "$as_me: failed program was:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22751
22752         ac_cv_type_size_t=no
22753 fi
22754
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 fi
22757 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22758 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22759 if test $ac_cv_type_size_t = yes; then
22760   :
22761 else
22762
22763 cat >>confdefs.h <<_ACEOF
22764 #define size_t unsigned int
22765 _ACEOF
22766
22767 fi
22768
22769 { echo "$as_me:$LINENO: checking for pid_t" >&5
22770 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22771 if test "${ac_cv_type_pid_t+set}" = set; then
22772   echo $ECHO_N "(cached) $ECHO_C" >&6
22773 else
22774   cat >conftest.$ac_ext <<_ACEOF
22775 /* confdefs.h.  */
22776 _ACEOF
22777 cat confdefs.h >>conftest.$ac_ext
22778 cat >>conftest.$ac_ext <<_ACEOF
22779 /* end confdefs.h.  */
22780 $ac_includes_default
22781 typedef pid_t ac__type_new_;
22782 int
22783 main ()
22784 {
22785 if ((ac__type_new_ *) 0)
22786   return 0;
22787 if (sizeof (ac__type_new_))
22788   return 0;
22789   ;
22790   return 0;
22791 }
22792 _ACEOF
22793 rm -f conftest.$ac_objext
22794 if { (ac_try="$ac_compile"
22795 case "(($ac_try" in
22796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797   *) ac_try_echo=$ac_try;;
22798 esac
22799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22800   (eval "$ac_compile") 2>conftest.er1
22801   ac_status=$?
22802   grep -v '^ *+' conftest.er1 >conftest.err
22803   rm -f conftest.er1
22804   cat conftest.err >&5
22805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806   (exit $ac_status); } && {
22807          test -z "$ac_c_werror_flag" ||
22808          test ! -s conftest.err
22809        } && test -s conftest.$ac_objext; then
22810   ac_cv_type_pid_t=yes
22811 else
22812   echo "$as_me: failed program was:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22814
22815         ac_cv_type_pid_t=no
22816 fi
22817
22818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22819 fi
22820 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22821 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22822 if test $ac_cv_type_pid_t = yes; then
22823   :
22824 else
22825
22826 cat >>confdefs.h <<_ACEOF
22827 #define pid_t int
22828 _ACEOF
22829
22830 fi
22831
22832 { echo "$as_me:$LINENO: checking for off_t" >&5
22833 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22834 if test "${ac_cv_type_off_t+set}" = set; then
22835   echo $ECHO_N "(cached) $ECHO_C" >&6
22836 else
22837   cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 $ac_includes_default
22844 typedef off_t ac__type_new_;
22845 int
22846 main ()
22847 {
22848 if ((ac__type_new_ *) 0)
22849   return 0;
22850 if (sizeof (ac__type_new_))
22851   return 0;
22852   ;
22853   return 0;
22854 }
22855 _ACEOF
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860   *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863   (eval "$ac_compile") 2>conftest.er1
22864   ac_status=$?
22865   grep -v '^ *+' conftest.er1 >conftest.err
22866   rm -f conftest.er1
22867   cat conftest.err >&5
22868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869   (exit $ac_status); } && {
22870          test -z "$ac_c_werror_flag" ||
22871          test ! -s conftest.err
22872        } && test -s conftest.$ac_objext; then
22873   ac_cv_type_off_t=yes
22874 else
22875   echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22877
22878         ac_cv_type_off_t=no
22879 fi
22880
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 fi
22883 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22884 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22885 if test $ac_cv_type_off_t = yes; then
22886   :
22887 else
22888
22889 cat >>confdefs.h <<_ACEOF
22890 #define off_t long int
22891 _ACEOF
22892
22893 fi
22894
22895 { echo "$as_me:$LINENO: checking for ino_t" >&5
22896 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22897 if test "${ac_cv_type_ino_t+set}" = set; then
22898   echo $ECHO_N "(cached) $ECHO_C" >&6
22899 else
22900   cat >conftest.$ac_ext <<_ACEOF
22901 /* confdefs.h.  */
22902 _ACEOF
22903 cat confdefs.h >>conftest.$ac_ext
22904 cat >>conftest.$ac_ext <<_ACEOF
22905 /* end confdefs.h.  */
22906 $ac_includes_default
22907 typedef ino_t ac__type_new_;
22908 int
22909 main ()
22910 {
22911 if ((ac__type_new_ *) 0)
22912   return 0;
22913 if (sizeof (ac__type_new_))
22914   return 0;
22915   ;
22916   return 0;
22917 }
22918 _ACEOF
22919 rm -f conftest.$ac_objext
22920 if { (ac_try="$ac_compile"
22921 case "(($ac_try" in
22922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923   *) ac_try_echo=$ac_try;;
22924 esac
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926   (eval "$ac_compile") 2>conftest.er1
22927   ac_status=$?
22928   grep -v '^ *+' conftest.er1 >conftest.err
22929   rm -f conftest.er1
22930   cat conftest.err >&5
22931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932   (exit $ac_status); } && {
22933          test -z "$ac_c_werror_flag" ||
22934          test ! -s conftest.err
22935        } && test -s conftest.$ac_objext; then
22936   ac_cv_type_ino_t=yes
22937 else
22938   echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22940
22941         ac_cv_type_ino_t=no
22942 fi
22943
22944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22945 fi
22946 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22947 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22948 if test $ac_cv_type_ino_t = yes; then
22949   :
22950 else
22951
22952 cat >>confdefs.h <<_ACEOF
22953 #define ino_t unsigned long
22954 _ACEOF
22955
22956 fi
22957
22958 { echo "$as_me:$LINENO: checking for dev_t" >&5
22959 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22960 if test "${ac_cv_type_dev_t+set}" = set; then
22961   echo $ECHO_N "(cached) $ECHO_C" >&6
22962 else
22963   cat >conftest.$ac_ext <<_ACEOF
22964 /* confdefs.h.  */
22965 _ACEOF
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h.  */
22969 $ac_includes_default
22970 typedef dev_t ac__type_new_;
22971 int
22972 main ()
22973 {
22974 if ((ac__type_new_ *) 0)
22975   return 0;
22976 if (sizeof (ac__type_new_))
22977   return 0;
22978   ;
22979   return 0;
22980 }
22981 _ACEOF
22982 rm -f conftest.$ac_objext
22983 if { (ac_try="$ac_compile"
22984 case "(($ac_try" in
22985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22986   *) ac_try_echo=$ac_try;;
22987 esac
22988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22989   (eval "$ac_compile") 2>conftest.er1
22990   ac_status=$?
22991   grep -v '^ *+' conftest.er1 >conftest.err
22992   rm -f conftest.er1
22993   cat conftest.err >&5
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); } && {
22996          test -z "$ac_c_werror_flag" ||
22997          test ! -s conftest.err
22998        } && test -s conftest.$ac_objext; then
22999   ac_cv_type_dev_t=yes
23000 else
23001   echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23003
23004         ac_cv_type_dev_t=no
23005 fi
23006
23007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23008 fi
23009 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
23010 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
23011 if test $ac_cv_type_dev_t = yes; then
23012   :
23013 else
23014
23015 cat >>confdefs.h <<_ACEOF
23016 #define dev_t unsigned long
23017 _ACEOF
23018
23019 fi
23020
23021 { echo "$as_me:$LINENO: checking for daddr_t" >&5
23022 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
23023 if test "${ac_cv_type_daddr_t+set}" = set; then
23024   echo $ECHO_N "(cached) $ECHO_C" >&6
23025 else
23026   cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h.  */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h.  */
23032 $ac_includes_default
23033 typedef daddr_t ac__type_new_;
23034 int
23035 main ()
23036 {
23037 if ((ac__type_new_ *) 0)
23038   return 0;
23039 if (sizeof (ac__type_new_))
23040   return 0;
23041   ;
23042   return 0;
23043 }
23044 _ACEOF
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049   *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052   (eval "$ac_compile") 2>conftest.er1
23053   ac_status=$?
23054   grep -v '^ *+' conftest.er1 >conftest.err
23055   rm -f conftest.er1
23056   cat conftest.err >&5
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); } && {
23059          test -z "$ac_c_werror_flag" ||
23060          test ! -s conftest.err
23061        } && test -s conftest.$ac_objext; then
23062   ac_cv_type_daddr_t=yes
23063 else
23064   echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067         ac_cv_type_daddr_t=no
23068 fi
23069
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 fi
23072 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
23073 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
23074 if test $ac_cv_type_daddr_t = yes; then
23075   :
23076 else
23077
23078 cat >>confdefs.h <<_ACEOF
23079 #define daddr_t long
23080 _ACEOF
23081
23082 fi
23083
23084 { echo "$as_me:$LINENO: checking for major_t" >&5
23085 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
23086 if test "${ac_cv_type_major_t+set}" = set; then
23087   echo $ECHO_N "(cached) $ECHO_C" >&6
23088 else
23089   cat >conftest.$ac_ext <<_ACEOF
23090 /* confdefs.h.  */
23091 _ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h.  */
23095 $ac_includes_default
23096 typedef major_t ac__type_new_;
23097 int
23098 main ()
23099 {
23100 if ((ac__type_new_ *) 0)
23101   return 0;
23102 if (sizeof (ac__type_new_))
23103   return 0;
23104   ;
23105   return 0;
23106 }
23107 _ACEOF
23108 rm -f conftest.$ac_objext
23109 if { (ac_try="$ac_compile"
23110 case "(($ac_try" in
23111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23112   *) ac_try_echo=$ac_try;;
23113 esac
23114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23115   (eval "$ac_compile") 2>conftest.er1
23116   ac_status=$?
23117   grep -v '^ *+' conftest.er1 >conftest.err
23118   rm -f conftest.er1
23119   cat conftest.err >&5
23120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121   (exit $ac_status); } && {
23122          test -z "$ac_c_werror_flag" ||
23123          test ! -s conftest.err
23124        } && test -s conftest.$ac_objext; then
23125   ac_cv_type_major_t=yes
23126 else
23127   echo "$as_me: failed program was:" >&5
23128 sed 's/^/| /' conftest.$ac_ext >&5
23129
23130         ac_cv_type_major_t=no
23131 fi
23132
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 fi
23135 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23136 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23137 if test $ac_cv_type_major_t = yes; then
23138   :
23139 else
23140
23141 cat >>confdefs.h <<_ACEOF
23142 #define major_t int
23143 _ACEOF
23144
23145 fi
23146
23147 { echo "$as_me:$LINENO: checking for minor_t" >&5
23148 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23149 if test "${ac_cv_type_minor_t+set}" = set; then
23150   echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152   cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158 $ac_includes_default
23159 typedef minor_t ac__type_new_;
23160 int
23161 main ()
23162 {
23163 if ((ac__type_new_ *) 0)
23164   return 0;
23165 if (sizeof (ac__type_new_))
23166   return 0;
23167   ;
23168   return 0;
23169 }
23170 _ACEOF
23171 rm -f conftest.$ac_objext
23172 if { (ac_try="$ac_compile"
23173 case "(($ac_try" in
23174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23175   *) ac_try_echo=$ac_try;;
23176 esac
23177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23178   (eval "$ac_compile") 2>conftest.er1
23179   ac_status=$?
23180   grep -v '^ *+' conftest.er1 >conftest.err
23181   rm -f conftest.er1
23182   cat conftest.err >&5
23183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184   (exit $ac_status); } && {
23185          test -z "$ac_c_werror_flag" ||
23186          test ! -s conftest.err
23187        } && test -s conftest.$ac_objext; then
23188   ac_cv_type_minor_t=yes
23189 else
23190   echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23192
23193         ac_cv_type_minor_t=no
23194 fi
23195
23196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23197 fi
23198 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23199 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23200 if test $ac_cv_type_minor_t = yes; then
23201   :
23202 else
23203
23204 cat >>confdefs.h <<_ACEOF
23205 #define minor_t int
23206 _ACEOF
23207
23208 fi
23209
23210 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23211 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23212 if test "${ac_cv_type_ssize_t+set}" = set; then
23213   echo $ECHO_N "(cached) $ECHO_C" >&6
23214 else
23215   cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h.  */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h.  */
23221 $ac_includes_default
23222 typedef ssize_t ac__type_new_;
23223 int
23224 main ()
23225 {
23226 if ((ac__type_new_ *) 0)
23227   return 0;
23228 if (sizeof (ac__type_new_))
23229   return 0;
23230   ;
23231   return 0;
23232 }
23233 _ACEOF
23234 rm -f conftest.$ac_objext
23235 if { (ac_try="$ac_compile"
23236 case "(($ac_try" in
23237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23238   *) ac_try_echo=$ac_try;;
23239 esac
23240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23241   (eval "$ac_compile") 2>conftest.er1
23242   ac_status=$?
23243   grep -v '^ *+' conftest.er1 >conftest.err
23244   rm -f conftest.er1
23245   cat conftest.err >&5
23246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247   (exit $ac_status); } && {
23248          test -z "$ac_c_werror_flag" ||
23249          test ! -s conftest.err
23250        } && test -s conftest.$ac_objext; then
23251   ac_cv_type_ssize_t=yes
23252 else
23253   echo "$as_me: failed program was:" >&5
23254 sed 's/^/| /' conftest.$ac_ext >&5
23255
23256         ac_cv_type_ssize_t=no
23257 fi
23258
23259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 fi
23261 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23262 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23263 if test $ac_cv_type_ssize_t = yes; then
23264   :
23265 else
23266
23267 cat >>confdefs.h <<_ACEOF
23268 #define ssize_t int
23269 _ACEOF
23270
23271 fi
23272
23273 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23274 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23275 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23276   echo $ECHO_N "(cached) $ECHO_C" >&6
23277 else
23278   cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h.  */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h.  */
23284 $ac_includes_default
23285 int
23286 main ()
23287 {
23288 static struct stat ac_aggr;
23289 if (ac_aggr.st_blocks)
23290 return 0;
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 rm -f conftest.$ac_objext
23296 if { (ac_try="$ac_compile"
23297 case "(($ac_try" in
23298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23299   *) ac_try_echo=$ac_try;;
23300 esac
23301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23302   (eval "$ac_compile") 2>conftest.er1
23303   ac_status=$?
23304   grep -v '^ *+' conftest.er1 >conftest.err
23305   rm -f conftest.er1
23306   cat conftest.err >&5
23307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23308   (exit $ac_status); } && {
23309          test -z "$ac_c_werror_flag" ||
23310          test ! -s conftest.err
23311        } && test -s conftest.$ac_objext; then
23312   ac_cv_member_struct_stat_st_blocks=yes
23313 else
23314   echo "$as_me: failed program was:" >&5
23315 sed 's/^/| /' conftest.$ac_ext >&5
23316
23317         cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h.  */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h.  */
23323 $ac_includes_default
23324 int
23325 main ()
23326 {
23327 static struct stat ac_aggr;
23328 if (sizeof ac_aggr.st_blocks)
23329 return 0;
23330   ;
23331   return 0;
23332 }
23333 _ACEOF
23334 rm -f conftest.$ac_objext
23335 if { (ac_try="$ac_compile"
23336 case "(($ac_try" in
23337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23338   *) ac_try_echo=$ac_try;;
23339 esac
23340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23341   (eval "$ac_compile") 2>conftest.er1
23342   ac_status=$?
23343   grep -v '^ *+' conftest.er1 >conftest.err
23344   rm -f conftest.er1
23345   cat conftest.err >&5
23346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347   (exit $ac_status); } && {
23348          test -z "$ac_c_werror_flag" ||
23349          test ! -s conftest.err
23350        } && test -s conftest.$ac_objext; then
23351   ac_cv_member_struct_stat_st_blocks=yes
23352 else
23353   echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23355
23356         ac_cv_member_struct_stat_st_blocks=no
23357 fi
23358
23359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23360 fi
23361
23362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23363 fi
23364 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23365 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23366 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23367
23368 cat >>confdefs.h <<_ACEOF
23369 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23370 _ACEOF
23371
23372
23373 cat >>confdefs.h <<\_ACEOF
23374 #define HAVE_ST_BLOCKS 1
23375 _ACEOF
23376
23377 else
23378   case " $LIBOBJS " in
23379   *" fileblocks.$ac_objext "* ) ;;
23380   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23381  ;;
23382 esac
23383
23384 fi
23385
23386
23387 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23388 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23389 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23390   echo $ECHO_N "(cached) $ECHO_C" >&6
23391 else
23392   cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h.  */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h.  */
23398 $ac_includes_default
23399 int
23400 main ()
23401 {
23402 static struct stat ac_aggr;
23403 if (ac_aggr.st_rdev)
23404 return 0;
23405   ;
23406   return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest.$ac_objext
23410 if { (ac_try="$ac_compile"
23411 case "(($ac_try" in
23412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23413   *) ac_try_echo=$ac_try;;
23414 esac
23415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23416   (eval "$ac_compile") 2>conftest.er1
23417   ac_status=$?
23418   grep -v '^ *+' conftest.er1 >conftest.err
23419   rm -f conftest.er1
23420   cat conftest.err >&5
23421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23422   (exit $ac_status); } && {
23423          test -z "$ac_c_werror_flag" ||
23424          test ! -s conftest.err
23425        } && test -s conftest.$ac_objext; then
23426   ac_cv_member_struct_stat_st_rdev=yes
23427 else
23428   echo "$as_me: failed program was:" >&5
23429 sed 's/^/| /' conftest.$ac_ext >&5
23430
23431         cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437 $ac_includes_default
23438 int
23439 main ()
23440 {
23441 static struct stat ac_aggr;
23442 if (sizeof ac_aggr.st_rdev)
23443 return 0;
23444   ;
23445   return 0;
23446 }
23447 _ACEOF
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452   *) ac_try_echo=$ac_try;;
23453 esac
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455   (eval "$ac_compile") 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } && {
23462          test -z "$ac_c_werror_flag" ||
23463          test ! -s conftest.err
23464        } && test -s conftest.$ac_objext; then
23465   ac_cv_member_struct_stat_st_rdev=yes
23466 else
23467   echo "$as_me: failed program was:" >&5
23468 sed 's/^/| /' conftest.$ac_ext >&5
23469
23470         ac_cv_member_struct_stat_st_rdev=no
23471 fi
23472
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23474 fi
23475
23476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23477 fi
23478 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23479 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23480 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23481
23482 cat >>confdefs.h <<_ACEOF
23483 #define HAVE_STRUCT_STAT_ST_RDEV 1
23484 _ACEOF
23485
23486
23487 cat >>confdefs.h <<\_ACEOF
23488 #define HAVE_ST_RDEV 1
23489 _ACEOF
23490
23491 fi
23492
23493
23494 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23495 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23496 if test "${ac_cv_struct_tm+set}" = set; then
23497   echo $ECHO_N "(cached) $ECHO_C" >&6
23498 else
23499   cat >conftest.$ac_ext <<_ACEOF
23500 /* confdefs.h.  */
23501 _ACEOF
23502 cat confdefs.h >>conftest.$ac_ext
23503 cat >>conftest.$ac_ext <<_ACEOF
23504 /* end confdefs.h.  */
23505 #include <sys/types.h>
23506 #include <time.h>
23507
23508 int
23509 main ()
23510 {
23511 struct tm tm;
23512                                      int *p = &tm.tm_sec;
23513                                      return !p;
23514   ;
23515   return 0;
23516 }
23517 _ACEOF
23518 rm -f conftest.$ac_objext
23519 if { (ac_try="$ac_compile"
23520 case "(($ac_try" in
23521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522   *) ac_try_echo=$ac_try;;
23523 esac
23524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23525   (eval "$ac_compile") 2>conftest.er1
23526   ac_status=$?
23527   grep -v '^ *+' conftest.er1 >conftest.err
23528   rm -f conftest.er1
23529   cat conftest.err >&5
23530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531   (exit $ac_status); } && {
23532          test -z "$ac_c_werror_flag" ||
23533          test ! -s conftest.err
23534        } && test -s conftest.$ac_objext; then
23535   ac_cv_struct_tm=time.h
23536 else
23537   echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23539
23540         ac_cv_struct_tm=sys/time.h
23541 fi
23542
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 fi
23545 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23546 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23547 if test $ac_cv_struct_tm = sys/time.h; then
23548
23549 cat >>confdefs.h <<\_ACEOF
23550 #define TM_IN_SYS_TIME 1
23551 _ACEOF
23552
23553 fi
23554
23555 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23556 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23557 if test "${ac_cv_c_const+set}" = set; then
23558   echo $ECHO_N "(cached) $ECHO_C" >&6
23559 else
23560   cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h.  */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h.  */
23566
23567 int
23568 main ()
23569 {
23570 /* FIXME: Include the comments suggested by Paul. */
23571 #ifndef __cplusplus
23572   /* Ultrix mips cc rejects this.  */
23573   typedef int charset[2];
23574   const charset cs;
23575   /* SunOS 4.1.1 cc rejects this.  */
23576   char const *const *pcpcc;
23577   char **ppc;
23578   /* NEC SVR4.0.2 mips cc rejects this.  */
23579   struct point {int x, y;};
23580   static struct point const zero = {0,0};
23581   /* AIX XL C 1.02.0.0 rejects this.
23582      It does not let you subtract one const X* pointer from another in
23583      an arm of an if-expression whose if-part is not a constant
23584      expression */
23585   const char *g = "string";
23586   pcpcc = &g + (g ? g-g : 0);
23587   /* HPUX 7.0 cc rejects these. */
23588   ++pcpcc;
23589   ppc = (char**) pcpcc;
23590   pcpcc = (char const *const *) ppc;
23591   { /* SCO 3.2v4 cc rejects this.  */
23592     char *t;
23593     char const *s = 0 ? (char *) 0 : (char const *) 0;
23594
23595     *t++ = 0;
23596     if (s) return 0;
23597   }
23598   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23599     int x[] = {25, 17};
23600     const int *foo = &x[0];
23601     ++foo;
23602   }
23603   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23604     typedef const int *iptr;
23605     iptr p = 0;
23606     ++p;
23607   }
23608   { /* AIX XL C 1.02.0.0 rejects this saying
23609        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23610     struct s { int j; const int *ap[3]; };
23611     struct s *b; b->j = 5;
23612   }
23613   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23614     const int foo = 10;
23615     if (!foo) return 0;
23616   }
23617   return !cs[0] && !zero.x;
23618 #endif
23619
23620   ;
23621   return 0;
23622 }
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628   *) ac_try_echo=$ac_try;;
23629 esac
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631   (eval "$ac_compile") 2>conftest.er1
23632   ac_status=$?
23633   grep -v '^ *+' conftest.er1 >conftest.err
23634   rm -f conftest.er1
23635   cat conftest.err >&5
23636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637   (exit $ac_status); } && {
23638          test -z "$ac_c_werror_flag" ||
23639          test ! -s conftest.err
23640        } && test -s conftest.$ac_objext; then
23641   ac_cv_c_const=yes
23642 else
23643   echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23645
23646         ac_cv_c_const=no
23647 fi
23648
23649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 fi
23651 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23652 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23653 if test $ac_cv_c_const = no; then
23654
23655 cat >>confdefs.h <<\_ACEOF
23656 #define const
23657 _ACEOF
23658
23659 fi
23660
23661
23662
23663 { echo "$as_me:$LINENO: checking for char" >&5
23664 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23665 if test "${ac_cv_type_char+set}" = set; then
23666   echo $ECHO_N "(cached) $ECHO_C" >&6
23667 else
23668   cat >conftest.$ac_ext <<_ACEOF
23669 /* confdefs.h.  */
23670 _ACEOF
23671 cat confdefs.h >>conftest.$ac_ext
23672 cat >>conftest.$ac_ext <<_ACEOF
23673 /* end confdefs.h.  */
23674 $ac_includes_default
23675 typedef char ac__type_new_;
23676 int
23677 main ()
23678 {
23679 if ((ac__type_new_ *) 0)
23680   return 0;
23681 if (sizeof (ac__type_new_))
23682   return 0;
23683   ;
23684   return 0;
23685 }
23686 _ACEOF
23687 rm -f conftest.$ac_objext
23688 if { (ac_try="$ac_compile"
23689 case "(($ac_try" in
23690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23691   *) ac_try_echo=$ac_try;;
23692 esac
23693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23694   (eval "$ac_compile") 2>conftest.er1
23695   ac_status=$?
23696   grep -v '^ *+' conftest.er1 >conftest.err
23697   rm -f conftest.er1
23698   cat conftest.err >&5
23699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23700   (exit $ac_status); } && {
23701          test -z "$ac_c_werror_flag" ||
23702          test ! -s conftest.err
23703        } && test -s conftest.$ac_objext; then
23704   ac_cv_type_char=yes
23705 else
23706   echo "$as_me: failed program was:" >&5
23707 sed 's/^/| /' conftest.$ac_ext >&5
23708
23709         ac_cv_type_char=no
23710 fi
23711
23712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23713 fi
23714 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23715 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23716
23717 # The cast to long int works around a bug in the HP C Compiler
23718 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23719 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23720 # This bug is HP SR number 8606223364.
23721 { echo "$as_me:$LINENO: checking size of char" >&5
23722 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23723 if test "${ac_cv_sizeof_char+set}" = set; then
23724   echo $ECHO_N "(cached) $ECHO_C" >&6
23725 else
23726   if test "$cross_compiling" = yes; then
23727   # Depending upon the size, compute the lo and hi bounds.
23728 cat >conftest.$ac_ext <<_ACEOF
23729 /* confdefs.h.  */
23730 _ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h.  */
23734 $ac_includes_default
23735    typedef char ac__type_sizeof_;
23736 int
23737 main ()
23738 {
23739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23740 test_array [0] = 0
23741
23742   ;
23743   return 0;
23744 }
23745 _ACEOF
23746 rm -f conftest.$ac_objext
23747 if { (ac_try="$ac_compile"
23748 case "(($ac_try" in
23749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750   *) ac_try_echo=$ac_try;;
23751 esac
23752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23753   (eval "$ac_compile") 2>conftest.er1
23754   ac_status=$?
23755   grep -v '^ *+' conftest.er1 >conftest.err
23756   rm -f conftest.er1
23757   cat conftest.err >&5
23758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23759   (exit $ac_status); } && {
23760          test -z "$ac_c_werror_flag" ||
23761          test ! -s conftest.err
23762        } && test -s conftest.$ac_objext; then
23763   ac_lo=0 ac_mid=0
23764   while :; do
23765     cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h.  */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h.  */
23771 $ac_includes_default
23772    typedef char ac__type_sizeof_;
23773 int
23774 main ()
23775 {
23776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23777 test_array [0] = 0
23778
23779   ;
23780   return 0;
23781 }
23782 _ACEOF
23783 rm -f conftest.$ac_objext
23784 if { (ac_try="$ac_compile"
23785 case "(($ac_try" in
23786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23787   *) ac_try_echo=$ac_try;;
23788 esac
23789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23790   (eval "$ac_compile") 2>conftest.er1
23791   ac_status=$?
23792   grep -v '^ *+' conftest.er1 >conftest.err
23793   rm -f conftest.er1
23794   cat conftest.err >&5
23795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23796   (exit $ac_status); } && {
23797          test -z "$ac_c_werror_flag" ||
23798          test ! -s conftest.err
23799        } && test -s conftest.$ac_objext; then
23800   ac_hi=$ac_mid; break
23801 else
23802   echo "$as_me: failed program was:" >&5
23803 sed 's/^/| /' conftest.$ac_ext >&5
23804
23805         ac_lo=`expr $ac_mid + 1`
23806                         if test $ac_lo -le $ac_mid; then
23807                           ac_lo= ac_hi=
23808                           break
23809                         fi
23810                         ac_mid=`expr 2 '*' $ac_mid + 1`
23811 fi
23812
23813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814   done
23815 else
23816   echo "$as_me: failed program was:" >&5
23817 sed 's/^/| /' conftest.$ac_ext >&5
23818
23819         cat >conftest.$ac_ext <<_ACEOF
23820 /* confdefs.h.  */
23821 _ACEOF
23822 cat confdefs.h >>conftest.$ac_ext
23823 cat >>conftest.$ac_ext <<_ACEOF
23824 /* end confdefs.h.  */
23825 $ac_includes_default
23826    typedef char ac__type_sizeof_;
23827 int
23828 main ()
23829 {
23830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23831 test_array [0] = 0
23832
23833   ;
23834   return 0;
23835 }
23836 _ACEOF
23837 rm -f conftest.$ac_objext
23838 if { (ac_try="$ac_compile"
23839 case "(($ac_try" in
23840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841   *) ac_try_echo=$ac_try;;
23842 esac
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844   (eval "$ac_compile") 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } && {
23851          test -z "$ac_c_werror_flag" ||
23852          test ! -s conftest.err
23853        } && test -s conftest.$ac_objext; then
23854   ac_hi=-1 ac_mid=-1
23855   while :; do
23856     cat >conftest.$ac_ext <<_ACEOF
23857 /* confdefs.h.  */
23858 _ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h.  */
23862 $ac_includes_default
23863    typedef char ac__type_sizeof_;
23864 int
23865 main ()
23866 {
23867 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23868 test_array [0] = 0
23869
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 rm -f conftest.$ac_objext
23875 if { (ac_try="$ac_compile"
23876 case "(($ac_try" in
23877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23878   *) ac_try_echo=$ac_try;;
23879 esac
23880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23881   (eval "$ac_compile") 2>conftest.er1
23882   ac_status=$?
23883   grep -v '^ *+' conftest.er1 >conftest.err
23884   rm -f conftest.er1
23885   cat conftest.err >&5
23886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23887   (exit $ac_status); } && {
23888          test -z "$ac_c_werror_flag" ||
23889          test ! -s conftest.err
23890        } && test -s conftest.$ac_objext; then
23891   ac_lo=$ac_mid; break
23892 else
23893   echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23895
23896         ac_hi=`expr '(' $ac_mid ')' - 1`
23897                         if test $ac_mid -le $ac_hi; then
23898                           ac_lo= ac_hi=
23899                           break
23900                         fi
23901                         ac_mid=`expr 2 '*' $ac_mid`
23902 fi
23903
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23905   done
23906 else
23907   echo "$as_me: failed program was:" >&5
23908 sed 's/^/| /' conftest.$ac_ext >&5
23909
23910         ac_lo= ac_hi=
23911 fi
23912
23913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 fi
23915
23916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23917 # Binary search between lo and hi bounds.
23918 while test "x$ac_lo" != "x$ac_hi"; do
23919   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23920   cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926 $ac_includes_default
23927    typedef char ac__type_sizeof_;
23928 int
23929 main ()
23930 {
23931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23932 test_array [0] = 0
23933
23934   ;
23935   return 0;
23936 }
23937 _ACEOF
23938 rm -f conftest.$ac_objext
23939 if { (ac_try="$ac_compile"
23940 case "(($ac_try" in
23941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23942   *) ac_try_echo=$ac_try;;
23943 esac
23944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23945   (eval "$ac_compile") 2>conftest.er1
23946   ac_status=$?
23947   grep -v '^ *+' conftest.er1 >conftest.err
23948   rm -f conftest.er1
23949   cat conftest.err >&5
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); } && {
23952          test -z "$ac_c_werror_flag" ||
23953          test ! -s conftest.err
23954        } && test -s conftest.$ac_objext; then
23955   ac_hi=$ac_mid
23956 else
23957   echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960         ac_lo=`expr '(' $ac_mid ')' + 1`
23961 fi
23962
23963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23964 done
23965 case $ac_lo in
23966 ?*) ac_cv_sizeof_char=$ac_lo;;
23967 '') if test "$ac_cv_type_char" = yes; then
23968      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23969 See \`config.log' for more details." >&5
23970 echo "$as_me: error: cannot compute sizeof (char)
23971 See \`config.log' for more details." >&2;}
23972    { (exit 77); exit 77; }; }
23973    else
23974      ac_cv_sizeof_char=0
23975    fi ;;
23976 esac
23977 else
23978   cat >conftest.$ac_ext <<_ACEOF
23979 /* confdefs.h.  */
23980 _ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h.  */
23984 $ac_includes_default
23985    typedef char ac__type_sizeof_;
23986 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23987 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23988 #include <stdio.h>
23989 #include <stdlib.h>
23990 int
23991 main ()
23992 {
23993
23994   FILE *f = fopen ("conftest.val", "w");
23995   if (! f)
23996     return 1;
23997   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23998     {
23999       long int i = longval ();
24000       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24001         return 1;
24002       fprintf (f, "%ld\n", i);
24003     }
24004   else
24005     {
24006       unsigned long int i = ulongval ();
24007       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24008         return 1;
24009       fprintf (f, "%lu\n", i);
24010     }
24011   return ferror (f) || fclose (f) != 0;
24012
24013   ;
24014   return 0;
24015 }
24016 _ACEOF
24017 rm -f conftest$ac_exeext
24018 if { (ac_try="$ac_link"
24019 case "(($ac_try" in
24020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24021   *) ac_try_echo=$ac_try;;
24022 esac
24023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24024   (eval "$ac_link") 2>&5
24025   ac_status=$?
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24028   { (case "(($ac_try" in
24029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24030   *) ac_try_echo=$ac_try;;
24031 esac
24032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24033   (eval "$ac_try") 2>&5
24034   ac_status=$?
24035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24036   (exit $ac_status); }; }; then
24037   ac_cv_sizeof_char=`cat conftest.val`
24038 else
24039   echo "$as_me: program exited with status $ac_status" >&5
24040 echo "$as_me: failed program was:" >&5
24041 sed 's/^/| /' conftest.$ac_ext >&5
24042
24043 ( exit $ac_status )
24044 if test "$ac_cv_type_char" = yes; then
24045      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
24046 See \`config.log' for more details." >&5
24047 echo "$as_me: error: cannot compute sizeof (char)
24048 See \`config.log' for more details." >&2;}
24049    { (exit 77); exit 77; }; }
24050    else
24051      ac_cv_sizeof_char=0
24052    fi
24053 fi
24054 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24055 fi
24056 rm -f conftest.val
24057 fi
24058 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
24059 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
24060
24061
24062
24063 cat >>confdefs.h <<_ACEOF
24064 #define SIZEOF_CHAR $ac_cv_sizeof_char
24065 _ACEOF
24066
24067
24068 { echo "$as_me:$LINENO: checking for short int" >&5
24069 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24070 if test "${ac_cv_type_short_int+set}" = set; then
24071   echo $ECHO_N "(cached) $ECHO_C" >&6
24072 else
24073   cat >conftest.$ac_ext <<_ACEOF
24074 /* confdefs.h.  */
24075 _ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h.  */
24079 $ac_includes_default
24080 typedef short int ac__type_new_;
24081 int
24082 main ()
24083 {
24084 if ((ac__type_new_ *) 0)
24085   return 0;
24086 if (sizeof (ac__type_new_))
24087   return 0;
24088   ;
24089   return 0;
24090 }
24091 _ACEOF
24092 rm -f conftest.$ac_objext
24093 if { (ac_try="$ac_compile"
24094 case "(($ac_try" in
24095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24096   *) ac_try_echo=$ac_try;;
24097 esac
24098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24099   (eval "$ac_compile") 2>conftest.er1
24100   ac_status=$?
24101   grep -v '^ *+' conftest.er1 >conftest.err
24102   rm -f conftest.er1
24103   cat conftest.err >&5
24104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24105   (exit $ac_status); } && {
24106          test -z "$ac_c_werror_flag" ||
24107          test ! -s conftest.err
24108        } && test -s conftest.$ac_objext; then
24109   ac_cv_type_short_int=yes
24110 else
24111   echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.$ac_ext >&5
24113
24114         ac_cv_type_short_int=no
24115 fi
24116
24117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24118 fi
24119 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24120 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24121
24122 # The cast to long int works around a bug in the HP C Compiler
24123 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24124 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24125 # This bug is HP SR number 8606223364.
24126 { echo "$as_me:$LINENO: checking size of short int" >&5
24127 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24128 if test "${ac_cv_sizeof_short_int+set}" = set; then
24129   echo $ECHO_N "(cached) $ECHO_C" >&6
24130 else
24131   if test "$cross_compiling" = yes; then
24132   # Depending upon the size, compute the lo and hi bounds.
24133 cat >conftest.$ac_ext <<_ACEOF
24134 /* confdefs.h.  */
24135 _ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h.  */
24139 $ac_includes_default
24140    typedef short int ac__type_sizeof_;
24141 int
24142 main ()
24143 {
24144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24145 test_array [0] = 0
24146
24147   ;
24148   return 0;
24149 }
24150 _ACEOF
24151 rm -f conftest.$ac_objext
24152 if { (ac_try="$ac_compile"
24153 case "(($ac_try" in
24154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24155   *) ac_try_echo=$ac_try;;
24156 esac
24157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24158   (eval "$ac_compile") 2>conftest.er1
24159   ac_status=$?
24160   grep -v '^ *+' conftest.er1 >conftest.err
24161   rm -f conftest.er1
24162   cat conftest.err >&5
24163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164   (exit $ac_status); } && {
24165          test -z "$ac_c_werror_flag" ||
24166          test ! -s conftest.err
24167        } && test -s conftest.$ac_objext; then
24168   ac_lo=0 ac_mid=0
24169   while :; do
24170     cat >conftest.$ac_ext <<_ACEOF
24171 /* confdefs.h.  */
24172 _ACEOF
24173 cat confdefs.h >>conftest.$ac_ext
24174 cat >>conftest.$ac_ext <<_ACEOF
24175 /* end confdefs.h.  */
24176 $ac_includes_default
24177    typedef short int ac__type_sizeof_;
24178 int
24179 main ()
24180 {
24181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24182 test_array [0] = 0
24183
24184   ;
24185   return 0;
24186 }
24187 _ACEOF
24188 rm -f conftest.$ac_objext
24189 if { (ac_try="$ac_compile"
24190 case "(($ac_try" in
24191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192   *) ac_try_echo=$ac_try;;
24193 esac
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195   (eval "$ac_compile") 2>conftest.er1
24196   ac_status=$?
24197   grep -v '^ *+' conftest.er1 >conftest.err
24198   rm -f conftest.er1
24199   cat conftest.err >&5
24200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201   (exit $ac_status); } && {
24202          test -z "$ac_c_werror_flag" ||
24203          test ! -s conftest.err
24204        } && test -s conftest.$ac_objext; then
24205   ac_hi=$ac_mid; break
24206 else
24207   echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210         ac_lo=`expr $ac_mid + 1`
24211                         if test $ac_lo -le $ac_mid; then
24212                           ac_lo= ac_hi=
24213                           break
24214                         fi
24215                         ac_mid=`expr 2 '*' $ac_mid + 1`
24216 fi
24217
24218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219   done
24220 else
24221   echo "$as_me: failed program was:" >&5
24222 sed 's/^/| /' conftest.$ac_ext >&5
24223
24224         cat >conftest.$ac_ext <<_ACEOF
24225 /* confdefs.h.  */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h.  */
24230 $ac_includes_default
24231    typedef short int ac__type_sizeof_;
24232 int
24233 main ()
24234 {
24235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24236 test_array [0] = 0
24237
24238   ;
24239   return 0;
24240 }
24241 _ACEOF
24242 rm -f conftest.$ac_objext
24243 if { (ac_try="$ac_compile"
24244 case "(($ac_try" in
24245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24246   *) ac_try_echo=$ac_try;;
24247 esac
24248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24249   (eval "$ac_compile") 2>conftest.er1
24250   ac_status=$?
24251   grep -v '^ *+' conftest.er1 >conftest.err
24252   rm -f conftest.er1
24253   cat conftest.err >&5
24254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255   (exit $ac_status); } && {
24256          test -z "$ac_c_werror_flag" ||
24257          test ! -s conftest.err
24258        } && test -s conftest.$ac_objext; then
24259   ac_hi=-1 ac_mid=-1
24260   while :; do
24261     cat >conftest.$ac_ext <<_ACEOF
24262 /* confdefs.h.  */
24263 _ACEOF
24264 cat confdefs.h >>conftest.$ac_ext
24265 cat >>conftest.$ac_ext <<_ACEOF
24266 /* end confdefs.h.  */
24267 $ac_includes_default
24268    typedef short int ac__type_sizeof_;
24269 int
24270 main ()
24271 {
24272 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24273 test_array [0] = 0
24274
24275   ;
24276   return 0;
24277 }
24278 _ACEOF
24279 rm -f conftest.$ac_objext
24280 if { (ac_try="$ac_compile"
24281 case "(($ac_try" in
24282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24283   *) ac_try_echo=$ac_try;;
24284 esac
24285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24286   (eval "$ac_compile") 2>conftest.er1
24287   ac_status=$?
24288   grep -v '^ *+' conftest.er1 >conftest.err
24289   rm -f conftest.er1
24290   cat conftest.err >&5
24291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292   (exit $ac_status); } && {
24293          test -z "$ac_c_werror_flag" ||
24294          test ! -s conftest.err
24295        } && test -s conftest.$ac_objext; then
24296   ac_lo=$ac_mid; break
24297 else
24298   echo "$as_me: failed program was:" >&5
24299 sed 's/^/| /' conftest.$ac_ext >&5
24300
24301         ac_hi=`expr '(' $ac_mid ')' - 1`
24302                         if test $ac_mid -le $ac_hi; then
24303                           ac_lo= ac_hi=
24304                           break
24305                         fi
24306                         ac_mid=`expr 2 '*' $ac_mid`
24307 fi
24308
24309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24310   done
24311 else
24312   echo "$as_me: failed program was:" >&5
24313 sed 's/^/| /' conftest.$ac_ext >&5
24314
24315         ac_lo= ac_hi=
24316 fi
24317
24318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24319 fi
24320
24321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24322 # Binary search between lo and hi bounds.
24323 while test "x$ac_lo" != "x$ac_hi"; do
24324   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24325   cat >conftest.$ac_ext <<_ACEOF
24326 /* confdefs.h.  */
24327 _ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h.  */
24331 $ac_includes_default
24332    typedef short int ac__type_sizeof_;
24333 int
24334 main ()
24335 {
24336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24337 test_array [0] = 0
24338
24339   ;
24340   return 0;
24341 }
24342 _ACEOF
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347   *) ac_try_echo=$ac_try;;
24348 esac
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350   (eval "$ac_compile") 2>conftest.er1
24351   ac_status=$?
24352   grep -v '^ *+' conftest.er1 >conftest.err
24353   rm -f conftest.er1
24354   cat conftest.err >&5
24355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356   (exit $ac_status); } && {
24357          test -z "$ac_c_werror_flag" ||
24358          test ! -s conftest.err
24359        } && test -s conftest.$ac_objext; then
24360   ac_hi=$ac_mid
24361 else
24362   echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24364
24365         ac_lo=`expr '(' $ac_mid ')' + 1`
24366 fi
24367
24368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24369 done
24370 case $ac_lo in
24371 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24372 '') if test "$ac_cv_type_short_int" = yes; then
24373      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24374 See \`config.log' for more details." >&5
24375 echo "$as_me: error: cannot compute sizeof (short int)
24376 See \`config.log' for more details." >&2;}
24377    { (exit 77); exit 77; }; }
24378    else
24379      ac_cv_sizeof_short_int=0
24380    fi ;;
24381 esac
24382 else
24383   cat >conftest.$ac_ext <<_ACEOF
24384 /* confdefs.h.  */
24385 _ACEOF
24386 cat confdefs.h >>conftest.$ac_ext
24387 cat >>conftest.$ac_ext <<_ACEOF
24388 /* end confdefs.h.  */
24389 $ac_includes_default
24390    typedef short int ac__type_sizeof_;
24391 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24392 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24393 #include <stdio.h>
24394 #include <stdlib.h>
24395 int
24396 main ()
24397 {
24398
24399   FILE *f = fopen ("conftest.val", "w");
24400   if (! f)
24401     return 1;
24402   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24403     {
24404       long int i = longval ();
24405       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24406         return 1;
24407       fprintf (f, "%ld\n", i);
24408     }
24409   else
24410     {
24411       unsigned long int i = ulongval ();
24412       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24413         return 1;
24414       fprintf (f, "%lu\n", i);
24415     }
24416   return ferror (f) || fclose (f) != 0;
24417
24418   ;
24419   return 0;
24420 }
24421 _ACEOF
24422 rm -f conftest$ac_exeext
24423 if { (ac_try="$ac_link"
24424 case "(($ac_try" in
24425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24426   *) ac_try_echo=$ac_try;;
24427 esac
24428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24429   (eval "$ac_link") 2>&5
24430   ac_status=$?
24431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24433   { (case "(($ac_try" in
24434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24435   *) ac_try_echo=$ac_try;;
24436 esac
24437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24438   (eval "$ac_try") 2>&5
24439   ac_status=$?
24440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441   (exit $ac_status); }; }; then
24442   ac_cv_sizeof_short_int=`cat conftest.val`
24443 else
24444   echo "$as_me: program exited with status $ac_status" >&5
24445 echo "$as_me: failed program was:" >&5
24446 sed 's/^/| /' conftest.$ac_ext >&5
24447
24448 ( exit $ac_status )
24449 if test "$ac_cv_type_short_int" = yes; then
24450      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24451 See \`config.log' for more details." >&5
24452 echo "$as_me: error: cannot compute sizeof (short int)
24453 See \`config.log' for more details." >&2;}
24454    { (exit 77); exit 77; }; }
24455    else
24456      ac_cv_sizeof_short_int=0
24457    fi
24458 fi
24459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24460 fi
24461 rm -f conftest.val
24462 fi
24463 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24464 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24465
24466
24467
24468 cat >>confdefs.h <<_ACEOF
24469 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24470 _ACEOF
24471
24472
24473 { echo "$as_me:$LINENO: checking for int" >&5
24474 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24475 if test "${ac_cv_type_int+set}" = set; then
24476   echo $ECHO_N "(cached) $ECHO_C" >&6
24477 else
24478   cat >conftest.$ac_ext <<_ACEOF
24479 /* confdefs.h.  */
24480 _ACEOF
24481 cat confdefs.h >>conftest.$ac_ext
24482 cat >>conftest.$ac_ext <<_ACEOF
24483 /* end confdefs.h.  */
24484 $ac_includes_default
24485 typedef int ac__type_new_;
24486 int
24487 main ()
24488 {
24489 if ((ac__type_new_ *) 0)
24490   return 0;
24491 if (sizeof (ac__type_new_))
24492   return 0;
24493   ;
24494   return 0;
24495 }
24496 _ACEOF
24497 rm -f conftest.$ac_objext
24498 if { (ac_try="$ac_compile"
24499 case "(($ac_try" in
24500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501   *) ac_try_echo=$ac_try;;
24502 esac
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504   (eval "$ac_compile") 2>conftest.er1
24505   ac_status=$?
24506   grep -v '^ *+' conftest.er1 >conftest.err
24507   rm -f conftest.er1
24508   cat conftest.err >&5
24509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510   (exit $ac_status); } && {
24511          test -z "$ac_c_werror_flag" ||
24512          test ! -s conftest.err
24513        } && test -s conftest.$ac_objext; then
24514   ac_cv_type_int=yes
24515 else
24516   echo "$as_me: failed program was:" >&5
24517 sed 's/^/| /' conftest.$ac_ext >&5
24518
24519         ac_cv_type_int=no
24520 fi
24521
24522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24523 fi
24524 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24525 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24526
24527 # The cast to long int works around a bug in the HP C Compiler
24528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24530 # This bug is HP SR number 8606223364.
24531 { echo "$as_me:$LINENO: checking size of int" >&5
24532 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24533 if test "${ac_cv_sizeof_int+set}" = set; then
24534   echo $ECHO_N "(cached) $ECHO_C" >&6
24535 else
24536   if test "$cross_compiling" = yes; then
24537   # Depending upon the size, compute the lo and hi bounds.
24538 cat >conftest.$ac_ext <<_ACEOF
24539 /* confdefs.h.  */
24540 _ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h.  */
24544 $ac_includes_default
24545    typedef int ac__type_sizeof_;
24546 int
24547 main ()
24548 {
24549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24550 test_array [0] = 0
24551
24552   ;
24553   return 0;
24554 }
24555 _ACEOF
24556 rm -f conftest.$ac_objext
24557 if { (ac_try="$ac_compile"
24558 case "(($ac_try" in
24559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560   *) ac_try_echo=$ac_try;;
24561 esac
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563   (eval "$ac_compile") 2>conftest.er1
24564   ac_status=$?
24565   grep -v '^ *+' conftest.er1 >conftest.err
24566   rm -f conftest.er1
24567   cat conftest.err >&5
24568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569   (exit $ac_status); } && {
24570          test -z "$ac_c_werror_flag" ||
24571          test ! -s conftest.err
24572        } && test -s conftest.$ac_objext; then
24573   ac_lo=0 ac_mid=0
24574   while :; do
24575     cat >conftest.$ac_ext <<_ACEOF
24576 /* confdefs.h.  */
24577 _ACEOF
24578 cat confdefs.h >>conftest.$ac_ext
24579 cat >>conftest.$ac_ext <<_ACEOF
24580 /* end confdefs.h.  */
24581 $ac_includes_default
24582    typedef int ac__type_sizeof_;
24583 int
24584 main ()
24585 {
24586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24587 test_array [0] = 0
24588
24589   ;
24590   return 0;
24591 }
24592 _ACEOF
24593 rm -f conftest.$ac_objext
24594 if { (ac_try="$ac_compile"
24595 case "(($ac_try" in
24596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24597   *) ac_try_echo=$ac_try;;
24598 esac
24599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24600   (eval "$ac_compile") 2>conftest.er1
24601   ac_status=$?
24602   grep -v '^ *+' conftest.er1 >conftest.err
24603   rm -f conftest.er1
24604   cat conftest.err >&5
24605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606   (exit $ac_status); } && {
24607          test -z "$ac_c_werror_flag" ||
24608          test ! -s conftest.err
24609        } && test -s conftest.$ac_objext; then
24610   ac_hi=$ac_mid; break
24611 else
24612   echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615         ac_lo=`expr $ac_mid + 1`
24616                         if test $ac_lo -le $ac_mid; then
24617                           ac_lo= ac_hi=
24618                           break
24619                         fi
24620                         ac_mid=`expr 2 '*' $ac_mid + 1`
24621 fi
24622
24623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24624   done
24625 else
24626   echo "$as_me: failed program was:" >&5
24627 sed 's/^/| /' conftest.$ac_ext >&5
24628
24629         cat >conftest.$ac_ext <<_ACEOF
24630 /* confdefs.h.  */
24631 _ACEOF
24632 cat confdefs.h >>conftest.$ac_ext
24633 cat >>conftest.$ac_ext <<_ACEOF
24634 /* end confdefs.h.  */
24635 $ac_includes_default
24636    typedef int ac__type_sizeof_;
24637 int
24638 main ()
24639 {
24640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24641 test_array [0] = 0
24642
24643   ;
24644   return 0;
24645 }
24646 _ACEOF
24647 rm -f conftest.$ac_objext
24648 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
24655   ac_status=$?
24656   grep -v '^ *+' conftest.er1 >conftest.err
24657   rm -f conftest.er1
24658   cat conftest.err >&5
24659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660   (exit $ac_status); } && {
24661          test -z "$ac_c_werror_flag" ||
24662          test ! -s conftest.err
24663        } && test -s conftest.$ac_objext; then
24664   ac_hi=-1 ac_mid=-1
24665   while :; do
24666     cat >conftest.$ac_ext <<_ACEOF
24667 /* confdefs.h.  */
24668 _ACEOF
24669 cat confdefs.h >>conftest.$ac_ext
24670 cat >>conftest.$ac_ext <<_ACEOF
24671 /* end confdefs.h.  */
24672 $ac_includes_default
24673    typedef int ac__type_sizeof_;
24674 int
24675 main ()
24676 {
24677 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24678 test_array [0] = 0
24679
24680   ;
24681   return 0;
24682 }
24683 _ACEOF
24684 rm -f conftest.$ac_objext
24685 if { (ac_try="$ac_compile"
24686 case "(($ac_try" in
24687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688   *) ac_try_echo=$ac_try;;
24689 esac
24690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24691   (eval "$ac_compile") 2>conftest.er1
24692   ac_status=$?
24693   grep -v '^ *+' conftest.er1 >conftest.err
24694   rm -f conftest.er1
24695   cat conftest.err >&5
24696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697   (exit $ac_status); } && {
24698          test -z "$ac_c_werror_flag" ||
24699          test ! -s conftest.err
24700        } && test -s conftest.$ac_objext; then
24701   ac_lo=$ac_mid; break
24702 else
24703   echo "$as_me: failed program was:" >&5
24704 sed 's/^/| /' conftest.$ac_ext >&5
24705
24706         ac_hi=`expr '(' $ac_mid ')' - 1`
24707                         if test $ac_mid -le $ac_hi; then
24708                           ac_lo= ac_hi=
24709                           break
24710                         fi
24711                         ac_mid=`expr 2 '*' $ac_mid`
24712 fi
24713
24714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24715   done
24716 else
24717   echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720         ac_lo= ac_hi=
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 fi
24725
24726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24727 # Binary search between lo and hi bounds.
24728 while test "x$ac_lo" != "x$ac_hi"; do
24729   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24730   cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h.  */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h.  */
24736 $ac_includes_default
24737    typedef int ac__type_sizeof_;
24738 int
24739 main ()
24740 {
24741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24742 test_array [0] = 0
24743
24744   ;
24745   return 0;
24746 }
24747 _ACEOF
24748 rm -f conftest.$ac_objext
24749 if { (ac_try="$ac_compile"
24750 case "(($ac_try" in
24751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752   *) ac_try_echo=$ac_try;;
24753 esac
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755   (eval "$ac_compile") 2>conftest.er1
24756   ac_status=$?
24757   grep -v '^ *+' conftest.er1 >conftest.err
24758   rm -f conftest.er1
24759   cat conftest.err >&5
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } && {
24762          test -z "$ac_c_werror_flag" ||
24763          test ! -s conftest.err
24764        } && test -s conftest.$ac_objext; then
24765   ac_hi=$ac_mid
24766 else
24767   echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24769
24770         ac_lo=`expr '(' $ac_mid ')' + 1`
24771 fi
24772
24773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24774 done
24775 case $ac_lo in
24776 ?*) ac_cv_sizeof_int=$ac_lo;;
24777 '') if test "$ac_cv_type_int" = yes; then
24778      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24779 See \`config.log' for more details." >&5
24780 echo "$as_me: error: cannot compute sizeof (int)
24781 See \`config.log' for more details." >&2;}
24782    { (exit 77); exit 77; }; }
24783    else
24784      ac_cv_sizeof_int=0
24785    fi ;;
24786 esac
24787 else
24788   cat >conftest.$ac_ext <<_ACEOF
24789 /* confdefs.h.  */
24790 _ACEOF
24791 cat confdefs.h >>conftest.$ac_ext
24792 cat >>conftest.$ac_ext <<_ACEOF
24793 /* end confdefs.h.  */
24794 $ac_includes_default
24795    typedef int ac__type_sizeof_;
24796 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24797 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24798 #include <stdio.h>
24799 #include <stdlib.h>
24800 int
24801 main ()
24802 {
24803
24804   FILE *f = fopen ("conftest.val", "w");
24805   if (! f)
24806     return 1;
24807   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24808     {
24809       long int i = longval ();
24810       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24811         return 1;
24812       fprintf (f, "%ld\n", i);
24813     }
24814   else
24815     {
24816       unsigned long int i = ulongval ();
24817       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24818         return 1;
24819       fprintf (f, "%lu\n", i);
24820     }
24821   return ferror (f) || fclose (f) != 0;
24822
24823   ;
24824   return 0;
24825 }
24826 _ACEOF
24827 rm -f conftest$ac_exeext
24828 if { (ac_try="$ac_link"
24829 case "(($ac_try" in
24830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831   *) ac_try_echo=$ac_try;;
24832 esac
24833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24834   (eval "$ac_link") 2>&5
24835   ac_status=$?
24836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24838   { (case "(($ac_try" in
24839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24840   *) ac_try_echo=$ac_try;;
24841 esac
24842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24843   (eval "$ac_try") 2>&5
24844   ac_status=$?
24845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846   (exit $ac_status); }; }; then
24847   ac_cv_sizeof_int=`cat conftest.val`
24848 else
24849   echo "$as_me: program exited with status $ac_status" >&5
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853 ( exit $ac_status )
24854 if test "$ac_cv_type_int" = yes; then
24855      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24856 See \`config.log' for more details." >&5
24857 echo "$as_me: error: cannot compute sizeof (int)
24858 See \`config.log' for more details." >&2;}
24859    { (exit 77); exit 77; }; }
24860    else
24861      ac_cv_sizeof_int=0
24862    fi
24863 fi
24864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24865 fi
24866 rm -f conftest.val
24867 fi
24868 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24869 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24870
24871
24872
24873 cat >>confdefs.h <<_ACEOF
24874 #define SIZEOF_INT $ac_cv_sizeof_int
24875 _ACEOF
24876
24877
24878 { echo "$as_me:$LINENO: checking for long int" >&5
24879 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24880 if test "${ac_cv_type_long_int+set}" = set; then
24881   echo $ECHO_N "(cached) $ECHO_C" >&6
24882 else
24883   cat >conftest.$ac_ext <<_ACEOF
24884 /* confdefs.h.  */
24885 _ACEOF
24886 cat confdefs.h >>conftest.$ac_ext
24887 cat >>conftest.$ac_ext <<_ACEOF
24888 /* end confdefs.h.  */
24889 $ac_includes_default
24890 typedef long int ac__type_new_;
24891 int
24892 main ()
24893 {
24894 if ((ac__type_new_ *) 0)
24895   return 0;
24896 if (sizeof (ac__type_new_))
24897   return 0;
24898   ;
24899   return 0;
24900 }
24901 _ACEOF
24902 rm -f conftest.$ac_objext
24903 if { (ac_try="$ac_compile"
24904 case "(($ac_try" in
24905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24906   *) ac_try_echo=$ac_try;;
24907 esac
24908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24909   (eval "$ac_compile") 2>conftest.er1
24910   ac_status=$?
24911   grep -v '^ *+' conftest.er1 >conftest.err
24912   rm -f conftest.er1
24913   cat conftest.err >&5
24914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24915   (exit $ac_status); } && {
24916          test -z "$ac_c_werror_flag" ||
24917          test ! -s conftest.err
24918        } && test -s conftest.$ac_objext; then
24919   ac_cv_type_long_int=yes
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         ac_cv_type_long_int=no
24925 fi
24926
24927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24928 fi
24929 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24930 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24931
24932 # The cast to long int works around a bug in the HP C Compiler
24933 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24934 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24935 # This bug is HP SR number 8606223364.
24936 { echo "$as_me:$LINENO: checking size of long int" >&5
24937 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24938 if test "${ac_cv_sizeof_long_int+set}" = set; then
24939   echo $ECHO_N "(cached) $ECHO_C" >&6
24940 else
24941   if test "$cross_compiling" = yes; then
24942   # Depending upon the size, compute the lo and hi bounds.
24943 cat >conftest.$ac_ext <<_ACEOF
24944 /* confdefs.h.  */
24945 _ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h.  */
24949 $ac_includes_default
24950    typedef long int ac__type_sizeof_;
24951 int
24952 main ()
24953 {
24954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24955 test_array [0] = 0
24956
24957   ;
24958   return 0;
24959 }
24960 _ACEOF
24961 rm -f conftest.$ac_objext
24962 if { (ac_try="$ac_compile"
24963 case "(($ac_try" in
24964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24965   *) ac_try_echo=$ac_try;;
24966 esac
24967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24968   (eval "$ac_compile") 2>conftest.er1
24969   ac_status=$?
24970   grep -v '^ *+' conftest.er1 >conftest.err
24971   rm -f conftest.er1
24972   cat conftest.err >&5
24973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24974   (exit $ac_status); } && {
24975          test -z "$ac_c_werror_flag" ||
24976          test ! -s conftest.err
24977        } && test -s conftest.$ac_objext; then
24978   ac_lo=0 ac_mid=0
24979   while :; do
24980     cat >conftest.$ac_ext <<_ACEOF
24981 /* confdefs.h.  */
24982 _ACEOF
24983 cat confdefs.h >>conftest.$ac_ext
24984 cat >>conftest.$ac_ext <<_ACEOF
24985 /* end confdefs.h.  */
24986 $ac_includes_default
24987    typedef long int ac__type_sizeof_;
24988 int
24989 main ()
24990 {
24991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24992 test_array [0] = 0
24993
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002   *) ac_try_echo=$ac_try;;
25003 esac
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005   (eval "$ac_compile") 2>conftest.er1
25006   ac_status=$?
25007   grep -v '^ *+' conftest.er1 >conftest.err
25008   rm -f conftest.er1
25009   cat conftest.err >&5
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); } && {
25012          test -z "$ac_c_werror_flag" ||
25013          test ! -s conftest.err
25014        } && test -s conftest.$ac_objext; then
25015   ac_hi=$ac_mid; break
25016 else
25017   echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25019
25020         ac_lo=`expr $ac_mid + 1`
25021                         if test $ac_lo -le $ac_mid; then
25022                           ac_lo= ac_hi=
25023                           break
25024                         fi
25025                         ac_mid=`expr 2 '*' $ac_mid + 1`
25026 fi
25027
25028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25029   done
25030 else
25031   echo "$as_me: failed program was:" >&5
25032 sed 's/^/| /' conftest.$ac_ext >&5
25033
25034         cat >conftest.$ac_ext <<_ACEOF
25035 /* confdefs.h.  */
25036 _ACEOF
25037 cat confdefs.h >>conftest.$ac_ext
25038 cat >>conftest.$ac_ext <<_ACEOF
25039 /* end confdefs.h.  */
25040 $ac_includes_default
25041    typedef long int ac__type_sizeof_;
25042 int
25043 main ()
25044 {
25045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25046 test_array [0] = 0
25047
25048   ;
25049   return 0;
25050 }
25051 _ACEOF
25052 rm -f conftest.$ac_objext
25053 if { (ac_try="$ac_compile"
25054 case "(($ac_try" in
25055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25056   *) ac_try_echo=$ac_try;;
25057 esac
25058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25059   (eval "$ac_compile") 2>conftest.er1
25060   ac_status=$?
25061   grep -v '^ *+' conftest.er1 >conftest.err
25062   rm -f conftest.er1
25063   cat conftest.err >&5
25064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25065   (exit $ac_status); } && {
25066          test -z "$ac_c_werror_flag" ||
25067          test ! -s conftest.err
25068        } && test -s conftest.$ac_objext; then
25069   ac_hi=-1 ac_mid=-1
25070   while :; do
25071     cat >conftest.$ac_ext <<_ACEOF
25072 /* confdefs.h.  */
25073 _ACEOF
25074 cat confdefs.h >>conftest.$ac_ext
25075 cat >>conftest.$ac_ext <<_ACEOF
25076 /* end confdefs.h.  */
25077 $ac_includes_default
25078    typedef long int ac__type_sizeof_;
25079 int
25080 main ()
25081 {
25082 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25083 test_array [0] = 0
25084
25085   ;
25086   return 0;
25087 }
25088 _ACEOF
25089 rm -f conftest.$ac_objext
25090 if { (ac_try="$ac_compile"
25091 case "(($ac_try" in
25092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25093   *) ac_try_echo=$ac_try;;
25094 esac
25095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25096   (eval "$ac_compile") 2>conftest.er1
25097   ac_status=$?
25098   grep -v '^ *+' conftest.er1 >conftest.err
25099   rm -f conftest.er1
25100   cat conftest.err >&5
25101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25102   (exit $ac_status); } && {
25103          test -z "$ac_c_werror_flag" ||
25104          test ! -s conftest.err
25105        } && test -s conftest.$ac_objext; then
25106   ac_lo=$ac_mid; break
25107 else
25108   echo "$as_me: failed program was:" >&5
25109 sed 's/^/| /' conftest.$ac_ext >&5
25110
25111         ac_hi=`expr '(' $ac_mid ')' - 1`
25112                         if test $ac_mid -le $ac_hi; then
25113                           ac_lo= ac_hi=
25114                           break
25115                         fi
25116                         ac_mid=`expr 2 '*' $ac_mid`
25117 fi
25118
25119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120   done
25121 else
25122   echo "$as_me: failed program was:" >&5
25123 sed 's/^/| /' conftest.$ac_ext >&5
25124
25125         ac_lo= ac_hi=
25126 fi
25127
25128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129 fi
25130
25131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25132 # Binary search between lo and hi bounds.
25133 while test "x$ac_lo" != "x$ac_hi"; do
25134   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25135   cat >conftest.$ac_ext <<_ACEOF
25136 /* confdefs.h.  */
25137 _ACEOF
25138 cat confdefs.h >>conftest.$ac_ext
25139 cat >>conftest.$ac_ext <<_ACEOF
25140 /* end confdefs.h.  */
25141 $ac_includes_default
25142    typedef long int ac__type_sizeof_;
25143 int
25144 main ()
25145 {
25146 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25147 test_array [0] = 0
25148
25149   ;
25150   return 0;
25151 }
25152 _ACEOF
25153 rm -f conftest.$ac_objext
25154 if { (ac_try="$ac_compile"
25155 case "(($ac_try" in
25156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25157   *) ac_try_echo=$ac_try;;
25158 esac
25159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25160   (eval "$ac_compile") 2>conftest.er1
25161   ac_status=$?
25162   grep -v '^ *+' conftest.er1 >conftest.err
25163   rm -f conftest.er1
25164   cat conftest.err >&5
25165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25166   (exit $ac_status); } && {
25167          test -z "$ac_c_werror_flag" ||
25168          test ! -s conftest.err
25169        } && test -s conftest.$ac_objext; then
25170   ac_hi=$ac_mid
25171 else
25172   echo "$as_me: failed program was:" >&5
25173 sed 's/^/| /' conftest.$ac_ext >&5
25174
25175         ac_lo=`expr '(' $ac_mid ')' + 1`
25176 fi
25177
25178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25179 done
25180 case $ac_lo in
25181 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25182 '') if test "$ac_cv_type_long_int" = yes; then
25183      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25184 See \`config.log' for more details." >&5
25185 echo "$as_me: error: cannot compute sizeof (long int)
25186 See \`config.log' for more details." >&2;}
25187    { (exit 77); exit 77; }; }
25188    else
25189      ac_cv_sizeof_long_int=0
25190    fi ;;
25191 esac
25192 else
25193   cat >conftest.$ac_ext <<_ACEOF
25194 /* confdefs.h.  */
25195 _ACEOF
25196 cat confdefs.h >>conftest.$ac_ext
25197 cat >>conftest.$ac_ext <<_ACEOF
25198 /* end confdefs.h.  */
25199 $ac_includes_default
25200    typedef long int ac__type_sizeof_;
25201 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25202 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25203 #include <stdio.h>
25204 #include <stdlib.h>
25205 int
25206 main ()
25207 {
25208
25209   FILE *f = fopen ("conftest.val", "w");
25210   if (! f)
25211     return 1;
25212   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25213     {
25214       long int i = longval ();
25215       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25216         return 1;
25217       fprintf (f, "%ld\n", i);
25218     }
25219   else
25220     {
25221       unsigned long int i = ulongval ();
25222       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25223         return 1;
25224       fprintf (f, "%lu\n", i);
25225     }
25226   return ferror (f) || fclose (f) != 0;
25227
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 rm -f conftest$ac_exeext
25233 if { (ac_try="$ac_link"
25234 case "(($ac_try" in
25235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25236   *) ac_try_echo=$ac_try;;
25237 esac
25238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25239   (eval "$ac_link") 2>&5
25240   ac_status=$?
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25243   { (case "(($ac_try" in
25244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25245   *) ac_try_echo=$ac_try;;
25246 esac
25247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25248   (eval "$ac_try") 2>&5
25249   ac_status=$?
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); }; }; then
25252   ac_cv_sizeof_long_int=`cat conftest.val`
25253 else
25254   echo "$as_me: program exited with status $ac_status" >&5
25255 echo "$as_me: failed program was:" >&5
25256 sed 's/^/| /' conftest.$ac_ext >&5
25257
25258 ( exit $ac_status )
25259 if test "$ac_cv_type_long_int" = yes; then
25260      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25261 See \`config.log' for more details." >&5
25262 echo "$as_me: error: cannot compute sizeof (long int)
25263 See \`config.log' for more details." >&2;}
25264    { (exit 77); exit 77; }; }
25265    else
25266      ac_cv_sizeof_long_int=0
25267    fi
25268 fi
25269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25270 fi
25271 rm -f conftest.val
25272 fi
25273 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25274 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25275
25276
25277
25278 cat >>confdefs.h <<_ACEOF
25279 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25280 _ACEOF
25281
25282
25283 { echo "$as_me:$LINENO: checking for long long int" >&5
25284 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25285 if test "${ac_cv_type_long_long_int+set}" = set; then
25286   echo $ECHO_N "(cached) $ECHO_C" >&6
25287 else
25288   cat >conftest.$ac_ext <<_ACEOF
25289 /* confdefs.h.  */
25290 _ACEOF
25291 cat confdefs.h >>conftest.$ac_ext
25292 cat >>conftest.$ac_ext <<_ACEOF
25293 /* end confdefs.h.  */
25294 $ac_includes_default
25295 typedef long long int ac__type_new_;
25296 int
25297 main ()
25298 {
25299 if ((ac__type_new_ *) 0)
25300   return 0;
25301 if (sizeof (ac__type_new_))
25302   return 0;
25303   ;
25304   return 0;
25305 }
25306 _ACEOF
25307 rm -f conftest.$ac_objext
25308 if { (ac_try="$ac_compile"
25309 case "(($ac_try" in
25310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25311   *) ac_try_echo=$ac_try;;
25312 esac
25313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25314   (eval "$ac_compile") 2>conftest.er1
25315   ac_status=$?
25316   grep -v '^ *+' conftest.er1 >conftest.err
25317   rm -f conftest.er1
25318   cat conftest.err >&5
25319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25320   (exit $ac_status); } && {
25321          test -z "$ac_c_werror_flag" ||
25322          test ! -s conftest.err
25323        } && test -s conftest.$ac_objext; then
25324   ac_cv_type_long_long_int=yes
25325 else
25326   echo "$as_me: failed program was:" >&5
25327 sed 's/^/| /' conftest.$ac_ext >&5
25328
25329         ac_cv_type_long_long_int=no
25330 fi
25331
25332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333 fi
25334 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25335 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25336
25337 # The cast to long int works around a bug in the HP C Compiler
25338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25340 # This bug is HP SR number 8606223364.
25341 { echo "$as_me:$LINENO: checking size of long long int" >&5
25342 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25343 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25344   echo $ECHO_N "(cached) $ECHO_C" >&6
25345 else
25346   if test "$cross_compiling" = yes; then
25347   # Depending upon the size, compute the lo and hi bounds.
25348 cat >conftest.$ac_ext <<_ACEOF
25349 /* confdefs.h.  */
25350 _ACEOF
25351 cat confdefs.h >>conftest.$ac_ext
25352 cat >>conftest.$ac_ext <<_ACEOF
25353 /* end confdefs.h.  */
25354 $ac_includes_default
25355    typedef long long int ac__type_sizeof_;
25356 int
25357 main ()
25358 {
25359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25360 test_array [0] = 0
25361
25362   ;
25363   return 0;
25364 }
25365 _ACEOF
25366 rm -f conftest.$ac_objext
25367 if { (ac_try="$ac_compile"
25368 case "(($ac_try" in
25369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25370   *) ac_try_echo=$ac_try;;
25371 esac
25372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25373   (eval "$ac_compile") 2>conftest.er1
25374   ac_status=$?
25375   grep -v '^ *+' conftest.er1 >conftest.err
25376   rm -f conftest.er1
25377   cat conftest.err >&5
25378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379   (exit $ac_status); } && {
25380          test -z "$ac_c_werror_flag" ||
25381          test ! -s conftest.err
25382        } && test -s conftest.$ac_objext; then
25383   ac_lo=0 ac_mid=0
25384   while :; do
25385     cat >conftest.$ac_ext <<_ACEOF
25386 /* confdefs.h.  */
25387 _ACEOF
25388 cat confdefs.h >>conftest.$ac_ext
25389 cat >>conftest.$ac_ext <<_ACEOF
25390 /* end confdefs.h.  */
25391 $ac_includes_default
25392    typedef long long int ac__type_sizeof_;
25393 int
25394 main ()
25395 {
25396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25397 test_array [0] = 0
25398
25399   ;
25400   return 0;
25401 }
25402 _ACEOF
25403 rm -f conftest.$ac_objext
25404 if { (ac_try="$ac_compile"
25405 case "(($ac_try" in
25406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25407   *) ac_try_echo=$ac_try;;
25408 esac
25409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25410   (eval "$ac_compile") 2>conftest.er1
25411   ac_status=$?
25412   grep -v '^ *+' conftest.er1 >conftest.err
25413   rm -f conftest.er1
25414   cat conftest.err >&5
25415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25416   (exit $ac_status); } && {
25417          test -z "$ac_c_werror_flag" ||
25418          test ! -s conftest.err
25419        } && test -s conftest.$ac_objext; then
25420   ac_hi=$ac_mid; break
25421 else
25422   echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.$ac_ext >&5
25424
25425         ac_lo=`expr $ac_mid + 1`
25426                         if test $ac_lo -le $ac_mid; then
25427                           ac_lo= ac_hi=
25428                           break
25429                         fi
25430                         ac_mid=`expr 2 '*' $ac_mid + 1`
25431 fi
25432
25433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25434   done
25435 else
25436   echo "$as_me: failed program was:" >&5
25437 sed 's/^/| /' conftest.$ac_ext >&5
25438
25439         cat >conftest.$ac_ext <<_ACEOF
25440 /* confdefs.h.  */
25441 _ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h.  */
25445 $ac_includes_default
25446    typedef long long int ac__type_sizeof_;
25447 int
25448 main ()
25449 {
25450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25451 test_array [0] = 0
25452
25453   ;
25454   return 0;
25455 }
25456 _ACEOF
25457 rm -f conftest.$ac_objext
25458 if { (ac_try="$ac_compile"
25459 case "(($ac_try" in
25460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25461   *) ac_try_echo=$ac_try;;
25462 esac
25463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25464   (eval "$ac_compile") 2>conftest.er1
25465   ac_status=$?
25466   grep -v '^ *+' conftest.er1 >conftest.err
25467   rm -f conftest.er1
25468   cat conftest.err >&5
25469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25470   (exit $ac_status); } && {
25471          test -z "$ac_c_werror_flag" ||
25472          test ! -s conftest.err
25473        } && test -s conftest.$ac_objext; then
25474   ac_hi=-1 ac_mid=-1
25475   while :; do
25476     cat >conftest.$ac_ext <<_ACEOF
25477 /* confdefs.h.  */
25478 _ACEOF
25479 cat confdefs.h >>conftest.$ac_ext
25480 cat >>conftest.$ac_ext <<_ACEOF
25481 /* end confdefs.h.  */
25482 $ac_includes_default
25483    typedef long long int ac__type_sizeof_;
25484 int
25485 main ()
25486 {
25487 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25488 test_array [0] = 0
25489
25490   ;
25491   return 0;
25492 }
25493 _ACEOF
25494 rm -f conftest.$ac_objext
25495 if { (ac_try="$ac_compile"
25496 case "(($ac_try" in
25497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25498   *) ac_try_echo=$ac_try;;
25499 esac
25500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25501   (eval "$ac_compile") 2>conftest.er1
25502   ac_status=$?
25503   grep -v '^ *+' conftest.er1 >conftest.err
25504   rm -f conftest.er1
25505   cat conftest.err >&5
25506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25507   (exit $ac_status); } && {
25508          test -z "$ac_c_werror_flag" ||
25509          test ! -s conftest.err
25510        } && test -s conftest.$ac_objext; then
25511   ac_lo=$ac_mid; break
25512 else
25513   echo "$as_me: failed program was:" >&5
25514 sed 's/^/| /' conftest.$ac_ext >&5
25515
25516         ac_hi=`expr '(' $ac_mid ')' - 1`
25517                         if test $ac_mid -le $ac_hi; then
25518                           ac_lo= ac_hi=
25519                           break
25520                         fi
25521                         ac_mid=`expr 2 '*' $ac_mid`
25522 fi
25523
25524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25525   done
25526 else
25527   echo "$as_me: failed program was:" >&5
25528 sed 's/^/| /' conftest.$ac_ext >&5
25529
25530         ac_lo= ac_hi=
25531 fi
25532
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 fi
25535
25536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25537 # Binary search between lo and hi bounds.
25538 while test "x$ac_lo" != "x$ac_hi"; do
25539   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25540   cat >conftest.$ac_ext <<_ACEOF
25541 /* confdefs.h.  */
25542 _ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h.  */
25546 $ac_includes_default
25547    typedef long long int ac__type_sizeof_;
25548 int
25549 main ()
25550 {
25551 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25552 test_array [0] = 0
25553
25554   ;
25555   return 0;
25556 }
25557 _ACEOF
25558 rm -f conftest.$ac_objext
25559 if { (ac_try="$ac_compile"
25560 case "(($ac_try" in
25561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25562   *) ac_try_echo=$ac_try;;
25563 esac
25564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25565   (eval "$ac_compile") 2>conftest.er1
25566   ac_status=$?
25567   grep -v '^ *+' conftest.er1 >conftest.err
25568   rm -f conftest.er1
25569   cat conftest.err >&5
25570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25571   (exit $ac_status); } && {
25572          test -z "$ac_c_werror_flag" ||
25573          test ! -s conftest.err
25574        } && test -s conftest.$ac_objext; then
25575   ac_hi=$ac_mid
25576 else
25577   echo "$as_me: failed program was:" >&5
25578 sed 's/^/| /' conftest.$ac_ext >&5
25579
25580         ac_lo=`expr '(' $ac_mid ')' + 1`
25581 fi
25582
25583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25584 done
25585 case $ac_lo in
25586 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25587 '') if test "$ac_cv_type_long_long_int" = yes; then
25588      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25589 See \`config.log' for more details." >&5
25590 echo "$as_me: error: cannot compute sizeof (long long int)
25591 See \`config.log' for more details." >&2;}
25592    { (exit 77); exit 77; }; }
25593    else
25594      ac_cv_sizeof_long_long_int=0
25595    fi ;;
25596 esac
25597 else
25598   cat >conftest.$ac_ext <<_ACEOF
25599 /* confdefs.h.  */
25600 _ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h.  */
25604 $ac_includes_default
25605    typedef long long int ac__type_sizeof_;
25606 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25607 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25608 #include <stdio.h>
25609 #include <stdlib.h>
25610 int
25611 main ()
25612 {
25613
25614   FILE *f = fopen ("conftest.val", "w");
25615   if (! f)
25616     return 1;
25617   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25618     {
25619       long int i = longval ();
25620       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25621         return 1;
25622       fprintf (f, "%ld\n", i);
25623     }
25624   else
25625     {
25626       unsigned long int i = ulongval ();
25627       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25628         return 1;
25629       fprintf (f, "%lu\n", i);
25630     }
25631   return ferror (f) || fclose (f) != 0;
25632
25633   ;
25634   return 0;
25635 }
25636 _ACEOF
25637 rm -f conftest$ac_exeext
25638 if { (ac_try="$ac_link"
25639 case "(($ac_try" in
25640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25641   *) ac_try_echo=$ac_try;;
25642 esac
25643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25644   (eval "$ac_link") 2>&5
25645   ac_status=$?
25646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25648   { (case "(($ac_try" in
25649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25650   *) ac_try_echo=$ac_try;;
25651 esac
25652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25653   (eval "$ac_try") 2>&5
25654   ac_status=$?
25655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656   (exit $ac_status); }; }; then
25657   ac_cv_sizeof_long_long_int=`cat conftest.val`
25658 else
25659   echo "$as_me: program exited with status $ac_status" >&5
25660 echo "$as_me: failed program was:" >&5
25661 sed 's/^/| /' conftest.$ac_ext >&5
25662
25663 ( exit $ac_status )
25664 if test "$ac_cv_type_long_long_int" = yes; then
25665      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25666 See \`config.log' for more details." >&5
25667 echo "$as_me: error: cannot compute sizeof (long long int)
25668 See \`config.log' for more details." >&2;}
25669    { (exit 77); exit 77; }; }
25670    else
25671      ac_cv_sizeof_long_long_int=0
25672    fi
25673 fi
25674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25675 fi
25676 rm -f conftest.val
25677 fi
25678 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25679 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25680
25681
25682
25683 cat >>confdefs.h <<_ACEOF
25684 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25685 _ACEOF
25686
25687
25688 { echo "$as_me:$LINENO: checking for int *" >&5
25689 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25690 if test "${ac_cv_type_int_p+set}" = set; then
25691   echo $ECHO_N "(cached) $ECHO_C" >&6
25692 else
25693   cat >conftest.$ac_ext <<_ACEOF
25694 /* confdefs.h.  */
25695 _ACEOF
25696 cat confdefs.h >>conftest.$ac_ext
25697 cat >>conftest.$ac_ext <<_ACEOF
25698 /* end confdefs.h.  */
25699 $ac_includes_default
25700 typedef int * ac__type_new_;
25701 int
25702 main ()
25703 {
25704 if ((ac__type_new_ *) 0)
25705   return 0;
25706 if (sizeof (ac__type_new_))
25707   return 0;
25708   ;
25709   return 0;
25710 }
25711 _ACEOF
25712 rm -f conftest.$ac_objext
25713 if { (ac_try="$ac_compile"
25714 case "(($ac_try" in
25715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25716   *) ac_try_echo=$ac_try;;
25717 esac
25718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25719   (eval "$ac_compile") 2>conftest.er1
25720   ac_status=$?
25721   grep -v '^ *+' conftest.er1 >conftest.err
25722   rm -f conftest.er1
25723   cat conftest.err >&5
25724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725   (exit $ac_status); } && {
25726          test -z "$ac_c_werror_flag" ||
25727          test ! -s conftest.err
25728        } && test -s conftest.$ac_objext; then
25729   ac_cv_type_int_p=yes
25730 else
25731   echo "$as_me: failed program was:" >&5
25732 sed 's/^/| /' conftest.$ac_ext >&5
25733
25734         ac_cv_type_int_p=no
25735 fi
25736
25737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25738 fi
25739 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25740 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25741
25742 # The cast to long int works around a bug in the HP C Compiler
25743 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25744 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25745 # This bug is HP SR number 8606223364.
25746 { echo "$as_me:$LINENO: checking size of int *" >&5
25747 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25748 if test "${ac_cv_sizeof_int_p+set}" = set; then
25749   echo $ECHO_N "(cached) $ECHO_C" >&6
25750 else
25751   if test "$cross_compiling" = yes; then
25752   # Depending upon the size, compute the lo and hi bounds.
25753 cat >conftest.$ac_ext <<_ACEOF
25754 /* confdefs.h.  */
25755 _ACEOF
25756 cat confdefs.h >>conftest.$ac_ext
25757 cat >>conftest.$ac_ext <<_ACEOF
25758 /* end confdefs.h.  */
25759 $ac_includes_default
25760    typedef int * ac__type_sizeof_;
25761 int
25762 main ()
25763 {
25764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25765 test_array [0] = 0
25766
25767   ;
25768   return 0;
25769 }
25770 _ACEOF
25771 rm -f conftest.$ac_objext
25772 if { (ac_try="$ac_compile"
25773 case "(($ac_try" in
25774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25775   *) ac_try_echo=$ac_try;;
25776 esac
25777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25778   (eval "$ac_compile") 2>conftest.er1
25779   ac_status=$?
25780   grep -v '^ *+' conftest.er1 >conftest.err
25781   rm -f conftest.er1
25782   cat conftest.err >&5
25783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25784   (exit $ac_status); } && {
25785          test -z "$ac_c_werror_flag" ||
25786          test ! -s conftest.err
25787        } && test -s conftest.$ac_objext; then
25788   ac_lo=0 ac_mid=0
25789   while :; do
25790     cat >conftest.$ac_ext <<_ACEOF
25791 /* confdefs.h.  */
25792 _ACEOF
25793 cat confdefs.h >>conftest.$ac_ext
25794 cat >>conftest.$ac_ext <<_ACEOF
25795 /* end confdefs.h.  */
25796 $ac_includes_default
25797    typedef int * ac__type_sizeof_;
25798 int
25799 main ()
25800 {
25801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25802 test_array [0] = 0
25803
25804   ;
25805   return 0;
25806 }
25807 _ACEOF
25808 rm -f conftest.$ac_objext
25809 if { (ac_try="$ac_compile"
25810 case "(($ac_try" in
25811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812   *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815   (eval "$ac_compile") 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } && {
25822          test -z "$ac_c_werror_flag" ||
25823          test ! -s conftest.err
25824        } && test -s conftest.$ac_objext; then
25825   ac_hi=$ac_mid; break
25826 else
25827   echo "$as_me: failed program was:" >&5
25828 sed 's/^/| /' conftest.$ac_ext >&5
25829
25830         ac_lo=`expr $ac_mid + 1`
25831                         if test $ac_lo -le $ac_mid; then
25832                           ac_lo= ac_hi=
25833                           break
25834                         fi
25835                         ac_mid=`expr 2 '*' $ac_mid + 1`
25836 fi
25837
25838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25839   done
25840 else
25841   echo "$as_me: failed program was:" >&5
25842 sed 's/^/| /' conftest.$ac_ext >&5
25843
25844         cat >conftest.$ac_ext <<_ACEOF
25845 /* confdefs.h.  */
25846 _ACEOF
25847 cat confdefs.h >>conftest.$ac_ext
25848 cat >>conftest.$ac_ext <<_ACEOF
25849 /* end confdefs.h.  */
25850 $ac_includes_default
25851    typedef int * ac__type_sizeof_;
25852 int
25853 main ()
25854 {
25855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25856 test_array [0] = 0
25857
25858   ;
25859   return 0;
25860 }
25861 _ACEOF
25862 rm -f conftest.$ac_objext
25863 if { (ac_try="$ac_compile"
25864 case "(($ac_try" in
25865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25866   *) ac_try_echo=$ac_try;;
25867 esac
25868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25869   (eval "$ac_compile") 2>conftest.er1
25870   ac_status=$?
25871   grep -v '^ *+' conftest.er1 >conftest.err
25872   rm -f conftest.er1
25873   cat conftest.err >&5
25874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25875   (exit $ac_status); } && {
25876          test -z "$ac_c_werror_flag" ||
25877          test ! -s conftest.err
25878        } && test -s conftest.$ac_objext; then
25879   ac_hi=-1 ac_mid=-1
25880   while :; do
25881     cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h.  */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h.  */
25887 $ac_includes_default
25888    typedef int * ac__type_sizeof_;
25889 int
25890 main ()
25891 {
25892 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25893 test_array [0] = 0
25894
25895   ;
25896   return 0;
25897 }
25898 _ACEOF
25899 rm -f conftest.$ac_objext
25900 if { (ac_try="$ac_compile"
25901 case "(($ac_try" in
25902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25903   *) ac_try_echo=$ac_try;;
25904 esac
25905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25906   (eval "$ac_compile") 2>conftest.er1
25907   ac_status=$?
25908   grep -v '^ *+' conftest.er1 >conftest.err
25909   rm -f conftest.er1
25910   cat conftest.err >&5
25911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912   (exit $ac_status); } && {
25913          test -z "$ac_c_werror_flag" ||
25914          test ! -s conftest.err
25915        } && test -s conftest.$ac_objext; then
25916   ac_lo=$ac_mid; break
25917 else
25918   echo "$as_me: failed program was:" >&5
25919 sed 's/^/| /' conftest.$ac_ext >&5
25920
25921         ac_hi=`expr '(' $ac_mid ')' - 1`
25922                         if test $ac_mid -le $ac_hi; then
25923                           ac_lo= ac_hi=
25924                           break
25925                         fi
25926                         ac_mid=`expr 2 '*' $ac_mid`
25927 fi
25928
25929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25930   done
25931 else
25932   echo "$as_me: failed program was:" >&5
25933 sed 's/^/| /' conftest.$ac_ext >&5
25934
25935         ac_lo= ac_hi=
25936 fi
25937
25938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25939 fi
25940
25941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942 # Binary search between lo and hi bounds.
25943 while test "x$ac_lo" != "x$ac_hi"; do
25944   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25945   cat >conftest.$ac_ext <<_ACEOF
25946 /* confdefs.h.  */
25947 _ACEOF
25948 cat confdefs.h >>conftest.$ac_ext
25949 cat >>conftest.$ac_ext <<_ACEOF
25950 /* end confdefs.h.  */
25951 $ac_includes_default
25952    typedef int * ac__type_sizeof_;
25953 int
25954 main ()
25955 {
25956 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25957 test_array [0] = 0
25958
25959   ;
25960   return 0;
25961 }
25962 _ACEOF
25963 rm -f conftest.$ac_objext
25964 if { (ac_try="$ac_compile"
25965 case "(($ac_try" in
25966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25967   *) ac_try_echo=$ac_try;;
25968 esac
25969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25970   (eval "$ac_compile") 2>conftest.er1
25971   ac_status=$?
25972   grep -v '^ *+' conftest.er1 >conftest.err
25973   rm -f conftest.er1
25974   cat conftest.err >&5
25975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976   (exit $ac_status); } && {
25977          test -z "$ac_c_werror_flag" ||
25978          test ! -s conftest.err
25979        } && test -s conftest.$ac_objext; then
25980   ac_hi=$ac_mid
25981 else
25982   echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25984
25985         ac_lo=`expr '(' $ac_mid ')' + 1`
25986 fi
25987
25988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25989 done
25990 case $ac_lo in
25991 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25992 '') if test "$ac_cv_type_int_p" = yes; then
25993      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25994 See \`config.log' for more details." >&5
25995 echo "$as_me: error: cannot compute sizeof (int *)
25996 See \`config.log' for more details." >&2;}
25997    { (exit 77); exit 77; }; }
25998    else
25999      ac_cv_sizeof_int_p=0
26000    fi ;;
26001 esac
26002 else
26003   cat >conftest.$ac_ext <<_ACEOF
26004 /* confdefs.h.  */
26005 _ACEOF
26006 cat confdefs.h >>conftest.$ac_ext
26007 cat >>conftest.$ac_ext <<_ACEOF
26008 /* end confdefs.h.  */
26009 $ac_includes_default
26010    typedef int * ac__type_sizeof_;
26011 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26012 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26013 #include <stdio.h>
26014 #include <stdlib.h>
26015 int
26016 main ()
26017 {
26018
26019   FILE *f = fopen ("conftest.val", "w");
26020   if (! f)
26021     return 1;
26022   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26023     {
26024       long int i = longval ();
26025       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26026         return 1;
26027       fprintf (f, "%ld\n", i);
26028     }
26029   else
26030     {
26031       unsigned long int i = ulongval ();
26032       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26033         return 1;
26034       fprintf (f, "%lu\n", i);
26035     }
26036   return ferror (f) || fclose (f) != 0;
26037
26038   ;
26039   return 0;
26040 }
26041 _ACEOF
26042 rm -f conftest$ac_exeext
26043 if { (ac_try="$ac_link"
26044 case "(($ac_try" in
26045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046   *) ac_try_echo=$ac_try;;
26047 esac
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049   (eval "$ac_link") 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26053   { (case "(($ac_try" in
26054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26055   *) ac_try_echo=$ac_try;;
26056 esac
26057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26058   (eval "$ac_try") 2>&5
26059   ac_status=$?
26060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26061   (exit $ac_status); }; }; then
26062   ac_cv_sizeof_int_p=`cat conftest.val`
26063 else
26064   echo "$as_me: program exited with status $ac_status" >&5
26065 echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26067
26068 ( exit $ac_status )
26069 if test "$ac_cv_type_int_p" = yes; then
26070      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
26071 See \`config.log' for more details." >&5
26072 echo "$as_me: error: cannot compute sizeof (int *)
26073 See \`config.log' for more details." >&2;}
26074    { (exit 77); exit 77; }; }
26075    else
26076      ac_cv_sizeof_int_p=0
26077    fi
26078 fi
26079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26080 fi
26081 rm -f conftest.val
26082 fi
26083 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
26084 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
26085
26086
26087
26088 cat >>confdefs.h <<_ACEOF
26089 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26090 _ACEOF
26091
26092
26093
26094 # Check for sys/types.h types
26095 { echo "$as_me:$LINENO: checking for u_int type" >&5
26096 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26097 if test "${ac_cv_have_u_int+set}" = set; then
26098   echo $ECHO_N "(cached) $ECHO_C" >&6
26099 else
26100
26101     cat >conftest.$ac_ext <<_ACEOF
26102 /* confdefs.h.  */
26103 _ACEOF
26104 cat confdefs.h >>conftest.$ac_ext
26105 cat >>conftest.$ac_ext <<_ACEOF
26106 /* end confdefs.h.  */
26107  #include <sys/types.h>
26108 int
26109 main ()
26110 {
26111  u_int a; a = 1;
26112   ;
26113   return 0;
26114 }
26115 _ACEOF
26116 rm -f conftest.$ac_objext
26117 if { (ac_try="$ac_compile"
26118 case "(($ac_try" in
26119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26120   *) ac_try_echo=$ac_try;;
26121 esac
26122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26123   (eval "$ac_compile") 2>conftest.er1
26124   ac_status=$?
26125   grep -v '^ *+' conftest.er1 >conftest.err
26126   rm -f conftest.er1
26127   cat conftest.err >&5
26128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26129   (exit $ac_status); } && {
26130          test -z "$ac_c_werror_flag" ||
26131          test ! -s conftest.err
26132        } && test -s conftest.$ac_objext; then
26133    ac_cv_have_u_int="yes"
26134 else
26135   echo "$as_me: failed program was:" >&5
26136 sed 's/^/| /' conftest.$ac_ext >&5
26137
26138          ac_cv_have_u_int="no"
26139
26140 fi
26141
26142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26143
26144 fi
26145 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26146 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26147 if test "x$ac_cv_have_u_int" = "xyes" ; then
26148    cat >>confdefs.h <<\_ACEOF
26149 #define HAVE_U_INT 1
26150 _ACEOF
26151
26152    have_u_int=1
26153 fi
26154
26155 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26156 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26157 if test "${ac_cv_have_intmax_t+set}" = set; then
26158   echo $ECHO_N "(cached) $ECHO_C" >&6
26159 else
26160
26161    cat >conftest.$ac_ext <<_ACEOF
26162 /* confdefs.h.  */
26163 _ACEOF
26164 cat confdefs.h >>conftest.$ac_ext
26165 cat >>conftest.$ac_ext <<_ACEOF
26166 /* end confdefs.h.  */
26167  #include <sys/types.h>
26168 int
26169 main ()
26170 {
26171  intmax_t a; a = 1;
26172   ;
26173   return 0;
26174 }
26175 _ACEOF
26176 rm -f conftest.$ac_objext
26177 if { (ac_try="$ac_compile"
26178 case "(($ac_try" in
26179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26180   *) ac_try_echo=$ac_try;;
26181 esac
26182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26183   (eval "$ac_compile") 2>conftest.er1
26184   ac_status=$?
26185   grep -v '^ *+' conftest.er1 >conftest.err
26186   rm -f conftest.er1
26187   cat conftest.err >&5
26188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189   (exit $ac_status); } && {
26190          test -z "$ac_c_werror_flag" ||
26191          test ! -s conftest.err
26192        } && test -s conftest.$ac_objext; then
26193    ac_cv_have_intmax_t="yes"
26194 else
26195   echo "$as_me: failed program was:" >&5
26196 sed 's/^/| /' conftest.$ac_ext >&5
26197
26198
26199          cat >conftest.$ac_ext <<_ACEOF
26200 /* confdefs.h.  */
26201 _ACEOF
26202 cat confdefs.h >>conftest.$ac_ext
26203 cat >>conftest.$ac_ext <<_ACEOF
26204 /* end confdefs.h.  */
26205  #include <stdint.h>
26206 int
26207 main ()
26208 {
26209  intmax_t a; a = 1;
26210   ;
26211   return 0;
26212 }
26213 _ACEOF
26214 rm -f conftest.$ac_objext
26215 if { (ac_try="$ac_compile"
26216 case "(($ac_try" in
26217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26218   *) ac_try_echo=$ac_try;;
26219 esac
26220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26221   (eval "$ac_compile") 2>conftest.er1
26222   ac_status=$?
26223   grep -v '^ *+' conftest.er1 >conftest.err
26224   rm -f conftest.er1
26225   cat conftest.err >&5
26226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227   (exit $ac_status); } && {
26228          test -z "$ac_c_werror_flag" ||
26229          test ! -s conftest.err
26230        } && test -s conftest.$ac_objext; then
26231    ac_cv_have_intmax_t="yes"
26232 else
26233   echo "$as_me: failed program was:" >&5
26234 sed 's/^/| /' conftest.$ac_ext >&5
26235
26236          ac_cv_have_intmax_t="no"
26237
26238 fi
26239
26240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26241
26242
26243 fi
26244
26245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26246
26247
26248 fi
26249 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26250 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26251 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26252    cat >>confdefs.h <<\_ACEOF
26253 #define HAVE_INTMAX_T 1
26254 _ACEOF
26255
26256    have_intmax_t=1
26257 fi
26258
26259
26260 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26261 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26262 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26263   echo $ECHO_N "(cached) $ECHO_C" >&6
26264 else
26265
26266    cat >conftest.$ac_ext <<_ACEOF
26267 /* confdefs.h.  */
26268 _ACEOF
26269 cat confdefs.h >>conftest.$ac_ext
26270 cat >>conftest.$ac_ext <<_ACEOF
26271 /* end confdefs.h.  */
26272  #include <sys/types.h>
26273 int
26274 main ()
26275 {
26276  u_intmax_t a; a = 1;
26277   ;
26278   return 0;
26279 }
26280 _ACEOF
26281 rm -f conftest.$ac_objext
26282 if { (ac_try="$ac_compile"
26283 case "(($ac_try" in
26284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26285   *) ac_try_echo=$ac_try;;
26286 esac
26287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26288   (eval "$ac_compile") 2>conftest.er1
26289   ac_status=$?
26290   grep -v '^ *+' conftest.er1 >conftest.err
26291   rm -f conftest.er1
26292   cat conftest.err >&5
26293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26294   (exit $ac_status); } && {
26295          test -z "$ac_c_werror_flag" ||
26296          test ! -s conftest.err
26297        } && test -s conftest.$ac_objext; then
26298    ac_cv_have_u_intmax_t="yes"
26299 else
26300   echo "$as_me: failed program was:" >&5
26301 sed 's/^/| /' conftest.$ac_ext >&5
26302
26303
26304          cat >conftest.$ac_ext <<_ACEOF
26305 /* confdefs.h.  */
26306 _ACEOF
26307 cat confdefs.h >>conftest.$ac_ext
26308 cat >>conftest.$ac_ext <<_ACEOF
26309 /* end confdefs.h.  */
26310  #include <stdint.h>
26311 int
26312 main ()
26313 {
26314  u_intmax_t a; a = 1;
26315   ;
26316   return 0;
26317 }
26318 _ACEOF
26319 rm -f conftest.$ac_objext
26320 if { (ac_try="$ac_compile"
26321 case "(($ac_try" in
26322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26323   *) ac_try_echo=$ac_try;;
26324 esac
26325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26326   (eval "$ac_compile") 2>conftest.er1
26327   ac_status=$?
26328   grep -v '^ *+' conftest.er1 >conftest.err
26329   rm -f conftest.er1
26330   cat conftest.err >&5
26331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26332   (exit $ac_status); } && {
26333          test -z "$ac_c_werror_flag" ||
26334          test ! -s conftest.err
26335        } && test -s conftest.$ac_objext; then
26336    ac_cv_have_u_intmax_t="yes"
26337 else
26338   echo "$as_me: failed program was:" >&5
26339 sed 's/^/| /' conftest.$ac_ext >&5
26340
26341          ac_cv_have_u_intmax_t="no"
26342
26343 fi
26344
26345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26346
26347
26348 fi
26349
26350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26351
26352 fi
26353 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26354 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26355 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26356    cat >>confdefs.h <<\_ACEOF
26357 #define HAVE_U_INTMAX_T 1
26358 _ACEOF
26359
26360    have_u_intmax_t=1
26361 fi
26362
26363
26364 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26365 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26366 if test "${ac_cv_have_intxx_t+set}" = set; then
26367   echo $ECHO_N "(cached) $ECHO_C" >&6
26368 else
26369
26370    cat >conftest.$ac_ext <<_ACEOF
26371 /* confdefs.h.  */
26372 _ACEOF
26373 cat confdefs.h >>conftest.$ac_ext
26374 cat >>conftest.$ac_ext <<_ACEOF
26375 /* end confdefs.h.  */
26376  #include <sys/types.h>
26377 int
26378 main ()
26379 {
26380  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26381   ;
26382   return 0;
26383 }
26384 _ACEOF
26385 rm -f conftest.$ac_objext
26386 if { (ac_try="$ac_compile"
26387 case "(($ac_try" in
26388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26389   *) ac_try_echo=$ac_try;;
26390 esac
26391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26392   (eval "$ac_compile") 2>conftest.er1
26393   ac_status=$?
26394   grep -v '^ *+' conftest.er1 >conftest.err
26395   rm -f conftest.er1
26396   cat conftest.err >&5
26397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26398   (exit $ac_status); } && {
26399          test -z "$ac_c_werror_flag" ||
26400          test ! -s conftest.err
26401        } && test -s conftest.$ac_objext; then
26402    ac_cv_have_intxx_t="yes"
26403 else
26404   echo "$as_me: failed program was:" >&5
26405 sed 's/^/| /' conftest.$ac_ext >&5
26406
26407          ac_cv_have_intxx_t="no"
26408
26409 fi
26410
26411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26412
26413 fi
26414 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26415 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26416 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26417    cat >>confdefs.h <<\_ACEOF
26418 #define HAVE_INTXX_T 1
26419 _ACEOF
26420
26421    have_intxx_t=1
26422 fi
26423
26424 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26425 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26426 if test "${ac_cv_have_int64_t+set}" = set; then
26427   echo $ECHO_N "(cached) $ECHO_C" >&6
26428 else
26429
26430    cat >conftest.$ac_ext <<_ACEOF
26431 /* confdefs.h.  */
26432 _ACEOF
26433 cat confdefs.h >>conftest.$ac_ext
26434 cat >>conftest.$ac_ext <<_ACEOF
26435 /* end confdefs.h.  */
26436  #include <sys/types.h>
26437 int
26438 main ()
26439 {
26440  int64_t a; a = 1;
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 rm -f conftest.$ac_objext
26446 if { (ac_try="$ac_compile"
26447 case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452   (eval "$ac_compile") 2>conftest.er1
26453   ac_status=$?
26454   grep -v '^ *+' conftest.er1 >conftest.err
26455   rm -f conftest.er1
26456   cat conftest.err >&5
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); } && {
26459          test -z "$ac_c_werror_flag" ||
26460          test ! -s conftest.err
26461        } && test -s conftest.$ac_objext; then
26462    ac_cv_have_int64_t="yes"
26463 else
26464   echo "$as_me: failed program was:" >&5
26465 sed 's/^/| /' conftest.$ac_ext >&5
26466
26467          ac_cv_have_int64_t="no"
26468
26469 fi
26470
26471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26472
26473 fi
26474 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26475 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26476 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26477    cat >>confdefs.h <<\_ACEOF
26478 #define HAVE_INT64_T 1
26479 _ACEOF
26480
26481    have_int64_t=1
26482 fi
26483
26484 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26485 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26486 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26487   echo $ECHO_N "(cached) $ECHO_C" >&6
26488 else
26489
26490    cat >conftest.$ac_ext <<_ACEOF
26491 /* confdefs.h.  */
26492 _ACEOF
26493 cat confdefs.h >>conftest.$ac_ext
26494 cat >>conftest.$ac_ext <<_ACEOF
26495 /* end confdefs.h.  */
26496  #include <sys/types.h>
26497 int
26498 main ()
26499 {
26500  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26501   ;
26502   return 0;
26503 }
26504 _ACEOF
26505 rm -f conftest.$ac_objext
26506 if { (ac_try="$ac_compile"
26507 case "(($ac_try" in
26508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26509   *) ac_try_echo=$ac_try;;
26510 esac
26511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26512   (eval "$ac_compile") 2>conftest.er1
26513   ac_status=$?
26514   grep -v '^ *+' conftest.er1 >conftest.err
26515   rm -f conftest.er1
26516   cat conftest.err >&5
26517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518   (exit $ac_status); } && {
26519          test -z "$ac_c_werror_flag" ||
26520          test ! -s conftest.err
26521        } && test -s conftest.$ac_objext; then
26522    ac_cv_have_u_intxx_t="yes"
26523 else
26524   echo "$as_me: failed program was:" >&5
26525 sed 's/^/| /' conftest.$ac_ext >&5
26526
26527          ac_cv_have_u_intxx_t="no"
26528
26529 fi
26530
26531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26532
26533 fi
26534 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26535 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26536 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26537    cat >>confdefs.h <<\_ACEOF
26538 #define HAVE_U_INTXX_T 1
26539 _ACEOF
26540
26541    have_u_intxx_t=1
26542 fi
26543
26544 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26545 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26546 if test "${ac_cv_have_u_int64_t+set}" = set; then
26547   echo $ECHO_N "(cached) $ECHO_C" >&6
26548 else
26549
26550    cat >conftest.$ac_ext <<_ACEOF
26551 /* confdefs.h.  */
26552 _ACEOF
26553 cat confdefs.h >>conftest.$ac_ext
26554 cat >>conftest.$ac_ext <<_ACEOF
26555 /* end confdefs.h.  */
26556  #include <sys/types.h>
26557 int
26558 main ()
26559 {
26560  u_int64_t a; a = 1;
26561   ;
26562   return 0;
26563 }
26564 _ACEOF
26565 rm -f conftest.$ac_objext
26566 if { (ac_try="$ac_compile"
26567 case "(($ac_try" in
26568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26569   *) ac_try_echo=$ac_try;;
26570 esac
26571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26572   (eval "$ac_compile") 2>conftest.er1
26573   ac_status=$?
26574   grep -v '^ *+' conftest.er1 >conftest.err
26575   rm -f conftest.er1
26576   cat conftest.err >&5
26577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578   (exit $ac_status); } && {
26579          test -z "$ac_c_werror_flag" ||
26580          test ! -s conftest.err
26581        } && test -s conftest.$ac_objext; then
26582    ac_cv_have_u_int64_t="yes"
26583 else
26584   echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26586
26587          ac_cv_have_u_int64_t="no"
26588
26589 fi
26590
26591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26592
26593 fi
26594 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26595 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26596 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26597    cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_U_INT64_T 1
26599 _ACEOF
26600
26601    have_u_int64_t=1
26602 fi
26603
26604 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26605            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26606 then
26607    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26608 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26609    cat >conftest.$ac_ext <<_ACEOF
26610 /* confdefs.h.  */
26611 _ACEOF
26612 cat confdefs.h >>conftest.$ac_ext
26613 cat >>conftest.$ac_ext <<_ACEOF
26614 /* end confdefs.h.  */
26615  #include <sys/bitypes.h>
26616 int
26617 main ()
26618 {
26619  int8_t a; int16_t b; int32_t c;
26620         u_int8_t e; u_int16_t f; u_int32_t g;
26621         a = b = c = e = f = g = 1;
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 rm -f conftest.$ac_objext
26627 if { (ac_try="$ac_compile"
26628 case "(($ac_try" in
26629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26630   *) ac_try_echo=$ac_try;;
26631 esac
26632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26633   (eval "$ac_compile") 2>conftest.er1
26634   ac_status=$?
26635   grep -v '^ *+' conftest.er1 >conftest.err
26636   rm -f conftest.er1
26637   cat conftest.err >&5
26638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26639   (exit $ac_status); } && {
26640          test -z "$ac_c_werror_flag" ||
26641          test ! -s conftest.err
26642        } && test -s conftest.$ac_objext; then
26643    cat >>confdefs.h <<\_ACEOF
26644 #define HAVE_U_INTXX_T 1
26645 _ACEOF
26646
26647         cat >>confdefs.h <<\_ACEOF
26648 #define HAVE_INTXX_T 1
26649 _ACEOF
26650
26651         cat >>confdefs.h <<\_ACEOF
26652 #define HAVE_SYS_BITYPES_H 1
26653 _ACEOF
26654
26655         { echo "$as_me:$LINENO: result: yes" >&5
26656 echo "${ECHO_T}yes" >&6; }
26657 else
26658   echo "$as_me: failed program was:" >&5
26659 sed 's/^/| /' conftest.$ac_ext >&5
26660
26661          { echo "$as_me:$LINENO: result: no" >&5
26662 echo "${ECHO_T}no" >&6; }
26663
26664 fi
26665
26666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26667 fi
26668
26669 if test -z "$have_u_intxx_t" ; then
26670    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26671 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26672 if test "${ac_cv_have_uintxx_t+set}" = set; then
26673   echo $ECHO_N "(cached) $ECHO_C" >&6
26674 else
26675
26676       cat >conftest.$ac_ext <<_ACEOF
26677 /* confdefs.h.  */
26678 _ACEOF
26679 cat confdefs.h >>conftest.$ac_ext
26680 cat >>conftest.$ac_ext <<_ACEOF
26681 /* end confdefs.h.  */
26682  #include <sys/types.h>
26683 int
26684 main ()
26685 {
26686  uint8_t a; uint16_t b;
26687            uint32_t c; a = b = c = 1;
26688   ;
26689   return 0;
26690 }
26691 _ACEOF
26692 rm -f conftest.$ac_objext
26693 if { (ac_try="$ac_compile"
26694 case "(($ac_try" in
26695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26696   *) ac_try_echo=$ac_try;;
26697 esac
26698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26699   (eval "$ac_compile") 2>conftest.er1
26700   ac_status=$?
26701   grep -v '^ *+' conftest.er1 >conftest.err
26702   rm -f conftest.er1
26703   cat conftest.err >&5
26704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26705   (exit $ac_status); } && {
26706          test -z "$ac_c_werror_flag" ||
26707          test ! -s conftest.err
26708        } && test -s conftest.$ac_objext; then
26709    ac_cv_have_uintxx_t="yes"
26710 else
26711   echo "$as_me: failed program was:" >&5
26712 sed 's/^/| /' conftest.$ac_ext >&5
26713
26714          ac_cv_have_uintxx_t="no"
26715
26716 fi
26717
26718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26719
26720 fi
26721 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26722 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26723    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26724       cat >>confdefs.h <<\_ACEOF
26725 #define HAVE_UINTXX_T 1
26726 _ACEOF
26727
26728    fi
26729 fi
26730
26731 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26732           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26733 then
26734    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26735 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26736    cat >conftest.$ac_ext <<_ACEOF
26737 /* confdefs.h.  */
26738 _ACEOF
26739 cat confdefs.h >>conftest.$ac_ext
26740 cat >>conftest.$ac_ext <<_ACEOF
26741 /* end confdefs.h.  */
26742  #include <sys/bitypes.h>
26743 int
26744 main ()
26745 {
26746  int64_t a; u_int64_t b;
26747        a = b = 1;
26748   ;
26749   return 0;
26750 }
26751 _ACEOF
26752 rm -f conftest.$ac_objext
26753 if { (ac_try="$ac_compile"
26754 case "(($ac_try" in
26755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26756   *) ac_try_echo=$ac_try;;
26757 esac
26758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26759   (eval "$ac_compile") 2>conftest.er1
26760   ac_status=$?
26761   grep -v '^ *+' conftest.er1 >conftest.err
26762   rm -f conftest.er1
26763   cat conftest.err >&5
26764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26765   (exit $ac_status); } && {
26766          test -z "$ac_c_werror_flag" ||
26767          test ! -s conftest.err
26768        } && test -s conftest.$ac_objext; then
26769    cat >>confdefs.h <<\_ACEOF
26770 #define HAVE_U_INT64_T 1
26771 _ACEOF
26772
26773        cat >>confdefs.h <<\_ACEOF
26774 #define HAVE_INT64_T 1
26775 _ACEOF
26776
26777        { echo "$as_me:$LINENO: result: yes" >&5
26778 echo "${ECHO_T}yes" >&6; }
26779 else
26780   echo "$as_me: failed program was:" >&5
26781 sed 's/^/| /' conftest.$ac_ext >&5
26782
26783          { echo "$as_me:$LINENO: result: no" >&5
26784 echo "${ECHO_T}no" >&6; }
26785
26786 fi
26787
26788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26789 fi
26790
26791 if (test -z "$have_uintxx_t" && \
26792           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26793 then
26794    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26795 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26796    cat >conftest.$ac_ext <<_ACEOF
26797 /* confdefs.h.  */
26798 _ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h.  */
26802  #include <sys/bitypes.h>
26803 int
26804 main ()
26805 {
26806  uint8_t a; uint16_t b;
26807           uint32_t c; a = b = c = 1;
26808   ;
26809   return 0;
26810 }
26811 _ACEOF
26812 rm -f conftest.$ac_objext
26813 if { (ac_try="$ac_compile"
26814 case "(($ac_try" in
26815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816   *) ac_try_echo=$ac_try;;
26817 esac
26818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26819   (eval "$ac_compile") 2>conftest.er1
26820   ac_status=$?
26821   grep -v '^ *+' conftest.er1 >conftest.err
26822   rm -f conftest.er1
26823   cat conftest.err >&5
26824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26825   (exit $ac_status); } && {
26826          test -z "$ac_c_werror_flag" ||
26827          test ! -s conftest.err
26828        } && test -s conftest.$ac_objext; then
26829    cat >>confdefs.h <<\_ACEOF
26830 #define HAVE_UINTXX_T 1
26831 _ACEOF
26832
26833        { echo "$as_me:$LINENO: result: yes" >&5
26834 echo "${ECHO_T}yes" >&6; }
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839          { echo "$as_me:$LINENO: result: no" >&5
26840 echo "${ECHO_T}no" >&6; }
26841
26842 fi
26843
26844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26845
26846 fi
26847
26848
26849
26850
26851
26852
26853
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864 for ac_func in \
26865         fork \
26866         getcwd \
26867         gethostname \
26868         getpid \
26869         gettimeofday \
26870         setpgid \
26871         setpgrp \
26872         setsid \
26873         signal \
26874         strerror \
26875         strncmp \
26876         strncpy \
26877         vfprintf \
26878
26879 do
26880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26884   echo $ECHO_N "(cached) $ECHO_C" >&6
26885 else
26886   cat >conftest.$ac_ext <<_ACEOF
26887 /* confdefs.h.  */
26888 _ACEOF
26889 cat confdefs.h >>conftest.$ac_ext
26890 cat >>conftest.$ac_ext <<_ACEOF
26891 /* end confdefs.h.  */
26892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26893    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26894 #define $ac_func innocuous_$ac_func
26895
26896 /* System header to define __stub macros and hopefully few prototypes,
26897     which can conflict with char $ac_func (); below.
26898     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26899     <limits.h> exists even on freestanding compilers.  */
26900
26901 #ifdef __STDC__
26902 # include <limits.h>
26903 #else
26904 # include <assert.h>
26905 #endif
26906
26907 #undef $ac_func
26908
26909 /* Override any GCC internal prototype to avoid an error.
26910    Use char because int might match the return type of a GCC
26911    builtin and then its argument prototype would still apply.  */
26912 #ifdef __cplusplus
26913 extern "C"
26914 #endif
26915 char $ac_func ();
26916 /* The GNU C library defines this for functions which it implements
26917     to always fail with ENOSYS.  Some functions are actually named
26918     something starting with __ and the normal name is an alias.  */
26919 #if defined __stub_$ac_func || defined __stub___$ac_func
26920 choke me
26921 #endif
26922
26923 int
26924 main ()
26925 {
26926 return $ac_func ();
26927   ;
26928   return 0;
26929 }
26930 _ACEOF
26931 rm -f conftest.$ac_objext conftest$ac_exeext
26932 if { (ac_try="$ac_link"
26933 case "(($ac_try" in
26934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26935   *) ac_try_echo=$ac_try;;
26936 esac
26937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26938   (eval "$ac_link") 2>conftest.er1
26939   ac_status=$?
26940   grep -v '^ *+' conftest.er1 >conftest.err
26941   rm -f conftest.er1
26942   cat conftest.err >&5
26943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944   (exit $ac_status); } && {
26945          test -z "$ac_c_werror_flag" ||
26946          test ! -s conftest.err
26947        } && test -s conftest$ac_exeext &&
26948        $as_test_x conftest$ac_exeext; then
26949   eval "$as_ac_var=yes"
26950 else
26951   echo "$as_me: failed program was:" >&5
26952 sed 's/^/| /' conftest.$ac_ext >&5
26953
26954         eval "$as_ac_var=no"
26955 fi
26956
26957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26958       conftest$ac_exeext conftest.$ac_ext
26959 fi
26960 ac_res=`eval echo '${'$as_ac_var'}'`
26961                { echo "$as_me:$LINENO: result: $ac_res" >&5
26962 echo "${ECHO_T}$ac_res" >&6; }
26963 if test `eval echo '${'$as_ac_var'}'` = yes; then
26964   cat >>confdefs.h <<_ACEOF
26965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26966 _ACEOF
26967
26968 else
26969   echo 'configure: cannot find needed function.'; exit 1
26970
26971 fi
26972 done
26973
26974
26975
26976 for ac_func in fchdir
26977 do
26978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26982   echo $ECHO_N "(cached) $ECHO_C" >&6
26983 else
26984   cat >conftest.$ac_ext <<_ACEOF
26985 /* confdefs.h.  */
26986 _ACEOF
26987 cat confdefs.h >>conftest.$ac_ext
26988 cat >>conftest.$ac_ext <<_ACEOF
26989 /* end confdefs.h.  */
26990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26992 #define $ac_func innocuous_$ac_func
26993
26994 /* System header to define __stub macros and hopefully few prototypes,
26995     which can conflict with char $ac_func (); below.
26996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26997     <limits.h> exists even on freestanding compilers.  */
26998
26999 #ifdef __STDC__
27000 # include <limits.h>
27001 #else
27002 # include <assert.h>
27003 #endif
27004
27005 #undef $ac_func
27006
27007 /* Override any GCC internal prototype to avoid an error.
27008    Use char because int might match the return type of a GCC
27009    builtin and then its argument prototype would still apply.  */
27010 #ifdef __cplusplus
27011 extern "C"
27012 #endif
27013 char $ac_func ();
27014 /* The GNU C library defines this for functions which it implements
27015     to always fail with ENOSYS.  Some functions are actually named
27016     something starting with __ and the normal name is an alias.  */
27017 #if defined __stub_$ac_func || defined __stub___$ac_func
27018 choke me
27019 #endif
27020
27021 int
27022 main ()
27023 {
27024 return $ac_func ();
27025   ;
27026   return 0;
27027 }
27028 _ACEOF
27029 rm -f conftest.$ac_objext conftest$ac_exeext
27030 if { (ac_try="$ac_link"
27031 case "(($ac_try" in
27032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27033   *) ac_try_echo=$ac_try;;
27034 esac
27035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27036   (eval "$ac_link") 2>conftest.er1
27037   ac_status=$?
27038   grep -v '^ *+' conftest.er1 >conftest.err
27039   rm -f conftest.er1
27040   cat conftest.err >&5
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); } && {
27043          test -z "$ac_c_werror_flag" ||
27044          test ! -s conftest.err
27045        } && test -s conftest$ac_exeext &&
27046        $as_test_x conftest$ac_exeext; then
27047   eval "$as_ac_var=yes"
27048 else
27049   echo "$as_me: failed program was:" >&5
27050 sed 's/^/| /' conftest.$ac_ext >&5
27051
27052         eval "$as_ac_var=no"
27053 fi
27054
27055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27056       conftest$ac_exeext conftest.$ac_ext
27057 fi
27058 ac_res=`eval echo '${'$as_ac_var'}'`
27059                { echo "$as_me:$LINENO: result: $ac_res" >&5
27060 echo "${ECHO_T}$ac_res" >&6; }
27061 if test `eval echo '${'$as_ac_var'}'` = yes; then
27062   cat >>confdefs.h <<_ACEOF
27063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27064 _ACEOF
27065  cat >>confdefs.h <<\_ACEOF
27066 #define HAVE_FCHDIR 1
27067 _ACEOF
27068
27069 fi
27070 done
27071
27072
27073 for ac_func in strtoll
27074 do
27075 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27076 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27077 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081   cat >conftest.$ac_ext <<_ACEOF
27082 /* confdefs.h.  */
27083 _ACEOF
27084 cat confdefs.h >>conftest.$ac_ext
27085 cat >>conftest.$ac_ext <<_ACEOF
27086 /* end confdefs.h.  */
27087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27089 #define $ac_func innocuous_$ac_func
27090
27091 /* System header to define __stub macros and hopefully few prototypes,
27092     which can conflict with char $ac_func (); below.
27093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27094     <limits.h> exists even on freestanding compilers.  */
27095
27096 #ifdef __STDC__
27097 # include <limits.h>
27098 #else
27099 # include <assert.h>
27100 #endif
27101
27102 #undef $ac_func
27103
27104 /* Override any GCC internal prototype to avoid an error.
27105    Use char because int might match the return type of a GCC
27106    builtin and then its argument prototype would still apply.  */
27107 #ifdef __cplusplus
27108 extern "C"
27109 #endif
27110 char $ac_func ();
27111 /* The GNU C library defines this for functions which it implements
27112     to always fail with ENOSYS.  Some functions are actually named
27113     something starting with __ and the normal name is an alias.  */
27114 #if defined __stub_$ac_func || defined __stub___$ac_func
27115 choke me
27116 #endif
27117
27118 int
27119 main ()
27120 {
27121 return $ac_func ();
27122   ;
27123   return 0;
27124 }
27125 _ACEOF
27126 rm -f conftest.$ac_objext conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130   *) ac_try_echo=$ac_try;;
27131 esac
27132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27133   (eval "$ac_link") 2>conftest.er1
27134   ac_status=$?
27135   grep -v '^ *+' conftest.er1 >conftest.err
27136   rm -f conftest.er1
27137   cat conftest.err >&5
27138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27139   (exit $ac_status); } && {
27140          test -z "$ac_c_werror_flag" ||
27141          test ! -s conftest.err
27142        } && test -s conftest$ac_exeext &&
27143        $as_test_x conftest$ac_exeext; then
27144   eval "$as_ac_var=yes"
27145 else
27146   echo "$as_me: failed program was:" >&5
27147 sed 's/^/| /' conftest.$ac_ext >&5
27148
27149         eval "$as_ac_var=no"
27150 fi
27151
27152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27153       conftest$ac_exeext conftest.$ac_ext
27154 fi
27155 ac_res=`eval echo '${'$as_ac_var'}'`
27156                { echo "$as_me:$LINENO: result: $ac_res" >&5
27157 echo "${ECHO_T}$ac_res" >&6; }
27158 if test `eval echo '${'$as_ac_var'}'` = yes; then
27159   cat >>confdefs.h <<_ACEOF
27160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27161 _ACEOF
27162  cat >>confdefs.h <<\_ACEOF
27163 #define HAVE_STRTOLL 1
27164 _ACEOF
27165
27166 fi
27167 done
27168
27169
27170 for ac_func in posix_fadvise
27171 do
27172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27175 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27176   echo $ECHO_N "(cached) $ECHO_C" >&6
27177 else
27178   cat >conftest.$ac_ext <<_ACEOF
27179 /* confdefs.h.  */
27180 _ACEOF
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h.  */
27184 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27185    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27186 #define $ac_func innocuous_$ac_func
27187
27188 /* System header to define __stub macros and hopefully few prototypes,
27189     which can conflict with char $ac_func (); below.
27190     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27191     <limits.h> exists even on freestanding compilers.  */
27192
27193 #ifdef __STDC__
27194 # include <limits.h>
27195 #else
27196 # include <assert.h>
27197 #endif
27198
27199 #undef $ac_func
27200
27201 /* Override any GCC internal prototype to avoid an error.
27202    Use char because int might match the return type of a GCC
27203    builtin and then its argument prototype would still apply.  */
27204 #ifdef __cplusplus
27205 extern "C"
27206 #endif
27207 char $ac_func ();
27208 /* The GNU C library defines this for functions which it implements
27209     to always fail with ENOSYS.  Some functions are actually named
27210     something starting with __ and the normal name is an alias.  */
27211 #if defined __stub_$ac_func || defined __stub___$ac_func
27212 choke me
27213 #endif
27214
27215 int
27216 main ()
27217 {
27218 return $ac_func ();
27219   ;
27220   return 0;
27221 }
27222 _ACEOF
27223 rm -f conftest.$ac_objext conftest$ac_exeext
27224 if { (ac_try="$ac_link"
27225 case "(($ac_try" in
27226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227   *) ac_try_echo=$ac_try;;
27228 esac
27229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27230   (eval "$ac_link") 2>conftest.er1
27231   ac_status=$?
27232   grep -v '^ *+' conftest.er1 >conftest.err
27233   rm -f conftest.er1
27234   cat conftest.err >&5
27235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27236   (exit $ac_status); } && {
27237          test -z "$ac_c_werror_flag" ||
27238          test ! -s conftest.err
27239        } && test -s conftest$ac_exeext &&
27240        $as_test_x conftest$ac_exeext; then
27241   eval "$as_ac_var=yes"
27242 else
27243   echo "$as_me: failed program was:" >&5
27244 sed 's/^/| /' conftest.$ac_ext >&5
27245
27246         eval "$as_ac_var=no"
27247 fi
27248
27249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27250       conftest$ac_exeext conftest.$ac_ext
27251 fi
27252 ac_res=`eval echo '${'$as_ac_var'}'`
27253                { echo "$as_me:$LINENO: result: $ac_res" >&5
27254 echo "${ECHO_T}$ac_res" >&6; }
27255 if test `eval echo '${'$as_ac_var'}'` = yes; then
27256   cat >>confdefs.h <<_ACEOF
27257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27258 _ACEOF
27259
27260 fi
27261 done
27262
27263
27264 for ac_func in fdatasync
27265 do
27266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27270   echo $ECHO_N "(cached) $ECHO_C" >&6
27271 else
27272   cat >conftest.$ac_ext <<_ACEOF
27273 /* confdefs.h.  */
27274 _ACEOF
27275 cat confdefs.h >>conftest.$ac_ext
27276 cat >>conftest.$ac_ext <<_ACEOF
27277 /* end confdefs.h.  */
27278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27280 #define $ac_func innocuous_$ac_func
27281
27282 /* System header to define __stub macros and hopefully few prototypes,
27283     which can conflict with char $ac_func (); below.
27284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27285     <limits.h> exists even on freestanding compilers.  */
27286
27287 #ifdef __STDC__
27288 # include <limits.h>
27289 #else
27290 # include <assert.h>
27291 #endif
27292
27293 #undef $ac_func
27294
27295 /* Override any GCC internal prototype to avoid an error.
27296    Use char because int might match the return type of a GCC
27297    builtin and then its argument prototype would still apply.  */
27298 #ifdef __cplusplus
27299 extern "C"
27300 #endif
27301 char $ac_func ();
27302 /* The GNU C library defines this for functions which it implements
27303     to always fail with ENOSYS.  Some functions are actually named
27304     something starting with __ and the normal name is an alias.  */
27305 #if defined __stub_$ac_func || defined __stub___$ac_func
27306 choke me
27307 #endif
27308
27309 int
27310 main ()
27311 {
27312 return $ac_func ();
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest.$ac_objext conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_link") 2>conftest.er1
27325   ac_status=$?
27326   grep -v '^ *+' conftest.er1 >conftest.err
27327   rm -f conftest.er1
27328   cat conftest.err >&5
27329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27330   (exit $ac_status); } && {
27331          test -z "$ac_c_werror_flag" ||
27332          test ! -s conftest.err
27333        } && test -s conftest$ac_exeext &&
27334        $as_test_x conftest$ac_exeext; then
27335   eval "$as_ac_var=yes"
27336 else
27337   echo "$as_me: failed program was:" >&5
27338 sed 's/^/| /' conftest.$ac_ext >&5
27339
27340         eval "$as_ac_var=no"
27341 fi
27342
27343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27344       conftest$ac_exeext conftest.$ac_ext
27345 fi
27346 ac_res=`eval echo '${'$as_ac_var'}'`
27347                { echo "$as_me:$LINENO: result: $ac_res" >&5
27348 echo "${ECHO_T}$ac_res" >&6; }
27349 if test `eval echo '${'$as_ac_var'}'` = yes; then
27350   cat >>confdefs.h <<_ACEOF
27351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27352 _ACEOF
27353
27354 fi
27355 done
27356
27357
27358
27359 for ac_func in chflags
27360 do
27361 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27362 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27363 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27364 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27365   echo $ECHO_N "(cached) $ECHO_C" >&6
27366 else
27367   cat >conftest.$ac_ext <<_ACEOF
27368 /* confdefs.h.  */
27369 _ACEOF
27370 cat confdefs.h >>conftest.$ac_ext
27371 cat >>conftest.$ac_ext <<_ACEOF
27372 /* end confdefs.h.  */
27373 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27374    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27375 #define $ac_func innocuous_$ac_func
27376
27377 /* System header to define __stub macros and hopefully few prototypes,
27378     which can conflict with char $ac_func (); below.
27379     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27380     <limits.h> exists even on freestanding compilers.  */
27381
27382 #ifdef __STDC__
27383 # include <limits.h>
27384 #else
27385 # include <assert.h>
27386 #endif
27387
27388 #undef $ac_func
27389
27390 /* Override any GCC internal prototype to avoid an error.
27391    Use char because int might match the return type of a GCC
27392    builtin and then its argument prototype would still apply.  */
27393 #ifdef __cplusplus
27394 extern "C"
27395 #endif
27396 char $ac_func ();
27397 /* The GNU C library defines this for functions which it implements
27398     to always fail with ENOSYS.  Some functions are actually named
27399     something starting with __ and the normal name is an alias.  */
27400 #if defined __stub_$ac_func || defined __stub___$ac_func
27401 choke me
27402 #endif
27403
27404 int
27405 main ()
27406 {
27407 return $ac_func ();
27408   ;
27409   return 0;
27410 }
27411 _ACEOF
27412 rm -f conftest.$ac_objext conftest$ac_exeext
27413 if { (ac_try="$ac_link"
27414 case "(($ac_try" in
27415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27416   *) ac_try_echo=$ac_try;;
27417 esac
27418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27419   (eval "$ac_link") 2>conftest.er1
27420   ac_status=$?
27421   grep -v '^ *+' conftest.er1 >conftest.err
27422   rm -f conftest.er1
27423   cat conftest.err >&5
27424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27425   (exit $ac_status); } && {
27426          test -z "$ac_c_werror_flag" ||
27427          test ! -s conftest.err
27428        } && test -s conftest$ac_exeext &&
27429        $as_test_x conftest$ac_exeext; then
27430   eval "$as_ac_var=yes"
27431 else
27432   echo "$as_me: failed program was:" >&5
27433 sed 's/^/| /' conftest.$ac_ext >&5
27434
27435         eval "$as_ac_var=no"
27436 fi
27437
27438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27439       conftest$ac_exeext conftest.$ac_ext
27440 fi
27441 ac_res=`eval echo '${'$as_ac_var'}'`
27442                { echo "$as_me:$LINENO: result: $ac_res" >&5
27443 echo "${ECHO_T}$ac_res" >&6; }
27444 if test `eval echo '${'$as_ac_var'}'` = yes; then
27445   cat >>confdefs.h <<_ACEOF
27446 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27447 _ACEOF
27448
27449 fi
27450 done
27451
27452
27453
27454
27455
27456
27457 for ac_func in snprintf vsnprintf gethostid fseeko
27458 do
27459 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27460 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27461 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27462 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27463   echo $ECHO_N "(cached) $ECHO_C" >&6
27464 else
27465   cat >conftest.$ac_ext <<_ACEOF
27466 /* confdefs.h.  */
27467 _ACEOF
27468 cat confdefs.h >>conftest.$ac_ext
27469 cat >>conftest.$ac_ext <<_ACEOF
27470 /* end confdefs.h.  */
27471 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27472    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27473 #define $ac_func innocuous_$ac_func
27474
27475 /* System header to define __stub macros and hopefully few prototypes,
27476     which can conflict with char $ac_func (); below.
27477     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27478     <limits.h> exists even on freestanding compilers.  */
27479
27480 #ifdef __STDC__
27481 # include <limits.h>
27482 #else
27483 # include <assert.h>
27484 #endif
27485
27486 #undef $ac_func
27487
27488 /* Override any GCC internal prototype to avoid an error.
27489    Use char because int might match the return type of a GCC
27490    builtin and then its argument prototype would still apply.  */
27491 #ifdef __cplusplus
27492 extern "C"
27493 #endif
27494 char $ac_func ();
27495 /* The GNU C library defines this for functions which it implements
27496     to always fail with ENOSYS.  Some functions are actually named
27497     something starting with __ and the normal name is an alias.  */
27498 #if defined __stub_$ac_func || defined __stub___$ac_func
27499 choke me
27500 #endif
27501
27502 int
27503 main ()
27504 {
27505 return $ac_func ();
27506   ;
27507   return 0;
27508 }
27509 _ACEOF
27510 rm -f conftest.$ac_objext conftest$ac_exeext
27511 if { (ac_try="$ac_link"
27512 case "(($ac_try" in
27513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27514   *) ac_try_echo=$ac_try;;
27515 esac
27516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27517   (eval "$ac_link") 2>conftest.er1
27518   ac_status=$?
27519   grep -v '^ *+' conftest.er1 >conftest.err
27520   rm -f conftest.er1
27521   cat conftest.err >&5
27522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27523   (exit $ac_status); } && {
27524          test -z "$ac_c_werror_flag" ||
27525          test ! -s conftest.err
27526        } && test -s conftest$ac_exeext &&
27527        $as_test_x conftest$ac_exeext; then
27528   eval "$as_ac_var=yes"
27529 else
27530   echo "$as_me: failed program was:" >&5
27531 sed 's/^/| /' conftest.$ac_ext >&5
27532
27533         eval "$as_ac_var=no"
27534 fi
27535
27536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27537       conftest$ac_exeext conftest.$ac_ext
27538 fi
27539 ac_res=`eval echo '${'$as_ac_var'}'`
27540                { echo "$as_me:$LINENO: result: $ac_res" >&5
27541 echo "${ECHO_T}$ac_res" >&6; }
27542 if test `eval echo '${'$as_ac_var'}'` = yes; then
27543   cat >>confdefs.h <<_ACEOF
27544 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27545 _ACEOF
27546
27547 fi
27548 done
27549
27550
27551 { echo "$as_me:$LINENO: checking for va_copy" >&5
27552 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27553 if test "${ba_cv_va_copy+set}" = set; then
27554   echo $ECHO_N "(cached) $ECHO_C" >&6
27555 else
27556   cat >conftest.$ac_ext <<_ACEOF
27557 /* confdefs.h.  */
27558 _ACEOF
27559 cat confdefs.h >>conftest.$ac_ext
27560 cat >>conftest.$ac_ext <<_ACEOF
27561 /* end confdefs.h.  */
27562
27563 #include <stdarg.h>
27564 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27565 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27566
27567 int
27568 main ()
27569 {
27570 call_use_va_copy(1,2,3)
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 rm -f conftest.$ac_objext conftest$ac_exeext
27576 if { (ac_try="$ac_link"
27577 case "(($ac_try" in
27578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27579   *) ac_try_echo=$ac_try;;
27580 esac
27581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27582   (eval "$ac_link") 2>conftest.er1
27583   ac_status=$?
27584   grep -v '^ *+' conftest.er1 >conftest.err
27585   rm -f conftest.er1
27586   cat conftest.err >&5
27587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27588   (exit $ac_status); } && {
27589          test -z "$ac_c_werror_flag" ||
27590          test ! -s conftest.err
27591        } && test -s conftest$ac_exeext &&
27592        $as_test_x conftest$ac_exeext; then
27593   ba_cv_va_copy=yes
27594 else
27595   echo "$as_me: failed program was:" >&5
27596 sed 's/^/| /' conftest.$ac_ext >&5
27597
27598         ba_cv_va_copy=no
27599 fi
27600
27601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27602       conftest$ac_exeext conftest.$ac_ext
27603 fi
27604 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27605 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27606 test $ba_cv_va_copy = yes &&
27607 cat >>confdefs.h <<\_ACEOF
27608 #define HAVE_VA_COPY 1
27609 _ACEOF
27610
27611
27612
27613
27614
27615
27616
27617 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27618 do
27619 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27620 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27621 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27622 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27623   echo $ECHO_N "(cached) $ECHO_C" >&6
27624 else
27625   cat >conftest.$ac_ext <<_ACEOF
27626 /* confdefs.h.  */
27627 _ACEOF
27628 cat confdefs.h >>conftest.$ac_ext
27629 cat >>conftest.$ac_ext <<_ACEOF
27630 /* end confdefs.h.  */
27631 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27632    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27633 #define $ac_func innocuous_$ac_func
27634
27635 /* System header to define __stub macros and hopefully few prototypes,
27636     which can conflict with char $ac_func (); below.
27637     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27638     <limits.h> exists even on freestanding compilers.  */
27639
27640 #ifdef __STDC__
27641 # include <limits.h>
27642 #else
27643 # include <assert.h>
27644 #endif
27645
27646 #undef $ac_func
27647
27648 /* Override any GCC internal prototype to avoid an error.
27649    Use char because int might match the return type of a GCC
27650    builtin and then its argument prototype would still apply.  */
27651 #ifdef __cplusplus
27652 extern "C"
27653 #endif
27654 char $ac_func ();
27655 /* The GNU C library defines this for functions which it implements
27656     to always fail with ENOSYS.  Some functions are actually named
27657     something starting with __ and the normal name is an alias.  */
27658 #if defined __stub_$ac_func || defined __stub___$ac_func
27659 choke me
27660 #endif
27661
27662 int
27663 main ()
27664 {
27665 return $ac_func ();
27666   ;
27667   return 0;
27668 }
27669 _ACEOF
27670 rm -f conftest.$ac_objext conftest$ac_exeext
27671 if { (ac_try="$ac_link"
27672 case "(($ac_try" in
27673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27674   *) ac_try_echo=$ac_try;;
27675 esac
27676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27677   (eval "$ac_link") 2>conftest.er1
27678   ac_status=$?
27679   grep -v '^ *+' conftest.er1 >conftest.err
27680   rm -f conftest.er1
27681   cat conftest.err >&5
27682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27683   (exit $ac_status); } && {
27684          test -z "$ac_c_werror_flag" ||
27685          test ! -s conftest.err
27686        } && test -s conftest$ac_exeext &&
27687        $as_test_x conftest$ac_exeext; then
27688   eval "$as_ac_var=yes"
27689 else
27690   echo "$as_me: failed program was:" >&5
27691 sed 's/^/| /' conftest.$ac_ext >&5
27692
27693         eval "$as_ac_var=no"
27694 fi
27695
27696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27697       conftest$ac_exeext conftest.$ac_ext
27698 fi
27699 ac_res=`eval echo '${'$as_ac_var'}'`
27700                { echo "$as_me:$LINENO: result: $ac_res" >&5
27701 echo "${ECHO_T}$ac_res" >&6; }
27702 if test `eval echo '${'$as_ac_var'}'` = yes; then
27703   cat >>confdefs.h <<_ACEOF
27704 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27705 _ACEOF
27706
27707 fi
27708 done
27709
27710
27711 # If resolver functions are not in libc check for -lnsl or -lresolv.
27712 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27713 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27714 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27715   echo $ECHO_N "(cached) $ECHO_C" >&6
27716 else
27717   cat >conftest.$ac_ext <<_ACEOF
27718 /* confdefs.h.  */
27719 _ACEOF
27720 cat confdefs.h >>conftest.$ac_ext
27721 cat >>conftest.$ac_ext <<_ACEOF
27722 /* end confdefs.h.  */
27723 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27724    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27725 #define gethostbyname_r innocuous_gethostbyname_r
27726
27727 /* System header to define __stub macros and hopefully few prototypes,
27728     which can conflict with char gethostbyname_r (); below.
27729     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27730     <limits.h> exists even on freestanding compilers.  */
27731
27732 #ifdef __STDC__
27733 # include <limits.h>
27734 #else
27735 # include <assert.h>
27736 #endif
27737
27738 #undef gethostbyname_r
27739
27740 /* Override any GCC internal prototype to avoid an error.
27741    Use char because int might match the return type of a GCC
27742    builtin and then its argument prototype would still apply.  */
27743 #ifdef __cplusplus
27744 extern "C"
27745 #endif
27746 char gethostbyname_r ();
27747 /* The GNU C library defines this for functions which it implements
27748     to always fail with ENOSYS.  Some functions are actually named
27749     something starting with __ and the normal name is an alias.  */
27750 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27751 choke me
27752 #endif
27753
27754 int
27755 main ()
27756 {
27757 return gethostbyname_r ();
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 rm -f conftest.$ac_objext conftest$ac_exeext
27763 if { (ac_try="$ac_link"
27764 case "(($ac_try" in
27765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27766   *) ac_try_echo=$ac_try;;
27767 esac
27768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27769   (eval "$ac_link") 2>conftest.er1
27770   ac_status=$?
27771   grep -v '^ *+' conftest.er1 >conftest.err
27772   rm -f conftest.er1
27773   cat conftest.err >&5
27774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27775   (exit $ac_status); } && {
27776          test -z "$ac_c_werror_flag" ||
27777          test ! -s conftest.err
27778        } && test -s conftest$ac_exeext &&
27779        $as_test_x conftest$ac_exeext; then
27780   ac_cv_func_gethostbyname_r=yes
27781 else
27782   echo "$as_me: failed program was:" >&5
27783 sed 's/^/| /' conftest.$ac_ext >&5
27784
27785         ac_cv_func_gethostbyname_r=no
27786 fi
27787
27788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27789       conftest$ac_exeext conftest.$ac_ext
27790 fi
27791 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27792 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27793 if test $ac_cv_func_gethostbyname_r = yes; then
27794   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27795 echo "${ECHO_T}using libc's resolver" >&6; }
27796 else
27797
27798 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27799 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27800 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27801   echo $ECHO_N "(cached) $ECHO_C" >&6
27802 else
27803   ac_check_lib_save_LIBS=$LIBS
27804 LIBS="-lnsl  $LIBS"
27805 cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h.  */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h.  */
27811
27812 /* Override any GCC internal prototype to avoid an error.
27813    Use char because int might match the return type of a GCC
27814    builtin and then its argument prototype would still apply.  */
27815 #ifdef __cplusplus
27816 extern "C"
27817 #endif
27818 char gethostbyname_r ();
27819 int
27820 main ()
27821 {
27822 return gethostbyname_r ();
27823   ;
27824   return 0;
27825 }
27826 _ACEOF
27827 rm -f conftest.$ac_objext conftest$ac_exeext
27828 if { (ac_try="$ac_link"
27829 case "(($ac_try" in
27830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27831   *) ac_try_echo=$ac_try;;
27832 esac
27833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27834   (eval "$ac_link") 2>conftest.er1
27835   ac_status=$?
27836   grep -v '^ *+' conftest.er1 >conftest.err
27837   rm -f conftest.er1
27838   cat conftest.err >&5
27839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840   (exit $ac_status); } && {
27841          test -z "$ac_c_werror_flag" ||
27842          test ! -s conftest.err
27843        } && test -s conftest$ac_exeext &&
27844        $as_test_x conftest$ac_exeext; then
27845   ac_cv_lib_nsl_gethostbyname_r=yes
27846 else
27847   echo "$as_me: failed program was:" >&5
27848 sed 's/^/| /' conftest.$ac_ext >&5
27849
27850         ac_cv_lib_nsl_gethostbyname_r=no
27851 fi
27852
27853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27854       conftest$ac_exeext conftest.$ac_ext
27855 LIBS=$ac_check_lib_save_LIBS
27856 fi
27857 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27858 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27859 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27860   cat >>confdefs.h <<_ACEOF
27861 #define HAVE_LIBNSL 1
27862 _ACEOF
27863
27864   LIBS="-lnsl $LIBS"
27865
27866 fi
27867
27868
27869 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27870 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27871 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27872   echo $ECHO_N "(cached) $ECHO_C" >&6
27873 else
27874   ac_check_lib_save_LIBS=$LIBS
27875 LIBS="-lresolv  $LIBS"
27876 cat >conftest.$ac_ext <<_ACEOF
27877 /* confdefs.h.  */
27878 _ACEOF
27879 cat confdefs.h >>conftest.$ac_ext
27880 cat >>conftest.$ac_ext <<_ACEOF
27881 /* end confdefs.h.  */
27882
27883 /* Override any GCC internal prototype to avoid an error.
27884    Use char because int might match the return type of a GCC
27885    builtin and then its argument prototype would still apply.  */
27886 #ifdef __cplusplus
27887 extern "C"
27888 #endif
27889 char gethostbyname_r ();
27890 int
27891 main ()
27892 {
27893 return gethostbyname_r ();
27894   ;
27895   return 0;
27896 }
27897 _ACEOF
27898 rm -f conftest.$ac_objext conftest$ac_exeext
27899 if { (ac_try="$ac_link"
27900 case "(($ac_try" in
27901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27902   *) ac_try_echo=$ac_try;;
27903 esac
27904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27905   (eval "$ac_link") 2>conftest.er1
27906   ac_status=$?
27907   grep -v '^ *+' conftest.er1 >conftest.err
27908   rm -f conftest.er1
27909   cat conftest.err >&5
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); } && {
27912          test -z "$ac_c_werror_flag" ||
27913          test ! -s conftest.err
27914        } && test -s conftest$ac_exeext &&
27915        $as_test_x conftest$ac_exeext; then
27916   ac_cv_lib_resolv_gethostbyname_r=yes
27917 else
27918   echo "$as_me: failed program was:" >&5
27919 sed 's/^/| /' conftest.$ac_ext >&5
27920
27921         ac_cv_lib_resolv_gethostbyname_r=no
27922 fi
27923
27924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27925       conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27927 fi
27928 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27929 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27930 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27931   cat >>confdefs.h <<_ACEOF
27932 #define HAVE_LIBRESOLV 1
27933 _ACEOF
27934
27935   LIBS="-lresolv $LIBS"
27936
27937 fi
27938
27939 fi
27940
27941
27942
27943
27944
27945 for ac_func in inet_pton
27946 do
27947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27951   echo $ECHO_N "(cached) $ECHO_C" >&6
27952 else
27953   cat >conftest.$ac_ext <<_ACEOF
27954 /* confdefs.h.  */
27955 _ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h.  */
27959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27960    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27961 #define $ac_func innocuous_$ac_func
27962
27963 /* System header to define __stub macros and hopefully few prototypes,
27964     which can conflict with char $ac_func (); below.
27965     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27966     <limits.h> exists even on freestanding compilers.  */
27967
27968 #ifdef __STDC__
27969 # include <limits.h>
27970 #else
27971 # include <assert.h>
27972 #endif
27973
27974 #undef $ac_func
27975
27976 /* Override any GCC internal prototype to avoid an error.
27977    Use char because int might match the return type of a GCC
27978    builtin and then its argument prototype would still apply.  */
27979 #ifdef __cplusplus
27980 extern "C"
27981 #endif
27982 char $ac_func ();
27983 /* The GNU C library defines this for functions which it implements
27984     to always fail with ENOSYS.  Some functions are actually named
27985     something starting with __ and the normal name is an alias.  */
27986 #if defined __stub_$ac_func || defined __stub___$ac_func
27987 choke me
27988 #endif
27989
27990 int
27991 main ()
27992 {
27993 return $ac_func ();
27994   ;
27995   return 0;
27996 }
27997 _ACEOF
27998 rm -f conftest.$ac_objext conftest$ac_exeext
27999 if { (ac_try="$ac_link"
28000 case "(($ac_try" in
28001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28002   *) ac_try_echo=$ac_try;;
28003 esac
28004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28005   (eval "$ac_link") 2>conftest.er1
28006   ac_status=$?
28007   grep -v '^ *+' conftest.er1 >conftest.err
28008   rm -f conftest.er1
28009   cat conftest.err >&5
28010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28011   (exit $ac_status); } && {
28012          test -z "$ac_c_werror_flag" ||
28013          test ! -s conftest.err
28014        } && test -s conftest$ac_exeext &&
28015        $as_test_x conftest$ac_exeext; then
28016   eval "$as_ac_var=yes"
28017 else
28018   echo "$as_me: failed program was:" >&5
28019 sed 's/^/| /' conftest.$ac_ext >&5
28020
28021         eval "$as_ac_var=no"
28022 fi
28023
28024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28025       conftest$ac_exeext conftest.$ac_ext
28026 fi
28027 ac_res=`eval echo '${'$as_ac_var'}'`
28028                { echo "$as_me:$LINENO: result: $ac_res" >&5
28029 echo "${ECHO_T}$ac_res" >&6; }
28030 if test `eval echo '${'$as_ac_var'}'` = yes; then
28031   cat >>confdefs.h <<_ACEOF
28032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28033 _ACEOF
28034  cat >>confdefs.h <<\_ACEOF
28035 #define HAVE_INET_PTON 1
28036 _ACEOF
28037
28038 fi
28039 done
28040
28041
28042 for ac_func in inet_ntop
28043 do
28044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28048   echo $ECHO_N "(cached) $ECHO_C" >&6
28049 else
28050   cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28058 #define $ac_func innocuous_$ac_func
28059
28060 /* System header to define __stub macros and hopefully few prototypes,
28061     which can conflict with char $ac_func (); below.
28062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28063     <limits.h> exists even on freestanding compilers.  */
28064
28065 #ifdef __STDC__
28066 # include <limits.h>
28067 #else
28068 # include <assert.h>
28069 #endif
28070
28071 #undef $ac_func
28072
28073 /* Override any GCC internal prototype to avoid an error.
28074    Use char because int might match the return type of a GCC
28075    builtin and then its argument prototype would still apply.  */
28076 #ifdef __cplusplus
28077 extern "C"
28078 #endif
28079 char $ac_func ();
28080 /* The GNU C library defines this for functions which it implements
28081     to always fail with ENOSYS.  Some functions are actually named
28082     something starting with __ and the normal name is an alias.  */
28083 #if defined __stub_$ac_func || defined __stub___$ac_func
28084 choke me
28085 #endif
28086
28087 int
28088 main ()
28089 {
28090 return $ac_func ();
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest.$ac_objext conftest$ac_exeext
28096 if { (ac_try="$ac_link"
28097 case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102   (eval "$ac_link") 2>conftest.er1
28103   ac_status=$?
28104   grep -v '^ *+' conftest.er1 >conftest.err
28105   rm -f conftest.er1
28106   cat conftest.err >&5
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); } && {
28109          test -z "$ac_c_werror_flag" ||
28110          test ! -s conftest.err
28111        } && test -s conftest$ac_exeext &&
28112        $as_test_x conftest$ac_exeext; then
28113   eval "$as_ac_var=yes"
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         eval "$as_ac_var=no"
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28122       conftest$ac_exeext conftest.$ac_ext
28123 fi
28124 ac_res=`eval echo '${'$as_ac_var'}'`
28125                { echo "$as_me:$LINENO: result: $ac_res" >&5
28126 echo "${ECHO_T}$ac_res" >&6; }
28127 if test `eval echo '${'$as_ac_var'}'` = yes; then
28128   cat >>confdefs.h <<_ACEOF
28129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28130 _ACEOF
28131  cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_INET_NTOP 1
28133 _ACEOF
28134
28135 fi
28136 done
28137
28138
28139 for ac_func in gethostbyname2
28140 do
28141 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28142 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28143 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28144 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28145   echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147   cat >conftest.$ac_ext <<_ACEOF
28148 /* confdefs.h.  */
28149 _ACEOF
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h.  */
28153 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28154    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28155 #define $ac_func innocuous_$ac_func
28156
28157 /* System header to define __stub macros and hopefully few prototypes,
28158     which can conflict with char $ac_func (); below.
28159     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28160     <limits.h> exists even on freestanding compilers.  */
28161
28162 #ifdef __STDC__
28163 # include <limits.h>
28164 #else
28165 # include <assert.h>
28166 #endif
28167
28168 #undef $ac_func
28169
28170 /* Override any GCC internal prototype to avoid an error.
28171    Use char because int might match the return type of a GCC
28172    builtin and then its argument prototype would still apply.  */
28173 #ifdef __cplusplus
28174 extern "C"
28175 #endif
28176 char $ac_func ();
28177 /* The GNU C library defines this for functions which it implements
28178     to always fail with ENOSYS.  Some functions are actually named
28179     something starting with __ and the normal name is an alias.  */
28180 #if defined __stub_$ac_func || defined __stub___$ac_func
28181 choke me
28182 #endif
28183
28184 int
28185 main ()
28186 {
28187 return $ac_func ();
28188   ;
28189   return 0;
28190 }
28191 _ACEOF
28192 rm -f conftest.$ac_objext conftest$ac_exeext
28193 if { (ac_try="$ac_link"
28194 case "(($ac_try" in
28195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28196   *) ac_try_echo=$ac_try;;
28197 esac
28198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28199   (eval "$ac_link") 2>conftest.er1
28200   ac_status=$?
28201   grep -v '^ *+' conftest.er1 >conftest.err
28202   rm -f conftest.er1
28203   cat conftest.err >&5
28204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28205   (exit $ac_status); } && {
28206          test -z "$ac_c_werror_flag" ||
28207          test ! -s conftest.err
28208        } && test -s conftest$ac_exeext &&
28209        $as_test_x conftest$ac_exeext; then
28210   eval "$as_ac_var=yes"
28211 else
28212   echo "$as_me: failed program was:" >&5
28213 sed 's/^/| /' conftest.$ac_ext >&5
28214
28215         eval "$as_ac_var=no"
28216 fi
28217
28218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28219       conftest$ac_exeext conftest.$ac_ext
28220 fi
28221 ac_res=`eval echo '${'$as_ac_var'}'`
28222                { echo "$as_me:$LINENO: result: $ac_res" >&5
28223 echo "${ECHO_T}$ac_res" >&6; }
28224 if test `eval echo '${'$as_ac_var'}'` = yes; then
28225   cat >>confdefs.h <<_ACEOF
28226 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28227 _ACEOF
28228  cat >>confdefs.h <<\_ACEOF
28229 #define HAVE_GETHOSTBYNAME2 1
28230 _ACEOF
28231
28232 fi
28233 done
28234
28235
28236 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28237 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28238 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28239   echo $ECHO_N "(cached) $ECHO_C" >&6
28240 else
28241   cat >conftest.$ac_ext <<_ACEOF
28242 /* confdefs.h.  */
28243 _ACEOF
28244 cat confdefs.h >>conftest.$ac_ext
28245 cat >>conftest.$ac_ext <<_ACEOF
28246 /* end confdefs.h.  */
28247 #include <sys/socket.h>
28248 int
28249 main ()
28250 {
28251 struct sockaddr s; s.sa_len;
28252   ;
28253   return 0;
28254 }
28255 _ACEOF
28256 rm -f conftest.$ac_objext
28257 if { (ac_try="$ac_compile"
28258 case "(($ac_try" in
28259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28260   *) ac_try_echo=$ac_try;;
28261 esac
28262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28263   (eval "$ac_compile") 2>conftest.er1
28264   ac_status=$?
28265   grep -v '^ *+' conftest.er1 >conftest.err
28266   rm -f conftest.er1
28267   cat conftest.err >&5
28268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28269   (exit $ac_status); } && {
28270          test -z "$ac_c_werror_flag" ||
28271          test ! -s conftest.err
28272        } && test -s conftest.$ac_objext; then
28273   ac_cv_struct_sockaddr_sa_len=yes
28274 else
28275   echo "$as_me: failed program was:" >&5
28276 sed 's/^/| /' conftest.$ac_ext >&5
28277
28278         ac_cv_struct_sockaddr_sa_len=no
28279 fi
28280
28281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28282 fi
28283 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28284 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28285
28286  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28287
28288 cat >>confdefs.h <<\_ACEOF
28289 #define HAVE_SA_LEN 1
28290 _ACEOF
28291
28292  fi
28293
28294
28295
28296
28297
28298 for ac_func in strftime
28299 do
28300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28301 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28303 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28304   echo $ECHO_N "(cached) $ECHO_C" >&6
28305 else
28306   cat >conftest.$ac_ext <<_ACEOF
28307 /* confdefs.h.  */
28308 _ACEOF
28309 cat confdefs.h >>conftest.$ac_ext
28310 cat >>conftest.$ac_ext <<_ACEOF
28311 /* end confdefs.h.  */
28312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28314 #define $ac_func innocuous_$ac_func
28315
28316 /* System header to define __stub macros and hopefully few prototypes,
28317     which can conflict with char $ac_func (); below.
28318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28319     <limits.h> exists even on freestanding compilers.  */
28320
28321 #ifdef __STDC__
28322 # include <limits.h>
28323 #else
28324 # include <assert.h>
28325 #endif
28326
28327 #undef $ac_func
28328
28329 /* Override any GCC internal prototype to avoid an error.
28330    Use char because int might match the return type of a GCC
28331    builtin and then its argument prototype would still apply.  */
28332 #ifdef __cplusplus
28333 extern "C"
28334 #endif
28335 char $ac_func ();
28336 /* The GNU C library defines this for functions which it implements
28337     to always fail with ENOSYS.  Some functions are actually named
28338     something starting with __ and the normal name is an alias.  */
28339 #if defined __stub_$ac_func || defined __stub___$ac_func
28340 choke me
28341 #endif
28342
28343 int
28344 main ()
28345 {
28346 return $ac_func ();
28347   ;
28348   return 0;
28349 }
28350 _ACEOF
28351 rm -f conftest.$ac_objext conftest$ac_exeext
28352 if { (ac_try="$ac_link"
28353 case "(($ac_try" in
28354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28355   *) ac_try_echo=$ac_try;;
28356 esac
28357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28358   (eval "$ac_link") 2>conftest.er1
28359   ac_status=$?
28360   grep -v '^ *+' conftest.er1 >conftest.err
28361   rm -f conftest.er1
28362   cat conftest.err >&5
28363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28364   (exit $ac_status); } && {
28365          test -z "$ac_c_werror_flag" ||
28366          test ! -s conftest.err
28367        } && test -s conftest$ac_exeext &&
28368        $as_test_x conftest$ac_exeext; then
28369   eval "$as_ac_var=yes"
28370 else
28371   echo "$as_me: failed program was:" >&5
28372 sed 's/^/| /' conftest.$ac_ext >&5
28373
28374         eval "$as_ac_var=no"
28375 fi
28376
28377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28378       conftest$ac_exeext conftest.$ac_ext
28379 fi
28380 ac_res=`eval echo '${'$as_ac_var'}'`
28381                { echo "$as_me:$LINENO: result: $ac_res" >&5
28382 echo "${ECHO_T}$ac_res" >&6; }
28383 if test `eval echo '${'$as_ac_var'}'` = yes; then
28384   cat >>confdefs.h <<_ACEOF
28385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28386 _ACEOF
28387
28388 else
28389   # strftime is in -lintl on SCO UNIX.
28390 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28391 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28392 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28393   echo $ECHO_N "(cached) $ECHO_C" >&6
28394 else
28395   ac_check_lib_save_LIBS=$LIBS
28396 LIBS="-lintl  $LIBS"
28397 cat >conftest.$ac_ext <<_ACEOF
28398 /* confdefs.h.  */
28399 _ACEOF
28400 cat confdefs.h >>conftest.$ac_ext
28401 cat >>conftest.$ac_ext <<_ACEOF
28402 /* end confdefs.h.  */
28403
28404 /* Override any GCC internal prototype to avoid an error.
28405    Use char because int might match the return type of a GCC
28406    builtin and then its argument prototype would still apply.  */
28407 #ifdef __cplusplus
28408 extern "C"
28409 #endif
28410 char strftime ();
28411 int
28412 main ()
28413 {
28414 return strftime ();
28415   ;
28416   return 0;
28417 }
28418 _ACEOF
28419 rm -f conftest.$ac_objext conftest$ac_exeext
28420 if { (ac_try="$ac_link"
28421 case "(($ac_try" in
28422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28423   *) ac_try_echo=$ac_try;;
28424 esac
28425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28426   (eval "$ac_link") 2>conftest.er1
28427   ac_status=$?
28428   grep -v '^ *+' conftest.er1 >conftest.err
28429   rm -f conftest.er1
28430   cat conftest.err >&5
28431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432   (exit $ac_status); } && {
28433          test -z "$ac_c_werror_flag" ||
28434          test ! -s conftest.err
28435        } && test -s conftest$ac_exeext &&
28436        $as_test_x conftest$ac_exeext; then
28437   ac_cv_lib_intl_strftime=yes
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442         ac_cv_lib_intl_strftime=no
28443 fi
28444
28445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28446       conftest$ac_exeext conftest.$ac_ext
28447 LIBS=$ac_check_lib_save_LIBS
28448 fi
28449 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28450 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28451 if test $ac_cv_lib_intl_strftime = yes; then
28452   cat >>confdefs.h <<\_ACEOF
28453 #define HAVE_STRFTIME 1
28454 _ACEOF
28455
28456 LIBS="-lintl $LIBS"
28457 fi
28458
28459 fi
28460 done
28461
28462
28463 for ac_func in vprintf
28464 do
28465 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28469   echo $ECHO_N "(cached) $ECHO_C" >&6
28470 else
28471   cat >conftest.$ac_ext <<_ACEOF
28472 /* confdefs.h.  */
28473 _ACEOF
28474 cat confdefs.h >>conftest.$ac_ext
28475 cat >>conftest.$ac_ext <<_ACEOF
28476 /* end confdefs.h.  */
28477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28478    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28479 #define $ac_func innocuous_$ac_func
28480
28481 /* System header to define __stub macros and hopefully few prototypes,
28482     which can conflict with char $ac_func (); below.
28483     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28484     <limits.h> exists even on freestanding compilers.  */
28485
28486 #ifdef __STDC__
28487 # include <limits.h>
28488 #else
28489 # include <assert.h>
28490 #endif
28491
28492 #undef $ac_func
28493
28494 /* Override any GCC internal prototype to avoid an error.
28495    Use char because int might match the return type of a GCC
28496    builtin and then its argument prototype would still apply.  */
28497 #ifdef __cplusplus
28498 extern "C"
28499 #endif
28500 char $ac_func ();
28501 /* The GNU C library defines this for functions which it implements
28502     to always fail with ENOSYS.  Some functions are actually named
28503     something starting with __ and the normal name is an alias.  */
28504 #if defined __stub_$ac_func || defined __stub___$ac_func
28505 choke me
28506 #endif
28507
28508 int
28509 main ()
28510 {
28511 return $ac_func ();
28512   ;
28513   return 0;
28514 }
28515 _ACEOF
28516 rm -f conftest.$ac_objext conftest$ac_exeext
28517 if { (ac_try="$ac_link"
28518 case "(($ac_try" in
28519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28520   *) ac_try_echo=$ac_try;;
28521 esac
28522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28523   (eval "$ac_link") 2>conftest.er1
28524   ac_status=$?
28525   grep -v '^ *+' conftest.er1 >conftest.err
28526   rm -f conftest.er1
28527   cat conftest.err >&5
28528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28529   (exit $ac_status); } && {
28530          test -z "$ac_c_werror_flag" ||
28531          test ! -s conftest.err
28532        } && test -s conftest$ac_exeext &&
28533        $as_test_x conftest$ac_exeext; then
28534   eval "$as_ac_var=yes"
28535 else
28536   echo "$as_me: failed program was:" >&5
28537 sed 's/^/| /' conftest.$ac_ext >&5
28538
28539         eval "$as_ac_var=no"
28540 fi
28541
28542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28543       conftest$ac_exeext conftest.$ac_ext
28544 fi
28545 ac_res=`eval echo '${'$as_ac_var'}'`
28546                { echo "$as_me:$LINENO: result: $ac_res" >&5
28547 echo "${ECHO_T}$ac_res" >&6; }
28548 if test `eval echo '${'$as_ac_var'}'` = yes; then
28549   cat >>confdefs.h <<_ACEOF
28550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28551 _ACEOF
28552
28553 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28554 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28555 if test "${ac_cv_func__doprnt+set}" = set; then
28556   echo $ECHO_N "(cached) $ECHO_C" >&6
28557 else
28558   cat >conftest.$ac_ext <<_ACEOF
28559 /* confdefs.h.  */
28560 _ACEOF
28561 cat confdefs.h >>conftest.$ac_ext
28562 cat >>conftest.$ac_ext <<_ACEOF
28563 /* end confdefs.h.  */
28564 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28565    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28566 #define _doprnt innocuous__doprnt
28567
28568 /* System header to define __stub macros and hopefully few prototypes,
28569     which can conflict with char _doprnt (); below.
28570     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28571     <limits.h> exists even on freestanding compilers.  */
28572
28573 #ifdef __STDC__
28574 # include <limits.h>
28575 #else
28576 # include <assert.h>
28577 #endif
28578
28579 #undef _doprnt
28580
28581 /* Override any GCC internal prototype to avoid an error.
28582    Use char because int might match the return type of a GCC
28583    builtin and then its argument prototype would still apply.  */
28584 #ifdef __cplusplus
28585 extern "C"
28586 #endif
28587 char _doprnt ();
28588 /* The GNU C library defines this for functions which it implements
28589     to always fail with ENOSYS.  Some functions are actually named
28590     something starting with __ and the normal name is an alias.  */
28591 #if defined __stub__doprnt || defined __stub____doprnt
28592 choke me
28593 #endif
28594
28595 int
28596 main ()
28597 {
28598 return _doprnt ();
28599   ;
28600   return 0;
28601 }
28602 _ACEOF
28603 rm -f conftest.$ac_objext conftest$ac_exeext
28604 if { (ac_try="$ac_link"
28605 case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_link") 2>conftest.er1
28611   ac_status=$?
28612   grep -v '^ *+' conftest.er1 >conftest.err
28613   rm -f conftest.er1
28614   cat conftest.err >&5
28615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28616   (exit $ac_status); } && {
28617          test -z "$ac_c_werror_flag" ||
28618          test ! -s conftest.err
28619        } && test -s conftest$ac_exeext &&
28620        $as_test_x conftest$ac_exeext; then
28621   ac_cv_func__doprnt=yes
28622 else
28623   echo "$as_me: failed program was:" >&5
28624 sed 's/^/| /' conftest.$ac_ext >&5
28625
28626         ac_cv_func__doprnt=no
28627 fi
28628
28629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28630       conftest$ac_exeext conftest.$ac_ext
28631 fi
28632 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28633 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28634 if test $ac_cv_func__doprnt = yes; then
28635
28636 cat >>confdefs.h <<\_ACEOF
28637 #define HAVE_DOPRNT 1
28638 _ACEOF
28639
28640 fi
28641
28642 fi
28643 done
28644
28645
28646 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28647 # for constant arguments.  Useless!
28648 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28649 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28650 if test "${ac_cv_working_alloca_h+set}" = set; then
28651   echo $ECHO_N "(cached) $ECHO_C" >&6
28652 else
28653   cat >conftest.$ac_ext <<_ACEOF
28654 /* confdefs.h.  */
28655 _ACEOF
28656 cat confdefs.h >>conftest.$ac_ext
28657 cat >>conftest.$ac_ext <<_ACEOF
28658 /* end confdefs.h.  */
28659 #include <alloca.h>
28660 int
28661 main ()
28662 {
28663 char *p = (char *) alloca (2 * sizeof (int));
28664                           if (p) return 0;
28665   ;
28666   return 0;
28667 }
28668 _ACEOF
28669 rm -f conftest.$ac_objext conftest$ac_exeext
28670 if { (ac_try="$ac_link"
28671 case "(($ac_try" in
28672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28673   *) ac_try_echo=$ac_try;;
28674 esac
28675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28676   (eval "$ac_link") 2>conftest.er1
28677   ac_status=$?
28678   grep -v '^ *+' conftest.er1 >conftest.err
28679   rm -f conftest.er1
28680   cat conftest.err >&5
28681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28682   (exit $ac_status); } && {
28683          test -z "$ac_c_werror_flag" ||
28684          test ! -s conftest.err
28685        } && test -s conftest$ac_exeext &&
28686        $as_test_x conftest$ac_exeext; then
28687   ac_cv_working_alloca_h=yes
28688 else
28689   echo "$as_me: failed program was:" >&5
28690 sed 's/^/| /' conftest.$ac_ext >&5
28691
28692         ac_cv_working_alloca_h=no
28693 fi
28694
28695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28696       conftest$ac_exeext conftest.$ac_ext
28697 fi
28698 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28699 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28700 if test $ac_cv_working_alloca_h = yes; then
28701
28702 cat >>confdefs.h <<\_ACEOF
28703 #define HAVE_ALLOCA_H 1
28704 _ACEOF
28705
28706 fi
28707
28708 { echo "$as_me:$LINENO: checking for alloca" >&5
28709 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28710 if test "${ac_cv_func_alloca_works+set}" = set; then
28711   echo $ECHO_N "(cached) $ECHO_C" >&6
28712 else
28713   cat >conftest.$ac_ext <<_ACEOF
28714 /* confdefs.h.  */
28715 _ACEOF
28716 cat confdefs.h >>conftest.$ac_ext
28717 cat >>conftest.$ac_ext <<_ACEOF
28718 /* end confdefs.h.  */
28719 #ifdef __GNUC__
28720 # define alloca __builtin_alloca
28721 #else
28722 # ifdef _MSC_VER
28723 #  include <malloc.h>
28724 #  define alloca _alloca
28725 # else
28726 #  ifdef HAVE_ALLOCA_H
28727 #   include <alloca.h>
28728 #  else
28729 #   ifdef _AIX
28730  #pragma alloca
28731 #   else
28732 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28733 char *alloca ();
28734 #    endif
28735 #   endif
28736 #  endif
28737 # endif
28738 #endif
28739
28740 int
28741 main ()
28742 {
28743 char *p = (char *) alloca (1);
28744                                     if (p) return 0;
28745   ;
28746   return 0;
28747 }
28748 _ACEOF
28749 rm -f conftest.$ac_objext conftest$ac_exeext
28750 if { (ac_try="$ac_link"
28751 case "(($ac_try" in
28752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28753   *) ac_try_echo=$ac_try;;
28754 esac
28755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28756   (eval "$ac_link") 2>conftest.er1
28757   ac_status=$?
28758   grep -v '^ *+' conftest.er1 >conftest.err
28759   rm -f conftest.er1
28760   cat conftest.err >&5
28761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762   (exit $ac_status); } && {
28763          test -z "$ac_c_werror_flag" ||
28764          test ! -s conftest.err
28765        } && test -s conftest$ac_exeext &&
28766        $as_test_x conftest$ac_exeext; then
28767   ac_cv_func_alloca_works=yes
28768 else
28769   echo "$as_me: failed program was:" >&5
28770 sed 's/^/| /' conftest.$ac_ext >&5
28771
28772         ac_cv_func_alloca_works=no
28773 fi
28774
28775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28776       conftest$ac_exeext conftest.$ac_ext
28777 fi
28778 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28779 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28780
28781 if test $ac_cv_func_alloca_works = yes; then
28782
28783 cat >>confdefs.h <<\_ACEOF
28784 #define HAVE_ALLOCA 1
28785 _ACEOF
28786
28787 else
28788   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28789 # that cause trouble.  Some versions do not even contain alloca or
28790 # contain a buggy version.  If you still want to use their alloca,
28791 # use ar to extract alloca.o from them instead of compiling alloca.c.
28792
28793 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28794
28795 cat >>confdefs.h <<\_ACEOF
28796 #define C_ALLOCA 1
28797 _ACEOF
28798
28799
28800 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28801 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28802 if test "${ac_cv_os_cray+set}" = set; then
28803   echo $ECHO_N "(cached) $ECHO_C" >&6
28804 else
28805   cat >conftest.$ac_ext <<_ACEOF
28806 /* confdefs.h.  */
28807 _ACEOF
28808 cat confdefs.h >>conftest.$ac_ext
28809 cat >>conftest.$ac_ext <<_ACEOF
28810 /* end confdefs.h.  */
28811 #if defined CRAY && ! defined CRAY2
28812 webecray
28813 #else
28814 wenotbecray
28815 #endif
28816
28817 _ACEOF
28818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28819   $EGREP "webecray" >/dev/null 2>&1; then
28820   ac_cv_os_cray=yes
28821 else
28822   ac_cv_os_cray=no
28823 fi
28824 rm -f conftest*
28825
28826 fi
28827 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28828 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28829 if test $ac_cv_os_cray = yes; then
28830   for ac_func in _getb67 GETB67 getb67; do
28831     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28835   echo $ECHO_N "(cached) $ECHO_C" >&6
28836 else
28837   cat >conftest.$ac_ext <<_ACEOF
28838 /* confdefs.h.  */
28839 _ACEOF
28840 cat confdefs.h >>conftest.$ac_ext
28841 cat >>conftest.$ac_ext <<_ACEOF
28842 /* end confdefs.h.  */
28843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28845 #define $ac_func innocuous_$ac_func
28846
28847 /* System header to define __stub macros and hopefully few prototypes,
28848     which can conflict with char $ac_func (); below.
28849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28850     <limits.h> exists even on freestanding compilers.  */
28851
28852 #ifdef __STDC__
28853 # include <limits.h>
28854 #else
28855 # include <assert.h>
28856 #endif
28857
28858 #undef $ac_func
28859
28860 /* Override any GCC internal prototype to avoid an error.
28861    Use char because int might match the return type of a GCC
28862    builtin and then its argument prototype would still apply.  */
28863 #ifdef __cplusplus
28864 extern "C"
28865 #endif
28866 char $ac_func ();
28867 /* The GNU C library defines this for functions which it implements
28868     to always fail with ENOSYS.  Some functions are actually named
28869     something starting with __ and the normal name is an alias.  */
28870 #if defined __stub_$ac_func || defined __stub___$ac_func
28871 choke me
28872 #endif
28873
28874 int
28875 main ()
28876 {
28877 return $ac_func ();
28878   ;
28879   return 0;
28880 }
28881 _ACEOF
28882 rm -f conftest.$ac_objext conftest$ac_exeext
28883 if { (ac_try="$ac_link"
28884 case "(($ac_try" in
28885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28886   *) ac_try_echo=$ac_try;;
28887 esac
28888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28889   (eval "$ac_link") 2>conftest.er1
28890   ac_status=$?
28891   grep -v '^ *+' conftest.er1 >conftest.err
28892   rm -f conftest.er1
28893   cat conftest.err >&5
28894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28895   (exit $ac_status); } && {
28896          test -z "$ac_c_werror_flag" ||
28897          test ! -s conftest.err
28898        } && test -s conftest$ac_exeext &&
28899        $as_test_x conftest$ac_exeext; then
28900   eval "$as_ac_var=yes"
28901 else
28902   echo "$as_me: failed program was:" >&5
28903 sed 's/^/| /' conftest.$ac_ext >&5
28904
28905         eval "$as_ac_var=no"
28906 fi
28907
28908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28909       conftest$ac_exeext conftest.$ac_ext
28910 fi
28911 ac_res=`eval echo '${'$as_ac_var'}'`
28912                { echo "$as_me:$LINENO: result: $ac_res" >&5
28913 echo "${ECHO_T}$ac_res" >&6; }
28914 if test `eval echo '${'$as_ac_var'}'` = yes; then
28915
28916 cat >>confdefs.h <<_ACEOF
28917 #define CRAY_STACKSEG_END $ac_func
28918 _ACEOF
28919
28920     break
28921 fi
28922
28923   done
28924 fi
28925
28926 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28927 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28928 if test "${ac_cv_c_stack_direction+set}" = set; then
28929   echo $ECHO_N "(cached) $ECHO_C" >&6
28930 else
28931   if test "$cross_compiling" = yes; then
28932   ac_cv_c_stack_direction=0
28933 else
28934   cat >conftest.$ac_ext <<_ACEOF
28935 /* confdefs.h.  */
28936 _ACEOF
28937 cat confdefs.h >>conftest.$ac_ext
28938 cat >>conftest.$ac_ext <<_ACEOF
28939 /* end confdefs.h.  */
28940 $ac_includes_default
28941 int
28942 find_stack_direction ()
28943 {
28944   static char *addr = 0;
28945   auto char dummy;
28946   if (addr == 0)
28947     {
28948       addr = &dummy;
28949       return find_stack_direction ();
28950     }
28951   else
28952     return (&dummy > addr) ? 1 : -1;
28953 }
28954
28955 int
28956 main ()
28957 {
28958   return find_stack_direction () < 0;
28959 }
28960 _ACEOF
28961 rm -f conftest$ac_exeext
28962 if { (ac_try="$ac_link"
28963 case "(($ac_try" in
28964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28965   *) ac_try_echo=$ac_try;;
28966 esac
28967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28968   (eval "$ac_link") 2>&5
28969   ac_status=$?
28970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28971   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28972   { (case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28977   (eval "$ac_try") 2>&5
28978   ac_status=$?
28979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980   (exit $ac_status); }; }; then
28981   ac_cv_c_stack_direction=1
28982 else
28983   echo "$as_me: program exited with status $ac_status" >&5
28984 echo "$as_me: failed program was:" >&5
28985 sed 's/^/| /' conftest.$ac_ext >&5
28986
28987 ( exit $ac_status )
28988 ac_cv_c_stack_direction=-1
28989 fi
28990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28991 fi
28992
28993
28994 fi
28995 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28996 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28997
28998 cat >>confdefs.h <<_ACEOF
28999 #define STACK_DIRECTION $ac_cv_c_stack_direction
29000 _ACEOF
29001
29002
29003 fi
29004
29005 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29006 # -lseq on Dynix/PTX, -lgen on Unixware.
29007 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
29008 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
29009 if test "${ac_cv_search_getmntent+set}" = set; then
29010   echo $ECHO_N "(cached) $ECHO_C" >&6
29011 else
29012   ac_func_search_save_LIBS=$LIBS
29013 cat >conftest.$ac_ext <<_ACEOF
29014 /* confdefs.h.  */
29015 _ACEOF
29016 cat confdefs.h >>conftest.$ac_ext
29017 cat >>conftest.$ac_ext <<_ACEOF
29018 /* end confdefs.h.  */
29019
29020 /* Override any GCC internal prototype to avoid an error.
29021    Use char because int might match the return type of a GCC
29022    builtin and then its argument prototype would still apply.  */
29023 #ifdef __cplusplus
29024 extern "C"
29025 #endif
29026 char getmntent ();
29027 int
29028 main ()
29029 {
29030 return getmntent ();
29031   ;
29032   return 0;
29033 }
29034 _ACEOF
29035 for ac_lib in '' sun seq gen; do
29036   if test -z "$ac_lib"; then
29037     ac_res="none required"
29038   else
29039     ac_res=-l$ac_lib
29040     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29041   fi
29042   rm -f conftest.$ac_objext conftest$ac_exeext
29043 if { (ac_try="$ac_link"
29044 case "(($ac_try" in
29045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046   *) ac_try_echo=$ac_try;;
29047 esac
29048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049   (eval "$ac_link") 2>conftest.er1
29050   ac_status=$?
29051   grep -v '^ *+' conftest.er1 >conftest.err
29052   rm -f conftest.er1
29053   cat conftest.err >&5
29054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29055   (exit $ac_status); } && {
29056          test -z "$ac_c_werror_flag" ||
29057          test ! -s conftest.err
29058        } && test -s conftest$ac_exeext &&
29059        $as_test_x conftest$ac_exeext; then
29060   ac_cv_search_getmntent=$ac_res
29061 else
29062   echo "$as_me: failed program was:" >&5
29063 sed 's/^/| /' conftest.$ac_ext >&5
29064
29065
29066 fi
29067
29068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29069       conftest$ac_exeext
29070   if test "${ac_cv_search_getmntent+set}" = set; then
29071   break
29072 fi
29073 done
29074 if test "${ac_cv_search_getmntent+set}" = set; then
29075   :
29076 else
29077   ac_cv_search_getmntent=no
29078 fi
29079 rm conftest.$ac_ext
29080 LIBS=$ac_func_search_save_LIBS
29081 fi
29082 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
29083 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
29084 ac_res=$ac_cv_search_getmntent
29085 if test "$ac_res" != no; then
29086   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29087   ac_cv_func_getmntent=yes
29088
29089 cat >>confdefs.h <<\_ACEOF
29090 #define HAVE_GETMNTENT 1
29091 _ACEOF
29092
29093 else
29094   ac_cv_func_getmntent=no
29095 fi
29096
29097
29098 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29099 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
29100 if test "${ac_cv_func_closedir_void+set}" = set; then
29101   echo $ECHO_N "(cached) $ECHO_C" >&6
29102 else
29103   if test "$cross_compiling" = yes; then
29104   ac_cv_func_closedir_void=yes
29105 else
29106   cat >conftest.$ac_ext <<_ACEOF
29107 /* confdefs.h.  */
29108 _ACEOF
29109 cat confdefs.h >>conftest.$ac_ext
29110 cat >>conftest.$ac_ext <<_ACEOF
29111 /* end confdefs.h.  */
29112 $ac_includes_default
29113 #include <$ac_header_dirent>
29114 #ifndef __cplusplus
29115 int closedir ();
29116 #endif
29117
29118 int
29119 main ()
29120 {
29121 return closedir (opendir (".")) != 0;
29122   ;
29123   return 0;
29124 }
29125 _ACEOF
29126 rm -f conftest$ac_exeext
29127 if { (ac_try="$ac_link"
29128 case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133   (eval "$ac_link") 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29137   { (case "(($ac_try" in
29138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29139   *) ac_try_echo=$ac_try;;
29140 esac
29141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29142   (eval "$ac_try") 2>&5
29143   ac_status=$?
29144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145   (exit $ac_status); }; }; then
29146   ac_cv_func_closedir_void=no
29147 else
29148   echo "$as_me: program exited with status $ac_status" >&5
29149 echo "$as_me: failed program was:" >&5
29150 sed 's/^/| /' conftest.$ac_ext >&5
29151
29152 ( exit $ac_status )
29153 ac_cv_func_closedir_void=yes
29154 fi
29155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29156 fi
29157
29158
29159 fi
29160 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29161 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29162 if test $ac_cv_func_closedir_void = yes; then
29163
29164 cat >>confdefs.h <<\_ACEOF
29165 #define CLOSEDIR_VOID 1
29166 _ACEOF
29167
29168 fi
29169
29170 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29171 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29172 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29173   echo $ECHO_N "(cached) $ECHO_C" >&6
29174 else
29175   if test "$cross_compiling" = yes; then
29176   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29177 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29178    { (exit 1); exit 1; }; }
29179 else
29180   cat >conftest.$ac_ext <<_ACEOF
29181 /* confdefs.h.  */
29182 _ACEOF
29183 cat confdefs.h >>conftest.$ac_ext
29184 cat >>conftest.$ac_ext <<_ACEOF
29185 /* end confdefs.h.  */
29186 $ac_includes_default
29187 int
29188 main ()
29189 {
29190 /* If this system has a BSD-style setpgrp which takes arguments,
29191   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29192   exit successfully. */
29193   return setpgrp (1,1) != -1;
29194   ;
29195   return 0;
29196 }
29197 _ACEOF
29198 rm -f conftest$ac_exeext
29199 if { (ac_try="$ac_link"
29200 case "(($ac_try" in
29201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29202   *) ac_try_echo=$ac_try;;
29203 esac
29204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29205   (eval "$ac_link") 2>&5
29206   ac_status=$?
29207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29208   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
29218   ac_cv_func_setpgrp_void=no
29219 else
29220   echo "$as_me: program exited with status $ac_status" >&5
29221 echo "$as_me: failed program was:" >&5
29222 sed 's/^/| /' conftest.$ac_ext >&5
29223
29224 ( exit $ac_status )
29225 ac_cv_func_setpgrp_void=yes
29226 fi
29227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29228 fi
29229
29230
29231 fi
29232 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29233 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29234 if test $ac_cv_func_setpgrp_void = yes; then
29235
29236 cat >>confdefs.h <<\_ACEOF
29237 #define SETPGRP_VOID 1
29238 _ACEOF
29239
29240 fi
29241                       # AC_FUNC_FNMATCH    dnl use local version
29242
29243
29244 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29245 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29246 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29247   echo $ECHO_N "(cached) $ECHO_C" >&6
29248 else
29249   ac_check_lib_save_LIBS=$LIBS
29250 LIBS="-lintl  $LIBS"
29251 cat >conftest.$ac_ext <<_ACEOF
29252 /* confdefs.h.  */
29253 _ACEOF
29254 cat confdefs.h >>conftest.$ac_ext
29255 cat >>conftest.$ac_ext <<_ACEOF
29256 /* end confdefs.h.  */
29257
29258 /* Override any GCC internal prototype to avoid an error.
29259    Use char because int might match the return type of a GCC
29260    builtin and then its argument prototype would still apply.  */
29261 #ifdef __cplusplus
29262 extern "C"
29263 #endif
29264 char gettext ();
29265 int
29266 main ()
29267 {
29268 return gettext ();
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 rm -f conftest.$ac_objext conftest$ac_exeext
29274 if { (ac_try="$ac_link"
29275 case "(($ac_try" in
29276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277   *) ac_try_echo=$ac_try;;
29278 esac
29279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29280   (eval "$ac_link") 2>conftest.er1
29281   ac_status=$?
29282   grep -v '^ *+' conftest.er1 >conftest.err
29283   rm -f conftest.er1
29284   cat conftest.err >&5
29285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29286   (exit $ac_status); } && {
29287          test -z "$ac_c_werror_flag" ||
29288          test ! -s conftest.err
29289        } && test -s conftest$ac_exeext &&
29290        $as_test_x conftest$ac_exeext; then
29291   ac_cv_lib_intl_gettext=yes
29292 else
29293   echo "$as_me: failed program was:" >&5
29294 sed 's/^/| /' conftest.$ac_ext >&5
29295
29296         ac_cv_lib_intl_gettext=no
29297 fi
29298
29299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29300       conftest$ac_exeext conftest.$ac_ext
29301 LIBS=$ac_check_lib_save_LIBS
29302 fi
29303 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29304 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29305 if test $ac_cv_lib_intl_gettext = yes; then
29306   LIBS="$LIBS -lintl"
29307 fi
29308
29309
29310
29311
29312 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29313 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29314 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29315   echo $ECHO_N "(cached) $ECHO_C" >&6
29316 else
29317   ac_check_lib_save_LIBS=$LIBS
29318 LIBS="-lsun  $LIBS"
29319 cat >conftest.$ac_ext <<_ACEOF
29320 /* confdefs.h.  */
29321 _ACEOF
29322 cat confdefs.h >>conftest.$ac_ext
29323 cat >>conftest.$ac_ext <<_ACEOF
29324 /* end confdefs.h.  */
29325
29326 /* Override any GCC internal prototype to avoid an error.
29327    Use char because int might match the return type of a GCC
29328    builtin and then its argument prototype would still apply.  */
29329 #ifdef __cplusplus
29330 extern "C"
29331 #endif
29332 char getpwnam ();
29333 int
29334 main ()
29335 {
29336 return getpwnam ();
29337   ;
29338   return 0;
29339 }
29340 _ACEOF
29341 rm -f conftest.$ac_objext conftest$ac_exeext
29342 if { (ac_try="$ac_link"
29343 case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_link") 2>conftest.er1
29349   ac_status=$?
29350   grep -v '^ *+' conftest.er1 >conftest.err
29351   rm -f conftest.er1
29352   cat conftest.err >&5
29353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29354   (exit $ac_status); } && {
29355          test -z "$ac_c_werror_flag" ||
29356          test ! -s conftest.err
29357        } && test -s conftest$ac_exeext &&
29358        $as_test_x conftest$ac_exeext; then
29359   ac_cv_lib_sun_getpwnam=yes
29360 else
29361   echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.$ac_ext >&5
29363
29364         ac_cv_lib_sun_getpwnam=no
29365 fi
29366
29367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29368       conftest$ac_exeext conftest.$ac_ext
29369 LIBS=$ac_check_lib_save_LIBS
29370 fi
29371 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29372 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29373 if test $ac_cv_lib_sun_getpwnam = yes; then
29374   cat >>confdefs.h <<_ACEOF
29375 #define HAVE_LIBSUN 1
29376 _ACEOF
29377
29378   LIBS="-lsun $LIBS"
29379
29380 fi
29381
29382
29383
29384 for ac_header in zlib.h
29385 do
29386 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29388   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29391   echo $ECHO_N "(cached) $ECHO_C" >&6
29392 fi
29393 ac_res=`eval echo '${'$as_ac_Header'}'`
29394                { echo "$as_me:$LINENO: result: $ac_res" >&5
29395 echo "${ECHO_T}$ac_res" >&6; }
29396 else
29397   # Is the header compilable?
29398 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29399 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29400 cat >conftest.$ac_ext <<_ACEOF
29401 /* confdefs.h.  */
29402 _ACEOF
29403 cat confdefs.h >>conftest.$ac_ext
29404 cat >>conftest.$ac_ext <<_ACEOF
29405 /* end confdefs.h.  */
29406 $ac_includes_default
29407 #include <$ac_header>
29408 _ACEOF
29409 rm -f conftest.$ac_objext
29410 if { (ac_try="$ac_compile"
29411 case "(($ac_try" in
29412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29413   *) ac_try_echo=$ac_try;;
29414 esac
29415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29416   (eval "$ac_compile") 2>conftest.er1
29417   ac_status=$?
29418   grep -v '^ *+' conftest.er1 >conftest.err
29419   rm -f conftest.er1
29420   cat conftest.err >&5
29421   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29422   (exit $ac_status); } && {
29423          test -z "$ac_c_werror_flag" ||
29424          test ! -s conftest.err
29425        } && test -s conftest.$ac_objext; then
29426   ac_header_compiler=yes
29427 else
29428   echo "$as_me: failed program was:" >&5
29429 sed 's/^/| /' conftest.$ac_ext >&5
29430
29431         ac_header_compiler=no
29432 fi
29433
29434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29436 echo "${ECHO_T}$ac_header_compiler" >&6; }
29437
29438 # Is the header present?
29439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29441 cat >conftest.$ac_ext <<_ACEOF
29442 /* confdefs.h.  */
29443 _ACEOF
29444 cat confdefs.h >>conftest.$ac_ext
29445 cat >>conftest.$ac_ext <<_ACEOF
29446 /* end confdefs.h.  */
29447 #include <$ac_header>
29448 _ACEOF
29449 if { (ac_try="$ac_cpp conftest.$ac_ext"
29450 case "(($ac_try" in
29451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29452   *) ac_try_echo=$ac_try;;
29453 esac
29454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29456   ac_status=$?
29457   grep -v '^ *+' conftest.er1 >conftest.err
29458   rm -f conftest.er1
29459   cat conftest.err >&5
29460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29461   (exit $ac_status); } >/dev/null && {
29462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29463          test ! -s conftest.err
29464        }; then
29465   ac_header_preproc=yes
29466 else
29467   echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29469
29470   ac_header_preproc=no
29471 fi
29472
29473 rm -f conftest.err conftest.$ac_ext
29474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29475 echo "${ECHO_T}$ac_header_preproc" >&6; }
29476
29477 # So?  What about this header?
29478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29479   yes:no: )
29480     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29481 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29482     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29483 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29484     ac_header_preproc=yes
29485     ;;
29486   no:yes:* )
29487     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29488 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29489     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29490 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29491     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29492 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29493     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29494 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29495     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29496 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29497     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29498 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29499
29500     ;;
29501 esac
29502 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29505   echo $ECHO_N "(cached) $ECHO_C" >&6
29506 else
29507   eval "$as_ac_Header=\$ac_header_preproc"
29508 fi
29509 ac_res=`eval echo '${'$as_ac_Header'}'`
29510                { echo "$as_me:$LINENO: result: $ac_res" >&5
29511 echo "${ECHO_T}$ac_res" >&6; }
29512
29513 fi
29514 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29515   cat >>confdefs.h <<_ACEOF
29516 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29517 _ACEOF
29518
29519 fi
29520
29521 done
29522
29523 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29524 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29525 if test "${ac_cv_lib_z_deflate+set}" = set; then
29526   echo $ECHO_N "(cached) $ECHO_C" >&6
29527 else
29528   ac_check_lib_save_LIBS=$LIBS
29529 LIBS="-lz  $LIBS"
29530 cat >conftest.$ac_ext <<_ACEOF
29531 /* confdefs.h.  */
29532 _ACEOF
29533 cat confdefs.h >>conftest.$ac_ext
29534 cat >>conftest.$ac_ext <<_ACEOF
29535 /* end confdefs.h.  */
29536
29537 /* Override any GCC internal prototype to avoid an error.
29538    Use char because int might match the return type of a GCC
29539    builtin and then its argument prototype would still apply.  */
29540 #ifdef __cplusplus
29541 extern "C"
29542 #endif
29543 char deflate ();
29544 int
29545 main ()
29546 {
29547 return deflate ();
29548   ;
29549   return 0;
29550 }
29551 _ACEOF
29552 rm -f conftest.$ac_objext conftest$ac_exeext
29553 if { (ac_try="$ac_link"
29554 case "(($ac_try" in
29555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29556   *) ac_try_echo=$ac_try;;
29557 esac
29558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29559   (eval "$ac_link") 2>conftest.er1
29560   ac_status=$?
29561   grep -v '^ *+' conftest.er1 >conftest.err
29562   rm -f conftest.er1
29563   cat conftest.err >&5
29564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565   (exit $ac_status); } && {
29566          test -z "$ac_c_werror_flag" ||
29567          test ! -s conftest.err
29568        } && test -s conftest$ac_exeext &&
29569        $as_test_x conftest$ac_exeext; then
29570   ac_cv_lib_z_deflate=yes
29571 else
29572   echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575         ac_cv_lib_z_deflate=no
29576 fi
29577
29578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29579       conftest$ac_exeext conftest.$ac_ext
29580 LIBS=$ac_check_lib_save_LIBS
29581 fi
29582 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29583 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29584 if test $ac_cv_lib_z_deflate = yes; then
29585   FDLIBS="-lz"
29586 fi
29587
29588 have_zlib=no
29589 if test x$FDLIBS = x-lz; then
29590   cat >>confdefs.h <<\_ACEOF
29591 #define HAVE_LIBZ 1
29592 _ACEOF
29593
29594   have_zlib=yes
29595 fi
29596
29597 #
29598 # Check for ACL libraries
29599 #
29600 have_acl=no
29601 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29602   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29603 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29604 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29605   echo $ECHO_N "(cached) $ECHO_C" >&6
29606 fi
29607 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29608 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29609 else
29610   # Is the header compilable?
29611 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29612 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29613 cat >conftest.$ac_ext <<_ACEOF
29614 /* confdefs.h.  */
29615 _ACEOF
29616 cat confdefs.h >>conftest.$ac_ext
29617 cat >>conftest.$ac_ext <<_ACEOF
29618 /* end confdefs.h.  */
29619 $ac_includes_default
29620 #include <sys/acl.h>
29621 _ACEOF
29622 rm -f conftest.$ac_objext
29623 if { (ac_try="$ac_compile"
29624 case "(($ac_try" in
29625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29626   *) ac_try_echo=$ac_try;;
29627 esac
29628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29629   (eval "$ac_compile") 2>conftest.er1
29630   ac_status=$?
29631   grep -v '^ *+' conftest.er1 >conftest.err
29632   rm -f conftest.er1
29633   cat conftest.err >&5
29634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29635   (exit $ac_status); } && {
29636          test -z "$ac_c_werror_flag" ||
29637          test ! -s conftest.err
29638        } && test -s conftest.$ac_objext; then
29639   ac_header_compiler=yes
29640 else
29641   echo "$as_me: failed program was:" >&5
29642 sed 's/^/| /' conftest.$ac_ext >&5
29643
29644         ac_header_compiler=no
29645 fi
29646
29647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29648 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29649 echo "${ECHO_T}$ac_header_compiler" >&6; }
29650
29651 # Is the header present?
29652 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29653 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29654 cat >conftest.$ac_ext <<_ACEOF
29655 /* confdefs.h.  */
29656 _ACEOF
29657 cat confdefs.h >>conftest.$ac_ext
29658 cat >>conftest.$ac_ext <<_ACEOF
29659 /* end confdefs.h.  */
29660 #include <sys/acl.h>
29661 _ACEOF
29662 if { (ac_try="$ac_cpp conftest.$ac_ext"
29663 case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29668   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29669   ac_status=$?
29670   grep -v '^ *+' conftest.er1 >conftest.err
29671   rm -f conftest.er1
29672   cat conftest.err >&5
29673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29674   (exit $ac_status); } >/dev/null && {
29675          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29676          test ! -s conftest.err
29677        }; then
29678   ac_header_preproc=yes
29679 else
29680   echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.$ac_ext >&5
29682
29683   ac_header_preproc=no
29684 fi
29685
29686 rm -f conftest.err conftest.$ac_ext
29687 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29688 echo "${ECHO_T}$ac_header_preproc" >&6; }
29689
29690 # So?  What about this header?
29691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29692   yes:no: )
29693     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29694 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29695     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29696 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29697     ac_header_preproc=yes
29698     ;;
29699   no:yes:* )
29700     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29701 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29702     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29703 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29704     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29705 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29706     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29707 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29708     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29709 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29710     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29711 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29712
29713     ;;
29714 esac
29715 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29716 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29717 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29718   echo $ECHO_N "(cached) $ECHO_C" >&6
29719 else
29720   ac_cv_header_sys_acl_h=$ac_header_preproc
29721 fi
29722 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29723 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29724
29725 fi
29726
29727
29728 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29729 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29730 if test "${ac_cv_func_acl_get_file+set}" = set; then
29731   echo $ECHO_N "(cached) $ECHO_C" >&6
29732 else
29733   cat >conftest.$ac_ext <<_ACEOF
29734 /* confdefs.h.  */
29735 _ACEOF
29736 cat confdefs.h >>conftest.$ac_ext
29737 cat >>conftest.$ac_ext <<_ACEOF
29738 /* end confdefs.h.  */
29739 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29741 #define acl_get_file innocuous_acl_get_file
29742
29743 /* System header to define __stub macros and hopefully few prototypes,
29744     which can conflict with char acl_get_file (); below.
29745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29746     <limits.h> exists even on freestanding compilers.  */
29747
29748 #ifdef __STDC__
29749 # include <limits.h>
29750 #else
29751 # include <assert.h>
29752 #endif
29753
29754 #undef acl_get_file
29755
29756 /* Override any GCC internal prototype to avoid an error.
29757    Use char because int might match the return type of a GCC
29758    builtin and then its argument prototype would still apply.  */
29759 #ifdef __cplusplus
29760 extern "C"
29761 #endif
29762 char acl_get_file ();
29763 /* The GNU C library defines this for functions which it implements
29764     to always fail with ENOSYS.  Some functions are actually named
29765     something starting with __ and the normal name is an alias.  */
29766 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29767 choke me
29768 #endif
29769
29770 int
29771 main ()
29772 {
29773 return acl_get_file ();
29774   ;
29775   return 0;
29776 }
29777 _ACEOF
29778 rm -f conftest.$ac_objext conftest$ac_exeext
29779 if { (ac_try="$ac_link"
29780 case "(($ac_try" in
29781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29782   *) ac_try_echo=$ac_try;;
29783 esac
29784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29785   (eval "$ac_link") 2>conftest.er1
29786   ac_status=$?
29787   grep -v '^ *+' conftest.er1 >conftest.err
29788   rm -f conftest.er1
29789   cat conftest.err >&5
29790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29791   (exit $ac_status); } && {
29792          test -z "$ac_c_werror_flag" ||
29793          test ! -s conftest.err
29794        } && test -s conftest$ac_exeext &&
29795        $as_test_x conftest$ac_exeext; then
29796   ac_cv_func_acl_get_file=yes
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801         ac_cv_func_acl_get_file=no
29802 fi
29803
29804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29805       conftest$ac_exeext conftest.$ac_ext
29806 fi
29807 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29808 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29809 if test $ac_cv_func_acl_get_file = yes; then
29810   have_acl=yes
29811 else
29812   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29813 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29814 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29815   echo $ECHO_N "(cached) $ECHO_C" >&6
29816 else
29817   ac_check_lib_save_LIBS=$LIBS
29818 LIBS="-lacl  $LIBS"
29819 cat >conftest.$ac_ext <<_ACEOF
29820 /* confdefs.h.  */
29821 _ACEOF
29822 cat confdefs.h >>conftest.$ac_ext
29823 cat >>conftest.$ac_ext <<_ACEOF
29824 /* end confdefs.h.  */
29825
29826 /* Override any GCC internal prototype to avoid an error.
29827    Use char because int might match the return type of a GCC
29828    builtin and then its argument prototype would still apply.  */
29829 #ifdef __cplusplus
29830 extern "C"
29831 #endif
29832 char acl_get_file ();
29833 int
29834 main ()
29835 {
29836 return acl_get_file ();
29837   ;
29838   return 0;
29839 }
29840 _ACEOF
29841 rm -f conftest.$ac_objext conftest$ac_exeext
29842 if { (ac_try="$ac_link"
29843 case "(($ac_try" in
29844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29845   *) ac_try_echo=$ac_try;;
29846 esac
29847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29848   (eval "$ac_link") 2>conftest.er1
29849   ac_status=$?
29850   grep -v '^ *+' conftest.er1 >conftest.err
29851   rm -f conftest.er1
29852   cat conftest.err >&5
29853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29854   (exit $ac_status); } && {
29855          test -z "$ac_c_werror_flag" ||
29856          test ! -s conftest.err
29857        } && test -s conftest$ac_exeext &&
29858        $as_test_x conftest$ac_exeext; then
29859   ac_cv_lib_acl_acl_get_file=yes
29860 else
29861   echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29863
29864         ac_cv_lib_acl_acl_get_file=no
29865 fi
29866
29867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29868       conftest$ac_exeext conftest.$ac_ext
29869 LIBS=$ac_check_lib_save_LIBS
29870 fi
29871 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29872 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29873 if test $ac_cv_lib_acl_acl_get_file = yes; then
29874   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29875 else
29876   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29877 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29878 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29879   echo $ECHO_N "(cached) $ECHO_C" >&6
29880 else
29881   ac_check_lib_save_LIBS=$LIBS
29882 LIBS="-lsec  $LIBS"
29883 cat >conftest.$ac_ext <<_ACEOF
29884 /* confdefs.h.  */
29885 _ACEOF
29886 cat confdefs.h >>conftest.$ac_ext
29887 cat >>conftest.$ac_ext <<_ACEOF
29888 /* end confdefs.h.  */
29889
29890 /* Override any GCC internal prototype to avoid an error.
29891    Use char because int might match the return type of a GCC
29892    builtin and then its argument prototype would still apply.  */
29893 #ifdef __cplusplus
29894 extern "C"
29895 #endif
29896 char acltotext ();
29897 int
29898 main ()
29899 {
29900 return acltotext ();
29901   ;
29902   return 0;
29903 }
29904 _ACEOF
29905 rm -f conftest.$ac_objext conftest$ac_exeext
29906 if { (ac_try="$ac_link"
29907 case "(($ac_try" in
29908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909   *) ac_try_echo=$ac_try;;
29910 esac
29911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29912   (eval "$ac_link") 2>conftest.er1
29913   ac_status=$?
29914   grep -v '^ *+' conftest.er1 >conftest.err
29915   rm -f conftest.er1
29916   cat conftest.err >&5
29917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29918   (exit $ac_status); } && {
29919          test -z "$ac_c_werror_flag" ||
29920          test ! -s conftest.err
29921        } && test -s conftest$ac_exeext &&
29922        $as_test_x conftest$ac_exeext; then
29923   ac_cv_lib_sec_acltotext=yes
29924 else
29925   echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928         ac_cv_lib_sec_acltotext=no
29929 fi
29930
29931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29932       conftest$ac_exeext conftest.$ac_ext
29933 LIBS=$ac_check_lib_save_LIBS
29934 fi
29935 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29936 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29937 if test $ac_cv_lib_sec_acltotext = yes; then
29938   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29939 fi
29940
29941
29942 fi
29943
29944
29945 fi
29946
29947 if test $have_acl = yes; then
29948    cat >>confdefs.h <<\_ACEOF
29949 #define HAVE_ACL 1
29950 _ACEOF
29951
29952 fi
29953
29954 PTHREAD_LIB=""
29955 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29956 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29957 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29958   echo $ECHO_N "(cached) $ECHO_C" >&6
29959 else
29960   ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lpthread  $LIBS"
29962 cat >conftest.$ac_ext <<_ACEOF
29963 /* confdefs.h.  */
29964 _ACEOF
29965 cat confdefs.h >>conftest.$ac_ext
29966 cat >>conftest.$ac_ext <<_ACEOF
29967 /* end confdefs.h.  */
29968
29969 /* Override any GCC internal prototype to avoid an error.
29970    Use char because int might match the return type of a GCC
29971    builtin and then its argument prototype would still apply.  */
29972 #ifdef __cplusplus
29973 extern "C"
29974 #endif
29975 char pthread_create ();
29976 int
29977 main ()
29978 {
29979 return pthread_create ();
29980   ;
29981   return 0;
29982 }
29983 _ACEOF
29984 rm -f conftest.$ac_objext conftest$ac_exeext
29985 if { (ac_try="$ac_link"
29986 case "(($ac_try" in
29987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29988   *) ac_try_echo=$ac_try;;
29989 esac
29990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29991   (eval "$ac_link") 2>conftest.er1
29992   ac_status=$?
29993   grep -v '^ *+' conftest.er1 >conftest.err
29994   rm -f conftest.er1
29995   cat conftest.err >&5
29996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29997   (exit $ac_status); } && {
29998          test -z "$ac_c_werror_flag" ||
29999          test ! -s conftest.err
30000        } && test -s conftest$ac_exeext &&
30001        $as_test_x conftest$ac_exeext; then
30002   ac_cv_lib_pthread_pthread_create=yes
30003 else
30004   echo "$as_me: failed program was:" >&5
30005 sed 's/^/| /' conftest.$ac_ext >&5
30006
30007         ac_cv_lib_pthread_pthread_create=no
30008 fi
30009
30010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30011       conftest$ac_exeext conftest.$ac_ext
30012 LIBS=$ac_check_lib_save_LIBS
30013 fi
30014 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
30015 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
30016 if test $ac_cv_lib_pthread_pthread_create = yes; then
30017   PTHREAD_LIB="-lpthread"
30018 else
30019   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
30020 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
30021 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
30022   echo $ECHO_N "(cached) $ECHO_C" >&6
30023 else
30024   ac_check_lib_save_LIBS=$LIBS
30025 LIBS="-lpthreads  $LIBS"
30026 cat >conftest.$ac_ext <<_ACEOF
30027 /* confdefs.h.  */
30028 _ACEOF
30029 cat confdefs.h >>conftest.$ac_ext
30030 cat >>conftest.$ac_ext <<_ACEOF
30031 /* end confdefs.h.  */
30032
30033 /* Override any GCC internal prototype to avoid an error.
30034    Use char because int might match the return type of a GCC
30035    builtin and then its argument prototype would still apply.  */
30036 #ifdef __cplusplus
30037 extern "C"
30038 #endif
30039 char pthread_create ();
30040 int
30041 main ()
30042 {
30043 return pthread_create ();
30044   ;
30045   return 0;
30046 }
30047 _ACEOF
30048 rm -f conftest.$ac_objext conftest$ac_exeext
30049 if { (ac_try="$ac_link"
30050 case "(($ac_try" in
30051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30052   *) ac_try_echo=$ac_try;;
30053 esac
30054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30055   (eval "$ac_link") 2>conftest.er1
30056   ac_status=$?
30057   grep -v '^ *+' conftest.er1 >conftest.err
30058   rm -f conftest.er1
30059   cat conftest.err >&5
30060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30061   (exit $ac_status); } && {
30062          test -z "$ac_c_werror_flag" ||
30063          test ! -s conftest.err
30064        } && test -s conftest$ac_exeext &&
30065        $as_test_x conftest$ac_exeext; then
30066   ac_cv_lib_pthreads_pthread_create=yes
30067 else
30068   echo "$as_me: failed program was:" >&5
30069 sed 's/^/| /' conftest.$ac_ext >&5
30070
30071         ac_cv_lib_pthreads_pthread_create=no
30072 fi
30073
30074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30075       conftest$ac_exeext conftest.$ac_ext
30076 LIBS=$ac_check_lib_save_LIBS
30077 fi
30078 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30079 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
30080 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30081   PTHREAD_LIB="-lpthreads"
30082 else
30083   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30084 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
30085 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30086   echo $ECHO_N "(cached) $ECHO_C" >&6
30087 else
30088   ac_check_lib_save_LIBS=$LIBS
30089 LIBS="-lc_r  $LIBS"
30090 cat >conftest.$ac_ext <<_ACEOF
30091 /* confdefs.h.  */
30092 _ACEOF
30093 cat confdefs.h >>conftest.$ac_ext
30094 cat >>conftest.$ac_ext <<_ACEOF
30095 /* end confdefs.h.  */
30096
30097 /* Override any GCC internal prototype to avoid an error.
30098    Use char because int might match the return type of a GCC
30099    builtin and then its argument prototype would still apply.  */
30100 #ifdef __cplusplus
30101 extern "C"
30102 #endif
30103 char pthread_create ();
30104 int
30105 main ()
30106 {
30107 return pthread_create ();
30108   ;
30109   return 0;
30110 }
30111 _ACEOF
30112 rm -f conftest.$ac_objext conftest$ac_exeext
30113 if { (ac_try="$ac_link"
30114 case "(($ac_try" in
30115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30116   *) ac_try_echo=$ac_try;;
30117 esac
30118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30119   (eval "$ac_link") 2>conftest.er1
30120   ac_status=$?
30121   grep -v '^ *+' conftest.er1 >conftest.err
30122   rm -f conftest.er1
30123   cat conftest.err >&5
30124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125   (exit $ac_status); } && {
30126          test -z "$ac_c_werror_flag" ||
30127          test ! -s conftest.err
30128        } && test -s conftest$ac_exeext &&
30129        $as_test_x conftest$ac_exeext; then
30130   ac_cv_lib_c_r_pthread_create=yes
30131 else
30132   echo "$as_me: failed program was:" >&5
30133 sed 's/^/| /' conftest.$ac_ext >&5
30134
30135         ac_cv_lib_c_r_pthread_create=no
30136 fi
30137
30138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30139       conftest$ac_exeext conftest.$ac_ext
30140 LIBS=$ac_check_lib_save_LIBS
30141 fi
30142 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30143 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30144 if test $ac_cv_lib_c_r_pthread_create = yes; then
30145   PTHREAD_LIB="-lc_r"
30146 else
30147   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30148 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30149 if test "${ac_cv_func_pthread_create+set}" = set; then
30150   echo $ECHO_N "(cached) $ECHO_C" >&6
30151 else
30152   cat >conftest.$ac_ext <<_ACEOF
30153 /* confdefs.h.  */
30154 _ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h.  */
30158 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30159    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30160 #define pthread_create innocuous_pthread_create
30161
30162 /* System header to define __stub macros and hopefully few prototypes,
30163     which can conflict with char pthread_create (); below.
30164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165     <limits.h> exists even on freestanding compilers.  */
30166
30167 #ifdef __STDC__
30168 # include <limits.h>
30169 #else
30170 # include <assert.h>
30171 #endif
30172
30173 #undef pthread_create
30174
30175 /* Override any GCC internal prototype to avoid an error.
30176    Use char because int might match the return type of a GCC
30177    builtin and then its argument prototype would still apply.  */
30178 #ifdef __cplusplus
30179 extern "C"
30180 #endif
30181 char pthread_create ();
30182 /* The GNU C library defines this for functions which it implements
30183     to always fail with ENOSYS.  Some functions are actually named
30184     something starting with __ and the normal name is an alias.  */
30185 #if defined __stub_pthread_create || defined __stub___pthread_create
30186 choke me
30187 #endif
30188
30189 int
30190 main ()
30191 {
30192 return pthread_create ();
30193   ;
30194   return 0;
30195 }
30196 _ACEOF
30197 rm -f conftest.$ac_objext conftest$ac_exeext
30198 if { (ac_try="$ac_link"
30199 case "(($ac_try" in
30200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201   *) ac_try_echo=$ac_try;;
30202 esac
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204   (eval "$ac_link") 2>conftest.er1
30205   ac_status=$?
30206   grep -v '^ *+' conftest.er1 >conftest.err
30207   rm -f conftest.er1
30208   cat conftest.err >&5
30209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210   (exit $ac_status); } && {
30211          test -z "$ac_c_werror_flag" ||
30212          test ! -s conftest.err
30213        } && test -s conftest$ac_exeext &&
30214        $as_test_x conftest$ac_exeext; then
30215   ac_cv_func_pthread_create=yes
30216 else
30217   echo "$as_me: failed program was:" >&5
30218 sed 's/^/| /' conftest.$ac_ext >&5
30219
30220         ac_cv_func_pthread_create=no
30221 fi
30222
30223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30224       conftest$ac_exeext conftest.$ac_ext
30225 fi
30226 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30227 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30228
30229
30230 fi
30231
30232
30233 fi
30234
30235
30236 fi
30237
30238
30239
30240 cat >>confdefs.h <<\_ACEOF
30241 #define FDLIBS 1
30242 _ACEOF
30243
30244
30245
30246 CFLAGS=${CFLAGS--O}
30247
30248 if test x$have_gcc = xyes ; then
30249    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30250    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30251 fi
30252 LDFLAGS=${LDFLAGS--O}
30253 DB_LIBS="${SQL_LFLAGS}"
30254 CPPFLAGS="$CPPFLAGS"
30255 CFLAGS="$CFLAGS"
30256
30257
30258
30259
30260
30261
30262
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272 OBJLIST=
30273
30274
30275 lld="lld"
30276 llu="llu"
30277
30278 WCFLAGS=
30279 WLDFLAGS=
30280
30281 #
30282 # Finally we set appropriate distribution specific
30283 #  variables and defaults
30284 #
30285 # PFILES are platform specific files
30286 PFILES="platforms/Makefile"
30287 PSCMD="ps -e"
30288 WIN32=
30289 MACOSX=
30290 hostname=`uname -n | cut -d '.' -f 1`
30291 if test x${hostname} = x ; then
30292   hostname="localhost"
30293 fi
30294 case "$DISTNAME" in
30295 aix)
30296         DISTVER=`uname -r`
30297         PSCMD="ps -e -o pid,comm"
30298         PFILES="${PFILES} \
30299            platforms/aix/Makefile"
30300         TAPEDRIVE="/dev/rmt0.1"
30301   ;;
30302 alpha)
30303         DISTVER=`uname -r`
30304         PTHREAD_LIB="-lpthread -lexc"
30305         if test "${CC}" = "gcc" ; then
30306            lld="lld"
30307            llu="llu"
30308         else
30309            lld="ld"
30310            llu="lu"
30311         fi
30312         TAPEDRIVE="/dev/nrmt0"
30313   ;;
30314 bsdi)
30315         DISTVER=`uname -a |awk '{print $3}'`
30316         TAPEDRIVE="/dev/nrmt0"
30317         PTHREAD_LIB="-pthread"
30318         CFLAGS="${CFLAGS} -pthread"
30319         PSCMD="ps -ax -o pid,command"
30320         lld="qd"
30321         llu="qu"
30322         PFILES="${PFILES} \
30323             platforms/bsdi/Makefile \
30324             platforms/bsdi/bacula-fd \
30325             platforms/bsdi/bacula-sd \
30326             platforms/bsdi/bacula-dir"
30327         largefile_support="yes"
30328   ;;
30329 cygwin)
30330         DISTVER=`uname -a |awk '{print $3}'`
30331         TAPEDRIVE="/dev/nrst0"
30332         WIN32=win32
30333         WCFLAGS="-mwindows"
30334         WLDFLAGS="-mwindows"
30335   ;;
30336 darwin)
30337         DISTVER=`uname -r`
30338         TAPEDRIVE="/dev/nst0"
30339         PSCMD="ps -e -o pid,command"
30340         MACOSX=macosx
30341         PFILES="${PFILES} \
30342            platforms/darwin/Makefile"
30343   ;;
30344 debian)
30345 #       Make sure hostname is resolved
30346         ping -c 1 $hostname 2>&1 1>/dev/null
30347         if test ! $? = 0; then
30348            hostname="localhost"
30349         fi
30350         if `grep -q ubuntu /etc/apt/sources.list`; then
30351            DISTNAME="ubuntu"
30352         fi
30353         DISTVER=`cat /etc/debian_version`
30354         if test -f /etc/lsb-release ; then
30355            . /etc/lsb-release
30356            if test "x$DISTRIB_ID" != "x" ; then
30357               DISTNAME=$DISTRIB_ID
30358            fi
30359            if test "x$DISTRIB_RELEASE" != "x" ; then
30360               DISTVER=$DISTRIB_RELEASE
30361            fi
30362         fi
30363         if test "$DISTNAME" = "Ubuntu" ; then
30364            DISTNAME="ubuntu"
30365         fi
30366         TAPEDRIVE="/dev/nst0"
30367         PSCMD="ps -e -o pid,command"
30368         if test "$DISTNAME" = "ubuntu" ; then
30369            PFILES="${PFILES} \
30370               platforms/ubuntu/Makefile \
30371               platforms/ubuntu/bacula-fd \
30372               platforms/ubuntu/bacula-sd \
30373               platforms/ubuntu/bacula-dir"
30374         else
30375            PFILES="${PFILES} \
30376               platforms/debian/Makefile \
30377               platforms/debian/bacula-fd \
30378               platforms/debian/bacula-sd \
30379               platforms/debian/bacula-dir"
30380         fi
30381   ;;
30382 freebsd)
30383 #       Make sure hostname is resolved
30384         ping -c 1 $hostname 2>&1 1>/dev/null
30385         if test ! $? = 0; then
30386            hostname="localhost"
30387         fi
30388         DISTVER=`uname -a |awk '{print $3}'`
30389         VER=`echo $DISTVER | cut -c 1`
30390         if test x$VER = x4 ; then
30391            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30392            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30393         fi
30394         lld="qd"
30395         llu="qu"
30396         TAPEDRIVE="/dev/nrsa0"
30397         PSCMD="ps -ax -o pid,command"
30398         PFILES="${PFILES} \
30399             platforms/freebsd/Makefile \
30400             platforms/freebsd/bacula-fd \
30401             platforms/freebsd/bacula-sd \
30402             platforms/freebsd/bacula-dir"
30403         largefile_support="yes"
30404   ;;
30405 hpux)
30406         PSCMD="UNIX95=1; ps -e -o pid,comm"
30407         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30408         DISTVER=`uname -r`
30409         TAPEDRIVE="/dev/rmt/0hnb"
30410         PTHREAD_LIB="-lpthread"
30411         cat >>confdefs.h <<\_ACEOF
30412 #define _INCLUDE_LONGLONG 1
30413 _ACEOF
30414
30415   ;;
30416 irix)
30417         DISTVER=`uname -r`
30418         TAPEDRIVE="/dev/rmt/0cbn"
30419         PSCMD="ps -e -o pid,comm"
30420         PFILES="${PFILES} \
30421             platforms/irix/Makefile \
30422             platforms/irix/bacula-fd \
30423             platforms/irix/bacula-sd \
30424             platforms/irix/bacula-dir"
30425   ;;
30426 netbsd)
30427         DISTVER=`uname -a |awk '{print $3}'`
30428         lld="qd"
30429         llu="qu"
30430         TAPEDRIVE="/dev/nrst0"
30431         PSCMD="ps -ax -o pid,command"
30432         PTHREAD_LIB="-pthread"
30433         CFLAGS="${CFLAGS} -pthread"
30434   ;;
30435 openbsd)
30436         DISTVER=`uname -a |awk '{print $3}'`
30437         lld="qd"
30438         llu="qu"
30439         TAPEDRIVE="/dev/nrst0"
30440         PSCMD="ps -ax -o pid,command"
30441         PTHREAD_LIB="-pthread"
30442         CFLAGS="${CFLAGS} -pthread"
30443         PFILES="${PFILES} \
30444             platforms/openbsd/Makefile \
30445             platforms/openbsd/bacula-fd \
30446             platforms/openbsd/bacula-sd \
30447             platforms/openbsd/bacula-dir"
30448   ;;
30449 redhat)
30450 #       Make sure hostname is resolved
30451         ping -c 1 $hostname 2>&1 1>/dev/null
30452         if test ! $? = 0; then
30453            hostname="localhost"
30454         fi
30455         if test -f /etc/whitebox-release ; then
30456            f=/etc/whitebox-release
30457         else
30458            f=/etc/redhat-release
30459         fi
30460         if test `cat $f | grep release |\
30461                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30462            DISTVER="Enterprise "`cat $f | grep release |\
30463                     cut -f 6 -d ' '`
30464         else
30465             DISTVER=`cat /etc/redhat-release | grep release |\
30466                      cut -f 5 -d ' '`
30467         fi
30468         TAPEDRIVE="/dev/nst0"
30469         PSCMD="ps -e -o pid,command"
30470         PFILES="${PFILES} \
30471             platforms/redhat/Makefile \
30472             platforms/redhat/bacula-fd \
30473             platforms/redhat/bacula-sd \
30474             platforms/redhat/bacula-dir \
30475             platforms/redhat/bacula.spec \
30476             "
30477   ;;
30478 mandrake)
30479 #       Make sure hostname is resolved
30480         ping -c 1 $hostname 2>&1 1>/dev/null
30481         if test ! $? = 0; then
30482            hostname="localhost"
30483         fi
30484         DISTVER=`cat /etc/mandrake-release | grep release |\
30485            cut -f 5 -d ' '`
30486         TAPEDRIVE="/dev/nst0"
30487         PSCMD="ps -e -o pid,command"
30488         PFILES="${PFILES} \
30489             platforms/mandrake/Makefile \
30490             platforms/mandrake/bacula-fd \
30491             platforms/mandrake/bacula-sd \
30492             platforms/mandrake/bacula-dir \
30493             platforms/mandrake/bacula.spec \
30494             "
30495   ;;
30496 gentoo)
30497 #       Make sure hostname is resolved
30498         ping -c 1 $hostname 2>&1 1>/dev/null
30499         if test ! $? = 0; then
30500            hostname="localhost"
30501         fi
30502         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30503         TAPEDRIVE="/dev/nst0"
30504         PSCMD="ps -e -o pid,command"
30505         PFILES="${PFILES} \
30506             platforms/gentoo/Makefile \
30507          platforms/gentoo/bacula-init \
30508             platforms/gentoo/bacula-fd \
30509             platforms/gentoo/bacula-sd \
30510             platforms/gentoo/bacula-dir"
30511   ;;
30512 slackware)
30513 #       Make sure hostname is resolved
30514         ping -c 1 $hostname 2>&1 1>/dev/null
30515         if test ! $? = 0; then
30516            hostname="localhost"
30517         fi
30518         DISTVER=`cat /etc/slackware-version`
30519         TAPEDRIVE="/dev/nst0"
30520         PSCMD="ps -e -o pid,command"
30521         PFILES="${PFILES} \
30522             platforms/slackware/Makefile \
30523             platforms/slackware/rc.bacula-fd \
30524             platforms/slackware/rc.bacula-sd \
30525             platforms/slackware/rc.bacula-dir\
30526             platforms/slackware/functions.bacula"
30527   ;;
30528 solaris)
30529         DISTVER=`uname -r`
30530         TAPEDRIVE="/dev/rmt/0cbn"
30531         PSCMD="ps -e -o pid,comm"
30532         PFILES="${PFILES} \
30533             platforms/solaris/Makefile \
30534             platforms/solaris/bacula-fd \
30535             platforms/solaris/bacula-sd \
30536             platforms/solaris/bacula-dir"
30537         if test x$DISTVER = x5.6 ; then
30538             cat >>confdefs.h <<\_ACEOF
30539 #define HAVE_OLD_SOCKOPT 1
30540 _ACEOF
30541
30542         fi
30543         LIBS="$LIBS -lresolv"
30544   ;;
30545 suse)
30546 #       Make sure hostname is resolved
30547         ping -c 1 $hostname 2>&1 1>/dev/null
30548         if test ! $? = 0; then
30549            hostname="localhost"
30550         fi
30551         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30552             cut -f 3 -d ' '`
30553         TAPEDRIVE="/dev/nst0"
30554         PSCMD="ps -e -o pid,command"
30555         PFILES="${PFILES} \
30556             platforms/suse/Makefile \
30557             platforms/suse/bacula-fd \
30558             platforms/suse/bacula-sd \
30559             platforms/suse/bacula-dir \
30560             platforms/suse/bacula \
30561             platforms/suse/bacula.spec"
30562   ;;
30563 suse5)
30564 #       Make sure hostname is resolved
30565         ping -c 1 $hostname 2>&1 1>/dev/null
30566         if test ! $? = 0; then
30567            hostname="localhost"
30568         fi
30569         DISTNAME=suse
30570         DISTVER=5.x
30571         TAPEDRIVE="/dev/nst0"
30572         PSCMD="ps -e -o pid,command"
30573         PFILES="${PFILES} \
30574             platforms/suse/Makefile \
30575             platforms/suse/bacula-fd \
30576             platforms/suse/bacula-sd \
30577             platforms/suse/bacula-dir"
30578   ;;
30579 unknown)
30580         DISTVER=unknown
30581         TAPEDRIVE="/dev/nst0"
30582   ;;
30583 *)
30584   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30585   ;;
30586 esac
30587
30588
30589
30590 LIBS="$PTHREAD_LIB $LIBS"
30591
30592 cat >>confdefs.h <<_ACEOF
30593 #define lld "$lld"
30594 _ACEOF
30595
30596 cat >>confdefs.h <<_ACEOF
30597 #define llu "$llu"
30598 _ACEOF
30599
30600
30601
30602
30603
30604
30605
30606
30607 MCOMMON=./autoconf/Make.common
30608
30609
30610 if test "x${subsysdir}" = "x${sbindir}" ; then
30611    echo " "
30612    echo " "
30613    echo "You have set both --sbindir and --with-subsys-dir"
30614    echo "  equal to: ${subsysdir} "
30615    echo "This is not permitted. Please reconfigure."
30616    echo " "
30617    echo "Aborting configuration ..."
30618    echo " "
30619    echo " "
30620    exit 1
30621 fi
30622
30623 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
30624
30625 ac_config_commands="$ac_config_commands default"
30626
30627 cat >confcache <<\_ACEOF
30628 # This file is a shell script that caches the results of configure
30629 # tests run on this system so they can be shared between configure
30630 # scripts and configure runs, see configure's option --config-cache.
30631 # It is not useful on other systems.  If it contains results you don't
30632 # want to keep, you may remove or edit it.
30633 #
30634 # config.status only pays attention to the cache file if you give it
30635 # the --recheck option to rerun configure.
30636 #
30637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30639 # following values.
30640
30641 _ACEOF
30642
30643 # The following way of writing the cache mishandles newlines in values,
30644 # but we know of no workaround that is simple, portable, and efficient.
30645 # So, we kill variables containing newlines.
30646 # Ultrix sh set writes to stderr and can't be redirected directly,
30647 # and sets the high bit in the cache file unless we assign to the vars.
30648 (
30649   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30650     eval ac_val=\$$ac_var
30651     case $ac_val in #(
30652     *${as_nl}*)
30653       case $ac_var in #(
30654       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30656       esac
30657       case $ac_var in #(
30658       _ | IFS | as_nl) ;; #(
30659       *) $as_unset $ac_var ;;
30660       esac ;;
30661     esac
30662   done
30663
30664   (set) 2>&1 |
30665     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30666     *${as_nl}ac_space=\ *)
30667       # `set' does not quote correctly, so add quotes (double-quote
30668       # substitution turns \\\\ into \\, and sed turns \\ into \).
30669       sed -n \
30670         "s/'/'\\\\''/g;
30671           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30672       ;; #(
30673     *)
30674       # `set' quotes correctly as required by POSIX, so do not add quotes.
30675       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30676       ;;
30677     esac |
30678     sort
30679 ) |
30680   sed '
30681      /^ac_cv_env_/b end
30682      t clear
30683      :clear
30684      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30685      t end
30686      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30687      :end' >>confcache
30688 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30689   if test -w "$cache_file"; then
30690     test "x$cache_file" != "x/dev/null" &&
30691       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30692 echo "$as_me: updating cache $cache_file" >&6;}
30693     cat confcache >$cache_file
30694   else
30695     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30696 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30697   fi
30698 fi
30699 rm -f confcache
30700
30701 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30702 # Let make expand exec_prefix.
30703 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30704
30705 DEFS=-DHAVE_CONFIG_H
30706
30707 ac_libobjs=
30708 ac_ltlibobjs=
30709 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30710   # 1. Remove the extension, and $U if already installed.
30711   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30712   ac_i=`echo "$ac_i" | sed "$ac_script"`
30713   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30714   #    will be set to the directory where LIBOBJS objects are built.
30715   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30716   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30717 done
30718 LIBOBJS=$ac_libobjs
30719
30720 LTLIBOBJS=$ac_ltlibobjs
30721
30722
30723
30724 : ${CONFIG_STATUS=./config.status}
30725 ac_clean_files_save=$ac_clean_files
30726 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30727 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30728 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30729 cat >$CONFIG_STATUS <<_ACEOF
30730 #! $SHELL
30731 # Generated by $as_me.
30732 # Run this file to recreate the current configuration.
30733 # Compiler output produced by configure, useful for debugging
30734 # configure, is in config.log if it exists.
30735
30736 debug=false
30737 ac_cs_recheck=false
30738 ac_cs_silent=false
30739 SHELL=\${CONFIG_SHELL-$SHELL}
30740 _ACEOF
30741
30742 cat >>$CONFIG_STATUS <<\_ACEOF
30743 ## --------------------- ##
30744 ## M4sh Initialization.  ##
30745 ## --------------------- ##
30746
30747 # Be more Bourne compatible
30748 DUALCASE=1; export DUALCASE # for MKS sh
30749 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30750   emulate sh
30751   NULLCMD=:
30752   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30753   # is contrary to our usage.  Disable this feature.
30754   alias -g '${1+"$@"}'='"$@"'
30755   setopt NO_GLOB_SUBST
30756 else
30757   case `(set -o) 2>/dev/null` in
30758   *posix*) set -o posix ;;
30759 esac
30760
30761 fi
30762
30763
30764
30765
30766 # PATH needs CR
30767 # Avoid depending upon Character Ranges.
30768 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30769 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30770 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30771 as_cr_digits='0123456789'
30772 as_cr_alnum=$as_cr_Letters$as_cr_digits
30773
30774 # The user is always right.
30775 if test "${PATH_SEPARATOR+set}" != set; then
30776   echo "#! /bin/sh" >conf$$.sh
30777   echo  "exit 0"   >>conf$$.sh
30778   chmod +x conf$$.sh
30779   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30780     PATH_SEPARATOR=';'
30781   else
30782     PATH_SEPARATOR=:
30783   fi
30784   rm -f conf$$.sh
30785 fi
30786
30787 # Support unset when possible.
30788 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30789   as_unset=unset
30790 else
30791   as_unset=false
30792 fi
30793
30794
30795 # IFS
30796 # We need space, tab and new line, in precisely that order.  Quoting is
30797 # there to prevent editors from complaining about space-tab.
30798 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30799 # splitting by setting IFS to empty value.)
30800 as_nl='
30801 '
30802 IFS=" ""        $as_nl"
30803
30804 # Find who we are.  Look in the path if we contain no directory separator.
30805 case $0 in
30806   *[\\/]* ) as_myself=$0 ;;
30807   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30808 for as_dir in $PATH
30809 do
30810   IFS=$as_save_IFS
30811   test -z "$as_dir" && as_dir=.
30812   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30813 done
30814 IFS=$as_save_IFS
30815
30816      ;;
30817 esac
30818 # We did not find ourselves, most probably we were run as `sh COMMAND'
30819 # in which case we are not to be found in the path.
30820 if test "x$as_myself" = x; then
30821   as_myself=$0
30822 fi
30823 if test ! -f "$as_myself"; then
30824   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30825   { (exit 1); exit 1; }
30826 fi
30827
30828 # Work around bugs in pre-3.0 UWIN ksh.
30829 for as_var in ENV MAIL MAILPATH
30830 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30831 done
30832 PS1='$ '
30833 PS2='> '
30834 PS4='+ '
30835
30836 # NLS nuisances.
30837 for as_var in \
30838   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30839   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30840   LC_TELEPHONE LC_TIME
30841 do
30842   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30843     eval $as_var=C; export $as_var
30844   else
30845     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30846   fi
30847 done
30848
30849 # Required to use basename.
30850 if expr a : '\(a\)' >/dev/null 2>&1 &&
30851    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30852   as_expr=expr
30853 else
30854   as_expr=false
30855 fi
30856
30857 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30858   as_basename=basename
30859 else
30860   as_basename=false
30861 fi
30862
30863
30864 # Name of the executable.
30865 as_me=`$as_basename -- "$0" ||
30866 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30867          X"$0" : 'X\(//\)$' \| \
30868          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30869 echo X/"$0" |
30870     sed '/^.*\/\([^/][^/]*\)\/*$/{
30871             s//\1/
30872             q
30873           }
30874           /^X\/\(\/\/\)$/{
30875             s//\1/
30876             q
30877           }
30878           /^X\/\(\/\).*/{
30879             s//\1/
30880             q
30881           }
30882           s/.*/./; q'`
30883
30884 # CDPATH.
30885 $as_unset CDPATH
30886
30887
30888
30889   as_lineno_1=$LINENO
30890   as_lineno_2=$LINENO
30891   test "x$as_lineno_1" != "x$as_lineno_2" &&
30892   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30893
30894   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30895   # uniformly replaced by the line number.  The first 'sed' inserts a
30896   # line-number line after each line using $LINENO; the second 'sed'
30897   # does the real work.  The second script uses 'N' to pair each
30898   # line-number line with the line containing $LINENO, and appends
30899   # trailing '-' during substitution so that $LINENO is not a special
30900   # case at line end.
30901   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30902   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30903   # E. McMahon (1931-1989) for sed's syntax.  :-)
30904   sed -n '
30905     p
30906     /[$]LINENO/=
30907   ' <$as_myself |
30908     sed '
30909       s/[$]LINENO.*/&-/
30910       t lineno
30911       b
30912       :lineno
30913       N
30914       :loop
30915       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30916       t loop
30917       s/-\n.*//
30918     ' >$as_me.lineno &&
30919   chmod +x "$as_me.lineno" ||
30920     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30921    { (exit 1); exit 1; }; }
30922
30923   # Don't try to exec as it changes $[0], causing all sort of problems
30924   # (the dirname of $[0] is not the place where we might find the
30925   # original and so on.  Autoconf is especially sensitive to this).
30926   . "./$as_me.lineno"
30927   # Exit status is that of the last command.
30928   exit
30929 }
30930
30931
30932 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30933   as_dirname=dirname
30934 else
30935   as_dirname=false
30936 fi
30937
30938 ECHO_C= ECHO_N= ECHO_T=
30939 case `echo -n x` in
30940 -n*)
30941   case `echo 'x\c'` in
30942   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30943   *)   ECHO_C='\c';;
30944   esac;;
30945 *)
30946   ECHO_N='-n';;
30947 esac
30948
30949 if expr a : '\(a\)' >/dev/null 2>&1 &&
30950    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30951   as_expr=expr
30952 else
30953   as_expr=false
30954 fi
30955
30956 rm -f conf$$ conf$$.exe conf$$.file
30957 if test -d conf$$.dir; then
30958   rm -f conf$$.dir/conf$$.file
30959 else
30960   rm -f conf$$.dir
30961   mkdir conf$$.dir
30962 fi
30963 echo >conf$$.file
30964 if ln -s conf$$.file conf$$ 2>/dev/null; then
30965   as_ln_s='ln -s'
30966   # ... but there are two gotchas:
30967   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30968   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30969   # In both cases, we have to default to `cp -p'.
30970   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30971     as_ln_s='cp -p'
30972 elif ln conf$$.file conf$$ 2>/dev/null; then
30973   as_ln_s=ln
30974 else
30975   as_ln_s='cp -p'
30976 fi
30977 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30978 rmdir conf$$.dir 2>/dev/null
30979
30980 if mkdir -p . 2>/dev/null; then
30981   as_mkdir_p=:
30982 else
30983   test -d ./-p && rmdir ./-p
30984   as_mkdir_p=false
30985 fi
30986
30987 if test -x / >/dev/null 2>&1; then
30988   as_test_x='test -x'
30989 else
30990   if ls -dL / >/dev/null 2>&1; then
30991     as_ls_L_option=L
30992   else
30993     as_ls_L_option=
30994   fi
30995   as_test_x='
30996     eval sh -c '\''
30997       if test -d "$1"; then
30998         test -d "$1/.";
30999       else
31000         case $1 in
31001         -*)set "./$1";;
31002         esac;
31003         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31004         ???[sx]*):;;*)false;;esac;fi
31005     '\'' sh
31006   '
31007 fi
31008 as_executable_p=$as_test_x
31009
31010 # Sed expression to map a string onto a valid CPP name.
31011 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31012
31013 # Sed expression to map a string onto a valid variable name.
31014 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31015
31016
31017 exec 6>&1
31018
31019 # Save the log message, to keep $[0] and so on meaningful, and to
31020 # report actual input values of CONFIG_FILES etc. instead of their
31021 # values after options handling.
31022 ac_log="
31023 This file was extended by $as_me, which was
31024 generated by GNU Autoconf 2.61.  Invocation command line was
31025
31026   CONFIG_FILES    = $CONFIG_FILES
31027   CONFIG_HEADERS  = $CONFIG_HEADERS
31028   CONFIG_LINKS    = $CONFIG_LINKS
31029   CONFIG_COMMANDS = $CONFIG_COMMANDS
31030   $ $0 $@
31031
31032 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31033 "
31034
31035 _ACEOF
31036
31037 cat >>$CONFIG_STATUS <<_ACEOF
31038 # Files that config.status was made for.
31039 config_files="$ac_config_files"
31040 config_headers="$ac_config_headers"
31041 config_commands="$ac_config_commands"
31042
31043 _ACEOF
31044
31045 cat >>$CONFIG_STATUS <<\_ACEOF
31046 ac_cs_usage="\
31047 \`$as_me' instantiates files from templates according to the
31048 current configuration.
31049
31050 Usage: $0 [OPTIONS] [FILE]...
31051
31052   -h, --help       print this help, then exit
31053   -V, --version    print version number and configuration settings, then exit
31054   -q, --quiet      do not print progress messages
31055   -d, --debug      don't remove temporary files
31056       --recheck    update $as_me by reconfiguring in the same conditions
31057   --file=FILE[:TEMPLATE]
31058                    instantiate the configuration file FILE
31059   --header=FILE[:TEMPLATE]
31060                    instantiate the configuration header FILE
31061
31062 Configuration files:
31063 $config_files
31064
31065 Configuration headers:
31066 $config_headers
31067
31068 Configuration commands:
31069 $config_commands
31070
31071 Report bugs to <bug-autoconf@gnu.org>."
31072
31073 _ACEOF
31074 cat >>$CONFIG_STATUS <<_ACEOF
31075 ac_cs_version="\\
31076 config.status
31077 configured by $0, generated by GNU Autoconf 2.61,
31078   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31079
31080 Copyright (C) 2006 Free Software Foundation, Inc.
31081 This config.status script is free software; the Free Software Foundation
31082 gives unlimited permission to copy, distribute and modify it."
31083
31084 ac_pwd='$ac_pwd'
31085 srcdir='$srcdir'
31086 INSTALL='$INSTALL'
31087 _ACEOF
31088
31089 cat >>$CONFIG_STATUS <<\_ACEOF
31090 # If no file are specified by the user, then we need to provide default
31091 # value.  By we need to know if files were specified by the user.
31092 ac_need_defaults=:
31093 while test $# != 0
31094 do
31095   case $1 in
31096   --*=*)
31097     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31098     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31099     ac_shift=:
31100     ;;
31101   *)
31102     ac_option=$1
31103     ac_optarg=$2
31104     ac_shift=shift
31105     ;;
31106   esac
31107
31108   case $ac_option in
31109   # Handling of the options.
31110   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31111     ac_cs_recheck=: ;;
31112   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31113     echo "$ac_cs_version"; exit ;;
31114   --debug | --debu | --deb | --de | --d | -d )
31115     debug=: ;;
31116   --file | --fil | --fi | --f )
31117     $ac_shift
31118     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31119     ac_need_defaults=false;;
31120   --header | --heade | --head | --hea )
31121     $ac_shift
31122     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31123     ac_need_defaults=false;;
31124   --he | --h)
31125     # Conflict between --help and --header
31126     { echo "$as_me: error: ambiguous option: $1
31127 Try \`$0 --help' for more information." >&2
31128    { (exit 1); exit 1; }; };;
31129   --help | --hel | -h )
31130     echo "$ac_cs_usage"; exit ;;
31131   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31132   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31133     ac_cs_silent=: ;;
31134
31135   # This is an error.
31136   -*) { echo "$as_me: error: unrecognized option: $1
31137 Try \`$0 --help' for more information." >&2
31138    { (exit 1); exit 1; }; } ;;
31139
31140   *) ac_config_targets="$ac_config_targets $1"
31141      ac_need_defaults=false ;;
31142
31143   esac
31144   shift
31145 done
31146
31147 ac_configure_extra_args=
31148
31149 if $ac_cs_silent; then
31150   exec 6>/dev/null
31151   ac_configure_extra_args="$ac_configure_extra_args --silent"
31152 fi
31153
31154 _ACEOF
31155 cat >>$CONFIG_STATUS <<_ACEOF
31156 if \$ac_cs_recheck; then
31157   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31158   CONFIG_SHELL=$SHELL
31159   export CONFIG_SHELL
31160   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31161 fi
31162
31163 _ACEOF
31164 cat >>$CONFIG_STATUS <<\_ACEOF
31165 exec 5>>config.log
31166 {
31167   echo
31168   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31169 ## Running $as_me. ##
31170 _ASBOX
31171   echo "$ac_log"
31172 } >&5
31173
31174 _ACEOF
31175 cat >>$CONFIG_STATUS <<_ACEOF
31176 #
31177 # INIT-COMMANDS
31178 #
31179 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31180     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31181     # from automake.
31182     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31183     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31184     LINGUAS="${LINGUAS-%UNSET%}"
31185
31186
31187 _ACEOF
31188
31189 cat >>$CONFIG_STATUS <<\_ACEOF
31190
31191 # Handling of arguments.
31192 for ac_config_target in $ac_config_targets
31193 do
31194   case $ac_config_target in
31195     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31196     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31197     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31198     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31199     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31200     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31201     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31202     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31203     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31204     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31205     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31206     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31207     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31208     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31209     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31210     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31211     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31212     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31213     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31214     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31215     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31216     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31217     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31218     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31219     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31220     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31221     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31222     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31223     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31224     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31225     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31226     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31227     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31228     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31229     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31230     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31231     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31232     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31233     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31234     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31235     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31236     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31237     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31238     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31239     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31240     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31241     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31242     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31243     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31244     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31245     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31246     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31247     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31248     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31249     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31250     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31251     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31252     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31253     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31254     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31255     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31256     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31257     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31258     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31259     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31260     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31261     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31262     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31263     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31264     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31265     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31266     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31267     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31268     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31269     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31270     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31271     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31272     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31273     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31274     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31275     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31276     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31277     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31278     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31279     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31280     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31281     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31282     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31283     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31284     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31285     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31286     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31287     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31288     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31289     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31290     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31291     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31292     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31293     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31294     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31295     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31296     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31297     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31298     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31299     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31300     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31301     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31302     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31303     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31304     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31305     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31306     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31307
31308   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31309 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31310    { (exit 1); exit 1; }; };;
31311   esac
31312 done
31313
31314
31315 # If the user did not use the arguments to specify the items to instantiate,
31316 # then the envvar interface is used.  Set only those that are not.
31317 # We use the long form for the default assignment because of an extremely
31318 # bizarre bug on SunOS 4.1.3.
31319 if $ac_need_defaults; then
31320   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31321   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31322   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31323 fi
31324
31325 # Have a temporary directory for convenience.  Make it in the build tree
31326 # simply because there is no reason against having it here, and in addition,
31327 # creating and moving files from /tmp can sometimes cause problems.
31328 # Hook for its removal unless debugging.
31329 # Note that there is a small window in which the directory will not be cleaned:
31330 # after its creation but before its name has been assigned to `$tmp'.
31331 $debug ||
31332 {
31333   tmp=
31334   trap 'exit_status=$?
31335   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31336 ' 0
31337   trap '{ (exit 1); exit 1; }' 1 2 13 15
31338 }
31339 # Create a (secure) tmp directory for tmp files.
31340
31341 {
31342   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31343   test -n "$tmp" && test -d "$tmp"
31344 }  ||
31345 {
31346   tmp=./conf$$-$RANDOM
31347   (umask 077 && mkdir "$tmp")
31348 } ||
31349 {
31350    echo "$me: cannot create a temporary directory in ." >&2
31351    { (exit 1); exit 1; }
31352 }
31353
31354 #
31355 # Set up the sed scripts for CONFIG_FILES section.
31356 #
31357
31358 # No need to generate the scripts if there are no CONFIG_FILES.
31359 # This happens for instance when ./config.status config.h
31360 if test -n "$CONFIG_FILES"; then
31361
31362 _ACEOF
31363
31364 # Create sed commands to just substitute file output variables.
31365
31366 # Remaining file output variables are in a fragment that also has non-file
31367 # output varibles.
31368
31369
31370
31371 ac_delim='%!_!# '
31372 for ac_last_try in false false false false false :; do
31373   cat >conf$$subs.sed <<_ACEOF
31374 SHELL!$SHELL$ac_delim
31375 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31376 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31377 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31378 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31379 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31380 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31381 exec_prefix!$exec_prefix$ac_delim
31382 prefix!$prefix$ac_delim
31383 program_transform_name!$program_transform_name$ac_delim
31384 bindir!$bindir$ac_delim
31385 sbindir!$sbindir$ac_delim
31386 libexecdir!$libexecdir$ac_delim
31387 datarootdir!$datarootdir$ac_delim
31388 datadir!$datadir$ac_delim
31389 sysconfdir!$sysconfdir$ac_delim
31390 sharedstatedir!$sharedstatedir$ac_delim
31391 localstatedir!$localstatedir$ac_delim
31392 includedir!$includedir$ac_delim
31393 oldincludedir!$oldincludedir$ac_delim
31394 docdir!$docdir$ac_delim
31395 infodir!$infodir$ac_delim
31396 htmldir!$htmldir$ac_delim
31397 dvidir!$dvidir$ac_delim
31398 pdfdir!$pdfdir$ac_delim
31399 psdir!$psdir$ac_delim
31400 libdir!$libdir$ac_delim
31401 localedir!$localedir$ac_delim
31402 mandir!$mandir$ac_delim
31403 DEFS!$DEFS$ac_delim
31404 ECHO_C!$ECHO_C$ac_delim
31405 ECHO_N!$ECHO_N$ac_delim
31406 ECHO_T!$ECHO_T$ac_delim
31407 LIBS!$LIBS$ac_delim
31408 build_alias!$build_alias$ac_delim
31409 host_alias!$host_alias$ac_delim
31410 target_alias!$target_alias$ac_delim
31411 BUILD_DIR!$BUILD_DIR$ac_delim
31412 TOP_DIR!$TOP_DIR$ac_delim
31413 TRUEPRG!$TRUEPRG$ac_delim
31414 FALSEPRG!$FALSEPRG$ac_delim
31415 VERSION!$VERSION$ac_delim
31416 DATE!$DATE$ac_delim
31417 LSMDATE!$LSMDATE$ac_delim
31418 CC!$CC$ac_delim
31419 CFLAGS!$CFLAGS$ac_delim
31420 LDFLAGS!$LDFLAGS$ac_delim
31421 CPPFLAGS!$CPPFLAGS$ac_delim
31422 ac_ct_CC!$ac_ct_CC$ac_delim
31423 EXEEXT!$EXEEXT$ac_delim
31424 OBJEXT!$OBJEXT$ac_delim
31425 CXX!$CXX$ac_delim
31426 CXXFLAGS!$CXXFLAGS$ac_delim
31427 ac_ct_CXX!$ac_ct_CXX$ac_delim
31428 CPP!$CPP$ac_delim
31429 GREP!$GREP$ac_delim
31430 EGREP!$EGREP$ac_delim
31431 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31432 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31433 INSTALL_DATA!$INSTALL_DATA$ac_delim
31434 RANLIB!$RANLIB$ac_delim
31435 MV!$MV$ac_delim
31436 RM!$RM$ac_delim
31437 CP!$CP$ac_delim
31438 SED!$SED$ac_delim
31439 ECHO!$ECHO$ac_delim
31440 CMP!$CMP$ac_delim
31441 TBL!$TBL$ac_delim
31442 AR!$AR$ac_delim
31443 OPENSSL!$OPENSSL$ac_delim
31444 MTX!$MTX$ac_delim
31445 DD!$DD$ac_delim
31446 MKISOFS!$MKISOFS$ac_delim
31447 PYTHON!$PYTHON$ac_delim
31448 GROWISOFS!$GROWISOFS$ac_delim
31449 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31450 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31451 PKGCONFIG!$PKGCONFIG$ac_delim
31452 QMAKE!$QMAKE$ac_delim
31453 QMAKEQT4!$QMAKEQT4$ac_delim
31454 WXCONFIG!$WXCONFIG$ac_delim
31455 WXFLAGS!$WXFLAGS$ac_delim
31456 CDRECORD!$CDRECORD$ac_delim
31457 PIDOF!$PIDOF$ac_delim
31458 AWK!$AWK$ac_delim
31459 ARFLAGS!$ARFLAGS$ac_delim
31460 MAKE_SHELL!$MAKE_SHELL$ac_delim
31461 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31462 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31463 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31464 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31465 build!$build$ac_delim
31466 build_cpu!$build_cpu$ac_delim
31467 build_vendor!$build_vendor$ac_delim
31468 _ACEOF
31469
31470   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31471     break
31472   elif $ac_last_try; then
31473     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31474 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31475    { (exit 1); exit 1; }; }
31476   else
31477     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31478   fi
31479 done
31480
31481 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31482 if test -n "$ac_eof"; then
31483   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31484   ac_eof=`expr $ac_eof + 1`
31485 fi
31486
31487 cat >>$CONFIG_STATUS <<_ACEOF
31488 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31490 /^[      ]*@MCOMMON@[    ]*$/{
31491 r $MCOMMON
31492 d
31493 }
31494 _ACEOF
31495 sed '
31496 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31497 s/^/s,@/; s/!/@,|#_!!_#|/
31498 :n
31499 t n
31500 s/'"$ac_delim"'$/,g/; t
31501 s/$/\\/; p
31502 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31503 ' >>$CONFIG_STATUS <conf$$subs.sed
31504 rm -f conf$$subs.sed
31505 cat >>$CONFIG_STATUS <<_ACEOF
31506 CEOF$ac_eof
31507 _ACEOF
31508
31509
31510 ac_delim='%!_!# '
31511 for ac_last_try in false false false false false :; do
31512   cat >conf$$subs.sed <<_ACEOF
31513 build_os!$build_os$ac_delim
31514 host!$host$ac_delim
31515 host_cpu!$host_cpu$ac_delim
31516 host_vendor!$host_vendor$ac_delim
31517 host_os!$host_os$ac_delim
31518 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31519 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31520 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31521 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31522 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31523 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31524 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31525 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31526 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31527 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31528 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31529 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31530 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31531 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31532 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31533 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31534 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31535 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31536 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31537 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31538 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31539 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31540 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31541 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31542 SET_MAKE!$SET_MAKE$ac_delim
31543 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31544 USE_NLS!$USE_NLS$ac_delim
31545 MSGFMT!$MSGFMT$ac_delim
31546 GMSGFMT!$GMSGFMT$ac_delim
31547 XGETTEXT!$XGETTEXT$ac_delim
31548 MSGMERGE!$MSGMERGE$ac_delim
31549 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31550 LIBICONV!$LIBICONV$ac_delim
31551 LTLIBICONV!$LTLIBICONV$ac_delim
31552 INTLLIBS!$INTLLIBS$ac_delim
31553 LIBINTL!$LIBINTL$ac_delim
31554 LTLIBINTL!$LTLIBINTL$ac_delim
31555 POSUB!$POSUB$ac_delim
31556 GLIBC2!$GLIBC2$ac_delim
31557 ALLOCA!$ALLOCA$ac_delim
31558 GLIBC21!$GLIBC21$ac_delim
31559 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31560 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31561 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31562 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31563 INTLBISON!$INTLBISON$ac_delim
31564 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31565 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31566 CATOBJEXT!$CATOBJEXT$ac_delim
31567 DATADIRNAME!$DATADIRNAME$ac_delim
31568 INSTOBJEXT!$INSTOBJEXT$ac_delim
31569 GENCAT!$GENCAT$ac_delim
31570 INTLOBJS!$INTLOBJS$ac_delim
31571 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31572 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31573 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31574 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31575 GNOME_LIBS!$GNOME_LIBS$ac_delim
31576 GNOME_DIR!$GNOME_DIR$ac_delim
31577 BAT_DIR!$BAT_DIR$ac_delim
31578 QWT_INC!$QWT_INC$ac_delim
31579 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31580 QWT_LIB!$QWT_LIB$ac_delim
31581 QWT!$QWT$ac_delim
31582 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31583 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31584 WX_DIR!$WX_DIR$ac_delim
31585 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31586 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31587 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31588 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31589 STATIC_FD!$STATIC_FD$ac_delim
31590 STATIC_SD!$STATIC_SD$ac_delim
31591 STATIC_DIR!$STATIC_DIR$ac_delim
31592 STATIC_CONS!$STATIC_CONS$ac_delim
31593 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31594 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31595 ALL_DIRS!$ALL_DIRS$ac_delim
31596 DIRD_DIR!$DIRD_DIR$ac_delim
31597 DIR_TOOLS!$DIR_TOOLS$ac_delim
31598 STORED_DIR!$STORED_DIR$ac_delim
31599 CONS_INC!$CONS_INC$ac_delim
31600 CONS_OBJ!$CONS_OBJ$ac_delim
31601 CONS_SRC!$CONS_SRC$ac_delim
31602 CONS_LIBS!$CONS_LIBS$ac_delim
31603 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31604 READLINE_SRC!$READLINE_SRC$ac_delim
31605 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31606 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31607 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31608 OPENSSL_INC!$OPENSSL_INC$ac_delim
31609 working_dir!$working_dir$ac_delim
31610 _ACEOF
31611
31612   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31613     break
31614   elif $ac_last_try; then
31615     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31616 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31617    { (exit 1); exit 1; }; }
31618   else
31619     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31620   fi
31621 done
31622
31623 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31624 if test -n "$ac_eof"; then
31625   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31626   ac_eof=`expr $ac_eof + 1`
31627 fi
31628
31629 cat >>$CONFIG_STATUS <<_ACEOF
31630 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31631 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31632 _ACEOF
31633 sed '
31634 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31635 s/^/s,@/; s/!/@,|#_!!_#|/
31636 :n
31637 t n
31638 s/'"$ac_delim"'$/,g/; t
31639 s/$/\\/; p
31640 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31641 ' >>$CONFIG_STATUS <conf$$subs.sed
31642 rm -f conf$$subs.sed
31643 cat >>$CONFIG_STATUS <<_ACEOF
31644 CEOF$ac_eof
31645 _ACEOF
31646
31647
31648 ac_delim='%!_!# '
31649 for ac_last_try in false false false false false :; do
31650   cat >conf$$subs.sed <<_ACEOF
31651 archivedir!$archivedir$ac_delim
31652 scriptdir!$scriptdir$ac_delim
31653 plugindir!$plugindir$ac_delim
31654 dump_email!$dump_email$ac_delim
31655 job_email!$job_email$ac_delim
31656 smtp_host!$smtp_host$ac_delim
31657 piddir!$piddir$ac_delim
31658 subsysdir!$subsysdir$ac_delim
31659 baseport!$baseport$ac_delim
31660 dir_port!$dir_port$ac_delim
31661 fd_port!$fd_port$ac_delim
31662 sd_port!$sd_port$ac_delim
31663 dir_password!$dir_password$ac_delim
31664 fd_password!$fd_password$ac_delim
31665 sd_password!$sd_password$ac_delim
31666 mon_dir_password!$mon_dir_password$ac_delim
31667 mon_fd_password!$mon_fd_password$ac_delim
31668 mon_sd_password!$mon_sd_password$ac_delim
31669 db_name!$db_name$ac_delim
31670 db_user!$db_user$ac_delim
31671 db_password!$db_password$ac_delim
31672 db_port!$db_port$ac_delim
31673 dir_user!$dir_user$ac_delim
31674 dir_group!$dir_group$ac_delim
31675 sd_user!$sd_user$ac_delim
31676 sd_group!$sd_group$ac_delim
31677 fd_user!$fd_user$ac_delim
31678 fd_group!$fd_group$ac_delim
31679 SBINPERM!$SBINPERM$ac_delim
31680 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31681 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31682 SQL_BINDIR!$SQL_BINDIR$ac_delim
31683 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31684 uncomment_dbi!$uncomment_dbi$ac_delim
31685 DB_PROG!$DB_PROG$ac_delim
31686 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31687 cats!$cats$ac_delim
31688 DB_TYPE!$DB_TYPE$ac_delim
31689 GETCONF!$GETCONF$ac_delim
31690 XMKMF!$XMKMF$ac_delim
31691 X_CFLAGS!$X_CFLAGS$ac_delim
31692 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31693 X_LIBS!$X_LIBS$ac_delim
31694 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31695 LIBOBJS!$LIBOBJS$ac_delim
31696 FDLIBS!$FDLIBS$ac_delim
31697 DEBUG!$DEBUG$ac_delim
31698 DINCLUDE!$DINCLUDE$ac_delim
31699 DLIB!$DLIB$ac_delim
31700 DB_LIBS!$DB_LIBS$ac_delim
31701 WCFLAGS!$WCFLAGS$ac_delim
31702 WLDFLAGS!$WLDFLAGS$ac_delim
31703 WRAPLIBS!$WRAPLIBS$ac_delim
31704 OBJLIST!$OBJLIST$ac_delim
31705 hostname!$hostname$ac_delim
31706 TAPEDRIVE!$TAPEDRIVE$ac_delim
31707 PSCMD!$PSCMD$ac_delim
31708 WIN32!$WIN32$ac_delim
31709 MACOSX!$MACOSX$ac_delim
31710 DISTNAME!$DISTNAME$ac_delim
31711 DISTVER!$DISTVER$ac_delim
31712 LTLIBOBJS!$LTLIBOBJS$ac_delim
31713 _ACEOF
31714
31715   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 62; then
31716     break
31717   elif $ac_last_try; then
31718     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31720    { (exit 1); exit 1; }; }
31721   else
31722     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31723   fi
31724 done
31725
31726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31727 if test -n "$ac_eof"; then
31728   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31729   ac_eof=`expr $ac_eof + 1`
31730 fi
31731
31732 cat >>$CONFIG_STATUS <<_ACEOF
31733 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31735 _ACEOF
31736 sed '
31737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31738 s/^/s,@/; s/!/@,|#_!!_#|/
31739 :n
31740 t n
31741 s/'"$ac_delim"'$/,g/; t
31742 s/$/\\/; p
31743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31744 ' >>$CONFIG_STATUS <conf$$subs.sed
31745 rm -f conf$$subs.sed
31746 cat >>$CONFIG_STATUS <<_ACEOF
31747 :end
31748 s/|#_!!_#|//g
31749 CEOF$ac_eof
31750 _ACEOF
31751
31752
31753 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31754 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31755 # trailing colons and then remove the whole line if VPATH becomes empty
31756 # (actually we leave an empty line to preserve line numbers).
31757 if test "x$srcdir" = x.; then
31758   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31759 s/:*\$(srcdir):*/:/
31760 s/:*\${srcdir}:*/:/
31761 s/:*@srcdir@:*/:/
31762 s/^\([^=]*=[     ]*\):*/\1/
31763 s/:*$//
31764 s/^[^=]*=[       ]*$//
31765 }'
31766 fi
31767
31768 cat >>$CONFIG_STATUS <<\_ACEOF
31769 fi # test -n "$CONFIG_FILES"
31770
31771
31772 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31773 do
31774   case $ac_tag in
31775   :[FHLC]) ac_mode=$ac_tag; continue;;
31776   esac
31777   case $ac_mode$ac_tag in
31778   :[FHL]*:*);;
31779   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31780 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31781    { (exit 1); exit 1; }; };;
31782   :[FH]-) ac_tag=-:-;;
31783   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31784   esac
31785   ac_save_IFS=$IFS
31786   IFS=:
31787   set x $ac_tag
31788   IFS=$ac_save_IFS
31789   shift
31790   ac_file=$1
31791   shift
31792
31793   case $ac_mode in
31794   :L) ac_source=$1;;
31795   :[FH])
31796     ac_file_inputs=
31797     for ac_f
31798     do
31799       case $ac_f in
31800       -) ac_f="$tmp/stdin";;
31801       *) # Look for the file first in the build tree, then in the source tree
31802          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31803          # because $ac_f cannot contain `:'.
31804          test -f "$ac_f" ||
31805            case $ac_f in
31806            [\\/$]*) false;;
31807            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31808            esac ||
31809            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31810 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31811    { (exit 1); exit 1; }; };;
31812       esac
31813       ac_file_inputs="$ac_file_inputs $ac_f"
31814     done
31815
31816     # Let's still pretend it is `configure' which instantiates (i.e., don't
31817     # use $as_me), people would be surprised to read:
31818     #    /* config.h.  Generated by config.status.  */
31819     configure_input="Generated from "`IFS=:
31820           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31821     if test x"$ac_file" != x-; then
31822       configure_input="$ac_file.  $configure_input"
31823       { echo "$as_me:$LINENO: creating $ac_file" >&5
31824 echo "$as_me: creating $ac_file" >&6;}
31825     fi
31826
31827     case $ac_tag in
31828     *:-:* | *:-) cat >"$tmp/stdin";;
31829     esac
31830     ;;
31831   esac
31832
31833   ac_dir=`$as_dirname -- "$ac_file" ||
31834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31835          X"$ac_file" : 'X\(//\)[^/]' \| \
31836          X"$ac_file" : 'X\(//\)$' \| \
31837          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31838 echo X"$ac_file" |
31839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31840             s//\1/
31841             q
31842           }
31843           /^X\(\/\/\)[^/].*/{
31844             s//\1/
31845             q
31846           }
31847           /^X\(\/\/\)$/{
31848             s//\1/
31849             q
31850           }
31851           /^X\(\/\).*/{
31852             s//\1/
31853             q
31854           }
31855           s/.*/./; q'`
31856   { as_dir="$ac_dir"
31857   case $as_dir in #(
31858   -*) as_dir=./$as_dir;;
31859   esac
31860   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31861     as_dirs=
31862     while :; do
31863       case $as_dir in #(
31864       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31865       *) as_qdir=$as_dir;;
31866       esac
31867       as_dirs="'$as_qdir' $as_dirs"
31868       as_dir=`$as_dirname -- "$as_dir" ||
31869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31870          X"$as_dir" : 'X\(//\)[^/]' \| \
31871          X"$as_dir" : 'X\(//\)$' \| \
31872          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31873 echo X"$as_dir" |
31874     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31875             s//\1/
31876             q
31877           }
31878           /^X\(\/\/\)[^/].*/{
31879             s//\1/
31880             q
31881           }
31882           /^X\(\/\/\)$/{
31883             s//\1/
31884             q
31885           }
31886           /^X\(\/\).*/{
31887             s//\1/
31888             q
31889           }
31890           s/.*/./; q'`
31891       test -d "$as_dir" && break
31892     done
31893     test -z "$as_dirs" || eval "mkdir $as_dirs"
31894   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31895 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31896    { (exit 1); exit 1; }; }; }
31897   ac_builddir=.
31898
31899 case "$ac_dir" in
31900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31901 *)
31902   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31903   # A ".." for each directory in $ac_dir_suffix.
31904   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31905   case $ac_top_builddir_sub in
31906   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31907   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31908   esac ;;
31909 esac
31910 ac_abs_top_builddir=$ac_pwd
31911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31912 # for backward compatibility:
31913 ac_top_builddir=$ac_top_build_prefix
31914
31915 case $srcdir in
31916   .)  # We are building in place.
31917     ac_srcdir=.
31918     ac_top_srcdir=$ac_top_builddir_sub
31919     ac_abs_top_srcdir=$ac_pwd ;;
31920   [\\/]* | ?:[\\/]* )  # Absolute name.
31921     ac_srcdir=$srcdir$ac_dir_suffix;
31922     ac_top_srcdir=$srcdir
31923     ac_abs_top_srcdir=$srcdir ;;
31924   *) # Relative name.
31925     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31926     ac_top_srcdir=$ac_top_build_prefix$srcdir
31927     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31928 esac
31929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31930
31931
31932   case $ac_mode in
31933   :F)
31934   #
31935   # CONFIG_FILE
31936   #
31937
31938   case $INSTALL in
31939   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31940   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31941   esac
31942 _ACEOF
31943
31944 cat >>$CONFIG_STATUS <<\_ACEOF
31945 # If the template does not know about datarootdir, expand it.
31946 # FIXME: This hack should be removed a few years after 2.60.
31947 ac_datarootdir_hack=; ac_datarootdir_seen=
31948
31949 case `sed -n '/datarootdir/ {
31950   p
31951   q
31952 }
31953 /@datadir@/p
31954 /@docdir@/p
31955 /@infodir@/p
31956 /@localedir@/p
31957 /@mandir@/p
31958 ' $ac_file_inputs` in
31959 *datarootdir*) ac_datarootdir_seen=yes;;
31960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31961   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31962 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31963 _ACEOF
31964 cat >>$CONFIG_STATUS <<_ACEOF
31965   ac_datarootdir_hack='
31966   s&@datadir@&$datadir&g
31967   s&@docdir@&$docdir&g
31968   s&@infodir@&$infodir&g
31969   s&@localedir@&$localedir&g
31970   s&@mandir@&$mandir&g
31971     s&\\\${datarootdir}&$datarootdir&g' ;;
31972 esac
31973 _ACEOF
31974
31975 # Neutralize VPATH when `$srcdir' = `.'.
31976 # Shell code in configure.ac might set extrasub.
31977 # FIXME: do we really want to maintain this feature?
31978 cat >>$CONFIG_STATUS <<_ACEOF
31979   sed "$ac_vpsub
31980 $extrasub
31981 _ACEOF
31982 cat >>$CONFIG_STATUS <<\_ACEOF
31983 :t
31984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31985 s&@configure_input@&$configure_input&;t t
31986 s&@top_builddir@&$ac_top_builddir_sub&;t t
31987 s&@srcdir@&$ac_srcdir&;t t
31988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31989 s&@top_srcdir@&$ac_top_srcdir&;t t
31990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31991 s&@builddir@&$ac_builddir&;t t
31992 s&@abs_builddir@&$ac_abs_builddir&;t t
31993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31994 s&@INSTALL@&$ac_INSTALL&;t t
31995 $ac_datarootdir_hack
31996 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31997
31998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31999   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32000   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32001   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32002 which seems to be undefined.  Please make sure it is defined." >&5
32003 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32004 which seems to be undefined.  Please make sure it is defined." >&2;}
32005
32006   rm -f "$tmp/stdin"
32007   case $ac_file in
32008   -) cat "$tmp/out"; rm -f "$tmp/out";;
32009   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32010   esac
32011  ;;
32012   :H)
32013   #
32014   # CONFIG_HEADER
32015   #
32016 _ACEOF
32017
32018 # Transform confdefs.h into a sed script `conftest.defines', that
32019 # substitutes the proper values into config.h.in to produce config.h.
32020 rm -f conftest.defines conftest.tail
32021 # First, append a space to every undef/define line, to ease matching.
32022 echo 's/$/ /' >conftest.defines
32023 # Then, protect against being on the right side of a sed subst, or in
32024 # an unquoted here document, in config.status.  If some macros were
32025 # called several times there might be several #defines for the same
32026 # symbol, which is useless.  But do not sort them, since the last
32027 # AC_DEFINE must be honored.
32028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32029 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32030 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32031 # PARAMS is the parameter list in the macro definition--in most cases, it's
32032 # just an empty string.
32033 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
32034 ac_dB='\\)[      (].*,\\1define\\2'
32035 ac_dC=' '
32036 ac_dD=' ,'
32037
32038 uniq confdefs.h |
32039   sed -n '
32040         t rset
32041         :rset
32042         s/^[     ]*#[    ]*define[       ][      ]*//
32043         t ok
32044         d
32045         :ok
32046         s/[\\&,]/\\&/g
32047         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32048         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32049   ' >>conftest.defines
32050
32051 # Remove the space that was appended to ease matching.
32052 # Then replace #undef with comments.  This is necessary, for
32053 # example, in the case of _POSIX_SOURCE, which is predefined and required
32054 # on some systems where configure will not decide to define it.
32055 # (The regexp can be short, since the line contains either #define or #undef.)
32056 echo 's/ $//
32057 s,^[     #]*u.*,/* & */,' >>conftest.defines
32058
32059 # Break up conftest.defines:
32060 ac_max_sed_lines=50
32061
32062 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32063 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32064 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32065 # et cetera.
32066 ac_in='$ac_file_inputs'
32067 ac_out='"$tmp/out1"'
32068 ac_nxt='"$tmp/out2"'
32069
32070 while :
32071 do
32072   # Write a here document:
32073     cat >>$CONFIG_STATUS <<_ACEOF
32074     # First, check the format of the line:
32075     cat >"\$tmp/defines.sed" <<\\CEOF
32076 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
32077 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
32078 b
32079 :def
32080 _ACEOF
32081   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32082   echo 'CEOF
32083     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32084   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32085   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32086   grep . conftest.tail >/dev/null || break
32087   rm -f conftest.defines
32088   mv conftest.tail conftest.defines
32089 done
32090 rm -f conftest.defines conftest.tail
32091
32092 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32093 cat >>$CONFIG_STATUS <<\_ACEOF
32094   if test x"$ac_file" != x-; then
32095     echo "/* $configure_input  */" >"$tmp/config.h"
32096     cat "$ac_result" >>"$tmp/config.h"
32097     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32098       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32099 echo "$as_me: $ac_file is unchanged" >&6;}
32100     else
32101       rm -f $ac_file
32102       mv "$tmp/config.h" $ac_file
32103     fi
32104   else
32105     echo "/* $configure_input  */"
32106     cat "$ac_result"
32107   fi
32108   rm -f "$tmp/out12"
32109  ;;
32110
32111   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32112 echo "$as_me: executing $ac_file commands" >&6;}
32113  ;;
32114   esac
32115
32116
32117   case $ac_file$ac_mode in
32118     "default-1":C)
32119     for ac_file in $CONFIG_FILES; do
32120       # Support "outfile[:infile[:infile...]]"
32121       case "$ac_file" in
32122         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32123       esac
32124       # PO directories have a Makefile.in generated from Makefile.in.in.
32125       case "$ac_file" in */Makefile.in)
32126         # Adjust a relative srcdir.
32127         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32128         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32129         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32130         # In autoconf-2.13 it is called $ac_given_srcdir.
32131         # In autoconf-2.50 it is called $srcdir.
32132         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32133         case "$ac_given_srcdir" in
32134           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32135           /*) top_srcdir="$ac_given_srcdir" ;;
32136           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32137         esac
32138         # Treat a directory as a PO directory if and only if it has a
32139         # POTFILES.in file. This allows packages to have multiple PO
32140         # directories under different names or in different locations.
32141         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32142           rm -f "$ac_dir/POTFILES"
32143           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32144           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32145           POMAKEFILEDEPS="POTFILES.in"
32146           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32147           # on $ac_dir but don't depend on user-specified configuration
32148           # parameters.
32149           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32150             # The LINGUAS file contains the set of available languages.
32151             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32152               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32153             fi
32154             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32155             # Hide the ALL_LINGUAS assigment from automake.
32156             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32157             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32158           else
32159             # The set of available languages was given in configure.in.
32160             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32161           fi
32162           # Compute POFILES
32163           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32164           # Compute UPDATEPOFILES
32165           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32166           # Compute DUMMYPOFILES
32167           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32168           # Compute GMOFILES
32169           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32170           case "$ac_given_srcdir" in
32171             .) srcdirpre= ;;
32172             *) srcdirpre='$(srcdir)/' ;;
32173           esac
32174           POFILES=
32175           UPDATEPOFILES=
32176           DUMMYPOFILES=
32177           GMOFILES=
32178           for lang in $ALL_LINGUAS; do
32179             POFILES="$POFILES $srcdirpre$lang.po"
32180             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32181             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32182             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32183           done
32184           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32185           # environment variable.
32186           INST_LINGUAS=
32187           if test -n "$ALL_LINGUAS"; then
32188             for presentlang in $ALL_LINGUAS; do
32189               useit=no
32190               if test "%UNSET%" != "$LINGUAS"; then
32191                 desiredlanguages="$LINGUAS"
32192               else
32193                 desiredlanguages="$ALL_LINGUAS"
32194               fi
32195               for desiredlang in $desiredlanguages; do
32196                 # Use the presentlang catalog if desiredlang is
32197                 #   a. equal to presentlang, or
32198                 #   b. a variant of presentlang (because in this case,
32199                 #      presentlang can be used as a fallback for messages
32200                 #      which are not translated in the desiredlang catalog).
32201                 case "$desiredlang" in
32202                   "$presentlang"*) useit=yes;;
32203                 esac
32204               done
32205               if test $useit = yes; then
32206                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32207               fi
32208             done
32209           fi
32210           CATALOGS=
32211           if test -n "$INST_LINGUAS"; then
32212             for lang in $INST_LINGUAS; do
32213               CATALOGS="$CATALOGS $lang.gmo"
32214             done
32215           fi
32216           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32217           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"
32218           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32219             if test -f "$f"; then
32220               case "$f" in
32221                 *.orig | *.bak | *~) ;;
32222                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32223               esac
32224             fi
32225           done
32226         fi
32227         ;;
32228       esac
32229     done ;;
32230     "default":C)
32231  ;;
32232
32233   esac
32234 done # for ac_tag
32235
32236
32237 { (exit 0); exit 0; }
32238 _ACEOF
32239 chmod +x $CONFIG_STATUS
32240 ac_clean_files=$ac_clean_files_save
32241
32242
32243 # configure is writing to config.log, and then calls config.status.
32244 # config.status does its own redirection, appending to config.log.
32245 # Unfortunately, on DOS this fails, as config.log is still kept open
32246 # by configure, so config.status won't be able to write to it; its
32247 # output is simply discarded.  So we exec the FD to /dev/null,
32248 # effectively closing config.log, so it can be properly (re)opened and
32249 # appended to by config.status.  When coming back to configure, we
32250 # need to make the FD available again.
32251 if test "$no_create" != yes; then
32252   ac_cs_success=:
32253   ac_config_status_args=
32254   test "$silent" = yes &&
32255     ac_config_status_args="$ac_config_status_args --quiet"
32256   exec 5>/dev/null
32257   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32258   exec 5>>config.log
32259   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32260   # would make configure fail if this is the last instruction.
32261   $ac_cs_success || { (exit 1); exit 1; }
32262 fi
32263
32264
32265 if test "${support_bat}" = "yes" ; then
32266   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32267   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32268   exit 1
32269   fi
32270
32271   QMAKEBIN="qmake"
32272
32273   if test "x$QMAKEQT4" != "xnone"; then
32274     QMAKEBIN=qmake-qt4
32275   fi
32276
32277   cd src/qt-console
32278   chmod 755 install_conf_file build-depkgs-qt-console
32279   echo "Creating bat Makefile"
32280   $QMAKEBIN
32281   make clean
32282   cd ${BUILD_DIR}
32283 fi
32284
32285 echo "Doing make of dependencies"
32286 ${MAKE:-make} depend
32287
32288 cd scripts
32289 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32290 chmod 755 dvd-handler dvd-simulator
32291 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32292 cd ..
32293
32294 c=updatedb
32295 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32296 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32297
32298 c=src/cats
32299
32300 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32301 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32302
32303 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32304 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32305
32306 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32307 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32308
32309 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32310 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32311
32312 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32313 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32314
32315 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32316 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32317
32318 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32319 chmod 755 $c/sqlite
32320 chmod 755 $c/mysql
32321
32322 chmod 755 src/win32/build-depkgs-mingw32
32323
32324
32325
32326 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32327    largefile_support="yes"
32328 fi
32329
32330 #
32331 # A whole lot of hand springs to get the compiler version.
32332 #  This is because gcc changed the output in version 3.0
32333 #
32334 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32335 if test "x${CCVERSION}" = "x" ; then
32336   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32337 fi
32338 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32339 if test x"${CXXVERSION}" = x ; then
32340   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32341 fi
32342
32343 if test "x${subsysdir}" = "x${sbindir}" ; then
32344    echo " "
32345    echo " "
32346    echo "You have set --sbindir and --with-subsys-dir"
32347    echo "  both equal to: ${subsysdir} "
32348    echo "  This is not permitted. Please reconfigure."
32349    echo " "
32350    echo "Aborting configuration ..."
32351    echo " "
32352    echo " "
32353    exit 1
32354 fi
32355
32356 if test "x${db_type}" = "xInternal" ; then
32357    echo " "
32358    echo " "
32359    echo "You have not specified either --enable-client-only or one of the"
32360    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32361    echo "  This is not permitted. Please reconfigure."
32362    echo " "
32363    echo "Aborting the configuration ..."
32364    echo " "
32365    echo " "
32366    exit 1
32367 fi
32368
32369 echo "
32370 Configuration on `date`:
32371
32372   Host:                       $host -- ${DISTNAME} ${DISTVER}
32373   Bacula version:             ${VERSION} (${DATE})
32374   Source code location:       ${srcdir}
32375   Install binaries:           ${sbindir}
32376   Install config files:       ${sysconfdir}
32377   Scripts directory:          ${scriptdir}
32378   Archive directory:          ${archivedir}
32379   Working directory:          ${working_dir}
32380   PID directory:              ${piddir}
32381   Subsys directory:           ${subsysdir}
32382   Man directory:              ${mandir}
32383   Data directory:             ${datadir}
32384   C Compiler:                 ${CC} ${CCVERSION}
32385   C++ Compiler:               ${CXX} ${CXXVERSION}
32386   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32387   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32388   Libraries:                  ${LIBS}
32389   Statically Linked Tools:    ${support_static_tools}
32390   Statically Linked FD:       ${support_static_fd}
32391   Statically Linked SD:       ${support_static_sd}
32392   Statically Linked DIR:      ${support_static_dir}
32393   Statically Linked CONS:     ${support_static_cons}
32394   Database type:              ${db_type}
32395   Database port:              ${db_port}
32396   Database lib:               ${DB_LIBS}
32397   Database name:              ${db_name}
32398   Database user:              ${db_user}
32399
32400   Job Output Email:           ${job_email}
32401   Traceback Email:            ${dump_email}
32402   SMTP Host Address:          ${smtp_host}
32403
32404   Director Port:              ${dir_port}
32405   File daemon Port:           ${fd_port}
32406   Storage daemon Port:        ${sd_port}
32407
32408   Director User:              ${dir_user}
32409   Director Group:             ${dir_group}
32410   Storage Daemon User:        ${sd_user}
32411   Storage DaemonGroup:        ${sd_group}
32412   File Daemon User:           ${fd_user}
32413   File Daemon Group:          ${fd_group}
32414
32415   SQL binaries Directory      ${SQL_BINDIR}
32416
32417   Large file support:         $largefile_support
32418   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32419   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32420   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32421   TLS support:                ${support_tls}
32422   Encryption support:         ${support_crypto}
32423   ZLIB support:               ${have_zlib}
32424   enable-smartalloc:          ${support_smartalloc}
32425   bat support:                ${support_bat} ${QWT_LDFLAGS}
32426   enable-gnome:               ${support_gnome} ${gnome_version}
32427   enable-bwx-console:         ${support_wx_console} ${wx_version}
32428   enable-tray-monitor:        ${support_tray_monitor}
32429   client-only:                ${build_client_only}
32430   build-dird:                 ${build_dird}
32431   build-stored:               ${build_stored}
32432   ACL support:                ${have_acl}
32433   Python support:             ${support_python} ${PYTHON_LIBS}
32434   Batch insert enabled:       ${support_batch_insert}
32435
32436   " > config.out
32437
32438 cat config.out