]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
2c509e6e40bfd529152285978b08b86cca39cb05
[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 BACULA
661 post_host
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CXX
670 CXXFLAGS
671 ac_ct_CXX
672 CPP
673 GREP
674 EGREP
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 RANLIB
679 MV
680 RM
681 CP
682 SED
683 ECHO
684 CMP
685 TBL
686 AR
687 OPENSSL
688 MTX
689 DD
690 MKISOFS
691 PYTHON
692 GROWISOFS
693 DVDRWMEDIAINFO
694 DVDRWFORMAT
695 PKGCONFIG
696 QMAKE
697 QMAKEQT4
698 WXCONFIG
699 WXFLAGS
700 CDRECORD
701 PIDOF
702 AWK
703 ARFLAGS
704 MAKE_SHELL
705 LOCAL_LIBS
706 LOCAL_CFLAGS
707 LOCAL_LDFLAGS
708 LOCAL_DEFS
709 build
710 build_cpu
711 build_vendor
712 build_os
713 host
714 host_cpu
715 host_vendor
716 host_os
717 HAVE_SUN_OS_TRUE
718 HAVE_SUN_OS_FALSE
719 HAVE_OSF1_OS_TRUE
720 HAVE_OSF1_OS_FALSE
721 HAVE_AIX_OS_TRUE
722 HAVE_AIX_OS_FALSE
723 HAVE_HPUX_OS_TRUE
724 HAVE_HPUX_OS_FALSE
725 HAVE_LINUX_OS_TRUE
726 HAVE_LINUX_OS_FALSE
727 HAVE_FREEBSD_OS_TRUE
728 HAVE_FREEBSD_OS_FALSE
729 HAVE_NETBSD_OS_TRUE
730 HAVE_NETBSD_OS_FALSE
731 HAVE_OPENBSD_OS_TRUE
732 HAVE_OPENBSD_OS_FALSE
733 HAVE_BSDI_OS_TRUE
734 HAVE_BSDI_OS_FALSE
735 HAVE_SGI_OS_TRUE
736 HAVE_SGI_OS_FALSE
737 HAVE_IRIX_OS_TRUE
738 HAVE_IRIX_OS_FALSE
739 HAVE_DARWIN_OS_TRUE
740 HAVE_DARWIN_OS_FALSE
741 SET_MAKE
742 MKINSTALLDIRS
743 USE_NLS
744 MSGFMT
745 GMSGFMT
746 XGETTEXT
747 MSGMERGE
748 INTL_MACOSX_LIBS
749 LIBICONV
750 LTLIBICONV
751 INTLLIBS
752 LIBINTL
753 LTLIBINTL
754 POSUB
755 GLIBC2
756 ALLOCA
757 GLIBC21
758 HAVE_POSIX_PRINTF
759 HAVE_ASPRINTF
760 HAVE_SNPRINTF
761 HAVE_WPRINTF
762 INTLBISON
763 BUILD_INCLUDED_LIBINTL
764 USE_INCLUDED_LIBINTL
765 CATOBJEXT
766 DATADIRNAME
767 INSTOBJEXT
768 GENCAT
769 INTLOBJS
770 INTL_LIBTOOL_SUFFIX_PREFIX
771 GNOME_INCLUDEDIR
772 GNOMEUI_LIBS
773 GNOME_LIBDIR
774 GNOME_LIBS
775 GNOME_DIR
776 BAT_DIR
777 QWT_INC
778 QWT_LDFLAGS
779 QWT_LIB
780 QWT
781 WXCONS_CPPFLAGS
782 WXCONS_LDFLAGS
783 WX_DIR
784 TRAY_MONITOR_CPPFLAGS
785 TRAY_MONITOR_LDFLAGS
786 TRAY_MONITOR_DIR
787 TTOOL_LDFLAGS
788 STATIC_FD
789 STATIC_SD
790 STATIC_DIR
791 STATIC_CONS
792 STATIC_GNOME_CONS
793 STATIC_WX_CONS
794 ALL_DIRS
795 DIRD_DIR
796 DIR_TOOLS
797 STORED_DIR
798 CONS_INC
799 CONS_OBJ
800 CONS_SRC
801 CONS_LIBS
802 CONS_LDFLAGS
803 READLINE_SRC
804 PYTHON_LIBS
805 PYTHON_INCDIR
806 OPENSSL_LIBS
807 OPENSSL_INC
808 working_dir
809 archivedir
810 scriptdir
811 plugindir
812 dump_email
813 job_email
814 smtp_host
815 piddir
816 subsysdir
817 baseport
818 dir_port
819 fd_port
820 sd_port
821 dir_password
822 fd_password
823 sd_password
824 mon_dir_password
825 mon_fd_password
826 mon_sd_password
827 db_name
828 db_user
829 db_password
830 db_port
831 dir_user
832 dir_group
833 sd_user
834 sd_group
835 fd_user
836 fd_group
837 SBINPERM
838 SQL_LFLAGS
839 SQL_INCLUDE
840 SQL_BINDIR
841 DBI_DBD_DRIVERDIR
842 uncomment_dbi
843 DB_PROG
844 DB_PROG_LIB
845 cats
846 DB_TYPE
847 GETCONF
848 XMKMF
849 X_CFLAGS
850 X_PRE_LIBS
851 X_LIBS
852 X_EXTRA_LIBS
853 LIBOBJS
854 FDLIBS
855 DEBUG
856 DINCLUDE
857 DLIB
858 DB_LIBS
859 WCFLAGS
860 WLDFLAGS
861 WRAPLIBS
862 OBJLIST
863 hostname
864 TAPEDRIVE
865 PSCMD
866 WIN32
867 MACOSX
868 DISTNAME
869 DISTVER
870 LTLIBOBJS'
871 ac_subst_files='MCOMMON'
872       ac_precious_vars='build_alias
873 host_alias
874 target_alias
875 CC
876 CFLAGS
877 LDFLAGS
878 LIBS
879 CPPFLAGS
880 CXX
881 CXXFLAGS
882 CCC
883 CPP
884 WXCONFIG
885 WXFLAGS
886 XMKMF'
887
888
889 # Initialize some variables set by options.
890 ac_init_help=
891 ac_init_version=false
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
894 cache_file=/dev/null
895 exec_prefix=NONE
896 no_create=
897 no_recursion=
898 prefix=NONE
899 program_prefix=NONE
900 program_suffix=NONE
901 program_transform_name=s,x,x,
902 silent=
903 site=
904 srcdir=
905 verbose=
906 x_includes=NONE
907 x_libraries=NONE
908
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir='${exec_prefix}/bin'
916 sbindir='${exec_prefix}/sbin'
917 libexecdir='${exec_prefix}/libexec'
918 datarootdir='${prefix}/share'
919 datadir='${datarootdir}'
920 sysconfdir='${prefix}/etc'
921 sharedstatedir='${prefix}/com'
922 localstatedir='${prefix}/var'
923 includedir='${prefix}/include'
924 oldincludedir='/usr/include'
925 docdir='${datarootdir}/doc/${PACKAGE}'
926 infodir='${datarootdir}/info'
927 htmldir='${docdir}'
928 dvidir='${docdir}'
929 pdfdir='${docdir}'
930 psdir='${docdir}'
931 libdir='${exec_prefix}/lib'
932 localedir='${datarootdir}/locale'
933 mandir='${datarootdir}/man'
934
935 ac_prev=
936 ac_dashdash=
937 for ac_option
938 do
939   # If the previous option needs an argument, assign it.
940   if test -n "$ac_prev"; then
941     eval $ac_prev=\$ac_option
942     ac_prev=
943     continue
944   fi
945
946   case $ac_option in
947   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
948   *)    ac_optarg=yes ;;
949   esac
950
951   # Accept the important Cygnus configure options, so we can diagnose typos.
952
953   case $ac_dashdash$ac_option in
954   --)
955     ac_dashdash=yes ;;
956
957   -bindir | --bindir | --bindi | --bind | --bin | --bi)
958     ac_prev=bindir ;;
959   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
960     bindir=$ac_optarg ;;
961
962   -build | --build | --buil | --bui | --bu)
963     ac_prev=build_alias ;;
964   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
965     build_alias=$ac_optarg ;;
966
967   -cache-file | --cache-file | --cache-fil | --cache-fi \
968   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
969     ac_prev=cache_file ;;
970   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
971   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
972     cache_file=$ac_optarg ;;
973
974   --config-cache | -C)
975     cache_file=config.cache ;;
976
977   -datadir | --datadir | --datadi | --datad)
978     ac_prev=datadir ;;
979   -datadir=* | --datadir=* | --datadi=* | --datad=*)
980     datadir=$ac_optarg ;;
981
982   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
983   | --dataroo | --dataro | --datar)
984     ac_prev=datarootdir ;;
985   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
986   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
987     datarootdir=$ac_optarg ;;
988
989   -disable-* | --disable-*)
990     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
993       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
994    { (exit 1); exit 1; }; }
995     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
996     eval enable_$ac_feature=no ;;
997
998   -docdir | --docdir | --docdi | --doc | --do)
999     ac_prev=docdir ;;
1000   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001     docdir=$ac_optarg ;;
1002
1003   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004     ac_prev=dvidir ;;
1005   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006     dvidir=$ac_optarg ;;
1007
1008   -enable-* | --enable-*)
1009     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013    { (exit 1); exit 1; }; }
1014     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015     eval enable_$ac_feature=\$ac_optarg ;;
1016
1017   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019   | --exec | --exe | --ex)
1020     ac_prev=exec_prefix ;;
1021   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023   | --exec=* | --exe=* | --ex=*)
1024     exec_prefix=$ac_optarg ;;
1025
1026   -gas | --gas | --ga | --g)
1027     # Obsolete; use --with-gas.
1028     with_gas=yes ;;
1029
1030   -help | --help | --hel | --he | -h)
1031     ac_init_help=long ;;
1032   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033     ac_init_help=recursive ;;
1034   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035     ac_init_help=short ;;
1036
1037   -host | --host | --hos | --ho)
1038     ac_prev=host_alias ;;
1039   -host=* | --host=* | --hos=* | --ho=*)
1040     host_alias=$ac_optarg ;;
1041
1042   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043     ac_prev=htmldir ;;
1044   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045   | --ht=*)
1046     htmldir=$ac_optarg ;;
1047
1048   -includedir | --includedir | --includedi | --included | --include \
1049   | --includ | --inclu | --incl | --inc)
1050     ac_prev=includedir ;;
1051   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052   | --includ=* | --inclu=* | --incl=* | --inc=*)
1053     includedir=$ac_optarg ;;
1054
1055   -infodir | --infodir | --infodi | --infod | --info | --inf)
1056     ac_prev=infodir ;;
1057   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058     infodir=$ac_optarg ;;
1059
1060   -libdir | --libdir | --libdi | --libd)
1061     ac_prev=libdir ;;
1062   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063     libdir=$ac_optarg ;;
1064
1065   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066   | --libexe | --libex | --libe)
1067     ac_prev=libexecdir ;;
1068   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069   | --libexe=* | --libex=* | --libe=*)
1070     libexecdir=$ac_optarg ;;
1071
1072   -localedir | --localedir | --localedi | --localed | --locale)
1073     ac_prev=localedir ;;
1074   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075     localedir=$ac_optarg ;;
1076
1077   -localstatedir | --localstatedir | --localstatedi | --localstated \
1078   | --localstate | --localstat | --localsta | --localst | --locals)
1079     ac_prev=localstatedir ;;
1080   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082     localstatedir=$ac_optarg ;;
1083
1084   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085     ac_prev=mandir ;;
1086   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087     mandir=$ac_optarg ;;
1088
1089   -nfp | --nfp | --nf)
1090     # Obsolete; use --without-fp.
1091     with_fp=no ;;
1092
1093   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094   | --no-cr | --no-c | -n)
1095     no_create=yes ;;
1096
1097   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099     no_recursion=yes ;;
1100
1101   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103   | --oldin | --oldi | --old | --ol | --o)
1104     ac_prev=oldincludedir ;;
1105   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108     oldincludedir=$ac_optarg ;;
1109
1110   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111     ac_prev=prefix ;;
1112   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113     prefix=$ac_optarg ;;
1114
1115   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116   | --program-pre | --program-pr | --program-p)
1117     ac_prev=program_prefix ;;
1118   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120     program_prefix=$ac_optarg ;;
1121
1122   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123   | --program-suf | --program-su | --program-s)
1124     ac_prev=program_suffix ;;
1125   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127     program_suffix=$ac_optarg ;;
1128
1129   -program-transform-name | --program-transform-name \
1130   | --program-transform-nam | --program-transform-na \
1131   | --program-transform-n | --program-transform- \
1132   | --program-transform | --program-transfor \
1133   | --program-transfo | --program-transf \
1134   | --program-trans | --program-tran \
1135   | --progr-tra | --program-tr | --program-t)
1136     ac_prev=program_transform_name ;;
1137   -program-transform-name=* | --program-transform-name=* \
1138   | --program-transform-nam=* | --program-transform-na=* \
1139   | --program-transform-n=* | --program-transform-=* \
1140   | --program-transform=* | --program-transfor=* \
1141   | --program-transfo=* | --program-transf=* \
1142   | --program-trans=* | --program-tran=* \
1143   | --progr-tra=* | --program-tr=* | --program-t=*)
1144     program_transform_name=$ac_optarg ;;
1145
1146   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147     ac_prev=pdfdir ;;
1148   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149     pdfdir=$ac_optarg ;;
1150
1151   -psdir | --psdir | --psdi | --psd | --ps)
1152     ac_prev=psdir ;;
1153   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154     psdir=$ac_optarg ;;
1155
1156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157   | -silent | --silent | --silen | --sile | --sil)
1158     silent=yes ;;
1159
1160   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161     ac_prev=sbindir ;;
1162   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163   | --sbi=* | --sb=*)
1164     sbindir=$ac_optarg ;;
1165
1166   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168   | --sharedst | --shareds | --shared | --share | --shar \
1169   | --sha | --sh)
1170     ac_prev=sharedstatedir ;;
1171   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174   | --sha=* | --sh=*)
1175     sharedstatedir=$ac_optarg ;;
1176
1177   -site | --site | --sit)
1178     ac_prev=site ;;
1179   -site=* | --site=* | --sit=*)
1180     site=$ac_optarg ;;
1181
1182   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183     ac_prev=srcdir ;;
1184   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185     srcdir=$ac_optarg ;;
1186
1187   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188   | --syscon | --sysco | --sysc | --sys | --sy)
1189     ac_prev=sysconfdir ;;
1190   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192     sysconfdir=$ac_optarg ;;
1193
1194   -target | --target | --targe | --targ | --tar | --ta | --t)
1195     ac_prev=target_alias ;;
1196   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197     target_alias=$ac_optarg ;;
1198
1199   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200     verbose=yes ;;
1201
1202   -version | --version | --versio | --versi | --vers | -V)
1203     ac_init_version=: ;;
1204
1205   -with-* | --with-*)
1206     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209       { echo "$as_me: error: invalid package name: $ac_package" >&2
1210    { (exit 1); exit 1; }; }
1211     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1212     eval with_$ac_package=\$ac_optarg ;;
1213
1214   -without-* | --without-*)
1215     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218       { echo "$as_me: error: invalid package name: $ac_package" >&2
1219    { (exit 1); exit 1; }; }
1220     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221     eval with_$ac_package=no ;;
1222
1223   --x)
1224     # Obsolete; use --with-x.
1225     with_x=yes ;;
1226
1227   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1228   | --x-incl | --x-inc | --x-in | --x-i)
1229     ac_prev=x_includes ;;
1230   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1231   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1232     x_includes=$ac_optarg ;;
1233
1234   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1235   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1236     ac_prev=x_libraries ;;
1237   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1238   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1239     x_libraries=$ac_optarg ;;
1240
1241   -*) { echo "$as_me: error: unrecognized option: $ac_option
1242 Try \`$0 --help' for more information." >&2
1243    { (exit 1); exit 1; }; }
1244     ;;
1245
1246   *=*)
1247     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248     # Reject names that are not valid shell variable names.
1249     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1250       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1251    { (exit 1); exit 1; }; }
1252     eval $ac_envvar=\$ac_optarg
1253     export $ac_envvar ;;
1254
1255   *)
1256     # FIXME: should be removed in autoconf 3.0.
1257     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1258     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1259       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1260     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1261     ;;
1262
1263   esac
1264 done
1265
1266 if test -n "$ac_prev"; then
1267   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1268   { echo "$as_me: error: missing argument to $ac_option" >&2
1269    { (exit 1); exit 1; }; }
1270 fi
1271
1272 # Be sure to have absolute directory names.
1273 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1274                 datadir sysconfdir sharedstatedir localstatedir includedir \
1275                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1276                 libdir localedir mandir
1277 do
1278   eval ac_val=\$$ac_var
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1284    { (exit 1); exit 1; }; }
1285 done
1286
1287 # There might be people who depend on the old broken behavior: `$host'
1288 # used to hold the argument of --host etc.
1289 # FIXME: To remove some day.
1290 build=$build_alias
1291 host=$host_alias
1292 target=$target_alias
1293
1294 # FIXME: To remove some day.
1295 if test "x$host_alias" != x; then
1296   if test "x$build_alias" = x; then
1297     cross_compiling=maybe
1298     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1299     If a cross compiler is detected then cross compile mode will be used." >&2
1300   elif test "x$build_alias" != "x$host_alias"; then
1301     cross_compiling=yes
1302   fi
1303 fi
1304
1305 ac_tool_prefix=
1306 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308 test "$silent" = yes && exec 6>/dev/null
1309
1310
1311 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312 ac_ls_di=`ls -di .` &&
1313 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1314   { echo "$as_me: error: Working directory cannot be determined" >&2
1315    { (exit 1); exit 1; }; }
1316 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1317   { echo "$as_me: error: pwd does not report name of working directory" >&2
1318    { (exit 1); exit 1; }; }
1319
1320
1321 # Find the source files, if location was not specified.
1322 if test -z "$srcdir"; then
1323   ac_srcdir_defaulted=yes
1324   # Try the directory containing this script, then the parent directory.
1325   ac_confdir=`$as_dirname -- "$0" ||
1326 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1327          X"$0" : 'X\(//\)[^/]' \| \
1328          X"$0" : 'X\(//\)$' \| \
1329          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1330 echo X"$0" |
1331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1332             s//\1/
1333             q
1334           }
1335           /^X\(\/\/\)[^/].*/{
1336             s//\1/
1337             q
1338           }
1339           /^X\(\/\/\)$/{
1340             s//\1/
1341             q
1342           }
1343           /^X\(\/\).*/{
1344             s//\1/
1345             q
1346           }
1347           s/.*/./; q'`
1348   srcdir=$ac_confdir
1349   if test ! -r "$srcdir/$ac_unique_file"; then
1350     srcdir=..
1351   fi
1352 else
1353   ac_srcdir_defaulted=no
1354 fi
1355 if test ! -r "$srcdir/$ac_unique_file"; then
1356   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1357   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1358    { (exit 1); exit 1; }; }
1359 fi
1360 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1361 ac_abs_confdir=`(
1362         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1363    { (exit 1); exit 1; }; }
1364         pwd)`
1365 # When building in place, set srcdir=.
1366 if test "$ac_abs_confdir" = "$ac_pwd"; then
1367   srcdir=.
1368 fi
1369 # Remove unnecessary trailing slashes from srcdir.
1370 # Double slashes in file names in object file debugging info
1371 # mess up M-x gdb in Emacs.
1372 case $srcdir in
1373 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1374 esac
1375 for ac_var in $ac_precious_vars; do
1376   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1377   eval ac_env_${ac_var}_value=\$${ac_var}
1378   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1379   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1380 done
1381
1382 #
1383 # Report the --help message.
1384 #
1385 if test "$ac_init_help" = "long"; then
1386   # Omit some internal or obsolete options to make the list less imposing.
1387   # This message is too long to be a string in the A/UX 3.1 sh.
1388   cat <<_ACEOF
1389 \`configure' configures this package to adapt to many kinds of systems.
1390
1391 Usage: $0 [OPTION]... [VAR=VALUE]...
1392
1393 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1394 VAR=VALUE.  See below for descriptions of some of the useful variables.
1395
1396 Defaults for the options are specified in brackets.
1397
1398 Configuration:
1399   -h, --help              display this help and exit
1400       --help=short        display options specific to this package
1401       --help=recursive    display the short help of all the included packages
1402   -V, --version           display version information and exit
1403   -q, --quiet, --silent   do not print \`checking...' messages
1404       --cache-file=FILE   cache test results in FILE [disabled]
1405   -C, --config-cache      alias for \`--cache-file=config.cache'
1406   -n, --no-create         do not create output files
1407       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1408
1409 Installation directories:
1410   --prefix=PREFIX         install architecture-independent files in PREFIX
1411                           [$ac_default_prefix]
1412   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1413                           [PREFIX]
1414
1415 By default, \`make install' will install all the files in
1416 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1417 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1418 for instance \`--prefix=\$HOME'.
1419
1420 For better control, use the options below.
1421
1422 Fine tuning of the installation directories:
1423   --bindir=DIR           user executables [EPREFIX/bin]
1424   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1425   --libexecdir=DIR       program executables [EPREFIX/libexec]
1426   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1427   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1428   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1429   --libdir=DIR           object code libraries [EPREFIX/lib]
1430   --includedir=DIR       C header files [PREFIX/include]
1431   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1432   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1433   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1434   --infodir=DIR          info documentation [DATAROOTDIR/info]
1435   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1436   --mandir=DIR           man documentation [DATAROOTDIR/man]
1437   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1438   --htmldir=DIR          html documentation [DOCDIR]
1439   --dvidir=DIR           dvi documentation [DOCDIR]
1440   --pdfdir=DIR           pdf documentation [DOCDIR]
1441   --psdir=DIR            ps documentation [DOCDIR]
1442 _ACEOF
1443
1444   cat <<\_ACEOF
1445
1446 X features:
1447   --x-includes=DIR    X include files are in DIR
1448   --x-libraries=DIR   X library files are in DIR
1449
1450 System types:
1451   --build=BUILD     configure for building on BUILD [guessed]
1452   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1453 _ACEOF
1454 fi
1455
1456 if test -n "$ac_init_help"; then
1457
1458   cat <<\_ACEOF
1459
1460 Optional Features:
1461   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463   --disable-nls           do not use Native Language Support
1464   --disable-rpath         do not hardcode runtime library paths
1465   --enable-gnome          enable build of bgnome-console GUI disabled
1466   --enable-bat  enable build of bat Qt4 GUI disabled
1467   --enable-bwx-console     enable build of wxWidgets console disabled
1468   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1469   --enable-smartalloc     enable smartalloc debugging support disabled
1470   --enable-static-tools   enable static tape tools disabled
1471   --enable-static-fd      enable static File daemon disabled
1472   --enable-static-sd      enable static Storage daemon disabled
1473   --enable-static-dir     enable static Director disabled
1474   --enable-static-cons    enable static Console disabled
1475   --enable-client-only    build client (File daemon) only disabled
1476   --enable-build-dird     enable building of dird (Director) enabled
1477   --enable-build-stored   enable building of stored (Storage daemon) enabled
1478  --disable-conio disable conio support enabled
1479
1480   --enable-ipv6             enable ipv6 support enabled
1481
1482   --disable-readline      disable readline support disable
1483
1484         --enable-batch-insert       enable the DB batch insert code disabled
1485  --enable-batch-insert      enable the DB batch insert code disabled
1486   --disable-largefile     omit support for large files
1487
1488 Optional Packages:
1489   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1490   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1491   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1492   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1493   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1494   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1495   --without-libintl-prefix     don't search for libintl in includedir and libdir
1496   --with-included-gettext use the GNU gettext library included here
1497  --with-qwt[=DIR]                 specify qwt library directory
1498  --with-readline[=DIR]         specify readline library directory
1499
1500   --with-python[=DIR]   Include Python support.  DIR is the Python base
1501                           install directory, default is to search through
1502                           a number of common places for the Python files.
1503   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1504   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1505   --with-working-dir=PATH        specify path of Bacula working directory
1506   --with-archivedir=PATH        specify path of SD archive directory
1507   --with-scriptdir=PATH    specify path of Bacula scripts directory
1508   --with-plugindir=PATH    specify path of Bacula plugins directory
1509   --with-dump-email=EMAIL        dump email address
1510   --with-job-email=EMAIL         job output email address
1511   --with-smtp-host=HOST          SMTP mail host address
1512   --with-pid-dir=PATH            specify location of Bacula pid files
1513   --with-subsys-dir=PATH         specify location of Bacula subsys file
1514   --with-baseport=PORT           specify base port address for daemons
1515   --with-dir-password=PASSWORD   specify Director's password
1516   --with-fd-password=PASSWORD    specify Client's password
1517   --with-sd-password=PASSWORD    specify Storage daemon's password
1518   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1519   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1520   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1521   --with-db-name=DBNAME        specify database name (default bacula)
1522   --with-db-user=UNAME         specify database user (default bacula)
1523   --with-db-password=UNAME         specify database password (default *none*)
1524   --with-db-port=DBPORT         specify a database port (default null)
1525   --with-dir-user=USER           specify user for Director daemon
1526   --with-dir-group=GROUP                 specify group for Director daemon
1527   --with-sd-user=USER            specify user for Storage daemon
1528   --with-sd-group=GROUP          specify group for Storage daemon
1529   --with-fd-user=USER            specify user for File daemon
1530   --with-fd-group=GROUP          specify group for File daemon
1531   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1532   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1533                           base install directory, defaults to /usr/local/pgsql
1534
1535   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1536                           install directory, default is to search through
1537                           a number of common places for the MySQL files.
1538
1539   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1540                           install directory, default is to search through
1541                           a number of common places for the MySQL files.
1542
1543   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1544                           install directory, default is to search through
1545                           a number of common places for the SQLite3 files.
1546
1547   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1548                           install directory, default is to search through
1549                           a number of common places for the SQLite files.
1550
1551   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1552                           install directory, default is to search through
1553                           a number of common places for the DBI files.
1554
1555   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1556                           the one DBI driver like Mysql, Postgresql, others.
1557                           Default is to not configure any driver.
1558   --with-x                use the X Window System
1559
1560 Some influential environment variables:
1561   CC          C compiler command
1562   CFLAGS      C compiler flags
1563   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1564               nonstandard directory <lib dir>
1565   LIBS        libraries to pass to the linker, e.g. -l<library>
1566   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1567               you have headers in a nonstandard directory <include dir>
1568   CXX         C++ compiler command
1569   CXXFLAGS    C++ compiler flags
1570   CPP         C preprocessor
1571   WXCONFIG    wx-config command. On some systems, you must set it to
1572               wx-config-2.6 to use wxWidgets 2.6.
1573   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1574   XMKMF       Path to xmkmf, Makefile generator for X Window System
1575
1576 Use these variables to override the choices made by `configure' or to help
1577 it to find libraries and programs with nonstandard names/locations.
1578
1579 _ACEOF
1580 ac_status=$?
1581 fi
1582
1583 if test "$ac_init_help" = "recursive"; then
1584   # If there are subdirs, report their specific --help.
1585   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1586     test -d "$ac_dir" || continue
1587     ac_builddir=.
1588
1589 case "$ac_dir" in
1590 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *)
1592   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1593   # A ".." for each directory in $ac_dir_suffix.
1594   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1595   case $ac_top_builddir_sub in
1596   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1597   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1598   esac ;;
1599 esac
1600 ac_abs_top_builddir=$ac_pwd
1601 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1602 # for backward compatibility:
1603 ac_top_builddir=$ac_top_build_prefix
1604
1605 case $srcdir in
1606   .)  # We are building in place.
1607     ac_srcdir=.
1608     ac_top_srcdir=$ac_top_builddir_sub
1609     ac_abs_top_srcdir=$ac_pwd ;;
1610   [\\/]* | ?:[\\/]* )  # Absolute name.
1611     ac_srcdir=$srcdir$ac_dir_suffix;
1612     ac_top_srcdir=$srcdir
1613     ac_abs_top_srcdir=$srcdir ;;
1614   *) # Relative name.
1615     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1616     ac_top_srcdir=$ac_top_build_prefix$srcdir
1617     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1618 esac
1619 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620
1621     cd "$ac_dir" || { ac_status=$?; continue; }
1622     # Check for guested configure.
1623     if test -f "$ac_srcdir/configure.gnu"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1626     elif test -f "$ac_srcdir/configure"; then
1627       echo &&
1628       $SHELL "$ac_srcdir/configure" --help=recursive
1629     else
1630       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1631     fi || ac_status=$?
1632     cd "$ac_pwd" || { ac_status=$?; break; }
1633   done
1634 fi
1635
1636 test -n "$ac_init_help" && exit $ac_status
1637 if $ac_init_version; then
1638   cat <<\_ACEOF
1639 configure
1640 generated by GNU Autoconf 2.61
1641
1642 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1643 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1646 _ACEOF
1647   exit
1648 fi
1649 cat >config.log <<_ACEOF
1650 This file contains any messages produced by compilers while
1651 running configure, to aid debugging if configure makes a mistake.
1652
1653 It was created by $as_me, which was
1654 generated by GNU Autoconf 2.61.  Invocation command line was
1655
1656   $ $0 $@
1657
1658 _ACEOF
1659 exec 5>>config.log
1660 {
1661 cat <<_ASUNAME
1662 ## --------- ##
1663 ## Platform. ##
1664 ## --------- ##
1665
1666 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1667 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1668 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1669 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1670 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1671
1672 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1673 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1674
1675 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1676 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1677 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1678 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1679 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1680 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1681 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1682
1683 _ASUNAME
1684
1685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1686 for as_dir in $PATH
1687 do
1688   IFS=$as_save_IFS
1689   test -z "$as_dir" && as_dir=.
1690   echo "PATH: $as_dir"
1691 done
1692 IFS=$as_save_IFS
1693
1694 } >&5
1695
1696 cat >&5 <<_ACEOF
1697
1698
1699 ## ----------- ##
1700 ## Core tests. ##
1701 ## ----------- ##
1702
1703 _ACEOF
1704
1705
1706 # Keep a trace of the command line.
1707 # Strip out --no-create and --no-recursion so they do not pile up.
1708 # Strip out --silent because we don't want to record it for future runs.
1709 # Also quote any args containing shell meta-characters.
1710 # Make two passes to allow for proper duplicate-argument suppression.
1711 ac_configure_args=
1712 ac_configure_args0=
1713 ac_configure_args1=
1714 ac_must_keep_next=false
1715 for ac_pass in 1 2
1716 do
1717   for ac_arg
1718   do
1719     case $ac_arg in
1720     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1721     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1722     | -silent | --silent | --silen | --sile | --sil)
1723       continue ;;
1724     *\'*)
1725       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1726     esac
1727     case $ac_pass in
1728     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1729     2)
1730       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1731       if test $ac_must_keep_next = true; then
1732         ac_must_keep_next=false # Got value, back to normal.
1733       else
1734         case $ac_arg in
1735           *=* | --config-cache | -C | -disable-* | --disable-* \
1736           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1737           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1738           | -with-* | --with-* | -without-* | --without-* | --x)
1739             case "$ac_configure_args0 " in
1740               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1741             esac
1742             ;;
1743           -* ) ac_must_keep_next=true ;;
1744         esac
1745       fi
1746       ac_configure_args="$ac_configure_args '$ac_arg'"
1747       ;;
1748     esac
1749   done
1750 done
1751 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1752 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1753
1754 # When interrupted or exit'd, cleanup temporary files, and complete
1755 # config.log.  We remove comments because anyway the quotes in there
1756 # would cause problems or look ugly.
1757 # WARNING: Use '\'' to represent an apostrophe within the trap.
1758 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1759 trap 'exit_status=$?
1760   # Save into config.log some information that might help in debugging.
1761   {
1762     echo
1763
1764     cat <<\_ASBOX
1765 ## ---------------- ##
1766 ## Cache variables. ##
1767 ## ---------------- ##
1768 _ASBOX
1769     echo
1770     # The following way of writing the cache mishandles newlines in values,
1771 (
1772   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1773     eval ac_val=\$$ac_var
1774     case $ac_val in #(
1775     *${as_nl}*)
1776       case $ac_var in #(
1777       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1779       esac
1780       case $ac_var in #(
1781       _ | IFS | as_nl) ;; #(
1782       *) $as_unset $ac_var ;;
1783       esac ;;
1784     esac
1785   done
1786   (set) 2>&1 |
1787     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1788     *${as_nl}ac_space=\ *)
1789       sed -n \
1790         "s/'\''/'\''\\\\'\'''\''/g;
1791           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1792       ;; #(
1793     *)
1794       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1795       ;;
1796     esac |
1797     sort
1798 )
1799     echo
1800
1801     cat <<\_ASBOX
1802 ## ----------------- ##
1803 ## Output variables. ##
1804 ## ----------------- ##
1805 _ASBOX
1806     echo
1807     for ac_var in $ac_subst_vars
1808     do
1809       eval ac_val=\$$ac_var
1810       case $ac_val in
1811       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1812       esac
1813       echo "$ac_var='\''$ac_val'\''"
1814     done | sort
1815     echo
1816
1817     if test -n "$ac_subst_files"; then
1818       cat <<\_ASBOX
1819 ## ------------------- ##
1820 ## File substitutions. ##
1821 ## ------------------- ##
1822 _ASBOX
1823       echo
1824       for ac_var in $ac_subst_files
1825       do
1826         eval ac_val=\$$ac_var
1827         case $ac_val in
1828         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829         esac
1830         echo "$ac_var='\''$ac_val'\''"
1831       done | sort
1832       echo
1833     fi
1834
1835     if test -s confdefs.h; then
1836       cat <<\_ASBOX
1837 ## ----------- ##
1838 ## confdefs.h. ##
1839 ## ----------- ##
1840 _ASBOX
1841       echo
1842       cat confdefs.h
1843       echo
1844     fi
1845     test "$ac_signal" != 0 &&
1846       echo "$as_me: caught signal $ac_signal"
1847     echo "$as_me: exit $exit_status"
1848   } >&5
1849   rm -f core *.core core.conftest.* &&
1850     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1851     exit $exit_status
1852 ' 0
1853 for ac_signal in 1 2 13 15; do
1854   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1855 done
1856 ac_signal=0
1857
1858 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1859 rm -f -r conftest* confdefs.h
1860
1861 # Predefined preprocessor variables.
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_NAME "$PACKAGE_NAME"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1875 _ACEOF
1876
1877
1878 cat >>confdefs.h <<_ACEOF
1879 #define PACKAGE_STRING "$PACKAGE_STRING"
1880 _ACEOF
1881
1882
1883 cat >>confdefs.h <<_ACEOF
1884 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1885 _ACEOF
1886
1887
1888 # Let the site file select an alternate cache file if it wants to.
1889 # Prefer explicitly selected file to automatically selected ones.
1890 if test -n "$CONFIG_SITE"; then
1891   set x "$CONFIG_SITE"
1892 elif test "x$prefix" != xNONE; then
1893   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1894 else
1895   set x "$ac_default_prefix/share/config.site" \
1896         "$ac_default_prefix/etc/config.site"
1897 fi
1898 shift
1899 for ac_site_file
1900 do
1901   if test -r "$ac_site_file"; then
1902     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1903 echo "$as_me: loading site script $ac_site_file" >&6;}
1904     sed 's/^/| /' "$ac_site_file" >&5
1905     . "$ac_site_file"
1906   fi
1907 done
1908
1909 if test -r "$cache_file"; then
1910   # Some versions of bash will fail to source /dev/null (special
1911   # files actually), so we avoid doing that.
1912   if test -f "$cache_file"; then
1913     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1914 echo "$as_me: loading cache $cache_file" >&6;}
1915     case $cache_file in
1916       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1917       *)                      . "./$cache_file";;
1918     esac
1919   fi
1920 else
1921   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1922 echo "$as_me: creating cache $cache_file" >&6;}
1923   >$cache_file
1924 fi
1925
1926 # Check that the precious variables saved in the cache have kept the same
1927 # value.
1928 ac_cache_corrupted=false
1929 for ac_var in $ac_precious_vars; do
1930   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1931   eval ac_new_set=\$ac_env_${ac_var}_set
1932   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1933   eval ac_new_val=\$ac_env_${ac_var}_value
1934   case $ac_old_set,$ac_new_set in
1935     set,)
1936       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1937 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1938       ac_cache_corrupted=: ;;
1939     ,set)
1940       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1941 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1942       ac_cache_corrupted=: ;;
1943     ,);;
1944     *)
1945       if test "x$ac_old_val" != "x$ac_new_val"; then
1946         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1947 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1949 echo "$as_me:   former value:  $ac_old_val" >&2;}
1950         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1951 echo "$as_me:   current value: $ac_new_val" >&2;}
1952         ac_cache_corrupted=:
1953       fi;;
1954   esac
1955   # Pass precious variables to config.status.
1956   if test "$ac_new_set" = set; then
1957     case $ac_new_val in
1958     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1959     *) ac_arg=$ac_var=$ac_new_val ;;
1960     esac
1961     case " $ac_configure_args " in
1962       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1963       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1964     esac
1965   fi
1966 done
1967 if $ac_cache_corrupted; then
1968   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1969 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1970   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1971 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991 ac_ext=c
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996
1997
1998 BUILD_DIR=`pwd`
1999 cd ..
2000 TOP_DIR=`pwd`
2001 cd ${BUILD_DIR}
2002
2003
2004 ac_aux_dir=
2005 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2006   if test -f "$ac_dir/install-sh"; then
2007     ac_aux_dir=$ac_dir
2008     ac_install_sh="$ac_aux_dir/install-sh -c"
2009     break
2010   elif test -f "$ac_dir/install.sh"; then
2011     ac_aux_dir=$ac_dir
2012     ac_install_sh="$ac_aux_dir/install.sh -c"
2013     break
2014   elif test -f "$ac_dir/shtool"; then
2015     ac_aux_dir=$ac_dir
2016     ac_install_sh="$ac_aux_dir/shtool install -c"
2017     break
2018   fi
2019 done
2020 if test -z "$ac_aux_dir"; then
2021   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2022 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2023    { (exit 1); exit 1; }; }
2024 fi
2025
2026 # These three variables are undocumented and unsupported,
2027 # and are intended to be withdrawn in a future Autoconf release.
2028 # They can cause serious problems if a builder's source tree is in a directory
2029 # whose full name contains unusual characters.
2030 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2031 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2032 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2033
2034
2035 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2036
2037
2038
2039
2040
2041 for ac_prog in true
2042 do
2043   # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2048   echo $ECHO_N "(cached) $ECHO_C" >&6
2049 else
2050   case $TRUEPRG in
2051   [\\/]* | ?:[\\/]*)
2052   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2053   ;;
2054   *)
2055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 for as_dir in $PATH
2057 do
2058   IFS=$as_save_IFS
2059   test -z "$as_dir" && as_dir=.
2060   for ac_exec_ext in '' $ac_executable_extensions; do
2061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2062     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064     break 2
2065   fi
2066 done
2067 done
2068 IFS=$as_save_IFS
2069
2070   ;;
2071 esac
2072 fi
2073 TRUEPRG=$ac_cv_path_TRUEPRG
2074 if test -n "$TRUEPRG"; then
2075   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2076 echo "${ECHO_T}$TRUEPRG" >&6; }
2077 else
2078   { echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6; }
2080 fi
2081
2082
2083   test -n "$TRUEPRG" && break
2084 done
2085 test -n "$TRUEPRG" || TRUEPRG=":"
2086
2087 for ac_prog in false
2088 do
2089   # Extract the first word of "$ac_prog", so it can be a program name with args.
2090 set dummy $ac_prog; ac_word=$2
2091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2093 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2094   echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096   case $FALSEPRG in
2097   [\\/]* | ?:[\\/]*)
2098   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2099   ;;
2100   *)
2101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2102 for as_dir in $PATH
2103 do
2104   IFS=$as_save_IFS
2105   test -z "$as_dir" && as_dir=.
2106   for ac_exec_ext in '' $ac_executable_extensions; do
2107   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2108     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2109     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110     break 2
2111   fi
2112 done
2113 done
2114 IFS=$as_save_IFS
2115
2116   ;;
2117 esac
2118 fi
2119 FALSEPRG=$ac_cv_path_FALSEPRG
2120 if test -n "$FALSEPRG"; then
2121   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2122 echo "${ECHO_T}$FALSEPRG" >&6; }
2123 else
2124   { echo "$as_me:$LINENO: result: no" >&5
2125 echo "${ECHO_T}no" >&6; }
2126 fi
2127
2128
2129   test -n "$FALSEPRG" && break
2130 done
2131 test -n "$FALSEPRG" || FALSEPRG=":"
2132
2133
2134
2135 post_host=
2136 if test "x$BACULA" != x; then
2137    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2138 fi
2139 BACULA=${BACULA-Bacula}
2140 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2141 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2142 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2143 echo "configuring for ${BACULA} $VERSION ($DATE)"
2144
2145
2146
2147 ac_ext=c
2148 ac_cpp='$CPP $CPPFLAGS'
2149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2152 if test -n "$ac_tool_prefix"; then
2153   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2154 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2157 if test "${ac_cv_prog_CC+set}" = set; then
2158   echo $ECHO_N "(cached) $ECHO_C" >&6
2159 else
2160   if test -n "$CC"; then
2161   ac_cv_prog_CC="$CC" # Let the user override the test.
2162 else
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2164 for as_dir in $PATH
2165 do
2166   IFS=$as_save_IFS
2167   test -z "$as_dir" && as_dir=.
2168   for ac_exec_ext in '' $ac_executable_extensions; do
2169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2171     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2172     break 2
2173   fi
2174 done
2175 done
2176 IFS=$as_save_IFS
2177
2178 fi
2179 fi
2180 CC=$ac_cv_prog_CC
2181 if test -n "$CC"; then
2182   { echo "$as_me:$LINENO: result: $CC" >&5
2183 echo "${ECHO_T}$CC" >&6; }
2184 else
2185   { echo "$as_me:$LINENO: result: no" >&5
2186 echo "${ECHO_T}no" >&6; }
2187 fi
2188
2189
2190 fi
2191 if test -z "$ac_cv_prog_CC"; then
2192   ac_ct_CC=$CC
2193   # Extract the first word of "gcc", so it can be a program name with args.
2194 set dummy gcc; ac_word=$2
2195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2197 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198   echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200   if test -n "$ac_ct_CC"; then
2201   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202 else
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2205 do
2206   IFS=$as_save_IFS
2207   test -z "$as_dir" && as_dir=.
2208   for ac_exec_ext in '' $ac_executable_extensions; do
2209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2210     ac_cv_prog_ac_ct_CC="gcc"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2216 IFS=$as_save_IFS
2217
2218 fi
2219 fi
2220 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2221 if test -n "$ac_ct_CC"; then
2222   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2223 echo "${ECHO_T}$ac_ct_CC" >&6; }
2224 else
2225   { echo "$as_me:$LINENO: result: no" >&5
2226 echo "${ECHO_T}no" >&6; }
2227 fi
2228
2229   if test "x$ac_ct_CC" = x; then
2230     CC=""
2231   else
2232     case $cross_compiling:$ac_tool_warned in
2233 yes:)
2234 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2235 whose name does not start with the host triplet.  If you think this
2236 configuration is useful to you, please write to autoconf@gnu.org." >&5
2237 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238 whose name does not start with the host triplet.  If you think this
2239 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240 ac_tool_warned=yes ;;
2241 esac
2242     CC=$ac_ct_CC
2243   fi
2244 else
2245   CC="$ac_cv_prog_CC"
2246 fi
2247
2248 if test -z "$CC"; then
2249           if test -n "$ac_tool_prefix"; then
2250     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2251 set dummy ${ac_tool_prefix}cc; ac_word=$2
2252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then
2255   echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257   if test -n "$CC"; then
2258   ac_cv_prog_CC="$CC" # Let the user override the test.
2259 else
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2261 for as_dir in $PATH
2262 do
2263   IFS=$as_save_IFS
2264   test -z "$as_dir" && as_dir=.
2265   for ac_exec_ext in '' $ac_executable_extensions; do
2266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2267     ac_cv_prog_CC="${ac_tool_prefix}cc"
2268     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2269     break 2
2270   fi
2271 done
2272 done
2273 IFS=$as_save_IFS
2274
2275 fi
2276 fi
2277 CC=$ac_cv_prog_CC
2278 if test -n "$CC"; then
2279   { echo "$as_me:$LINENO: result: $CC" >&5
2280 echo "${ECHO_T}$CC" >&6; }
2281 else
2282   { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2284 fi
2285
2286
2287   fi
2288 fi
2289 if test -z "$CC"; then
2290   # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295   echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297   if test -n "$CC"; then
2298   ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300   ac_prog_rejected=no
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304   IFS=$as_save_IFS
2305   test -z "$as_dir" && as_dir=.
2306   for ac_exec_ext in '' $ac_executable_extensions; do
2307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2309        ac_prog_rejected=yes
2310        continue
2311      fi
2312     ac_cv_prog_CC="cc"
2313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2314     break 2
2315   fi
2316 done
2317 done
2318 IFS=$as_save_IFS
2319
2320 if test $ac_prog_rejected = yes; then
2321   # We found a bogon in the path, so make sure we never use it.
2322   set dummy $ac_cv_prog_CC
2323   shift
2324   if test $# != 0; then
2325     # We chose a different compiler from the bogus one.
2326     # However, it has the same basename, so the bogon will be chosen
2327     # first if we set CC to just the basename; use the full file name.
2328     shift
2329     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2330   fi
2331 fi
2332 fi
2333 fi
2334 CC=$ac_cv_prog_CC
2335 if test -n "$CC"; then
2336   { echo "$as_me:$LINENO: result: $CC" >&5
2337 echo "${ECHO_T}$CC" >&6; }
2338 else
2339   { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2341 fi
2342
2343
2344 fi
2345 if test -z "$CC"; then
2346   if test -n "$ac_tool_prefix"; then
2347   for ac_prog in cl.exe
2348   do
2349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2353 if test "${ac_cv_prog_CC+set}" = set; then
2354   echo $ECHO_N "(cached) $ECHO_C" >&6
2355 else
2356   if test -n "$CC"; then
2357   ac_cv_prog_CC="$CC" # Let the user override the test.
2358 else
2359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360 for as_dir in $PATH
2361 do
2362   IFS=$as_save_IFS
2363   test -z "$as_dir" && as_dir=.
2364   for ac_exec_ext in '' $ac_executable_extensions; do
2365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2366     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2367     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2368     break 2
2369   fi
2370 done
2371 done
2372 IFS=$as_save_IFS
2373
2374 fi
2375 fi
2376 CC=$ac_cv_prog_CC
2377 if test -n "$CC"; then
2378   { echo "$as_me:$LINENO: result: $CC" >&5
2379 echo "${ECHO_T}$CC" >&6; }
2380 else
2381   { echo "$as_me:$LINENO: result: no" >&5
2382 echo "${ECHO_T}no" >&6; }
2383 fi
2384
2385
2386     test -n "$CC" && break
2387   done
2388 fi
2389 if test -z "$CC"; then
2390   ac_ct_CC=$CC
2391   for ac_prog in cl.exe
2392 do
2393   # Extract the first word of "$ac_prog", so it can be a program name with args.
2394 set dummy $ac_prog; ac_word=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2398   echo $ECHO_N "(cached) $ECHO_C" >&6
2399 else
2400   if test -n "$ac_ct_CC"; then
2401   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2402 else
2403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 for as_dir in $PATH
2405 do
2406   IFS=$as_save_IFS
2407   test -z "$as_dir" && as_dir=.
2408   for ac_exec_ext in '' $ac_executable_extensions; do
2409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2410     ac_cv_prog_ac_ct_CC="$ac_prog"
2411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2412     break 2
2413   fi
2414 done
2415 done
2416 IFS=$as_save_IFS
2417
2418 fi
2419 fi
2420 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2421 if test -n "$ac_ct_CC"; then
2422   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2423 echo "${ECHO_T}$ac_ct_CC" >&6; }
2424 else
2425   { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2427 fi
2428
2429
2430   test -n "$ac_ct_CC" && break
2431 done
2432
2433   if test "x$ac_ct_CC" = x; then
2434     CC=""
2435   else
2436     case $cross_compiling:$ac_tool_warned in
2437 yes:)
2438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet.  If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&5
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet.  If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2444 ac_tool_warned=yes ;;
2445 esac
2446     CC=$ac_ct_CC
2447   fi
2448 fi
2449
2450 fi
2451
2452
2453 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2454 See \`config.log' for more details." >&5
2455 echo "$as_me: error: no acceptable C compiler found in \$PATH
2456 See \`config.log' for more details." >&2;}
2457    { (exit 1); exit 1; }; }
2458
2459 # Provide some information about the compiler.
2460 echo "$as_me:$LINENO: checking for C compiler version" >&5
2461 ac_compiler=`set X $ac_compile; echo $2`
2462 { (ac_try="$ac_compiler --version >&5"
2463 case "(($ac_try" in
2464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465   *) ac_try_echo=$ac_try;;
2466 esac
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468   (eval "$ac_compiler --version >&5") 2>&5
2469   ac_status=$?
2470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471   (exit $ac_status); }
2472 { (ac_try="$ac_compiler -v >&5"
2473 case "(($ac_try" in
2474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475   *) ac_try_echo=$ac_try;;
2476 esac
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478   (eval "$ac_compiler -v >&5") 2>&5
2479   ac_status=$?
2480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }
2482 { (ac_try="$ac_compiler -V >&5"
2483 case "(($ac_try" in
2484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485   *) ac_try_echo=$ac_try;;
2486 esac
2487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2488   (eval "$ac_compiler -V >&5") 2>&5
2489   ac_status=$?
2490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491   (exit $ac_status); }
2492
2493 cat >conftest.$ac_ext <<_ACEOF
2494 /* confdefs.h.  */
2495 _ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h.  */
2499
2500 int
2501 main ()
2502 {
2503
2504   ;
2505   return 0;
2506 }
2507 _ACEOF
2508 ac_clean_files_save=$ac_clean_files
2509 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2510 # Try to create an executable without -o first, disregard a.out.
2511 # It will help us diagnose broken compilers, and finding out an intuition
2512 # of exeext.
2513 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2514 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2515 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2516 #
2517 # List of possible output files, starting from the most likely.
2518 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2519 # only as a last resort.  b.out is created by i960 compilers.
2520 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2521 #
2522 # The IRIX 6 linker writes into existing files which may not be
2523 # executable, retaining their permissions.  Remove them first so a
2524 # subsequent execution test works.
2525 ac_rmfiles=
2526 for ac_file in $ac_files
2527 do
2528   case $ac_file in
2529     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2530     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2531   esac
2532 done
2533 rm -f $ac_rmfiles
2534
2535 if { (ac_try="$ac_link_default"
2536 case "(($ac_try" in
2537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2538   *) ac_try_echo=$ac_try;;
2539 esac
2540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2541   (eval "$ac_link_default") 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); }; then
2545   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2546 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2547 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2548 # so that the user can short-circuit this test for compilers unknown to
2549 # Autoconf.
2550 for ac_file in $ac_files ''
2551 do
2552   test -f "$ac_file" || continue
2553   case $ac_file in
2554     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2555         ;;
2556     [ab].out )
2557         # We found the default executable, but exeext='' is most
2558         # certainly right.
2559         break;;
2560     *.* )
2561         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2562         then :; else
2563            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2564         fi
2565         # We set ac_cv_exeext here because the later test for it is not
2566         # safe: cross compilers may not add the suffix if given an `-o'
2567         # argument, so we may need to know it at that point already.
2568         # Even if this section looks crufty: it has the advantage of
2569         # actually working.
2570         break;;
2571     * )
2572         break;;
2573   esac
2574 done
2575 test "$ac_cv_exeext" = no && ac_cv_exeext=
2576
2577 else
2578   ac_file=''
2579 fi
2580
2581 { echo "$as_me:$LINENO: result: $ac_file" >&5
2582 echo "${ECHO_T}$ac_file" >&6; }
2583 if test -z "$ac_file"; then
2584   echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2586
2587 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&5
2589 echo "$as_me: error: C compiler cannot create executables
2590 See \`config.log' for more details." >&2;}
2591    { (exit 77); exit 77; }; }
2592 fi
2593
2594 ac_exeext=$ac_cv_exeext
2595
2596 # Check that the compiler produces executables we can run.  If not, either
2597 # the compiler is broken, or we cross compile.
2598 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603   if { ac_try='./$ac_file'
2604   { (case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_try") 2>&5
2610   ac_status=$?
2611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612   (exit $ac_status); }; }; then
2613     cross_compiling=no
2614   else
2615     if test "$cross_compiling" = maybe; then
2616         cross_compiling=yes
2617     else
2618         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2619 If you meant to cross compile, use \`--host'.
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot run C compiled programs.
2622 If you meant to cross compile, use \`--host'.
2623 See \`config.log' for more details." >&2;}
2624    { (exit 1); exit 1; }; }
2625     fi
2626   fi
2627 fi
2628 { echo "$as_me:$LINENO: result: yes" >&5
2629 echo "${ECHO_T}yes" >&6; }
2630
2631 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2632 ac_clean_files=$ac_clean_files_save
2633 # Check that the compiler produces executables we can run.  If not, either
2634 # the compiler is broken, or we cross compile.
2635 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2636 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2637 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2638 echo "${ECHO_T}$cross_compiling" >&6; }
2639
2640 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2641 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2642 if { (ac_try="$ac_link"
2643 case "(($ac_try" in
2644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645   *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648   (eval "$ac_link") 2>&5
2649   ac_status=$?
2650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); }; then
2652   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2653 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2654 # work properly (i.e., refer to `conftest.exe'), while it won't with
2655 # `rm'.
2656 for ac_file in conftest.exe conftest conftest.*; do
2657   test -f "$ac_file" || continue
2658   case $ac_file in
2659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2660     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661           break;;
2662     * ) break;;
2663   esac
2664 done
2665 else
2666   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2669 See \`config.log' for more details." >&2;}
2670    { (exit 1); exit 1; }; }
2671 fi
2672
2673 rm -f conftest$ac_cv_exeext
2674 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2675 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2676
2677 rm -f conftest.$ac_ext
2678 EXEEXT=$ac_cv_exeext
2679 ac_exeext=$EXEEXT
2680 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2681 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2682 if test "${ac_cv_objext+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.o conftest.obj
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compile") 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }; then
2711   for ac_file in conftest.o conftest.obj conftest.*; do
2712   test -f "$ac_file" || continue;
2713   case $ac_file in
2714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2715     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2716        break;;
2717   esac
2718 done
2719 else
2720   echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2724 See \`config.log' for more details." >&5
2725 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2726 See \`config.log' for more details." >&2;}
2727    { (exit 1); exit 1; }; }
2728 fi
2729
2730 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2731 fi
2732 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2733 echo "${ECHO_T}$ac_cv_objext" >&6; }
2734 OBJEXT=$ac_cv_objext
2735 ac_objext=$OBJEXT
2736 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2737 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2738 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2739   echo $ECHO_N "(cached) $ECHO_C" >&6
2740 else
2741   cat >conftest.$ac_ext <<_ACEOF
2742 /* confdefs.h.  */
2743 _ACEOF
2744 cat confdefs.h >>conftest.$ac_ext
2745 cat >>conftest.$ac_ext <<_ACEOF
2746 /* end confdefs.h.  */
2747
2748 int
2749 main ()
2750 {
2751 #ifndef __GNUC__
2752        choke me
2753 #endif
2754
2755   ;
2756   return 0;
2757 }
2758 _ACEOF
2759 rm -f conftest.$ac_objext
2760 if { (ac_try="$ac_compile"
2761 case "(($ac_try" in
2762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763   *) ac_try_echo=$ac_try;;
2764 esac
2765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2766   (eval "$ac_compile") 2>conftest.er1
2767   ac_status=$?
2768   grep -v '^ *+' conftest.er1 >conftest.err
2769   rm -f conftest.er1
2770   cat conftest.err >&5
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); } && {
2773          test -z "$ac_c_werror_flag" ||
2774          test ! -s conftest.err
2775        } && test -s conftest.$ac_objext; then
2776   ac_compiler_gnu=yes
2777 else
2778   echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781         ac_compiler_gnu=no
2782 fi
2783
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2786
2787 fi
2788 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2789 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2790 GCC=`test $ac_compiler_gnu = yes && echo yes`
2791 ac_test_CFLAGS=${CFLAGS+set}
2792 ac_save_CFLAGS=$CFLAGS
2793 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2794 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2795 if test "${ac_cv_prog_cc_g+set}" = set; then
2796   echo $ECHO_N "(cached) $ECHO_C" >&6
2797 else
2798   ac_save_c_werror_flag=$ac_c_werror_flag
2799    ac_c_werror_flag=yes
2800    ac_cv_prog_cc_g=no
2801    CFLAGS="-g"
2802    cat >conftest.$ac_ext <<_ACEOF
2803 /* confdefs.h.  */
2804 _ACEOF
2805 cat confdefs.h >>conftest.$ac_ext
2806 cat >>conftest.$ac_ext <<_ACEOF
2807 /* end confdefs.h.  */
2808
2809 int
2810 main ()
2811 {
2812
2813   ;
2814   return 0;
2815 }
2816 _ACEOF
2817 rm -f conftest.$ac_objext
2818 if { (ac_try="$ac_compile"
2819 case "(($ac_try" in
2820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821   *) ac_try_echo=$ac_try;;
2822 esac
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824   (eval "$ac_compile") 2>conftest.er1
2825   ac_status=$?
2826   grep -v '^ *+' conftest.er1 >conftest.err
2827   rm -f conftest.er1
2828   cat conftest.err >&5
2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830   (exit $ac_status); } && {
2831          test -z "$ac_c_werror_flag" ||
2832          test ! -s conftest.err
2833        } && test -s conftest.$ac_objext; then
2834   ac_cv_prog_cc_g=yes
2835 else
2836   echo "$as_me: failed program was:" >&5
2837 sed 's/^/| /' conftest.$ac_ext >&5
2838
2839         CFLAGS=""
2840       cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846
2847 int
2848 main ()
2849 {
2850
2851   ;
2852   return 0;
2853 }
2854 _ACEOF
2855 rm -f conftest.$ac_objext
2856 if { (ac_try="$ac_compile"
2857 case "(($ac_try" in
2858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859   *) ac_try_echo=$ac_try;;
2860 esac
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862   (eval "$ac_compile") 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } && {
2869          test -z "$ac_c_werror_flag" ||
2870          test ! -s conftest.err
2871        } && test -s conftest.$ac_objext; then
2872   :
2873 else
2874   echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877         ac_c_werror_flag=$ac_save_c_werror_flag
2878          CFLAGS="-g"
2879          cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885
2886 int
2887 main ()
2888 {
2889
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2896 case "(($ac_try" in
2897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2898   *) ac_try_echo=$ac_try;;
2899 esac
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901   (eval "$ac_compile") 2>conftest.er1
2902   ac_status=$?
2903   grep -v '^ *+' conftest.er1 >conftest.err
2904   rm -f conftest.er1
2905   cat conftest.err >&5
2906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907   (exit $ac_status); } && {
2908          test -z "$ac_c_werror_flag" ||
2909          test ! -s conftest.err
2910        } && test -s conftest.$ac_objext; then
2911   ac_cv_prog_cc_g=yes
2912 else
2913   echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.$ac_ext >&5
2915
2916
2917 fi
2918
2919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2920 fi
2921
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2923 fi
2924
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926    ac_c_werror_flag=$ac_save_c_werror_flag
2927 fi
2928 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2929 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2930 if test "$ac_test_CFLAGS" = set; then
2931   CFLAGS=$ac_save_CFLAGS
2932 elif test $ac_cv_prog_cc_g = yes; then
2933   if test "$GCC" = yes; then
2934     CFLAGS="-g -O2"
2935   else
2936     CFLAGS="-g"
2937   fi
2938 else
2939   if test "$GCC" = yes; then
2940     CFLAGS="-O2"
2941   else
2942     CFLAGS=
2943   fi
2944 fi
2945 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2946 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2947 if test "${ac_cv_prog_cc_c89+set}" = set; then
2948   echo $ECHO_N "(cached) $ECHO_C" >&6
2949 else
2950   ac_cv_prog_cc_c89=no
2951 ac_save_CC=$CC
2952 cat >conftest.$ac_ext <<_ACEOF
2953 /* confdefs.h.  */
2954 _ACEOF
2955 cat confdefs.h >>conftest.$ac_ext
2956 cat >>conftest.$ac_ext <<_ACEOF
2957 /* end confdefs.h.  */
2958 #include <stdarg.h>
2959 #include <stdio.h>
2960 #include <sys/types.h>
2961 #include <sys/stat.h>
2962 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2963 struct buf { int x; };
2964 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2965 static char *e (p, i)
2966      char **p;
2967      int i;
2968 {
2969   return p[i];
2970 }
2971 static char *f (char * (*g) (char **, int), char **p, ...)
2972 {
2973   char *s;
2974   va_list v;
2975   va_start (v,p);
2976   s = g (p, va_arg (v,int));
2977   va_end (v);
2978   return s;
2979 }
2980
2981 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2982    function prototypes and stuff, but not '\xHH' hex character constants.
2983    These don't provoke an error unfortunately, instead are silently treated
2984    as 'x'.  The following induces an error, until -std is added to get
2985    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2986    array size at least.  It's necessary to write '\x00'==0 to get something
2987    that's true only with -std.  */
2988 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2989
2990 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2991    inside strings and character constants.  */
2992 #define FOO(x) 'x'
2993 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2994
2995 int test (int i, double x);
2996 struct s1 {int (*f) (int a);};
2997 struct s2 {int (*f) (double a);};
2998 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2999 int argc;
3000 char **argv;
3001 int
3002 main ()
3003 {
3004 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3005   ;
3006   return 0;
3007 }
3008 _ACEOF
3009 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3010         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3011 do
3012   CC="$ac_save_CC $ac_arg"
3013   rm -f conftest.$ac_objext
3014 if { (ac_try="$ac_compile"
3015 case "(($ac_try" in
3016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3017   *) ac_try_echo=$ac_try;;
3018 esac
3019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3020   (eval "$ac_compile") 2>conftest.er1
3021   ac_status=$?
3022   grep -v '^ *+' conftest.er1 >conftest.err
3023   rm -f conftest.er1
3024   cat conftest.err >&5
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); } && {
3027          test -z "$ac_c_werror_flag" ||
3028          test ! -s conftest.err
3029        } && test -s conftest.$ac_objext; then
3030   ac_cv_prog_cc_c89=$ac_arg
3031 else
3032   echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035
3036 fi
3037
3038 rm -f core conftest.err conftest.$ac_objext
3039   test "x$ac_cv_prog_cc_c89" != "xno" && break
3040 done
3041 rm -f conftest.$ac_ext
3042 CC=$ac_save_CC
3043
3044 fi
3045 # AC_CACHE_VAL
3046 case "x$ac_cv_prog_cc_c89" in
3047   x)
3048     { echo "$as_me:$LINENO: result: none needed" >&5
3049 echo "${ECHO_T}none needed" >&6; } ;;
3050   xno)
3051     { echo "$as_me:$LINENO: result: unsupported" >&5
3052 echo "${ECHO_T}unsupported" >&6; } ;;
3053   *)
3054     CC="$CC $ac_cv_prog_cc_c89"
3055     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3056 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3057 esac
3058
3059
3060 ac_ext=c
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3065
3066 ac_ext=cpp
3067 ac_cpp='$CXXCPP $CPPFLAGS'
3068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3071 if test -z "$CXX"; then
3072   if test -n "$CCC"; then
3073     CXX=$CCC
3074   else
3075     if test -n "$ac_tool_prefix"; then
3076   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3077   do
3078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_CXX+set}" = set; then
3083   echo $ECHO_N "(cached) $ECHO_C" >&6
3084 else
3085   if test -n "$CXX"; then
3086   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093   for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 CXX=$ac_cv_prog_CXX
3106 if test -n "$CXX"; then
3107   { echo "$as_me:$LINENO: result: $CXX" >&5
3108 echo "${ECHO_T}$CXX" >&6; }
3109 else
3110   { echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6; }
3112 fi
3113
3114
3115     test -n "$CXX" && break
3116   done
3117 fi
3118 if test -z "$CXX"; then
3119   ac_ct_CXX=$CXX
3120   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3121 do
3122   # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy $ac_prog; ac_word=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3127   echo $ECHO_N "(cached) $ECHO_C" >&6
3128 else
3129   if test -n "$ac_ct_CXX"; then
3130   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137   for ac_exec_ext in '' $ac_executable_extensions; do
3138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139     ac_cv_prog_ac_ct_CXX="$ac_prog"
3140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144 done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3150 if test -n "$ac_ct_CXX"; then
3151   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3152 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3153 else
3154   { echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6; }
3156 fi
3157
3158
3159   test -n "$ac_ct_CXX" && break
3160 done
3161
3162   if test "x$ac_ct_CXX" = x; then
3163     CXX="g++"
3164   else
3165     case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet.  If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&5
3170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171 whose name does not start with the host triplet.  If you think this
3172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173 ac_tool_warned=yes ;;
3174 esac
3175     CXX=$ac_ct_CXX
3176   fi
3177 fi
3178
3179   fi
3180 fi
3181 # Provide some information about the compiler.
3182 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3183 ac_compiler=`set X $ac_compile; echo $2`
3184 { (ac_try="$ac_compiler --version >&5"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_compiler --version >&5") 2>&5
3191   ac_status=$?
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); }
3194 { (ac_try="$ac_compiler -v >&5"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_compiler -v >&5") 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }
3204 { (ac_try="$ac_compiler -V >&5"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_compiler -V >&5") 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }
3214
3215 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3216 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3217 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3218   echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220   cat >conftest.$ac_ext <<_ACEOF
3221 /* confdefs.h.  */
3222 _ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h.  */
3226
3227 int
3228 main ()
3229 {
3230 #ifndef __GNUC__
3231        choke me
3232 #endif
3233
3234   ;
3235   return 0;
3236 }
3237 _ACEOF
3238 rm -f conftest.$ac_objext
3239 if { (ac_try="$ac_compile"
3240 case "(($ac_try" in
3241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242   *) ac_try_echo=$ac_try;;
3243 esac
3244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3245   (eval "$ac_compile") 2>conftest.er1
3246   ac_status=$?
3247   grep -v '^ *+' conftest.er1 >conftest.err
3248   rm -f conftest.er1
3249   cat conftest.err >&5
3250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251   (exit $ac_status); } && {
3252          test -z "$ac_cxx_werror_flag" ||
3253          test ! -s conftest.err
3254        } && test -s conftest.$ac_objext; then
3255   ac_compiler_gnu=yes
3256 else
3257   echo "$as_me: failed program was:" >&5
3258 sed 's/^/| /' conftest.$ac_ext >&5
3259
3260         ac_compiler_gnu=no
3261 fi
3262
3263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3265
3266 fi
3267 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3268 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3269 GXX=`test $ac_compiler_gnu = yes && echo yes`
3270 ac_test_CXXFLAGS=${CXXFLAGS+set}
3271 ac_save_CXXFLAGS=$CXXFLAGS
3272 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3273 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3274 if test "${ac_cv_prog_cxx_g+set}" = set; then
3275   echo $ECHO_N "(cached) $ECHO_C" >&6
3276 else
3277   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3278    ac_cxx_werror_flag=yes
3279    ac_cv_prog_cxx_g=no
3280    CXXFLAGS="-g"
3281    cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3303   (eval "$ac_compile") 2>conftest.er1
3304   ac_status=$?
3305   grep -v '^ *+' conftest.er1 >conftest.err
3306   rm -f conftest.er1
3307   cat conftest.err >&5
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); } && {
3310          test -z "$ac_cxx_werror_flag" ||
3311          test ! -s conftest.err
3312        } && test -s conftest.$ac_objext; then
3313   ac_cv_prog_cxx_g=yes
3314 else
3315   echo "$as_me: failed program was:" >&5
3316 sed 's/^/| /' conftest.$ac_ext >&5
3317
3318         CXXFLAGS=""
3319       cat >conftest.$ac_ext <<_ACEOF
3320 /* confdefs.h.  */
3321 _ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h.  */
3325
3326 int
3327 main ()
3328 {
3329
3330   ;
3331   return 0;
3332 }
3333 _ACEOF
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3336 case "(($ac_try" in
3337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338   *) ac_try_echo=$ac_try;;
3339 esac
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341   (eval "$ac_compile") 2>conftest.er1
3342   ac_status=$?
3343   grep -v '^ *+' conftest.er1 >conftest.err
3344   rm -f conftest.er1
3345   cat conftest.err >&5
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } && {
3348          test -z "$ac_cxx_werror_flag" ||
3349          test ! -s conftest.err
3350        } && test -s conftest.$ac_objext; then
3351   :
3352 else
3353   echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3355
3356         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3357          CXXFLAGS="-g"
3358          cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h.  */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h.  */
3364
3365 int
3366 main ()
3367 {
3368
3369   ;
3370   return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380   (eval "$ac_compile") 2>conftest.er1
3381   ac_status=$?
3382   grep -v '^ *+' conftest.er1 >conftest.err
3383   rm -f conftest.er1
3384   cat conftest.err >&5
3385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386   (exit $ac_status); } && {
3387          test -z "$ac_cxx_werror_flag" ||
3388          test ! -s conftest.err
3389        } && test -s conftest.$ac_objext; then
3390   ac_cv_prog_cxx_g=yes
3391 else
3392   echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395
3396 fi
3397
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3399 fi
3400
3401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 fi
3403
3404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3406 fi
3407 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3408 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3409 if test "$ac_test_CXXFLAGS" = set; then
3410   CXXFLAGS=$ac_save_CXXFLAGS
3411 elif test $ac_cv_prog_cxx_g = yes; then
3412   if test "$GXX" = yes; then
3413     CXXFLAGS="-g -O2"
3414   else
3415     CXXFLAGS="-g"
3416   fi
3417 else
3418   if test "$GXX" = yes; then
3419     CXXFLAGS="-O2"
3420   else
3421     CXXFLAGS=
3422   fi
3423 fi
3424 ac_ext=c
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429
3430 if test "x$CC" != xcc; then
3431   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3432 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3433 else
3434   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3435 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3436 fi
3437 set dummy $CC; ac_cc=`echo $2 |
3438                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3439 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3440   echo $ECHO_N "(cached) $ECHO_C" >&6
3441 else
3442   cat >conftest.$ac_ext <<_ACEOF
3443 /* confdefs.h.  */
3444 _ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h.  */
3448
3449 int
3450 main ()
3451 {
3452
3453   ;
3454   return 0;
3455 }
3456 _ACEOF
3457 # Make sure it works both with $CC and with simple cc.
3458 # We do the test twice because some compilers refuse to overwrite an
3459 # existing .o file with -o, though they will create one.
3460 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3461 rm -f conftest2.*
3462 if { (case "(($ac_try" in
3463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464   *) ac_try_echo=$ac_try;;
3465 esac
3466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3467   (eval "$ac_try") 2>&5
3468   ac_status=$?
3469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470   (exit $ac_status); } &&
3471    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473   *) ac_try_echo=$ac_try;;
3474 esac
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476   (eval "$ac_try") 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); };
3480 then
3481   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3482   if test "x$CC" != xcc; then
3483     # Test first that cc exists at all.
3484     if { ac_try='cc -c conftest.$ac_ext >&5'
3485   { (case "(($ac_try" in
3486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487   *) ac_try_echo=$ac_try;;
3488 esac
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490   (eval "$ac_try") 2>&5
3491   ac_status=$?
3492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); }; }; then
3494       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3495       rm -f conftest2.*
3496       if { (case "(($ac_try" in
3497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498   *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501   (eval "$ac_try") 2>&5
3502   ac_status=$?
3503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } &&
3505          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510   (eval "$ac_try") 2>&5
3511   ac_status=$?
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); };
3514       then
3515         # cc works too.
3516         :
3517       else
3518         # cc exists but doesn't like -o.
3519         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3520       fi
3521     fi
3522   fi
3523 else
3524   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3525 fi
3526 rm -f core conftest*
3527
3528 fi
3529 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3530   { echo "$as_me:$LINENO: result: yes" >&5
3531 echo "${ECHO_T}yes" >&6; }
3532 else
3533   { echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6; }
3535
3536 cat >>confdefs.h <<\_ACEOF
3537 #define NO_MINUS_C_MINUS_O 1
3538 _ACEOF
3539
3540 fi
3541
3542 ac_ext=c
3543 ac_cpp='$CPP $CPPFLAGS'
3544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3547 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3548 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3549 # On Suns, sometimes $CPP names a directory.
3550 if test -n "$CPP" && test -d "$CPP"; then
3551   CPP=
3552 fi
3553 if test -z "$CPP"; then
3554   if test "${ac_cv_prog_CPP+set}" = set; then
3555   echo $ECHO_N "(cached) $ECHO_C" >&6
3556 else
3557       # Double quotes because CPP needs to be expanded
3558     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3559     do
3560       ac_preproc_ok=false
3561 for ac_c_preproc_warn_flag in '' yes
3562 do
3563   # Use a header file that comes with gcc, so configuring glibc
3564   # with a fresh cross-compiler works.
3565   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3566   # <limits.h> exists even on freestanding compilers.
3567   # On the NeXT, cc -E runs the code through the compiler's parser,
3568   # not just through cpp. "Syntax error" is here to catch this case.
3569   cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h.  */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h.  */
3575 #ifdef __STDC__
3576 # include <limits.h>
3577 #else
3578 # include <assert.h>
3579 #endif
3580                      Syntax error
3581 _ACEOF
3582 if { (ac_try="$ac_cpp conftest.$ac_ext"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3589   ac_status=$?
3590   grep -v '^ *+' conftest.er1 >conftest.err
3591   rm -f conftest.er1
3592   cat conftest.err >&5
3593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594   (exit $ac_status); } >/dev/null && {
3595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3596          test ! -s conftest.err
3597        }; then
3598   :
3599 else
3600   echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3602
3603   # Broken: fails on valid input.
3604 continue
3605 fi
3606
3607 rm -f conftest.err conftest.$ac_ext
3608
3609   # OK, works on sane cases.  Now check whether nonexistent headers
3610   # can be detected and how.
3611   cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h.  */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h.  */
3617 #include <ac_nonexistent.h>
3618 _ACEOF
3619 if { (ac_try="$ac_cpp conftest.$ac_ext"
3620 case "(($ac_try" in
3621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622   *) ac_try_echo=$ac_try;;
3623 esac
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3626   ac_status=$?
3627   grep -v '^ *+' conftest.er1 >conftest.err
3628   rm -f conftest.er1
3629   cat conftest.err >&5
3630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631   (exit $ac_status); } >/dev/null && {
3632          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633          test ! -s conftest.err
3634        }; then
3635   # Broken: success on invalid input.
3636 continue
3637 else
3638   echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.$ac_ext >&5
3640
3641   # Passes both tests.
3642 ac_preproc_ok=:
3643 break
3644 fi
3645
3646 rm -f conftest.err conftest.$ac_ext
3647
3648 done
3649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3650 rm -f conftest.err conftest.$ac_ext
3651 if $ac_preproc_ok; then
3652   break
3653 fi
3654
3655     done
3656     ac_cv_prog_CPP=$CPP
3657
3658 fi
3659   CPP=$ac_cv_prog_CPP
3660 else
3661   ac_cv_prog_CPP=$CPP
3662 fi
3663 { echo "$as_me:$LINENO: result: $CPP" >&5
3664 echo "${ECHO_T}$CPP" >&6; }
3665 ac_preproc_ok=false
3666 for ac_c_preproc_warn_flag in '' yes
3667 do
3668   # Use a header file that comes with gcc, so configuring glibc
3669   # with a fresh cross-compiler works.
3670   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3671   # <limits.h> exists even on freestanding compilers.
3672   # On the NeXT, cc -E runs the code through the compiler's parser,
3673   # not just through cpp. "Syntax error" is here to catch this case.
3674   cat >conftest.$ac_ext <<_ACEOF
3675 /* confdefs.h.  */
3676 _ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h.  */
3680 #ifdef __STDC__
3681 # include <limits.h>
3682 #else
3683 # include <assert.h>
3684 #endif
3685                      Syntax error
3686 _ACEOF
3687 if { (ac_try="$ac_cpp conftest.$ac_ext"
3688 case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3694   ac_status=$?
3695   grep -v '^ *+' conftest.er1 >conftest.err
3696   rm -f conftest.er1
3697   cat conftest.err >&5
3698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3699   (exit $ac_status); } >/dev/null && {
3700          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3701          test ! -s conftest.err
3702        }; then
3703   :
3704 else
3705   echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708   # Broken: fails on valid input.
3709 continue
3710 fi
3711
3712 rm -f conftest.err conftest.$ac_ext
3713
3714   # OK, works on sane cases.  Now check whether nonexistent headers
3715   # can be detected and how.
3716   cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h.  */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h.  */
3722 #include <ac_nonexistent.h>
3723 _ACEOF
3724 if { (ac_try="$ac_cpp conftest.$ac_ext"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731   ac_status=$?
3732   grep -v '^ *+' conftest.er1 >conftest.err
3733   rm -f conftest.er1
3734   cat conftest.err >&5
3735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736   (exit $ac_status); } >/dev/null && {
3737          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3738          test ! -s conftest.err
3739        }; then
3740   # Broken: success on invalid input.
3741 continue
3742 else
3743   echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746   # Passes both tests.
3747 ac_preproc_ok=:
3748 break
3749 fi
3750
3751 rm -f conftest.err conftest.$ac_ext
3752
3753 done
3754 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3755 rm -f conftest.err conftest.$ac_ext
3756 if $ac_preproc_ok; then
3757   :
3758 else
3759   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3760 See \`config.log' for more details." >&5
3761 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3762 See \`config.log' for more details." >&2;}
3763    { (exit 1); exit 1; }; }
3764 fi
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771
3772
3773 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3774 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3775 if test "${ac_cv_path_GREP+set}" = set; then
3776   echo $ECHO_N "(cached) $ECHO_C" >&6
3777 else
3778   # Extract the first word of "grep ggrep" to use in msg output
3779 if test -z "$GREP"; then
3780 set dummy grep ggrep; ac_prog_name=$2
3781 if test "${ac_cv_path_GREP+set}" = set; then
3782   echo $ECHO_N "(cached) $ECHO_C" >&6
3783 else
3784   ac_path_GREP_found=false
3785 # Loop through the user's path and test for each of PROGNAME-LIST
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3788 do
3789   IFS=$as_save_IFS
3790   test -z "$as_dir" && as_dir=.
3791   for ac_prog in grep ggrep; do
3792   for ac_exec_ext in '' $ac_executable_extensions; do
3793     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3794     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3795     # Check for GNU ac_path_GREP and select it if it is found.
3796   # Check for GNU $ac_path_GREP
3797 case `"$ac_path_GREP" --version 2>&1` in
3798 *GNU*)
3799   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3800 *)
3801   ac_count=0
3802   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3803   while :
3804   do
3805     cat "conftest.in" "conftest.in" >"conftest.tmp"
3806     mv "conftest.tmp" "conftest.in"
3807     cp "conftest.in" "conftest.nl"
3808     echo 'GREP' >> "conftest.nl"
3809     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3810     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3811     ac_count=`expr $ac_count + 1`
3812     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3813       # Best one so far, save it but keep looking for a better one
3814       ac_cv_path_GREP="$ac_path_GREP"
3815       ac_path_GREP_max=$ac_count
3816     fi
3817     # 10*(2^10) chars as input seems more than enough
3818     test $ac_count -gt 10 && break
3819   done
3820   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3821 esac
3822
3823
3824     $ac_path_GREP_found && break 3
3825   done
3826 done
3827
3828 done
3829 IFS=$as_save_IFS
3830
3831
3832 fi
3833
3834 GREP="$ac_cv_path_GREP"
3835 if test -z "$GREP"; then
3836   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3837 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3838    { (exit 1); exit 1; }; }
3839 fi
3840
3841 else
3842   ac_cv_path_GREP=$GREP
3843 fi
3844
3845
3846 fi
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3849  GREP="$ac_cv_path_GREP"
3850
3851
3852 { echo "$as_me:$LINENO: checking for egrep" >&5
3853 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3854 if test "${ac_cv_path_EGREP+set}" = set; then
3855   echo $ECHO_N "(cached) $ECHO_C" >&6
3856 else
3857   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3858    then ac_cv_path_EGREP="$GREP -E"
3859    else
3860      # Extract the first word of "egrep" to use in msg output
3861 if test -z "$EGREP"; then
3862 set dummy egrep; ac_prog_name=$2
3863 if test "${ac_cv_path_EGREP+set}" = set; then
3864   echo $ECHO_N "(cached) $ECHO_C" >&6
3865 else
3866   ac_path_EGREP_found=false
3867 # Loop through the user's path and test for each of PROGNAME-LIST
3868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3870 do
3871   IFS=$as_save_IFS
3872   test -z "$as_dir" && as_dir=.
3873   for ac_prog in egrep; do
3874   for ac_exec_ext in '' $ac_executable_extensions; do
3875     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3877     # Check for GNU ac_path_EGREP and select it if it is found.
3878   # Check for GNU $ac_path_EGREP
3879 case `"$ac_path_EGREP" --version 2>&1` in
3880 *GNU*)
3881   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3882 *)
3883   ac_count=0
3884   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3885   while :
3886   do
3887     cat "conftest.in" "conftest.in" >"conftest.tmp"
3888     mv "conftest.tmp" "conftest.in"
3889     cp "conftest.in" "conftest.nl"
3890     echo 'EGREP' >> "conftest.nl"
3891     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893     ac_count=`expr $ac_count + 1`
3894     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895       # Best one so far, save it but keep looking for a better one
3896       ac_cv_path_EGREP="$ac_path_EGREP"
3897       ac_path_EGREP_max=$ac_count
3898     fi
3899     # 10*(2^10) chars as input seems more than enough
3900     test $ac_count -gt 10 && break
3901   done
3902   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3903 esac
3904
3905
3906     $ac_path_EGREP_found && break 3
3907   done
3908 done
3909
3910 done
3911 IFS=$as_save_IFS
3912
3913
3914 fi
3915
3916 EGREP="$ac_cv_path_EGREP"
3917 if test -z "$EGREP"; then
3918   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3919 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3920    { (exit 1); exit 1; }; }
3921 fi
3922
3923 else
3924   ac_cv_path_EGREP=$EGREP
3925 fi
3926
3927
3928    fi
3929 fi
3930 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3931 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3932  EGREP="$ac_cv_path_EGREP"
3933
3934
3935 if test $ac_cv_c_compiler_gnu = yes; then
3936     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3937 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3938 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3939   echo $ECHO_N "(cached) $ECHO_C" >&6
3940 else
3941     ac_pattern="Autoconf.*'x'"
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #include <sgtty.h>
3949 Autoconf TIOCGETP
3950 _ACEOF
3951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3952   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3953   ac_cv_prog_gcc_traditional=yes
3954 else
3955   ac_cv_prog_gcc_traditional=no
3956 fi
3957 rm -f conftest*
3958
3959
3960   if test $ac_cv_prog_gcc_traditional = no; then
3961     cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h.  */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h.  */
3967 #include <termio.h>
3968 Autoconf TCGETA
3969 _ACEOF
3970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3971   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3972   ac_cv_prog_gcc_traditional=yes
3973 fi
3974 rm -f conftest*
3975
3976   fi
3977 fi
3978 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3979 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3980   if test $ac_cv_prog_gcc_traditional = yes; then
3981     CC="$CC -traditional"
3982   fi
3983 fi
3984
3985 BASECC=`basename $CC`
3986 have_gcc=no
3987 if test "x$BASECC" = xgcc; then
3988    cat >>confdefs.h <<\_ACEOF
3989 #define HAVE_GCC 1
3990 _ACEOF
3991
3992    have_gcc=yes
3993 fi
3994 # Extract the first word of "$CXX", so it can be a program name with args.
3995 set dummy $CXX; ac_word=$2
3996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3998 if test "${ac_cv_path_CXX+set}" = set; then
3999   echo $ECHO_N "(cached) $ECHO_C" >&6
4000 else
4001   case $CXX in
4002   [\\/]* | ?:[\\/]*)
4003   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4004   ;;
4005   *)
4006   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4008 do
4009   IFS=$as_save_IFS
4010   test -z "$as_dir" && as_dir=.
4011   for ac_exec_ext in '' $ac_executable_extensions; do
4012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015     break 2
4016   fi
4017 done
4018 done
4019 IFS=$as_save_IFS
4020
4021   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4022   ;;
4023 esac
4024 fi
4025 CXX=$ac_cv_path_CXX
4026 if test -n "$CXX"; then
4027   { echo "$as_me:$LINENO: result: $CXX" >&5
4028 echo "${ECHO_T}$CXX" >&6; }
4029 else
4030   { echo "$as_me:$LINENO: result: no" >&5
4031 echo "${ECHO_T}no" >&6; }
4032 fi
4033
4034
4035 if test ! -e $CXX; then
4036    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4037 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4038    { (exit 1); exit 1; }; }
4039 fi
4040
4041 # Find a good install program.  We prefer a C program (faster),
4042 # so one script is as good as another.  But avoid the broken or
4043 # incompatible versions:
4044 # SysV /etc/install, /usr/sbin/install
4045 # SunOS /usr/etc/install
4046 # IRIX /sbin/install
4047 # AIX /bin/install
4048 # AmigaOS /C/install, which installs bootblocks on floppy discs
4049 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4050 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4051 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4052 # OS/2's system install, which has a completely different semantic
4053 # ./install, which can be erroneously created by make from ./install.sh.
4054 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4055 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4056 if test -z "$INSTALL"; then
4057 if test "${ac_cv_path_install+set}" = set; then
4058   echo $ECHO_N "(cached) $ECHO_C" >&6
4059 else
4060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 for as_dir in $PATH
4062 do
4063   IFS=$as_save_IFS
4064   test -z "$as_dir" && as_dir=.
4065   # Account for people who put trailing slashes in PATH elements.
4066 case $as_dir/ in
4067   ./ | .// | /cC/* | \
4068   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4069   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4070   /usr/ucb/* ) ;;
4071   *)
4072     # OSF1 and SCO ODT 3.0 have their own names for install.
4073     # Don't use installbsd from OSF since it installs stuff as root
4074     # by default.
4075     for ac_prog in ginstall scoinst install; do
4076       for ac_exec_ext in '' $ac_executable_extensions; do
4077         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4078           if test $ac_prog = install &&
4079             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4080             # AIX install.  It has an incompatible calling convention.
4081             :
4082           elif test $ac_prog = install &&
4083             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4084             # program-specific install script used by HP pwplus--don't use.
4085             :
4086           else
4087             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4088             break 3
4089           fi
4090         fi
4091       done
4092     done
4093     ;;
4094 esac
4095 done
4096 IFS=$as_save_IFS
4097
4098
4099 fi
4100   if test "${ac_cv_path_install+set}" = set; then
4101     INSTALL=$ac_cv_path_install
4102   else
4103     # As a last resort, use the slow shell script.  Don't cache a
4104     # value for INSTALL within a source directory, because that will
4105     # break other packages using the cache if that directory is
4106     # removed, or if the value is a relative name.
4107     INSTALL=$ac_install_sh
4108   fi
4109 fi
4110 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4111 echo "${ECHO_T}$INSTALL" >&6; }
4112
4113 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4114 # It thinks the first close brace ends the variable substitution.
4115 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4116
4117 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4118
4119 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4120
4121 if test -n "$ac_tool_prefix"; then
4122   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4123 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4126 if test "${ac_cv_prog_RANLIB+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   if test -n "$RANLIB"; then
4130   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4134 do
4135   IFS=$as_save_IFS
4136   test -z "$as_dir" && as_dir=.
4137   for ac_exec_ext in '' $ac_executable_extensions; do
4138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4140     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4141     break 2
4142   fi
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147 fi
4148 fi
4149 RANLIB=$ac_cv_prog_RANLIB
4150 if test -n "$RANLIB"; then
4151   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4152 echo "${ECHO_T}$RANLIB" >&6; }
4153 else
4154   { echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6; }
4156 fi
4157
4158
4159 fi
4160 if test -z "$ac_cv_prog_RANLIB"; then
4161   ac_ct_RANLIB=$RANLIB
4162   # Extract the first word of "ranlib", so it can be a program name with args.
4163 set dummy ranlib; ac_word=$2
4164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4166 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4167   echo $ECHO_N "(cached) $ECHO_C" >&6
4168 else
4169   if test -n "$ac_ct_RANLIB"; then
4170   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4174 do
4175   IFS=$as_save_IFS
4176   test -z "$as_dir" && as_dir=.
4177   for ac_exec_ext in '' $ac_executable_extensions; do
4178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179     ac_cv_prog_ac_ct_RANLIB="ranlib"
4180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4181     break 2
4182   fi
4183 done
4184 done
4185 IFS=$as_save_IFS
4186
4187 fi
4188 fi
4189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4190 if test -n "$ac_ct_RANLIB"; then
4191   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4192 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4193 else
4194   { echo "$as_me:$LINENO: result: no" >&5
4195 echo "${ECHO_T}no" >&6; }
4196 fi
4197
4198   if test "x$ac_ct_RANLIB" = x; then
4199     RANLIB=":"
4200   else
4201     case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4204 whose name does not start with the host triplet.  If you think this
4205 configuration is useful to you, please write to autoconf@gnu.org." >&5
4206 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4207 whose name does not start with the host triplet.  If you think this
4208 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4209 ac_tool_warned=yes ;;
4210 esac
4211     RANLIB=$ac_ct_RANLIB
4212   fi
4213 else
4214   RANLIB="$ac_cv_prog_RANLIB"
4215 fi
4216
4217 # Extract the first word of "mv", so it can be a program name with args.
4218 set dummy mv; ac_word=$2
4219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4221 if test "${ac_cv_path_MV+set}" = set; then
4222   echo $ECHO_N "(cached) $ECHO_C" >&6
4223 else
4224   case $MV in
4225   [\\/]* | ?:[\\/]*)
4226   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4227   ;;
4228   *)
4229   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4231 do
4232   IFS=$as_save_IFS
4233   test -z "$as_dir" && as_dir=.
4234   for ac_exec_ext in '' $ac_executable_extensions; do
4235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4236     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4237     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241 done
4242 IFS=$as_save_IFS
4243
4244   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4245   ;;
4246 esac
4247 fi
4248 MV=$ac_cv_path_MV
4249 if test -n "$MV"; then
4250   { echo "$as_me:$LINENO: result: $MV" >&5
4251 echo "${ECHO_T}$MV" >&6; }
4252 else
4253   { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4255 fi
4256
4257
4258 # Extract the first word of "rm", so it can be a program name with args.
4259 set dummy rm; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_path_RM+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   case $RM in
4266   [\\/]* | ?:[\\/]*)
4267   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4268   ;;
4269   *)
4270   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 for as_dir in $PATH
4272 do
4273   IFS=$as_save_IFS
4274   test -z "$as_dir" && as_dir=.
4275   for ac_exec_ext in '' $ac_executable_extensions; do
4276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4278     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4279     break 2
4280   fi
4281 done
4282 done
4283 IFS=$as_save_IFS
4284
4285   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4286   ;;
4287 esac
4288 fi
4289 RM=$ac_cv_path_RM
4290 if test -n "$RM"; then
4291   { echo "$as_me:$LINENO: result: $RM" >&5
4292 echo "${ECHO_T}$RM" >&6; }
4293 else
4294   { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4296 fi
4297
4298
4299 # Extract the first word of "cp", so it can be a program name with args.
4300 set dummy cp; ac_word=$2
4301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4303 if test "${ac_cv_path_CP+set}" = set; then
4304   echo $ECHO_N "(cached) $ECHO_C" >&6
4305 else
4306   case $CP in
4307   [\\/]* | ?:[\\/]*)
4308   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4309   ;;
4310   *)
4311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316   for ac_exec_ext in '' $ac_executable_extensions; do
4317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323 done
4324 IFS=$as_save_IFS
4325
4326   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4327   ;;
4328 esac
4329 fi
4330 CP=$ac_cv_path_CP
4331 if test -n "$CP"; then
4332   { echo "$as_me:$LINENO: result: $CP" >&5
4333 echo "${ECHO_T}$CP" >&6; }
4334 else
4335   { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4337 fi
4338
4339
4340 # Extract the first word of "sed", so it can be a program name with args.
4341 set dummy sed; ac_word=$2
4342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4344 if test "${ac_cv_path_SED+set}" = set; then
4345   echo $ECHO_N "(cached) $ECHO_C" >&6
4346 else
4347   case $SED in
4348   [\\/]* | ?:[\\/]*)
4349   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4350   ;;
4351   *)
4352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357   for ac_exec_ext in '' $ac_executable_extensions; do
4358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361     break 2
4362   fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4368   ;;
4369 esac
4370 fi
4371 SED=$ac_cv_path_SED
4372 if test -n "$SED"; then
4373   { echo "$as_me:$LINENO: result: $SED" >&5
4374 echo "${ECHO_T}$SED" >&6; }
4375 else
4376   { echo "$as_me:$LINENO: result: no" >&5
4377 echo "${ECHO_T}no" >&6; }
4378 fi
4379
4380
4381 # Extract the first word of "echo", so it can be a program name with args.
4382 set dummy echo; ac_word=$2
4383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4385 if test "${ac_cv_path_ECHO+set}" = set; then
4386   echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388   case $ECHO in
4389   [\\/]* | ?:[\\/]*)
4390   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4391   ;;
4392   *)
4393   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH
4395 do
4396   IFS=$as_save_IFS
4397   test -z "$as_dir" && as_dir=.
4398   for ac_exec_ext in '' $ac_executable_extensions; do
4399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4400     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402     break 2
4403   fi
4404 done
4405 done
4406 IFS=$as_save_IFS
4407
4408   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4409   ;;
4410 esac
4411 fi
4412 ECHO=$ac_cv_path_ECHO
4413 if test -n "$ECHO"; then
4414   { echo "$as_me:$LINENO: result: $ECHO" >&5
4415 echo "${ECHO_T}$ECHO" >&6; }
4416 else
4417   { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4419 fi
4420
4421
4422 # Extract the first word of "cmp", so it can be a program name with args.
4423 set dummy cmp; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_path_CMP+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   case $CMP in
4430   [\\/]* | ?:[\\/]*)
4431   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4432   ;;
4433   *)
4434   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 for as_dir in $PATH
4436 do
4437   IFS=$as_save_IFS
4438   test -z "$as_dir" && as_dir=.
4439   for ac_exec_ext in '' $ac_executable_extensions; do
4440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4441     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443     break 2
4444   fi
4445 done
4446 done
4447 IFS=$as_save_IFS
4448
4449   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4450   ;;
4451 esac
4452 fi
4453 CMP=$ac_cv_path_CMP
4454 if test -n "$CMP"; then
4455   { echo "$as_me:$LINENO: result: $CMP" >&5
4456 echo "${ECHO_T}$CMP" >&6; }
4457 else
4458   { echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6; }
4460 fi
4461
4462
4463 # Extract the first word of "tbl", so it can be a program name with args.
4464 set dummy tbl; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_path_TBL+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   case $TBL in
4471   [\\/]* | ?:[\\/]*)
4472   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4473   ;;
4474   *)
4475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 for as_dir in $PATH
4477 do
4478   IFS=$as_save_IFS
4479   test -z "$as_dir" && as_dir=.
4480   for ac_exec_ext in '' $ac_executable_extensions; do
4481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4491   ;;
4492 esac
4493 fi
4494 TBL=$ac_cv_path_TBL
4495 if test -n "$TBL"; then
4496   { echo "$as_me:$LINENO: result: $TBL" >&5
4497 echo "${ECHO_T}$TBL" >&6; }
4498 else
4499   { echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6; }
4501 fi
4502
4503
4504 # Extract the first word of "ar", so it can be a program name with args.
4505 set dummy ar; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_path_AR+set}" = set; then
4509   echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511   case $AR in
4512   [\\/]* | ?:[\\/]*)
4513   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4514   ;;
4515   *)
4516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 for as_dir in $PATH
4518 do
4519   IFS=$as_save_IFS
4520   test -z "$as_dir" && as_dir=.
4521   for ac_exec_ext in '' $ac_executable_extensions; do
4522   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4523     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4525     break 2
4526   fi
4527 done
4528 done
4529 IFS=$as_save_IFS
4530
4531   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4532   ;;
4533 esac
4534 fi
4535 AR=$ac_cv_path_AR
4536 if test -n "$AR"; then
4537   { echo "$as_me:$LINENO: result: $AR" >&5
4538 echo "${ECHO_T}$AR" >&6; }
4539 else
4540   { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4542 fi
4543
4544
4545 # Extract the first word of "openssl", so it can be a program name with args.
4546 set dummy openssl; ac_word=$2
4547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4549 if test "${ac_cv_path_OPENSSL+set}" = set; then
4550   echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552   case $OPENSSL in
4553   [\\/]* | ?:[\\/]*)
4554   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4555   ;;
4556   *)
4557   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560   IFS=$as_save_IFS
4561   test -z "$as_dir" && as_dir=.
4562   for ac_exec_ext in '' $ac_executable_extensions; do
4563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4565     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566     break 2
4567   fi
4568 done
4569 done
4570 IFS=$as_save_IFS
4571
4572   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4573   ;;
4574 esac
4575 fi
4576 OPENSSL=$ac_cv_path_OPENSSL
4577 if test -n "$OPENSSL"; then
4578   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4579 echo "${ECHO_T}$OPENSSL" >&6; }
4580 else
4581   { echo "$as_me:$LINENO: result: no" >&5
4582 echo "${ECHO_T}no" >&6; }
4583 fi
4584
4585
4586 # Extract the first word of "mtx", so it can be a program name with args.
4587 set dummy mtx; ac_word=$2
4588 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4590 if test "${ac_cv_path_MTX+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 else
4593   case $MTX in
4594   [\\/]* | ?:[\\/]*)
4595   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4596   ;;
4597   *)
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4605     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611 IFS=$as_save_IFS
4612
4613   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4614   ;;
4615 esac
4616 fi
4617 MTX=$ac_cv_path_MTX
4618 if test -n "$MTX"; then
4619   { echo "$as_me:$LINENO: result: $MTX" >&5
4620 echo "${ECHO_T}$MTX" >&6; }
4621 else
4622   { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4624 fi
4625
4626
4627 # Extract the first word of "dd", so it can be a program name with args.
4628 set dummy dd; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_path_DD+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   case $DD in
4635   [\\/]* | ?:[\\/]*)
4636   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4637   ;;
4638   *)
4639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644   for ac_exec_ext in '' $ac_executable_extensions; do
4645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648     break 2
4649   fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4655   ;;
4656 esac
4657 fi
4658 DD=$ac_cv_path_DD
4659 if test -n "$DD"; then
4660   { echo "$as_me:$LINENO: result: $DD" >&5
4661 echo "${ECHO_T}$DD" >&6; }
4662 else
4663   { echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6; }
4665 fi
4666
4667
4668 # Extract the first word of "mkisofs", so it can be a program name with args.
4669 set dummy mkisofs; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_path_MKISOFS+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   case $MKISOFS in
4676   [\\/]* | ?:[\\/]*)
4677   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4678   ;;
4679   *)
4680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4696   ;;
4697 esac
4698 fi
4699 MKISOFS=$ac_cv_path_MKISOFS
4700 if test -n "$MKISOFS"; then
4701   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4702 echo "${ECHO_T}$MKISOFS" >&6; }
4703 else
4704   { echo "$as_me:$LINENO: result: no" >&5
4705 echo "${ECHO_T}no" >&6; }
4706 fi
4707
4708
4709 # Extract the first word of "python", so it can be a program name with args.
4710 set dummy python; ac_word=$2
4711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4713 if test "${ac_cv_path_PYTHON+set}" = set; then
4714   echo $ECHO_N "(cached) $ECHO_C" >&6
4715 else
4716   case $PYTHON in
4717   [\\/]* | ?:[\\/]*)
4718   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4719   ;;
4720   *)
4721   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722 for as_dir in $PATH
4723 do
4724   IFS=$as_save_IFS
4725   test -z "$as_dir" && as_dir=.
4726   for ac_exec_ext in '' $ac_executable_extensions; do
4727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4728     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730     break 2
4731   fi
4732 done
4733 done
4734 IFS=$as_save_IFS
4735
4736   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4737   ;;
4738 esac
4739 fi
4740 PYTHON=$ac_cv_path_PYTHON
4741 if test -n "$PYTHON"; then
4742   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4743 echo "${ECHO_T}$PYTHON" >&6; }
4744 else
4745   { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4747 fi
4748
4749
4750 # Extract the first word of "growisofs", so it can be a program name with args.
4751 set dummy growisofs; ac_word=$2
4752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4754 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   case $GROWISOFS in
4758   [\\/]* | ?:[\\/]*)
4759   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4760   ;;
4761   *)
4762   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   for ac_exec_ext in '' $ac_executable_extensions; do
4768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4770     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771     break 2
4772   fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4778   ;;
4779 esac
4780 fi
4781 GROWISOFS=$ac_cv_path_GROWISOFS
4782 if test -n "$GROWISOFS"; then
4783   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4784 echo "${ECHO_T}$GROWISOFS" >&6; }
4785 else
4786   { echo "$as_me:$LINENO: result: no" >&5
4787 echo "${ECHO_T}no" >&6; }
4788 fi
4789
4790
4791 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4792 set dummy dvd+rw-mediainfo; ac_word=$2
4793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4795 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4796   echo $ECHO_N "(cached) $ECHO_C" >&6
4797 else
4798   case $DVDRWMEDIAINFO in
4799   [\\/]* | ?:[\\/]*)
4800   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4801   ;;
4802   *)
4803   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808   for ac_exec_ext in '' $ac_executable_extensions; do
4809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4811     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4812     break 2
4813   fi
4814 done
4815 done
4816 IFS=$as_save_IFS
4817
4818   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4819   ;;
4820 esac
4821 fi
4822 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4823 if test -n "$DVDRWMEDIAINFO"; then
4824   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4825 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4826 else
4827   { echo "$as_me:$LINENO: result: no" >&5
4828 echo "${ECHO_T}no" >&6; }
4829 fi
4830
4831
4832 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4833 set dummy dvd+rw-format; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4837   echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839   case $DVDRWFORMAT in
4840   [\\/]* | ?:[\\/]*)
4841   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4842   ;;
4843   *)
4844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4845 for as_dir in $PATH
4846 do
4847   IFS=$as_save_IFS
4848   test -z "$as_dir" && as_dir=.
4849   for ac_exec_ext in '' $ac_executable_extensions; do
4850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4851     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4853     break 2
4854   fi
4855 done
4856 done
4857 IFS=$as_save_IFS
4858
4859   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4860   ;;
4861 esac
4862 fi
4863 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4864 if test -n "$DVDRWFORMAT"; then
4865   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4866 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4867 else
4868   { echo "$as_me:$LINENO: result: no" >&5
4869 echo "${ECHO_T}no" >&6; }
4870 fi
4871
4872
4873 # Extract the first word of "pkg-config", so it can be a program name with args.
4874 set dummy pkg-config; ac_word=$2
4875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4878   echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880   case $PKGCONFIG in
4881   [\\/]* | ?:[\\/]*)
4882   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4883   ;;
4884   *)
4885   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886 for as_dir in $PATH
4887 do
4888   IFS=$as_save_IFS
4889   test -z "$as_dir" && as_dir=.
4890   for ac_exec_ext in '' $ac_executable_extensions; do
4891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4892     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4893     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894     break 2
4895   fi
4896 done
4897 done
4898 IFS=$as_save_IFS
4899
4900   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4901   ;;
4902 esac
4903 fi
4904 PKGCONFIG=$ac_cv_path_PKGCONFIG
4905 if test -n "$PKGCONFIG"; then
4906   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4907 echo "${ECHO_T}$PKGCONFIG" >&6; }
4908 else
4909   { echo "$as_me:$LINENO: result: no" >&5
4910 echo "${ECHO_T}no" >&6; }
4911 fi
4912
4913
4914 # Extract the first word of "qmake", so it can be a program name with args.
4915 set dummy qmake; ac_word=$2
4916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4918 if test "${ac_cv_path_QMAKE+set}" = set; then
4919   echo $ECHO_N "(cached) $ECHO_C" >&6
4920 else
4921   case $QMAKE in
4922   [\\/]* | ?:[\\/]*)
4923   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4924   ;;
4925   *)
4926   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927 for as_dir in $PATH
4928 do
4929   IFS=$as_save_IFS
4930   test -z "$as_dir" && as_dir=.
4931   for ac_exec_ext in '' $ac_executable_extensions; do
4932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4933     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935     break 2
4936   fi
4937 done
4938 done
4939 IFS=$as_save_IFS
4940
4941   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4942   ;;
4943 esac
4944 fi
4945 QMAKE=$ac_cv_path_QMAKE
4946 if test -n "$QMAKE"; then
4947   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4948 echo "${ECHO_T}$QMAKE" >&6; }
4949 else
4950   { echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6; }
4952 fi
4953
4954
4955 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4956 set dummy qmake-qt4; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   case $QMAKEQT4 in
4963   [\\/]* | ?:[\\/]*)
4964   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4965   ;;
4966   *)
4967   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970   IFS=$as_save_IFS
4971   test -z "$as_dir" && as_dir=.
4972   for ac_exec_ext in '' $ac_executable_extensions; do
4973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976     break 2
4977   fi
4978 done
4979 done
4980 IFS=$as_save_IFS
4981
4982   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4983   ;;
4984 esac
4985 fi
4986 QMAKEQT4=$ac_cv_path_QMAKEQT4
4987 if test -n "$QMAKEQT4"; then
4988   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4989 echo "${ECHO_T}$QMAKEQT4" >&6; }
4990 else
4991   { echo "$as_me:$LINENO: result: no" >&5
4992 echo "${ECHO_T}no" >&6; }
4993 fi
4994
4995
4996
4997 if test "x$WXCONFIG" = x; then
4998   WXCONFIG=wx-config
4999 fi
5000 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5001 set dummy ${WXCONFIG}; ac_word=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5005   echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007   case $WXCONFIG in
5008   [\\/]* | ?:[\\/]*)
5009   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5010   ;;
5011   *)
5012   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5013 for as_dir in $PATH
5014 do
5015   IFS=$as_save_IFS
5016   test -z "$as_dir" && as_dir=.
5017   for ac_exec_ext in '' $ac_executable_extensions; do
5018   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5021     break 2
5022   fi
5023 done
5024 done
5025 IFS=$as_save_IFS
5026
5027   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5028   ;;
5029 esac
5030 fi
5031 WXCONFIG=$ac_cv_path_WXCONFIG
5032 if test -n "$WXCONFIG"; then
5033   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5034 echo "${ECHO_T}$WXCONFIG" >&6; }
5035 else
5036   { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5038 fi
5039
5040
5041
5042 # Extract the first word of "cdrecord", so it can be a program name with args.
5043 set dummy cdrecord; ac_word=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_path_CDRECORD+set}" = set; then
5047   echo $ECHO_N "(cached) $ECHO_C" >&6
5048 else
5049   case $CDRECORD in
5050   [\\/]* | ?:[\\/]*)
5051   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5052   ;;
5053   *)
5054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059   for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5070   ;;
5071 esac
5072 fi
5073 CDRECORD=$ac_cv_path_CDRECORD
5074 if test -n "$CDRECORD"; then
5075   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5076 echo "${ECHO_T}$CDRECORD" >&6; }
5077 else
5078   { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5080 fi
5081
5082
5083 # Extract the first word of "pidof", so it can be a program name with args.
5084 set dummy pidof; ac_word=$2
5085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5087 if test "${ac_cv_path_PIDOF+set}" = set; then
5088   echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090   case $PIDOF in
5091   [\\/]* | ?:[\\/]*)
5092   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5093   ;;
5094   *)
5095   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098   IFS=$as_save_IFS
5099   test -z "$as_dir" && as_dir=.
5100   for ac_exec_ext in '' $ac_executable_extensions; do
5101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5104     break 2
5105   fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5111   ;;
5112 esac
5113 fi
5114 PIDOF=$ac_cv_path_PIDOF
5115 if test -n "$PIDOF"; then
5116   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5117 echo "${ECHO_T}$PIDOF" >&6; }
5118 else
5119   { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5121 fi
5122
5123
5124 for ac_prog in gawk mawk nawk awk
5125 do
5126   # Extract the first word of "$ac_prog", so it can be a program name with args.
5127 set dummy $ac_prog; ac_word=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_prog_AWK+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   if test -n "$AWK"; then
5134   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141   for ac_exec_ext in '' $ac_executable_extensions; do
5142   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143     ac_cv_prog_AWK="$ac_prog"
5144     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5145     break 2
5146   fi
5147 done
5148 done
5149 IFS=$as_save_IFS
5150
5151 fi
5152 fi
5153 AWK=$ac_cv_prog_AWK
5154 if test -n "$AWK"; then
5155   { echo "$as_me:$LINENO: result: $AWK" >&5
5156 echo "${ECHO_T}$AWK" >&6; }
5157 else
5158   { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5160 fi
5161
5162
5163   test -n "$AWK" && break
5164 done
5165
5166 # Some AWK programs fail, so test it and warn the user
5167 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5168       { if ((prog == $2) || (("(" prog ")") == $2) ||
5169            (("" prog "") == $2) ||
5170            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5171 else
5172   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5173    The regex engine of $AWK is too broken to be used you
5174    might want to install GNU AWK.
5175    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5176 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5177    The regex engine of $AWK is too broken to be used you
5178    might want to install GNU AWK.
5179    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5180    { (exit 1); exit 1; }; }
5181 fi
5182 THE_AWK=$AWK
5183 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5184 set dummy $THE_AWK; ac_word=$2
5185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5187 if test "${ac_cv_path_AWK+set}" = set; then
5188   echo $ECHO_N "(cached) $ECHO_C" >&6
5189 else
5190   case $AWK in
5191   [\\/]* | ?:[\\/]*)
5192   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5193   ;;
5194   *)
5195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 for as_dir in $PATH
5197 do
5198   IFS=$as_save_IFS
5199   test -z "$as_dir" && as_dir=.
5200   for ac_exec_ext in '' $ac_executable_extensions; do
5201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5204     break 2
5205   fi
5206 done
5207 done
5208 IFS=$as_save_IFS
5209
5210   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5211   ;;
5212 esac
5213 fi
5214 AWK=$ac_cv_path_AWK
5215 if test -n "$AWK"; then
5216   { echo "$as_me:$LINENO: result: $AWK" >&5
5217 echo "${ECHO_T}$AWK" >&6; }
5218 else
5219   { echo "$as_me:$LINENO: result: no" >&5
5220 echo "${ECHO_T}no" >&6; }
5221 fi
5222
5223
5224
5225
5226 test -n "$ARFLAG" || ARFLAGS="cr"
5227
5228
5229 MAKE_SHELL=/bin/sh
5230
5231
5232
5233
5234
5235
5236
5237 # Make sure we can run config.sub.
5238 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5239   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5240 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5241    { (exit 1); exit 1; }; }
5242
5243 { echo "$as_me:$LINENO: checking build system type" >&5
5244 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5245 if test "${ac_cv_build+set}" = set; then
5246   echo $ECHO_N "(cached) $ECHO_C" >&6
5247 else
5248   ac_build_alias=$build_alias
5249 test "x$ac_build_alias" = x &&
5250   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5251 test "x$ac_build_alias" = x &&
5252   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5253 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5254    { (exit 1); exit 1; }; }
5255 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5256   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5257 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5258    { (exit 1); exit 1; }; }
5259
5260 fi
5261 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5262 echo "${ECHO_T}$ac_cv_build" >&6; }
5263 case $ac_cv_build in
5264 *-*-*) ;;
5265 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5266 echo "$as_me: error: invalid value of canonical build" >&2;}
5267    { (exit 1); exit 1; }; };;
5268 esac
5269 build=$ac_cv_build
5270 ac_save_IFS=$IFS; IFS='-'
5271 set x $ac_cv_build
5272 shift
5273 build_cpu=$1
5274 build_vendor=$2
5275 shift; shift
5276 # Remember, the first character of IFS is used to create $*,
5277 # except with old shells:
5278 build_os=$*
5279 IFS=$ac_save_IFS
5280 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5281
5282
5283
5284 { echo "$as_me:$LINENO: checking host system type" >&5
5285 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5286 if test "${ac_cv_host+set}" = set; then
5287   echo $ECHO_N "(cached) $ECHO_C" >&6
5288 else
5289   if test "x$host_alias" = x; then
5290   ac_cv_host=$ac_cv_build
5291 else
5292   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5293     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5294 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5295    { (exit 1); exit 1; }; }
5296 fi
5297
5298 fi
5299 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5300 echo "${ECHO_T}$ac_cv_host" >&6; }
5301 case $ac_cv_host in
5302 *-*-*) ;;
5303 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5304 echo "$as_me: error: invalid value of canonical host" >&2;}
5305    { (exit 1); exit 1; }; };;
5306 esac
5307 host=$ac_cv_host
5308 ac_save_IFS=$IFS; IFS='-'
5309 set x $ac_cv_host
5310 shift
5311 host_cpu=$1
5312 host_vendor=$2
5313 shift; shift
5314 # Remember, the first character of IFS is used to create $*,
5315 # except with old shells:
5316 host_os=$*
5317 IFS=$ac_save_IFS
5318 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5319
5320
5321 case $host_os in
5322   *cygwin* ) CYGWIN=yes;;
5323          * ) CYGWIN=no;;
5324 esac
5325
5326 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5327 then
5328
5329
5330 if $TRUEPRG; then
5331   HAVE_SUN_OS_TRUE=
5332   HAVE_SUN_OS_FALSE='#'
5333 else
5334   HAVE_SUN_OS_TRUE='#'
5335   HAVE_SUN_OS_FALSE=
5336 fi
5337         cat >>confdefs.h <<\_ACEOF
5338 #define HAVE_SUN_OS 1
5339 _ACEOF
5340
5341 else
5342
5343
5344 if $FALSEPRG; then
5345   HAVE_SUN_OS_TRUE=
5346   HAVE_SUN_OS_FALSE='#'
5347 else
5348   HAVE_SUN_OS_TRUE='#'
5349   HAVE_SUN_OS_FALSE=
5350 fi
5351 fi
5352
5353 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5354 then
5355
5356
5357 if $TRUEPRG; then
5358   HAVE_OSF1_OS_TRUE=
5359   HAVE_OSF1_OS_FALSE='#'
5360 else
5361   HAVE_OSF1_OS_TRUE='#'
5362   HAVE_OSF1_OS_FALSE=
5363 fi
5364         cat >>confdefs.h <<\_ACEOF
5365 #define HAVE_OSF1_OS 1
5366 _ACEOF
5367
5368 else
5369
5370
5371 if $FALSEPRG; then
5372   HAVE_OSF1_OS_TRUE=
5373   HAVE_OSF1_OS_FALSE='#'
5374 else
5375   HAVE_OSF1_OS_TRUE='#'
5376   HAVE_OSF1_OS_FALSE=
5377 fi
5378 fi
5379
5380 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5381 then
5382
5383
5384 if $TRUEPRG; then
5385   HAVE_AIX_OS_TRUE=
5386   HAVE_AIX_OS_FALSE='#'
5387 else
5388   HAVE_AIX_OS_TRUE='#'
5389   HAVE_AIX_OS_FALSE=
5390 fi
5391         cat >>confdefs.h <<\_ACEOF
5392 #define HAVE_AIX_OS 1
5393 _ACEOF
5394
5395 else
5396
5397
5398 if $FALSEPRG; then
5399   HAVE_AIX_OS_TRUE=
5400   HAVE_AIX_OS_FALSE='#'
5401 else
5402   HAVE_AIX_OS_TRUE='#'
5403   HAVE_AIX_OS_FALSE=
5404 fi
5405 fi
5406
5407 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5408 then
5409
5410
5411 if $TRUEPRG; then
5412   HAVE_HPUX_OS_TRUE=
5413   HAVE_HPUX_OS_FALSE='#'
5414 else
5415   HAVE_HPUX_OS_TRUE='#'
5416   HAVE_HPUX_OS_FALSE=
5417 fi
5418         cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_HPUX_OS 1
5420 _ACEOF
5421
5422 else
5423
5424
5425 if $FALSEPRG; then
5426   HAVE_HPUX_OS_TRUE=
5427   HAVE_HPUX_OS_FALSE='#'
5428 else
5429   HAVE_HPUX_OS_TRUE='#'
5430   HAVE_HPUX_OS_FALSE=
5431 fi
5432 fi
5433
5434 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5435 then
5436
5437
5438 if $TRUEPRG; then
5439   HAVE_LINUX_OS_TRUE=
5440   HAVE_LINUX_OS_FALSE='#'
5441 else
5442   HAVE_LINUX_OS_TRUE='#'
5443   HAVE_LINUX_OS_FALSE=
5444 fi
5445         cat >>confdefs.h <<\_ACEOF
5446 #define HAVE_LINUX_OS 1
5447 _ACEOF
5448
5449 else
5450
5451
5452 if $FALSEPRG; then
5453   HAVE_LINUX_OS_TRUE=
5454   HAVE_LINUX_OS_FALSE='#'
5455 else
5456   HAVE_LINUX_OS_TRUE='#'
5457   HAVE_LINUX_OS_FALSE=
5458 fi
5459 fi
5460
5461 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5462 then
5463
5464
5465 if $TRUEPRG; then
5466   HAVE_FREEBSD_OS_TRUE=
5467   HAVE_FREEBSD_OS_FALSE='#'
5468 else
5469   HAVE_FREEBSD_OS_TRUE='#'
5470   HAVE_FREEBSD_OS_FALSE=
5471 fi
5472         cat >>confdefs.h <<\_ACEOF
5473 #define HAVE_FREEBSD_OS 1
5474 _ACEOF
5475
5476 else
5477
5478
5479 if $FALSEPRG; then
5480   HAVE_FREEBSD_OS_TRUE=
5481   HAVE_FREEBSD_OS_FALSE='#'
5482 else
5483   HAVE_FREEBSD_OS_TRUE='#'
5484   HAVE_FREEBSD_OS_FALSE=
5485 fi
5486 fi
5487
5488 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5489 then
5490
5491
5492 if $TRUEPRG; then
5493   HAVE_NETBSD_OS_TRUE=
5494   HAVE_NETBSD_OS_FALSE='#'
5495 else
5496   HAVE_NETBSD_OS_TRUE='#'
5497   HAVE_NETBSD_OS_FALSE=
5498 fi
5499         cat >>confdefs.h <<\_ACEOF
5500 #define HAVE_NETBSD_OS 1
5501 _ACEOF
5502
5503 else
5504
5505
5506 if $FALSEPRG; then
5507   HAVE_NETBSD_OS_TRUE=
5508   HAVE_NETBSD_OS_FALSE='#'
5509 else
5510   HAVE_NETBSD_OS_TRUE='#'
5511   HAVE_NETBSD_OS_FALSE=
5512 fi
5513 fi
5514
5515 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5516 then
5517
5518
5519 if $TRUEPRG; then
5520   HAVE_OPENBSD_OS_TRUE=
5521   HAVE_OPENBSD_OS_FALSE='#'
5522 else
5523   HAVE_OPENBSD_OS_TRUE='#'
5524   HAVE_OPENBSD_OS_FALSE=
5525 fi
5526         cat >>confdefs.h <<\_ACEOF
5527 #define HAVE_OPENBSD_OS 1
5528 _ACEOF
5529
5530 else
5531
5532
5533 if $FALSEPRG; then
5534   HAVE_OPENBSD_OS_TRUE=
5535   HAVE_OPENBSD_OS_FALSE='#'
5536 else
5537   HAVE_OPENBSD_OS_TRUE='#'
5538   HAVE_OPENBSD_OS_FALSE=
5539 fi
5540 fi
5541
5542 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5543 then
5544
5545
5546 if $TRUEPRG; then
5547   HAVE_BSDI_OS_TRUE=
5548   HAVE_BSDI_OS_FALSE='#'
5549 else
5550   HAVE_BSDI_OS_TRUE='#'
5551   HAVE_BSDI_OS_FALSE=
5552 fi
5553         cat >>confdefs.h <<\_ACEOF
5554 #define HAVE_BSDI_OS 1
5555 _ACEOF
5556
5557 else
5558
5559
5560 if $FALSEPRG; then
5561   HAVE_BSDI_OS_TRUE=
5562   HAVE_BSDI_OS_FALSE='#'
5563 else
5564   HAVE_BSDI_OS_TRUE='#'
5565   HAVE_BSDI_OS_FALSE=
5566 fi
5567 fi
5568
5569 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5570 then
5571
5572
5573 if $TRUEPRG; then
5574   HAVE_SGI_OS_TRUE=
5575   HAVE_SGI_OS_FALSE='#'
5576 else
5577   HAVE_SGI_OS_TRUE='#'
5578   HAVE_SGI_OS_FALSE=
5579 fi
5580         cat >>confdefs.h <<\_ACEOF
5581 #define HAVE_SGI_OS 1
5582 _ACEOF
5583
5584 else
5585
5586
5587 if $FALSEPRG; then
5588   HAVE_SGI_OS_TRUE=
5589   HAVE_SGI_OS_FALSE='#'
5590 else
5591   HAVE_SGI_OS_TRUE='#'
5592   HAVE_SGI_OS_FALSE=
5593 fi
5594 fi
5595
5596 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5597 then
5598
5599
5600 if $TRUEPRG; then
5601   HAVE_IRIX_OS_TRUE=
5602   HAVE_IRIX_OS_FALSE='#'
5603 else
5604   HAVE_IRIX_OS_TRUE='#'
5605   HAVE_IRIX_OS_FALSE=
5606 fi
5607         cat >>confdefs.h <<\_ACEOF
5608 #define HAVE_IRIX_OS 1
5609 _ACEOF
5610
5611 else
5612
5613
5614 if $FALSEPRG; then
5615   HAVE_IRIX_OS_TRUE=
5616   HAVE_IRIX_OS_FALSE='#'
5617 else
5618   HAVE_IRIX_OS_TRUE='#'
5619   HAVE_IRIX_OS_FALSE=
5620 fi
5621 fi
5622
5623 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5624 then
5625
5626
5627 if $TRUEPRG; then
5628   HAVE_DARWIN_OS_TRUE=
5629   HAVE_DARWIN_OS_FALSE='#'
5630 else
5631   HAVE_DARWIN_OS_TRUE='#'
5632   HAVE_DARWIN_OS_FALSE=
5633 fi
5634     cat >>confdefs.h <<\_ACEOF
5635 #define HAVE_DARWIN_OS 1
5636 _ACEOF
5637
5638 else
5639
5640
5641 if $FALSEPRG; then
5642   HAVE_DARWIN_OS_TRUE=
5643   HAVE_DARWIN_OS_FALSE='#'
5644 else
5645   HAVE_DARWIN_OS_TRUE='#'
5646   HAVE_DARWIN_OS_FALSE=
5647 fi
5648 fi
5649
5650
5651 # -----------------------------------------------------------
5652 # ----------------------------------------------------------
5653 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5654 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5655 if test "x$DISTNAME" != "x"
5656 then
5657         echo "distname set to $DISTNAME"
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5659 then
5660         DISTNAME=alpha
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5662 then
5663         DISTNAME=aix
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5665 then
5666         DISTNAME=hpux
5667 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5668 then
5669         DISTNAME=solaris
5670 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5671 then
5672         DISTNAME=freebsd
5673 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5674 then
5675         DISTNAME=netbsd
5676 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5677 then
5678         DISTNAME=openbsd
5679 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5680 then
5681         DISTNAME=irix
5682 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5683 then
5684         DISTNAME=bsdi
5685 elif test -f /etc/SuSE-release
5686 then
5687         DISTNAME=suse
5688 elif test -d /etc/SuSEconfig
5689 then
5690         DISTNAME=suse5
5691 elif test -f /etc/mandrake-release
5692 then
5693         DISTNAME=mandrake
5694 elif test -f /etc/whitebox-release
5695 then
5696        DISTNAME=redhat
5697 elif test -f /etc/redhat-release
5698 then
5699         DISTNAME=redhat
5700 elif test -f /etc/gentoo-release
5701 then
5702         DISTNAME=gentoo
5703 elif test -f /etc/debian_version
5704 then
5705         DISTNAME=debian
5706 elif test -f /etc/slackware-version
5707 then
5708         DISTNAME=slackware
5709 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5710 then
5711     DISTNAME=darwin
5712 elif test -f /etc/engarde-version
5713 then
5714         DISTNAME=engarde
5715 elif test "$CYGWIN" = yes
5716 then
5717         DISTNAME=cygwin
5718         cat >>confdefs.h <<\_ACEOF
5719 #define HAVE_CYGWIN 1
5720 _ACEOF
5721
5722 else
5723         DISTNAME=unknown
5724 fi
5725 { echo "$as_me:$LINENO: result: done" >&5
5726 echo "${ECHO_T}done" >&6; }
5727
5728
5729 # --------------------------------------------------
5730 # Suppport for gettext (translations)
5731 # By default, $datadir is ${prefix}/share
5732 # --------------------------------------------------
5733 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5734 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5735 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5736 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5737   echo $ECHO_N "(cached) $ECHO_C" >&6
5738 else
5739   cat >conftest.make <<\_ACEOF
5740 SHELL = /bin/sh
5741 all:
5742         @echo '@@@%%%=$(MAKE)=@@@%%%'
5743 _ACEOF
5744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5746   *@@@%%%=?*=@@@%%%*)
5747     eval ac_cv_prog_make_${ac_make}_set=yes;;
5748   *)
5749     eval ac_cv_prog_make_${ac_make}_set=no;;
5750 esac
5751 rm -f conftest.make
5752 fi
5753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5754   { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5756   SET_MAKE=
5757 else
5758   { echo "$as_me:$LINENO: result: no" >&5
5759 echo "${ECHO_T}no" >&6; }
5760   SET_MAKE="MAKE=${MAKE-make}"
5761 fi
5762
5763
5764
5765         MKINSTALLDIRS=
5766   if test -n "$ac_aux_dir"; then
5767     case "$ac_aux_dir" in
5768       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5769       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5770     esac
5771   fi
5772   if test -z "$MKINSTALLDIRS"; then
5773     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5774   fi
5775
5776
5777
5778   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5779 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5780     # Check whether --enable-nls was given.
5781 if test "${enable_nls+set}" = set; then
5782   enableval=$enable_nls; USE_NLS=$enableval
5783 else
5784   USE_NLS=yes
5785 fi
5786
5787   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5788 echo "${ECHO_T}$USE_NLS" >&6; }
5789
5790
5791
5792
5793
5794
5795 # Prepare PATH_SEPARATOR.
5796 # The user is always right.
5797 if test "${PATH_SEPARATOR+set}" != set; then
5798   echo "#! /bin/sh" >conf$$.sh
5799   echo  "exit 0"   >>conf$$.sh
5800   chmod +x conf$$.sh
5801   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5802     PATH_SEPARATOR=';'
5803   else
5804     PATH_SEPARATOR=:
5805   fi
5806   rm -f conf$$.sh
5807 fi
5808
5809 # Find out how to test for executable files. Don't use a zero-byte file,
5810 # as systems may use methods other than mode bits to determine executability.
5811 cat >conf$$.file <<_ASEOF
5812 #! /bin/sh
5813 exit 0
5814 _ASEOF
5815 chmod +x conf$$.file
5816 if test -x conf$$.file >/dev/null 2>&1; then
5817   ac_executable_p="test -x"
5818 else
5819   ac_executable_p="test -f"
5820 fi
5821 rm -f conf$$.file
5822
5823 # Extract the first word of "msgfmt", so it can be a program name with args.
5824 set dummy msgfmt; ac_word=$2
5825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5827 if test "${ac_cv_path_MSGFMT+set}" = set; then
5828   echo $ECHO_N "(cached) $ECHO_C" >&6
5829 else
5830   case "$MSGFMT" in
5831   [\\/]* | ?:[\\/]*)
5832     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5833     ;;
5834   *)
5835     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5836     for ac_dir in $PATH; do
5837       IFS="$ac_save_IFS"
5838       test -z "$ac_dir" && ac_dir=.
5839       for ac_exec_ext in '' $ac_executable_extensions; do
5840         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5841           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5842           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5843      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5844             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5845             break 2
5846           fi
5847         fi
5848       done
5849     done
5850     IFS="$ac_save_IFS"
5851   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5852     ;;
5853 esac
5854 fi
5855 MSGFMT="$ac_cv_path_MSGFMT"
5856 if test "$MSGFMT" != ":"; then
5857   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5858 echo "${ECHO_T}$MSGFMT" >&6; }
5859 else
5860   { echo "$as_me:$LINENO: result: no" >&5
5861 echo "${ECHO_T}no" >&6; }
5862 fi
5863
5864   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5865 set dummy gmsgfmt; ac_word=$2
5866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5868 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5869   echo $ECHO_N "(cached) $ECHO_C" >&6
5870 else
5871   case $GMSGFMT in
5872   [\\/]* | ?:[\\/]*)
5873   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5874   ;;
5875   *)
5876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 for as_dir in $PATH
5878 do
5879   IFS=$as_save_IFS
5880   test -z "$as_dir" && as_dir=.
5881   for ac_exec_ext in '' $ac_executable_extensions; do
5882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5883     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5884     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5885     break 2
5886   fi
5887 done
5888 done
5889 IFS=$as_save_IFS
5890
5891   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5892   ;;
5893 esac
5894 fi
5895 GMSGFMT=$ac_cv_path_GMSGFMT
5896 if test -n "$GMSGFMT"; then
5897   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5898 echo "${ECHO_T}$GMSGFMT" >&6; }
5899 else
5900   { echo "$as_me:$LINENO: result: no" >&5
5901 echo "${ECHO_T}no" >&6; }
5902 fi
5903
5904
5905
5906
5907 # Prepare PATH_SEPARATOR.
5908 # The user is always right.
5909 if test "${PATH_SEPARATOR+set}" != set; then
5910   echo "#! /bin/sh" >conf$$.sh
5911   echo  "exit 0"   >>conf$$.sh
5912   chmod +x conf$$.sh
5913   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5914     PATH_SEPARATOR=';'
5915   else
5916     PATH_SEPARATOR=:
5917   fi
5918   rm -f conf$$.sh
5919 fi
5920
5921 # Find out how to test for executable files. Don't use a zero-byte file,
5922 # as systems may use methods other than mode bits to determine executability.
5923 cat >conf$$.file <<_ASEOF
5924 #! /bin/sh
5925 exit 0
5926 _ASEOF
5927 chmod +x conf$$.file
5928 if test -x conf$$.file >/dev/null 2>&1; then
5929   ac_executable_p="test -x"
5930 else
5931   ac_executable_p="test -f"
5932 fi
5933 rm -f conf$$.file
5934
5935 # Extract the first word of "xgettext", so it can be a program name with args.
5936 set dummy xgettext; ac_word=$2
5937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5939 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5940   echo $ECHO_N "(cached) $ECHO_C" >&6
5941 else
5942   case "$XGETTEXT" in
5943   [\\/]* | ?:[\\/]*)
5944     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5945     ;;
5946   *)
5947     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5948     for ac_dir in $PATH; do
5949       IFS="$ac_save_IFS"
5950       test -z "$ac_dir" && ac_dir=.
5951       for ac_exec_ext in '' $ac_executable_extensions; do
5952         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5953           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5954           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5955      (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
5956             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5957             break 2
5958           fi
5959         fi
5960       done
5961     done
5962     IFS="$ac_save_IFS"
5963   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5964     ;;
5965 esac
5966 fi
5967 XGETTEXT="$ac_cv_path_XGETTEXT"
5968 if test "$XGETTEXT" != ":"; then
5969   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5970 echo "${ECHO_T}$XGETTEXT" >&6; }
5971 else
5972   { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5974 fi
5975
5976     rm -f messages.po
5977
5978
5979 # Prepare PATH_SEPARATOR.
5980 # The user is always right.
5981 if test "${PATH_SEPARATOR+set}" != set; then
5982   echo "#! /bin/sh" >conf$$.sh
5983   echo  "exit 0"   >>conf$$.sh
5984   chmod +x conf$$.sh
5985   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5986     PATH_SEPARATOR=';'
5987   else
5988     PATH_SEPARATOR=:
5989   fi
5990   rm -f conf$$.sh
5991 fi
5992
5993 # Find out how to test for executable files. Don't use a zero-byte file,
5994 # as systems may use methods other than mode bits to determine executability.
5995 cat >conf$$.file <<_ASEOF
5996 #! /bin/sh
5997 exit 0
5998 _ASEOF
5999 chmod +x conf$$.file
6000 if test -x conf$$.file >/dev/null 2>&1; then
6001   ac_executable_p="test -x"
6002 else
6003   ac_executable_p="test -f"
6004 fi
6005 rm -f conf$$.file
6006
6007 # Extract the first word of "msgmerge", so it can be a program name with args.
6008 set dummy msgmerge; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   case "$MSGMERGE" in
6015   [\\/]* | ?:[\\/]*)
6016     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6017     ;;
6018   *)
6019     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6020     for ac_dir in $PATH; do
6021       IFS="$ac_save_IFS"
6022       test -z "$ac_dir" && ac_dir=.
6023       for ac_exec_ext in '' $ac_executable_extensions; do
6024         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6025           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6026           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6027             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6028             break 2
6029           fi
6030         fi
6031       done
6032     done
6033     IFS="$ac_save_IFS"
6034   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6035     ;;
6036 esac
6037 fi
6038 MSGMERGE="$ac_cv_path_MSGMERGE"
6039 if test "$MSGMERGE" != ":"; then
6040   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6041 echo "${ECHO_T}$MSGMERGE" >&6; }
6042 else
6043   { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6045 fi
6046
6047
6048       if test "$GMSGFMT" != ":"; then
6049             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6050        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6051       : ;
6052     else
6053       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6054       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6055 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6056       GMSGFMT=":"
6057     fi
6058   fi
6059
6060       if test "$XGETTEXT" != ":"; then
6061             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6062        (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
6063       : ;
6064     else
6065       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6066 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6067       XGETTEXT=":"
6068     fi
6069         rm -f messages.po
6070   fi
6071
6072   ac_config_commands="$ac_config_commands default-1"
6073
6074
6075
6076       if test "X$prefix" = "XNONE"; then
6077     acl_final_prefix="$ac_default_prefix"
6078   else
6079     acl_final_prefix="$prefix"
6080   fi
6081   if test "X$exec_prefix" = "XNONE"; then
6082     acl_final_exec_prefix='${prefix}'
6083   else
6084     acl_final_exec_prefix="$exec_prefix"
6085   fi
6086   acl_save_prefix="$prefix"
6087   prefix="$acl_final_prefix"
6088   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6089   prefix="$acl_save_prefix"
6090
6091
6092 # Check whether --with-gnu-ld was given.
6093 if test "${with_gnu_ld+set}" = set; then
6094   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6095 else
6096   with_gnu_ld=no
6097 fi
6098
6099 # Prepare PATH_SEPARATOR.
6100 # The user is always right.
6101 if test "${PATH_SEPARATOR+set}" != set; then
6102   echo "#! /bin/sh" >conf$$.sh
6103   echo  "exit 0"   >>conf$$.sh
6104   chmod +x conf$$.sh
6105   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6106     PATH_SEPARATOR=';'
6107   else
6108     PATH_SEPARATOR=:
6109   fi
6110   rm -f conf$$.sh
6111 fi
6112 ac_prog=ld
6113 if test "$GCC" = yes; then
6114   # Check if gcc -print-prog-name=ld gives a path.
6115   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6116 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6117   case $host in
6118   *-*-mingw*)
6119     # gcc leaves a trailing carriage return which upsets mingw
6120     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6121   *)
6122     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6123   esac
6124   case $ac_prog in
6125     # Accept absolute paths.
6126     [\\/]* | [A-Za-z]:[\\/]*)
6127       re_direlt='/[^/][^/]*/\.\./'
6128       # Canonicalize the path of ld
6129       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6130       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6131         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6132       done
6133       test -z "$LD" && LD="$ac_prog"
6134       ;;
6135   "")
6136     # If it fails, then pretend we aren't using GCC.
6137     ac_prog=ld
6138     ;;
6139   *)
6140     # If it is relative, then search for the first ld in PATH.
6141     with_gnu_ld=unknown
6142     ;;
6143   esac
6144 elif test "$with_gnu_ld" = yes; then
6145   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6147 else
6148   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6150 fi
6151 if test "${acl_cv_path_LD+set}" = set; then
6152   echo $ECHO_N "(cached) $ECHO_C" >&6
6153 else
6154   if test -z "$LD"; then
6155   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6156   for ac_dir in $PATH; do
6157     test -z "$ac_dir" && ac_dir=.
6158     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6159       acl_cv_path_LD="$ac_dir/$ac_prog"
6160       # Check to see if the program is GNU ld.  I'd rather use --version,
6161       # but apparently some GNU ld's only accept -v.
6162       # Break only if it was the GNU/non-GNU ld that we prefer.
6163       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6164       *GNU* | *'with BFD'*)
6165         test "$with_gnu_ld" != no && break ;;
6166       *)
6167         test "$with_gnu_ld" != yes && break ;;
6168       esac
6169     fi
6170   done
6171   IFS="$ac_save_ifs"
6172 else
6173   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6174 fi
6175 fi
6176
6177 LD="$acl_cv_path_LD"
6178 if test -n "$LD"; then
6179   { echo "$as_me:$LINENO: result: $LD" >&5
6180 echo "${ECHO_T}$LD" >&6; }
6181 else
6182   { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6184 fi
6185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6187    { (exit 1); exit 1; }; }
6188 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6190 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6191   echo $ECHO_N "(cached) $ECHO_C" >&6
6192 else
6193   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6194 case `$LD -v 2>&1 </dev/null` in
6195 *GNU* | *'with BFD'*)
6196   acl_cv_prog_gnu_ld=yes ;;
6197 *)
6198   acl_cv_prog_gnu_ld=no ;;
6199 esac
6200 fi
6201 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6202 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6203 with_gnu_ld=$acl_cv_prog_gnu_ld
6204
6205
6206
6207
6208                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6209 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6210 if test "${acl_cv_rpath+set}" = set; then
6211   echo $ECHO_N "(cached) $ECHO_C" >&6
6212 else
6213
6214     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6215     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6216     . ./conftest.sh
6217     rm -f ./conftest.sh
6218     acl_cv_rpath=done
6219
6220 fi
6221 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6222 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6223   wl="$acl_cv_wl"
6224   libext="$acl_cv_libext"
6225   shlibext="$acl_cv_shlibext"
6226   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6227   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6228   hardcode_direct="$acl_cv_hardcode_direct"
6229   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6230     # Check whether --enable-rpath was given.
6231 if test "${enable_rpath+set}" = set; then
6232   enableval=$enable_rpath; :
6233 else
6234   enable_rpath=yes
6235 fi
6236
6237
6238
6239
6240
6241
6242
6243
6244     use_additional=yes
6245
6246   acl_save_prefix="$prefix"
6247   prefix="$acl_final_prefix"
6248   acl_save_exec_prefix="$exec_prefix"
6249   exec_prefix="$acl_final_exec_prefix"
6250
6251     eval additional_includedir=\"$includedir\"
6252     eval additional_libdir=\"$libdir\"
6253
6254   exec_prefix="$acl_save_exec_prefix"
6255   prefix="$acl_save_prefix"
6256
6257
6258 # Check whether --with-libiconv-prefix was given.
6259 if test "${with_libiconv_prefix+set}" = set; then
6260   withval=$with_libiconv_prefix;
6261     if test "X$withval" = "Xno"; then
6262       use_additional=no
6263     else
6264       if test "X$withval" = "X"; then
6265
6266   acl_save_prefix="$prefix"
6267   prefix="$acl_final_prefix"
6268   acl_save_exec_prefix="$exec_prefix"
6269   exec_prefix="$acl_final_exec_prefix"
6270
6271           eval additional_includedir=\"$includedir\"
6272           eval additional_libdir=\"$libdir\"
6273
6274   exec_prefix="$acl_save_exec_prefix"
6275   prefix="$acl_save_prefix"
6276
6277       else
6278         additional_includedir="$withval/include"
6279         additional_libdir="$withval/lib"
6280       fi
6281     fi
6282
6283 fi
6284
6285       LIBICONV=
6286   LTLIBICONV=
6287   INCICONV=
6288   rpathdirs=
6289   ltrpathdirs=
6290   names_already_handled=
6291   names_next_round='iconv '
6292   while test -n "$names_next_round"; do
6293     names_this_round="$names_next_round"
6294     names_next_round=
6295     for name in $names_this_round; do
6296       already_handled=
6297       for n in $names_already_handled; do
6298         if test "$n" = "$name"; then
6299           already_handled=yes
6300           break
6301         fi
6302       done
6303       if test -z "$already_handled"; then
6304         names_already_handled="$names_already_handled $name"
6305                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6306         eval value=\"\$HAVE_LIB$uppername\"
6307         if test -n "$value"; then
6308           if test "$value" = yes; then
6309             eval value=\"\$LIB$uppername\"
6310             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6311             eval value=\"\$LTLIB$uppername\"
6312             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6313           else
6314                                     :
6315           fi
6316         else
6317                               found_dir=
6318           found_la=
6319           found_so=
6320           found_a=
6321           if test $use_additional = yes; then
6322             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6323               found_dir="$additional_libdir"
6324               found_so="$additional_libdir/lib$name.$shlibext"
6325               if test -f "$additional_libdir/lib$name.la"; then
6326                 found_la="$additional_libdir/lib$name.la"
6327               fi
6328             else
6329               if test -f "$additional_libdir/lib$name.$libext"; then
6330                 found_dir="$additional_libdir"
6331                 found_a="$additional_libdir/lib$name.$libext"
6332                 if test -f "$additional_libdir/lib$name.la"; then
6333                   found_la="$additional_libdir/lib$name.la"
6334                 fi
6335               fi
6336             fi
6337           fi
6338           if test "X$found_dir" = "X"; then
6339             for x in $LDFLAGS $LTLIBICONV; do
6340
6341   acl_save_prefix="$prefix"
6342   prefix="$acl_final_prefix"
6343   acl_save_exec_prefix="$exec_prefix"
6344   exec_prefix="$acl_final_exec_prefix"
6345   eval x=\"$x\"
6346   exec_prefix="$acl_save_exec_prefix"
6347   prefix="$acl_save_prefix"
6348
6349               case "$x" in
6350                 -L*)
6351                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6352                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6353                     found_dir="$dir"
6354                     found_so="$dir/lib$name.$shlibext"
6355                     if test -f "$dir/lib$name.la"; then
6356                       found_la="$dir/lib$name.la"
6357                     fi
6358                   else
6359                     if test -f "$dir/lib$name.$libext"; then
6360                       found_dir="$dir"
6361                       found_a="$dir/lib$name.$libext"
6362                       if test -f "$dir/lib$name.la"; then
6363                         found_la="$dir/lib$name.la"
6364                       fi
6365                     fi
6366                   fi
6367                   ;;
6368               esac
6369               if test "X$found_dir" != "X"; then
6370                 break
6371               fi
6372             done
6373           fi
6374           if test "X$found_dir" != "X"; then
6375                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6376             if test "X$found_so" != "X"; then
6377                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6378                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6379               else
6380                                                                                 haveit=
6381                 for x in $ltrpathdirs; do
6382                   if test "X$x" = "X$found_dir"; then
6383                     haveit=yes
6384                     break
6385                   fi
6386                 done
6387                 if test -z "$haveit"; then
6388                   ltrpathdirs="$ltrpathdirs $found_dir"
6389                 fi
6390                                 if test "$hardcode_direct" = yes; then
6391                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6392                 else
6393                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6394                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6395                                                             haveit=
6396                     for x in $rpathdirs; do
6397                       if test "X$x" = "X$found_dir"; then
6398                         haveit=yes
6399                         break
6400                       fi
6401                     done
6402                     if test -z "$haveit"; then
6403                       rpathdirs="$rpathdirs $found_dir"
6404                     fi
6405                   else
6406                                                                                 haveit=
6407                     for x in $LDFLAGS $LIBICONV; do
6408
6409   acl_save_prefix="$prefix"
6410   prefix="$acl_final_prefix"
6411   acl_save_exec_prefix="$exec_prefix"
6412   exec_prefix="$acl_final_exec_prefix"
6413   eval x=\"$x\"
6414   exec_prefix="$acl_save_exec_prefix"
6415   prefix="$acl_save_prefix"
6416
6417                       if test "X$x" = "X-L$found_dir"; then
6418                         haveit=yes
6419                         break
6420                       fi
6421                     done
6422                     if test -z "$haveit"; then
6423                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6424                     fi
6425                     if test "$hardcode_minus_L" != no; then
6426                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6427                     else
6428                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6429                     fi
6430                   fi
6431                 fi
6432               fi
6433             else
6434               if test "X$found_a" != "X"; then
6435                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6436               else
6437                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6438               fi
6439             fi
6440                         additional_includedir=
6441             case "$found_dir" in
6442               */lib | */lib/)
6443                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6444                 additional_includedir="$basedir/include"
6445                 ;;
6446             esac
6447             if test "X$additional_includedir" != "X"; then
6448                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6449                 haveit=
6450                 if test "X$additional_includedir" = "X/usr/local/include"; then
6451                   if test -n "$GCC"; then
6452                     case $host_os in
6453                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6454                     esac
6455                   fi
6456                 fi
6457                 if test -z "$haveit"; then
6458                   for x in $CPPFLAGS $INCICONV; do
6459
6460   acl_save_prefix="$prefix"
6461   prefix="$acl_final_prefix"
6462   acl_save_exec_prefix="$exec_prefix"
6463   exec_prefix="$acl_final_exec_prefix"
6464   eval x=\"$x\"
6465   exec_prefix="$acl_save_exec_prefix"
6466   prefix="$acl_save_prefix"
6467
6468                     if test "X$x" = "X-I$additional_includedir"; then
6469                       haveit=yes
6470                       break
6471                     fi
6472                   done
6473                   if test -z "$haveit"; then
6474                     if test -d "$additional_includedir"; then
6475                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6476                     fi
6477                   fi
6478                 fi
6479               fi
6480             fi
6481                         if test -n "$found_la"; then
6482                                                         save_libdir="$libdir"
6483               case "$found_la" in
6484                 */* | *\\*) . "$found_la" ;;
6485                 *) . "./$found_la" ;;
6486               esac
6487               libdir="$save_libdir"
6488                             for dep in $dependency_libs; do
6489                 case "$dep" in
6490                   -L*)
6491                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6492                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6493                       haveit=
6494                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6495                         if test -n "$GCC"; then
6496                           case $host_os in
6497                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6498                           esac
6499                         fi
6500                       fi
6501                       if test -z "$haveit"; then
6502                         haveit=
6503                         for x in $LDFLAGS $LIBICONV; do
6504
6505   acl_save_prefix="$prefix"
6506   prefix="$acl_final_prefix"
6507   acl_save_exec_prefix="$exec_prefix"
6508   exec_prefix="$acl_final_exec_prefix"
6509   eval x=\"$x\"
6510   exec_prefix="$acl_save_exec_prefix"
6511   prefix="$acl_save_prefix"
6512
6513                           if test "X$x" = "X-L$additional_libdir"; then
6514                             haveit=yes
6515                             break
6516                           fi
6517                         done
6518                         if test -z "$haveit"; then
6519                           if test -d "$additional_libdir"; then
6520                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6521                           fi
6522                         fi
6523                         haveit=
6524                         for x in $LDFLAGS $LTLIBICONV; do
6525
6526   acl_save_prefix="$prefix"
6527   prefix="$acl_final_prefix"
6528   acl_save_exec_prefix="$exec_prefix"
6529   exec_prefix="$acl_final_exec_prefix"
6530   eval x=\"$x\"
6531   exec_prefix="$acl_save_exec_prefix"
6532   prefix="$acl_save_prefix"
6533
6534                           if test "X$x" = "X-L$additional_libdir"; then
6535                             haveit=yes
6536                             break
6537                           fi
6538                         done
6539                         if test -z "$haveit"; then
6540                           if test -d "$additional_libdir"; then
6541                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6542                           fi
6543                         fi
6544                       fi
6545                     fi
6546                     ;;
6547                   -R*)
6548                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6549                     if test "$enable_rpath" != no; then
6550                                                                   haveit=
6551                       for x in $rpathdirs; do
6552                         if test "X$x" = "X$dir"; then
6553                           haveit=yes
6554                           break
6555                         fi
6556                       done
6557                       if test -z "$haveit"; then
6558                         rpathdirs="$rpathdirs $dir"
6559                       fi
6560                                                                   haveit=
6561                       for x in $ltrpathdirs; do
6562                         if test "X$x" = "X$dir"; then
6563                           haveit=yes
6564                           break
6565                         fi
6566                       done
6567                       if test -z "$haveit"; then
6568                         ltrpathdirs="$ltrpathdirs $dir"
6569                       fi
6570                     fi
6571                     ;;
6572                   -l*)
6573                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6574                     ;;
6575                   *.la)
6576                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6577                     ;;
6578                   *)
6579                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6580                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6581                     ;;
6582                 esac
6583               done
6584             fi
6585           else
6586                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6587             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6588           fi
6589         fi
6590       fi
6591     done
6592   done
6593   if test "X$rpathdirs" != "X"; then
6594     if test -n "$hardcode_libdir_separator"; then
6595                         alldirs=
6596       for found_dir in $rpathdirs; do
6597         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6598       done
6599             acl_save_libdir="$libdir"
6600       libdir="$alldirs"
6601       eval flag=\"$hardcode_libdir_flag_spec\"
6602       libdir="$acl_save_libdir"
6603       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6604     else
6605             for found_dir in $rpathdirs; do
6606         acl_save_libdir="$libdir"
6607         libdir="$found_dir"
6608         eval flag=\"$hardcode_libdir_flag_spec\"
6609         libdir="$acl_save_libdir"
6610         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6611       done
6612     fi
6613   fi
6614   if test "X$ltrpathdirs" != "X"; then
6615             for found_dir in $ltrpathdirs; do
6616       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6617     done
6618   fi
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6638 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6639 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6640   echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642   gt_save_CPPFLAGS="$CPPFLAGS"
6643      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6644      gt_save_LIBS="$LIBS"
6645      LIBS="$LIBS -framework CoreFoundation"
6646      cat >conftest.$ac_ext <<_ACEOF
6647 /* confdefs.h.  */
6648 _ACEOF
6649 cat confdefs.h >>conftest.$ac_ext
6650 cat >>conftest.$ac_ext <<_ACEOF
6651 /* end confdefs.h.  */
6652 #include <CFPreferences.h>
6653 int
6654 main ()
6655 {
6656 CFPreferencesCopyAppValue(NULL, NULL)
6657   ;
6658   return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext conftest$ac_exeext
6662 if { (ac_try="$ac_link"
6663 case "(($ac_try" in
6664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6665   *) ac_try_echo=$ac_try;;
6666 esac
6667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6668   (eval "$ac_link") 2>conftest.er1
6669   ac_status=$?
6670   grep -v '^ *+' conftest.er1 >conftest.err
6671   rm -f conftest.er1
6672   cat conftest.err >&5
6673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674   (exit $ac_status); } && {
6675          test -z "$ac_c_werror_flag" ||
6676          test ! -s conftest.err
6677        } && test -s conftest$ac_exeext &&
6678        $as_test_x conftest$ac_exeext; then
6679   gt_cv_func_CFPreferencesCopyAppValue=yes
6680 else
6681   echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684         gt_cv_func_CFPreferencesCopyAppValue=no
6685 fi
6686
6687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6688       conftest$ac_exeext conftest.$ac_ext
6689      CPPFLAGS="$gt_save_CPPFLAGS"
6690      LIBS="$gt_save_LIBS"
6691 fi
6692 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6693 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6694   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6695
6696 cat >>confdefs.h <<\_ACEOF
6697 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6698 _ACEOF
6699
6700   fi
6701     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6702 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6703 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6704   echo $ECHO_N "(cached) $ECHO_C" >&6
6705 else
6706   gt_save_CPPFLAGS="$CPPFLAGS"
6707      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6708      gt_save_LIBS="$LIBS"
6709      LIBS="$LIBS -framework CoreFoundation"
6710      cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h.  */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h.  */
6716 #include <CFLocale.h>
6717 int
6718 main ()
6719 {
6720 CFLocaleCopyCurrent();
6721   ;
6722   return 0;
6723 }
6724 _ACEOF
6725 rm -f conftest.$ac_objext conftest$ac_exeext
6726 if { (ac_try="$ac_link"
6727 case "(($ac_try" in
6728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6729   *) ac_try_echo=$ac_try;;
6730 esac
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732   (eval "$ac_link") 2>conftest.er1
6733   ac_status=$?
6734   grep -v '^ *+' conftest.er1 >conftest.err
6735   rm -f conftest.er1
6736   cat conftest.err >&5
6737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738   (exit $ac_status); } && {
6739          test -z "$ac_c_werror_flag" ||
6740          test ! -s conftest.err
6741        } && test -s conftest$ac_exeext &&
6742        $as_test_x conftest$ac_exeext; then
6743   gt_cv_func_CFLocaleCopyCurrent=yes
6744 else
6745   echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.$ac_ext >&5
6747
6748         gt_cv_func_CFLocaleCopyCurrent=no
6749 fi
6750
6751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6752       conftest$ac_exeext conftest.$ac_ext
6753      CPPFLAGS="$gt_save_CPPFLAGS"
6754      LIBS="$gt_save_LIBS"
6755 fi
6756 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6757 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6758   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6759
6760 cat >>confdefs.h <<\_ACEOF
6761 #define HAVE_CFLOCALECOPYCURRENT 1
6762 _ACEOF
6763
6764   fi
6765   INTL_MACOSX_LIBS=
6766   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6767     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6768   fi
6769
6770
6771
6772
6773   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6774 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6775     # Check whether --enable-nls was given.
6776 if test "${enable_nls+set}" = set; then
6777   enableval=$enable_nls; USE_NLS=$enableval
6778 else
6779   USE_NLS=yes
6780 fi
6781
6782   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6783 echo "${ECHO_T}$USE_NLS" >&6; }
6784
6785
6786
6787
6788   LIBINTL=
6789   LTLIBINTL=
6790   POSUB=
6791
6792     if test "$USE_NLS" = "yes"; then
6793     gt_use_preinstalled_gnugettext=no
6794
6795
6796
6797
6798
6799
6800         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6801 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6802 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h.  */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h.  */
6811 #include <libintl.h>
6812 extern int _nl_msg_cat_cntr;
6813 extern int *_nl_domain_bindings;
6814 int
6815 main ()
6816 {
6817 bindtextdomain ("", "");
6818 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6819   ;
6820   return 0;
6821 }
6822 _ACEOF
6823 rm -f conftest.$ac_objext conftest$ac_exeext
6824 if { (ac_try="$ac_link"
6825 case "(($ac_try" in
6826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6827   *) ac_try_echo=$ac_try;;
6828 esac
6829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6830   (eval "$ac_link") 2>conftest.er1
6831   ac_status=$?
6832   grep -v '^ *+' conftest.er1 >conftest.err
6833   rm -f conftest.er1
6834   cat conftest.err >&5
6835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836   (exit $ac_status); } && {
6837          test -z "$ac_c_werror_flag" ||
6838          test ! -s conftest.err
6839        } && test -s conftest$ac_exeext &&
6840        $as_test_x conftest$ac_exeext; then
6841   gt_cv_func_gnugettext1_libc=yes
6842 else
6843   echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6845
6846         gt_cv_func_gnugettext1_libc=no
6847 fi
6848
6849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6850       conftest$ac_exeext conftest.$ac_ext
6851 fi
6852 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6853 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6854
6855         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6856
6857
6858
6859
6860
6861           am_save_CPPFLAGS="$CPPFLAGS"
6862
6863   for element in $INCICONV; do
6864     haveit=
6865     for x in $CPPFLAGS; do
6866
6867   acl_save_prefix="$prefix"
6868   prefix="$acl_final_prefix"
6869   acl_save_exec_prefix="$exec_prefix"
6870   exec_prefix="$acl_final_exec_prefix"
6871   eval x=\"$x\"
6872   exec_prefix="$acl_save_exec_prefix"
6873   prefix="$acl_save_prefix"
6874
6875       if test "X$x" = "X$element"; then
6876         haveit=yes
6877         break
6878       fi
6879     done
6880     if test -z "$haveit"; then
6881       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6882     fi
6883   done
6884
6885
6886   { echo "$as_me:$LINENO: checking for iconv" >&5
6887 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6888 if test "${am_cv_func_iconv+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891
6892     am_cv_func_iconv="no, consider installing GNU libiconv"
6893     am_cv_lib_iconv=no
6894     cat >conftest.$ac_ext <<_ACEOF
6895 /* confdefs.h.  */
6896 _ACEOF
6897 cat confdefs.h >>conftest.$ac_ext
6898 cat >>conftest.$ac_ext <<_ACEOF
6899 /* end confdefs.h.  */
6900 #include <stdlib.h>
6901 #include <iconv.h>
6902 int
6903 main ()
6904 {
6905 iconv_t cd = iconv_open("","");
6906        iconv(cd,NULL,NULL,NULL,NULL);
6907        iconv_close(cd);
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext conftest$ac_exeext
6913 if { (ac_try="$ac_link"
6914 case "(($ac_try" in
6915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916   *) ac_try_echo=$ac_try;;
6917 esac
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919   (eval "$ac_link") 2>conftest.er1
6920   ac_status=$?
6921   grep -v '^ *+' conftest.er1 >conftest.err
6922   rm -f conftest.er1
6923   cat conftest.err >&5
6924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6925   (exit $ac_status); } && {
6926          test -z "$ac_c_werror_flag" ||
6927          test ! -s conftest.err
6928        } && test -s conftest$ac_exeext &&
6929        $as_test_x conftest$ac_exeext; then
6930   am_cv_func_iconv=yes
6931 else
6932   echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6934
6935
6936 fi
6937
6938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6939       conftest$ac_exeext conftest.$ac_ext
6940     if test "$am_cv_func_iconv" != yes; then
6941       am_save_LIBS="$LIBS"
6942       LIBS="$LIBS $LIBICONV"
6943       cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #include <stdlib.h>
6950 #include <iconv.h>
6951 int
6952 main ()
6953 {
6954 iconv_t cd = iconv_open("","");
6955          iconv(cd,NULL,NULL,NULL,NULL);
6956          iconv_close(cd);
6957   ;
6958   return 0;
6959 }
6960 _ACEOF
6961 rm -f conftest.$ac_objext conftest$ac_exeext
6962 if { (ac_try="$ac_link"
6963 case "(($ac_try" in
6964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6965   *) ac_try_echo=$ac_try;;
6966 esac
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968   (eval "$ac_link") 2>conftest.er1
6969   ac_status=$?
6970   grep -v '^ *+' conftest.er1 >conftest.err
6971   rm -f conftest.er1
6972   cat conftest.err >&5
6973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974   (exit $ac_status); } && {
6975          test -z "$ac_c_werror_flag" ||
6976          test ! -s conftest.err
6977        } && test -s conftest$ac_exeext &&
6978        $as_test_x conftest$ac_exeext; then
6979   am_cv_lib_iconv=yes
6980         am_cv_func_iconv=yes
6981 else
6982   echo "$as_me: failed program was:" >&5
6983 sed 's/^/| /' conftest.$ac_ext >&5
6984
6985
6986 fi
6987
6988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6989       conftest$ac_exeext conftest.$ac_ext
6990       LIBS="$am_save_LIBS"
6991     fi
6992
6993 fi
6994 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6995 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6996   if test "$am_cv_func_iconv" = yes; then
6997
6998 cat >>confdefs.h <<\_ACEOF
6999 #define HAVE_ICONV 1
7000 _ACEOF
7001
7002   fi
7003   if test "$am_cv_lib_iconv" = yes; then
7004     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7005 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7006     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7007 echo "${ECHO_T}$LIBICONV" >&6; }
7008   else
7009             CPPFLAGS="$am_save_CPPFLAGS"
7010     LIBICONV=
7011     LTLIBICONV=
7012   fi
7013
7014
7015
7016
7017
7018
7019     use_additional=yes
7020
7021   acl_save_prefix="$prefix"
7022   prefix="$acl_final_prefix"
7023   acl_save_exec_prefix="$exec_prefix"
7024   exec_prefix="$acl_final_exec_prefix"
7025
7026     eval additional_includedir=\"$includedir\"
7027     eval additional_libdir=\"$libdir\"
7028
7029   exec_prefix="$acl_save_exec_prefix"
7030   prefix="$acl_save_prefix"
7031
7032
7033 # Check whether --with-libintl-prefix was given.
7034 if test "${with_libintl_prefix+set}" = set; then
7035   withval=$with_libintl_prefix;
7036     if test "X$withval" = "Xno"; then
7037       use_additional=no
7038     else
7039       if test "X$withval" = "X"; then
7040
7041   acl_save_prefix="$prefix"
7042   prefix="$acl_final_prefix"
7043   acl_save_exec_prefix="$exec_prefix"
7044   exec_prefix="$acl_final_exec_prefix"
7045
7046           eval additional_includedir=\"$includedir\"
7047           eval additional_libdir=\"$libdir\"
7048
7049   exec_prefix="$acl_save_exec_prefix"
7050   prefix="$acl_save_prefix"
7051
7052       else
7053         additional_includedir="$withval/include"
7054         additional_libdir="$withval/lib"
7055       fi
7056     fi
7057
7058 fi
7059
7060       LIBINTL=
7061   LTLIBINTL=
7062   INCINTL=
7063   rpathdirs=
7064   ltrpathdirs=
7065   names_already_handled=
7066   names_next_round='intl '
7067   while test -n "$names_next_round"; do
7068     names_this_round="$names_next_round"
7069     names_next_round=
7070     for name in $names_this_round; do
7071       already_handled=
7072       for n in $names_already_handled; do
7073         if test "$n" = "$name"; then
7074           already_handled=yes
7075           break
7076         fi
7077       done
7078       if test -z "$already_handled"; then
7079         names_already_handled="$names_already_handled $name"
7080                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7081         eval value=\"\$HAVE_LIB$uppername\"
7082         if test -n "$value"; then
7083           if test "$value" = yes; then
7084             eval value=\"\$LIB$uppername\"
7085             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7086             eval value=\"\$LTLIB$uppername\"
7087             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7088           else
7089                                     :
7090           fi
7091         else
7092                               found_dir=
7093           found_la=
7094           found_so=
7095           found_a=
7096           if test $use_additional = yes; then
7097             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7098               found_dir="$additional_libdir"
7099               found_so="$additional_libdir/lib$name.$shlibext"
7100               if test -f "$additional_libdir/lib$name.la"; then
7101                 found_la="$additional_libdir/lib$name.la"
7102               fi
7103             else
7104               if test -f "$additional_libdir/lib$name.$libext"; then
7105                 found_dir="$additional_libdir"
7106                 found_a="$additional_libdir/lib$name.$libext"
7107                 if test -f "$additional_libdir/lib$name.la"; then
7108                   found_la="$additional_libdir/lib$name.la"
7109                 fi
7110               fi
7111             fi
7112           fi
7113           if test "X$found_dir" = "X"; then
7114             for x in $LDFLAGS $LTLIBINTL; do
7115
7116   acl_save_prefix="$prefix"
7117   prefix="$acl_final_prefix"
7118   acl_save_exec_prefix="$exec_prefix"
7119   exec_prefix="$acl_final_exec_prefix"
7120   eval x=\"$x\"
7121   exec_prefix="$acl_save_exec_prefix"
7122   prefix="$acl_save_prefix"
7123
7124               case "$x" in
7125                 -L*)
7126                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7127                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7128                     found_dir="$dir"
7129                     found_so="$dir/lib$name.$shlibext"
7130                     if test -f "$dir/lib$name.la"; then
7131                       found_la="$dir/lib$name.la"
7132                     fi
7133                   else
7134                     if test -f "$dir/lib$name.$libext"; then
7135                       found_dir="$dir"
7136                       found_a="$dir/lib$name.$libext"
7137                       if test -f "$dir/lib$name.la"; then
7138                         found_la="$dir/lib$name.la"
7139                       fi
7140                     fi
7141                   fi
7142                   ;;
7143               esac
7144               if test "X$found_dir" != "X"; then
7145                 break
7146               fi
7147             done
7148           fi
7149           if test "X$found_dir" != "X"; then
7150                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7151             if test "X$found_so" != "X"; then
7152                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7153                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7154               else
7155                                                                                 haveit=
7156                 for x in $ltrpathdirs; do
7157                   if test "X$x" = "X$found_dir"; then
7158                     haveit=yes
7159                     break
7160                   fi
7161                 done
7162                 if test -z "$haveit"; then
7163                   ltrpathdirs="$ltrpathdirs $found_dir"
7164                 fi
7165                                 if test "$hardcode_direct" = yes; then
7166                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7167                 else
7168                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7169                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7170                                                             haveit=
7171                     for x in $rpathdirs; do
7172                       if test "X$x" = "X$found_dir"; then
7173                         haveit=yes
7174                         break
7175                       fi
7176                     done
7177                     if test -z "$haveit"; then
7178                       rpathdirs="$rpathdirs $found_dir"
7179                     fi
7180                   else
7181                                                                                 haveit=
7182                     for x in $LDFLAGS $LIBINTL; do
7183
7184   acl_save_prefix="$prefix"
7185   prefix="$acl_final_prefix"
7186   acl_save_exec_prefix="$exec_prefix"
7187   exec_prefix="$acl_final_exec_prefix"
7188   eval x=\"$x\"
7189   exec_prefix="$acl_save_exec_prefix"
7190   prefix="$acl_save_prefix"
7191
7192                       if test "X$x" = "X-L$found_dir"; then
7193                         haveit=yes
7194                         break
7195                       fi
7196                     done
7197                     if test -z "$haveit"; then
7198                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7199                     fi
7200                     if test "$hardcode_minus_L" != no; then
7201                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7202                     else
7203                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7204                     fi
7205                   fi
7206                 fi
7207               fi
7208             else
7209               if test "X$found_a" != "X"; then
7210                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7211               else
7212                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7213               fi
7214             fi
7215                         additional_includedir=
7216             case "$found_dir" in
7217               */lib | */lib/)
7218                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7219                 additional_includedir="$basedir/include"
7220                 ;;
7221             esac
7222             if test "X$additional_includedir" != "X"; then
7223                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7224                 haveit=
7225                 if test "X$additional_includedir" = "X/usr/local/include"; then
7226                   if test -n "$GCC"; then
7227                     case $host_os in
7228                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7229                     esac
7230                   fi
7231                 fi
7232                 if test -z "$haveit"; then
7233                   for x in $CPPFLAGS $INCINTL; do
7234
7235   acl_save_prefix="$prefix"
7236   prefix="$acl_final_prefix"
7237   acl_save_exec_prefix="$exec_prefix"
7238   exec_prefix="$acl_final_exec_prefix"
7239   eval x=\"$x\"
7240   exec_prefix="$acl_save_exec_prefix"
7241   prefix="$acl_save_prefix"
7242
7243                     if test "X$x" = "X-I$additional_includedir"; then
7244                       haveit=yes
7245                       break
7246                     fi
7247                   done
7248                   if test -z "$haveit"; then
7249                     if test -d "$additional_includedir"; then
7250                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7251                     fi
7252                   fi
7253                 fi
7254               fi
7255             fi
7256                         if test -n "$found_la"; then
7257                                                         save_libdir="$libdir"
7258               case "$found_la" in
7259                 */* | *\\*) . "$found_la" ;;
7260                 *) . "./$found_la" ;;
7261               esac
7262               libdir="$save_libdir"
7263                             for dep in $dependency_libs; do
7264                 case "$dep" in
7265                   -L*)
7266                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7267                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7268                       haveit=
7269                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7270                         if test -n "$GCC"; then
7271                           case $host_os in
7272                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7273                           esac
7274                         fi
7275                       fi
7276                       if test -z "$haveit"; then
7277                         haveit=
7278                         for x in $LDFLAGS $LIBINTL; do
7279
7280   acl_save_prefix="$prefix"
7281   prefix="$acl_final_prefix"
7282   acl_save_exec_prefix="$exec_prefix"
7283   exec_prefix="$acl_final_exec_prefix"
7284   eval x=\"$x\"
7285   exec_prefix="$acl_save_exec_prefix"
7286   prefix="$acl_save_prefix"
7287
7288                           if test "X$x" = "X-L$additional_libdir"; then
7289                             haveit=yes
7290                             break
7291                           fi
7292                         done
7293                         if test -z "$haveit"; then
7294                           if test -d "$additional_libdir"; then
7295                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7296                           fi
7297                         fi
7298                         haveit=
7299                         for x in $LDFLAGS $LTLIBINTL; do
7300
7301   acl_save_prefix="$prefix"
7302   prefix="$acl_final_prefix"
7303   acl_save_exec_prefix="$exec_prefix"
7304   exec_prefix="$acl_final_exec_prefix"
7305   eval x=\"$x\"
7306   exec_prefix="$acl_save_exec_prefix"
7307   prefix="$acl_save_prefix"
7308
7309                           if test "X$x" = "X-L$additional_libdir"; then
7310                             haveit=yes
7311                             break
7312                           fi
7313                         done
7314                         if test -z "$haveit"; then
7315                           if test -d "$additional_libdir"; then
7316                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7317                           fi
7318                         fi
7319                       fi
7320                     fi
7321                     ;;
7322                   -R*)
7323                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7324                     if test "$enable_rpath" != no; then
7325                                                                   haveit=
7326                       for x in $rpathdirs; do
7327                         if test "X$x" = "X$dir"; then
7328                           haveit=yes
7329                           break
7330                         fi
7331                       done
7332                       if test -z "$haveit"; then
7333                         rpathdirs="$rpathdirs $dir"
7334                       fi
7335                                                                   haveit=
7336                       for x in $ltrpathdirs; do
7337                         if test "X$x" = "X$dir"; then
7338                           haveit=yes
7339                           break
7340                         fi
7341                       done
7342                       if test -z "$haveit"; then
7343                         ltrpathdirs="$ltrpathdirs $dir"
7344                       fi
7345                     fi
7346                     ;;
7347                   -l*)
7348                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7349                     ;;
7350                   *.la)
7351                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7352                     ;;
7353                   *)
7354                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7355                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7356                     ;;
7357                 esac
7358               done
7359             fi
7360           else
7361                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7362             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7363           fi
7364         fi
7365       fi
7366     done
7367   done
7368   if test "X$rpathdirs" != "X"; then
7369     if test -n "$hardcode_libdir_separator"; then
7370                         alldirs=
7371       for found_dir in $rpathdirs; do
7372         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7373       done
7374             acl_save_libdir="$libdir"
7375       libdir="$alldirs"
7376       eval flag=\"$hardcode_libdir_flag_spec\"
7377       libdir="$acl_save_libdir"
7378       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7379     else
7380             for found_dir in $rpathdirs; do
7381         acl_save_libdir="$libdir"
7382         libdir="$found_dir"
7383         eval flag=\"$hardcode_libdir_flag_spec\"
7384         libdir="$acl_save_libdir"
7385         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7386       done
7387     fi
7388   fi
7389   if test "X$ltrpathdirs" != "X"; then
7390             for found_dir in $ltrpathdirs; do
7391       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7392     done
7393   fi
7394
7395           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7396 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7397 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400   gt_save_CPPFLAGS="$CPPFLAGS"
7401             CPPFLAGS="$CPPFLAGS $INCINTL"
7402             gt_save_LIBS="$LIBS"
7403             LIBS="$LIBS $LIBINTL"
7404                         cat >conftest.$ac_ext <<_ACEOF
7405 /* confdefs.h.  */
7406 _ACEOF
7407 cat confdefs.h >>conftest.$ac_ext
7408 cat >>conftest.$ac_ext <<_ACEOF
7409 /* end confdefs.h.  */
7410 #include <libintl.h>
7411 extern int _nl_msg_cat_cntr;
7412 extern
7413 #ifdef __cplusplus
7414 "C"
7415 #endif
7416 const char *_nl_expand_alias (const char *);
7417 int
7418 main ()
7419 {
7420 bindtextdomain ("", "");
7421 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7422   ;
7423   return 0;
7424 }
7425 _ACEOF
7426 rm -f conftest.$ac_objext conftest$ac_exeext
7427 if { (ac_try="$ac_link"
7428 case "(($ac_try" in
7429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7430   *) ac_try_echo=$ac_try;;
7431 esac
7432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7433   (eval "$ac_link") 2>conftest.er1
7434   ac_status=$?
7435   grep -v '^ *+' conftest.er1 >conftest.err
7436   rm -f conftest.er1
7437   cat conftest.err >&5
7438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439   (exit $ac_status); } && {
7440          test -z "$ac_c_werror_flag" ||
7441          test ! -s conftest.err
7442        } && test -s conftest$ac_exeext &&
7443        $as_test_x conftest$ac_exeext; then
7444   gt_cv_func_gnugettext1_libintl=yes
7445 else
7446   echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449         gt_cv_func_gnugettext1_libintl=no
7450 fi
7451
7452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7453       conftest$ac_exeext conftest.$ac_ext
7454                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7455               LIBS="$LIBS $LIBICONV"
7456               cat >conftest.$ac_ext <<_ACEOF
7457 /* confdefs.h.  */
7458 _ACEOF
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h.  */
7462 #include <libintl.h>
7463 extern int _nl_msg_cat_cntr;
7464 extern
7465 #ifdef __cplusplus
7466 "C"
7467 #endif
7468 const char *_nl_expand_alias (const char *);
7469 int
7470 main ()
7471 {
7472 bindtextdomain ("", "");
7473 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7474   ;
7475   return 0;
7476 }
7477 _ACEOF
7478 rm -f conftest.$ac_objext conftest$ac_exeext
7479 if { (ac_try="$ac_link"
7480 case "(($ac_try" in
7481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482   *) ac_try_echo=$ac_try;;
7483 esac
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485   (eval "$ac_link") 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } && {
7492          test -z "$ac_c_werror_flag" ||
7493          test ! -s conftest.err
7494        } && test -s conftest$ac_exeext &&
7495        $as_test_x conftest$ac_exeext; then
7496   LIBINTL="$LIBINTL $LIBICONV"
7497                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7498                 gt_cv_func_gnugettext1_libintl=yes
7499
7500 else
7501   echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7503
7504
7505 fi
7506
7507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7508       conftest$ac_exeext conftest.$ac_ext
7509             fi
7510             CPPFLAGS="$gt_save_CPPFLAGS"
7511             LIBS="$gt_save_LIBS"
7512 fi
7513 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7514 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7515         fi
7516
7517                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7518            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7519                 && test "$PACKAGE" != gettext-runtime \
7520                 && test "$PACKAGE" != gettext-tools; }; then
7521           gt_use_preinstalled_gnugettext=yes
7522         else
7523                     LIBINTL=
7524           LTLIBINTL=
7525           INCINTL=
7526         fi
7527
7528
7529
7530     if test -n "$INTL_MACOSX_LIBS"; then
7531       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7532          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7533                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7534         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7535       fi
7536     fi
7537
7538     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7539        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7540
7541 cat >>confdefs.h <<\_ACEOF
7542 #define ENABLE_NLS 1
7543 _ACEOF
7544
7545     else
7546       USE_NLS=no
7547     fi
7548   fi
7549
7550   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7551 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7552   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7553 echo "${ECHO_T}$USE_NLS" >&6; }
7554   if test "$USE_NLS" = "yes"; then
7555     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7556 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7557     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7558       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7559         gt_source="external libintl"
7560       else
7561         gt_source="libc"
7562       fi
7563     else
7564       gt_source="included intl directory"
7565     fi
7566     { echo "$as_me:$LINENO: result: $gt_source" >&5
7567 echo "${ECHO_T}$gt_source" >&6; }
7568   fi
7569
7570   if test "$USE_NLS" = "yes"; then
7571
7572     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7573       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7574         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7575 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7576         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7577 echo "${ECHO_T}$LIBINTL" >&6; }
7578
7579   for element in $INCINTL; do
7580     haveit=
7581     for x in $CPPFLAGS; do
7582
7583   acl_save_prefix="$prefix"
7584   prefix="$acl_final_prefix"
7585   acl_save_exec_prefix="$exec_prefix"
7586   exec_prefix="$acl_final_exec_prefix"
7587   eval x=\"$x\"
7588   exec_prefix="$acl_save_exec_prefix"
7589   prefix="$acl_save_prefix"
7590
7591       if test "X$x" = "X$element"; then
7592         haveit=yes
7593         break
7594       fi
7595     done
7596     if test -z "$haveit"; then
7597       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7598     fi
7599   done
7600
7601       fi
7602
7603
7604 cat >>confdefs.h <<\_ACEOF
7605 #define HAVE_GETTEXT 1
7606 _ACEOF
7607
7608
7609 cat >>confdefs.h <<\_ACEOF
7610 #define HAVE_DCGETTEXT 1
7611 _ACEOF
7612
7613     fi
7614
7615         POSUB=po
7616   fi
7617
7618
7619
7620     INTLLIBS="$LIBINTL"
7621
7622
7623
7624
7625
7626
7627 if test x${prefix} = xNONE ; then
7628    if test `eval echo ${datadir}` = NONE/share ; then
7629       datadir=/usr/share
7630    fi
7631 fi
7632
7633 # ------------------------------------------------------------------
7634 #  If the user has not set --prefix, we set our default to nothing.
7635 #  In this case, if the user has not set --sysconfdir, we set it
7636 #  to the package default of /etc/bacula.  If either --prefix or
7637 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7638 # ------------------------------------------------------------------
7639 if test x${prefix} = xNONE ; then
7640     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7641         sysconfdir=/etc/bacula
7642     fi
7643     prefix=
7644 fi
7645 sysconfdir=`eval echo ${sysconfdir}`
7646 datadir=`eval echo ${datadir}`
7647 localedir=`eval echo ${datadir}/locale`
7648 cat >>confdefs.h <<_ACEOF
7649 #define LOCALEDIR "$localedir"
7650 _ACEOF
7651
7652 cat >>confdefs.h <<_ACEOF
7653 #define SYSCONFDIR "$sysconfdir"
7654 _ACEOF
7655
7656
7657 # -------------------------------------------------------------------------
7658 #  If the user has not set --exec-prefix, we default to ${prefix}
7659 # -------------------------------------------------------------------------
7660 if test x${exec_prefix} = xNONE ; then
7661     exec_prefix=${prefix}
7662 fi
7663
7664 # ------------------------------------------------------------------
7665 # If the user has not set --sbindir, we set our default as /sbin
7666 # ------------------------------------------------------------------
7667 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7668     sbindir=${exec_prefix}/sbin
7669 fi
7670 sbindir=`eval echo ${sbindir}`
7671
7672
7673 # -------------------------------------------------------------------------
7674 #  If the user has not set --mandir, we default to /usr/share/man
7675 # -------------------------------------------------------------------------
7676 if test x$mandir = x'${prefix}/man' ; then
7677    mandir=/usr/share/man
7678 fi
7679
7680
7681 for ac_prog in msgfmt
7682 do
7683   # Extract the first word of "$ac_prog", so it can be a program name with args.
7684 set dummy $ac_prog; ac_word=$2
7685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7687 if test "${ac_cv_path_MSGFMT+set}" = set; then
7688   echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690   case $MSGFMT in
7691   [\\/]* | ?:[\\/]*)
7692   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7693   ;;
7694   *)
7695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7696 for as_dir in $PATH
7697 do
7698   IFS=$as_save_IFS
7699   test -z "$as_dir" && as_dir=.
7700   for ac_exec_ext in '' $ac_executable_extensions; do
7701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7702     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7704     break 2
7705   fi
7706 done
7707 done
7708 IFS=$as_save_IFS
7709
7710   ;;
7711 esac
7712 fi
7713 MSGFMT=$ac_cv_path_MSGFMT
7714 if test -n "$MSGFMT"; then
7715   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7716 echo "${ECHO_T}$MSGFMT" >&6; }
7717 else
7718   { echo "$as_me:$LINENO: result: no" >&5
7719 echo "${ECHO_T}no" >&6; }
7720 fi
7721
7722
7723   test -n "$MSGFMT" && break
7724 done
7725 test -n "$MSGFMT" || MSGFMT="no"
7726
7727 if test "$MSGFMT" = "no"
7728 then
7729    echo 'msgfmt program not found, disabling NLS !'
7730    USE_NLS=no
7731    USE_INCLUDED_LIBINTL=no
7732 #else
7733
7734     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7735 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7736 if test "${ac_cv_gnu_library_2+set}" = set; then
7737   echo $ECHO_N "(cached) $ECHO_C" >&6
7738 else
7739   cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 #include <features.h>
7747 #ifdef __GNU_LIBRARY__
7748  #if (__GLIBC__ >= 2)
7749   Lucky GNU user
7750  #endif
7751 #endif
7752
7753 _ACEOF
7754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7755   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7756   ac_cv_gnu_library_2=yes
7757 else
7758   ac_cv_gnu_library_2=no
7759 fi
7760 rm -f conftest*
7761
7762
7763
7764 fi
7765 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7766 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7767
7768     GLIBC2="$ac_cv_gnu_library_2"
7769
7770
7771
7772         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7773 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7774 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7775   echo $ECHO_N "(cached) $ECHO_C" >&6
7776 else
7777   ac_check_lib_save_LIBS=$LIBS
7778 LIBS="-lcposix  $LIBS"
7779 cat >conftest.$ac_ext <<_ACEOF
7780 /* confdefs.h.  */
7781 _ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h.  */
7785
7786 /* Override any GCC internal prototype to avoid an error.
7787    Use char because int might match the return type of a GCC
7788    builtin and then its argument prototype would still apply.  */
7789 #ifdef __cplusplus
7790 extern "C"
7791 #endif
7792 char strerror ();
7793 int
7794 main ()
7795 {
7796 return strerror ();
7797   ;
7798   return 0;
7799 }
7800 _ACEOF
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (ac_try="$ac_link"
7803 case "(($ac_try" in
7804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805   *) ac_try_echo=$ac_try;;
7806 esac
7807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808   (eval "$ac_link") 2>conftest.er1
7809   ac_status=$?
7810   grep -v '^ *+' conftest.er1 >conftest.err
7811   rm -f conftest.er1
7812   cat conftest.err >&5
7813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } && {
7815          test -z "$ac_c_werror_flag" ||
7816          test ! -s conftest.err
7817        } && test -s conftest$ac_exeext &&
7818        $as_test_x conftest$ac_exeext; then
7819   ac_cv_lib_cposix_strerror=yes
7820 else
7821   echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7823
7824         ac_cv_lib_cposix_strerror=no
7825 fi
7826
7827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7828       conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$ac_check_lib_save_LIBS
7830 fi
7831 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7832 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7833 if test $ac_cv_lib_cposix_strerror = yes; then
7834   LIBS="$LIBS -lcposix"
7835 fi
7836
7837
7838
7839 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7841 if test "${ac_cv_header_stdc+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850 #include <stdlib.h>
7851 #include <stdarg.h>
7852 #include <string.h>
7853 #include <float.h>
7854
7855 int
7856 main ()
7857 {
7858
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 rm -f conftest.$ac_objext
7864 if { (ac_try="$ac_compile"
7865 case "(($ac_try" in
7866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867   *) ac_try_echo=$ac_try;;
7868 esac
7869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870   (eval "$ac_compile") 2>conftest.er1
7871   ac_status=$?
7872   grep -v '^ *+' conftest.er1 >conftest.err
7873   rm -f conftest.er1
7874   cat conftest.err >&5
7875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876   (exit $ac_status); } && {
7877          test -z "$ac_c_werror_flag" ||
7878          test ! -s conftest.err
7879        } && test -s conftest.$ac_objext; then
7880   ac_cv_header_stdc=yes
7881 else
7882   echo "$as_me: failed program was:" >&5
7883 sed 's/^/| /' conftest.$ac_ext >&5
7884
7885         ac_cv_header_stdc=no
7886 fi
7887
7888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7889
7890 if test $ac_cv_header_stdc = yes; then
7891   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7892   cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h.  */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h.  */
7898 #include <string.h>
7899
7900 _ACEOF
7901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7902   $EGREP "memchr" >/dev/null 2>&1; then
7903   :
7904 else
7905   ac_cv_header_stdc=no
7906 fi
7907 rm -f conftest*
7908
7909 fi
7910
7911 if test $ac_cv_header_stdc = yes; then
7912   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 #include <stdlib.h>
7920
7921 _ACEOF
7922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923   $EGREP "free" >/dev/null 2>&1; then
7924   :
7925 else
7926   ac_cv_header_stdc=no
7927 fi
7928 rm -f conftest*
7929
7930 fi
7931
7932 if test $ac_cv_header_stdc = yes; then
7933   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7934   if test "$cross_compiling" = yes; then
7935   :
7936 else
7937   cat >conftest.$ac_ext <<_ACEOF
7938 /* confdefs.h.  */
7939 _ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h.  */
7943 #include <ctype.h>
7944 #include <stdlib.h>
7945 #if ((' ' & 0x0FF) == 0x020)
7946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7948 #else
7949 # define ISLOWER(c) \
7950                    (('a' <= (c) && (c) <= 'i') \
7951                      || ('j' <= (c) && (c) <= 'r') \
7952                      || ('s' <= (c) && (c) <= 'z'))
7953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7954 #endif
7955
7956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7957 int
7958 main ()
7959 {
7960   int i;
7961   for (i = 0; i < 256; i++)
7962     if (XOR (islower (i), ISLOWER (i))
7963         || toupper (i) != TOUPPER (i))
7964       return 2;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7970 case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_link") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7979   { (case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_try") 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   :
7989 else
7990   echo "$as_me: program exited with status $ac_status" >&5
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ( exit $ac_status )
7995 ac_cv_header_stdc=no
7996 fi
7997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7998 fi
7999
8000
8001 fi
8002 fi
8003 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8004 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8005 if test $ac_cv_header_stdc = yes; then
8006
8007 cat >>confdefs.h <<\_ACEOF
8008 #define STDC_HEADERS 1
8009 _ACEOF
8010
8011 fi
8012
8013 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8014 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8015 if test "${ac_cv_c_const+set}" = set; then
8016   echo $ECHO_N "(cached) $ECHO_C" >&6
8017 else
8018   cat >conftest.$ac_ext <<_ACEOF
8019 /* confdefs.h.  */
8020 _ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h.  */
8024
8025 int
8026 main ()
8027 {
8028 /* FIXME: Include the comments suggested by Paul. */
8029 #ifndef __cplusplus
8030   /* Ultrix mips cc rejects this.  */
8031   typedef int charset[2];
8032   const charset cs;
8033   /* SunOS 4.1.1 cc rejects this.  */
8034   char const *const *pcpcc;
8035   char **ppc;
8036   /* NEC SVR4.0.2 mips cc rejects this.  */
8037   struct point {int x, y;};
8038   static struct point const zero = {0,0};
8039   /* AIX XL C 1.02.0.0 rejects this.
8040      It does not let you subtract one const X* pointer from another in
8041      an arm of an if-expression whose if-part is not a constant
8042      expression */
8043   const char *g = "string";
8044   pcpcc = &g + (g ? g-g : 0);
8045   /* HPUX 7.0 cc rejects these. */
8046   ++pcpcc;
8047   ppc = (char**) pcpcc;
8048   pcpcc = (char const *const *) ppc;
8049   { /* SCO 3.2v4 cc rejects this.  */
8050     char *t;
8051     char const *s = 0 ? (char *) 0 : (char const *) 0;
8052
8053     *t++ = 0;
8054     if (s) return 0;
8055   }
8056   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8057     int x[] = {25, 17};
8058     const int *foo = &x[0];
8059     ++foo;
8060   }
8061   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8062     typedef const int *iptr;
8063     iptr p = 0;
8064     ++p;
8065   }
8066   { /* AIX XL C 1.02.0.0 rejects this saying
8067        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8068     struct s { int j; const int *ap[3]; };
8069     struct s *b; b->j = 5;
8070   }
8071   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8072     const int foo = 10;
8073     if (!foo) return 0;
8074   }
8075   return !cs[0] && !zero.x;
8076 #endif
8077
8078   ;
8079   return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086   *) ac_try_echo=$ac_try;;
8087 esac
8088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8089   (eval "$ac_compile") 2>conftest.er1
8090   ac_status=$?
8091   grep -v '^ *+' conftest.er1 >conftest.err
8092   rm -f conftest.er1
8093   cat conftest.err >&5
8094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8095   (exit $ac_status); } && {
8096          test -z "$ac_c_werror_flag" ||
8097          test ! -s conftest.err
8098        } && test -s conftest.$ac_objext; then
8099   ac_cv_c_const=yes
8100 else
8101   echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104         ac_cv_c_const=no
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 fi
8109 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8110 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8111 if test $ac_cv_c_const = no; then
8112
8113 cat >>confdefs.h <<\_ACEOF
8114 #define const
8115 _ACEOF
8116
8117 fi
8118
8119
8120   { echo "$as_me:$LINENO: checking for signed" >&5
8121 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8122 if test "${bh_cv_c_signed+set}" = set; then
8123   echo $ECHO_N "(cached) $ECHO_C" >&6
8124 else
8125   cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h.  */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h.  */
8131
8132 int
8133 main ()
8134 {
8135 signed char x;
8136   ;
8137   return 0;
8138 }
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_compile") 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } && {
8154          test -z "$ac_c_werror_flag" ||
8155          test ! -s conftest.err
8156        } && test -s conftest.$ac_objext; then
8157   bh_cv_c_signed=yes
8158 else
8159   echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162         bh_cv_c_signed=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 fi
8167 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8168 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8169   if test $bh_cv_c_signed = no; then
8170
8171 cat >>confdefs.h <<\_ACEOF
8172 #define signed
8173 _ACEOF
8174
8175   fi
8176
8177 { echo "$as_me:$LINENO: checking for inline" >&5
8178 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8179 if test "${ac_cv_c_inline+set}" = set; then
8180   echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182   ac_cv_c_inline=no
8183 for ac_kw in inline __inline__ __inline; do
8184   cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h.  */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h.  */
8190 #ifndef __cplusplus
8191 typedef int foo_t;
8192 static $ac_kw foo_t static_foo () {return 0; }
8193 $ac_kw foo_t foo () {return 0; }
8194 #endif
8195
8196 _ACEOF
8197 rm -f conftest.$ac_objext
8198 if { (ac_try="$ac_compile"
8199 case "(($ac_try" in
8200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201   *) ac_try_echo=$ac_try;;
8202 esac
8203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8204   (eval "$ac_compile") 2>conftest.er1
8205   ac_status=$?
8206   grep -v '^ *+' conftest.er1 >conftest.err
8207   rm -f conftest.er1
8208   cat conftest.err >&5
8209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210   (exit $ac_status); } && {
8211          test -z "$ac_c_werror_flag" ||
8212          test ! -s conftest.err
8213        } && test -s conftest.$ac_objext; then
8214   ac_cv_c_inline=$ac_kw
8215 else
8216   echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8218
8219
8220 fi
8221
8222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8223   test "$ac_cv_c_inline" != no && break
8224 done
8225
8226 fi
8227 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8228 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8229
8230
8231 case $ac_cv_c_inline in
8232   inline | yes) ;;
8233   *)
8234     case $ac_cv_c_inline in
8235       no) ac_val=;;
8236       *) ac_val=$ac_cv_c_inline;;
8237     esac
8238     cat >>confdefs.h <<_ACEOF
8239 #ifndef __cplusplus
8240 #define inline $ac_val
8241 #endif
8242 _ACEOF
8243     ;;
8244 esac
8245
8246 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8257                   inttypes.h stdint.h unistd.h
8258 do
8259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 $ac_includes_default
8272
8273 #include <$ac_header>
8274 _ACEOF
8275 rm -f conftest.$ac_objext
8276 if { (ac_try="$ac_compile"
8277 case "(($ac_try" in
8278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8279   *) ac_try_echo=$ac_try;;
8280 esac
8281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8282   (eval "$ac_compile") 2>conftest.er1
8283   ac_status=$?
8284   grep -v '^ *+' conftest.er1 >conftest.err
8285   rm -f conftest.er1
8286   cat conftest.err >&5
8287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288   (exit $ac_status); } && {
8289          test -z "$ac_c_werror_flag" ||
8290          test ! -s conftest.err
8291        } && test -s conftest.$ac_objext; then
8292   eval "$as_ac_Header=yes"
8293 else
8294   echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8296
8297         eval "$as_ac_Header=no"
8298 fi
8299
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 ac_res=`eval echo '${'$as_ac_Header'}'`
8303                { echo "$as_me:$LINENO: result: $ac_res" >&5
8304 echo "${ECHO_T}$ac_res" >&6; }
8305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8306   cat >>confdefs.h <<_ACEOF
8307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8308 _ACEOF
8309
8310 fi
8311
8312 done
8313
8314
8315 { echo "$as_me:$LINENO: checking for off_t" >&5
8316 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8317 if test "${ac_cv_type_off_t+set}" = set; then
8318   echo $ECHO_N "(cached) $ECHO_C" >&6
8319 else
8320   cat >conftest.$ac_ext <<_ACEOF
8321 /* confdefs.h.  */
8322 _ACEOF
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h.  */
8326 $ac_includes_default
8327 typedef off_t ac__type_new_;
8328 int
8329 main ()
8330 {
8331 if ((ac__type_new_ *) 0)
8332   return 0;
8333 if (sizeof (ac__type_new_))
8334   return 0;
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (ac_try="$ac_compile"
8341 case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_compile") 2>conftest.er1
8347   ac_status=$?
8348   grep -v '^ *+' conftest.er1 >conftest.err
8349   rm -f conftest.er1
8350   cat conftest.err >&5
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } && {
8353          test -z "$ac_c_werror_flag" ||
8354          test ! -s conftest.err
8355        } && test -s conftest.$ac_objext; then
8356   ac_cv_type_off_t=yes
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361         ac_cv_type_off_t=no
8362 fi
8363
8364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8365 fi
8366 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8367 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8368 if test $ac_cv_type_off_t = yes; then
8369   :
8370 else
8371
8372 cat >>confdefs.h <<_ACEOF
8373 #define off_t long int
8374 _ACEOF
8375
8376 fi
8377
8378 { echo "$as_me:$LINENO: checking for size_t" >&5
8379 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8380 if test "${ac_cv_type_size_t+set}" = set; then
8381   echo $ECHO_N "(cached) $ECHO_C" >&6
8382 else
8383   cat >conftest.$ac_ext <<_ACEOF
8384 /* confdefs.h.  */
8385 _ACEOF
8386 cat confdefs.h >>conftest.$ac_ext
8387 cat >>conftest.$ac_ext <<_ACEOF
8388 /* end confdefs.h.  */
8389 $ac_includes_default
8390 typedef size_t ac__type_new_;
8391 int
8392 main ()
8393 {
8394 if ((ac__type_new_ *) 0)
8395   return 0;
8396 if (sizeof (ac__type_new_))
8397   return 0;
8398   ;
8399   return 0;
8400 }
8401 _ACEOF
8402 rm -f conftest.$ac_objext
8403 if { (ac_try="$ac_compile"
8404 case "(($ac_try" in
8405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8406   *) ac_try_echo=$ac_try;;
8407 esac
8408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8409   (eval "$ac_compile") 2>conftest.er1
8410   ac_status=$?
8411   grep -v '^ *+' conftest.er1 >conftest.err
8412   rm -f conftest.er1
8413   cat conftest.err >&5
8414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415   (exit $ac_status); } && {
8416          test -z "$ac_c_werror_flag" ||
8417          test ! -s conftest.err
8418        } && test -s conftest.$ac_objext; then
8419   ac_cv_type_size_t=yes
8420 else
8421   echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424         ac_cv_type_size_t=no
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8430 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8431 if test $ac_cv_type_size_t = yes; then
8432   :
8433 else
8434
8435 cat >>confdefs.h <<_ACEOF
8436 #define size_t unsigned int
8437 _ACEOF
8438
8439 fi
8440
8441
8442   { echo "$as_me:$LINENO: checking for long long" >&5
8443 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8444 if test "${ac_cv_type_long_long+set}" = set; then
8445   echo $ECHO_N "(cached) $ECHO_C" >&6
8446 else
8447   cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453 long long ll = 1LL; int i = 63;
8454 int
8455 main ()
8456 {
8457 long long llmax = (long long) -1;
8458      return ll << i | ll >> i | llmax / ll | llmax % ll;
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (ac_try="$ac_link"
8465 case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470   (eval "$ac_link") 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } && {
8477          test -z "$ac_c_werror_flag" ||
8478          test ! -s conftest.err
8479        } && test -s conftest$ac_exeext &&
8480        $as_test_x conftest$ac_exeext; then
8481   ac_cv_type_long_long=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8485
8486         ac_cv_type_long_long=no
8487 fi
8488
8489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8490       conftest$ac_exeext conftest.$ac_ext
8491 fi
8492 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8493 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8494   if test $ac_cv_type_long_long = yes; then
8495
8496 cat >>confdefs.h <<\_ACEOF
8497 #define HAVE_LONG_LONG 1
8498 _ACEOF
8499
8500   fi
8501
8502
8503   { echo "$as_me:$LINENO: checking for long double" >&5
8504 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8505 if test "${gt_cv_c_long_double+set}" = set; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   if test "$GCC" = yes; then
8509        gt_cv_c_long_double=yes
8510      else
8511        cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h.  */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h.  */
8517
8518          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8519          long double foo = 0.0;
8520          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8521          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8522
8523 int
8524 main ()
8525 {
8526
8527   ;
8528   return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8533 case "(($ac_try" in
8534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535   *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538   (eval "$ac_compile") 2>conftest.er1
8539   ac_status=$?
8540   grep -v '^ *+' conftest.er1 >conftest.err
8541   rm -f conftest.er1
8542   cat conftest.err >&5
8543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544   (exit $ac_status); } && {
8545          test -z "$ac_c_werror_flag" ||
8546          test ! -s conftest.err
8547        } && test -s conftest.$ac_objext; then
8548   gt_cv_c_long_double=yes
8549 else
8550   echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553         gt_cv_c_long_double=no
8554 fi
8555
8556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557      fi
8558 fi
8559 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8560 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8561   if test $gt_cv_c_long_double = yes; then
8562
8563 cat >>confdefs.h <<\_ACEOF
8564 #define HAVE_LONG_DOUBLE 1
8565 _ACEOF
8566
8567   fi
8568
8569
8570   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8571 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8572 if test "${gt_cv_c_wchar_t+set}" = set; then
8573   echo $ECHO_N "(cached) $ECHO_C" >&6
8574 else
8575   cat >conftest.$ac_ext <<_ACEOF
8576 /* confdefs.h.  */
8577 _ACEOF
8578 cat confdefs.h >>conftest.$ac_ext
8579 cat >>conftest.$ac_ext <<_ACEOF
8580 /* end confdefs.h.  */
8581 #include <stddef.h>
8582        wchar_t foo = (wchar_t)'\0';
8583 int
8584 main ()
8585 {
8586
8587   ;
8588   return 0;
8589 }
8590 _ACEOF
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8593 case "(($ac_try" in
8594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595   *) ac_try_echo=$ac_try;;
8596 esac
8597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598   (eval "$ac_compile") 2>conftest.er1
8599   ac_status=$?
8600   grep -v '^ *+' conftest.er1 >conftest.err
8601   rm -f conftest.er1
8602   cat conftest.err >&5
8603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604   (exit $ac_status); } && {
8605          test -z "$ac_c_werror_flag" ||
8606          test ! -s conftest.err
8607        } && test -s conftest.$ac_objext; then
8608   gt_cv_c_wchar_t=yes
8609 else
8610   echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8612
8613         gt_cv_c_wchar_t=no
8614 fi
8615
8616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 fi
8618 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8619 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8620   if test $gt_cv_c_wchar_t = yes; then
8621
8622 cat >>confdefs.h <<\_ACEOF
8623 #define HAVE_WCHAR_T 1
8624 _ACEOF
8625
8626   fi
8627
8628
8629   { echo "$as_me:$LINENO: checking for wint_t" >&5
8630 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8631 if test "${gt_cv_c_wint_t+set}" = set; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634   cat >conftest.$ac_ext <<_ACEOF
8635 /* confdefs.h.  */
8636 _ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h.  */
8640 #include <wchar.h>
8641        wint_t foo = (wchar_t)'\0';
8642 int
8643 main ()
8644 {
8645
8646   ;
8647   return 0;
8648 }
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8652 case "(($ac_try" in
8653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654   *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657   (eval "$ac_compile") 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && {
8664          test -z "$ac_c_werror_flag" ||
8665          test ! -s conftest.err
8666        } && test -s conftest.$ac_objext; then
8667   gt_cv_c_wint_t=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672         gt_cv_c_wint_t=no
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 fi
8677 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8678 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8679   if test $gt_cv_c_wint_t = yes; then
8680
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_WINT_T 1
8683 _ACEOF
8684
8685   fi
8686
8687
8688   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8689 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8690 if test "${gl_cv_header_inttypes_h+set}" = set; then
8691   echo $ECHO_N "(cached) $ECHO_C" >&6
8692 else
8693   cat >conftest.$ac_ext <<_ACEOF
8694 /* confdefs.h.  */
8695 _ACEOF
8696 cat confdefs.h >>conftest.$ac_ext
8697 cat >>conftest.$ac_ext <<_ACEOF
8698 /* end confdefs.h.  */
8699 #include <sys/types.h>
8700 #include <inttypes.h>
8701 int
8702 main ()
8703 {
8704 uintmax_t i = (uintmax_t) -1;
8705   ;
8706   return 0;
8707 }
8708 _ACEOF
8709 rm -f conftest.$ac_objext
8710 if { (ac_try="$ac_compile"
8711 case "(($ac_try" in
8712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8713   *) ac_try_echo=$ac_try;;
8714 esac
8715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8716   (eval "$ac_compile") 2>conftest.er1
8717   ac_status=$?
8718   grep -v '^ *+' conftest.er1 >conftest.err
8719   rm -f conftest.er1
8720   cat conftest.err >&5
8721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722   (exit $ac_status); } && {
8723          test -z "$ac_c_werror_flag" ||
8724          test ! -s conftest.err
8725        } && test -s conftest.$ac_objext; then
8726   gl_cv_header_inttypes_h=yes
8727 else
8728   echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8730
8731         gl_cv_header_inttypes_h=no
8732 fi
8733
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 fi
8736 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8737 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8738   if test $gl_cv_header_inttypes_h = yes; then
8739
8740 cat >>confdefs.h <<_ACEOF
8741 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8742 _ACEOF
8743
8744   fi
8745
8746
8747   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8748 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8749 if test "${gl_cv_header_stdint_h+set}" = set; then
8750   echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752   cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h.  */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h.  */
8758 #include <sys/types.h>
8759 #include <stdint.h>
8760 int
8761 main ()
8762 {
8763 uintmax_t i = (uintmax_t) -1;
8764   ;
8765   return 0;
8766 }
8767 _ACEOF
8768 rm -f conftest.$ac_objext
8769 if { (ac_try="$ac_compile"
8770 case "(($ac_try" in
8771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772   *) ac_try_echo=$ac_try;;
8773 esac
8774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775   (eval "$ac_compile") 2>conftest.er1
8776   ac_status=$?
8777   grep -v '^ *+' conftest.er1 >conftest.err
8778   rm -f conftest.er1
8779   cat conftest.err >&5
8780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781   (exit $ac_status); } && {
8782          test -z "$ac_c_werror_flag" ||
8783          test ! -s conftest.err
8784        } && test -s conftest.$ac_objext; then
8785   gl_cv_header_stdint_h=yes
8786 else
8787   echo "$as_me: failed program was:" >&5
8788 sed 's/^/| /' conftest.$ac_ext >&5
8789
8790         gl_cv_header_stdint_h=no
8791 fi
8792
8793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 fi
8795 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8796 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8797   if test $gl_cv_header_stdint_h = yes; then
8798
8799 cat >>confdefs.h <<_ACEOF
8800 #define HAVE_STDINT_H_WITH_UINTMAX 1
8801 _ACEOF
8802
8803   fi
8804
8805
8806
8807
8808   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8809 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8810 if test "${gt_cv_c_intmax_t+set}" = set; then
8811   echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813   cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h.  */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h.  */
8819
8820 #include <stddef.h>
8821 #include <stdlib.h>
8822 #if HAVE_STDINT_H_WITH_UINTMAX
8823 #include <stdint.h>
8824 #endif
8825 #if HAVE_INTTYPES_H_WITH_UINTMAX
8826 #include <inttypes.h>
8827 #endif
8828
8829 int
8830 main ()
8831 {
8832 intmax_t x = -1;
8833   ;
8834   return 0;
8835 }
8836 _ACEOF
8837 rm -f conftest.$ac_objext
8838 if { (ac_try="$ac_compile"
8839 case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_compile") 2>conftest.er1
8845   ac_status=$?
8846   grep -v '^ *+' conftest.er1 >conftest.err
8847   rm -f conftest.er1
8848   cat conftest.err >&5
8849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850   (exit $ac_status); } && {
8851          test -z "$ac_c_werror_flag" ||
8852          test ! -s conftest.err
8853        } && test -s conftest.$ac_objext; then
8854   gt_cv_c_intmax_t=yes
8855 else
8856   echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8858
8859         gt_cv_c_intmax_t=no
8860 fi
8861
8862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8863 fi
8864 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8865 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8866   if test $gt_cv_c_intmax_t = yes; then
8867
8868 cat >>confdefs.h <<\_ACEOF
8869 #define HAVE_INTMAX_T 1
8870 _ACEOF
8871
8872   fi
8873
8874
8875
8876   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8877 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8878 if test "${gt_cv_func_printf_posix+set}" = set; then
8879   echo $ECHO_N "(cached) $ECHO_C" >&6
8880 else
8881
8882       if test "$cross_compiling" = yes; then
8883
8884         cat >conftest.$ac_ext <<_ACEOF
8885 /* confdefs.h.  */
8886 _ACEOF
8887 cat confdefs.h >>conftest.$ac_ext
8888 cat >>conftest.$ac_ext <<_ACEOF
8889 /* end confdefs.h.  */
8890
8891 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8892   notposix
8893 #endif
8894
8895 _ACEOF
8896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8897   $EGREP "notposix" >/dev/null 2>&1; then
8898   gt_cv_func_printf_posix="guessing no"
8899 else
8900   gt_cv_func_printf_posix="guessing yes"
8901 fi
8902 rm -f conftest*
8903
8904
8905 else
8906   cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912
8913 #include <stdio.h>
8914 #include <string.h>
8915 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8916    dollar expansion (possibly an autoconf bug).  */
8917 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8918 static char buf[100];
8919 int main ()
8920 {
8921   sprintf (buf, format, 33, 55);
8922   return (strcmp (buf, "55 33") != 0);
8923 }
8924 _ACEOF
8925 rm -f conftest$ac_exeext
8926 if { (ac_try="$ac_link"
8927 case "(($ac_try" in
8928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929   *) ac_try_echo=$ac_try;;
8930 esac
8931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8932   (eval "$ac_link") 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8936   { (case "(($ac_try" in
8937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8938   *) ac_try_echo=$ac_try;;
8939 esac
8940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8941   (eval "$ac_try") 2>&5
8942   ac_status=$?
8943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); }; }; then
8945   gt_cv_func_printf_posix=yes
8946 else
8947   echo "$as_me: program exited with status $ac_status" >&5
8948 echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951 ( exit $ac_status )
8952 gt_cv_func_printf_posix=no
8953 fi
8954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8955 fi
8956
8957
8958
8959 fi
8960 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8961 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8962   case $gt_cv_func_printf_posix in
8963     *yes)
8964
8965 cat >>confdefs.h <<\_ACEOF
8966 #define HAVE_POSIX_PRINTF 1
8967 _ACEOF
8968
8969       ;;
8970   esac
8971
8972 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8973 # for constant arguments.  Useless!
8974 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8975 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8976 if test "${ac_cv_working_alloca_h+set}" = set; then
8977   echo $ECHO_N "(cached) $ECHO_C" >&6
8978 else
8979   cat >conftest.$ac_ext <<_ACEOF
8980 /* confdefs.h.  */
8981 _ACEOF
8982 cat confdefs.h >>conftest.$ac_ext
8983 cat >>conftest.$ac_ext <<_ACEOF
8984 /* end confdefs.h.  */
8985 #include <alloca.h>
8986 int
8987 main ()
8988 {
8989 char *p = (char *) alloca (2 * sizeof (int));
8990                           if (p) return 0;
8991   ;
8992   return 0;
8993 }
8994 _ACEOF
8995 rm -f conftest.$ac_objext conftest$ac_exeext
8996 if { (ac_try="$ac_link"
8997 case "(($ac_try" in
8998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8999   *) ac_try_echo=$ac_try;;
9000 esac
9001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9002   (eval "$ac_link") 2>conftest.er1
9003   ac_status=$?
9004   grep -v '^ *+' conftest.er1 >conftest.err
9005   rm -f conftest.er1
9006   cat conftest.err >&5
9007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008   (exit $ac_status); } && {
9009          test -z "$ac_c_werror_flag" ||
9010          test ! -s conftest.err
9011        } && test -s conftest$ac_exeext &&
9012        $as_test_x conftest$ac_exeext; then
9013   ac_cv_working_alloca_h=yes
9014 else
9015   echo "$as_me: failed program was:" >&5
9016 sed 's/^/| /' conftest.$ac_ext >&5
9017
9018         ac_cv_working_alloca_h=no
9019 fi
9020
9021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9022       conftest$ac_exeext conftest.$ac_ext
9023 fi
9024 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9025 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9026 if test $ac_cv_working_alloca_h = yes; then
9027
9028 cat >>confdefs.h <<\_ACEOF
9029 #define HAVE_ALLOCA_H 1
9030 _ACEOF
9031
9032 fi
9033
9034 { echo "$as_me:$LINENO: checking for alloca" >&5
9035 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9036 if test "${ac_cv_func_alloca_works+set}" = set; then
9037   echo $ECHO_N "(cached) $ECHO_C" >&6
9038 else
9039   cat >conftest.$ac_ext <<_ACEOF
9040 /* confdefs.h.  */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h.  */
9045 #ifdef __GNUC__
9046 # define alloca __builtin_alloca
9047 #else
9048 # ifdef _MSC_VER
9049 #  include <malloc.h>
9050 #  define alloca _alloca
9051 # else
9052 #  ifdef HAVE_ALLOCA_H
9053 #   include <alloca.h>
9054 #  else
9055 #   ifdef _AIX
9056  #pragma alloca
9057 #   else
9058 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9059 char *alloca ();
9060 #    endif
9061 #   endif
9062 #  endif
9063 # endif
9064 #endif
9065
9066 int
9067 main ()
9068 {
9069 char *p = (char *) alloca (1);
9070                                     if (p) return 0;
9071   ;
9072   return 0;
9073 }
9074 _ACEOF
9075 rm -f conftest.$ac_objext conftest$ac_exeext
9076 if { (ac_try="$ac_link"
9077 case "(($ac_try" in
9078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9079   *) ac_try_echo=$ac_try;;
9080 esac
9081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9082   (eval "$ac_link") 2>conftest.er1
9083   ac_status=$?
9084   grep -v '^ *+' conftest.er1 >conftest.err
9085   rm -f conftest.er1
9086   cat conftest.err >&5
9087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088   (exit $ac_status); } && {
9089          test -z "$ac_c_werror_flag" ||
9090          test ! -s conftest.err
9091        } && test -s conftest$ac_exeext &&
9092        $as_test_x conftest$ac_exeext; then
9093   ac_cv_func_alloca_works=yes
9094 else
9095   echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9097
9098         ac_cv_func_alloca_works=no
9099 fi
9100
9101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9102       conftest$ac_exeext conftest.$ac_ext
9103 fi
9104 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9105 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9106
9107 if test $ac_cv_func_alloca_works = yes; then
9108
9109 cat >>confdefs.h <<\_ACEOF
9110 #define HAVE_ALLOCA 1
9111 _ACEOF
9112
9113 else
9114   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9115 # that cause trouble.  Some versions do not even contain alloca or
9116 # contain a buggy version.  If you still want to use their alloca,
9117 # use ar to extract alloca.o from them instead of compiling alloca.c.
9118
9119 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9120
9121 cat >>confdefs.h <<\_ACEOF
9122 #define C_ALLOCA 1
9123 _ACEOF
9124
9125
9126 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9127 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9128 if test "${ac_cv_os_cray+set}" = set; then
9129   echo $ECHO_N "(cached) $ECHO_C" >&6
9130 else
9131   cat >conftest.$ac_ext <<_ACEOF
9132 /* confdefs.h.  */
9133 _ACEOF
9134 cat confdefs.h >>conftest.$ac_ext
9135 cat >>conftest.$ac_ext <<_ACEOF
9136 /* end confdefs.h.  */
9137 #if defined CRAY && ! defined CRAY2
9138 webecray
9139 #else
9140 wenotbecray
9141 #endif
9142
9143 _ACEOF
9144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9145   $EGREP "webecray" >/dev/null 2>&1; then
9146   ac_cv_os_cray=yes
9147 else
9148   ac_cv_os_cray=no
9149 fi
9150 rm -f conftest*
9151
9152 fi
9153 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9154 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9155 if test $ac_cv_os_cray = yes; then
9156   for ac_func in _getb67 GETB67 getb67; do
9157     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9161   echo $ECHO_N "(cached) $ECHO_C" >&6
9162 else
9163   cat >conftest.$ac_ext <<_ACEOF
9164 /* confdefs.h.  */
9165 _ACEOF
9166 cat confdefs.h >>conftest.$ac_ext
9167 cat >>conftest.$ac_ext <<_ACEOF
9168 /* end confdefs.h.  */
9169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9170    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9171 #define $ac_func innocuous_$ac_func
9172
9173 /* System header to define __stub macros and hopefully few prototypes,
9174     which can conflict with char $ac_func (); below.
9175     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9176     <limits.h> exists even on freestanding compilers.  */
9177
9178 #ifdef __STDC__
9179 # include <limits.h>
9180 #else
9181 # include <assert.h>
9182 #endif
9183
9184 #undef $ac_func
9185
9186 /* Override any GCC internal prototype to avoid an error.
9187    Use char because int might match the return type of a GCC
9188    builtin and then its argument prototype would still apply.  */
9189 #ifdef __cplusplus
9190 extern "C"
9191 #endif
9192 char $ac_func ();
9193 /* The GNU C library defines this for functions which it implements
9194     to always fail with ENOSYS.  Some functions are actually named
9195     something starting with __ and the normal name is an alias.  */
9196 #if defined __stub_$ac_func || defined __stub___$ac_func
9197 choke me
9198 #endif
9199
9200 int
9201 main ()
9202 {
9203 return $ac_func ();
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 rm -f conftest.$ac_objext conftest$ac_exeext
9209 if { (ac_try="$ac_link"
9210 case "(($ac_try" in
9211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9212   *) ac_try_echo=$ac_try;;
9213 esac
9214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9215   (eval "$ac_link") 2>conftest.er1
9216   ac_status=$?
9217   grep -v '^ *+' conftest.er1 >conftest.err
9218   rm -f conftest.er1
9219   cat conftest.err >&5
9220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221   (exit $ac_status); } && {
9222          test -z "$ac_c_werror_flag" ||
9223          test ! -s conftest.err
9224        } && test -s conftest$ac_exeext &&
9225        $as_test_x conftest$ac_exeext; then
9226   eval "$as_ac_var=yes"
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231         eval "$as_ac_var=no"
9232 fi
9233
9234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9235       conftest$ac_exeext conftest.$ac_ext
9236 fi
9237 ac_res=`eval echo '${'$as_ac_var'}'`
9238                { echo "$as_me:$LINENO: result: $ac_res" >&5
9239 echo "${ECHO_T}$ac_res" >&6; }
9240 if test `eval echo '${'$as_ac_var'}'` = yes; then
9241
9242 cat >>confdefs.h <<_ACEOF
9243 #define CRAY_STACKSEG_END $ac_func
9244 _ACEOF
9245
9246     break
9247 fi
9248
9249   done
9250 fi
9251
9252 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9253 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9254 if test "${ac_cv_c_stack_direction+set}" = set; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   if test "$cross_compiling" = yes; then
9258   ac_cv_c_stack_direction=0
9259 else
9260   cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h.  */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h.  */
9266 $ac_includes_default
9267 int
9268 find_stack_direction ()
9269 {
9270   static char *addr = 0;
9271   auto char dummy;
9272   if (addr == 0)
9273     {
9274       addr = &dummy;
9275       return find_stack_direction ();
9276     }
9277   else
9278     return (&dummy > addr) ? 1 : -1;
9279 }
9280
9281 int
9282 main ()
9283 {
9284   return find_stack_direction () < 0;
9285 }
9286 _ACEOF
9287 rm -f conftest$ac_exeext
9288 if { (ac_try="$ac_link"
9289 case "(($ac_try" in
9290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9291   *) ac_try_echo=$ac_try;;
9292 esac
9293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9294   (eval "$ac_link") 2>&5
9295   ac_status=$?
9296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9298   { (case "(($ac_try" in
9299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9300   *) ac_try_echo=$ac_try;;
9301 esac
9302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9303   (eval "$ac_try") 2>&5
9304   ac_status=$?
9305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306   (exit $ac_status); }; }; then
9307   ac_cv_c_stack_direction=1
9308 else
9309   echo "$as_me: program exited with status $ac_status" >&5
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9312
9313 ( exit $ac_status )
9314 ac_cv_c_stack_direction=-1
9315 fi
9316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9317 fi
9318
9319
9320 fi
9321 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9322 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9323
9324 cat >>confdefs.h <<_ACEOF
9325 #define STACK_DIRECTION $ac_cv_c_stack_direction
9326 _ACEOF
9327
9328
9329 fi
9330
9331
9332
9333 for ac_header in stdlib.h unistd.h
9334 do
9335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9337   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9340   echo $ECHO_N "(cached) $ECHO_C" >&6
9341 fi
9342 ac_res=`eval echo '${'$as_ac_Header'}'`
9343                { echo "$as_me:$LINENO: result: $ac_res" >&5
9344 echo "${ECHO_T}$ac_res" >&6; }
9345 else
9346   # Is the header compilable?
9347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9349 cat >conftest.$ac_ext <<_ACEOF
9350 /* confdefs.h.  */
9351 _ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h.  */
9355 $ac_includes_default
9356 #include <$ac_header>
9357 _ACEOF
9358 rm -f conftest.$ac_objext
9359 if { (ac_try="$ac_compile"
9360 case "(($ac_try" in
9361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9362   *) ac_try_echo=$ac_try;;
9363 esac
9364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9365   (eval "$ac_compile") 2>conftest.er1
9366   ac_status=$?
9367   grep -v '^ *+' conftest.er1 >conftest.err
9368   rm -f conftest.er1
9369   cat conftest.err >&5
9370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9371   (exit $ac_status); } && {
9372          test -z "$ac_c_werror_flag" ||
9373          test ! -s conftest.err
9374        } && test -s conftest.$ac_objext; then
9375   ac_header_compiler=yes
9376 else
9377   echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9379
9380         ac_header_compiler=no
9381 fi
9382
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9385 echo "${ECHO_T}$ac_header_compiler" >&6; }
9386
9387 # Is the header present?
9388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h.  */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h.  */
9396 #include <$ac_header>
9397 _ACEOF
9398 if { (ac_try="$ac_cpp conftest.$ac_ext"
9399 case "(($ac_try" in
9400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401   *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9405   ac_status=$?
9406   grep -v '^ *+' conftest.er1 >conftest.err
9407   rm -f conftest.er1
9408   cat conftest.err >&5
9409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410   (exit $ac_status); } >/dev/null && {
9411          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9412          test ! -s conftest.err
9413        }; then
9414   ac_header_preproc=yes
9415 else
9416   echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9418
9419   ac_header_preproc=no
9420 fi
9421
9422 rm -f conftest.err conftest.$ac_ext
9423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9424 echo "${ECHO_T}$ac_header_preproc" >&6; }
9425
9426 # So?  What about this header?
9427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9428   yes:no: )
9429     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9433     ac_header_preproc=yes
9434     ;;
9435   no:yes:* )
9436     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9438     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9439 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9440     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9442     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9443 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9446     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9448
9449     ;;
9450 esac
9451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9454   echo $ECHO_N "(cached) $ECHO_C" >&6
9455 else
9456   eval "$as_ac_Header=\$ac_header_preproc"
9457 fi
9458 ac_res=`eval echo '${'$as_ac_Header'}'`
9459                { echo "$as_me:$LINENO: result: $ac_res" >&5
9460 echo "${ECHO_T}$ac_res" >&6; }
9461
9462 fi
9463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9464   cat >>confdefs.h <<_ACEOF
9465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9466 _ACEOF
9467
9468 fi
9469
9470 done
9471
9472
9473 for ac_func in getpagesize
9474 do
9475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9479   echo $ECHO_N "(cached) $ECHO_C" >&6
9480 else
9481   cat >conftest.$ac_ext <<_ACEOF
9482 /* confdefs.h.  */
9483 _ACEOF
9484 cat confdefs.h >>conftest.$ac_ext
9485 cat >>conftest.$ac_ext <<_ACEOF
9486 /* end confdefs.h.  */
9487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9488    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9489 #define $ac_func innocuous_$ac_func
9490
9491 /* System header to define __stub macros and hopefully few prototypes,
9492     which can conflict with char $ac_func (); below.
9493     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9494     <limits.h> exists even on freestanding compilers.  */
9495
9496 #ifdef __STDC__
9497 # include <limits.h>
9498 #else
9499 # include <assert.h>
9500 #endif
9501
9502 #undef $ac_func
9503
9504 /* Override any GCC internal prototype to avoid an error.
9505    Use char because int might match the return type of a GCC
9506    builtin and then its argument prototype would still apply.  */
9507 #ifdef __cplusplus
9508 extern "C"
9509 #endif
9510 char $ac_func ();
9511 /* The GNU C library defines this for functions which it implements
9512     to always fail with ENOSYS.  Some functions are actually named
9513     something starting with __ and the normal name is an alias.  */
9514 #if defined __stub_$ac_func || defined __stub___$ac_func
9515 choke me
9516 #endif
9517
9518 int
9519 main ()
9520 {
9521 return $ac_func ();
9522   ;
9523   return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext conftest$ac_exeext
9527 if { (ac_try="$ac_link"
9528 case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_link") 2>conftest.er1
9534   ac_status=$?
9535   grep -v '^ *+' conftest.er1 >conftest.err
9536   rm -f conftest.er1
9537   cat conftest.err >&5
9538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539   (exit $ac_status); } && {
9540          test -z "$ac_c_werror_flag" ||
9541          test ! -s conftest.err
9542        } && test -s conftest$ac_exeext &&
9543        $as_test_x conftest$ac_exeext; then
9544   eval "$as_ac_var=yes"
9545 else
9546   echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549         eval "$as_ac_var=no"
9550 fi
9551
9552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9553       conftest$ac_exeext conftest.$ac_ext
9554 fi
9555 ac_res=`eval echo '${'$as_ac_var'}'`
9556                { echo "$as_me:$LINENO: result: $ac_res" >&5
9557 echo "${ECHO_T}$ac_res" >&6; }
9558 if test `eval echo '${'$as_ac_var'}'` = yes; then
9559   cat >>confdefs.h <<_ACEOF
9560 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9561 _ACEOF
9562
9563 fi
9564 done
9565
9566 { echo "$as_me:$LINENO: checking for working mmap" >&5
9567 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9568 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9569   echo $ECHO_N "(cached) $ECHO_C" >&6
9570 else
9571   if test "$cross_compiling" = yes; then
9572   ac_cv_func_mmap_fixed_mapped=no
9573 else
9574   cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580 $ac_includes_default
9581 /* malloc might have been renamed as rpl_malloc. */
9582 #undef malloc
9583
9584 /* Thanks to Mike Haertel and Jim Avera for this test.
9585    Here is a matrix of mmap possibilities:
9586         mmap private not fixed
9587         mmap private fixed at somewhere currently unmapped
9588         mmap private fixed at somewhere already mapped
9589         mmap shared not fixed
9590         mmap shared fixed at somewhere currently unmapped
9591         mmap shared fixed at somewhere already mapped
9592    For private mappings, we should verify that changes cannot be read()
9593    back from the file, nor mmap's back from the file at a different
9594    address.  (There have been systems where private was not correctly
9595    implemented like the infamous i386 svr4.0, and systems where the
9596    VM page cache was not coherent with the file system buffer cache
9597    like early versions of FreeBSD and possibly contemporary NetBSD.)
9598    For shared mappings, we should conversely verify that changes get
9599    propagated back to all the places they're supposed to be.
9600
9601    Grep wants private fixed already mapped.
9602    The main things grep needs to know about mmap are:
9603    * does it exist and is it safe to write into the mmap'd area
9604    * how to use it (BSD variants)  */
9605
9606 #include <fcntl.h>
9607 #include <sys/mman.h>
9608
9609 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9610 char *malloc ();
9611 #endif
9612
9613 /* This mess was copied from the GNU getpagesize.h.  */
9614 #ifndef HAVE_GETPAGESIZE
9615 /* Assume that all systems that can run configure have sys/param.h.  */
9616 # ifndef HAVE_SYS_PARAM_H
9617 #  define HAVE_SYS_PARAM_H 1
9618 # endif
9619
9620 # ifdef _SC_PAGESIZE
9621 #  define getpagesize() sysconf(_SC_PAGESIZE)
9622 # else /* no _SC_PAGESIZE */
9623 #  ifdef HAVE_SYS_PARAM_H
9624 #   include <sys/param.h>
9625 #   ifdef EXEC_PAGESIZE
9626 #    define getpagesize() EXEC_PAGESIZE
9627 #   else /* no EXEC_PAGESIZE */
9628 #    ifdef NBPG
9629 #     define getpagesize() NBPG * CLSIZE
9630 #     ifndef CLSIZE
9631 #      define CLSIZE 1
9632 #     endif /* no CLSIZE */
9633 #    else /* no NBPG */
9634 #     ifdef NBPC
9635 #      define getpagesize() NBPC
9636 #     else /* no NBPC */
9637 #      ifdef PAGESIZE
9638 #       define getpagesize() PAGESIZE
9639 #      endif /* PAGESIZE */
9640 #     endif /* no NBPC */
9641 #    endif /* no NBPG */
9642 #   endif /* no EXEC_PAGESIZE */
9643 #  else /* no HAVE_SYS_PARAM_H */
9644 #   define getpagesize() 8192   /* punt totally */
9645 #  endif /* no HAVE_SYS_PARAM_H */
9646 # endif /* no _SC_PAGESIZE */
9647
9648 #endif /* no HAVE_GETPAGESIZE */
9649
9650 int
9651 main ()
9652 {
9653   char *data, *data2, *data3;
9654   int i, pagesize;
9655   int fd;
9656
9657   pagesize = getpagesize ();
9658
9659   /* First, make a file with some known garbage in it. */
9660   data = (char *) malloc (pagesize);
9661   if (!data)
9662     return 1;
9663   for (i = 0; i < pagesize; ++i)
9664     *(data + i) = rand ();
9665   umask (0);
9666   fd = creat ("conftest.mmap", 0600);
9667   if (fd < 0)
9668     return 1;
9669   if (write (fd, data, pagesize) != pagesize)
9670     return 1;
9671   close (fd);
9672
9673   /* Next, try to mmap the file at a fixed address which already has
9674      something else allocated at it.  If we can, also make sure that
9675      we see the same garbage.  */
9676   fd = open ("conftest.mmap", O_RDWR);
9677   if (fd < 0)
9678     return 1;
9679   data2 = (char *) malloc (2 * pagesize);
9680   if (!data2)
9681     return 1;
9682   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9683   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9684                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9685     return 1;
9686   for (i = 0; i < pagesize; ++i)
9687     if (*(data + i) != *(data2 + i))
9688       return 1;
9689
9690   /* Finally, make sure that changes to the mapped area do not
9691      percolate back to the file as seen by read().  (This is a bug on
9692      some variants of i386 svr4.0.)  */
9693   for (i = 0; i < pagesize; ++i)
9694     *(data2 + i) = *(data2 + i) + 1;
9695   data3 = (char *) malloc (pagesize);
9696   if (!data3)
9697     return 1;
9698   if (read (fd, data3, pagesize) != pagesize)
9699     return 1;
9700   for (i = 0; i < pagesize; ++i)
9701     if (*(data + i) != *(data3 + i))
9702       return 1;
9703   close (fd);
9704   return 0;
9705 }
9706 _ACEOF
9707 rm -f conftest$ac_exeext
9708 if { (ac_try="$ac_link"
9709 case "(($ac_try" in
9710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9711   *) ac_try_echo=$ac_try;;
9712 esac
9713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9714   (eval "$ac_link") 2>&5
9715   ac_status=$?
9716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9718   { (case "(($ac_try" in
9719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9720   *) ac_try_echo=$ac_try;;
9721 esac
9722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9723   (eval "$ac_try") 2>&5
9724   ac_status=$?
9725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726   (exit $ac_status); }; }; then
9727   ac_cv_func_mmap_fixed_mapped=yes
9728 else
9729   echo "$as_me: program exited with status $ac_status" >&5
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9732
9733 ( exit $ac_status )
9734 ac_cv_func_mmap_fixed_mapped=no
9735 fi
9736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9737 fi
9738
9739
9740 fi
9741 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9742 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9743 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_MMAP 1
9747 _ACEOF
9748
9749 fi
9750 rm -f conftest.mmap
9751
9752
9753     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9754 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9755 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9756   echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9758   cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h.  */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h.  */
9764
9765 #include <features.h>
9766 #ifdef __GNU_LIBRARY__
9767  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9768   Lucky GNU user
9769  #endif
9770 #endif
9771
9772 _ACEOF
9773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9774   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9775   ac_cv_gnu_library_2_1=yes
9776 else
9777   ac_cv_gnu_library_2_1=no
9778 fi
9779 rm -f conftest*
9780
9781
9782
9783 fi
9784 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9785 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9786
9787     GLIBC21="$ac_cv_gnu_library_2_1"
9788
9789
9790
9791
9792   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9793 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9794 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9795   echo $ECHO_N "(cached) $ECHO_C" >&6
9796 else
9797
9798       if test "$cross_compiling" = yes; then
9799
9800           # Guess based on the CPU.
9801           case "$host_cpu" in
9802             alpha* | i3456786 | m68k | s390*)
9803               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9804             *)
9805               gt_cv_int_divbyzero_sigfpe="guessing no";;
9806           esac
9807
9808 else
9809   cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815
9816 #include <stdlib.h>
9817 #include <signal.h>
9818
9819 static void
9820 #ifdef __cplusplus
9821 sigfpe_handler (int sig)
9822 #else
9823 sigfpe_handler (sig) int sig;
9824 #endif
9825 {
9826   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9827   exit (sig != SIGFPE);
9828 }
9829
9830 int x = 1;
9831 int y = 0;
9832 int z;
9833 int nan;
9834
9835 int main ()
9836 {
9837   signal (SIGFPE, sigfpe_handler);
9838 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9839 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9840   signal (SIGTRAP, sigfpe_handler);
9841 #endif
9842 /* Linux/SPARC yields signal SIGILL.  */
9843 #if defined (__sparc__) && defined (__linux__)
9844   signal (SIGILL, sigfpe_handler);
9845 #endif
9846
9847   z = x / y;
9848   nan = y / y;
9849   exit (1);
9850 }
9851
9852 _ACEOF
9853 rm -f conftest$ac_exeext
9854 if { (ac_try="$ac_link"
9855 case "(($ac_try" in
9856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857   *) ac_try_echo=$ac_try;;
9858 esac
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860   (eval "$ac_link") 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9864   { (case "(($ac_try" in
9865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9866   *) ac_try_echo=$ac_try;;
9867 esac
9868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9869   (eval "$ac_try") 2>&5
9870   ac_status=$?
9871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872   (exit $ac_status); }; }; then
9873   gt_cv_int_divbyzero_sigfpe=yes
9874 else
9875   echo "$as_me: program exited with status $ac_status" >&5
9876 echo "$as_me: failed program was:" >&5
9877 sed 's/^/| /' conftest.$ac_ext >&5
9878
9879 ( exit $ac_status )
9880 gt_cv_int_divbyzero_sigfpe=no
9881 fi
9882 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9883 fi
9884
9885
9886
9887 fi
9888 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9889 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9890   case "$gt_cv_int_divbyzero_sigfpe" in
9891     *yes) value=1;;
9892     *) value=0;;
9893   esac
9894
9895 cat >>confdefs.h <<_ACEOF
9896 #define INTDIV0_RAISES_SIGFPE $value
9897 _ACEOF
9898
9899
9900
9901   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9902 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9903 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9904   echo $ECHO_N "(cached) $ECHO_C" >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 unsigned long long ull = 1ULL; int i = 63;
9913 int
9914 main ()
9915 {
9916 unsigned long long ullmax = (unsigned long long) -1;
9917      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9918   ;
9919   return 0;
9920 }
9921 _ACEOF
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (ac_try="$ac_link"
9924 case "(($ac_try" in
9925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9926   *) ac_try_echo=$ac_try;;
9927 esac
9928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9929   (eval "$ac_link") 2>conftest.er1
9930   ac_status=$?
9931   grep -v '^ *+' conftest.er1 >conftest.err
9932   rm -f conftest.er1
9933   cat conftest.err >&5
9934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9935   (exit $ac_status); } && {
9936          test -z "$ac_c_werror_flag" ||
9937          test ! -s conftest.err
9938        } && test -s conftest$ac_exeext &&
9939        $as_test_x conftest$ac_exeext; then
9940   ac_cv_type_unsigned_long_long=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945         ac_cv_type_unsigned_long_long=no
9946 fi
9947
9948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9949       conftest$ac_exeext conftest.$ac_ext
9950 fi
9951 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9952 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9953   if test $ac_cv_type_unsigned_long_long = yes; then
9954
9955 cat >>confdefs.h <<\_ACEOF
9956 #define HAVE_UNSIGNED_LONG_LONG 1
9957 _ACEOF
9958
9959   fi
9960
9961
9962
9963
9964   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9965
9966     test $ac_cv_type_unsigned_long_long = yes \
9967       && ac_type='unsigned long long' \
9968       || ac_type='unsigned long'
9969
9970 cat >>confdefs.h <<_ACEOF
9971 #define uintmax_t $ac_type
9972 _ACEOF
9973
9974   else
9975
9976 cat >>confdefs.h <<\_ACEOF
9977 #define HAVE_UINTMAX_T 1
9978 _ACEOF
9979
9980   fi
9981
9982
9983   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9984 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9985 if test "${gt_cv_header_inttypes_h+set}" = set; then
9986   echo $ECHO_N "(cached) $ECHO_C" >&6
9987 else
9988
9989     cat >conftest.$ac_ext <<_ACEOF
9990 /* confdefs.h.  */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h.  */
9995 #include <sys/types.h>
9996 #include <inttypes.h>
9997 int
9998 main ()
9999 {
10000
10001   ;
10002   return 0;
10003 }
10004 _ACEOF
10005 rm -f conftest.$ac_objext
10006 if { (ac_try="$ac_compile"
10007 case "(($ac_try" in
10008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10009   *) ac_try_echo=$ac_try;;
10010 esac
10011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10012   (eval "$ac_compile") 2>conftest.er1
10013   ac_status=$?
10014   grep -v '^ *+' conftest.er1 >conftest.err
10015   rm -f conftest.er1
10016   cat conftest.err >&5
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } && {
10019          test -z "$ac_c_werror_flag" ||
10020          test ! -s conftest.err
10021        } && test -s conftest.$ac_objext; then
10022   gt_cv_header_inttypes_h=yes
10023 else
10024   echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027         gt_cv_header_inttypes_h=no
10028 fi
10029
10030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10031
10032 fi
10033 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10034 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10035   if test $gt_cv_header_inttypes_h = yes; then
10036
10037 cat >>confdefs.h <<_ACEOF
10038 #define HAVE_INTTYPES_H 1
10039 _ACEOF
10040
10041   fi
10042
10043
10044
10045   if test $gt_cv_header_inttypes_h = yes; then
10046     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10047 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10048 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10049   echo $ECHO_N "(cached) $ECHO_C" >&6
10050 else
10051
10052         cat >conftest.$ac_ext <<_ACEOF
10053 /* confdefs.h.  */
10054 _ACEOF
10055 cat confdefs.h >>conftest.$ac_ext
10056 cat >>conftest.$ac_ext <<_ACEOF
10057 /* end confdefs.h.  */
10058 #include <inttypes.h>
10059 #ifdef PRId32
10060 char *p = PRId32;
10061 #endif
10062
10063 int
10064 main ()
10065 {
10066
10067   ;
10068   return 0;
10069 }
10070 _ACEOF
10071 rm -f conftest.$ac_objext
10072 if { (ac_try="$ac_compile"
10073 case "(($ac_try" in
10074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10075   *) ac_try_echo=$ac_try;;
10076 esac
10077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10078   (eval "$ac_compile") 2>conftest.er1
10079   ac_status=$?
10080   grep -v '^ *+' conftest.er1 >conftest.err
10081   rm -f conftest.er1
10082   cat conftest.err >&5
10083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084   (exit $ac_status); } && {
10085          test -z "$ac_c_werror_flag" ||
10086          test ! -s conftest.err
10087        } && test -s conftest.$ac_objext; then
10088   gt_cv_inttypes_pri_broken=no
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10092
10093         gt_cv_inttypes_pri_broken=yes
10094 fi
10095
10096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10097
10098 fi
10099 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10100 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10101   fi
10102   if test "$gt_cv_inttypes_pri_broken" = yes; then
10103
10104 cat >>confdefs.h <<_ACEOF
10105 #define PRI_MACROS_BROKEN 1
10106 _ACEOF
10107
10108   fi
10109
10110
10111
10112 for ac_header in stdint.h
10113 do
10114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10116   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10119   echo $ECHO_N "(cached) $ECHO_C" >&6
10120 fi
10121 ac_res=`eval echo '${'$as_ac_Header'}'`
10122                { echo "$as_me:$LINENO: result: $ac_res" >&5
10123 echo "${ECHO_T}$ac_res" >&6; }
10124 else
10125   # Is the header compilable?
10126 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10127 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10128 cat >conftest.$ac_ext <<_ACEOF
10129 /* confdefs.h.  */
10130 _ACEOF
10131 cat confdefs.h >>conftest.$ac_ext
10132 cat >>conftest.$ac_ext <<_ACEOF
10133 /* end confdefs.h.  */
10134 $ac_includes_default
10135 #include <$ac_header>
10136 _ACEOF
10137 rm -f conftest.$ac_objext
10138 if { (ac_try="$ac_compile"
10139 case "(($ac_try" in
10140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141   *) ac_try_echo=$ac_try;;
10142 esac
10143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10144   (eval "$ac_compile") 2>conftest.er1
10145   ac_status=$?
10146   grep -v '^ *+' conftest.er1 >conftest.err
10147   rm -f conftest.er1
10148   cat conftest.err >&5
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } && {
10151          test -z "$ac_c_werror_flag" ||
10152          test ! -s conftest.err
10153        } && test -s conftest.$ac_objext; then
10154   ac_header_compiler=yes
10155 else
10156   echo "$as_me: failed program was:" >&5
10157 sed 's/^/| /' conftest.$ac_ext >&5
10158
10159         ac_header_compiler=no
10160 fi
10161
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10164 echo "${ECHO_T}$ac_header_compiler" >&6; }
10165
10166 # Is the header present?
10167 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10168 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h.  */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h.  */
10175 #include <$ac_header>
10176 _ACEOF
10177 if { (ac_try="$ac_cpp conftest.$ac_ext"
10178 case "(($ac_try" in
10179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10180   *) ac_try_echo=$ac_try;;
10181 esac
10182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10184   ac_status=$?
10185   grep -v '^ *+' conftest.er1 >conftest.err
10186   rm -f conftest.er1
10187   cat conftest.err >&5
10188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189   (exit $ac_status); } >/dev/null && {
10190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10191          test ! -s conftest.err
10192        }; then
10193   ac_header_preproc=yes
10194 else
10195   echo "$as_me: failed program was:" >&5
10196 sed 's/^/| /' conftest.$ac_ext >&5
10197
10198   ac_header_preproc=no
10199 fi
10200
10201 rm -f conftest.err conftest.$ac_ext
10202 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10203 echo "${ECHO_T}$ac_header_preproc" >&6; }
10204
10205 # So?  What about this header?
10206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10207   yes:no: )
10208     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10209 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10212     ac_header_preproc=yes
10213     ;;
10214   no:yes:* )
10215     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10216 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10217     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10218 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10219     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10220 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10221     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10222 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10223     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10225     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10226 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10227
10228     ;;
10229 esac
10230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10233   echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235   eval "$as_ac_Header=\$ac_header_preproc"
10236 fi
10237 ac_res=`eval echo '${'$as_ac_Header'}'`
10238                { echo "$as_me:$LINENO: result: $ac_res" >&5
10239 echo "${ECHO_T}$ac_res" >&6; }
10240
10241 fi
10242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10243   cat >>confdefs.h <<_ACEOF
10244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10245 _ACEOF
10246
10247 fi
10248
10249 done
10250
10251     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10252 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10253   result=
10254   cat >conftest.$ac_ext <<_ACEOF
10255 /* confdefs.h.  */
10256 _ACEOF
10257 cat confdefs.h >>conftest.$ac_ext
10258 cat >>conftest.$ac_ext <<_ACEOF
10259 /* end confdefs.h.  */
10260
10261 #include <limits.h>
10262 #if HAVE_STDINT_H
10263 #include <stdint.h>
10264 #endif
10265 #ifdef SIZE_MAX
10266 Found it
10267 #endif
10268
10269 _ACEOF
10270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10271   $EGREP "Found it" >/dev/null 2>&1; then
10272   result=yes
10273 fi
10274 rm -f conftest*
10275
10276   if test -z "$result"; then
10277                     if test "$cross_compiling" = yes; then
10278   # Depending upon the size, compute the lo and hi bounds.
10279 cat >conftest.$ac_ext <<_ACEOF
10280 /* confdefs.h.  */
10281 _ACEOF
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h.  */
10285 #include <stddef.h>
10286 int
10287 main ()
10288 {
10289 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10290 test_array [0] = 0
10291
10292   ;
10293   return 0;
10294 }
10295 _ACEOF
10296 rm -f conftest.$ac_objext
10297 if { (ac_try="$ac_compile"
10298 case "(($ac_try" in
10299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10300   *) ac_try_echo=$ac_try;;
10301 esac
10302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10303   (eval "$ac_compile") 2>conftest.er1
10304   ac_status=$?
10305   grep -v '^ *+' conftest.er1 >conftest.err
10306   rm -f conftest.er1
10307   cat conftest.err >&5
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); } && {
10310          test -z "$ac_c_werror_flag" ||
10311          test ! -s conftest.err
10312        } && test -s conftest.$ac_objext; then
10313   ac_lo=0 ac_mid=0
10314   while :; do
10315     cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 #include <stddef.h>
10322 int
10323 main ()
10324 {
10325 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10326 test_array [0] = 0
10327
10328   ;
10329   return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext
10333 if { (ac_try="$ac_compile"
10334 case "(($ac_try" in
10335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336   *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339   (eval "$ac_compile") 2>conftest.er1
10340   ac_status=$?
10341   grep -v '^ *+' conftest.er1 >conftest.err
10342   rm -f conftest.er1
10343   cat conftest.err >&5
10344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345   (exit $ac_status); } && {
10346          test -z "$ac_c_werror_flag" ||
10347          test ! -s conftest.err
10348        } && test -s conftest.$ac_objext; then
10349   ac_hi=$ac_mid; break
10350 else
10351   echo "$as_me: failed program was:" >&5
10352 sed 's/^/| /' conftest.$ac_ext >&5
10353
10354         ac_lo=`expr $ac_mid + 1`
10355                         if test $ac_lo -le $ac_mid; then
10356                           ac_lo= ac_hi=
10357                           break
10358                         fi
10359                         ac_mid=`expr 2 '*' $ac_mid + 1`
10360 fi
10361
10362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10363   done
10364 else
10365   echo "$as_me: failed program was:" >&5
10366 sed 's/^/| /' conftest.$ac_ext >&5
10367
10368         cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374 #include <stddef.h>
10375 int
10376 main ()
10377 {
10378 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10379 test_array [0] = 0
10380
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 rm -f conftest.$ac_objext
10386 if { (ac_try="$ac_compile"
10387 case "(($ac_try" in
10388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389   *) ac_try_echo=$ac_try;;
10390 esac
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392   (eval "$ac_compile") 2>conftest.er1
10393   ac_status=$?
10394   grep -v '^ *+' conftest.er1 >conftest.err
10395   rm -f conftest.er1
10396   cat conftest.err >&5
10397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398   (exit $ac_status); } && {
10399          test -z "$ac_c_werror_flag" ||
10400          test ! -s conftest.err
10401        } && test -s conftest.$ac_objext; then
10402   ac_hi=-1 ac_mid=-1
10403   while :; do
10404     cat >conftest.$ac_ext <<_ACEOF
10405 /* confdefs.h.  */
10406 _ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h.  */
10410 #include <stddef.h>
10411 int
10412 main ()
10413 {
10414 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10415 test_array [0] = 0
10416
10417   ;
10418   return 0;
10419 }
10420 _ACEOF
10421 rm -f conftest.$ac_objext
10422 if { (ac_try="$ac_compile"
10423 case "(($ac_try" in
10424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425   *) ac_try_echo=$ac_try;;
10426 esac
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428   (eval "$ac_compile") 2>conftest.er1
10429   ac_status=$?
10430   grep -v '^ *+' conftest.er1 >conftest.err
10431   rm -f conftest.er1
10432   cat conftest.err >&5
10433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434   (exit $ac_status); } && {
10435          test -z "$ac_c_werror_flag" ||
10436          test ! -s conftest.err
10437        } && test -s conftest.$ac_objext; then
10438   ac_lo=$ac_mid; break
10439 else
10440   echo "$as_me: failed program was:" >&5
10441 sed 's/^/| /' conftest.$ac_ext >&5
10442
10443         ac_hi=`expr '(' $ac_mid ')' - 1`
10444                         if test $ac_mid -le $ac_hi; then
10445                           ac_lo= ac_hi=
10446                           break
10447                         fi
10448                         ac_mid=`expr 2 '*' $ac_mid`
10449 fi
10450
10451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10452   done
10453 else
10454   echo "$as_me: failed program was:" >&5
10455 sed 's/^/| /' conftest.$ac_ext >&5
10456
10457         ac_lo= ac_hi=
10458 fi
10459
10460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10461 fi
10462
10463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 # Binary search between lo and hi bounds.
10465 while test "x$ac_lo" != "x$ac_hi"; do
10466   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10467   cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h.  */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h.  */
10473 #include <stddef.h>
10474 int
10475 main ()
10476 {
10477 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10478 test_array [0] = 0
10479
10480   ;
10481   return 0;
10482 }
10483 _ACEOF
10484 rm -f conftest.$ac_objext
10485 if { (ac_try="$ac_compile"
10486 case "(($ac_try" in
10487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10488   *) ac_try_echo=$ac_try;;
10489 esac
10490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10491   (eval "$ac_compile") 2>conftest.er1
10492   ac_status=$?
10493   grep -v '^ *+' conftest.er1 >conftest.err
10494   rm -f conftest.er1
10495   cat conftest.err >&5
10496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497   (exit $ac_status); } && {
10498          test -z "$ac_c_werror_flag" ||
10499          test ! -s conftest.err
10500        } && test -s conftest.$ac_objext; then
10501   ac_hi=$ac_mid
10502 else
10503   echo "$as_me: failed program was:" >&5
10504 sed 's/^/| /' conftest.$ac_ext >&5
10505
10506         ac_lo=`expr '(' $ac_mid ')' + 1`
10507 fi
10508
10509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10510 done
10511 case $ac_lo in
10512 ?*) res_hi=$ac_lo;;
10513 '') result=? ;;
10514 esac
10515 else
10516   cat >conftest.$ac_ext <<_ACEOF
10517 /* confdefs.h.  */
10518 _ACEOF
10519 cat confdefs.h >>conftest.$ac_ext
10520 cat >>conftest.$ac_ext <<_ACEOF
10521 /* end confdefs.h.  */
10522 #include <stddef.h>
10523 static long int longval () { return ~(size_t)0 / 10; }
10524 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10525 #include <stdio.h>
10526 #include <stdlib.h>
10527 int
10528 main ()
10529 {
10530
10531   FILE *f = fopen ("conftest.val", "w");
10532   if (! f)
10533     return 1;
10534   if ((~(size_t)0 / 10) < 0)
10535     {
10536       long int i = longval ();
10537       if (i != (~(size_t)0 / 10))
10538         return 1;
10539       fprintf (f, "%ld\n", i);
10540     }
10541   else
10542     {
10543       unsigned long int i = ulongval ();
10544       if (i != (~(size_t)0 / 10))
10545         return 1;
10546       fprintf (f, "%lu\n", i);
10547     }
10548   return ferror (f) || fclose (f) != 0;
10549
10550   ;
10551   return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558   *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561   (eval "$ac_link") 2>&5
10562   ac_status=$?
10563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10565   { (case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10570   (eval "$ac_try") 2>&5
10571   ac_status=$?
10572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10573   (exit $ac_status); }; }; then
10574   res_hi=`cat conftest.val`
10575 else
10576   echo "$as_me: program exited with status $ac_status" >&5
10577 echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10579
10580 ( exit $ac_status )
10581 result=?
10582 fi
10583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10584 fi
10585 rm -f conftest.val
10586
10587     if test "$cross_compiling" = yes; then
10588   # Depending upon the size, compute the lo and hi bounds.
10589 cat >conftest.$ac_ext <<_ACEOF
10590 /* confdefs.h.  */
10591 _ACEOF
10592 cat confdefs.h >>conftest.$ac_ext
10593 cat >>conftest.$ac_ext <<_ACEOF
10594 /* end confdefs.h.  */
10595 #include <stddef.h>
10596 int
10597 main ()
10598 {
10599 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10600 test_array [0] = 0
10601
10602   ;
10603   return 0;
10604 }
10605 _ACEOF
10606 rm -f conftest.$ac_objext
10607 if { (ac_try="$ac_compile"
10608 case "(($ac_try" in
10609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610   *) ac_try_echo=$ac_try;;
10611 esac
10612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613   (eval "$ac_compile") 2>conftest.er1
10614   ac_status=$?
10615   grep -v '^ *+' conftest.er1 >conftest.err
10616   rm -f conftest.er1
10617   cat conftest.err >&5
10618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619   (exit $ac_status); } && {
10620          test -z "$ac_c_werror_flag" ||
10621          test ! -s conftest.err
10622        } && test -s conftest.$ac_objext; then
10623   ac_lo=0 ac_mid=0
10624   while :; do
10625     cat >conftest.$ac_ext <<_ACEOF
10626 /* confdefs.h.  */
10627 _ACEOF
10628 cat confdefs.h >>conftest.$ac_ext
10629 cat >>conftest.$ac_ext <<_ACEOF
10630 /* end confdefs.h.  */
10631 #include <stddef.h>
10632 int
10633 main ()
10634 {
10635 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10636 test_array [0] = 0
10637
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext
10643 if { (ac_try="$ac_compile"
10644 case "(($ac_try" in
10645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10646   *) ac_try_echo=$ac_try;;
10647 esac
10648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10649   (eval "$ac_compile") 2>conftest.er1
10650   ac_status=$?
10651   grep -v '^ *+' conftest.er1 >conftest.err
10652   rm -f conftest.er1
10653   cat conftest.err >&5
10654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655   (exit $ac_status); } && {
10656          test -z "$ac_c_werror_flag" ||
10657          test ! -s conftest.err
10658        } && test -s conftest.$ac_objext; then
10659   ac_hi=$ac_mid; break
10660 else
10661   echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10663
10664         ac_lo=`expr $ac_mid + 1`
10665                         if test $ac_lo -le $ac_mid; then
10666                           ac_lo= ac_hi=
10667                           break
10668                         fi
10669                         ac_mid=`expr 2 '*' $ac_mid + 1`
10670 fi
10671
10672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10673   done
10674 else
10675   echo "$as_me: failed program was:" >&5
10676 sed 's/^/| /' conftest.$ac_ext >&5
10677
10678         cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 #include <stddef.h>
10685 int
10686 main ()
10687 {
10688 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10689 test_array [0] = 0
10690
10691   ;
10692   return 0;
10693 }
10694 _ACEOF
10695 rm -f conftest.$ac_objext
10696 if { (ac_try="$ac_compile"
10697 case "(($ac_try" in
10698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699   *) ac_try_echo=$ac_try;;
10700 esac
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702   (eval "$ac_compile") 2>conftest.er1
10703   ac_status=$?
10704   grep -v '^ *+' conftest.er1 >conftest.err
10705   rm -f conftest.er1
10706   cat conftest.err >&5
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); } && {
10709          test -z "$ac_c_werror_flag" ||
10710          test ! -s conftest.err
10711        } && test -s conftest.$ac_objext; then
10712   ac_hi=-1 ac_mid=-1
10713   while :; do
10714     cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h.  */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h.  */
10720 #include <stddef.h>
10721 int
10722 main ()
10723 {
10724 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10725 test_array [0] = 0
10726
10727   ;
10728   return 0;
10729 }
10730 _ACEOF
10731 rm -f conftest.$ac_objext
10732 if { (ac_try="$ac_compile"
10733 case "(($ac_try" in
10734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10735   *) ac_try_echo=$ac_try;;
10736 esac
10737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10738   (eval "$ac_compile") 2>conftest.er1
10739   ac_status=$?
10740   grep -v '^ *+' conftest.er1 >conftest.err
10741   rm -f conftest.er1
10742   cat conftest.err >&5
10743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744   (exit $ac_status); } && {
10745          test -z "$ac_c_werror_flag" ||
10746          test ! -s conftest.err
10747        } && test -s conftest.$ac_objext; then
10748   ac_lo=$ac_mid; break
10749 else
10750   echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10752
10753         ac_hi=`expr '(' $ac_mid ')' - 1`
10754                         if test $ac_mid -le $ac_hi; then
10755                           ac_lo= ac_hi=
10756                           break
10757                         fi
10758                         ac_mid=`expr 2 '*' $ac_mid`
10759 fi
10760
10761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762   done
10763 else
10764   echo "$as_me: failed program was:" >&5
10765 sed 's/^/| /' conftest.$ac_ext >&5
10766
10767         ac_lo= ac_hi=
10768 fi
10769
10770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10771 fi
10772
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 # Binary search between lo and hi bounds.
10775 while test "x$ac_lo" != "x$ac_hi"; do
10776   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10777   cat >conftest.$ac_ext <<_ACEOF
10778 /* confdefs.h.  */
10779 _ACEOF
10780 cat confdefs.h >>conftest.$ac_ext
10781 cat >>conftest.$ac_ext <<_ACEOF
10782 /* end confdefs.h.  */
10783 #include <stddef.h>
10784 int
10785 main ()
10786 {
10787 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10788 test_array [0] = 0
10789
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 rm -f conftest.$ac_objext
10795 if { (ac_try="$ac_compile"
10796 case "(($ac_try" in
10797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798   *) ac_try_echo=$ac_try;;
10799 esac
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801   (eval "$ac_compile") 2>conftest.er1
10802   ac_status=$?
10803   grep -v '^ *+' conftest.er1 >conftest.err
10804   rm -f conftest.er1
10805   cat conftest.err >&5
10806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807   (exit $ac_status); } && {
10808          test -z "$ac_c_werror_flag" ||
10809          test ! -s conftest.err
10810        } && test -s conftest.$ac_objext; then
10811   ac_hi=$ac_mid
10812 else
10813   echo "$as_me: failed program was:" >&5
10814 sed 's/^/| /' conftest.$ac_ext >&5
10815
10816         ac_lo=`expr '(' $ac_mid ')' + 1`
10817 fi
10818
10819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10820 done
10821 case $ac_lo in
10822 ?*) res_lo=$ac_lo;;
10823 '') result=? ;;
10824 esac
10825 else
10826   cat >conftest.$ac_ext <<_ACEOF
10827 /* confdefs.h.  */
10828 _ACEOF
10829 cat confdefs.h >>conftest.$ac_ext
10830 cat >>conftest.$ac_ext <<_ACEOF
10831 /* end confdefs.h.  */
10832 #include <stddef.h>
10833 static long int longval () { return ~(size_t)0 % 10; }
10834 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10835 #include <stdio.h>
10836 #include <stdlib.h>
10837 int
10838 main ()
10839 {
10840
10841   FILE *f = fopen ("conftest.val", "w");
10842   if (! f)
10843     return 1;
10844   if ((~(size_t)0 % 10) < 0)
10845     {
10846       long int i = longval ();
10847       if (i != (~(size_t)0 % 10))
10848         return 1;
10849       fprintf (f, "%ld\n", i);
10850     }
10851   else
10852     {
10853       unsigned long int i = ulongval ();
10854       if (i != (~(size_t)0 % 10))
10855         return 1;
10856       fprintf (f, "%lu\n", i);
10857     }
10858   return ferror (f) || fclose (f) != 0;
10859
10860   ;
10861   return 0;
10862 }
10863 _ACEOF
10864 rm -f conftest$ac_exeext
10865 if { (ac_try="$ac_link"
10866 case "(($ac_try" in
10867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10868   *) ac_try_echo=$ac_try;;
10869 esac
10870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10871   (eval "$ac_link") 2>&5
10872   ac_status=$?
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10875   { (case "(($ac_try" in
10876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877   *) ac_try_echo=$ac_try;;
10878 esac
10879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880   (eval "$ac_try") 2>&5
10881   ac_status=$?
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); }; }; then
10884   res_lo=`cat conftest.val`
10885 else
10886   echo "$as_me: program exited with status $ac_status" >&5
10887 echo "$as_me: failed program was:" >&5
10888 sed 's/^/| /' conftest.$ac_ext >&5
10889
10890 ( exit $ac_status )
10891 result=?
10892 fi
10893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10894 fi
10895 rm -f conftest.val
10896
10897     if test "$cross_compiling" = yes; then
10898   # Depending upon the size, compute the lo and hi bounds.
10899 cat >conftest.$ac_ext <<_ACEOF
10900 /* confdefs.h.  */
10901 _ACEOF
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h.  */
10905 #include <stddef.h>
10906 int
10907 main ()
10908 {
10909 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10910 test_array [0] = 0
10911
10912   ;
10913   return 0;
10914 }
10915 _ACEOF
10916 rm -f conftest.$ac_objext
10917 if { (ac_try="$ac_compile"
10918 case "(($ac_try" in
10919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920   *) ac_try_echo=$ac_try;;
10921 esac
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923   (eval "$ac_compile") 2>conftest.er1
10924   ac_status=$?
10925   grep -v '^ *+' conftest.er1 >conftest.err
10926   rm -f conftest.er1
10927   cat conftest.err >&5
10928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929   (exit $ac_status); } && {
10930          test -z "$ac_c_werror_flag" ||
10931          test ! -s conftest.err
10932        } && test -s conftest.$ac_objext; then
10933   ac_lo=0 ac_mid=0
10934   while :; do
10935     cat >conftest.$ac_ext <<_ACEOF
10936 /* confdefs.h.  */
10937 _ACEOF
10938 cat confdefs.h >>conftest.$ac_ext
10939 cat >>conftest.$ac_ext <<_ACEOF
10940 /* end confdefs.h.  */
10941 #include <stddef.h>
10942 int
10943 main ()
10944 {
10945 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10946 test_array [0] = 0
10947
10948   ;
10949   return 0;
10950 }
10951 _ACEOF
10952 rm -f conftest.$ac_objext
10953 if { (ac_try="$ac_compile"
10954 case "(($ac_try" in
10955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10956   *) ac_try_echo=$ac_try;;
10957 esac
10958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10959   (eval "$ac_compile") 2>conftest.er1
10960   ac_status=$?
10961   grep -v '^ *+' conftest.er1 >conftest.err
10962   rm -f conftest.er1
10963   cat conftest.err >&5
10964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); } && {
10966          test -z "$ac_c_werror_flag" ||
10967          test ! -s conftest.err
10968        } && test -s conftest.$ac_objext; then
10969   ac_hi=$ac_mid; break
10970 else
10971   echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10973
10974         ac_lo=`expr $ac_mid + 1`
10975                         if test $ac_lo -le $ac_mid; then
10976                           ac_lo= ac_hi=
10977                           break
10978                         fi
10979                         ac_mid=`expr 2 '*' $ac_mid + 1`
10980 fi
10981
10982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10983   done
10984 else
10985   echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10987
10988         cat >conftest.$ac_ext <<_ACEOF
10989 /* confdefs.h.  */
10990 _ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h.  */
10994 #include <stddef.h>
10995 int
10996 main ()
10997 {
10998 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10999 test_array [0] = 0
11000
11001   ;
11002   return 0;
11003 }
11004 _ACEOF
11005 rm -f conftest.$ac_objext
11006 if { (ac_try="$ac_compile"
11007 case "(($ac_try" in
11008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11009   *) ac_try_echo=$ac_try;;
11010 esac
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012   (eval "$ac_compile") 2>conftest.er1
11013   ac_status=$?
11014   grep -v '^ *+' conftest.er1 >conftest.err
11015   rm -f conftest.er1
11016   cat conftest.err >&5
11017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018   (exit $ac_status); } && {
11019          test -z "$ac_c_werror_flag" ||
11020          test ! -s conftest.err
11021        } && test -s conftest.$ac_objext; then
11022   ac_hi=-1 ac_mid=-1
11023   while :; do
11024     cat >conftest.$ac_ext <<_ACEOF
11025 /* confdefs.h.  */
11026 _ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h.  */
11030 #include <stddef.h>
11031 int
11032 main ()
11033 {
11034 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11035 test_array [0] = 0
11036
11037   ;
11038   return 0;
11039 }
11040 _ACEOF
11041 rm -f conftest.$ac_objext
11042 if { (ac_try="$ac_compile"
11043 case "(($ac_try" in
11044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045   *) ac_try_echo=$ac_try;;
11046 esac
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048   (eval "$ac_compile") 2>conftest.er1
11049   ac_status=$?
11050   grep -v '^ *+' conftest.er1 >conftest.err
11051   rm -f conftest.er1
11052   cat conftest.err >&5
11053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054   (exit $ac_status); } && {
11055          test -z "$ac_c_werror_flag" ||
11056          test ! -s conftest.err
11057        } && test -s conftest.$ac_objext; then
11058   ac_lo=$ac_mid; break
11059 else
11060   echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063         ac_hi=`expr '(' $ac_mid ')' - 1`
11064                         if test $ac_mid -le $ac_hi; then
11065                           ac_lo= ac_hi=
11066                           break
11067                         fi
11068                         ac_mid=`expr 2 '*' $ac_mid`
11069 fi
11070
11071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11072   done
11073 else
11074   echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11076
11077         ac_lo= ac_hi=
11078 fi
11079
11080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11081 fi
11082
11083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11084 # Binary search between lo and hi bounds.
11085 while test "x$ac_lo" != "x$ac_hi"; do
11086   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11087   cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h.  */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h.  */
11093 #include <stddef.h>
11094 int
11095 main ()
11096 {
11097 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11098 test_array [0] = 0
11099
11100   ;
11101   return 0;
11102 }
11103 _ACEOF
11104 rm -f conftest.$ac_objext
11105 if { (ac_try="$ac_compile"
11106 case "(($ac_try" in
11107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108   *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111   (eval "$ac_compile") 2>conftest.er1
11112   ac_status=$?
11113   grep -v '^ *+' conftest.er1 >conftest.err
11114   rm -f conftest.er1
11115   cat conftest.err >&5
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); } && {
11118          test -z "$ac_c_werror_flag" ||
11119          test ! -s conftest.err
11120        } && test -s conftest.$ac_objext; then
11121   ac_hi=$ac_mid
11122 else
11123   echo "$as_me: failed program was:" >&5
11124 sed 's/^/| /' conftest.$ac_ext >&5
11125
11126         ac_lo=`expr '(' $ac_mid ')' + 1`
11127 fi
11128
11129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11130 done
11131 case $ac_lo in
11132 ?*) fits_in_uint=$ac_lo;;
11133 '') result=? ;;
11134 esac
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 /* confdefs.h.  */
11138 _ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h.  */
11142 #include <stddef.h>
11143 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11144 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11145 #include <stdio.h>
11146 #include <stdlib.h>
11147 int
11148 main ()
11149 {
11150
11151   FILE *f = fopen ("conftest.val", "w");
11152   if (! f)
11153     return 1;
11154   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11155     {
11156       long int i = longval ();
11157       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11158         return 1;
11159       fprintf (f, "%ld\n", i);
11160     }
11161   else
11162     {
11163       unsigned long int i = ulongval ();
11164       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11165         return 1;
11166       fprintf (f, "%lu\n", i);
11167     }
11168   return ferror (f) || fclose (f) != 0;
11169
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 rm -f conftest$ac_exeext
11175 if { (ac_try="$ac_link"
11176 case "(($ac_try" in
11177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11178   *) ac_try_echo=$ac_try;;
11179 esac
11180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11181   (eval "$ac_link") 2>&5
11182   ac_status=$?
11183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11185   { (case "(($ac_try" in
11186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11187   *) ac_try_echo=$ac_try;;
11188 esac
11189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11190   (eval "$ac_try") 2>&5
11191   ac_status=$?
11192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193   (exit $ac_status); }; }; then
11194   fits_in_uint=`cat conftest.val`
11195 else
11196   echo "$as_me: program exited with status $ac_status" >&5
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11199
11200 ( exit $ac_status )
11201 result=?
11202 fi
11203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11204 fi
11205 rm -f conftest.val
11206
11207     if test "$fits_in_uint" = 1; then
11208                   cat >conftest.$ac_ext <<_ACEOF
11209 /* confdefs.h.  */
11210 _ACEOF
11211 cat confdefs.h >>conftest.$ac_ext
11212 cat >>conftest.$ac_ext <<_ACEOF
11213 /* end confdefs.h.  */
11214 #include <stddef.h>
11215         extern size_t foo;
11216         extern unsigned long foo;
11217
11218 int
11219 main ()
11220 {
11221
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 rm -f conftest.$ac_objext
11227 if { (ac_try="$ac_compile"
11228 case "(($ac_try" in
11229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11230   *) ac_try_echo=$ac_try;;
11231 esac
11232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11233   (eval "$ac_compile") 2>conftest.er1
11234   ac_status=$?
11235   grep -v '^ *+' conftest.er1 >conftest.err
11236   rm -f conftest.er1
11237   cat conftest.err >&5
11238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239   (exit $ac_status); } && {
11240          test -z "$ac_c_werror_flag" ||
11241          test ! -s conftest.err
11242        } && test -s conftest.$ac_objext; then
11243   fits_in_uint=0
11244 else
11245   echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11247
11248
11249 fi
11250
11251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252     fi
11253     if test -z "$result"; then
11254       if test "$fits_in_uint" = 1; then
11255         result="$res_hi$res_lo"U
11256       else
11257         result="$res_hi$res_lo"UL
11258       fi
11259     else
11260             result='~(size_t)0'
11261     fi
11262   fi
11263   { echo "$as_me:$LINENO: result: $result" >&5
11264 echo "${ECHO_T}$result" >&6; }
11265   if test "$result" != yes; then
11266
11267 cat >>confdefs.h <<_ACEOF
11268 #define SIZE_MAX $result
11269 _ACEOF
11270
11271   fi
11272
11273
11274
11275
11276
11277 for ac_header in stdint.h
11278 do
11279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11281   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11284   echo $ECHO_N "(cached) $ECHO_C" >&6
11285 fi
11286 ac_res=`eval echo '${'$as_ac_Header'}'`
11287                { echo "$as_me:$LINENO: result: $ac_res" >&5
11288 echo "${ECHO_T}$ac_res" >&6; }
11289 else
11290   # Is the header compilable?
11291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11293 cat >conftest.$ac_ext <<_ACEOF
11294 /* confdefs.h.  */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h.  */
11299 $ac_includes_default
11300 #include <$ac_header>
11301 _ACEOF
11302 rm -f conftest.$ac_objext
11303 if { (ac_try="$ac_compile"
11304 case "(($ac_try" in
11305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11306   *) ac_try_echo=$ac_try;;
11307 esac
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309   (eval "$ac_compile") 2>conftest.er1
11310   ac_status=$?
11311   grep -v '^ *+' conftest.er1 >conftest.err
11312   rm -f conftest.er1
11313   cat conftest.err >&5
11314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315   (exit $ac_status); } && {
11316          test -z "$ac_c_werror_flag" ||
11317          test ! -s conftest.err
11318        } && test -s conftest.$ac_objext; then
11319   ac_header_compiler=yes
11320 else
11321   echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11323
11324         ac_header_compiler=no
11325 fi
11326
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11330
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11335 /* confdefs.h.  */
11336 _ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h.  */
11340 #include <$ac_header>
11341 _ACEOF
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
11343 case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } >/dev/null && {
11355          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11356          test ! -s conftest.err
11357        }; then
11358   ac_header_preproc=yes
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363   ac_header_preproc=no
11364 fi
11365
11366 rm -f conftest.err conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11368 echo "${ECHO_T}$ac_header_preproc" >&6; }
11369
11370 # So?  What about this header?
11371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11372   yes:no: )
11373     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11374 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11375     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11377     ac_header_preproc=yes
11378     ;;
11379   no:yes:* )
11380     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11381 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11382     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11383 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11384     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11385 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11386     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11387 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11388     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11390     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11391 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11392
11393     ;;
11394 esac
11395 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11398   echo $ECHO_N "(cached) $ECHO_C" >&6
11399 else
11400   eval "$as_ac_Header=\$ac_header_preproc"
11401 fi
11402 ac_res=`eval echo '${'$as_ac_Header'}'`
11403                { echo "$as_me:$LINENO: result: $ac_res" >&5
11404 echo "${ECHO_T}$ac_res" >&6; }
11405
11406 fi
11407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11408   cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11410 _ACEOF
11411
11412 fi
11413
11414 done
11415
11416
11417
11418
11419
11420
11421
11422
11423   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11424 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11425 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11426   echo $ECHO_N "(cached) $ECHO_C" >&6
11427 else
11428   cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h.  */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h.  */
11434 $ac_includes_default
11435 typedef ptrdiff_t ac__type_new_;
11436 int
11437 main ()
11438 {
11439 if ((ac__type_new_ *) 0)
11440   return 0;
11441 if (sizeof (ac__type_new_))
11442   return 0;
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 rm -f conftest.$ac_objext
11448 if { (ac_try="$ac_compile"
11449 case "(($ac_try" in
11450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11451   *) ac_try_echo=$ac_try;;
11452 esac
11453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11454   (eval "$ac_compile") 2>conftest.er1
11455   ac_status=$?
11456   grep -v '^ *+' conftest.er1 >conftest.err
11457   rm -f conftest.er1
11458   cat conftest.err >&5
11459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460   (exit $ac_status); } && {
11461          test -z "$ac_c_werror_flag" ||
11462          test ! -s conftest.err
11463        } && test -s conftest.$ac_objext; then
11464   ac_cv_type_ptrdiff_t=yes
11465 else
11466   echo "$as_me: failed program was:" >&5
11467 sed 's/^/| /' conftest.$ac_ext >&5
11468
11469         ac_cv_type_ptrdiff_t=no
11470 fi
11471
11472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11473 fi
11474 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11475 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11476 if test $ac_cv_type_ptrdiff_t = yes; then
11477   :
11478 else
11479
11480 cat >>confdefs.h <<\_ACEOF
11481 #define ptrdiff_t long
11482 _ACEOF
11483
11484
11485 fi
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11498 stdlib.h string.h unistd.h sys/param.h
11499 do
11500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11502   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 fi
11507 ac_res=`eval echo '${'$as_ac_Header'}'`
11508                { echo "$as_me:$LINENO: result: $ac_res" >&5
11509 echo "${ECHO_T}$ac_res" >&6; }
11510 else
11511   # Is the header compilable?
11512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h.  */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h.  */
11520 $ac_includes_default
11521 #include <$ac_header>
11522 _ACEOF
11523 rm -f conftest.$ac_objext
11524 if { (ac_try="$ac_compile"
11525 case "(($ac_try" in
11526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11527   *) ac_try_echo=$ac_try;;
11528 esac
11529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11530   (eval "$ac_compile") 2>conftest.er1
11531   ac_status=$?
11532   grep -v '^ *+' conftest.er1 >conftest.err
11533   rm -f conftest.er1
11534   cat conftest.err >&5
11535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11536   (exit $ac_status); } && {
11537          test -z "$ac_c_werror_flag" ||
11538          test ! -s conftest.err
11539        } && test -s conftest.$ac_objext; then
11540   ac_header_compiler=yes
11541 else
11542   echo "$as_me: failed program was:" >&5
11543 sed 's/^/| /' conftest.$ac_ext >&5
11544
11545         ac_header_compiler=no
11546 fi
11547
11548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11550 echo "${ECHO_T}$ac_header_compiler" >&6; }
11551
11552 # Is the header present?
11553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11555 cat >conftest.$ac_ext <<_ACEOF
11556 /* confdefs.h.  */
11557 _ACEOF
11558 cat confdefs.h >>conftest.$ac_ext
11559 cat >>conftest.$ac_ext <<_ACEOF
11560 /* end confdefs.h.  */
11561 #include <$ac_header>
11562 _ACEOF
11563 if { (ac_try="$ac_cpp conftest.$ac_ext"
11564 case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11570   ac_status=$?
11571   grep -v '^ *+' conftest.er1 >conftest.err
11572   rm -f conftest.er1
11573   cat conftest.err >&5
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); } >/dev/null && {
11576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11577          test ! -s conftest.err
11578        }; then
11579   ac_header_preproc=yes
11580 else
11581   echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11583
11584   ac_header_preproc=no
11585 fi
11586
11587 rm -f conftest.err conftest.$ac_ext
11588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11589 echo "${ECHO_T}$ac_header_preproc" >&6; }
11590
11591 # So?  What about this header?
11592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11593   yes:no: )
11594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11598     ac_header_preproc=yes
11599     ;;
11600   no:yes:* )
11601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11613
11614     ;;
11615 esac
11616 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11619   echo $ECHO_N "(cached) $ECHO_C" >&6
11620 else
11621   eval "$as_ac_Header=\$ac_header_preproc"
11622 fi
11623 ac_res=`eval echo '${'$as_ac_Header'}'`
11624                { echo "$as_me:$LINENO: result: $ac_res" >&5
11625 echo "${ECHO_T}$ac_res" >&6; }
11626
11627 fi
11628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11629   cat >>confdefs.h <<_ACEOF
11630 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11631 _ACEOF
11632
11633 fi
11634
11635 done
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11661 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11662 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11663 __fsetlocking
11664 do
11665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11669   echo $ECHO_N "(cached) $ECHO_C" >&6
11670 else
11671   cat >conftest.$ac_ext <<_ACEOF
11672 /* confdefs.h.  */
11673 _ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h.  */
11677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11679 #define $ac_func innocuous_$ac_func
11680
11681 /* System header to define __stub macros and hopefully few prototypes,
11682     which can conflict with char $ac_func (); below.
11683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11684     <limits.h> exists even on freestanding compilers.  */
11685
11686 #ifdef __STDC__
11687 # include <limits.h>
11688 #else
11689 # include <assert.h>
11690 #endif
11691
11692 #undef $ac_func
11693
11694 /* Override any GCC internal prototype to avoid an error.
11695    Use char because int might match the return type of a GCC
11696    builtin and then its argument prototype would still apply.  */
11697 #ifdef __cplusplus
11698 extern "C"
11699 #endif
11700 char $ac_func ();
11701 /* The GNU C library defines this for functions which it implements
11702     to always fail with ENOSYS.  Some functions are actually named
11703     something starting with __ and the normal name is an alias.  */
11704 #if defined __stub_$ac_func || defined __stub___$ac_func
11705 choke me
11706 #endif
11707
11708 int
11709 main ()
11710 {
11711 return $ac_func ();
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest.$ac_objext conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11723   (eval "$ac_link") 2>conftest.er1
11724   ac_status=$?
11725   grep -v '^ *+' conftest.er1 >conftest.err
11726   rm -f conftest.er1
11727   cat conftest.err >&5
11728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729   (exit $ac_status); } && {
11730          test -z "$ac_c_werror_flag" ||
11731          test ! -s conftest.err
11732        } && test -s conftest$ac_exeext &&
11733        $as_test_x conftest$ac_exeext; then
11734   eval "$as_ac_var=yes"
11735 else
11736   echo "$as_me: failed program was:" >&5
11737 sed 's/^/| /' conftest.$ac_ext >&5
11738
11739         eval "$as_ac_var=no"
11740 fi
11741
11742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743       conftest$ac_exeext conftest.$ac_ext
11744 fi
11745 ac_res=`eval echo '${'$as_ac_var'}'`
11746                { echo "$as_me:$LINENO: result: $ac_res" >&5
11747 echo "${ECHO_T}$ac_res" >&6; }
11748 if test `eval echo '${'$as_ac_var'}'` = yes; then
11749   cat >>confdefs.h <<_ACEOF
11750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11751 _ACEOF
11752
11753 fi
11754 done
11755
11756
11757
11758   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11759 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11760 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11761   echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763   cat >conftest.$ac_ext <<_ACEOF
11764 /* confdefs.h.  */
11765 _ACEOF
11766 cat confdefs.h >>conftest.$ac_ext
11767 cat >>conftest.$ac_ext <<_ACEOF
11768 /* end confdefs.h.  */
11769 #include <stdio.h>
11770 int
11771 main ()
11772 {
11773
11774 #ifndef _snprintf
11775   char *p = (char *) _snprintf;
11776 #endif
11777
11778   ;
11779   return 0;
11780 }
11781 _ACEOF
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786   *) ac_try_echo=$ac_try;;
11787 esac
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789   (eval "$ac_compile") 2>conftest.er1
11790   ac_status=$?
11791   grep -v '^ *+' conftest.er1 >conftest.err
11792   rm -f conftest.er1
11793   cat conftest.err >&5
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } && {
11796          test -z "$ac_c_werror_flag" ||
11797          test ! -s conftest.err
11798        } && test -s conftest.$ac_objext; then
11799   ac_cv_have_decl__snprintf=yes
11800 else
11801   echo "$as_me: failed program was:" >&5
11802 sed 's/^/| /' conftest.$ac_ext >&5
11803
11804         ac_cv_have_decl__snprintf=no
11805 fi
11806
11807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11808 fi
11809 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11810 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11811   if test $ac_cv_have_decl__snprintf = yes; then
11812     gt_value=1
11813   else
11814     gt_value=0
11815   fi
11816
11817 cat >>confdefs.h <<_ACEOF
11818 #define HAVE_DECL__SNPRINTF $gt_value
11819 _ACEOF
11820
11821
11822
11823   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11824 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11825 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11826   echo $ECHO_N "(cached) $ECHO_C" >&6
11827 else
11828   cat >conftest.$ac_ext <<_ACEOF
11829 /* confdefs.h.  */
11830 _ACEOF
11831 cat confdefs.h >>conftest.$ac_ext
11832 cat >>conftest.$ac_ext <<_ACEOF
11833 /* end confdefs.h.  */
11834 #include <stdio.h>
11835 int
11836 main ()
11837 {
11838
11839 #ifndef _snwprintf
11840   char *p = (char *) _snwprintf;
11841 #endif
11842
11843   ;
11844   return 0;
11845 }
11846 _ACEOF
11847 rm -f conftest.$ac_objext
11848 if { (ac_try="$ac_compile"
11849 case "(($ac_try" in
11850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851   *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854   (eval "$ac_compile") 2>conftest.er1
11855   ac_status=$?
11856   grep -v '^ *+' conftest.er1 >conftest.err
11857   rm -f conftest.er1
11858   cat conftest.err >&5
11859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860   (exit $ac_status); } && {
11861          test -z "$ac_c_werror_flag" ||
11862          test ! -s conftest.err
11863        } && test -s conftest.$ac_objext; then
11864   ac_cv_have_decl__snwprintf=yes
11865 else
11866   echo "$as_me: failed program was:" >&5
11867 sed 's/^/| /' conftest.$ac_ext >&5
11868
11869         ac_cv_have_decl__snwprintf=no
11870 fi
11871
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11873 fi
11874 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11875 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11876   if test $ac_cv_have_decl__snwprintf = yes; then
11877     gt_value=1
11878   else
11879     gt_value=0
11880   fi
11881
11882 cat >>confdefs.h <<_ACEOF
11883 #define HAVE_DECL__SNWPRINTF $gt_value
11884 _ACEOF
11885
11886
11887
11888
11889   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11890 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11891 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   cat >conftest.$ac_ext <<_ACEOF
11895 /* confdefs.h.  */
11896 _ACEOF
11897 cat confdefs.h >>conftest.$ac_ext
11898 cat >>conftest.$ac_ext <<_ACEOF
11899 /* end confdefs.h.  */
11900 #include <stdio.h>
11901 int
11902 main ()
11903 {
11904
11905 #ifndef feof_unlocked
11906   char *p = (char *) feof_unlocked;
11907 #endif
11908
11909   ;
11910   return 0;
11911 }
11912 _ACEOF
11913 rm -f conftest.$ac_objext
11914 if { (ac_try="$ac_compile"
11915 case "(($ac_try" in
11916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11917   *) ac_try_echo=$ac_try;;
11918 esac
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920   (eval "$ac_compile") 2>conftest.er1
11921   ac_status=$?
11922   grep -v '^ *+' conftest.er1 >conftest.err
11923   rm -f conftest.er1
11924   cat conftest.err >&5
11925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926   (exit $ac_status); } && {
11927          test -z "$ac_c_werror_flag" ||
11928          test ! -s conftest.err
11929        } && test -s conftest.$ac_objext; then
11930   ac_cv_have_decl_feof_unlocked=yes
11931 else
11932   echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11934
11935         ac_cv_have_decl_feof_unlocked=no
11936 fi
11937
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 fi
11940 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11941 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11942   if test $ac_cv_have_decl_feof_unlocked = yes; then
11943     gt_value=1
11944   else
11945     gt_value=0
11946   fi
11947
11948 cat >>confdefs.h <<_ACEOF
11949 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11950 _ACEOF
11951
11952
11953
11954   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11955 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11956 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11957   echo $ECHO_N "(cached) $ECHO_C" >&6
11958 else
11959   cat >conftest.$ac_ext <<_ACEOF
11960 /* confdefs.h.  */
11961 _ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h.  */
11965 #include <stdio.h>
11966 int
11967 main ()
11968 {
11969
11970 #ifndef fgets_unlocked
11971   char *p = (char *) fgets_unlocked;
11972 #endif
11973
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 rm -f conftest.$ac_objext
11979 if { (ac_try="$ac_compile"
11980 case "(($ac_try" in
11981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982   *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985   (eval "$ac_compile") 2>conftest.er1
11986   ac_status=$?
11987   grep -v '^ *+' conftest.er1 >conftest.err
11988   rm -f conftest.er1
11989   cat conftest.err >&5
11990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991   (exit $ac_status); } && {
11992          test -z "$ac_c_werror_flag" ||
11993          test ! -s conftest.err
11994        } && test -s conftest.$ac_objext; then
11995   ac_cv_have_decl_fgets_unlocked=yes
11996 else
11997   echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000         ac_cv_have_decl_fgets_unlocked=no
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004 fi
12005 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12006 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12007   if test $ac_cv_have_decl_fgets_unlocked = yes; then
12008     gt_value=1
12009   else
12010     gt_value=0
12011   fi
12012
12013 cat >>confdefs.h <<_ACEOF
12014 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
12015 _ACEOF
12016
12017
12018
12019   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12020 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12021 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12022   echo $ECHO_N "(cached) $ECHO_C" >&6
12023 else
12024   cat >conftest.$ac_ext <<_ACEOF
12025 /* confdefs.h.  */
12026 _ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h.  */
12030 #include <stdio.h>
12031 int
12032 main ()
12033 {
12034
12035 #ifndef getc_unlocked
12036   char *p = (char *) getc_unlocked;
12037 #endif
12038
12039   ;
12040   return 0;
12041 }
12042 _ACEOF
12043 rm -f conftest.$ac_objext
12044 if { (ac_try="$ac_compile"
12045 case "(($ac_try" in
12046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12047   *) ac_try_echo=$ac_try;;
12048 esac
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050   (eval "$ac_compile") 2>conftest.er1
12051   ac_status=$?
12052   grep -v '^ *+' conftest.er1 >conftest.err
12053   rm -f conftest.er1
12054   cat conftest.err >&5
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } && {
12057          test -z "$ac_c_werror_flag" ||
12058          test ! -s conftest.err
12059        } && test -s conftest.$ac_objext; then
12060   ac_cv_have_decl_getc_unlocked=yes
12061 else
12062   echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065         ac_cv_have_decl_getc_unlocked=no
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069 fi
12070 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12071 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12072   if test $ac_cv_have_decl_getc_unlocked = yes; then
12073     gt_value=1
12074   else
12075     gt_value=0
12076   fi
12077
12078 cat >>confdefs.h <<_ACEOF
12079 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12080 _ACEOF
12081
12082
12083
12084   case $gt_cv_func_printf_posix in
12085     *yes) HAVE_POSIX_PRINTF=1 ;;
12086     *) HAVE_POSIX_PRINTF=0 ;;
12087   esac
12088
12089   if test "$ac_cv_func_asprintf" = yes; then
12090     HAVE_ASPRINTF=1
12091   else
12092     HAVE_ASPRINTF=0
12093   fi
12094
12095   if test "$ac_cv_func_snprintf" = yes; then
12096     HAVE_SNPRINTF=1
12097   else
12098     HAVE_SNPRINTF=0
12099   fi
12100
12101   if test "$ac_cv_func_wprintf" = yes; then
12102     HAVE_WPRINTF=1
12103   else
12104     HAVE_WPRINTF=0
12105   fi
12106
12107
12108
12109
12110
12111
12112
12113           am_save_CPPFLAGS="$CPPFLAGS"
12114
12115   for element in $INCICONV; do
12116     haveit=
12117     for x in $CPPFLAGS; do
12118
12119   acl_save_prefix="$prefix"
12120   prefix="$acl_final_prefix"
12121   acl_save_exec_prefix="$exec_prefix"
12122   exec_prefix="$acl_final_exec_prefix"
12123   eval x=\"$x\"
12124   exec_prefix="$acl_save_exec_prefix"
12125   prefix="$acl_save_prefix"
12126
12127       if test "X$x" = "X$element"; then
12128         haveit=yes
12129         break
12130       fi
12131     done
12132     if test -z "$haveit"; then
12133       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12134     fi
12135   done
12136
12137
12138   { echo "$as_me:$LINENO: checking for iconv" >&5
12139 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12140 if test "${am_cv_func_iconv+set}" = set; then
12141   echo $ECHO_N "(cached) $ECHO_C" >&6
12142 else
12143
12144     am_cv_func_iconv="no, consider installing GNU libiconv"
12145     am_cv_lib_iconv=no
12146     cat >conftest.$ac_ext <<_ACEOF
12147 /* confdefs.h.  */
12148 _ACEOF
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h.  */
12152 #include <stdlib.h>
12153 #include <iconv.h>
12154 int
12155 main ()
12156 {
12157 iconv_t cd = iconv_open("","");
12158        iconv(cd,NULL,NULL,NULL,NULL);
12159        iconv_close(cd);
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 rm -f conftest.$ac_objext conftest$ac_exeext
12165 if { (ac_try="$ac_link"
12166 case "(($ac_try" in
12167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168   *) ac_try_echo=$ac_try;;
12169 esac
12170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171   (eval "$ac_link") 2>conftest.er1
12172   ac_status=$?
12173   grep -v '^ *+' conftest.er1 >conftest.err
12174   rm -f conftest.er1
12175   cat conftest.err >&5
12176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12177   (exit $ac_status); } && {
12178          test -z "$ac_c_werror_flag" ||
12179          test ! -s conftest.err
12180        } && test -s conftest$ac_exeext &&
12181        $as_test_x conftest$ac_exeext; then
12182   am_cv_func_iconv=yes
12183 else
12184   echo "$as_me: failed program was:" >&5
12185 sed 's/^/| /' conftest.$ac_ext >&5
12186
12187
12188 fi
12189
12190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12191       conftest$ac_exeext conftest.$ac_ext
12192     if test "$am_cv_func_iconv" != yes; then
12193       am_save_LIBS="$LIBS"
12194       LIBS="$LIBS $LIBICONV"
12195       cat >conftest.$ac_ext <<_ACEOF
12196 /* confdefs.h.  */
12197 _ACEOF
12198 cat confdefs.h >>conftest.$ac_ext
12199 cat >>conftest.$ac_ext <<_ACEOF
12200 /* end confdefs.h.  */
12201 #include <stdlib.h>
12202 #include <iconv.h>
12203 int
12204 main ()
12205 {
12206 iconv_t cd = iconv_open("","");
12207          iconv(cd,NULL,NULL,NULL,NULL);
12208          iconv_close(cd);
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 rm -f conftest.$ac_objext conftest$ac_exeext
12214 if { (ac_try="$ac_link"
12215 case "(($ac_try" in
12216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217   *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220   (eval "$ac_link") 2>conftest.er1
12221   ac_status=$?
12222   grep -v '^ *+' conftest.er1 >conftest.err
12223   rm -f conftest.er1
12224   cat conftest.err >&5
12225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226   (exit $ac_status); } && {
12227          test -z "$ac_c_werror_flag" ||
12228          test ! -s conftest.err
12229        } && test -s conftest$ac_exeext &&
12230        $as_test_x conftest$ac_exeext; then
12231   am_cv_lib_iconv=yes
12232         am_cv_func_iconv=yes
12233 else
12234   echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12236
12237
12238 fi
12239
12240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12241       conftest$ac_exeext conftest.$ac_ext
12242       LIBS="$am_save_LIBS"
12243     fi
12244
12245 fi
12246 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12247 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12248   if test "$am_cv_func_iconv" = yes; then
12249
12250 cat >>confdefs.h <<\_ACEOF
12251 #define HAVE_ICONV 1
12252 _ACEOF
12253
12254   fi
12255   if test "$am_cv_lib_iconv" = yes; then
12256     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12257 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12258     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12259 echo "${ECHO_T}$LIBICONV" >&6; }
12260   else
12261             CPPFLAGS="$am_save_CPPFLAGS"
12262     LIBICONV=
12263     LTLIBICONV=
12264   fi
12265
12266
12267
12268   if test "$am_cv_func_iconv" = yes; then
12269     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12270 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12271     if test "${am_cv_proto_iconv+set}" = set; then
12272   echo $ECHO_N "(cached) $ECHO_C" >&6
12273 else
12274
12275       cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h.  */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h.  */
12281
12282 #include <stdlib.h>
12283 #include <iconv.h>
12284 extern
12285 #ifdef __cplusplus
12286 "C"
12287 #endif
12288 #if defined(__STDC__) || defined(__cplusplus)
12289 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12290 #else
12291 size_t iconv();
12292 #endif
12293
12294 int
12295 main ()
12296 {
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_compile") 2>conftest.er1
12310   ac_status=$?
12311   grep -v '^ *+' conftest.er1 >conftest.err
12312   rm -f conftest.er1
12313   cat conftest.err >&5
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } && {
12316          test -z "$ac_c_werror_flag" ||
12317          test ! -s conftest.err
12318        } && test -s conftest.$ac_objext; then
12319   am_cv_proto_iconv_arg1=""
12320 else
12321   echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324         am_cv_proto_iconv_arg1="const"
12325 fi
12326
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12328       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);"
12329 fi
12330
12331     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12332     { echo "$as_me:$LINENO: result: ${ac_t:-
12333          }$am_cv_proto_iconv" >&5
12334 echo "${ECHO_T}${ac_t:-
12335          }$am_cv_proto_iconv" >&6; }
12336
12337 cat >>confdefs.h <<_ACEOF
12338 #define ICONV_CONST $am_cv_proto_iconv_arg1
12339 _ACEOF
12340
12341   fi
12342
12343
12344   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12345 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12346 if test "${am_cv_langinfo_codeset+set}" = set; then
12347   echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349   cat >conftest.$ac_ext <<_ACEOF
12350 /* confdefs.h.  */
12351 _ACEOF
12352 cat confdefs.h >>conftest.$ac_ext
12353 cat >>conftest.$ac_ext <<_ACEOF
12354 /* end confdefs.h.  */
12355 #include <langinfo.h>
12356 int
12357 main ()
12358 {
12359 char* cs = nl_langinfo(CODESET);
12360   ;
12361   return 0;
12362 }
12363 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368   *) ac_try_echo=$ac_try;;
12369 esac
12370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12371   (eval "$ac_link") 2>conftest.er1
12372   ac_status=$?
12373   grep -v '^ *+' conftest.er1 >conftest.err
12374   rm -f conftest.er1
12375   cat conftest.err >&5
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } && {
12378          test -z "$ac_c_werror_flag" ||
12379          test ! -s conftest.err
12380        } && test -s conftest$ac_exeext &&
12381        $as_test_x conftest$ac_exeext; then
12382   am_cv_langinfo_codeset=yes
12383 else
12384   echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12386
12387         am_cv_langinfo_codeset=no
12388 fi
12389
12390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12391       conftest$ac_exeext conftest.$ac_ext
12392
12393 fi
12394 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12395 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12396   if test $am_cv_langinfo_codeset = yes; then
12397
12398 cat >>confdefs.h <<\_ACEOF
12399 #define HAVE_LANGINFO_CODESET 1
12400 _ACEOF
12401
12402   fi
12403
12404   if test $ac_cv_header_locale_h = yes; then
12405
12406   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12407 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12408 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12409   echo $ECHO_N "(cached) $ECHO_C" >&6
12410 else
12411   cat >conftest.$ac_ext <<_ACEOF
12412 /* confdefs.h.  */
12413 _ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h.  */
12417 #include <locale.h>
12418 int
12419 main ()
12420 {
12421 return LC_MESSAGES
12422   ;
12423   return 0;
12424 }
12425 _ACEOF
12426 rm -f conftest.$ac_objext conftest$ac_exeext
12427 if { (ac_try="$ac_link"
12428 case "(($ac_try" in
12429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12430   *) ac_try_echo=$ac_try;;
12431 esac
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433   (eval "$ac_link") 2>conftest.er1
12434   ac_status=$?
12435   grep -v '^ *+' conftest.er1 >conftest.err
12436   rm -f conftest.er1
12437   cat conftest.err >&5
12438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439   (exit $ac_status); } && {
12440          test -z "$ac_c_werror_flag" ||
12441          test ! -s conftest.err
12442        } && test -s conftest$ac_exeext &&
12443        $as_test_x conftest$ac_exeext; then
12444   gt_cv_val_LC_MESSAGES=yes
12445 else
12446   echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.$ac_ext >&5
12448
12449         gt_cv_val_LC_MESSAGES=no
12450 fi
12451
12452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12453       conftest$ac_exeext conftest.$ac_ext
12454 fi
12455 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12456 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12457   if test $gt_cv_val_LC_MESSAGES = yes; then
12458
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_LC_MESSAGES 1
12461 _ACEOF
12462
12463   fi
12464
12465   fi
12466
12467   if test -n "$INTL_MACOSX_LIBS"; then
12468     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12469   fi
12470
12471                       for ac_prog in bison
12472 do
12473   # Extract the first word of "$ac_prog", so it can be a program name with args.
12474 set dummy $ac_prog; ac_word=$2
12475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12477 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12478   echo $ECHO_N "(cached) $ECHO_C" >&6
12479 else
12480   if test -n "$INTLBISON"; then
12481   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12482 else
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486   IFS=$as_save_IFS
12487   test -z "$as_dir" && as_dir=.
12488   for ac_exec_ext in '' $ac_executable_extensions; do
12489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12490     ac_cv_prog_INTLBISON="$ac_prog"
12491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12492     break 2
12493   fi
12494 done
12495 done
12496 IFS=$as_save_IFS
12497
12498 fi
12499 fi
12500 INTLBISON=$ac_cv_prog_INTLBISON
12501 if test -n "$INTLBISON"; then
12502   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12503 echo "${ECHO_T}$INTLBISON" >&6; }
12504 else
12505   { echo "$as_me:$LINENO: result: no" >&5
12506 echo "${ECHO_T}no" >&6; }
12507 fi
12508
12509
12510   test -n "$INTLBISON" && break
12511 done
12512
12513   if test -z "$INTLBISON"; then
12514     ac_verc_fail=yes
12515   else
12516         { echo "$as_me:$LINENO: checking version of bison" >&5
12517 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12518     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12519     case $ac_prog_version in
12520       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12521       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12522          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12523       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12524     esac
12525     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12526 echo "${ECHO_T}$ac_prog_version" >&6; }
12527   fi
12528   if test $ac_verc_fail = yes; then
12529     INTLBISON=:
12530   fi
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12548 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12549 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12550   echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552   gt_save_CPPFLAGS="$CPPFLAGS"
12553      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12554      gt_save_LIBS="$LIBS"
12555      LIBS="$LIBS -framework CoreFoundation"
12556      cat >conftest.$ac_ext <<_ACEOF
12557 /* confdefs.h.  */
12558 _ACEOF
12559 cat confdefs.h >>conftest.$ac_ext
12560 cat >>conftest.$ac_ext <<_ACEOF
12561 /* end confdefs.h.  */
12562 #include <CFPreferences.h>
12563 int
12564 main ()
12565 {
12566 CFPreferencesCopyAppValue(NULL, NULL)
12567   ;
12568   return 0;
12569 }
12570 _ACEOF
12571 rm -f conftest.$ac_objext conftest$ac_exeext
12572 if { (ac_try="$ac_link"
12573 case "(($ac_try" in
12574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12575   *) ac_try_echo=$ac_try;;
12576 esac
12577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12578   (eval "$ac_link") 2>conftest.er1
12579   ac_status=$?
12580   grep -v '^ *+' conftest.er1 >conftest.err
12581   rm -f conftest.er1
12582   cat conftest.err >&5
12583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584   (exit $ac_status); } && {
12585          test -z "$ac_c_werror_flag" ||
12586          test ! -s conftest.err
12587        } && test -s conftest$ac_exeext &&
12588        $as_test_x conftest$ac_exeext; then
12589   gt_cv_func_CFPreferencesCopyAppValue=yes
12590 else
12591   echo "$as_me: failed program was:" >&5
12592 sed 's/^/| /' conftest.$ac_ext >&5
12593
12594         gt_cv_func_CFPreferencesCopyAppValue=no
12595 fi
12596
12597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12598       conftest$ac_exeext conftest.$ac_ext
12599      CPPFLAGS="$gt_save_CPPFLAGS"
12600      LIBS="$gt_save_LIBS"
12601 fi
12602 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12603 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12604   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12605
12606 cat >>confdefs.h <<\_ACEOF
12607 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12608 _ACEOF
12609
12610   fi
12611     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12612 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12613 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12614   echo $ECHO_N "(cached) $ECHO_C" >&6
12615 else
12616   gt_save_CPPFLAGS="$CPPFLAGS"
12617      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12618      gt_save_LIBS="$LIBS"
12619      LIBS="$LIBS -framework CoreFoundation"
12620      cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626 #include <CFLocale.h>
12627 int
12628 main ()
12629 {
12630 CFLocaleCopyCurrent();
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 rm -f conftest.$ac_objext conftest$ac_exeext
12636 if { (ac_try="$ac_link"
12637 case "(($ac_try" in
12638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12639   *) ac_try_echo=$ac_try;;
12640 esac
12641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12642   (eval "$ac_link") 2>conftest.er1
12643   ac_status=$?
12644   grep -v '^ *+' conftest.er1 >conftest.err
12645   rm -f conftest.er1
12646   cat conftest.err >&5
12647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648   (exit $ac_status); } && {
12649          test -z "$ac_c_werror_flag" ||
12650          test ! -s conftest.err
12651        } && test -s conftest$ac_exeext &&
12652        $as_test_x conftest$ac_exeext; then
12653   gt_cv_func_CFLocaleCopyCurrent=yes
12654 else
12655   echo "$as_me: failed program was:" >&5
12656 sed 's/^/| /' conftest.$ac_ext >&5
12657
12658         gt_cv_func_CFLocaleCopyCurrent=no
12659 fi
12660
12661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12662       conftest$ac_exeext conftest.$ac_ext
12663      CPPFLAGS="$gt_save_CPPFLAGS"
12664      LIBS="$gt_save_LIBS"
12665 fi
12666 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12667 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12668   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12669
12670 cat >>confdefs.h <<\_ACEOF
12671 #define HAVE_CFLOCALECOPYCURRENT 1
12672 _ACEOF
12673
12674   fi
12675   INTL_MACOSX_LIBS=
12676   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12677     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12678   fi
12679
12680
12681
12682
12683   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12684 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12685     # Check whether --enable-nls was given.
12686 if test "${enable_nls+set}" = set; then
12687   enableval=$enable_nls; USE_NLS=$enableval
12688 else
12689   USE_NLS=yes
12690 fi
12691
12692   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12693 echo "${ECHO_T}$USE_NLS" >&6; }
12694
12695
12696
12697
12698     BUILD_INCLUDED_LIBINTL=no
12699     USE_INCLUDED_LIBINTL=no
12700
12701   LIBINTL=
12702   LTLIBINTL=
12703   POSUB=
12704
12705     if test "$USE_NLS" = "yes"; then
12706     gt_use_preinstalled_gnugettext=no
12707
12708       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12709 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12710
12711 # Check whether --with-included-gettext was given.
12712 if test "${with_included_gettext+set}" = set; then
12713   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12714 else
12715   nls_cv_force_use_gnu_gettext=no
12716 fi
12717
12718       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12719 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12720
12721       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12722       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12723
12724
12725
12726
12727
12728
12729         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12730 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12731 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12732   echo $ECHO_N "(cached) $ECHO_C" >&6
12733 else
12734   cat >conftest.$ac_ext <<_ACEOF
12735 /* confdefs.h.  */
12736 _ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h.  */
12740 #include <libintl.h>
12741 extern int _nl_msg_cat_cntr;
12742 extern int *_nl_domain_bindings;
12743 int
12744 main ()
12745 {
12746 bindtextdomain ("", "");
12747 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12748   ;
12749   return 0;
12750 }
12751 _ACEOF
12752 rm -f conftest.$ac_objext conftest$ac_exeext
12753 if { (ac_try="$ac_link"
12754 case "(($ac_try" in
12755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12756   *) ac_try_echo=$ac_try;;
12757 esac
12758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12759   (eval "$ac_link") 2>conftest.er1
12760   ac_status=$?
12761   grep -v '^ *+' conftest.er1 >conftest.err
12762   rm -f conftest.er1
12763   cat conftest.err >&5
12764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12765   (exit $ac_status); } && {
12766          test -z "$ac_c_werror_flag" ||
12767          test ! -s conftest.err
12768        } && test -s conftest$ac_exeext &&
12769        $as_test_x conftest$ac_exeext; then
12770   gt_cv_func_gnugettext1_libc=yes
12771 else
12772   echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12774
12775         gt_cv_func_gnugettext1_libc=no
12776 fi
12777
12778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12779       conftest$ac_exeext conftest.$ac_ext
12780 fi
12781 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12782 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12783
12784         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12785
12786
12787
12788     use_additional=yes
12789
12790   acl_save_prefix="$prefix"
12791   prefix="$acl_final_prefix"
12792   acl_save_exec_prefix="$exec_prefix"
12793   exec_prefix="$acl_final_exec_prefix"
12794
12795     eval additional_includedir=\"$includedir\"
12796     eval additional_libdir=\"$libdir\"
12797
12798   exec_prefix="$acl_save_exec_prefix"
12799   prefix="$acl_save_prefix"
12800
12801
12802 # Check whether --with-libintl-prefix was given.
12803 if test "${with_libintl_prefix+set}" = set; then
12804   withval=$with_libintl_prefix;
12805     if test "X$withval" = "Xno"; then
12806       use_additional=no
12807     else
12808       if test "X$withval" = "X"; then
12809
12810   acl_save_prefix="$prefix"
12811   prefix="$acl_final_prefix"
12812   acl_save_exec_prefix="$exec_prefix"
12813   exec_prefix="$acl_final_exec_prefix"
12814
12815           eval additional_includedir=\"$includedir\"
12816           eval additional_libdir=\"$libdir\"
12817
12818   exec_prefix="$acl_save_exec_prefix"
12819   prefix="$acl_save_prefix"
12820
12821       else
12822         additional_includedir="$withval/include"
12823         additional_libdir="$withval/lib"
12824       fi
12825     fi
12826
12827 fi
12828
12829       LIBINTL=
12830   LTLIBINTL=
12831   INCINTL=
12832   rpathdirs=
12833   ltrpathdirs=
12834   names_already_handled=
12835   names_next_round='intl '
12836   while test -n "$names_next_round"; do
12837     names_this_round="$names_next_round"
12838     names_next_round=
12839     for name in $names_this_round; do
12840       already_handled=
12841       for n in $names_already_handled; do
12842         if test "$n" = "$name"; then
12843           already_handled=yes
12844           break
12845         fi
12846       done
12847       if test -z "$already_handled"; then
12848         names_already_handled="$names_already_handled $name"
12849                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12850         eval value=\"\$HAVE_LIB$uppername\"
12851         if test -n "$value"; then
12852           if test "$value" = yes; then
12853             eval value=\"\$LIB$uppername\"
12854             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12855             eval value=\"\$LTLIB$uppername\"
12856             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12857           else
12858                                     :
12859           fi
12860         else
12861                               found_dir=
12862           found_la=
12863           found_so=
12864           found_a=
12865           if test $use_additional = yes; then
12866             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12867               found_dir="$additional_libdir"
12868               found_so="$additional_libdir/lib$name.$shlibext"
12869               if test -f "$additional_libdir/lib$name.la"; then
12870                 found_la="$additional_libdir/lib$name.la"
12871               fi
12872             else
12873               if test -f "$additional_libdir/lib$name.$libext"; then
12874                 found_dir="$additional_libdir"
12875                 found_a="$additional_libdir/lib$name.$libext"
12876                 if test -f "$additional_libdir/lib$name.la"; then
12877                   found_la="$additional_libdir/lib$name.la"
12878                 fi
12879               fi
12880             fi
12881           fi
12882           if test "X$found_dir" = "X"; then
12883             for x in $LDFLAGS $LTLIBINTL; do
12884
12885   acl_save_prefix="$prefix"
12886   prefix="$acl_final_prefix"
12887   acl_save_exec_prefix="$exec_prefix"
12888   exec_prefix="$acl_final_exec_prefix"
12889   eval x=\"$x\"
12890   exec_prefix="$acl_save_exec_prefix"
12891   prefix="$acl_save_prefix"
12892
12893               case "$x" in
12894                 -L*)
12895                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12896                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12897                     found_dir="$dir"
12898                     found_so="$dir/lib$name.$shlibext"
12899                     if test -f "$dir/lib$name.la"; then
12900                       found_la="$dir/lib$name.la"
12901                     fi
12902                   else
12903                     if test -f "$dir/lib$name.$libext"; then
12904                       found_dir="$dir"
12905                       found_a="$dir/lib$name.$libext"
12906                       if test -f "$dir/lib$name.la"; then
12907                         found_la="$dir/lib$name.la"
12908                       fi
12909                     fi
12910                   fi
12911                   ;;
12912               esac
12913               if test "X$found_dir" != "X"; then
12914                 break
12915               fi
12916             done
12917           fi
12918           if test "X$found_dir" != "X"; then
12919                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12920             if test "X$found_so" != "X"; then
12921                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12922                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12923               else
12924                                                                                 haveit=
12925                 for x in $ltrpathdirs; do
12926                   if test "X$x" = "X$found_dir"; then
12927                     haveit=yes
12928                     break
12929                   fi
12930                 done
12931                 if test -z "$haveit"; then
12932                   ltrpathdirs="$ltrpathdirs $found_dir"
12933                 fi
12934                                 if test "$hardcode_direct" = yes; then
12935                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12936                 else
12937                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12938                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12939                                                             haveit=
12940                     for x in $rpathdirs; do
12941                       if test "X$x" = "X$found_dir"; then
12942                         haveit=yes
12943                         break
12944                       fi
12945                     done
12946                     if test -z "$haveit"; then
12947                       rpathdirs="$rpathdirs $found_dir"
12948                     fi
12949                   else
12950                                                                                 haveit=
12951                     for x in $LDFLAGS $LIBINTL; do
12952
12953   acl_save_prefix="$prefix"
12954   prefix="$acl_final_prefix"
12955   acl_save_exec_prefix="$exec_prefix"
12956   exec_prefix="$acl_final_exec_prefix"
12957   eval x=\"$x\"
12958   exec_prefix="$acl_save_exec_prefix"
12959   prefix="$acl_save_prefix"
12960
12961                       if test "X$x" = "X-L$found_dir"; then
12962                         haveit=yes
12963                         break
12964                       fi
12965                     done
12966                     if test -z "$haveit"; then
12967                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12968                     fi
12969                     if test "$hardcode_minus_L" != no; then
12970                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12971                     else
12972                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12973                     fi
12974                   fi
12975                 fi
12976               fi
12977             else
12978               if test "X$found_a" != "X"; then
12979                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12980               else
12981                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12982               fi
12983             fi
12984                         additional_includedir=
12985             case "$found_dir" in
12986               */lib | */lib/)
12987                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12988                 additional_includedir="$basedir/include"
12989                 ;;
12990             esac
12991             if test "X$additional_includedir" != "X"; then
12992                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12993                 haveit=
12994                 if test "X$additional_includedir" = "X/usr/local/include"; then
12995                   if test -n "$GCC"; then
12996                     case $host_os in
12997                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12998                     esac
12999                   fi
13000                 fi
13001                 if test -z "$haveit"; then
13002                   for x in $CPPFLAGS $INCINTL; do
13003
13004   acl_save_prefix="$prefix"
13005   prefix="$acl_final_prefix"
13006   acl_save_exec_prefix="$exec_prefix"
13007   exec_prefix="$acl_final_exec_prefix"
13008   eval x=\"$x\"
13009   exec_prefix="$acl_save_exec_prefix"
13010   prefix="$acl_save_prefix"
13011
13012                     if test "X$x" = "X-I$additional_includedir"; then
13013                       haveit=yes
13014                       break
13015                     fi
13016                   done
13017                   if test -z "$haveit"; then
13018                     if test -d "$additional_includedir"; then
13019                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13020                     fi
13021                   fi
13022                 fi
13023               fi
13024             fi
13025                         if test -n "$found_la"; then
13026                                                         save_libdir="$libdir"
13027               case "$found_la" in
13028                 */* | *\\*) . "$found_la" ;;
13029                 *) . "./$found_la" ;;
13030               esac
13031               libdir="$save_libdir"
13032                             for dep in $dependency_libs; do
13033                 case "$dep" in
13034                   -L*)
13035                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13036                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13037                       haveit=
13038                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13039                         if test -n "$GCC"; then
13040                           case $host_os in
13041                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13042                           esac
13043                         fi
13044                       fi
13045                       if test -z "$haveit"; then
13046                         haveit=
13047                         for x in $LDFLAGS $LIBINTL; do
13048
13049   acl_save_prefix="$prefix"
13050   prefix="$acl_final_prefix"
13051   acl_save_exec_prefix="$exec_prefix"
13052   exec_prefix="$acl_final_exec_prefix"
13053   eval x=\"$x\"
13054   exec_prefix="$acl_save_exec_prefix"
13055   prefix="$acl_save_prefix"
13056
13057                           if test "X$x" = "X-L$additional_libdir"; then
13058                             haveit=yes
13059                             break
13060                           fi
13061                         done
13062                         if test -z "$haveit"; then
13063                           if test -d "$additional_libdir"; then
13064                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13065                           fi
13066                         fi
13067                         haveit=
13068                         for x in $LDFLAGS $LTLIBINTL; do
13069
13070   acl_save_prefix="$prefix"
13071   prefix="$acl_final_prefix"
13072   acl_save_exec_prefix="$exec_prefix"
13073   exec_prefix="$acl_final_exec_prefix"
13074   eval x=\"$x\"
13075   exec_prefix="$acl_save_exec_prefix"
13076   prefix="$acl_save_prefix"
13077
13078                           if test "X$x" = "X-L$additional_libdir"; then
13079                             haveit=yes
13080                             break
13081                           fi
13082                         done
13083                         if test -z "$haveit"; then
13084                           if test -d "$additional_libdir"; then
13085                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13086                           fi
13087                         fi
13088                       fi
13089                     fi
13090                     ;;
13091                   -R*)
13092                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13093                     if test "$enable_rpath" != no; then
13094                                                                   haveit=
13095                       for x in $rpathdirs; do
13096                         if test "X$x" = "X$dir"; then
13097                           haveit=yes
13098                           break
13099                         fi
13100                       done
13101                       if test -z "$haveit"; then
13102                         rpathdirs="$rpathdirs $dir"
13103                       fi
13104                                                                   haveit=
13105                       for x in $ltrpathdirs; do
13106                         if test "X$x" = "X$dir"; then
13107                           haveit=yes
13108                           break
13109                         fi
13110                       done
13111                       if test -z "$haveit"; then
13112                         ltrpathdirs="$ltrpathdirs $dir"
13113                       fi
13114                     fi
13115                     ;;
13116                   -l*)
13117                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13118                     ;;
13119                   *.la)
13120                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13121                     ;;
13122                   *)
13123                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13124                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13125                     ;;
13126                 esac
13127               done
13128             fi
13129           else
13130                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13131             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13132           fi
13133         fi
13134       fi
13135     done
13136   done
13137   if test "X$rpathdirs" != "X"; then
13138     if test -n "$hardcode_libdir_separator"; then
13139                         alldirs=
13140       for found_dir in $rpathdirs; do
13141         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13142       done
13143             acl_save_libdir="$libdir"
13144       libdir="$alldirs"
13145       eval flag=\"$hardcode_libdir_flag_spec\"
13146       libdir="$acl_save_libdir"
13147       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13148     else
13149             for found_dir in $rpathdirs; do
13150         acl_save_libdir="$libdir"
13151         libdir="$found_dir"
13152         eval flag=\"$hardcode_libdir_flag_spec\"
13153         libdir="$acl_save_libdir"
13154         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13155       done
13156     fi
13157   fi
13158   if test "X$ltrpathdirs" != "X"; then
13159             for found_dir in $ltrpathdirs; do
13160       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13161     done
13162   fi
13163
13164           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13165 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13166 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   gt_save_CPPFLAGS="$CPPFLAGS"
13170             CPPFLAGS="$CPPFLAGS $INCINTL"
13171             gt_save_LIBS="$LIBS"
13172             LIBS="$LIBS $LIBINTL"
13173                         cat >conftest.$ac_ext <<_ACEOF
13174 /* confdefs.h.  */
13175 _ACEOF
13176 cat confdefs.h >>conftest.$ac_ext
13177 cat >>conftest.$ac_ext <<_ACEOF
13178 /* end confdefs.h.  */
13179 #include <libintl.h>
13180 extern int _nl_msg_cat_cntr;
13181 extern
13182 #ifdef __cplusplus
13183 "C"
13184 #endif
13185 const char *_nl_expand_alias (const char *);
13186 int
13187 main ()
13188 {
13189 bindtextdomain ("", "");
13190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13191   ;
13192   return 0;
13193 }
13194 _ACEOF
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (ac_try="$ac_link"
13197 case "(($ac_try" in
13198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199   *) ac_try_echo=$ac_try;;
13200 esac
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202   (eval "$ac_link") 2>conftest.er1
13203   ac_status=$?
13204   grep -v '^ *+' conftest.er1 >conftest.err
13205   rm -f conftest.er1
13206   cat conftest.err >&5
13207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208   (exit $ac_status); } && {
13209          test -z "$ac_c_werror_flag" ||
13210          test ! -s conftest.err
13211        } && test -s conftest$ac_exeext &&
13212        $as_test_x conftest$ac_exeext; then
13213   gt_cv_func_gnugettext1_libintl=yes
13214 else
13215   echo "$as_me: failed program was:" >&5
13216 sed 's/^/| /' conftest.$ac_ext >&5
13217
13218         gt_cv_func_gnugettext1_libintl=no
13219 fi
13220
13221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13222       conftest$ac_exeext conftest.$ac_ext
13223                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13224               LIBS="$LIBS $LIBICONV"
13225               cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231 #include <libintl.h>
13232 extern int _nl_msg_cat_cntr;
13233 extern
13234 #ifdef __cplusplus
13235 "C"
13236 #endif
13237 const char *_nl_expand_alias (const char *);
13238 int
13239 main ()
13240 {
13241 bindtextdomain ("", "");
13242 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13243   ;
13244   return 0;
13245 }
13246 _ACEOF
13247 rm -f conftest.$ac_objext conftest$ac_exeext
13248 if { (ac_try="$ac_link"
13249 case "(($ac_try" in
13250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13251   *) ac_try_echo=$ac_try;;
13252 esac
13253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13254   (eval "$ac_link") 2>conftest.er1
13255   ac_status=$?
13256   grep -v '^ *+' conftest.er1 >conftest.err
13257   rm -f conftest.er1
13258   cat conftest.err >&5
13259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260   (exit $ac_status); } && {
13261          test -z "$ac_c_werror_flag" ||
13262          test ! -s conftest.err
13263        } && test -s conftest$ac_exeext &&
13264        $as_test_x conftest$ac_exeext; then
13265   LIBINTL="$LIBINTL $LIBICONV"
13266                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13267                 gt_cv_func_gnugettext1_libintl=yes
13268
13269 else
13270   echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13277       conftest$ac_exeext conftest.$ac_ext
13278             fi
13279             CPPFLAGS="$gt_save_CPPFLAGS"
13280             LIBS="$gt_save_LIBS"
13281 fi
13282 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13283 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13284         fi
13285
13286                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13287            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13288                 && test "$PACKAGE" != gettext-runtime \
13289                 && test "$PACKAGE" != gettext-tools; }; then
13290           gt_use_preinstalled_gnugettext=yes
13291         else
13292                     LIBINTL=
13293           LTLIBINTL=
13294           INCINTL=
13295         fi
13296
13297
13298         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13299                               nls_cv_use_gnu_gettext=yes
13300         fi
13301       fi
13302
13303       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13304                 BUILD_INCLUDED_LIBINTL=yes
13305         USE_INCLUDED_LIBINTL=yes
13306         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13307         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13308         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13309       fi
13310
13311       CATOBJEXT=
13312       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13313          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13314                 CATOBJEXT=.gmo
13315       fi
13316
13317
13318     if test -n "$INTL_MACOSX_LIBS"; then
13319       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13320          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13321                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13322         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13323       fi
13324     fi
13325
13326     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13327        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13328
13329 cat >>confdefs.h <<\_ACEOF
13330 #define ENABLE_NLS 1
13331 _ACEOF
13332
13333     else
13334       USE_NLS=no
13335     fi
13336   fi
13337
13338   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13339 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13340   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13341 echo "${ECHO_T}$USE_NLS" >&6; }
13342   if test "$USE_NLS" = "yes"; then
13343     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13344 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13345     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13346       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13347         gt_source="external libintl"
13348       else
13349         gt_source="libc"
13350       fi
13351     else
13352       gt_source="included intl directory"
13353     fi
13354     { echo "$as_me:$LINENO: result: $gt_source" >&5
13355 echo "${ECHO_T}$gt_source" >&6; }
13356   fi
13357
13358   if test "$USE_NLS" = "yes"; then
13359
13360     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13361       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13362         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13363 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13364         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13365 echo "${ECHO_T}$LIBINTL" >&6; }
13366
13367   for element in $INCINTL; do
13368     haveit=
13369     for x in $CPPFLAGS; do
13370
13371   acl_save_prefix="$prefix"
13372   prefix="$acl_final_prefix"
13373   acl_save_exec_prefix="$exec_prefix"
13374   exec_prefix="$acl_final_exec_prefix"
13375   eval x=\"$x\"
13376   exec_prefix="$acl_save_exec_prefix"
13377   prefix="$acl_save_prefix"
13378
13379       if test "X$x" = "X$element"; then
13380         haveit=yes
13381         break
13382       fi
13383     done
13384     if test -z "$haveit"; then
13385       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13386     fi
13387   done
13388
13389       fi
13390
13391
13392 cat >>confdefs.h <<\_ACEOF
13393 #define HAVE_GETTEXT 1
13394 _ACEOF
13395
13396
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_DCGETTEXT 1
13399 _ACEOF
13400
13401     fi
13402
13403         POSUB=po
13404   fi
13405
13406
13407             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13408       BUILD_INCLUDED_LIBINTL=yes
13409     fi
13410
13411
13412
13413
13414
13415         nls_cv_header_intl=
13416     nls_cv_header_libgt=
13417
13418         DATADIRNAME=share
13419
13420
13421         INSTOBJEXT=.mo
13422
13423
13424         GENCAT=gencat
13425
13426
13427         INTLOBJS=
13428     if test "$USE_INCLUDED_LIBINTL" = yes; then
13429       INTLOBJS="\$(GETTOBJS)"
13430     fi
13431
13432
13433         INTL_LIBTOOL_SUFFIX_PREFIX=
13434
13435
13436
13437     INTLLIBS="$LIBINTL"
13438
13439
13440
13441
13442
13443
13444 fi
13445
13446 support_mysql=no
13447 support_sqlite=no
13448 support_sqlite3=no
13449 support_postgresql=no
13450 support_dbi=no
13451 support_smartalloc=yes
13452 support_readline=yes
13453 support_conio=yes
13454 support_gnome=no
13455 support_bat=no
13456 support_wx_console=no
13457 support_tls=no
13458 support_crypto=no
13459 gnome_version=
13460 wx_version=
13461 support_static_tools=no
13462 support_static_fd=no
13463 support_static_sd=no
13464 support_static_dir=no
13465 support_static_cons=no
13466 support_python=no
13467 build_client_only=no
13468 build_dird=yes
13469 build_stored=yes
13470 cats=
13471 db_type=Internal
13472 DB_TYPE=bdb
13473
13474
13475 # -------------------------------------------
13476 # gnome (default off)
13477 # -------------------------------------------
13478 # Check whether --enable-gnome was given.
13479 if test "${enable_gnome+set}" = set; then
13480   enableval=$enable_gnome; if test x$enableval = xyes; then
13481     support_gnome=yes
13482   fi
13483 fi
13484
13485
13486 GNOME_DIR=
13487 if test x$support_gnome = xyes; then
13488   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13489   pkg=$?
13490   if test $pkg = 0; then
13491      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13492      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13493      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13494      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13495
13496
13497
13498
13499      GNOME_DIR=src/gnome2-console
13500      gnome_version="Version 2.x"
13501   else
13502      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13503 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13504    { (exit 1); exit 1; }; }
13505   fi
13506 fi
13507
13508
13509 # -------------------------------------------
13510 # bat (default off)
13511 # -------------------------------------------
13512 # Check whether --enable-bat was given.
13513 if test "${enable_bat+set}" = set; then
13514   enableval=$enable_bat; if test x$enableval = xyes; then
13515
13516 cat >>confdefs.h <<\_ACEOF
13517 #define HAVE_BAT 1
13518 _ACEOF
13519
13520     support_bat=yes
13521   fi
13522 fi
13523
13524
13525 BAT_DIR=
13526 if test x$support_bat = xyes; then
13527   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13528   pkg=$?
13529   if test $pkg = 0; then
13530      BAT_DIR=src/qt-console
13531   else
13532      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13533 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13534    { (exit 1); exit 1; }; }
13535   fi
13536 fi
13537
13538 #
13539 #  If bat is enabled, we need the qwt library
13540 got_qwt=no
13541 QWT_INC=
13542 QWT_LDFLAGS=
13543 QWT_LIB=
13544 QWT=
13545 no_qwt=no
13546 if test x$support_bat = xyes; then
13547    { echo "$as_me:$LINENO: checking for qwt support" >&5
13548 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13549
13550 # Check whether --with-qwt was given.
13551 if test "${with_qwt+set}" = set; then
13552   withval=$with_qwt;
13553         case "$with_qwt" in
13554         no)
13555            no_qwt=yes
13556           ;;
13557         yes|*)
13558           if test -f ${with_qwt}/include/qwt.h; then
13559              QWT_INC="${with_qwt}/include"
13560              QWT_LDFLAGS="-L${with_qwt}/lib"
13561              QWT_LIB="-lqwt"
13562              QWT="qwt"
13563           fi
13564           ;;
13565         esac
13566
13567
13568 fi
13569
13570 #
13571 # Search in standard places, or --with-qwt not specified
13572 #
13573    if test $no_qwt = no; then
13574     if test x$QWT_INC = x; then
13575       for root in /usr /usr/local; do
13576          for ver in qwt qwt5 qwt-qt4; do
13577             if test -f ${root}/include/${ver}/qwt.h; then
13578                QWT_INC="${root}/include/${ver}"
13579                if test -d ${root}/lib64/; then
13580                   QWT_LDFLAGS="-L${root}/lib64"
13581                else
13582                   QWT_LDFLAGS="-L${root}/lib"
13583                fi
13584                QWT_LIB="-lqwt"
13585                QWT="qwt"
13586                got_qwt=yes
13587                break;
13588             fi
13589          done
13590       done
13591     fi
13592    fi
13593    if test x$QWT_INC = x; then
13594       { echo "$as_me:$LINENO: result: no" >&5
13595 echo "${ECHO_T}no" >&6; }
13596    else
13597
13598 cat >>confdefs.h <<\_ACEOF
13599 #define HAVE_QWT 1
13600 _ACEOF
13601
13602       { echo "$as_me:$LINENO: result: yes" >&5
13603 echo "${ECHO_T}yes" >&6; }
13604    fi
13605 fi
13606
13607
13608
13609
13610
13611
13612
13613
13614 # -------------------------------------------
13615 # bwx-console (default off)
13616 # -------------------------------------------
13617 # Check whether --enable-bwx-console was given.
13618 if test "${enable_bwx_console+set}" = set; then
13619   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13620     support_wx_console=yes
13621   fi
13622 fi
13623
13624
13625 WX_DIR=
13626 if test x$support_wx_console = xyes; then
13627   abc=`$WXCONFIG $WXFLAGS --cppflags`
13628   pkg=$?
13629   if test $pkg = 0; then
13630      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13631      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13632      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13633
13634
13635
13636      WX_DIR=src/wx-console
13637   else
13638      echo " "
13639      echo "wx-config program not found. bwx-console disabled."
13640      echo " "
13641      support_wx_console=no
13642   fi
13643 fi
13644
13645
13646
13647 # -------------------------------------------
13648 # tray-monitor (default off)
13649 # -------------------------------------------
13650 # Check whether --enable-tray-monitor was given.
13651 if test "${enable_tray_monitor+set}" = set; then
13652   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13653     support_tray_monitor=yes
13654   fi
13655 fi
13656
13657
13658 TRAY_MONITOR_DIR=
13659 if test x$support_tray_monitor = xyes; then
13660   abc=`$PKGCONFIG --exists gtk+-2.0`
13661   pkg=$?
13662   if test $pkg = 0; then
13663      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13664      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13665
13666
13667      TRAY_MONITOR_DIR=src/tray-monitor
13668      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13669      pkg=$?
13670      if test $pkg = 0; then
13671
13672 cat >>confdefs.h <<\_ACEOF
13673 #define HAVE_GTK_2_4 1
13674 _ACEOF
13675
13676      fi
13677   fi
13678 fi
13679
13680
13681 # -------------------------------------------
13682 # smartalloc (default off)
13683 # -------------------------------------------
13684 # Check whether --enable-smartalloc was given.
13685 if test "${enable_smartalloc+set}" = set; then
13686   enableval=$enable_smartalloc; if test x$enableval = xno; then
13687     support_smartalloc=no
13688   fi
13689 fi
13690
13691
13692 if test x$support_smartalloc = xyes; then
13693
13694 cat >>confdefs.h <<\_ACEOF
13695 #define SMARTALLOC 1
13696 _ACEOF
13697
13698 fi
13699
13700 # -------------------------------------------
13701 # static-tools (default off)
13702 # -------------------------------------------
13703 # Check whether --enable-static-tools was given.
13704 if test "${enable_static_tools+set}" = set; then
13705   enableval=$enable_static_tools; if test x$enableval = xyes; then
13706      support_static_tools=yes
13707    fi
13708 fi
13709
13710
13711 TTOOL_LDFLAGS=
13712 if test x$support_static_tools = xyes; then
13713    TTOOL_LDFLAGS="-static"
13714 fi
13715
13716
13717 # -------------------------------------------
13718 # static-fd    (default off)
13719 # -------------------------------------------
13720 # Check whether --enable-static-fd was given.
13721 if test "${enable_static_fd+set}" = set; then
13722   enableval=$enable_static_fd; if test x$enableval = xyes; then
13723      support_static_fd=yes
13724    fi
13725 fi
13726
13727
13728 STATIC_FD=
13729 if test x$support_static_fd = xyes; then
13730    STATIC_FD="static-bacula-fd"
13731 fi
13732
13733
13734 # -------------------------------------------
13735 # static-sd    (default off)
13736 # -------------------------------------------
13737 # Check whether --enable-static-sd was given.
13738 if test "${enable_static_sd+set}" = set; then
13739   enableval=$enable_static_sd; if test x$enableval = xyes; then
13740      support_static_sd=yes
13741    fi
13742 fi
13743
13744
13745 STATIC_SD=
13746 if test x$support_static_sd = xyes; then
13747    STATIC_SD="static-bacula-sd"
13748 fi
13749
13750
13751 # -------------------------------------------
13752 # static-dir   (default off)
13753 # -------------------------------------------
13754 # Check whether --enable-static-dir was given.
13755 if test "${enable_static_dir+set}" = set; then
13756   enableval=$enable_static_dir; if test x$enableval = xyes; then
13757      support_static_dir=yes
13758    fi
13759 fi
13760
13761
13762 STATIC_DIR=
13763 if test x$support_static_dir = xyes; then
13764    STATIC_DIR="static-bacula-dir"
13765 fi
13766
13767
13768 # -------------------------------------------
13769 # static-cons  (default off)
13770 # -------------------------------------------
13771 # Check whether --enable-static-cons was given.
13772 if test "${enable_static_cons+set}" = set; then
13773   enableval=$enable_static_cons; if test x$enableval = xyes; then
13774      support_static_cons=yes
13775    fi
13776 fi
13777
13778
13779 STATIC_CONS=
13780 STATIC_GNOME_CONS=
13781 STATIC_WX_CONS=
13782 if test x$support_static_cons = xyes; then
13783    STATIC_CONS="static-bconsole"
13784    STATIC_GNOME_CONS="static-bgnome-console"
13785    STATIC_WX_CONS="static-bwx-console"
13786 fi
13787
13788
13789
13790
13791 # -------------------------------------------
13792 # client_only  (default off)
13793 # -------------------------------------------
13794 # Check whether --enable-client-only was given.
13795 if test "${enable_client_only+set}" = set; then
13796   enableval=$enable_client_only; if test x$enableval = xyes; then
13797       build_client_only=yes
13798       db_type=None
13799       DB_TYPE=none
13800    fi
13801 fi
13802
13803 if test x$build_client_only = xno; then
13804    ALL_DIRS="subdirs"
13805 else
13806    ALL_DIRS=""
13807 fi
13808
13809
13810 # -------------------------------------------
13811 # director  (default on)
13812 # -------------------------------------------
13813 # Check whether --enable-build-dird was given.
13814 if test "${enable_build_dird+set}" = set; then
13815   enableval=$enable_build_dird; if test x$enableval = xno; then
13816       build_dird=no
13817    fi
13818 fi
13819
13820 if test x$build_dird = xyes; then
13821    DIRD_DIR="src/dird"
13822    DIR_TOOLS="DIRTOOLS"
13823 else
13824    DIRD_DIR=""
13825    DIR_TOOLS="NODIRTOOLS"
13826 fi
13827
13828
13829
13830 # -------------------------------------------
13831 # stored  (default on)
13832 # -------------------------------------------
13833 # Check whether --enable-build-stored was given.
13834 if test "${enable_build_stored+set}" = set; then
13835   enableval=$enable_build_stored; if test x$enableval = xno; then
13836       build_stored=no
13837    fi
13838 fi
13839
13840 if test x$build_stored = xyes; then
13841    STORED_DIR="src/stored"
13842 else
13843    STORED_DIR=""
13844 fi
13845
13846
13847 # ---------------------------------------------------
13848 # Check for conio (Bacula readline substitute)(
13849 # ---------------------------------------------------
13850 # this allows you to turn it completely off
13851 # Check whether --enable-conio was given.
13852 if test "${enable_conio+set}" = set; then
13853   enableval=$enable_conio; if test x$enableval = xno; then
13854      support_conio=no
13855   fi
13856
13857 fi
13858
13859
13860
13861 # ---------------------------------------------------
13862 # Check for IPv6 support
13863 # ---------------------------------------------------
13864 # this allows you to turn it completely off
13865 support_ipv6=yes
13866 # Check whether --enable-ipv6 was given.
13867 if test "${enable_ipv6+set}" = set; then
13868   enableval=$enable_ipv6; if test x$enableval = xno; then
13869      support_ipv6=no
13870   fi
13871
13872 fi
13873
13874
13875 if test x$support_ipv6 = xyes; then
13876     cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h.  */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h.  */
13882  #include <sys/types.h>
13883 #include <sys/socket.h>
13884 #include <netinet/in.h>
13885 int
13886 main ()
13887 {
13888 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13889   ;
13890   return 0;
13891 }
13892 _ACEOF
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897   *) ac_try_echo=$ac_try;;
13898 esac
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900   (eval "$ac_link") 2>conftest.er1
13901   ac_status=$?
13902   grep -v '^ *+' conftest.er1 >conftest.err
13903   rm -f conftest.er1
13904   cat conftest.err >&5
13905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906   (exit $ac_status); } && {
13907          test -z "$ac_c_werror_flag" ||
13908          test ! -s conftest.err
13909        } && test -s conftest$ac_exeext &&
13910        $as_test_x conftest$ac_exeext; then
13911   support_ipv6=yes
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916         support_ipv6=no
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13920       conftest$ac_exeext conftest.$ac_ext
13921 fi
13922
13923 if test x$support_ipv6 = xyes; then
13924
13925 cat >>confdefs.h <<\_ACEOF
13926 #define HAVE_IPV6 1
13927 _ACEOF
13928
13929 fi
13930
13931
13932
13933 got_conio="no"
13934 if test x$support_conio = xyes; then
13935    if test "${ac_cv_header_termcap_h+set}" = set; then
13936   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13937 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13938 if test "${ac_cv_header_termcap_h+set}" = set; then
13939   echo $ECHO_N "(cached) $ECHO_C" >&6
13940 fi
13941 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13942 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13943 else
13944   # Is the header compilable?
13945 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13946 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13947 cat >conftest.$ac_ext <<_ACEOF
13948 /* confdefs.h.  */
13949 _ACEOF
13950 cat confdefs.h >>conftest.$ac_ext
13951 cat >>conftest.$ac_ext <<_ACEOF
13952 /* end confdefs.h.  */
13953 $ac_includes_default
13954 #include <termcap.h>
13955 _ACEOF
13956 rm -f conftest.$ac_objext
13957 if { (ac_try="$ac_compile"
13958 case "(($ac_try" in
13959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960   *) ac_try_echo=$ac_try;;
13961 esac
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963   (eval "$ac_compile") 2>conftest.er1
13964   ac_status=$?
13965   grep -v '^ *+' conftest.er1 >conftest.err
13966   rm -f conftest.er1
13967   cat conftest.err >&5
13968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969   (exit $ac_status); } && {
13970          test -z "$ac_c_werror_flag" ||
13971          test ! -s conftest.err
13972        } && test -s conftest.$ac_objext; then
13973   ac_header_compiler=yes
13974 else
13975   echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13977
13978         ac_header_compiler=no
13979 fi
13980
13981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13982 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13983 echo "${ECHO_T}$ac_header_compiler" >&6; }
13984
13985 # Is the header present?
13986 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13987 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13988 cat >conftest.$ac_ext <<_ACEOF
13989 /* confdefs.h.  */
13990 _ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h.  */
13994 #include <termcap.h>
13995 _ACEOF
13996 if { (ac_try="$ac_cpp conftest.$ac_ext"
13997 case "(($ac_try" in
13998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13999   *) ac_try_echo=$ac_try;;
14000 esac
14001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14002   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14003   ac_status=$?
14004   grep -v '^ *+' conftest.er1 >conftest.err
14005   rm -f conftest.er1
14006   cat conftest.err >&5
14007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); } >/dev/null && {
14009          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14010          test ! -s conftest.err
14011        }; then
14012   ac_header_preproc=yes
14013 else
14014   echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14016
14017   ac_header_preproc=no
14018 fi
14019
14020 rm -f conftest.err conftest.$ac_ext
14021 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14022 echo "${ECHO_T}$ac_header_preproc" >&6; }
14023
14024 # So?  What about this header?
14025 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14026   yes:no: )
14027     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14028 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14029     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14030 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14031     ac_header_preproc=yes
14032     ;;
14033   no:yes:* )
14034     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14035 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14036     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14037 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14038     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14039 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14040     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14041 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14042     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14043 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14044     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14045 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14046
14047     ;;
14048 esac
14049 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14050 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14051 if test "${ac_cv_header_termcap_h+set}" = set; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   ac_cv_header_termcap_h=$ac_header_preproc
14055 fi
14056 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14057 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14058
14059 fi
14060 if test $ac_cv_header_termcap_h = yes; then
14061    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14062 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14063 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14064   echo $ECHO_N "(cached) $ECHO_C" >&6
14065 else
14066   ac_check_lib_save_LIBS=$LIBS
14067 LIBS="-ltermcap  $LIBS"
14068 cat >conftest.$ac_ext <<_ACEOF
14069 /* confdefs.h.  */
14070 _ACEOF
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h.  */
14074
14075 /* Override any GCC internal prototype to avoid an error.
14076    Use char because int might match the return type of a GCC
14077    builtin and then its argument prototype would still apply.  */
14078 #ifdef __cplusplus
14079 extern "C"
14080 #endif
14081 char tgetent ();
14082 int
14083 main ()
14084 {
14085 return tgetent ();
14086   ;
14087   return 0;
14088 }
14089 _ACEOF
14090 rm -f conftest.$ac_objext conftest$ac_exeext
14091 if { (ac_try="$ac_link"
14092 case "(($ac_try" in
14093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094   *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097   (eval "$ac_link") 2>conftest.er1
14098   ac_status=$?
14099   grep -v '^ *+' conftest.er1 >conftest.err
14100   rm -f conftest.er1
14101   cat conftest.err >&5
14102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103   (exit $ac_status); } && {
14104          test -z "$ac_c_werror_flag" ||
14105          test ! -s conftest.err
14106        } && test -s conftest$ac_exeext &&
14107        $as_test_x conftest$ac_exeext; then
14108   ac_cv_lib_termcap_tgetent=yes
14109 else
14110   echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.$ac_ext >&5
14112
14113         ac_cv_lib_termcap_tgetent=no
14114 fi
14115
14116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14117       conftest$ac_exeext conftest.$ac_ext
14118 LIBS=$ac_check_lib_save_LIBS
14119 fi
14120 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14121 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14122 if test $ac_cv_lib_termcap_tgetent = yes; then
14123    CONS_LIBS="-ltermcap"
14124          CONS_OBJ="conio.o"
14125          CONS_SRC="conio.c"
14126          got_conio="yes"
14127          support_readline=no
14128
14129 cat >>confdefs.h <<\_ACEOF
14130 #define HAVE_CONIO 1
14131 _ACEOF
14132
14133
14134 else
14135    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14136 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14137 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14138   echo $ECHO_N "(cached) $ECHO_C" >&6
14139 else
14140   ac_check_lib_save_LIBS=$LIBS
14141 LIBS="-lncurses  $LIBS"
14142 cat >conftest.$ac_ext <<_ACEOF
14143 /* confdefs.h.  */
14144 _ACEOF
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h.  */
14148
14149 /* Override any GCC internal prototype to avoid an error.
14150    Use char because int might match the return type of a GCC
14151    builtin and then its argument prototype would still apply.  */
14152 #ifdef __cplusplus
14153 extern "C"
14154 #endif
14155 char tgetent ();
14156 int
14157 main ()
14158 {
14159 return tgetent ();
14160   ;
14161   return 0;
14162 }
14163 _ACEOF
14164 rm -f conftest.$ac_objext conftest$ac_exeext
14165 if { (ac_try="$ac_link"
14166 case "(($ac_try" in
14167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168   *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171   (eval "$ac_link") 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } && {
14178          test -z "$ac_c_werror_flag" ||
14179          test ! -s conftest.err
14180        } && test -s conftest$ac_exeext &&
14181        $as_test_x conftest$ac_exeext; then
14182   ac_cv_lib_ncurses_tgetent=yes
14183 else
14184   echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14186
14187         ac_cv_lib_ncurses_tgetent=no
14188 fi
14189
14190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14191       conftest$ac_exeext conftest.$ac_ext
14192 LIBS=$ac_check_lib_save_LIBS
14193 fi
14194 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14195 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14196 if test $ac_cv_lib_ncurses_tgetent = yes; then
14197    CONS_LIBS="-lncurses"
14198            CONS_OBJ="conio.o"
14199            CONS_SRC="conio.c"
14200            got_conio="yes"
14201            support_readline=no
14202
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_CONIO 1
14205 _ACEOF
14206
14207
14208 fi
14209
14210
14211 fi
14212
14213
14214 else
14215
14216
14217 for ac_header in curses.h
14218 do
14219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14220 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14221   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14224   echo $ECHO_N "(cached) $ECHO_C" >&6
14225 fi
14226 ac_res=`eval echo '${'$as_ac_Header'}'`
14227                { echo "$as_me:$LINENO: result: $ac_res" >&5
14228 echo "${ECHO_T}$ac_res" >&6; }
14229 else
14230   # Is the header compilable?
14231 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14233 cat >conftest.$ac_ext <<_ACEOF
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239 $ac_includes_default
14240 #include <$ac_header>
14241 _ACEOF
14242 rm -f conftest.$ac_objext
14243 if { (ac_try="$ac_compile"
14244 case "(($ac_try" in
14245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14246   *) ac_try_echo=$ac_try;;
14247 esac
14248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14249   (eval "$ac_compile") 2>conftest.er1
14250   ac_status=$?
14251   grep -v '^ *+' conftest.er1 >conftest.err
14252   rm -f conftest.er1
14253   cat conftest.err >&5
14254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255   (exit $ac_status); } && {
14256          test -z "$ac_c_werror_flag" ||
14257          test ! -s conftest.err
14258        } && test -s conftest.$ac_objext; then
14259   ac_header_compiler=yes
14260 else
14261   echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14263
14264         ac_header_compiler=no
14265 fi
14266
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14269 echo "${ECHO_T}$ac_header_compiler" >&6; }
14270
14271 # Is the header present?
14272 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14273 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14274 cat >conftest.$ac_ext <<_ACEOF
14275 /* confdefs.h.  */
14276 _ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h.  */
14280 #include <$ac_header>
14281 _ACEOF
14282 if { (ac_try="$ac_cpp conftest.$ac_ext"
14283 case "(($ac_try" in
14284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285   *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14289   ac_status=$?
14290   grep -v '^ *+' conftest.er1 >conftest.err
14291   rm -f conftest.er1
14292   cat conftest.err >&5
14293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294   (exit $ac_status); } >/dev/null && {
14295          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14296          test ! -s conftest.err
14297        }; then
14298   ac_header_preproc=yes
14299 else
14300   echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14302
14303   ac_header_preproc=no
14304 fi
14305
14306 rm -f conftest.err conftest.$ac_ext
14307 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14308 echo "${ECHO_T}$ac_header_preproc" >&6; }
14309
14310 # So?  What about this header?
14311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14312   yes:no: )
14313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14317     ac_header_preproc=yes
14318     ;;
14319   no:yes:* )
14320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14332
14333     ;;
14334 esac
14335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14338   echo $ECHO_N "(cached) $ECHO_C" >&6
14339 else
14340   eval "$as_ac_Header=\$ac_header_preproc"
14341 fi
14342 ac_res=`eval echo '${'$as_ac_Header'}'`
14343                { echo "$as_me:$LINENO: result: $ac_res" >&5
14344 echo "${ECHO_T}$ac_res" >&6; }
14345
14346 fi
14347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14348   cat >>confdefs.h <<_ACEOF
14349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350 _ACEOF
14351
14352 fi
14353
14354 done
14355
14356          { echo "$as_me:$LINENO: checking for term.h" >&5
14357 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14358 if test "${ac_cv_header_term_h+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   cat >conftest.$ac_ext <<_ACEOF
14362 /* confdefs.h.  */
14363 _ACEOF
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h.  */
14367 #if HAVE_CURSES_H
14368 #include <curses.h>
14369 #endif
14370
14371
14372 #include <term.h>
14373 _ACEOF
14374 rm -f conftest.$ac_objext
14375 if { (ac_try="$ac_compile"
14376 case "(($ac_try" in
14377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14378   *) ac_try_echo=$ac_try;;
14379 esac
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381   (eval "$ac_compile") 2>conftest.er1
14382   ac_status=$?
14383   grep -v '^ *+' conftest.er1 >conftest.err
14384   rm -f conftest.er1
14385   cat conftest.err >&5
14386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387   (exit $ac_status); } && {
14388          test -z "$ac_c_werror_flag" ||
14389          test ! -s conftest.err
14390        } && test -s conftest.$ac_objext; then
14391   ac_cv_header_term_h=yes
14392 else
14393   echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.$ac_ext >&5
14395
14396         ac_cv_header_term_h=no
14397 fi
14398
14399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14400 fi
14401 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14402 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14403 if test $ac_cv_header_term_h = yes; then
14404    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14405 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14406 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14407   echo $ECHO_N "(cached) $ECHO_C" >&6
14408 else
14409   ac_check_lib_save_LIBS=$LIBS
14410 LIBS="-lcurses  $LIBS"
14411 cat >conftest.$ac_ext <<_ACEOF
14412 /* confdefs.h.  */
14413 _ACEOF
14414 cat confdefs.h >>conftest.$ac_ext
14415 cat >>conftest.$ac_ext <<_ACEOF
14416 /* end confdefs.h.  */
14417
14418 /* Override any GCC internal prototype to avoid an error.
14419    Use char because int might match the return type of a GCC
14420    builtin and then its argument prototype would still apply.  */
14421 #ifdef __cplusplus
14422 extern "C"
14423 #endif
14424 char tgetent ();
14425 int
14426 main ()
14427 {
14428 return tgetent ();
14429   ;
14430   return 0;
14431 }
14432 _ACEOF
14433 rm -f conftest.$ac_objext conftest$ac_exeext
14434 if { (ac_try="$ac_link"
14435 case "(($ac_try" in
14436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14437   *) ac_try_echo=$ac_try;;
14438 esac
14439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14440   (eval "$ac_link") 2>conftest.er1
14441   ac_status=$?
14442   grep -v '^ *+' conftest.er1 >conftest.err
14443   rm -f conftest.er1
14444   cat conftest.err >&5
14445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446   (exit $ac_status); } && {
14447          test -z "$ac_c_werror_flag" ||
14448          test ! -s conftest.err
14449        } && test -s conftest$ac_exeext &&
14450        $as_test_x conftest$ac_exeext; then
14451   ac_cv_lib_curses_tgetent=yes
14452 else
14453   echo "$as_me: failed program was:" >&5
14454 sed 's/^/| /' conftest.$ac_ext >&5
14455
14456         ac_cv_lib_curses_tgetent=no
14457 fi
14458
14459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14460       conftest$ac_exeext conftest.$ac_ext
14461 LIBS=$ac_check_lib_save_LIBS
14462 fi
14463 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14464 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14465 if test $ac_cv_lib_curses_tgetent = yes; then
14466    CONS_LIBS="-lcurses"
14467                    CONS_OBJ="conio.o"
14468                    CONS_SRC="conio.c"
14469                    got_conio="yes"
14470                    support_readline=no
14471
14472 cat >>confdefs.h <<\_ACEOF
14473 #define HAVE_CONIO 1
14474 _ACEOF
14475
14476
14477 fi
14478
14479
14480 else
14481    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14482 fi
14483
14484
14485
14486 fi
14487
14488
14489 fi
14490
14491
14492 # ---------------------------------------------------
14493 # Check for readline support/directory (default off)
14494 # ---------------------------------------------------
14495 # this allows you to turn it completely off
14496 # Check whether --enable-readline was given.
14497 if test "${enable_readline+set}" = set; then
14498   enableval=$enable_readline; if test x$enableval = xno; then
14499     support_readline=no
14500   fi
14501 fi
14502
14503
14504 got_readline="no"
14505 READLINE_SRC=
14506 if test x$support_readline = xyes; then
14507
14508 # Check whether --with-readline was given.
14509 if test "${with_readline+set}" = set; then
14510   withval=$with_readline;
14511         case "$with_readline" in
14512         no) : ;;
14513         yes|*)
14514           if test -f ${with_readline}/readline.h; then
14515              CONS_INC="-I${with_readline}"
14516              CONS_LDFLAGS="-L$with_readline"
14517           elif test -f ${with_readline}/include/readline/readline.h; then
14518              CONS_INC="-I${with_readline}/include/readline"
14519              CONS_LDFLAGS="-L${with_readline}/lib"
14520              with_readline="${with_readline}/include/readline"
14521           else
14522              with_readline="/usr/include/readline"
14523           fi
14524           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14526   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14527 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14529   echo $ECHO_N "(cached) $ECHO_C" >&6
14530 fi
14531 ac_res=`eval echo '${'$as_ac_Header'}'`
14532                { echo "$as_me:$LINENO: result: $ac_res" >&5
14533 echo "${ECHO_T}$ac_res" >&6; }
14534 else
14535   # Is the header compilable?
14536 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14537 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14538 cat >conftest.$ac_ext <<_ACEOF
14539 /* confdefs.h.  */
14540 _ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h.  */
14544 $ac_includes_default
14545 #include <${with_readline}/readline.h>
14546 _ACEOF
14547 rm -f conftest.$ac_objext
14548 if { (ac_try="$ac_compile"
14549 case "(($ac_try" in
14550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551   *) ac_try_echo=$ac_try;;
14552 esac
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554   (eval "$ac_compile") 2>conftest.er1
14555   ac_status=$?
14556   grep -v '^ *+' conftest.er1 >conftest.err
14557   rm -f conftest.er1
14558   cat conftest.err >&5
14559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560   (exit $ac_status); } && {
14561          test -z "$ac_c_werror_flag" ||
14562          test ! -s conftest.err
14563        } && test -s conftest.$ac_objext; then
14564   ac_header_compiler=yes
14565 else
14566   echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14568
14569         ac_header_compiler=no
14570 fi
14571
14572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14574 echo "${ECHO_T}$ac_header_compiler" >&6; }
14575
14576 # Is the header present?
14577 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14578 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h.  */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h.  */
14585 #include <${with_readline}/readline.h>
14586 _ACEOF
14587 if { (ac_try="$ac_cpp conftest.$ac_ext"
14588 case "(($ac_try" in
14589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590   *) ac_try_echo=$ac_try;;
14591 esac
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14594   ac_status=$?
14595   grep -v '^ *+' conftest.er1 >conftest.err
14596   rm -f conftest.er1
14597   cat conftest.err >&5
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); } >/dev/null && {
14600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14601          test ! -s conftest.err
14602        }; then
14603   ac_header_preproc=yes
14604 else
14605   echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608   ac_header_preproc=no
14609 fi
14610
14611 rm -f conftest.err conftest.$ac_ext
14612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14613 echo "${ECHO_T}$ac_header_preproc" >&6; }
14614
14615 # So?  What about this header?
14616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14617   yes:no: )
14618     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14619 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14620     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14621 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14622     ac_header_preproc=yes
14623     ;;
14624   no:yes:* )
14625     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14626 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14627     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14628 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14629     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14630 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14631     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14632 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14633     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14634 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14635     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14636 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14637
14638     ;;
14639 esac
14640 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14641 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14643   echo $ECHO_N "(cached) $ECHO_C" >&6
14644 else
14645   eval "$as_ac_Header=\$ac_header_preproc"
14646 fi
14647 ac_res=`eval echo '${'$as_ac_Header'}'`
14648                { echo "$as_me:$LINENO: result: $ac_res" >&5
14649 echo "${ECHO_T}$ac_res" >&6; }
14650
14651 fi
14652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14653
14654 cat >>confdefs.h <<\_ACEOF
14655 #define HAVE_READLINE 1
14656 _ACEOF
14657
14658                CONS_LIBS="-lreadline -lhistory -ltermcap"
14659                got_readline="yes"
14660
14661 else
14662    echo " "
14663                echo "readline.h not found. readline turned off ..."
14664                echo " "
14665
14666
14667 fi
14668
14669
14670           ;;
14671         esac
14672
14673 else
14674
14675        # check for standard readline library
14676        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14677   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14678 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14679 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14680   echo $ECHO_N "(cached) $ECHO_C" >&6
14681 fi
14682 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14683 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14684 else
14685   # Is the header compilable?
14686 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14687 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14688 cat >conftest.$ac_ext <<_ACEOF
14689 /* confdefs.h.  */
14690 _ACEOF
14691 cat confdefs.h >>conftest.$ac_ext
14692 cat >>conftest.$ac_ext <<_ACEOF
14693 /* end confdefs.h.  */
14694 $ac_includes_default
14695 #include </usr/include/readline/readline.h>
14696 _ACEOF
14697 rm -f conftest.$ac_objext
14698 if { (ac_try="$ac_compile"
14699 case "(($ac_try" in
14700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14701   *) ac_try_echo=$ac_try;;
14702 esac
14703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14704   (eval "$ac_compile") 2>conftest.er1
14705   ac_status=$?
14706   grep -v '^ *+' conftest.er1 >conftest.err
14707   rm -f conftest.er1
14708   cat conftest.err >&5
14709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14710   (exit $ac_status); } && {
14711          test -z "$ac_c_werror_flag" ||
14712          test ! -s conftest.err
14713        } && test -s conftest.$ac_objext; then
14714   ac_header_compiler=yes
14715 else
14716   echo "$as_me: failed program was:" >&5
14717 sed 's/^/| /' conftest.$ac_ext >&5
14718
14719         ac_header_compiler=no
14720 fi
14721
14722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14724 echo "${ECHO_T}$ac_header_compiler" >&6; }
14725
14726 # Is the header present?
14727 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14728 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14729 cat >conftest.$ac_ext <<_ACEOF
14730 /* confdefs.h.  */
14731 _ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h.  */
14735 #include </usr/include/readline/readline.h>
14736 _ACEOF
14737 if { (ac_try="$ac_cpp conftest.$ac_ext"
14738 case "(($ac_try" in
14739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14740   *) ac_try_echo=$ac_try;;
14741 esac
14742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14744   ac_status=$?
14745   grep -v '^ *+' conftest.er1 >conftest.err
14746   rm -f conftest.er1
14747   cat conftest.err >&5
14748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749   (exit $ac_status); } >/dev/null && {
14750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14751          test ! -s conftest.err
14752        }; then
14753   ac_header_preproc=yes
14754 else
14755   echo "$as_me: failed program was:" >&5
14756 sed 's/^/| /' conftest.$ac_ext >&5
14757
14758   ac_header_preproc=no
14759 fi
14760
14761 rm -f conftest.err conftest.$ac_ext
14762 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14763 echo "${ECHO_T}$ac_header_preproc" >&6; }
14764
14765 # So?  What about this header?
14766 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14767   yes:no: )
14768     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14769 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14770     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14771 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14772     ac_header_preproc=yes
14773     ;;
14774   no:yes:* )
14775     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14776 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14777     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14778 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14779     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14780 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14781     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14782 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14783     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14784 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14785     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14786 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14787
14788     ;;
14789 esac
14790 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14791 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14792 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14793   echo $ECHO_N "(cached) $ECHO_C" >&6
14794 else
14795   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14796 fi
14797 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14798 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14799
14800 fi
14801 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14802
14803 cat >>confdefs.h <<\_ACEOF
14804 #define HAVE_READLINE 1
14805 _ACEOF
14806
14807            got_readline="yes"
14808            CONS_INC="-I/usr/include/readline"
14809            CONS_LIBS="-lreadline -ltermcap"
14810
14811 else
14812
14813            # Did not find standard library, so try Bacula's default
14814             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14817 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14819   echo $ECHO_N "(cached) $ECHO_C" >&6
14820 fi
14821 ac_res=`eval echo '${'$as_ac_Header'}'`
14822                { echo "$as_me:$LINENO: result: $ac_res" >&5
14823 echo "${ECHO_T}$ac_res" >&6; }
14824 else
14825   # Is the header compilable?
14826 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14827 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14828 cat >conftest.$ac_ext <<_ACEOF
14829 /* confdefs.h.  */
14830 _ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h.  */
14834 $ac_includes_default
14835 #include <${TOP_DIR}/depkgs/readline/readline.h>
14836 _ACEOF
14837 rm -f conftest.$ac_objext
14838 if { (ac_try="$ac_compile"
14839 case "(($ac_try" in
14840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841   *) ac_try_echo=$ac_try;;
14842 esac
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844   (eval "$ac_compile") 2>conftest.er1
14845   ac_status=$?
14846   grep -v '^ *+' conftest.er1 >conftest.err
14847   rm -f conftest.er1
14848   cat conftest.err >&5
14849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850   (exit $ac_status); } && {
14851          test -z "$ac_c_werror_flag" ||
14852          test ! -s conftest.err
14853        } && test -s conftest.$ac_objext; then
14854   ac_header_compiler=yes
14855 else
14856   echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14858
14859         ac_header_compiler=no
14860 fi
14861
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14864 echo "${ECHO_T}$ac_header_compiler" >&6; }
14865
14866 # Is the header present?
14867 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14868 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14869 cat >conftest.$ac_ext <<_ACEOF
14870 /* confdefs.h.  */
14871 _ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h.  */
14875 #include <${TOP_DIR}/depkgs/readline/readline.h>
14876 _ACEOF
14877 if { (ac_try="$ac_cpp conftest.$ac_ext"
14878 case "(($ac_try" in
14879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14880   *) ac_try_echo=$ac_try;;
14881 esac
14882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14883   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14884   ac_status=$?
14885   grep -v '^ *+' conftest.er1 >conftest.err
14886   rm -f conftest.er1
14887   cat conftest.err >&5
14888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14889   (exit $ac_status); } >/dev/null && {
14890          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14891          test ! -s conftest.err
14892        }; then
14893   ac_header_preproc=yes
14894 else
14895   echo "$as_me: failed program was:" >&5
14896 sed 's/^/| /' conftest.$ac_ext >&5
14897
14898   ac_header_preproc=no
14899 fi
14900
14901 rm -f conftest.err conftest.$ac_ext
14902 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14903 echo "${ECHO_T}$ac_header_preproc" >&6; }
14904
14905 # So?  What about this header?
14906 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14907   yes:no: )
14908     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14909 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14910     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14911 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14912     ac_header_preproc=yes
14913     ;;
14914   no:yes:* )
14915     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14916 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14917     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14918 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14919     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14920 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14921     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14922 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14923     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14924 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14925     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14926 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14927
14928     ;;
14929 esac
14930 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14931 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   eval "$as_ac_Header=\$ac_header_preproc"
14936 fi
14937 ac_res=`eval echo '${'$as_ac_Header'}'`
14938                { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940
14941 fi
14942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14943
14944 cat >>confdefs.h <<\_ACEOF
14945 #define HAVE_READLINE 1
14946 _ACEOF
14947
14948                  got_readline="yes"
14949                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14950                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14951                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14952                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14953
14954 else
14955    echo " "
14956                 echo "readline.h not found. readline turned off ..."
14957                 echo " "
14958
14959
14960 fi
14961
14962
14963
14964
14965 fi
14966
14967
14968
14969
14970 fi
14971
14972 fi
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983 # Minimal stuff for readline Makefile configuration
14984 MAKE_SHELL=/bin/sh
14985
14986 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14987 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14988 if test "${ac_cv_header_stat_broken+set}" = set; then
14989   echo $ECHO_N "(cached) $ECHO_C" >&6
14990 else
14991   cat >conftest.$ac_ext <<_ACEOF
14992 /* confdefs.h.  */
14993 _ACEOF
14994 cat confdefs.h >>conftest.$ac_ext
14995 cat >>conftest.$ac_ext <<_ACEOF
14996 /* end confdefs.h.  */
14997 #include <sys/types.h>
14998 #include <sys/stat.h>
14999
15000 #if defined S_ISBLK && defined S_IFDIR
15001 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
15002 #endif
15003
15004 #if defined S_ISBLK && defined S_IFCHR
15005 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
15006 #endif
15007
15008 #if defined S_ISLNK && defined S_IFREG
15009 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
15010 #endif
15011
15012 #if defined S_ISSOCK && defined S_IFREG
15013 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
15014 #endif
15015
15016 _ACEOF
15017 rm -f conftest.$ac_objext
15018 if { (ac_try="$ac_compile"
15019 case "(($ac_try" in
15020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15021   *) ac_try_echo=$ac_try;;
15022 esac
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024   (eval "$ac_compile") 2>conftest.er1
15025   ac_status=$?
15026   grep -v '^ *+' conftest.er1 >conftest.err
15027   rm -f conftest.er1
15028   cat conftest.err >&5
15029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030   (exit $ac_status); } && {
15031          test -z "$ac_c_werror_flag" ||
15032          test ! -s conftest.err
15033        } && test -s conftest.$ac_objext; then
15034   ac_cv_header_stat_broken=no
15035 else
15036   echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15038
15039         ac_cv_header_stat_broken=yes
15040 fi
15041
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15043 fi
15044 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15045 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15046 if test $ac_cv_header_stat_broken = yes; then
15047
15048 cat >>confdefs.h <<\_ACEOF
15049 #define STAT_MACROS_BROKEN 1
15050 _ACEOF
15051
15052 fi
15053
15054
15055
15056
15057
15058
15059 ac_header_dirent=no
15060 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15061   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15062 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15063 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15065   echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067   cat >conftest.$ac_ext <<_ACEOF
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 #include <sys/types.h>
15074 #include <$ac_hdr>
15075
15076 int
15077 main ()
15078 {
15079 if ((DIR *) 0)
15080 return 0;
15081   ;
15082   return 0;
15083 }
15084 _ACEOF
15085 rm -f conftest.$ac_objext
15086 if { (ac_try="$ac_compile"
15087 case "(($ac_try" in
15088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15089   *) ac_try_echo=$ac_try;;
15090 esac
15091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15092   (eval "$ac_compile") 2>conftest.er1
15093   ac_status=$?
15094   grep -v '^ *+' conftest.er1 >conftest.err
15095   rm -f conftest.er1
15096   cat conftest.err >&5
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); } && {
15099          test -z "$ac_c_werror_flag" ||
15100          test ! -s conftest.err
15101        } && test -s conftest.$ac_objext; then
15102   eval "$as_ac_Header=yes"
15103 else
15104   echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107         eval "$as_ac_Header=no"
15108 fi
15109
15110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111 fi
15112 ac_res=`eval echo '${'$as_ac_Header'}'`
15113                { echo "$as_me:$LINENO: result: $ac_res" >&5
15114 echo "${ECHO_T}$ac_res" >&6; }
15115 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15116   cat >>confdefs.h <<_ACEOF
15117 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15118 _ACEOF
15119
15120 ac_header_dirent=$ac_hdr; break
15121 fi
15122
15123 done
15124 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15125 if test $ac_header_dirent = dirent.h; then
15126   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15127 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15128 if test "${ac_cv_search_opendir+set}" = set; then
15129   echo $ECHO_N "(cached) $ECHO_C" >&6
15130 else
15131   ac_func_search_save_LIBS=$LIBS
15132 cat >conftest.$ac_ext <<_ACEOF
15133 /* confdefs.h.  */
15134 _ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h.  */
15138
15139 /* Override any GCC internal prototype to avoid an error.
15140    Use char because int might match the return type of a GCC
15141    builtin and then its argument prototype would still apply.  */
15142 #ifdef __cplusplus
15143 extern "C"
15144 #endif
15145 char opendir ();
15146 int
15147 main ()
15148 {
15149 return opendir ();
15150   ;
15151   return 0;
15152 }
15153 _ACEOF
15154 for ac_lib in '' dir; do
15155   if test -z "$ac_lib"; then
15156     ac_res="none required"
15157   else
15158     ac_res=-l$ac_lib
15159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15160   fi
15161   rm -f conftest.$ac_objext conftest$ac_exeext
15162 if { (ac_try="$ac_link"
15163 case "(($ac_try" in
15164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15165   *) ac_try_echo=$ac_try;;
15166 esac
15167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15168   (eval "$ac_link") 2>conftest.er1
15169   ac_status=$?
15170   grep -v '^ *+' conftest.er1 >conftest.err
15171   rm -f conftest.er1
15172   cat conftest.err >&5
15173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174   (exit $ac_status); } && {
15175          test -z "$ac_c_werror_flag" ||
15176          test ! -s conftest.err
15177        } && test -s conftest$ac_exeext &&
15178        $as_test_x conftest$ac_exeext; then
15179   ac_cv_search_opendir=$ac_res
15180 else
15181   echo "$as_me: failed program was:" >&5
15182 sed 's/^/| /' conftest.$ac_ext >&5
15183
15184
15185 fi
15186
15187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15188       conftest$ac_exeext
15189   if test "${ac_cv_search_opendir+set}" = set; then
15190   break
15191 fi
15192 done
15193 if test "${ac_cv_search_opendir+set}" = set; then
15194   :
15195 else
15196   ac_cv_search_opendir=no
15197 fi
15198 rm conftest.$ac_ext
15199 LIBS=$ac_func_search_save_LIBS
15200 fi
15201 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15202 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15203 ac_res=$ac_cv_search_opendir
15204 if test "$ac_res" != no; then
15205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15206
15207 fi
15208
15209 else
15210   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15211 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15212 if test "${ac_cv_search_opendir+set}" = set; then
15213   echo $ECHO_N "(cached) $ECHO_C" >&6
15214 else
15215   ac_func_search_save_LIBS=$LIBS
15216 cat >conftest.$ac_ext <<_ACEOF
15217 /* confdefs.h.  */
15218 _ACEOF
15219 cat confdefs.h >>conftest.$ac_ext
15220 cat >>conftest.$ac_ext <<_ACEOF
15221 /* end confdefs.h.  */
15222
15223 /* Override any GCC internal prototype to avoid an error.
15224    Use char because int might match the return type of a GCC
15225    builtin and then its argument prototype would still apply.  */
15226 #ifdef __cplusplus
15227 extern "C"
15228 #endif
15229 char opendir ();
15230 int
15231 main ()
15232 {
15233 return opendir ();
15234   ;
15235   return 0;
15236 }
15237 _ACEOF
15238 for ac_lib in '' x; do
15239   if test -z "$ac_lib"; then
15240     ac_res="none required"
15241   else
15242     ac_res=-l$ac_lib
15243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15244   fi
15245   rm -f conftest.$ac_objext conftest$ac_exeext
15246 if { (ac_try="$ac_link"
15247 case "(($ac_try" in
15248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249   *) ac_try_echo=$ac_try;;
15250 esac
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252   (eval "$ac_link") 2>conftest.er1
15253   ac_status=$?
15254   grep -v '^ *+' conftest.er1 >conftest.err
15255   rm -f conftest.er1
15256   cat conftest.err >&5
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); } && {
15259          test -z "$ac_c_werror_flag" ||
15260          test ! -s conftest.err
15261        } && test -s conftest$ac_exeext &&
15262        $as_test_x conftest$ac_exeext; then
15263   ac_cv_search_opendir=$ac_res
15264 else
15265   echo "$as_me: failed program was:" >&5
15266 sed 's/^/| /' conftest.$ac_ext >&5
15267
15268
15269 fi
15270
15271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15272       conftest$ac_exeext
15273   if test "${ac_cv_search_opendir+set}" = set; then
15274   break
15275 fi
15276 done
15277 if test "${ac_cv_search_opendir+set}" = set; then
15278   :
15279 else
15280   ac_cv_search_opendir=no
15281 fi
15282 rm conftest.$ac_ext
15283 LIBS=$ac_func_search_save_LIBS
15284 fi
15285 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15286 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15287 ac_res=$ac_cv_search_opendir
15288 if test "$ac_res" != no; then
15289   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15290
15291 fi
15292
15293 fi
15294
15295
15296
15297
15298
15299
15300
15301
15302 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15303 do
15304 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15305 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15306 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15307 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15308   echo $ECHO_N "(cached) $ECHO_C" >&6
15309 else
15310   cat >conftest.$ac_ext <<_ACEOF
15311 /* confdefs.h.  */
15312 _ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h.  */
15316 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15317    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15318 #define $ac_func innocuous_$ac_func
15319
15320 /* System header to define __stub macros and hopefully few prototypes,
15321     which can conflict with char $ac_func (); below.
15322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15323     <limits.h> exists even on freestanding compilers.  */
15324
15325 #ifdef __STDC__
15326 # include <limits.h>
15327 #else
15328 # include <assert.h>
15329 #endif
15330
15331 #undef $ac_func
15332
15333 /* Override any GCC internal prototype to avoid an error.
15334    Use char because int might match the return type of a GCC
15335    builtin and then its argument prototype would still apply.  */
15336 #ifdef __cplusplus
15337 extern "C"
15338 #endif
15339 char $ac_func ();
15340 /* The GNU C library defines this for functions which it implements
15341     to always fail with ENOSYS.  Some functions are actually named
15342     something starting with __ and the normal name is an alias.  */
15343 #if defined __stub_$ac_func || defined __stub___$ac_func
15344 choke me
15345 #endif
15346
15347 int
15348 main ()
15349 {
15350 return $ac_func ();
15351   ;
15352   return 0;
15353 }
15354 _ACEOF
15355 rm -f conftest.$ac_objext conftest$ac_exeext
15356 if { (ac_try="$ac_link"
15357 case "(($ac_try" in
15358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359   *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362   (eval "$ac_link") 2>conftest.er1
15363   ac_status=$?
15364   grep -v '^ *+' conftest.er1 >conftest.err
15365   rm -f conftest.er1
15366   cat conftest.err >&5
15367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368   (exit $ac_status); } && {
15369          test -z "$ac_c_werror_flag" ||
15370          test ! -s conftest.err
15371        } && test -s conftest$ac_exeext &&
15372        $as_test_x conftest$ac_exeext; then
15373   eval "$as_ac_var=yes"
15374 else
15375   echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15377
15378         eval "$as_ac_var=no"
15379 fi
15380
15381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15382       conftest$ac_exeext conftest.$ac_ext
15383 fi
15384 ac_res=`eval echo '${'$as_ac_var'}'`
15385                { echo "$as_me:$LINENO: result: $ac_res" >&5
15386 echo "${ECHO_T}$ac_res" >&6; }
15387 if test `eval echo '${'$as_ac_var'}'` = yes; then
15388   cat >>confdefs.h <<_ACEOF
15389 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15390 _ACEOF
15391
15392 fi
15393 done
15394
15395
15396
15397 for ac_func in nanosleep nl_langinfo
15398 do
15399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15403   echo $ECHO_N "(cached) $ECHO_C" >&6
15404 else
15405   cat >conftest.$ac_ext <<_ACEOF
15406 /* confdefs.h.  */
15407 _ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h.  */
15411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15412    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15413 #define $ac_func innocuous_$ac_func
15414
15415 /* System header to define __stub macros and hopefully few prototypes,
15416     which can conflict with char $ac_func (); below.
15417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15418     <limits.h> exists even on freestanding compilers.  */
15419
15420 #ifdef __STDC__
15421 # include <limits.h>
15422 #else
15423 # include <assert.h>
15424 #endif
15425
15426 #undef $ac_func
15427
15428 /* Override any GCC internal prototype to avoid an error.
15429    Use char because int might match the return type of a GCC
15430    builtin and then its argument prototype would still apply.  */
15431 #ifdef __cplusplus
15432 extern "C"
15433 #endif
15434 char $ac_func ();
15435 /* The GNU C library defines this for functions which it implements
15436     to always fail with ENOSYS.  Some functions are actually named
15437     something starting with __ and the normal name is an alias.  */
15438 #if defined __stub_$ac_func || defined __stub___$ac_func
15439 choke me
15440 #endif
15441
15442 int
15443 main ()
15444 {
15445 return $ac_func ();
15446   ;
15447   return 0;
15448 }
15449 _ACEOF
15450 rm -f conftest.$ac_objext conftest$ac_exeext
15451 if { (ac_try="$ac_link"
15452 case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_link") 2>conftest.er1
15458   ac_status=$?
15459   grep -v '^ *+' conftest.er1 >conftest.err
15460   rm -f conftest.er1
15461   cat conftest.err >&5
15462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463   (exit $ac_status); } && {
15464          test -z "$ac_c_werror_flag" ||
15465          test ! -s conftest.err
15466        } && test -s conftest$ac_exeext &&
15467        $as_test_x conftest$ac_exeext; then
15468   eval "$as_ac_var=yes"
15469 else
15470   echo "$as_me: failed program was:" >&5
15471 sed 's/^/| /' conftest.$ac_ext >&5
15472
15473         eval "$as_ac_var=no"
15474 fi
15475
15476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15477       conftest$ac_exeext conftest.$ac_ext
15478 fi
15479 ac_res=`eval echo '${'$as_ac_var'}'`
15480                { echo "$as_me:$LINENO: result: $ac_res" >&5
15481 echo "${ECHO_T}$ac_res" >&6; }
15482 if test `eval echo '${'$as_ac_var'}'` = yes; then
15483   cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15485 _ACEOF
15486
15487 fi
15488 done
15489
15490
15491 for ac_header in varargs.h
15492 do
15493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15495   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15498   echo $ECHO_N "(cached) $ECHO_C" >&6
15499 fi
15500 ac_res=`eval echo '${'$as_ac_Header'}'`
15501                { echo "$as_me:$LINENO: result: $ac_res" >&5
15502 echo "${ECHO_T}$ac_res" >&6; }
15503 else
15504   # Is the header compilable?
15505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15507 cat >conftest.$ac_ext <<_ACEOF
15508 /* confdefs.h.  */
15509 _ACEOF
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h.  */
15513 $ac_includes_default
15514 #include <$ac_header>
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_compile") 2>conftest.er1
15524   ac_status=$?
15525   grep -v '^ *+' conftest.er1 >conftest.err
15526   rm -f conftest.er1
15527   cat conftest.err >&5
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } && {
15530          test -z "$ac_c_werror_flag" ||
15531          test ! -s conftest.err
15532        } && test -s conftest.$ac_objext; then
15533   ac_header_compiler=yes
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538         ac_header_compiler=no
15539 fi
15540
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15543 echo "${ECHO_T}$ac_header_compiler" >&6; }
15544
15545 # Is the header present?
15546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15548 cat >conftest.$ac_ext <<_ACEOF
15549 /* confdefs.h.  */
15550 _ACEOF
15551 cat confdefs.h >>conftest.$ac_ext
15552 cat >>conftest.$ac_ext <<_ACEOF
15553 /* end confdefs.h.  */
15554 #include <$ac_header>
15555 _ACEOF
15556 if { (ac_try="$ac_cpp conftest.$ac_ext"
15557 case "(($ac_try" in
15558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559   *) ac_try_echo=$ac_try;;
15560 esac
15561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15563   ac_status=$?
15564   grep -v '^ *+' conftest.er1 >conftest.err
15565   rm -f conftest.er1
15566   cat conftest.err >&5
15567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568   (exit $ac_status); } >/dev/null && {
15569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15570          test ! -s conftest.err
15571        }; then
15572   ac_header_preproc=yes
15573 else
15574   echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15576
15577   ac_header_preproc=no
15578 fi
15579
15580 rm -f conftest.err conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15582 echo "${ECHO_T}$ac_header_preproc" >&6; }
15583
15584 # So?  What about this header?
15585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15586   yes:no: )
15587     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15589     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15591     ac_header_preproc=yes
15592     ;;
15593   no:yes:* )
15594     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15596     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15597 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15598     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15600     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15601 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15602     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15604     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15606
15607     ;;
15608 esac
15609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15612   echo $ECHO_N "(cached) $ECHO_C" >&6
15613 else
15614   eval "$as_ac_Header=\$ac_header_preproc"
15615 fi
15616 ac_res=`eval echo '${'$as_ac_Header'}'`
15617                { echo "$as_me:$LINENO: result: $ac_res" >&5
15618 echo "${ECHO_T}$ac_res" >&6; }
15619
15620 fi
15621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15622   cat >>confdefs.h <<_ACEOF
15623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15624 _ACEOF
15625
15626 fi
15627
15628 done
15629
15630
15631 # End of readline/conio stuff
15632 # -----------------------------------------------------------------------
15633
15634 # -----------------------------------------------------------------------
15635 #  Check for Python support
15636 #
15637 { echo "$as_me:$LINENO: checking for Python support" >&5
15638 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15639
15640 # Check whether --with-python was given.
15641 if test "${with_python+set}" = set; then
15642   withval=$with_python;
15643   PYTHON_INCDIR=
15644   PYTHON_LIBS=
15645   if test "$withval" != "no"; then
15646      if test "$withval" = "yes"; then
15647         for python_root in /usr /usr/local /usr/sfw; do
15648           for ver in python2.2 python2.3 python2.4 python2.5; do
15649              if test -f $python_root/include/${ver}/Python.h; then
15650                 PYTHON_INCDIR=-I$python_root/include/${ver}
15651                 if test -d $python_root/lib64/${ver}/config; then
15652                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15653                 else
15654                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15655                 fi
15656                 break
15657              fi
15658           done
15659         done
15660         if test x$PYTHON_INCDIR = x; then
15661           if test -f $prefix/include/Python.h; then
15662              PYTHON_INCDIR=-I$prefix/include
15663              if test -d $prefix/lib64/config; then
15664                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15665              else
15666                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15667              fi
15668           else
15669            { echo "$as_me:$LINENO: result: no" >&5
15670 echo "${ECHO_T}no" >&6; }
15671            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15672 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15673    { (exit 1); exit 1; }; }
15674           fi
15675         fi
15676      else
15677         if test -f $withval/Python.h; then
15678            PYTHON_INCDIR=-I$withval
15679            PYTHON_LIBS="-L$withval/config -lpython"
15680         elif test -f $withval/include/Python.h; then
15681            PYTHON_INCDIR=-I$withval/include
15682            if test -d $withval/lib64/config; then
15683               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15684            else
15685               PYTHON_LIBS="-L$withval/lib/config -lpython"
15686            fi
15687         elif test -f $withval/include/python/Python.h; then
15688            PYTHON_INCDIR=-I$withval/include/python
15689            if test -d $withval/lib64/python/config; then
15690               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15691            else
15692               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15693            fi
15694         else
15695            { echo "$as_me:$LINENO: result: no" >&5
15696 echo "${ECHO_T}no" >&6; }
15697            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15698 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15699    { (exit 1); exit 1; }; }
15700         fi
15701      fi
15702      cat >>confdefs.h <<\_ACEOF
15703 #define HAVE_PYTHON 1
15704 _ACEOF
15705
15706      { echo "$as_me:$LINENO: result: yes" >&5
15707 echo "${ECHO_T}yes" >&6; }
15708      support_python=yes
15709      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15710 echo "$as_me: checking for more Python libs" >&6;}
15711      saved_LIBS="$LIBS"; LIBS=
15712      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15713 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15714 if test "${ac_cv_search_shm_open+set}" = set; then
15715   echo $ECHO_N "(cached) $ECHO_C" >&6
15716 else
15717   ac_func_search_save_LIBS=$LIBS
15718 cat >conftest.$ac_ext <<_ACEOF
15719 /* confdefs.h.  */
15720 _ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h.  */
15724
15725 /* Override any GCC internal prototype to avoid an error.
15726    Use char because int might match the return type of a GCC
15727    builtin and then its argument prototype would still apply.  */
15728 #ifdef __cplusplus
15729 extern "C"
15730 #endif
15731 char shm_open ();
15732 int
15733 main ()
15734 {
15735 return shm_open ();
15736   ;
15737   return 0;
15738 }
15739 _ACEOF
15740 for ac_lib in '' rt; do
15741   if test -z "$ac_lib"; then
15742     ac_res="none required"
15743   else
15744     ac_res=-l$ac_lib
15745     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15746   fi
15747   rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754   (eval "$ac_link") 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } && {
15761          test -z "$ac_c_werror_flag" ||
15762          test ! -s conftest.err
15763        } && test -s conftest$ac_exeext &&
15764        $as_test_x conftest$ac_exeext; then
15765   ac_cv_search_shm_open=$ac_res
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774       conftest$ac_exeext
15775   if test "${ac_cv_search_shm_open+set}" = set; then
15776   break
15777 fi
15778 done
15779 if test "${ac_cv_search_shm_open+set}" = set; then
15780   :
15781 else
15782   ac_cv_search_shm_open=no
15783 fi
15784 rm conftest.$ac_ext
15785 LIBS=$ac_func_search_save_LIBS
15786 fi
15787 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15788 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15789 ac_res=$ac_cv_search_shm_open
15790 if test "$ac_res" != no; then
15791   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15792
15793 fi
15794
15795
15796 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15797 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15798 if test "${ac_cv_lib_util_openpty+set}" = set; then
15799   echo $ECHO_N "(cached) $ECHO_C" >&6
15800 else
15801   ac_check_lib_save_LIBS=$LIBS
15802 LIBS="-lutil  $LIBS"
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809
15810 /* Override any GCC internal prototype to avoid an error.
15811    Use char because int might match the return type of a GCC
15812    builtin and then its argument prototype would still apply.  */
15813 #ifdef __cplusplus
15814 extern "C"
15815 #endif
15816 char openpty ();
15817 int
15818 main ()
15819 {
15820 return openpty ();
15821   ;
15822   return 0;
15823 }
15824 _ACEOF
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (ac_try="$ac_link"
15827 case "(($ac_try" in
15828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829   *) ac_try_echo=$ac_try;;
15830 esac
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832   (eval "$ac_link") 2>conftest.er1
15833   ac_status=$?
15834   grep -v '^ *+' conftest.er1 >conftest.err
15835   rm -f conftest.er1
15836   cat conftest.err >&5
15837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838   (exit $ac_status); } && {
15839          test -z "$ac_c_werror_flag" ||
15840          test ! -s conftest.err
15841        } && test -s conftest$ac_exeext &&
15842        $as_test_x conftest$ac_exeext; then
15843   ac_cv_lib_util_openpty=yes
15844 else
15845   echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848         ac_cv_lib_util_openpty=no
15849 fi
15850
15851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15852       conftest$ac_exeext conftest.$ac_ext
15853 LIBS=$ac_check_lib_save_LIBS
15854 fi
15855 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15856 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15857 if test $ac_cv_lib_util_openpty = yes; then
15858   cat >>confdefs.h <<_ACEOF
15859 #define HAVE_LIBUTIL 1
15860 _ACEOF
15861
15862   LIBS="-lutil $LIBS"
15863
15864 fi
15865
15866      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15867      LIBS="$saved_LIBS"
15868   else
15869      { echo "$as_me:$LINENO: result: no" >&5
15870 echo "${ECHO_T}no" >&6; }
15871   fi
15872
15873 else
15874
15875   { echo "$as_me:$LINENO: result: no" >&5
15876 echo "${ECHO_T}no" >&6; }
15877
15878 fi
15879
15880
15881
15882
15883 #
15884 # Find where sockets are (especially for Solaris)
15885 # Do this before the TCP Wrappers test since tcp wrappers
15886 # uses the socket library and some linkers are stupid.
15887 #
15888 { echo "$as_me:$LINENO: checking for socket" >&5
15889 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15890 if test "${ac_cv_func_socket+set}" = set; then
15891   echo $ECHO_N "(cached) $ECHO_C" >&6
15892 else
15893   cat >conftest.$ac_ext <<_ACEOF
15894 /* confdefs.h.  */
15895 _ACEOF
15896 cat confdefs.h >>conftest.$ac_ext
15897 cat >>conftest.$ac_ext <<_ACEOF
15898 /* end confdefs.h.  */
15899 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15901 #define socket innocuous_socket
15902
15903 /* System header to define __stub macros and hopefully few prototypes,
15904     which can conflict with char socket (); below.
15905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15906     <limits.h> exists even on freestanding compilers.  */
15907
15908 #ifdef __STDC__
15909 # include <limits.h>
15910 #else
15911 # include <assert.h>
15912 #endif
15913
15914 #undef socket
15915
15916 /* Override any GCC internal prototype to avoid an error.
15917    Use char because int might match the return type of a GCC
15918    builtin and then its argument prototype would still apply.  */
15919 #ifdef __cplusplus
15920 extern "C"
15921 #endif
15922 char socket ();
15923 /* The GNU C library defines this for functions which it implements
15924     to always fail with ENOSYS.  Some functions are actually named
15925     something starting with __ and the normal name is an alias.  */
15926 #if defined __stub_socket || defined __stub___socket
15927 choke me
15928 #endif
15929
15930 int
15931 main ()
15932 {
15933 return socket ();
15934   ;
15935   return 0;
15936 }
15937 _ACEOF
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (ac_try="$ac_link"
15940 case "(($ac_try" in
15941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942   *) ac_try_echo=$ac_try;;
15943 esac
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945   (eval "$ac_link") 2>conftest.er1
15946   ac_status=$?
15947   grep -v '^ *+' conftest.er1 >conftest.err
15948   rm -f conftest.er1
15949   cat conftest.err >&5
15950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951   (exit $ac_status); } && {
15952          test -z "$ac_c_werror_flag" ||
15953          test ! -s conftest.err
15954        } && test -s conftest$ac_exeext &&
15955        $as_test_x conftest$ac_exeext; then
15956   ac_cv_func_socket=yes
15957 else
15958   echo "$as_me: failed program was:" >&5
15959 sed 's/^/| /' conftest.$ac_ext >&5
15960
15961         ac_cv_func_socket=no
15962 fi
15963
15964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15965       conftest$ac_exeext conftest.$ac_ext
15966 fi
15967 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15968 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15969 if test $ac_cv_func_socket = yes; then
15970   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15971 echo "${ECHO_T}using libc's socket" >&6; }
15972 else
15973
15974 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15975 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15976 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15977   echo $ECHO_N "(cached) $ECHO_C" >&6
15978 else
15979   ac_check_lib_save_LIBS=$LIBS
15980 LIBS="-lxnet  $LIBS"
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h.  */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h.  */
15987
15988 /* Override any GCC internal prototype to avoid an error.
15989    Use char because int might match the return type of a GCC
15990    builtin and then its argument prototype would still apply.  */
15991 #ifdef __cplusplus
15992 extern "C"
15993 #endif
15994 char socket ();
15995 int
15996 main ()
15997 {
15998 return socket ();
15999   ;
16000   return 0;
16001 }
16002 _ACEOF
16003 rm -f conftest.$ac_objext conftest$ac_exeext
16004 if { (ac_try="$ac_link"
16005 case "(($ac_try" in
16006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007   *) ac_try_echo=$ac_try;;
16008 esac
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010   (eval "$ac_link") 2>conftest.er1
16011   ac_status=$?
16012   grep -v '^ *+' conftest.er1 >conftest.err
16013   rm -f conftest.er1
16014   cat conftest.err >&5
16015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016   (exit $ac_status); } && {
16017          test -z "$ac_c_werror_flag" ||
16018          test ! -s conftest.err
16019        } && test -s conftest$ac_exeext &&
16020        $as_test_x conftest$ac_exeext; then
16021   ac_cv_lib_xnet_socket=yes
16022 else
16023   echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16025
16026         ac_cv_lib_xnet_socket=no
16027 fi
16028
16029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16030       conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16032 fi
16033 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16034 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16035 if test $ac_cv_lib_xnet_socket = yes; then
16036   cat >>confdefs.h <<_ACEOF
16037 #define HAVE_LIBXNET 1
16038 _ACEOF
16039
16040   LIBS="-lxnet $LIBS"
16041
16042 fi
16043
16044
16045 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16046 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16047 if test "${ac_cv_lib_socket_socket+set}" = set; then
16048   echo $ECHO_N "(cached) $ECHO_C" >&6
16049 else
16050   ac_check_lib_save_LIBS=$LIBS
16051 LIBS="-lsocket  $LIBS"
16052 cat >conftest.$ac_ext <<_ACEOF
16053 /* confdefs.h.  */
16054 _ACEOF
16055 cat confdefs.h >>conftest.$ac_ext
16056 cat >>conftest.$ac_ext <<_ACEOF
16057 /* end confdefs.h.  */
16058
16059 /* Override any GCC internal prototype to avoid an error.
16060    Use char because int might match the return type of a GCC
16061    builtin and then its argument prototype would still apply.  */
16062 #ifdef __cplusplus
16063 extern "C"
16064 #endif
16065 char socket ();
16066 int
16067 main ()
16068 {
16069 return socket ();
16070   ;
16071   return 0;
16072 }
16073 _ACEOF
16074 rm -f conftest.$ac_objext conftest$ac_exeext
16075 if { (ac_try="$ac_link"
16076 case "(($ac_try" in
16077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078   *) ac_try_echo=$ac_try;;
16079 esac
16080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081   (eval "$ac_link") 2>conftest.er1
16082   ac_status=$?
16083   grep -v '^ *+' conftest.er1 >conftest.err
16084   rm -f conftest.er1
16085   cat conftest.err >&5
16086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087   (exit $ac_status); } && {
16088          test -z "$ac_c_werror_flag" ||
16089          test ! -s conftest.err
16090        } && test -s conftest$ac_exeext &&
16091        $as_test_x conftest$ac_exeext; then
16092   ac_cv_lib_socket_socket=yes
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097         ac_cv_lib_socket_socket=no
16098 fi
16099
16100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16101       conftest$ac_exeext conftest.$ac_ext
16102 LIBS=$ac_check_lib_save_LIBS
16103 fi
16104 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16105 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16106 if test $ac_cv_lib_socket_socket = yes; then
16107   cat >>confdefs.h <<_ACEOF
16108 #define HAVE_LIBSOCKET 1
16109 _ACEOF
16110
16111   LIBS="-lsocket $LIBS"
16112
16113 fi
16114
16115
16116 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16117 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16118 if test "${ac_cv_lib_inet_socket+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   ac_check_lib_save_LIBS=$LIBS
16122 LIBS="-linet  $LIBS"
16123 cat >conftest.$ac_ext <<_ACEOF
16124 /* confdefs.h.  */
16125 _ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h.  */
16129
16130 /* Override any GCC internal prototype to avoid an error.
16131    Use char because int might match the return type of a GCC
16132    builtin and then its argument prototype would still apply.  */
16133 #ifdef __cplusplus
16134 extern "C"
16135 #endif
16136 char socket ();
16137 int
16138 main ()
16139 {
16140 return socket ();
16141   ;
16142   return 0;
16143 }
16144 _ACEOF
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (ac_try="$ac_link"
16147 case "(($ac_try" in
16148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16149   *) ac_try_echo=$ac_try;;
16150 esac
16151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16152   (eval "$ac_link") 2>conftest.er1
16153   ac_status=$?
16154   grep -v '^ *+' conftest.er1 >conftest.err
16155   rm -f conftest.er1
16156   cat conftest.err >&5
16157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158   (exit $ac_status); } && {
16159          test -z "$ac_c_werror_flag" ||
16160          test ! -s conftest.err
16161        } && test -s conftest$ac_exeext &&
16162        $as_test_x conftest$ac_exeext; then
16163   ac_cv_lib_inet_socket=yes
16164 else
16165   echo "$as_me: failed program was:" >&5
16166 sed 's/^/| /' conftest.$ac_ext >&5
16167
16168         ac_cv_lib_inet_socket=no
16169 fi
16170
16171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16172       conftest$ac_exeext conftest.$ac_ext
16173 LIBS=$ac_check_lib_save_LIBS
16174 fi
16175 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16176 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16177 if test $ac_cv_lib_inet_socket = yes; then
16178   cat >>confdefs.h <<_ACEOF
16179 #define HAVE_LIBINET 1
16180 _ACEOF
16181
16182   LIBS="-linet $LIBS"
16183
16184 fi
16185
16186 fi
16187
16188
16189
16190 # -----------------------------------------------------------
16191 # Check whether user wants TCP wrappers support (default off)
16192 # -----------------------------------------------------------
16193 TCPW_MSG="no"
16194 WRAPLIBS=""
16195
16196 # Check whether --with-tcp-wrappers was given.
16197 if test "${with_tcp_wrappers+set}" = set; then
16198   withval=$with_tcp_wrappers;
16199     if test "x$withval" != "xno" ; then
16200        saved_LIBS="$LIBS"
16201        LIBS="$saved_LIBS -lwrap"
16202        { echo "$as_me:$LINENO: checking for libwrap" >&5
16203 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16204        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16205 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16206 if test "${ac_cv_search_nanosleep+set}" = set; then
16207   echo $ECHO_N "(cached) $ECHO_C" >&6
16208 else
16209   ac_func_search_save_LIBS=$LIBS
16210 cat >conftest.$ac_ext <<_ACEOF
16211 /* confdefs.h.  */
16212 _ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h.  */
16216
16217 /* Override any GCC internal prototype to avoid an error.
16218    Use char because int might match the return type of a GCC
16219    builtin and then its argument prototype would still apply.  */
16220 #ifdef __cplusplus
16221 extern "C"
16222 #endif
16223 char nanosleep ();
16224 int
16225 main ()
16226 {
16227 return nanosleep ();
16228   ;
16229   return 0;
16230 }
16231 _ACEOF
16232 for ac_lib in '' rt; do
16233   if test -z "$ac_lib"; then
16234     ac_res="none required"
16235   else
16236     ac_res=-l$ac_lib
16237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16238   fi
16239   rm -f conftest.$ac_objext conftest$ac_exeext
16240 if { (ac_try="$ac_link"
16241 case "(($ac_try" in
16242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16243   *) ac_try_echo=$ac_try;;
16244 esac
16245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16246   (eval "$ac_link") 2>conftest.er1
16247   ac_status=$?
16248   grep -v '^ *+' conftest.er1 >conftest.err
16249   rm -f conftest.er1
16250   cat conftest.err >&5
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); } && {
16253          test -z "$ac_c_werror_flag" ||
16254          test ! -s conftest.err
16255        } && test -s conftest$ac_exeext &&
16256        $as_test_x conftest$ac_exeext; then
16257   ac_cv_search_nanosleep=$ac_res
16258 else
16259   echo "$as_me: failed program was:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16261
16262
16263 fi
16264
16265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16266       conftest$ac_exeext
16267   if test "${ac_cv_search_nanosleep+set}" = set; then
16268   break
16269 fi
16270 done
16271 if test "${ac_cv_search_nanosleep+set}" = set; then
16272   :
16273 else
16274   ac_cv_search_nanosleep=no
16275 fi
16276 rm conftest.$ac_ext
16277 LIBS=$ac_func_search_save_LIBS
16278 fi
16279 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16280 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16281 ac_res=$ac_cv_search_nanosleep
16282 if test "$ac_res" != no; then
16283   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16284
16285 fi
16286
16287        cat >conftest.$ac_ext <<_ACEOF
16288 /* confdefs.h.  */
16289 _ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h.  */
16293  #include <sys/types.h>
16294             #include <tcpd.h>
16295              int deny_severity = 0;
16296              int allow_severity = 0;
16297              struct request_info *req;
16298 int
16299 main ()
16300 {
16301  hosts_access(req);
16302   ;
16303   return 0;
16304 }
16305 _ACEOF
16306 rm -f conftest.$ac_objext conftest$ac_exeext
16307 if { (ac_try="$ac_link"
16308 case "(($ac_try" in
16309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310   *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313   (eval "$ac_link") 2>conftest.er1
16314   ac_status=$?
16315   grep -v '^ *+' conftest.er1 >conftest.err
16316   rm -f conftest.er1
16317   cat conftest.err >&5
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } && {
16320          test -z "$ac_c_werror_flag" ||
16321          test ! -s conftest.err
16322        } && test -s conftest$ac_exeext &&
16323        $as_test_x conftest$ac_exeext; then
16324
16325             { echo "$as_me:$LINENO: result: yes" >&5
16326 echo "${ECHO_T}yes" >&6; }
16327
16328 cat >>confdefs.h <<\_ACEOF
16329 #define HAVE_LIBWRAP 1
16330 _ACEOF
16331
16332             TCPW_MSG="yes"
16333             LIBS="$saved_LIBS"
16334             WRAPLIBS="-lwrap"
16335
16336 else
16337   echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340
16341             LIBS="$saved_LIBS -lwrap -lnsl"
16342             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16343             cat >conftest.$ac_ext <<_ACEOF
16344 /* confdefs.h.  */
16345 _ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h.  */
16349  #include <sys/types.h>
16350                  #include <tcpd.h>
16351                  int deny_severity = 0;
16352                  int allow_severity = 0;
16353                  struct request_info *req;
16354 int
16355 main ()
16356 {
16357  hosts_access(req);
16358   ;
16359   return 0;
16360 }
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_link") 2>conftest.er1
16370   ac_status=$?
16371   grep -v '^ *+' conftest.er1 >conftest.err
16372   rm -f conftest.er1
16373   cat conftest.err >&5
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); } && {
16376          test -z "$ac_c_werror_flag" ||
16377          test ! -s conftest.err
16378        } && test -s conftest$ac_exeext &&
16379        $as_test_x conftest$ac_exeext; then
16380
16381                  { echo "$as_me:$LINENO: result: yes" >&5
16382 echo "${ECHO_T}yes" >&6; }
16383
16384 cat >>confdefs.h <<\_ACEOF
16385 #define HAVE_LIBWRAP 1
16386 _ACEOF
16387
16388                  TCPW_MSG="yes"
16389                  LIBS="$saved_LIBS"
16390                  WRAPLIBS="-lwrap"
16391
16392 else
16393   echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16395
16396         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16397 echo "$as_me: error: *** libwrap missing" >&2;}
16398    { (exit 1); exit 1; }; }
16399
16400 fi
16401
16402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16403       conftest$ac_exeext conftest.$ac_ext
16404
16405 fi
16406
16407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16408       conftest$ac_exeext conftest.$ac_ext
16409     fi
16410
16411
16412 fi
16413
16414
16415 # -----------------------------------------------------------
16416 # Check whether OpenSSL is available
16417 # -----------------------------------------------------------
16418 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16419 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16420
16421 # Check whether --with-openssl was given.
16422 if test "${with_openssl+set}" = set; then
16423   withval=$with_openssl; with_openssl_directory=${withval}
16424 fi
16425
16426
16427 if test "x$with_openssl_directory" != "x"; then
16428         OPENSSL_LIBS="-lssl -lcrypto"
16429         OPENSSL_INC=""
16430
16431         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16432                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16433                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16434         fi
16435
16436         saved_LIBS="${LIBS}"
16437         saved_CFLAGS="${CFLAGS}"
16438         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16439         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16440
16441         cat >conftest.$ac_ext <<_ACEOF
16442 /* confdefs.h.  */
16443 _ACEOF
16444 cat confdefs.h >>conftest.$ac_ext
16445 cat >>conftest.$ac_ext <<_ACEOF
16446 /* end confdefs.h.  */
16447  #include <openssl/ssl.h>
16448 int
16449 main ()
16450 {
16451  CRYPTO_set_id_callback(NULL);
16452   ;
16453   return 0;
16454 }
16455 _ACEOF
16456 rm -f conftest.$ac_objext conftest$ac_exeext
16457 if { (ac_try="$ac_link"
16458 case "(($ac_try" in
16459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460   *) ac_try_echo=$ac_try;;
16461 esac
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463   (eval "$ac_link") 2>conftest.er1
16464   ac_status=$?
16465   grep -v '^ *+' conftest.er1 >conftest.err
16466   rm -f conftest.er1
16467   cat conftest.err >&5
16468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469   (exit $ac_status); } && {
16470          test -z "$ac_c_werror_flag" ||
16471          test ! -s conftest.err
16472        } && test -s conftest$ac_exeext &&
16473        $as_test_x conftest$ac_exeext; then
16474
16475                         support_tls="yes"
16476                         support_crypto="yes"
16477
16478 else
16479   echo "$as_me: failed program was:" >&5
16480 sed 's/^/| /' conftest.$ac_ext >&5
16481
16482          support_tls="no"
16483
16484 fi
16485
16486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16487       conftest$ac_exeext conftest.$ac_ext
16488
16489         cat >conftest.$ac_ext <<_ACEOF
16490 /* confdefs.h.  */
16491 _ACEOF
16492 cat confdefs.h >>conftest.$ac_ext
16493 cat >>conftest.$ac_ext <<_ACEOF
16494 /* end confdefs.h.  */
16495  #include <openssl/evp.h>
16496 int
16497 main ()
16498 {
16499  EVP_sha512();
16500   ;
16501   return 0;
16502 }
16503 _ACEOF
16504 rm -f conftest.$ac_objext conftest$ac_exeext
16505 if { (ac_try="$ac_link"
16506 case "(($ac_try" in
16507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508   *) ac_try_echo=$ac_try;;
16509 esac
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511   (eval "$ac_link") 2>conftest.er1
16512   ac_status=$?
16513   grep -v '^ *+' conftest.er1 >conftest.err
16514   rm -f conftest.er1
16515   cat conftest.err >&5
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); } && {
16518          test -z "$ac_c_werror_flag" ||
16519          test ! -s conftest.err
16520        } && test -s conftest$ac_exeext &&
16521        $as_test_x conftest$ac_exeext; then
16522    ac_cv_openssl_sha2="yes"
16523 else
16524   echo "$as_me: failed program was:" >&5
16525 sed 's/^/| /' conftest.$ac_ext >&5
16526
16527          ac_cv_openssl_sha2="no"
16528
16529 fi
16530
16531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16532       conftest$ac_exeext conftest.$ac_ext
16533
16534         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16535         # implementation, presumably for export reasons. If 192bit AES
16536         # is available, we assume that we're running with a 'non-export'
16537         # openssl library.
16538         cat >conftest.$ac_ext <<_ACEOF
16539 /* confdefs.h.  */
16540 _ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h.  */
16544  #include <openssl/evp.h>
16545 int
16546 main ()
16547 {
16548  EVP_aes_192_cbc();
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 rm -f conftest.$ac_objext conftest$ac_exeext
16554 if { (ac_try="$ac_link"
16555 case "(($ac_try" in
16556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557   *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560   (eval "$ac_link") 2>conftest.er1
16561   ac_status=$?
16562   grep -v '^ *+' conftest.er1 >conftest.err
16563   rm -f conftest.er1
16564   cat conftest.err >&5
16565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566   (exit $ac_status); } && {
16567          test -z "$ac_c_werror_flag" ||
16568          test ! -s conftest.err
16569        } && test -s conftest$ac_exeext &&
16570        $as_test_x conftest$ac_exeext; then
16571    ac_cv_openssl_export="no"
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576          ac_cv_openssl_export="yes"
16577
16578 fi
16579
16580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16581       conftest$ac_exeext conftest.$ac_ext
16582
16583         LIBS="${saved_LIBS}"
16584         CFLAGS="${saved_CFLAGS}"
16585
16586         if test "$support_tls" = "yes"; then
16587
16588 cat >>confdefs.h <<\_ACEOF
16589 #define HAVE_OPENSSL 1
16590 _ACEOF
16591
16592
16593 cat >>confdefs.h <<\_ACEOF
16594 #define HAVE_TLS 1
16595 _ACEOF
16596
16597
16598 cat >>confdefs.h <<\_ACEOF
16599 #define HAVE_CRYPTO 1
16600 _ACEOF
16601
16602         fi
16603
16604         if test "$ac_cv_openssl_sha2" = "yes"; then
16605
16606 cat >>confdefs.h <<\_ACEOF
16607 #define HAVE_SHA2 1
16608 _ACEOF
16609
16610         fi
16611
16612         if test "$ac_cv_openssl_export" = "yes"; then
16613
16614 cat >>confdefs.h <<\_ACEOF
16615 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16616 _ACEOF
16617
16618         fi
16619 else
16620         support_tls="no"
16621         support_crypto="no"
16622         OPENSSL_LIBS=""
16623         OPENSSL_INC=""
16624 fi
16625
16626 { echo "$as_me:$LINENO: result: $support_tls" >&5
16627 echo "${ECHO_T}$support_tls" >&6; }
16628
16629
16630
16631
16632 # -----------------------------------------------------------
16633 # dlopen is needed for plugins
16634 # -----------------------------------------------------------
16635 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16636 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16637 if test "${ac_cv_search_dlopen+set}" = set; then
16638   echo $ECHO_N "(cached) $ECHO_C" >&6
16639 else
16640   ac_func_search_save_LIBS=$LIBS
16641 cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647
16648 /* Override any GCC internal prototype to avoid an error.
16649    Use char because int might match the return type of a GCC
16650    builtin and then its argument prototype would still apply.  */
16651 #ifdef __cplusplus
16652 extern "C"
16653 #endif
16654 char dlopen ();
16655 int
16656 main ()
16657 {
16658 return dlopen ();
16659   ;
16660   return 0;
16661 }
16662 _ACEOF
16663 for ac_lib in '' dl; do
16664   if test -z "$ac_lib"; then
16665     ac_res="none required"
16666   else
16667     ac_res=-l$ac_lib
16668     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16669   fi
16670   rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674   *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677   (eval "$ac_link") 2>conftest.er1
16678   ac_status=$?
16679   grep -v '^ *+' conftest.er1 >conftest.err
16680   rm -f conftest.er1
16681   cat conftest.err >&5
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); } && {
16684          test -z "$ac_c_werror_flag" ||
16685          test ! -s conftest.err
16686        } && test -s conftest$ac_exeext &&
16687        $as_test_x conftest$ac_exeext; then
16688   ac_cv_search_dlopen=$ac_res
16689 else
16690   echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16692
16693
16694 fi
16695
16696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16697       conftest$ac_exeext
16698   if test "${ac_cv_search_dlopen+set}" = set; then
16699   break
16700 fi
16701 done
16702 if test "${ac_cv_search_dlopen+set}" = set; then
16703   :
16704 else
16705   ac_cv_search_dlopen=no
16706 fi
16707 rm conftest.$ac_ext
16708 LIBS=$ac_func_search_save_LIBS
16709 fi
16710 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16711 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16712 ac_res=$ac_cv_search_dlopen
16713 if test "$ac_res" != no; then
16714   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16715
16716 fi
16717
16718
16719 # ------------------------------------------
16720 # Where to place working dir
16721 # ------------------------------------------
16722 working_dir=`eval echo ${prefix}/var/bacula/working`
16723
16724 # Check whether --with-working-dir was given.
16725 if test "${with_working_dir+set}" = set; then
16726   withval=$with_working_dir;
16727        if test "x$withval" != "xno" ; then
16728               working_dir=$withval
16729        fi
16730
16731
16732 fi
16733
16734
16735
16736
16737 # ------------------------------------------------------------------
16738 # If the user has not set archivedir, we set our default as /tmp
16739 # ------------------------------------------------------------------
16740 archive_dir=/tmp
16741
16742 # Check whether --with-archivedir was given.
16743 if test "${with_archivedir+set}" = set; then
16744   withval=$with_archivedir;
16745        if test "x$withval" != "xno" ; then
16746               archivedir=$withval
16747        fi
16748
16749
16750 fi
16751
16752
16753
16754
16755
16756
16757 # ------------------------------------------
16758 # Where to place scriptdir (script files)
16759 # ------------------------------------------
16760 scriptdir=`eval echo ${sysconfdir}`
16761
16762 # Check whether --with-scriptdir was given.
16763 if test "${with_scriptdir+set}" = set; then
16764   withval=$with_scriptdir;
16765        if test "x$withval" != "xno" ; then
16766               scriptdir=$withval
16767        fi
16768
16769
16770 fi
16771
16772
16773
16774
16775
16776 # ------------------------------------------
16777 # Where to place plugindir (script files)
16778 # ------------------------------------------
16779 plugindir=`eval echo ${sysconfdir}`
16780
16781 # Check whether --with-plugindir was given.
16782 if test "${with_plugindir+set}" = set; then
16783   withval=$with_plugindir;
16784        if test "x$withval" != "xno" ; then
16785               plugindir=$withval
16786        fi
16787
16788
16789 fi
16790
16791
16792
16793
16794
16795 # ------------------------------------------
16796 # Where to send dump email
16797 # ------------------------------------------
16798 dump_email=root@localhost
16799
16800 # Check whether --with-dump-email was given.
16801 if test "${with_dump_email+set}" = set; then
16802   withval=$with_dump_email;
16803        if test "x$withval" != "xno" ; then
16804               dump_email=$withval
16805        fi
16806
16807
16808 fi
16809
16810
16811
16812
16813 # ------------------------------------------
16814 # Where to send job email
16815 # ------------------------------------------
16816 job_email=root@localhost
16817
16818 # Check whether --with-job-email was given.
16819 if test "${with_job_email+set}" = set; then
16820   withval=$with_job_email;
16821        if test "x$withval" != "xno" ; then
16822               job_email=$withval
16823        fi
16824
16825
16826 fi
16827
16828
16829
16830
16831 # ------------------------------------------
16832 # Where to find smtp host
16833 # ------------------------------------------
16834 smtp_host=localhost
16835
16836 # Check whether --with-smtp_host was given.
16837 if test "${with_smtp_host+set}" = set; then
16838   withval=$with_smtp_host;
16839        if test "x$withval" != "xno" ; then
16840               smtp_host=$withval
16841        fi
16842
16843
16844 fi
16845
16846
16847
16848
16849
16850 # ------------------------------------
16851 # Where to place pid files
16852 # ------------------------------------
16853 piddir=/var/run
16854
16855 # Check whether --with-pid-dir was given.
16856 if test "${with_pid_dir+set}" = set; then
16857   withval=$with_pid_dir;
16858         if test "x$withval" != "xno" ; then
16859             piddir=$withval
16860         fi
16861
16862
16863 fi
16864
16865
16866 cat >>confdefs.h <<_ACEOF
16867 #define _PATH_BACULA_PIDDIR "$piddir"
16868 _ACEOF
16869
16870
16871
16872
16873 # ------------------------------------
16874 # Where to place subsys "lock file"
16875 # ------------------------------------
16876 subsysdir=/var/run/subsys
16877 if test -d /var/run/subsys; then
16878    subsysdir=/var/run/subsys
16879 elif test -d /var/lock/subsys; then
16880    subsysdir=/var/lock/subsys
16881 else
16882    subsysdir=/var/run/subsys
16883 fi
16884
16885 # Check whether --with-subsys-dir was given.
16886 if test "${with_subsys_dir+set}" = set; then
16887   withval=$with_subsys_dir;
16888         if test "x$withval" != "xno" ; then
16889             subsysdir=$withval
16890         fi
16891
16892
16893 fi
16894
16895
16896
16897
16898
16899
16900 # ------------------------------------
16901 # Where to start assigning ports
16902 # ------------------------------------
16903 baseport=9101
16904
16905 # Check whether --with-baseport was given.
16906 if test "${with_baseport+set}" = set; then
16907   withval=$with_baseport;
16908         if test "x$withval" != "xno" ; then
16909              baseport=$withval
16910         fi
16911
16912
16913 fi
16914
16915
16916
16917 dir_port=`expr $baseport`
16918 fd_port=`expr $baseport + 1`
16919 sd_port=`expr $fd_port + 1`
16920
16921
16922
16923
16924
16925
16926 # ------------------------------------------
16927 # Generate passwords
16928 # ------------------------------------------
16929 dir_password=
16930
16931 # Check whether --with-dir-password was given.
16932 if test "${with_dir_password+set}" = set; then
16933   withval=$with_dir_password;
16934        if test "x$withval" != "xno" ; then
16935            dir_password=$withval
16936        fi
16937
16938
16939 fi
16940
16941
16942 if test "x$dir_password" = "x" ; then
16943    if test "x$OPENSSL" = "xnone" ; then
16944       key=`autoconf/randpass 33`
16945    else
16946       key=`openssl rand -base64 33`
16947    fi
16948    dir_password=$key
16949 fi
16950
16951 fd_password=
16952
16953 # Check whether --with-fd-password was given.
16954 if test "${with_fd_password+set}" = set; then
16955   withval=$with_fd_password;
16956        if test "x$withval" != "xno" ; then
16957            fd_password=$withval
16958        fi
16959
16960
16961 fi
16962
16963
16964 if test "x$fd_password" = "x" ; then
16965    if test "x$OPENSSL" = "xnone" ; then
16966       key=`autoconf/randpass 37`
16967    else
16968       key=`openssl rand -base64 33`
16969    fi
16970    fd_password=$key
16971 fi
16972
16973 sd_password=
16974
16975 # Check whether --with-sd-password was given.
16976 if test "${with_sd_password+set}" = set; then
16977   withval=$with_sd_password;
16978        if test "x$withval" != "xno" ; then
16979            sd_password=$withval
16980        fi
16981
16982
16983 fi
16984
16985
16986 if test "x$sd_password" = "x" ; then
16987    if test "x$OPENSSL" = "xnone" ; then
16988       key=`autoconf/randpass 41`
16989    else
16990       key=`openssl rand -base64 33`
16991    fi
16992    sd_password=$key
16993 fi
16994
16995 mon_dir_password=
16996
16997 # Check whether --with-mon-dir-password was given.
16998 if test "${with_mon_dir_password+set}" = set; then
16999   withval=$with_mon_dir_password;
17000        if test "x$withval" != "xno" ; then
17001            mon_dir_password=$withval
17002        fi
17003
17004
17005 fi
17006
17007
17008 if test "x$mon_dir_password" = "x" ; then
17009    if test "x$OPENSSL" = "xnone" ; then
17010       key=`autoconf/randpass 33`
17011    else
17012       key=`openssl rand -base64 33`
17013    fi
17014    mon_dir_password=$key
17015 fi
17016
17017 mon_fd_password=
17018
17019 # Check whether --with-mon-fd-password was given.
17020 if test "${with_mon_fd_password+set}" = set; then
17021   withval=$with_mon_fd_password;
17022        if test "x$withval" != "xno" ; then
17023            mon_fd_password=$withval
17024        fi
17025
17026
17027 fi
17028
17029
17030 if test "x$mon_fd_password" = "x" ; then
17031    if test "x$OPENSSL" = "xnone" ; then
17032       key=`autoconf/randpass 37`
17033    else
17034       key=`openssl rand -base64 33`
17035    fi
17036    mon_fd_password=$key
17037 fi
17038
17039 mon_sd_password=
17040
17041 # Check whether --with-mon-sd-password was given.
17042 if test "${with_mon_sd_password+set}" = set; then
17043   withval=$with_mon_sd_password;
17044        if test "x$withval" != "xno" ; then
17045            mon_sd_password=$withval
17046        fi
17047
17048
17049 fi
17050
17051
17052 if test "x$mon_sd_password" = "x" ; then
17053    if test "x$OPENSSL" = "xnone" ; then
17054       key=`autoconf/randpass 41`
17055    else
17056       key=`openssl rand -base64 33`
17057    fi
17058    mon_sd_password=$key
17059 fi
17060
17061
17062
17063
17064
17065
17066
17067
17068 #
17069 # Pickup any database name
17070 #
17071 db_name=bacula
17072
17073 # Check whether --with-db_name was given.
17074 if test "${with_db_name+set}" = set; then
17075   withval=$with_db_name;
17076         if test "x$withval" != "x" ; then
17077              db_name=$withval
17078         fi
17079
17080
17081 fi
17082
17083
17084
17085 db_user=bacula
17086
17087 # Check whether --with-db_user was given.
17088 if test "${with_db_user+set}" = set; then
17089   withval=$with_db_user;
17090         if test "x$withval" != "x" ; then
17091              db_user=$withval
17092         fi
17093
17094
17095 fi
17096
17097
17098
17099 db_password=
17100
17101 # Check whether --with-db_password was given.
17102 if test "${with_db_password+set}" = set; then
17103   withval=$with_db_password;
17104         if test "x$withval" != "x" ; then
17105              db_password=$withval
17106         fi
17107
17108
17109 fi
17110
17111
17112
17113 #
17114 # Pickup a database port
17115 #
17116 db_port=" "
17117
17118 # Check whether --with-db_port was given.
17119 if test "${with_db_port+set}" = set; then
17120   withval=$with_db_port;
17121         if test "x$withval" != "x" ; then
17122              db_port=$withval
17123         fi
17124
17125
17126 fi
17127
17128
17129
17130 #
17131 # Handle users and groups for each daemon
17132 #
17133 dir_user=
17134
17135 # Check whether --with-dir_user was given.
17136 if test "${with_dir_user+set}" = set; then
17137   withval=$with_dir_user;
17138         if test "x$withval" != "x" ; then
17139              dir_user=$withval
17140         fi
17141
17142
17143 fi
17144
17145
17146 dir_group=
17147
17148 # Check whether --with-dir_group was given.
17149 if test "${with_dir_group+set}" = set; then
17150   withval=$with_dir_group;
17151         if test "x$withval" != "x" ; then
17152              dir_group=$withval
17153         fi
17154
17155
17156 fi
17157
17158
17159 sd_user=
17160
17161 # Check whether --with-sd_user was given.
17162 if test "${with_sd_user+set}" = set; then
17163   withval=$with_sd_user;
17164         if test "x$withval" != "x" ; then
17165              sd_user=$withval
17166         fi
17167
17168
17169 fi
17170
17171
17172 sd_group=
17173
17174 # Check whether --with-sd_group was given.
17175 if test "${with_sd_group+set}" = set; then
17176   withval=$with_sd_group;
17177         if test "x$withval" != "x" ; then
17178              sd_group=$withval
17179         fi
17180
17181
17182 fi
17183
17184
17185 fd_user=
17186
17187 # Check whether --with-fd_user was given.
17188 if test "${with_fd_user+set}" = set; then
17189   withval=$with_fd_user;
17190         if test "x$withval" != "x" ; then
17191              fd_user=$withval
17192         fi
17193
17194
17195 fi
17196
17197
17198 fd_group=
17199
17200 # Check whether --with-fd_group was given.
17201 if test "${with_fd_group+set}" = set; then
17202   withval=$with_fd_group;
17203         if test "x$withval" != "x" ; then
17204              fd_group=$withval
17205         fi
17206
17207
17208 fi
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218 #
17219 # allow setting default executable permissions
17220 #
17221 SBINPERM=0754
17222
17223 # Check whether --with-sbin-perm was given.
17224 if test "${with_sbin_perm+set}" = set; then
17225   withval=$with_sbin_perm;
17226         if test "x$withval" != "x" ; then
17227             SBINPERM=$withval
17228         fi
17229
17230
17231 fi
17232
17233
17234
17235
17236 # ------------------------------------------------
17237 # Bacula check for various SQL database engines
17238 # ------------------------------------------------
17239 SQL_LIB=
17240
17241 db_found=no
17242 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17243 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17244
17245 # Check whether --with-postgresql was given.
17246 if test "${with_postgresql+set}" = set; then
17247   withval=$with_postgresql;
17248   if test "$withval" != "no"; then
17249       if test "$db_found" = "yes"; then
17250           { echo "$as_me:$LINENO: result: error" >&5
17251 echo "${ECHO_T}error" >&6; }
17252           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17253 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17254    { (exit 1); exit 1; }; };
17255       fi
17256       if test "$withval" = "yes"; then
17257           PG_CONFIG=`which pg_config`
17258           if test -n "$PG_CONFIG";then
17259               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17260               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17261               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17262           elif test -f /usr/local/include/libpq-fe.h; then
17263               POSTGRESQL_INCDIR=/usr/local/include
17264               if test -d /usr/local/lib64; then
17265                  POSTGRESQL_LIBDIR=/usr/local/lib64
17266               else
17267                  POSTGRESQL_LIBDIR=/usr/local/lib
17268               fi
17269               POSTGRESQL_BINDIR=/usr/local/bin
17270           elif test -f /usr/include/libpq-fe.h; then
17271               POSTGRESQL_INCDIR=/usr/include
17272               if test -d /usr/lib64; then
17273                  POSTGRESQL_LIBDIR=/usr/lib64
17274               else
17275                  POSTGRESQL_LIBDIR=/usr/lib
17276               fi
17277               POSTGRESQL_BINDIR=/usr/bin
17278           elif test -f /usr/include/pgsql/libpq-fe.h; then
17279               POSTGRESQL_INCDIR=/usr/include/pgsql
17280               if test -d /usr/lib64/pgsql; then
17281                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17282               else
17283                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17284               fi
17285               POSTGRESQL_BINDIR=/usr/bin
17286           elif test -f /usr/include/postgresql/libpq-fe.h; then
17287               POSTGRESQL_INCDIR=/usr/include/postgresql
17288               if test -d /usr/lib64/postgresql; then
17289                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17290               else
17291                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17292               fi
17293               POSTGRESQL_BINDIR=/usr/bin
17294           else
17295               { echo "$as_me:$LINENO: result: no" >&5
17296 echo "${ECHO_T}no" >&6; }
17297               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17298 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17299    { (exit 1); exit 1; }; }
17300           fi
17301       elif test -f $withval/include/libpq-fe.h; then
17302           POSTGRESQL_INCDIR=$withval/include
17303           POSTGRESQL_LIBDIR=$withval/lib
17304           POSTGRESQL_BINDIR=$withval/bin
17305       elif test -f $withval/include/postgresql/libpq-fe.h; then
17306           POSTGRESQL_INCDIR=$withval/include/postgresql
17307      if test -d $withval/lib64; then
17308          POSTGRESQL_LIBDIR=$withval/lib64
17309      else
17310          POSTGRESQL_LIBDIR=$withval/lib
17311      fi
17312           POSTGRESQL_BINDIR=$withval/bin
17313       else
17314           { echo "$as_me:$LINENO: result: no" >&5
17315 echo "${ECHO_T}no" >&6; }
17316           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17317 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17318    { (exit 1); exit 1; }; }
17319       fi
17320       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17321       { echo "$as_me:$LINENO: checking for crypt" >&5
17322 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17323 if test "${ac_cv_func_crypt+set}" = set; then
17324   echo $ECHO_N "(cached) $ECHO_C" >&6
17325 else
17326   cat >conftest.$ac_ext <<_ACEOF
17327 /* confdefs.h.  */
17328 _ACEOF
17329 cat confdefs.h >>conftest.$ac_ext
17330 cat >>conftest.$ac_ext <<_ACEOF
17331 /* end confdefs.h.  */
17332 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17334 #define crypt innocuous_crypt
17335
17336 /* System header to define __stub macros and hopefully few prototypes,
17337     which can conflict with char crypt (); below.
17338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17339     <limits.h> exists even on freestanding compilers.  */
17340
17341 #ifdef __STDC__
17342 # include <limits.h>
17343 #else
17344 # include <assert.h>
17345 #endif
17346
17347 #undef crypt
17348
17349 /* Override any GCC internal prototype to avoid an error.
17350    Use char because int might match the return type of a GCC
17351    builtin and then its argument prototype would still apply.  */
17352 #ifdef __cplusplus
17353 extern "C"
17354 #endif
17355 char crypt ();
17356 /* The GNU C library defines this for functions which it implements
17357     to always fail with ENOSYS.  Some functions are actually named
17358     something starting with __ and the normal name is an alias.  */
17359 #if defined __stub_crypt || defined __stub___crypt
17360 choke me
17361 #endif
17362
17363 int
17364 main ()
17365 {
17366 return crypt ();
17367   ;
17368   return 0;
17369 }
17370 _ACEOF
17371 rm -f conftest.$ac_objext conftest$ac_exeext
17372 if { (ac_try="$ac_link"
17373 case "(($ac_try" in
17374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17375   *) ac_try_echo=$ac_try;;
17376 esac
17377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17378   (eval "$ac_link") 2>conftest.er1
17379   ac_status=$?
17380   grep -v '^ *+' conftest.er1 >conftest.err
17381   rm -f conftest.er1
17382   cat conftest.err >&5
17383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384   (exit $ac_status); } && {
17385          test -z "$ac_c_werror_flag" ||
17386          test ! -s conftest.err
17387        } && test -s conftest$ac_exeext &&
17388        $as_test_x conftest$ac_exeext; then
17389   ac_cv_func_crypt=yes
17390 else
17391   echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394         ac_cv_func_crypt=no
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17398       conftest$ac_exeext conftest.$ac_ext
17399 fi
17400 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17401 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17402 if test $ac_cv_func_crypt = yes; then
17403   :
17404 else
17405   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17406 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17407 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17408   echo $ECHO_N "(cached) $ECHO_C" >&6
17409 else
17410   ac_check_lib_save_LIBS=$LIBS
17411 LIBS="-lcrypt  $LIBS"
17412 cat >conftest.$ac_ext <<_ACEOF
17413 /* confdefs.h.  */
17414 _ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h.  */
17418
17419 /* Override any GCC internal prototype to avoid an error.
17420    Use char because int might match the return type of a GCC
17421    builtin and then its argument prototype would still apply.  */
17422 #ifdef __cplusplus
17423 extern "C"
17424 #endif
17425 char crypt ();
17426 int
17427 main ()
17428 {
17429 return crypt ();
17430   ;
17431   return 0;
17432 }
17433 _ACEOF
17434 rm -f conftest.$ac_objext conftest$ac_exeext
17435 if { (ac_try="$ac_link"
17436 case "(($ac_try" in
17437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438   *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441   (eval "$ac_link") 2>conftest.er1
17442   ac_status=$?
17443   grep -v '^ *+' conftest.er1 >conftest.err
17444   rm -f conftest.er1
17445   cat conftest.err >&5
17446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447   (exit $ac_status); } && {
17448          test -z "$ac_c_werror_flag" ||
17449          test ! -s conftest.err
17450        } && test -s conftest$ac_exeext &&
17451        $as_test_x conftest$ac_exeext; then
17452   ac_cv_lib_crypt_crypt=yes
17453 else
17454   echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.$ac_ext >&5
17456
17457         ac_cv_lib_crypt_crypt=no
17458 fi
17459
17460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17461       conftest$ac_exeext conftest.$ac_ext
17462 LIBS=$ac_check_lib_save_LIBS
17463 fi
17464 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17465 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17466 if test $ac_cv_lib_crypt_crypt = yes; then
17467   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17468 fi
17469
17470 fi
17471
17472       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17473       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17474       SQL_BINDIR=$POSTGRESQL_BINDIR
17475       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17476
17477       cat >>confdefs.h <<\_ACEOF
17478 #define HAVE_POSTGRESQL 1
17479 _ACEOF
17480
17481       { echo "$as_me:$LINENO: result: yes" >&5
17482 echo "${ECHO_T}yes" >&6; }
17483       db_found=yes
17484       support_postgresql=yes
17485       db_type=PostgreSQL
17486       DB_TYPE=postgresql
17487   else
17488       { echo "$as_me:$LINENO: result: no" >&5
17489 echo "${ECHO_T}no" >&6; }
17490   fi
17491
17492 else
17493
17494   { echo "$as_me:$LINENO: result: no" >&5
17495 echo "${ECHO_T}no" >&6; }
17496
17497 fi
17498
17499
17500
17501
17502
17503
17504
17505
17506 db_found=no
17507 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17508 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17509
17510 # Check whether --with-mysql was given.
17511 if test "${with_mysql+set}" = set; then
17512   withval=$with_mysql;
17513   if test "$withval" != "no"; then
17514         if test "$withval" = "yes"; then
17515            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17516                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17517                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17518                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17519                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17520                    else
17521                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17522                    fi
17523                    MYSQL_BINDIR=/usr/local/mysql/bin
17524            elif test -f /usr/include/mysql/mysql.h; then
17525                    MYSQL_INCDIR=/usr/include/mysql
17526                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17527                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17528                            MYSQL_LIBDIR=/usr/lib64/mysql
17529                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17530                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17531                            MYSQL_LIBDIR=/usr/lib/mysql
17532                    else
17533                            MYSQL_LIBDIR=/usr/lib
17534                    fi
17535                    MYSQL_BINDIR=/usr/bin
17536            elif test -f /usr/include/mysql.h; then
17537                    MYSQL_INCDIR=/usr/include
17538                    if test -f /usr/lib64/libmysqlclient_r.a \
17539                         -o -f /usr/lib64/libmysqlclient_r.so; then
17540                            MYSQL_LIBDIR=/usr/lib64
17541                    else
17542                            MYSQL_LIBDIR=/usr/lib
17543                    fi
17544                    MYSQL_BINDIR=/usr/bin
17545            elif test -f /usr/local/include/mysql/mysql.h; then
17546                    MYSQL_INCDIR=/usr/local/include/mysql
17547                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17548                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17549                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17550                    else
17551                            MYSQL_LIBDIR=/usr/local/lib/mysql
17552                    fi
17553                    MYSQL_BINDIR=/usr/local/bin
17554            elif test -f /usr/local/include/mysql.h; then
17555                    MYSQL_INCDIR=/usr/local/include
17556                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17557                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17558                            MYSQL_LIBDIR=/usr/local/lib64
17559                    else
17560                            MYSQL_LIBDIR=/usr/local/lib
17561                    fi
17562                    MYSQL_BINDIR=/usr/local/bin
17563            else
17564               { echo "$as_me:$LINENO: result: no" >&5
17565 echo "${ECHO_T}no" >&6; }
17566               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17567 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17568    { (exit 1); exit 1; }; }
17569            fi
17570         else
17571            if test -f $withval/include/mysql/mysql.h; then
17572               MYSQL_INCDIR=$withval/include/mysql
17573               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17574                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17575                  MYSQL_LIBDIR=$withval/lib64/mysql
17576               else
17577                  MYSQL_LIBDIR=$withval/lib/mysql
17578                  # Solaris ...
17579                  if test -f $withval/lib/libmysqlclient_r.so; then
17580                     MYSQL_LIBDIR=$withval/lib
17581                  fi
17582               fi
17583               MYSQL_BINDIR=$withval/bin
17584            elif test -f $withval/include/mysql.h; then
17585               MYSQL_INCDIR=$withval/include
17586               if test -f $withval/lib64/libmysqlclient_r.a \
17587                    -o -f $withval/lib64/libmysqlclient_r.so; then
17588                  MYSQL_LIBDIR=$withval/lib64
17589               else
17590                  MYSQL_LIBDIR=$withval/lib
17591               fi
17592               MYSQL_BINDIR=$withval/bin
17593            else
17594               { echo "$as_me:$LINENO: result: no" >&5
17595 echo "${ECHO_T}no" >&6; }
17596               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17597 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17598    { (exit 1); exit 1; }; }
17599            fi
17600         fi
17601     SQL_INCLUDE=-I$MYSQL_INCDIR
17602     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17603          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17604        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17605        cat >>confdefs.h <<\_ACEOF
17606 #define HAVE_THREAD_SAFE_MYSQL 1
17607 _ACEOF
17608
17609     fi
17610     SQL_BINDIR=$MYSQL_BINDIR
17611     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17612
17613     cat >>confdefs.h <<\_ACEOF
17614 #define HAVE_MYSQL 1
17615 _ACEOF
17616
17617     { echo "$as_me:$LINENO: result: yes" >&5
17618 echo "${ECHO_T}yes" >&6; }
17619     db_found=yes
17620     support_mysql=yes
17621     db_type=MySQL
17622     DB_TYPE=mysql
17623
17624   else
17625         { echo "$as_me:$LINENO: result: no" >&5
17626 echo "${ECHO_T}no" >&6; }
17627   fi
17628
17629
17630 fi
17631
17632
17633
17634 # Check whether --with-embedded-mysql was given.
17635 if test "${with_embedded_mysql+set}" = set; then
17636   withval=$with_embedded_mysql;
17637   if test "$withval" != "no"; then
17638         if test "$withval" = "yes"; then
17639                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17640                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17641                         if test -d /usr/local/mysql/lib64/mysql; then
17642                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17643                         else
17644                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17645                         fi
17646                         MYSQL_BINDIR=/usr/local/mysql/bin
17647                 elif test -f /usr/include/mysql/mysql.h; then
17648                         MYSQL_INCDIR=/usr/include/mysql
17649                         if test -d /usr/lib64/mysql; then
17650                                 MYSQL_LIBDIR=/usr/lib64/mysql
17651                         else
17652                                 MYSQL_LIBDIR=/usr/lib/mysql
17653                         fi
17654                         MYSQL_BINDIR=/usr/bin
17655                 elif test -f /usr/include/mysql.h; then
17656                         MYSQL_INCDIR=/usr/include
17657                         if test -d /usr/lib64; then
17658                                 MYSQL_LIBDIR=/usr/lib64
17659                         else
17660                                 MYSQL_LIBDIR=/usr/lib
17661                         fi
17662                         MYSQL_BINDIR=/usr/bin
17663                 elif test -f /usr/local/include/mysql/mysql.h; then
17664                         MYSQL_INCDIR=/usr/local/include/mysql
17665                         if test -d /usr/local/lib64/mysql; then
17666                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17667                         else
17668                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17669                         fi
17670                         MYSQL_BINDIR=/usr/local/bin
17671                 elif test -f /usr/local/include/mysql.h; then
17672                         MYSQL_INCDIR=/usr/local/include
17673                         if test -d /usr/local/lib64; then
17674                                 MYSQL_LIBDIR=/usr/local/lib64
17675                         else
17676                                 MYSQL_LIBDIR=/usr/local/lib
17677                         fi
17678                         MYSQL_BINDIR=/usr/local/bin
17679                 else
17680                    { echo "$as_me:$LINENO: result: no" >&5
17681 echo "${ECHO_T}no" >&6; }
17682                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17683 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17684    { (exit 1); exit 1; }; }
17685                 fi
17686         else
17687                 if test -f $withval/include/mysql/mysql.h; then
17688                         MYSQL_INCDIR=$withval/include/mysql
17689                         if test -d $withval/lib64/mysql; then
17690                                 MYSQL_LIBDIR=$withval/lib64/mysql
17691                         else
17692                                 MYSQL_LIBDIR=$withval/lib/mysql
17693                         fi
17694                         MYSQL_BINDIR=$withval/bin
17695                 elif test -f $withval/include/mysql.h; then
17696                         MYSQL_INCDIR=$withval/include
17697                         if test -d $withval/lib64; then
17698                                 MYSQL_LIBDIR=$withval/lib64
17699                         else
17700                                 MYSQL_LIBDIR=$withval/lib
17701                         fi
17702                         MYSQL_BINDIR=$withval/bin
17703                 else
17704                    { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17706                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17707 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17708    { (exit 1); exit 1; }; }
17709                 fi
17710         fi
17711     SQL_INCLUDE=-I$MYSQL_INCDIR
17712     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17713     SQL_BINDIR=$MYSQL_BINDIR
17714     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17715
17716     cat >>confdefs.h <<\_ACEOF
17717 #define HAVE_MYSQL 1
17718 _ACEOF
17719
17720     cat >>confdefs.h <<\_ACEOF
17721 #define HAVE_EMBEDDED_MYSQL 1
17722 _ACEOF
17723
17724     { echo "$as_me:$LINENO: result: yes" >&5
17725 echo "${ECHO_T}yes" >&6; }
17726     db_found=yes
17727     support_mysql=yes
17728     db_type=MySQL
17729     DB_TYPE=mysql
17730
17731   else
17732         { echo "$as_me:$LINENO: result: no" >&5
17733 echo "${ECHO_T}no" >&6; }
17734   fi
17735
17736
17737 fi
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748 db_found=no
17749 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17750 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17751
17752 # Check whether --with-sqlite3 was given.
17753 if test "${with_sqlite3+set}" = set; then
17754   withval=$with_sqlite3;
17755   if test "$withval" != "no"; then
17756      if test "$withval" = "yes"; then
17757         if test -f /usr/local/include/sqlite3.h; then
17758            SQLITE_INCDIR=/usr/local/include
17759            if test -d /usr/local/lib64; then
17760               SQLITE_LIBDIR=/usr/local/lib64
17761            else
17762               SQLITE_LIBDIR=/usr/local/lib
17763            fi
17764            SQLITE_BINDIR=/usr/local/bin
17765         elif test -f /usr/include/sqlite3.h; then
17766            SQLITE_INCDIR=/usr/include
17767            if test -d /usr/lib64; then
17768               SQLITE_LIBDIR=/usr/lib64
17769            else
17770               SQLITE_LIBDIR=/usr/lib
17771            fi
17772            SQLITE_BINDIR=/usr/bin
17773         elif test -f $prefix/include/sqlite3.h; then
17774            SQLITE_INCDIR=$prefix/include
17775            if test -d $prefix/lib64; then
17776               SQLITE_LIBDIR=$prefix/lib64
17777            else
17778               SQLITE_LIBDIR=$prefix/lib
17779            fi
17780            SQLITE_BINDIR=$prefix/bin
17781         else
17782            { echo "$as_me:$LINENO: result: no" >&5
17783 echo "${ECHO_T}no" >&6; }
17784            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17785 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17786    { (exit 1); exit 1; }; }
17787         fi
17788      else
17789         if test -f $withval/sqlite3.h; then
17790            SQLITE_INCDIR=$withval
17791            SQLITE_LIBDIR=$withval
17792            SQLITE_BINDIR=$withval
17793         elif test -f $withval/include/sqlite3.h; then
17794            SQLITE_INCDIR=$withval/include
17795            if test -d $withval/lib64; then
17796               SQLITE_LIBDIR=$withval/lib64
17797            else
17798               SQLITE_LIBDIR=$withval/lib
17799            fi
17800            SQLITE_BINDIR=$withval/bin
17801         else
17802            { echo "$as_me:$LINENO: result: no" >&5
17803 echo "${ECHO_T}no" >&6; }
17804            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17805 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17806    { (exit 1); exit 1; }; }
17807         fi
17808      fi
17809      SQL_INCLUDE=-I$SQLITE_INCDIR
17810      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17811      SQL_BINDIR=$SQLITE_BINDIR
17812      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17813
17814      cat >>confdefs.h <<\_ACEOF
17815 #define HAVE_SQLITE3 1
17816 _ACEOF
17817
17818      { echo "$as_me:$LINENO: result: yes" >&5
17819 echo "${ECHO_T}yes" >&6; }
17820      db_found=yes
17821      support_sqlite3=yes
17822      db_type=SQLite3
17823      DB_TYPE=sqlite3
17824
17825   else
17826      { echo "$as_me:$LINENO: result: no" >&5
17827 echo "${ECHO_T}no" >&6; }
17828   fi
17829
17830 else
17831
17832   { echo "$as_me:$LINENO: result: no" >&5
17833 echo "${ECHO_T}no" >&6; }
17834
17835 fi
17836
17837
17838
17839
17840
17841
17842
17843
17844 db_found=no
17845 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17846 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17847
17848 # Check whether --with-sqlite was given.
17849 if test "${with_sqlite+set}" = set; then
17850   withval=$with_sqlite;
17851   if test "$withval" != "no"; then
17852      if test "$withval" = "yes"; then
17853         if test -f /usr/local/include/sqlite.h; then
17854            SQLITE_INCDIR=/usr/local/include
17855            if test -d /usr/local/lib64; then
17856               SQLITE_LIBDIR=/usr/local/lib64
17857            else
17858               SQLITE_LIBDIR=/usr/local/lib
17859            fi
17860            SQLITE_BINDIR=/usr/local/bin
17861         elif test -f /usr/include/sqlite.h; then
17862            SQLITE_INCDIR=/usr/include
17863            if test -d /usr/lib64; then
17864               SQLITE_LIBDIR=/usr/lib64
17865            else
17866               SQLITE_LIBDIR=/usr/lib
17867            fi
17868            SQLITE_BINDIR=/usr/bin
17869         elif test -f $prefix/include/sqlite.h; then
17870            SQLITE_INCDIR=$prefix/include
17871            if test -d $prefix/lib64; then
17872               SQLITE_LIBDIR=$prefix/lib64
17873            else
17874               SQLITE_LIBDIR=$prefix/lib
17875            fi
17876            SQLITE_BINDIR=$prefix/bin
17877         else
17878            { echo "$as_me:$LINENO: result: no" >&5
17879 echo "${ECHO_T}no" >&6; }
17880            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17881 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17882    { (exit 1); exit 1; }; }
17883         fi
17884      else
17885         if test -f $withval/sqlite.h; then
17886            SQLITE_INCDIR=$withval
17887            SQLITE_LIBDIR=$withval
17888            SQLITE_BINDIR=$withval
17889         elif test -f $withval/include/sqlite.h; then
17890            SQLITE_INCDIR=$withval/include
17891            if test -d $withval/lib64; then
17892               SQLITE_LIBDIR=$withval/lib64
17893            else
17894               SQLITE_LIBDIR=$withval/lib
17895            fi
17896            SQLITE_BINDIR=$withval/bin
17897         else
17898            { echo "$as_me:$LINENO: result: no" >&5
17899 echo "${ECHO_T}no" >&6; }
17900            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17901 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17902    { (exit 1); exit 1; }; }
17903         fi
17904      fi
17905      SQL_INCLUDE=-I$SQLITE_INCDIR
17906      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17907      SQL_BINDIR=$SQLITE_BINDIR
17908      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17909
17910      cat >>confdefs.h <<\_ACEOF
17911 #define HAVE_SQLITE 1
17912 _ACEOF
17913
17914      { echo "$as_me:$LINENO: result: yes" >&5
17915 echo "${ECHO_T}yes" >&6; }
17916      db_found=yes
17917      support_sqlite=yes
17918      db_type=SQLite
17919      DB_TYPE=sqlite
17920
17921   else
17922      { echo "$as_me:$LINENO: result: no" >&5
17923 echo "${ECHO_T}no" >&6; }
17924   fi
17925
17926 else
17927
17928   { echo "$as_me:$LINENO: result: no" >&5
17929 echo "${ECHO_T}no" >&6; }
17930
17931 fi
17932
17933
17934
17935
17936
17937
17938
17939
17940 db_found=no
17941 { echo "$as_me:$LINENO: checking for DBI support" >&5
17942 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17943
17944 # Check whether --with-dbi was given.
17945 if test "${with_dbi+set}" = set; then
17946   withval=$with_dbi;
17947   if test "$withval" != "no"; then
17948      if test "$withval" = "yes"; then
17949         if test -f /usr/local/include/dbi/dbi.h; then
17950            DBI_INCDIR=/usr/local/dbi/include
17951            if test -d /usr/local/lib64; then
17952               DBI_LIBDIR=/usr/local/lib64
17953            else
17954               DBI_LIBDIR=/usr/local/lib
17955            fi
17956            DBI_BINDIR=/usr/local/bin
17957         elif test -f /usr/include/dbi/dbi.h; then
17958            DBI_INCDIR=/usr/include
17959            if test -d /usr/lib64; then
17960               DBI_LIBDIR=/usr/lib64
17961            else
17962               DBI_LIBDIR=/usr/lib
17963            fi
17964            DBI_BINDIR=/usr/bin
17965         elif test -f $prefix/include/dbi/dbi.h; then
17966            DBI_INCDIR=$prefix/include
17967            if test -d $prefix/lib64; then
17968               DBI_LIBDIR=$prefix/lib64
17969            else
17970               DBI_LIBDIR=$prefix/lib
17971            fi
17972            DBI_BINDIR=$prefix/bin
17973         else
17974            { echo "$as_me:$LINENO: result: no" >&5
17975 echo "${ECHO_T}no" >&6; }
17976            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17977 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17978    { (exit 1); exit 1; }; }
17979         fi
17980         if test -d /usr/local/lib/dbd; then
17981            DRIVERDIR=/usr/local/lib/dbd
17982            if test -d /usr/local/lib64/dbd; then
17983               DRIVERDIR=/usr/local/lib64/dbd
17984            else
17985               DRIVERDIR=/usr/local/lib/dbd
17986            fi
17987         elif test -d /usr/lib/dbd; then
17988            DRIVERDIR=/usr/lib/dbd
17989            if test -d /usr/lib64/dbd; then
17990               DRIVERDIR=/usr/lib64/dbd
17991            else
17992               DRIVERDIR=/usr/lib/dbd
17993            fi
17994         elif test -d $prefix/lib/dbd; then
17995            if test -d $prefix/lib64/dbd; then
17996               DRIVERDIR=$prefix/lib64/dbd
17997            else
17998               DRIVERDIR=$prefix/lib/dbd
17999            fi
18000         else
18001            { echo "$as_me:$LINENO: result: no" >&5
18002 echo "${ECHO_T}no" >&6; }
18003            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
18004 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
18005    { (exit 1); exit 1; }; }
18006         fi
18007      else
18008         if test -f $withval/dbi.h; then
18009            DBI_INCDIR=$withval
18010            DBI_LIBDIR=$withval
18011            DBI_BINDIR=$withval
18012         elif test -f $withval/include/dbi/dbi.h; then
18013            DBI_INCDIR=$withval/include
18014            if test -d $withval/lib64; then
18015               DBI_LIBDIR=$withval/lib64
18016            else
18017               DBI_LIBDIR=$withval/lib
18018            fi
18019            DBI_BINDIR=$withval/bin
18020         else
18021            { echo "$as_me:$LINENO: result: no" >&5
18022 echo "${ECHO_T}no" >&6; }
18023            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
18024 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
18025    { (exit 1); exit 1; }; }
18026         fi
18027         if test -d $withval/dbd; then
18028            DRIVERDIR=$withval/dbd
18029         elif test -d $withval/lib/; then
18030            if test -d $withval/lib64/dbd; then
18031               DRIVERDIR=$withval/lib64/dbd
18032            else
18033               DRIVERDIR=$withval/lib/dbd
18034            fi
18035         else
18036            { echo "$as_me:$LINENO: result: no" >&5
18037 echo "${ECHO_T}no" >&6; }
18038            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
18039 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
18040    { (exit 1); exit 1; }; }
18041         fi
18042      fi
18043      SQL_INCLUDE=-I$DBI_INCDIR
18044      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
18045      SQL_BINDIR=$DBI_BINDIR
18046      SQL_LIB=$DBI_LIBDIR/libdbi.a
18047      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
18048
18049
18050 cat >>confdefs.h <<\_ACEOF
18051 #define HAVE_DBI 1
18052 _ACEOF
18053
18054      { echo "$as_me:$LINENO: result: yes" >&5
18055 echo "${ECHO_T}yes" >&6; }
18056      db_found=yes
18057      support_dbi=yes
18058      db_type=DBI
18059      DB_TYPE=dbi
18060      uncomment_dbi=" "
18061
18062   else
18063      { echo "$as_me:$LINENO: result: no" >&5
18064 echo "${ECHO_T}no" >&6; }
18065   fi
18066
18067 else
18068
18069   { echo "$as_me:$LINENO: result: no" >&5
18070 echo "${ECHO_T}no" >&6; }
18071
18072 fi
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083 db_found=no
18084 db_prog=no
18085 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18086 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18087
18088 # Check whether --with-dbi-driver was given.
18089 if test "${with_dbi_driver+set}" = set; then
18090   withval=$with_dbi_driver;
18091   if test "$withval" != "no"; then
18092      case $withval in
18093         "mysql")
18094            db_prog="mysql"
18095            if test -f /usr/local/mysql/bin/mysql; then
18096               SQL_BINDIR=/usr/local/mysql/bin
18097               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
18098                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
18099                  SQL_LIBDIR=/usr/local/mysql/lib64/mysql
18100               else
18101                  SQL_LIBDIR=/usr/local/mysql/lib/mysql
18102               fi
18103            elif test -f /usr/bin/mysql; then
18104               SQL_BINDIR=/usr/bin
18105               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
18106                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
18107                   SQL_LIBDIR=/usr/lib64/mysql
18108               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
18109                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
18110                   SQL_LIBDIR=/usr/lib/mysql
18111               else
18112                   SQL_LIBDIR=/usr/lib
18113               fi
18114            elif test -f /usr/local/bin/mysql; then
18115               SQL_BINDIR=/usr/local/bin
18116               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
18117                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
18118                   SQL_LIBDIR=/usr/local/lib64/mysql
18119               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
18120                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
18121                   SQL_LIBDIR=/usr/local/lib/mysql
18122               else
18123                   SQL_LIBDIR=/usr/local/lib
18124               fi
18125            elif test -f $withval/bin/mysql; then
18126               SQL_BINDIR=$withval/bin
18127               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
18128                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
18129                   SQL_LIBDIR=$withval/lib64/mysql
18130               elif test -f $withval/lib64/libmysqlclient_r.a \
18131                   -o -f $withval/lib64/libmysqlclient_r.so; then
18132                   SQL_LIBDIR=$withval/lib64
18133               elif test -f $withval/lib/libmysqlclient_r.a \
18134                   -o -f $withval/lib/libmysqlclient_r.so; then
18135                   SQL_LIBDIR=$withval/lib/
18136               else
18137                   SQL_LIBDIR=$withval/lib/mysql
18138               fi
18139            else
18140               { echo "$as_me:$LINENO: result: no" >&5
18141 echo "${ECHO_T}no" >&6; }
18142               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18143 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18144    { (exit 1); exit 1; }; }
18145            fi
18146            DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
18147         ;;
18148         "postgresql")
18149            db_prog="postgresql"
18150            PG_CONFIG=`which pg_config`
18151            if test -n "$PG_CONFIG"; then
18152               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18153               SQL_LIBDIR=`"$PG_CONFIG" --libdir`
18154            elif test -f /usr/local/bin/psql; then
18155               SQL_BINDIR=/usr/local/bin
18156               if test -d /usr/local/lib64; then
18157                  SQL_LIBDIR=/usr/local/lib64
18158               else
18159                  SQL_LIBDIR=/usr/local/lib
18160               fi
18161            elif test -f /usr/bin/psql; then
18162               SQL_BINDIR=/usr/local/bin
18163               if test -d /usr/lib64/postgresql; then
18164                  SQL_LIBDIR=/usr/lib64/postgresql
18165               elif test -d /usr/lib/postgresql; then
18166                  SQL_LIBDIR=/usr/lib/postgresql
18167               elif test -d /usr/lib64; then
18168                  SQL_LIBDIR=/usr/lib64
18169               else
18170                  SQL_LIBDIR=/usr/lib
18171               fi
18172            elif test -f $withval/bin/psql; then
18173               SQL_BINDIR=$withval/bin
18174               if test -d $withval/lib64; then
18175                  SQL_LIBDIR=$withval/lib64
18176               else
18177                  SQL_LIBDIR=$withval/lib
18178               fi
18179            else
18180               { echo "$as_me:$LINENO: result: no" >&5
18181 echo "${ECHO_T}no" >&6; }
18182               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18183 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18184    { (exit 1); exit 1; }; }
18185            fi
18186            DB_PROG_LIB=$SQL_LIBDIR/libpq.a
18187         ;;
18188         "sqlite")
18189            db_prog="sqlite"
18190            if test -f /usr/local/bin/sqlite; then
18191               SQL_BINDIR=/usr/local/bin
18192               if test -d /usr/local/lib64; then
18193                  SQL_LIBDIR=/usr/local/lib64
18194               else
18195                  SQL_LIBDIR=/usr/local/lib
18196               fi
18197            elif test -f /usr/bin/sqlite; then
18198               SQL_BINDIR=/usr/bin
18199               if test -d /usr/lib64; then
18200                  SQL_LIBDIR=/usr/lib64
18201               else
18202                  SQL_LIBDIR=/usr/lib
18203               fi
18204            elif test -f $withval/bin/sqlite; then
18205               SQL_BINDIR=$withval/bin
18206               if test -d $withval/lib64; then
18207                  SQL_LIBDIR=$withval/lib64
18208               else
18209                  SQL_LIBDIR=$withval/lib
18210               fi
18211            else
18212               { echo "$as_me:$LINENO: result: no" >&5
18213 echo "${ECHO_T}no" >&6; }
18214               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18215 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18216    { (exit 1); exit 1; }; }
18217            fi
18218            DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
18219         ;;
18220         "sqlite3")
18221            db_prog="sqlite3"
18222            if test -f /usr/local/bin/sqlite3; then
18223               SQL_BINDIR=/usr/local/bin
18224               if test -d /usr/local/lib64; then
18225                  SQL_LIBDIR=/usr/local/lib64
18226               else
18227                  SQL_LIBDIR=/usr/local/lib
18228               fi
18229            elif test -f /usr/bin/sqlite3; then
18230               SQL_BINDIR=/usr/bin
18231               if test -d /usr/lib64; then
18232                  SQL_LIBDIR=/usr/lib64
18233               else
18234                  SQL_LIBDIR=/usr/lib
18235               fi
18236            elif test -f $withval/bin/sqlite3; then
18237               SQL_BINDIR=$withval/bin
18238               if test -d $withval/lib64; then
18239                  SQL_LIBDIR=$withval/lib64
18240               else
18241                  SQL_LIBDIR=$withval/lib
18242               fi
18243            else
18244               { echo "$as_me:$LINENO: result: no" >&5
18245 echo "${ECHO_T}no" >&6; }
18246               { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
18247 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
18248    { (exit 1); exit 1; }; }
18249            fi
18250            DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
18251         ;;
18252         *)
18253            { echo "$as_me:$LINENO: result: no" >&5
18254 echo "${ECHO_T}no" >&6; }
18255            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18256 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18257    { (exit 1); exit 1; }; }
18258         ;;
18259      esac
18260
18261      { echo "$as_me:$LINENO: result: yes" >&5
18262 echo "${ECHO_T}yes" >&6; }
18263      DB_PROG=$db_prog
18264   else
18265      { echo "$as_me:$LINENO: result: no" >&5
18266 echo "${ECHO_T}no" >&6; }
18267   fi
18268
18269 else
18270
18271   { echo "$as_me:$LINENO: result: no" >&5
18272 echo "${ECHO_T}no" >&6; }
18273
18274 fi
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285 # -------------------------------------------
18286 # enable batch attribute DB insert (default on)
18287 # -------------------------------------------
18288 support_batch_insert=no
18289 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18290 pkg=$?
18291 if test $pkg = 0; then
18292    support_batch_insert=yes
18293    # Check whether --enable-batch-insert was given.
18294 if test "${enable_batch_insert+set}" = set; then
18295   enableval=$enable_batch_insert; if test x$enableval = xno; then
18296        support_batch_insert=no
18297       else
18298        support_batch_insert=yes
18299      fi
18300 fi
18301
18302 fi
18303
18304 # Check if postgresql support batch mode
18305 if test x$DB_TYPE = xpostgresql; then
18306    A=`nm $SQL_LIB | grep PQputCopyData`
18307    pkg=$?
18308    if test $pkg != 0; then
18309       support_batch_insert=no
18310    fi
18311 fi
18312
18313 if test x$DB_TYPE = xdbi; then
18314    DB_TYPE=$DB_PROG
18315    db_type=$DB_PROG
18316    pkg=1
18317    # Check for batch insert
18318    if test $DB_PROG = postgresql; then
18319       A=`nm $DB_PROG_LIB | grep PQputCopyData`
18320       pkg=$?
18321    fi
18322
18323    if test $DB_PROG = mysql; then
18324       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18325       pkg=$?
18326    fi
18327
18328    if test $DB_PROG = sqlite3; then
18329       A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
18330       pkg=$?
18331    fi
18332
18333    if test $pkg = 0; then
18334       # Check whether --enable-batch-insert was given.
18335 if test "${enable_batch_insert+set}" = set; then
18336   enableval=$enable_batch_insert; if test x$enableval = xno; then
18337          support_batch_insert=no
18338        else
18339          support_batch_insert=yes
18340       fi
18341 fi
18342
18343    fi
18344 else
18345 # If dbi was not chosen, let the comment in file
18346 uncomment_dbi="#"
18347 fi
18348
18349
18350
18351 if test $support_batch_insert = yes ; then
18352
18353 cat >>confdefs.h <<\_ACEOF
18354 #define HAVE_BATCH_FILE_INSERT 1
18355 _ACEOF
18356
18357 fi
18358
18359
18360 cat >>confdefs.h <<\_ACEOF
18361 #define PROTOTYPES 1
18362 _ACEOF
18363
18364
18365 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18366     if test -z "$CCOPTS"; then
18367         CCOPTS='-g -O2 -Wall'
18368     fi
18369     CFLAGS="$CCOPTS"
18370 fi
18371
18372
18373
18374
18375 largefile_support="no"
18376
18377    # Check whether --enable-largefile was given.
18378 if test "${enable_largefile+set}" = set; then
18379   enableval=$enable_largefile;
18380 fi
18381
18382    if test "$enable_largefile" != no; then
18383      if test -n "$ac_tool_prefix"; then
18384   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18385 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_prog_GETCONF+set}" = set; then
18389   echo $ECHO_N "(cached) $ECHO_C" >&6
18390 else
18391   if test -n "$GETCONF"; then
18392   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18393 else
18394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18395 for as_dir in $PATH
18396 do
18397   IFS=$as_save_IFS
18398   test -z "$as_dir" && as_dir=.
18399   for ac_exec_ext in '' $ac_executable_extensions; do
18400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18401     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18403     break 2
18404   fi
18405 done
18406 done
18407 IFS=$as_save_IFS
18408
18409 fi
18410 fi
18411 GETCONF=$ac_cv_prog_GETCONF
18412 if test -n "$GETCONF"; then
18413   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18414 echo "${ECHO_T}$GETCONF" >&6; }
18415 else
18416   { echo "$as_me:$LINENO: result: no" >&5
18417 echo "${ECHO_T}no" >&6; }
18418 fi
18419
18420
18421 fi
18422 if test -z "$ac_cv_prog_GETCONF"; then
18423   ac_ct_GETCONF=$GETCONF
18424   # Extract the first word of "getconf", so it can be a program name with args.
18425 set dummy getconf; ac_word=$2
18426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18428 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18429   echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431   if test -n "$ac_ct_GETCONF"; then
18432   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18433 else
18434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18435 for as_dir in $PATH
18436 do
18437   IFS=$as_save_IFS
18438   test -z "$as_dir" && as_dir=.
18439   for ac_exec_ext in '' $ac_executable_extensions; do
18440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18441     ac_cv_prog_ac_ct_GETCONF="getconf"
18442     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18443     break 2
18444   fi
18445 done
18446 done
18447 IFS=$as_save_IFS
18448
18449 fi
18450 fi
18451 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18452 if test -n "$ac_ct_GETCONF"; then
18453   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18454 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18455 else
18456   { echo "$as_me:$LINENO: result: no" >&5
18457 echo "${ECHO_T}no" >&6; }
18458 fi
18459
18460   if test "x$ac_ct_GETCONF" = x; then
18461     GETCONF=""
18462   else
18463     case $cross_compiling:$ac_tool_warned in
18464 yes:)
18465 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18466 whose name does not start with the host triplet.  If you think this
18467 configuration is useful to you, please write to autoconf@gnu.org." >&5
18468 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18469 whose name does not start with the host triplet.  If you think this
18470 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18471 ac_tool_warned=yes ;;
18472 esac
18473     GETCONF=$ac_ct_GETCONF
18474   fi
18475 else
18476   GETCONF="$ac_cv_prog_GETCONF"
18477 fi
18478
18479      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18480 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18481 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18482   echo $ECHO_N "(cached) $ECHO_C" >&6
18483 else
18484   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18485         ac_cv_sys_largefile_CFLAGS=no
18486         case "$host_os" in
18487            # IRIX 6.2 and later require cc -n32.
18488            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18489              if test "$GCC" != yes; then
18490                ac_cv_sys_largefile_CFLAGS=-n32
18491              fi
18492              ac_save_CC="$CC"
18493              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18494              cat >conftest.$ac_ext <<_ACEOF
18495 /* confdefs.h.  */
18496 _ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h.  */
18500
18501 int
18502 main ()
18503 {
18504
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_link") 2>conftest.er1
18517   ac_status=$?
18518   grep -v '^ *+' conftest.er1 >conftest.err
18519   rm -f conftest.er1
18520   cat conftest.err >&5
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } && {
18523          test -z "$ac_c_werror_flag" ||
18524          test ! -s conftest.err
18525        } && test -s conftest$ac_exeext &&
18526        $as_test_x conftest$ac_exeext; then
18527   :
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532         ac_cv_sys_largefile_CFLAGS=no
18533 fi
18534
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536       conftest$ac_exeext conftest.$ac_ext
18537              CC="$ac_save_CC"
18538            esac
18539       }
18540 fi
18541 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18542 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18543      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18544 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18545 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18546   echo $ECHO_N "(cached) $ECHO_C" >&6
18547 else
18548   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18549         ac_cv_sys_largefile_LDFLAGS=no
18550
18551       }
18552 fi
18553 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18554 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18555      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18556 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18557 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18558   echo $ECHO_N "(cached) $ECHO_C" >&6
18559 else
18560   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18561         ac_cv_sys_largefile_LIBS=no
18562
18563       }
18564 fi
18565 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18566 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18567
18568      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18569        case "$ac_flag" in
18570        no) ;;
18571        -D_FILE_OFFSET_BITS=*) ;;
18572        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18573        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18574        -D?* | -I?*)
18575          case "$ac_flag" in
18576    no) ;;
18577    ?*)
18578      case "$CPPFLAGS" in
18579      '') CPPFLAGS="$ac_flag" ;;
18580      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18581      esac ;;
18582    esac ;;
18583        *)
18584          case "$ac_flag" in
18585    no) ;;
18586    ?*)
18587      case "$CFLAGS" in
18588      '') CFLAGS="$ac_flag" ;;
18589      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18590      esac ;;
18591    esac ;;
18592        esac
18593      done
18594      case "$ac_cv_sys_largefile_LDFLAGS" in
18595    no) ;;
18596    ?*)
18597      case "$LDFLAGS" in
18598      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18599      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18600      esac ;;
18601    esac
18602      case "$ac_cv_sys_largefile_LIBS" in
18603    no) ;;
18604    ?*)
18605      case "$LIBS" in
18606      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18607      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18608      esac ;;
18609    esac
18610      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18611 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18612 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18613   echo $ECHO_N "(cached) $ECHO_C" >&6
18614 else
18615   ac_cv_sys_file_offset_bits=no
18616       ac_cv_sys_file_offset_bits=64
18617       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18618         case "$ac_flag" in
18619         -D_FILE_OFFSET_BITS)
18620           ac_cv_sys_file_offset_bits=1 ;;
18621         -D_FILE_OFFSET_BITS=*)
18622           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18623         esac
18624       done
18625
18626 fi
18627 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18628 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18629    if test "$ac_cv_sys_file_offset_bits" != no; then
18630
18631 cat >>confdefs.h <<_ACEOF
18632 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18633 _ACEOF
18634
18635    fi
18636      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18637 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18638 if test "${ac_cv_sys_largefile_source+set}" = set; then
18639   echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641   ac_cv_sys_largefile_source=no
18642       ac_cv_sys_largefile_source=1
18643       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18644         case "$ac_flag" in
18645         -D_LARGEFILE_SOURCE)
18646           ac_cv_sys_largefile_source=1 ;;
18647         -D_LARGEFILE_SOURCE=*)
18648           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18649         esac
18650       done
18651
18652 fi
18653 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18654 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18655    if test "$ac_cv_sys_largefile_source" != no; then
18656
18657 cat >>confdefs.h <<_ACEOF
18658 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18659 _ACEOF
18660
18661    fi
18662      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18663 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18664 if test "${ac_cv_sys_large_files+set}" = set; then
18665   echo $ECHO_N "(cached) $ECHO_C" >&6
18666 else
18667   ac_cv_sys_large_files=no
18668       ac_cv_sys_large_files=1
18669       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18670         case "$ac_flag" in
18671         -D_LARGE_FILES)
18672           ac_cv_sys_large_files=1 ;;
18673         -D_LARGE_FILES=*)
18674           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18675         esac
18676       done
18677
18678 fi
18679 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18680 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18681    if test "$ac_cv_sys_large_files" != no; then
18682
18683 cat >>confdefs.h <<_ACEOF
18684 #define _LARGE_FILES $ac_cv_sys_large_files
18685 _ACEOF
18686
18687    fi
18688    fi
18689
18690
18691
18692 { echo "$as_me:$LINENO: checking for X" >&5
18693 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18694
18695
18696 # Check whether --with-x was given.
18697 if test "${with_x+set}" = set; then
18698   withval=$with_x;
18699 fi
18700
18701 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18702 if test "x$with_x" = xno; then
18703   # The user explicitly disabled X.
18704   have_x=disabled
18705 else
18706   case $x_includes,$x_libraries in #(
18707     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18708 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18709    { (exit 1); exit 1; }; };; #(
18710     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18711   echo $ECHO_N "(cached) $ECHO_C" >&6
18712 else
18713   # One or both of the vars are not set, and there is no cached value.
18714 ac_x_includes=no ac_x_libraries=no
18715 rm -f -r conftest.dir
18716 if mkdir conftest.dir; then
18717   cd conftest.dir
18718   cat >Imakefile <<'_ACEOF'
18719 incroot:
18720         @echo incroot='${INCROOT}'
18721 usrlibdir:
18722         @echo usrlibdir='${USRLIBDIR}'
18723 libdir:
18724         @echo libdir='${LIBDIR}'
18725 _ACEOF
18726   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18727     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18728     for ac_var in incroot usrlibdir libdir; do
18729       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18730     done
18731     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18732     for ac_extension in a so sl; do
18733       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18734          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18735         ac_im_usrlibdir=$ac_im_libdir; break
18736       fi
18737     done
18738     # Screen out bogus values from the imake configuration.  They are
18739     # bogus both because they are the default anyway, and because
18740     # using them would break gcc on systems where it needs fixed includes.
18741     case $ac_im_incroot in
18742         /usr/include) ac_x_includes= ;;
18743         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18744     esac
18745     case $ac_im_usrlibdir in
18746         /usr/lib | /lib) ;;
18747         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18748     esac
18749   fi
18750   cd ..
18751   rm -f -r conftest.dir
18752 fi
18753
18754 # Standard set of common directories for X headers.
18755 # Check X11 before X11Rn because it is often a symlink to the current release.
18756 ac_x_header_dirs='
18757 /usr/X11/include
18758 /usr/X11R6/include
18759 /usr/X11R5/include
18760 /usr/X11R4/include
18761
18762 /usr/include/X11
18763 /usr/include/X11R6
18764 /usr/include/X11R5
18765 /usr/include/X11R4
18766
18767 /usr/local/X11/include
18768 /usr/local/X11R6/include
18769 /usr/local/X11R5/include
18770 /usr/local/X11R4/include
18771
18772 /usr/local/include/X11
18773 /usr/local/include/X11R6
18774 /usr/local/include/X11R5
18775 /usr/local/include/X11R4
18776
18777 /usr/X386/include
18778 /usr/x386/include
18779 /usr/XFree86/include/X11
18780
18781 /usr/include
18782 /usr/local/include
18783 /usr/unsupported/include
18784 /usr/athena/include
18785 /usr/local/x11r5/include
18786 /usr/lpp/Xamples/include
18787
18788 /usr/openwin/include
18789 /usr/openwin/share/include'
18790
18791 if test "$ac_x_includes" = no; then
18792   # Guess where to find include files, by looking for Xlib.h.
18793   # First, try using that file with no special directory specified.
18794   cat >conftest.$ac_ext <<_ACEOF
18795 /* confdefs.h.  */
18796 _ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h.  */
18800 #include <X11/Xlib.h>
18801 _ACEOF
18802 if { (ac_try="$ac_cpp conftest.$ac_ext"
18803 case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18809   ac_status=$?
18810   grep -v '^ *+' conftest.er1 >conftest.err
18811   rm -f conftest.er1
18812   cat conftest.err >&5
18813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814   (exit $ac_status); } >/dev/null && {
18815          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18816          test ! -s conftest.err
18817        }; then
18818   # We can compile using X headers with no special include directory.
18819 ac_x_includes=
18820 else
18821   echo "$as_me: failed program was:" >&5
18822 sed 's/^/| /' conftest.$ac_ext >&5
18823
18824   for ac_dir in $ac_x_header_dirs; do
18825   if test -r "$ac_dir/X11/Xlib.h"; then
18826     ac_x_includes=$ac_dir
18827     break
18828   fi
18829 done
18830 fi
18831
18832 rm -f conftest.err conftest.$ac_ext
18833 fi # $ac_x_includes = no
18834
18835 if test "$ac_x_libraries" = no; then
18836   # Check for the libraries.
18837   # See if we find them without any special options.
18838   # Don't add to $LIBS permanently.
18839   ac_save_LIBS=$LIBS
18840   LIBS="-lX11 $LIBS"
18841   cat >conftest.$ac_ext <<_ACEOF
18842 /* confdefs.h.  */
18843 _ACEOF
18844 cat confdefs.h >>conftest.$ac_ext
18845 cat >>conftest.$ac_ext <<_ACEOF
18846 /* end confdefs.h.  */
18847 #include <X11/Xlib.h>
18848 int
18849 main ()
18850 {
18851 XrmInitialize ()
18852   ;
18853   return 0;
18854 }
18855 _ACEOF
18856 rm -f conftest.$ac_objext conftest$ac_exeext
18857 if { (ac_try="$ac_link"
18858 case "(($ac_try" in
18859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18860   *) ac_try_echo=$ac_try;;
18861 esac
18862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18863   (eval "$ac_link") 2>conftest.er1
18864   ac_status=$?
18865   grep -v '^ *+' conftest.er1 >conftest.err
18866   rm -f conftest.er1
18867   cat conftest.err >&5
18868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869   (exit $ac_status); } && {
18870          test -z "$ac_c_werror_flag" ||
18871          test ! -s conftest.err
18872        } && test -s conftest$ac_exeext &&
18873        $as_test_x conftest$ac_exeext; then
18874   LIBS=$ac_save_LIBS
18875 # We can link X programs with no special library path.
18876 ac_x_libraries=
18877 else
18878   echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18880
18881         LIBS=$ac_save_LIBS
18882 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18883 do
18884   # Don't even attempt the hair of trying to link an X program!
18885   for ac_extension in a so sl; do
18886     if test -r "$ac_dir/libX11.$ac_extension"; then
18887       ac_x_libraries=$ac_dir
18888       break 2
18889     fi
18890   done
18891 done
18892 fi
18893
18894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18895       conftest$ac_exeext conftest.$ac_ext
18896 fi # $ac_x_libraries = no
18897
18898 case $ac_x_includes,$ac_x_libraries in #(
18899   no,* | *,no | *\'*)
18900     # Didn't find X, or a directory has "'" in its name.
18901     ac_cv_have_x="have_x=no";; #(
18902   *)
18903     # Record where we found X for the cache.
18904     ac_cv_have_x="have_x=yes\
18905         ac_x_includes='$ac_x_includes'\
18906         ac_x_libraries='$ac_x_libraries'"
18907 esac
18908 fi
18909 ;; #(
18910     *) have_x=yes;;
18911   esac
18912   eval "$ac_cv_have_x"
18913 fi # $with_x != no
18914
18915 if test "$have_x" != yes; then
18916   { echo "$as_me:$LINENO: result: $have_x" >&5
18917 echo "${ECHO_T}$have_x" >&6; }
18918   no_x=yes
18919 else
18920   # If each of the values was on the command line, it overrides each guess.
18921   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18922   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18923   # Update the cache value to reflect the command line values.
18924   ac_cv_have_x="have_x=yes\
18925         ac_x_includes='$x_includes'\
18926         ac_x_libraries='$x_libraries'"
18927   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18928 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18929 fi
18930
18931 if test "$no_x" = yes; then
18932   # Not all programs may use this symbol, but it does not hurt to define it.
18933
18934 cat >>confdefs.h <<\_ACEOF
18935 #define X_DISPLAY_MISSING 1
18936 _ACEOF
18937
18938   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18939 else
18940   if test -n "$x_includes"; then
18941     X_CFLAGS="$X_CFLAGS -I$x_includes"
18942   fi
18943
18944   # It would also be nice to do this for all -L options, not just this one.
18945   if test -n "$x_libraries"; then
18946     X_LIBS="$X_LIBS -L$x_libraries"
18947     # For Solaris; some versions of Sun CC require a space after -R and
18948     # others require no space.  Words are not sufficient . . . .
18949     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18950 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18951     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18952     ac_xsave_c_werror_flag=$ac_c_werror_flag
18953     ac_c_werror_flag=yes
18954     cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960
18961 int
18962 main ()
18963 {
18964
18965   ;
18966   return 0;
18967 }
18968 _ACEOF
18969 rm -f conftest.$ac_objext conftest$ac_exeext
18970 if { (ac_try="$ac_link"
18971 case "(($ac_try" in
18972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18973   *) ac_try_echo=$ac_try;;
18974 esac
18975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18976   (eval "$ac_link") 2>conftest.er1
18977   ac_status=$?
18978   grep -v '^ *+' conftest.er1 >conftest.err
18979   rm -f conftest.er1
18980   cat conftest.err >&5
18981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18982   (exit $ac_status); } && {
18983          test -z "$ac_c_werror_flag" ||
18984          test ! -s conftest.err
18985        } && test -s conftest$ac_exeext &&
18986        $as_test_x conftest$ac_exeext; then
18987   { echo "$as_me:$LINENO: result: no" >&5
18988 echo "${ECHO_T}no" >&6; }
18989        X_LIBS="$X_LIBS -R$x_libraries"
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994         LIBS="$ac_xsave_LIBS -R $x_libraries"
18995        cat >conftest.$ac_ext <<_ACEOF
18996 /* confdefs.h.  */
18997 _ACEOF
18998 cat confdefs.h >>conftest.$ac_ext
18999 cat >>conftest.$ac_ext <<_ACEOF
19000 /* end confdefs.h.  */
19001
19002 int
19003 main ()
19004 {
19005
19006   ;
19007   return 0;
19008 }
19009 _ACEOF
19010 rm -f conftest.$ac_objext conftest$ac_exeext
19011 if { (ac_try="$ac_link"
19012 case "(($ac_try" in
19013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19014   *) ac_try_echo=$ac_try;;
19015 esac
19016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19017   (eval "$ac_link") 2>conftest.er1
19018   ac_status=$?
19019   grep -v '^ *+' conftest.er1 >conftest.err
19020   rm -f conftest.er1
19021   cat conftest.err >&5
19022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023   (exit $ac_status); } && {
19024          test -z "$ac_c_werror_flag" ||
19025          test ! -s conftest.err
19026        } && test -s conftest$ac_exeext &&
19027        $as_test_x conftest$ac_exeext; then
19028   { echo "$as_me:$LINENO: result: yes" >&5
19029 echo "${ECHO_T}yes" >&6; }
19030           X_LIBS="$X_LIBS -R $x_libraries"
19031 else
19032   echo "$as_me: failed program was:" >&5
19033 sed 's/^/| /' conftest.$ac_ext >&5
19034
19035         { echo "$as_me:$LINENO: result: neither works" >&5
19036 echo "${ECHO_T}neither works" >&6; }
19037 fi
19038
19039 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19040       conftest$ac_exeext conftest.$ac_ext
19041 fi
19042
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044       conftest$ac_exeext conftest.$ac_ext
19045     ac_c_werror_flag=$ac_xsave_c_werror_flag
19046     LIBS=$ac_xsave_LIBS
19047   fi
19048
19049   # Check for system-dependent libraries X programs must link with.
19050   # Do this before checking for the system-independent R6 libraries
19051   # (-lICE), since we may need -lsocket or whatever for X linking.
19052
19053   if test "$ISC" = yes; then
19054     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19055   else
19056     # Martyn Johnson says this is needed for Ultrix, if the X
19057     # libraries were built with DECnet support.  And Karl Berry says
19058     # the Alpha needs dnet_stub (dnet does not exist).
19059     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19060     cat >conftest.$ac_ext <<_ACEOF
19061 /* confdefs.h.  */
19062 _ACEOF
19063 cat confdefs.h >>conftest.$ac_ext
19064 cat >>conftest.$ac_ext <<_ACEOF
19065 /* end confdefs.h.  */
19066
19067 /* Override any GCC internal prototype to avoid an error.
19068    Use char because int might match the return type of a GCC
19069    builtin and then its argument prototype would still apply.  */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char XOpenDisplay ();
19074 int
19075 main ()
19076 {
19077 return XOpenDisplay ();
19078   ;
19079   return 0;
19080 }
19081 _ACEOF
19082 rm -f conftest.$ac_objext conftest$ac_exeext
19083 if { (ac_try="$ac_link"
19084 case "(($ac_try" in
19085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19086   *) ac_try_echo=$ac_try;;
19087 esac
19088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19089   (eval "$ac_link") 2>conftest.er1
19090   ac_status=$?
19091   grep -v '^ *+' conftest.er1 >conftest.err
19092   rm -f conftest.er1
19093   cat conftest.err >&5
19094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19095   (exit $ac_status); } && {
19096          test -z "$ac_c_werror_flag" ||
19097          test ! -s conftest.err
19098        } && test -s conftest$ac_exeext &&
19099        $as_test_x conftest$ac_exeext; then
19100   :
19101 else
19102   echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19104
19105         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19106 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
19107 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19108   echo $ECHO_N "(cached) $ECHO_C" >&6
19109 else
19110   ac_check_lib_save_LIBS=$LIBS
19111 LIBS="-ldnet  $LIBS"
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h.  */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h.  */
19118
19119 /* Override any GCC internal prototype to avoid an error.
19120    Use char because int might match the return type of a GCC
19121    builtin and then its argument prototype would still apply.  */
19122 #ifdef __cplusplus
19123 extern "C"
19124 #endif
19125 char dnet_ntoa ();
19126 int
19127 main ()
19128 {
19129 return dnet_ntoa ();
19130   ;
19131   return 0;
19132 }
19133 _ACEOF
19134 rm -f conftest.$ac_objext conftest$ac_exeext
19135 if { (ac_try="$ac_link"
19136 case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19141   (eval "$ac_link") 2>conftest.er1
19142   ac_status=$?
19143   grep -v '^ *+' conftest.er1 >conftest.err
19144   rm -f conftest.er1
19145   cat conftest.err >&5
19146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147   (exit $ac_status); } && {
19148          test -z "$ac_c_werror_flag" ||
19149          test ! -s conftest.err
19150        } && test -s conftest$ac_exeext &&
19151        $as_test_x conftest$ac_exeext; then
19152   ac_cv_lib_dnet_dnet_ntoa=yes
19153 else
19154   echo "$as_me: failed program was:" >&5
19155 sed 's/^/| /' conftest.$ac_ext >&5
19156
19157         ac_cv_lib_dnet_dnet_ntoa=no
19158 fi
19159
19160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19161       conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19163 fi
19164 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19165 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19166 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19167   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19168 fi
19169
19170     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19171       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19172 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
19173 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19174   echo $ECHO_N "(cached) $ECHO_C" >&6
19175 else
19176   ac_check_lib_save_LIBS=$LIBS
19177 LIBS="-ldnet_stub  $LIBS"
19178 cat >conftest.$ac_ext <<_ACEOF
19179 /* confdefs.h.  */
19180 _ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h.  */
19184
19185 /* Override any GCC internal prototype to avoid an error.
19186    Use char because int might match the return type of a GCC
19187    builtin and then its argument prototype would still apply.  */
19188 #ifdef __cplusplus
19189 extern "C"
19190 #endif
19191 char dnet_ntoa ();
19192 int
19193 main ()
19194 {
19195 return dnet_ntoa ();
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest.$ac_objext conftest$ac_exeext
19201 if { (ac_try="$ac_link"
19202 case "(($ac_try" in
19203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204   *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207   (eval "$ac_link") 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } && {
19214          test -z "$ac_c_werror_flag" ||
19215          test ! -s conftest.err
19216        } && test -s conftest$ac_exeext &&
19217        $as_test_x conftest$ac_exeext; then
19218   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19219 else
19220   echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19222
19223         ac_cv_lib_dnet_stub_dnet_ntoa=no
19224 fi
19225
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227       conftest$ac_exeext conftest.$ac_ext
19228 LIBS=$ac_check_lib_save_LIBS
19229 fi
19230 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19231 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19232 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19233   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19234 fi
19235
19236     fi
19237 fi
19238
19239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19240       conftest$ac_exeext conftest.$ac_ext
19241     LIBS="$ac_xsave_LIBS"
19242
19243     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19244     # to get the SysV transport functions.
19245     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19246     # needs -lnsl.
19247     # The nsl library prevents programs from opening the X display
19248     # on Irix 5.2, according to T.E. Dickey.
19249     # The functions gethostbyname, getservbyname, and inet_addr are
19250     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19251     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19252 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19253 if test "${ac_cv_func_gethostbyname+set}" = set; then
19254   echo $ECHO_N "(cached) $ECHO_C" >&6
19255 else
19256   cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h.  */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h.  */
19262 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19264 #define gethostbyname innocuous_gethostbyname
19265
19266 /* System header to define __stub macros and hopefully few prototypes,
19267     which can conflict with char gethostbyname (); below.
19268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19269     <limits.h> exists even on freestanding compilers.  */
19270
19271 #ifdef __STDC__
19272 # include <limits.h>
19273 #else
19274 # include <assert.h>
19275 #endif
19276
19277 #undef gethostbyname
19278
19279 /* Override any GCC internal prototype to avoid an error.
19280    Use char because int might match the return type of a GCC
19281    builtin and then its argument prototype would still apply.  */
19282 #ifdef __cplusplus
19283 extern "C"
19284 #endif
19285 char gethostbyname ();
19286 /* The GNU C library defines this for functions which it implements
19287     to always fail with ENOSYS.  Some functions are actually named
19288     something starting with __ and the normal name is an alias.  */
19289 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19290 choke me
19291 #endif
19292
19293 int
19294 main ()
19295 {
19296 return gethostbyname ();
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (ac_try="$ac_link"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19308   (eval "$ac_link") 2>conftest.er1
19309   ac_status=$?
19310   grep -v '^ *+' conftest.er1 >conftest.err
19311   rm -f conftest.er1
19312   cat conftest.err >&5
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); } && {
19315          test -z "$ac_c_werror_flag" ||
19316          test ! -s conftest.err
19317        } && test -s conftest$ac_exeext &&
19318        $as_test_x conftest$ac_exeext; then
19319   ac_cv_func_gethostbyname=yes
19320 else
19321   echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324         ac_cv_func_gethostbyname=no
19325 fi
19326
19327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19328       conftest$ac_exeext conftest.$ac_ext
19329 fi
19330 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19331 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19332
19333     if test $ac_cv_func_gethostbyname = no; then
19334       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19335 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19336 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19337   echo $ECHO_N "(cached) $ECHO_C" >&6
19338 else
19339   ac_check_lib_save_LIBS=$LIBS
19340 LIBS="-lnsl  $LIBS"
19341 cat >conftest.$ac_ext <<_ACEOF
19342 /* confdefs.h.  */
19343 _ACEOF
19344 cat confdefs.h >>conftest.$ac_ext
19345 cat >>conftest.$ac_ext <<_ACEOF
19346 /* end confdefs.h.  */
19347
19348 /* Override any GCC internal prototype to avoid an error.
19349    Use char because int might match the return type of a GCC
19350    builtin and then its argument prototype would still apply.  */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char gethostbyname ();
19355 int
19356 main ()
19357 {
19358 return gethostbyname ();
19359   ;
19360   return 0;
19361 }
19362 _ACEOF
19363 rm -f conftest.$ac_objext conftest$ac_exeext
19364 if { (ac_try="$ac_link"
19365 case "(($ac_try" in
19366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367   *) ac_try_echo=$ac_try;;
19368 esac
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370   (eval "$ac_link") 2>conftest.er1
19371   ac_status=$?
19372   grep -v '^ *+' conftest.er1 >conftest.err
19373   rm -f conftest.er1
19374   cat conftest.err >&5
19375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376   (exit $ac_status); } && {
19377          test -z "$ac_c_werror_flag" ||
19378          test ! -s conftest.err
19379        } && test -s conftest$ac_exeext &&
19380        $as_test_x conftest$ac_exeext; then
19381   ac_cv_lib_nsl_gethostbyname=yes
19382 else
19383   echo "$as_me: failed program was:" >&5
19384 sed 's/^/| /' conftest.$ac_ext >&5
19385
19386         ac_cv_lib_nsl_gethostbyname=no
19387 fi
19388
19389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19390       conftest$ac_exeext conftest.$ac_ext
19391 LIBS=$ac_check_lib_save_LIBS
19392 fi
19393 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19394 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19395 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19396   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19397 fi
19398
19399       if test $ac_cv_lib_nsl_gethostbyname = no; then
19400         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19401 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lbsd  $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414 /* Override any GCC internal prototype to avoid an error.
19415    Use char because int might match the return type of a GCC
19416    builtin and then its argument prototype would still apply.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char gethostbyname ();
19421 int
19422 main ()
19423 {
19424 return gethostbyname ();
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_link") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest$ac_exeext &&
19446        $as_test_x conftest$ac_exeext; then
19447   ac_cv_lib_bsd_gethostbyname=yes
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452         ac_cv_lib_bsd_gethostbyname=no
19453 fi
19454
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456       conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19458 fi
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19460 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19461 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19462   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19463 fi
19464
19465       fi
19466     fi
19467
19468     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19469     # socket/setsockopt and other routines are undefined under SCO ODT
19470     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19471     # on later versions), says Simon Leinen: it contains gethostby*
19472     # variants that don't use the name server (or something).  -lsocket
19473     # must be given before -lnsl if both are needed.  We assume that
19474     # if connect needs -lnsl, so does gethostbyname.
19475     { echo "$as_me:$LINENO: checking for connect" >&5
19476 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19477 if test "${ac_cv_func_connect+set}" = set; then
19478   echo $ECHO_N "(cached) $ECHO_C" >&6
19479 else
19480   cat >conftest.$ac_ext <<_ACEOF
19481 /* confdefs.h.  */
19482 _ACEOF
19483 cat confdefs.h >>conftest.$ac_ext
19484 cat >>conftest.$ac_ext <<_ACEOF
19485 /* end confdefs.h.  */
19486 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19487    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19488 #define connect innocuous_connect
19489
19490 /* System header to define __stub macros and hopefully few prototypes,
19491     which can conflict with char connect (); below.
19492     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19493     <limits.h> exists even on freestanding compilers.  */
19494
19495 #ifdef __STDC__
19496 # include <limits.h>
19497 #else
19498 # include <assert.h>
19499 #endif
19500
19501 #undef connect
19502
19503 /* Override any GCC internal prototype to avoid an error.
19504    Use char because int might match the return type of a GCC
19505    builtin and then its argument prototype would still apply.  */
19506 #ifdef __cplusplus
19507 extern "C"
19508 #endif
19509 char connect ();
19510 /* The GNU C library defines this for functions which it implements
19511     to always fail with ENOSYS.  Some functions are actually named
19512     something starting with __ and the normal name is an alias.  */
19513 #if defined __stub_connect || defined __stub___connect
19514 choke me
19515 #endif
19516
19517 int
19518 main ()
19519 {
19520 return connect ();
19521   ;
19522   return 0;
19523 }
19524 _ACEOF
19525 rm -f conftest.$ac_objext conftest$ac_exeext
19526 if { (ac_try="$ac_link"
19527 case "(($ac_try" in
19528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529   *) ac_try_echo=$ac_try;;
19530 esac
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532   (eval "$ac_link") 2>conftest.er1
19533   ac_status=$?
19534   grep -v '^ *+' conftest.er1 >conftest.err
19535   rm -f conftest.er1
19536   cat conftest.err >&5
19537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538   (exit $ac_status); } && {
19539          test -z "$ac_c_werror_flag" ||
19540          test ! -s conftest.err
19541        } && test -s conftest$ac_exeext &&
19542        $as_test_x conftest$ac_exeext; then
19543   ac_cv_func_connect=yes
19544 else
19545   echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19547
19548         ac_cv_func_connect=no
19549 fi
19550
19551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19552       conftest$ac_exeext conftest.$ac_ext
19553 fi
19554 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19555 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19556
19557     if test $ac_cv_func_connect = no; then
19558       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19559 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19560 if test "${ac_cv_lib_socket_connect+set}" = set; then
19561   echo $ECHO_N "(cached) $ECHO_C" >&6
19562 else
19563   ac_check_lib_save_LIBS=$LIBS
19564 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19565 cat >conftest.$ac_ext <<_ACEOF
19566 /* confdefs.h.  */
19567 _ACEOF
19568 cat confdefs.h >>conftest.$ac_ext
19569 cat >>conftest.$ac_ext <<_ACEOF
19570 /* end confdefs.h.  */
19571
19572 /* Override any GCC internal prototype to avoid an error.
19573    Use char because int might match the return type of a GCC
19574    builtin and then its argument prototype would still apply.  */
19575 #ifdef __cplusplus
19576 extern "C"
19577 #endif
19578 char connect ();
19579 int
19580 main ()
19581 {
19582 return connect ();
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 rm -f conftest.$ac_objext conftest$ac_exeext
19588 if { (ac_try="$ac_link"
19589 case "(($ac_try" in
19590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591   *) ac_try_echo=$ac_try;;
19592 esac
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594   (eval "$ac_link") 2>conftest.er1
19595   ac_status=$?
19596   grep -v '^ *+' conftest.er1 >conftest.err
19597   rm -f conftest.er1
19598   cat conftest.err >&5
19599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600   (exit $ac_status); } && {
19601          test -z "$ac_c_werror_flag" ||
19602          test ! -s conftest.err
19603        } && test -s conftest$ac_exeext &&
19604        $as_test_x conftest$ac_exeext; then
19605   ac_cv_lib_socket_connect=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610         ac_cv_lib_socket_connect=no
19611 fi
19612
19613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19614       conftest$ac_exeext conftest.$ac_ext
19615 LIBS=$ac_check_lib_save_LIBS
19616 fi
19617 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19618 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19619 if test $ac_cv_lib_socket_connect = yes; then
19620   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19621 fi
19622
19623     fi
19624
19625     # Guillermo Gomez says -lposix is necessary on A/UX.
19626     { echo "$as_me:$LINENO: checking for remove" >&5
19627 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19628 if test "${ac_cv_func_remove+set}" = set; then
19629   echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631   cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h.  */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h.  */
19637 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19638    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19639 #define remove innocuous_remove
19640
19641 /* System header to define __stub macros and hopefully few prototypes,
19642     which can conflict with char remove (); below.
19643     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644     <limits.h> exists even on freestanding compilers.  */
19645
19646 #ifdef __STDC__
19647 # include <limits.h>
19648 #else
19649 # include <assert.h>
19650 #endif
19651
19652 #undef remove
19653
19654 /* Override any GCC internal prototype to avoid an error.
19655    Use char because int might match the return type of a GCC
19656    builtin and then its argument prototype would still apply.  */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char remove ();
19661 /* The GNU C library defines this for functions which it implements
19662     to always fail with ENOSYS.  Some functions are actually named
19663     something starting with __ and the normal name is an alias.  */
19664 #if defined __stub_remove || defined __stub___remove
19665 choke me
19666 #endif
19667
19668 int
19669 main ()
19670 {
19671 return remove ();
19672   ;
19673   return 0;
19674 }
19675 _ACEOF
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (ac_try="$ac_link"
19678 case "(($ac_try" in
19679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680   *) ac_try_echo=$ac_try;;
19681 esac
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683   (eval "$ac_link") 2>conftest.er1
19684   ac_status=$?
19685   grep -v '^ *+' conftest.er1 >conftest.err
19686   rm -f conftest.er1
19687   cat conftest.err >&5
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); } && {
19690          test -z "$ac_c_werror_flag" ||
19691          test ! -s conftest.err
19692        } && test -s conftest$ac_exeext &&
19693        $as_test_x conftest$ac_exeext; then
19694   ac_cv_func_remove=yes
19695 else
19696   echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699         ac_cv_func_remove=no
19700 fi
19701
19702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703       conftest$ac_exeext conftest.$ac_ext
19704 fi
19705 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19706 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19707
19708     if test $ac_cv_func_remove = no; then
19709       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19710 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19711 if test "${ac_cv_lib_posix_remove+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lposix  $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19717 /* confdefs.h.  */
19718 _ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h.  */
19722
19723 /* Override any GCC internal prototype to avoid an error.
19724    Use char because int might match the return type of a GCC
19725    builtin and then its argument prototype would still apply.  */
19726 #ifdef __cplusplus
19727 extern "C"
19728 #endif
19729 char remove ();
19730 int
19731 main ()
19732 {
19733 return remove ();
19734   ;
19735   return 0;
19736 }
19737 _ACEOF
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742   *) ac_try_echo=$ac_try;;
19743 esac
19744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19745   (eval "$ac_link") 2>conftest.er1
19746   ac_status=$?
19747   grep -v '^ *+' conftest.er1 >conftest.err
19748   rm -f conftest.er1
19749   cat conftest.err >&5
19750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751   (exit $ac_status); } && {
19752          test -z "$ac_c_werror_flag" ||
19753          test ! -s conftest.err
19754        } && test -s conftest$ac_exeext &&
19755        $as_test_x conftest$ac_exeext; then
19756   ac_cv_lib_posix_remove=yes
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761         ac_cv_lib_posix_remove=no
19762 fi
19763
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765       conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19767 fi
19768 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19769 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19770 if test $ac_cv_lib_posix_remove = yes; then
19771   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19772 fi
19773
19774     fi
19775
19776     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19777     { echo "$as_me:$LINENO: checking for shmat" >&5
19778 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19779 if test "${ac_cv_func_shmat+set}" = set; then
19780   echo $ECHO_N "(cached) $ECHO_C" >&6
19781 else
19782   cat >conftest.$ac_ext <<_ACEOF
19783 /* confdefs.h.  */
19784 _ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h.  */
19788 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19790 #define shmat innocuous_shmat
19791
19792 /* System header to define __stub macros and hopefully few prototypes,
19793     which can conflict with char shmat (); below.
19794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19795     <limits.h> exists even on freestanding compilers.  */
19796
19797 #ifdef __STDC__
19798 # include <limits.h>
19799 #else
19800 # include <assert.h>
19801 #endif
19802
19803 #undef shmat
19804
19805 /* Override any GCC internal prototype to avoid an error.
19806    Use char because int might match the return type of a GCC
19807    builtin and then its argument prototype would still apply.  */
19808 #ifdef __cplusplus
19809 extern "C"
19810 #endif
19811 char shmat ();
19812 /* The GNU C library defines this for functions which it implements
19813     to always fail with ENOSYS.  Some functions are actually named
19814     something starting with __ and the normal name is an alias.  */
19815 #if defined __stub_shmat || defined __stub___shmat
19816 choke me
19817 #endif
19818
19819 int
19820 main ()
19821 {
19822 return shmat ();
19823   ;
19824   return 0;
19825 }
19826 _ACEOF
19827 rm -f conftest.$ac_objext conftest$ac_exeext
19828 if { (ac_try="$ac_link"
19829 case "(($ac_try" in
19830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19831   *) ac_try_echo=$ac_try;;
19832 esac
19833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19834   (eval "$ac_link") 2>conftest.er1
19835   ac_status=$?
19836   grep -v '^ *+' conftest.er1 >conftest.err
19837   rm -f conftest.er1
19838   cat conftest.err >&5
19839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840   (exit $ac_status); } && {
19841          test -z "$ac_c_werror_flag" ||
19842          test ! -s conftest.err
19843        } && test -s conftest$ac_exeext &&
19844        $as_test_x conftest$ac_exeext; then
19845   ac_cv_func_shmat=yes
19846 else
19847   echo "$as_me: failed program was:" >&5
19848 sed 's/^/| /' conftest.$ac_ext >&5
19849
19850         ac_cv_func_shmat=no
19851 fi
19852
19853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19854       conftest$ac_exeext conftest.$ac_ext
19855 fi
19856 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19857 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19858
19859     if test $ac_cv_func_shmat = no; then
19860       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19861 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19862 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19863   echo $ECHO_N "(cached) $ECHO_C" >&6
19864 else
19865   ac_check_lib_save_LIBS=$LIBS
19866 LIBS="-lipc  $LIBS"
19867 cat >conftest.$ac_ext <<_ACEOF
19868 /* confdefs.h.  */
19869 _ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h.  */
19873
19874 /* Override any GCC internal prototype to avoid an error.
19875    Use char because int might match the return type of a GCC
19876    builtin and then its argument prototype would still apply.  */
19877 #ifdef __cplusplus
19878 extern "C"
19879 #endif
19880 char shmat ();
19881 int
19882 main ()
19883 {
19884 return shmat ();
19885   ;
19886   return 0;
19887 }
19888 _ACEOF
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893   *) ac_try_echo=$ac_try;;
19894 esac
19895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19896   (eval "$ac_link") 2>conftest.er1
19897   ac_status=$?
19898   grep -v '^ *+' conftest.er1 >conftest.err
19899   rm -f conftest.er1
19900   cat conftest.err >&5
19901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902   (exit $ac_status); } && {
19903          test -z "$ac_c_werror_flag" ||
19904          test ! -s conftest.err
19905        } && test -s conftest$ac_exeext &&
19906        $as_test_x conftest$ac_exeext; then
19907   ac_cv_lib_ipc_shmat=yes
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912         ac_cv_lib_ipc_shmat=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916       conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19918 fi
19919 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19920 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19921 if test $ac_cv_lib_ipc_shmat = yes; then
19922   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19923 fi
19924
19925     fi
19926   fi
19927
19928   # Check for libraries that X11R6 Xt/Xaw programs need.
19929   ac_save_LDFLAGS=$LDFLAGS
19930   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19931   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19932   # check for ICE first), but we must link in the order -lSM -lICE or
19933   # we get undefined symbols.  So assume we have SM if we have ICE.
19934   # These have to be linked with before -lX11, unlike the other
19935   # libraries we check for below, so use a different variable.
19936   # John Interrante, Karl Berry
19937   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19938 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19939 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 else
19942   ac_check_lib_save_LIBS=$LIBS
19943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19944 cat >conftest.$ac_ext <<_ACEOF
19945 /* confdefs.h.  */
19946 _ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h.  */
19950
19951 /* Override any GCC internal prototype to avoid an error.
19952    Use char because int might match the return type of a GCC
19953    builtin and then its argument prototype would still apply.  */
19954 #ifdef __cplusplus
19955 extern "C"
19956 #endif
19957 char IceConnectionNumber ();
19958 int
19959 main ()
19960 {
19961 return IceConnectionNumber ();
19962   ;
19963   return 0;
19964 }
19965 _ACEOF
19966 rm -f conftest.$ac_objext conftest$ac_exeext
19967 if { (ac_try="$ac_link"
19968 case "(($ac_try" in
19969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19970   *) ac_try_echo=$ac_try;;
19971 esac
19972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19973   (eval "$ac_link") 2>conftest.er1
19974   ac_status=$?
19975   grep -v '^ *+' conftest.er1 >conftest.err
19976   rm -f conftest.er1
19977   cat conftest.err >&5
19978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979   (exit $ac_status); } && {
19980          test -z "$ac_c_werror_flag" ||
19981          test ! -s conftest.err
19982        } && test -s conftest$ac_exeext &&
19983        $as_test_x conftest$ac_exeext; then
19984   ac_cv_lib_ICE_IceConnectionNumber=yes
19985 else
19986   echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19988
19989         ac_cv_lib_ICE_IceConnectionNumber=no
19990 fi
19991
19992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19993       conftest$ac_exeext conftest.$ac_ext
19994 LIBS=$ac_check_lib_save_LIBS
19995 fi
19996 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19997 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19998 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19999   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20000 fi
20001
20002   LDFLAGS=$ac_save_LDFLAGS
20003
20004 fi
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
20031
20032
20033
20034
20035
20036
20037 for ac_header in \
20038         assert.h \
20039         fcntl.h \
20040         grp.h \
20041         pwd.h \
20042         libc.h \
20043         limits.h \
20044         stdarg.h \
20045         stdlib.h \
20046         stdint.h \
20047         string.h \
20048         strings.h \
20049         termios.h \
20050         termcap.h \
20051         term.h \
20052         unistd.h \
20053         sys/bitypes.h \
20054         sys/byteorder.h \
20055         sys/ioctl.h \
20056         sys/select.h \
20057         sys/socket.h \
20058         sys/sockio.h \
20059         sys/stat.h \
20060         sys/time.h \
20061         sys/types.h \
20062         arpa/nameser.h \
20063         resolv.h \
20064         mtio.h \
20065         sys/mtio.h \
20066         sys/tape.h \
20067         regex.h \
20068
20069 do
20070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20072   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20075   echo $ECHO_N "(cached) $ECHO_C" >&6
20076 fi
20077 ac_res=`eval echo '${'$as_ac_Header'}'`
20078                { echo "$as_me:$LINENO: result: $ac_res" >&5
20079 echo "${ECHO_T}$ac_res" >&6; }
20080 else
20081   # Is the header compilable?
20082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20084 cat >conftest.$ac_ext <<_ACEOF
20085 /* confdefs.h.  */
20086 _ACEOF
20087 cat confdefs.h >>conftest.$ac_ext
20088 cat >>conftest.$ac_ext <<_ACEOF
20089 /* end confdefs.h.  */
20090 $ac_includes_default
20091 #include <$ac_header>
20092 _ACEOF
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097   *) ac_try_echo=$ac_try;;
20098 esac
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100   (eval "$ac_compile") 2>conftest.er1
20101   ac_status=$?
20102   grep -v '^ *+' conftest.er1 >conftest.err
20103   rm -f conftest.er1
20104   cat conftest.err >&5
20105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106   (exit $ac_status); } && {
20107          test -z "$ac_c_werror_flag" ||
20108          test ! -s conftest.err
20109        } && test -s conftest.$ac_objext; then
20110   ac_header_compiler=yes
20111 else
20112   echo "$as_me: failed program was:" >&5
20113 sed 's/^/| /' conftest.$ac_ext >&5
20114
20115         ac_header_compiler=no
20116 fi
20117
20118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20120 echo "${ECHO_T}$ac_header_compiler" >&6; }
20121
20122 # Is the header present?
20123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20125 cat >conftest.$ac_ext <<_ACEOF
20126 /* confdefs.h.  */
20127 _ACEOF
20128 cat confdefs.h >>conftest.$ac_ext
20129 cat >>conftest.$ac_ext <<_ACEOF
20130 /* end confdefs.h.  */
20131 #include <$ac_header>
20132 _ACEOF
20133 if { (ac_try="$ac_cpp conftest.$ac_ext"
20134 case "(($ac_try" in
20135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136   *) ac_try_echo=$ac_try;;
20137 esac
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20140   ac_status=$?
20141   grep -v '^ *+' conftest.er1 >conftest.err
20142   rm -f conftest.er1
20143   cat conftest.err >&5
20144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20145   (exit $ac_status); } >/dev/null && {
20146          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20147          test ! -s conftest.err
20148        }; then
20149   ac_header_preproc=yes
20150 else
20151   echo "$as_me: failed program was:" >&5
20152 sed 's/^/| /' conftest.$ac_ext >&5
20153
20154   ac_header_preproc=no
20155 fi
20156
20157 rm -f conftest.err conftest.$ac_ext
20158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20159 echo "${ECHO_T}$ac_header_preproc" >&6; }
20160
20161 # So?  What about this header?
20162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20163   yes:no: )
20164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20168     ac_header_preproc=yes
20169     ;;
20170   no:yes:* )
20171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20183
20184     ;;
20185 esac
20186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189   echo $ECHO_N "(cached) $ECHO_C" >&6
20190 else
20191   eval "$as_ac_Header=\$ac_header_preproc"
20192 fi
20193 ac_res=`eval echo '${'$as_ac_Header'}'`
20194                { echo "$as_me:$LINENO: result: $ac_res" >&5
20195 echo "${ECHO_T}$ac_res" >&6; }
20196
20197 fi
20198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20199   cat >>confdefs.h <<_ACEOF
20200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20201 _ACEOF
20202
20203 fi
20204
20205 done
20206
20207 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20208 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20209 if test "${ac_cv_header_stdc+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   cat >conftest.$ac_ext <<_ACEOF
20213 /* confdefs.h.  */
20214 _ACEOF
20215 cat confdefs.h >>conftest.$ac_ext
20216 cat >>conftest.$ac_ext <<_ACEOF
20217 /* end confdefs.h.  */
20218 #include <stdlib.h>
20219 #include <stdarg.h>
20220 #include <string.h>
20221 #include <float.h>
20222
20223 int
20224 main ()
20225 {
20226
20227   ;
20228   return 0;
20229 }
20230 _ACEOF
20231 rm -f conftest.$ac_objext
20232 if { (ac_try="$ac_compile"
20233 case "(($ac_try" in
20234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235   *) ac_try_echo=$ac_try;;
20236 esac
20237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238   (eval "$ac_compile") 2>conftest.er1
20239   ac_status=$?
20240   grep -v '^ *+' conftest.er1 >conftest.err
20241   rm -f conftest.er1
20242   cat conftest.err >&5
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); } && {
20245          test -z "$ac_c_werror_flag" ||
20246          test ! -s conftest.err
20247        } && test -s conftest.$ac_objext; then
20248   ac_cv_header_stdc=yes
20249 else
20250   echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253         ac_cv_header_stdc=no
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257
20258 if test $ac_cv_header_stdc = yes; then
20259   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20260   cat >conftest.$ac_ext <<_ACEOF
20261 /* confdefs.h.  */
20262 _ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h.  */
20266 #include <string.h>
20267
20268 _ACEOF
20269 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20270   $EGREP "memchr" >/dev/null 2>&1; then
20271   :
20272 else
20273   ac_cv_header_stdc=no
20274 fi
20275 rm -f conftest*
20276
20277 fi
20278
20279 if test $ac_cv_header_stdc = yes; then
20280   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20281   cat >conftest.$ac_ext <<_ACEOF
20282 /* confdefs.h.  */
20283 _ACEOF
20284 cat confdefs.h >>conftest.$ac_ext
20285 cat >>conftest.$ac_ext <<_ACEOF
20286 /* end confdefs.h.  */
20287 #include <stdlib.h>
20288
20289 _ACEOF
20290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20291   $EGREP "free" >/dev/null 2>&1; then
20292   :
20293 else
20294   ac_cv_header_stdc=no
20295 fi
20296 rm -f conftest*
20297
20298 fi
20299
20300 if test $ac_cv_header_stdc = yes; then
20301   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20302   if test "$cross_compiling" = yes; then
20303   :
20304 else
20305   cat >conftest.$ac_ext <<_ACEOF
20306 /* confdefs.h.  */
20307 _ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h.  */
20311 #include <ctype.h>
20312 #include <stdlib.h>
20313 #if ((' ' & 0x0FF) == 0x020)
20314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20316 #else
20317 # define ISLOWER(c) \
20318                    (('a' <= (c) && (c) <= 'i') \
20319                      || ('j' <= (c) && (c) <= 'r') \
20320                      || ('s' <= (c) && (c) <= 'z'))
20321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20322 #endif
20323
20324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20325 int
20326 main ()
20327 {
20328   int i;
20329   for (i = 0; i < 256; i++)
20330     if (XOR (islower (i), ISLOWER (i))
20331         || toupper (i) != TOUPPER (i))
20332       return 2;
20333   return 0;
20334 }
20335 _ACEOF
20336 rm -f conftest$ac_exeext
20337 if { (ac_try="$ac_link"
20338 case "(($ac_try" in
20339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20340   *) ac_try_echo=$ac_try;;
20341 esac
20342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20343   (eval "$ac_link") 2>&5
20344   ac_status=$?
20345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20347   { (case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_try") 2>&5
20353   ac_status=$?
20354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355   (exit $ac_status); }; }; then
20356   :
20357 else
20358   echo "$as_me: program exited with status $ac_status" >&5
20359 echo "$as_me: failed program was:" >&5
20360 sed 's/^/| /' conftest.$ac_ext >&5
20361
20362 ( exit $ac_status )
20363 ac_cv_header_stdc=no
20364 fi
20365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20366 fi
20367
20368
20369 fi
20370 fi
20371 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20372 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20373 if test $ac_cv_header_stdc = yes; then
20374
20375 cat >>confdefs.h <<\_ACEOF
20376 #define STDC_HEADERS 1
20377 _ACEOF
20378
20379 fi
20380
20381 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20382 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20383 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20384   echo $ECHO_N "(cached) $ECHO_C" >&6
20385 else
20386   cat >conftest.$ac_ext <<_ACEOF
20387 /* confdefs.h.  */
20388 _ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h.  */
20392 #include <sys/types.h>
20393 int
20394 main ()
20395 {
20396 return makedev(0, 0);
20397   ;
20398   return 0;
20399 }
20400 _ACEOF
20401 rm -f conftest.$ac_objext conftest$ac_exeext
20402 if { (ac_try="$ac_link"
20403 case "(($ac_try" in
20404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20405   *) ac_try_echo=$ac_try;;
20406 esac
20407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20408   (eval "$ac_link") 2>conftest.er1
20409   ac_status=$?
20410   grep -v '^ *+' conftest.er1 >conftest.err
20411   rm -f conftest.er1
20412   cat conftest.err >&5
20413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414   (exit $ac_status); } && {
20415          test -z "$ac_c_werror_flag" ||
20416          test ! -s conftest.err
20417        } && test -s conftest$ac_exeext &&
20418        $as_test_x conftest$ac_exeext; then
20419   ac_cv_header_sys_types_h_makedev=yes
20420 else
20421   echo "$as_me: failed program was:" >&5
20422 sed 's/^/| /' conftest.$ac_ext >&5
20423
20424         ac_cv_header_sys_types_h_makedev=no
20425 fi
20426
20427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20428       conftest$ac_exeext conftest.$ac_ext
20429
20430 fi
20431 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20432 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20433
20434 if test $ac_cv_header_sys_types_h_makedev = no; then
20435 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20436   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20437 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20438 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20439   echo $ECHO_N "(cached) $ECHO_C" >&6
20440 fi
20441 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20442 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20443 else
20444   # Is the header compilable?
20445 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20446 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20447 cat >conftest.$ac_ext <<_ACEOF
20448 /* confdefs.h.  */
20449 _ACEOF
20450 cat confdefs.h >>conftest.$ac_ext
20451 cat >>conftest.$ac_ext <<_ACEOF
20452 /* end confdefs.h.  */
20453 $ac_includes_default
20454 #include <sys/mkdev.h>
20455 _ACEOF
20456 rm -f conftest.$ac_objext
20457 if { (ac_try="$ac_compile"
20458 case "(($ac_try" in
20459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20460   *) ac_try_echo=$ac_try;;
20461 esac
20462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20463   (eval "$ac_compile") 2>conftest.er1
20464   ac_status=$?
20465   grep -v '^ *+' conftest.er1 >conftest.err
20466   rm -f conftest.er1
20467   cat conftest.err >&5
20468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469   (exit $ac_status); } && {
20470          test -z "$ac_c_werror_flag" ||
20471          test ! -s conftest.err
20472        } && test -s conftest.$ac_objext; then
20473   ac_header_compiler=yes
20474 else
20475   echo "$as_me: failed program was:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20477
20478         ac_header_compiler=no
20479 fi
20480
20481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20483 echo "${ECHO_T}$ac_header_compiler" >&6; }
20484
20485 # Is the header present?
20486 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20487 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h.  */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h.  */
20494 #include <sys/mkdev.h>
20495 _ACEOF
20496 if { (ac_try="$ac_cpp conftest.$ac_ext"
20497 case "(($ac_try" in
20498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499   *) ac_try_echo=$ac_try;;
20500 esac
20501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20502   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20503   ac_status=$?
20504   grep -v '^ *+' conftest.er1 >conftest.err
20505   rm -f conftest.er1
20506   cat conftest.err >&5
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); } >/dev/null && {
20509          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20510          test ! -s conftest.err
20511        }; then
20512   ac_header_preproc=yes
20513 else
20514   echo "$as_me: failed program was:" >&5
20515 sed 's/^/| /' conftest.$ac_ext >&5
20516
20517   ac_header_preproc=no
20518 fi
20519
20520 rm -f conftest.err conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20522 echo "${ECHO_T}$ac_header_preproc" >&6; }
20523
20524 # So?  What about this header?
20525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20526   yes:no: )
20527     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20528 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20529     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20530 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20531     ac_header_preproc=yes
20532     ;;
20533   no:yes:* )
20534     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20535 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20536     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20537 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20538     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20539 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20540     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20541 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20542     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20543 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20544     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20545 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20546
20547     ;;
20548 esac
20549 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20550 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20551 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20552   echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20555 fi
20556 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20557 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20558
20559 fi
20560 if test $ac_cv_header_sys_mkdev_h = yes; then
20561
20562 cat >>confdefs.h <<\_ACEOF
20563 #define MAJOR_IN_MKDEV 1
20564 _ACEOF
20565
20566 fi
20567
20568
20569
20570   if test $ac_cv_header_sys_mkdev_h = no; then
20571     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20572   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20573 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20574 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20575   echo $ECHO_N "(cached) $ECHO_C" >&6
20576 fi
20577 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20578 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20579 else
20580   # Is the header compilable?
20581 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20582 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20583 cat >conftest.$ac_ext <<_ACEOF
20584 /* confdefs.h.  */
20585 _ACEOF
20586 cat confdefs.h >>conftest.$ac_ext
20587 cat >>conftest.$ac_ext <<_ACEOF
20588 /* end confdefs.h.  */
20589 $ac_includes_default
20590 #include <sys/sysmacros.h>
20591 _ACEOF
20592 rm -f conftest.$ac_objext
20593 if { (ac_try="$ac_compile"
20594 case "(($ac_try" in
20595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20596   *) ac_try_echo=$ac_try;;
20597 esac
20598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20599   (eval "$ac_compile") 2>conftest.er1
20600   ac_status=$?
20601   grep -v '^ *+' conftest.er1 >conftest.err
20602   rm -f conftest.er1
20603   cat conftest.err >&5
20604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20605   (exit $ac_status); } && {
20606          test -z "$ac_c_werror_flag" ||
20607          test ! -s conftest.err
20608        } && test -s conftest.$ac_objext; then
20609   ac_header_compiler=yes
20610 else
20611   echo "$as_me: failed program was:" >&5
20612 sed 's/^/| /' conftest.$ac_ext >&5
20613
20614         ac_header_compiler=no
20615 fi
20616
20617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20619 echo "${ECHO_T}$ac_header_compiler" >&6; }
20620
20621 # Is the header present?
20622 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20623 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630 #include <sys/sysmacros.h>
20631 _ACEOF
20632 if { (ac_try="$ac_cpp conftest.$ac_ext"
20633 case "(($ac_try" in
20634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635   *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20639   ac_status=$?
20640   grep -v '^ *+' conftest.er1 >conftest.err
20641   rm -f conftest.er1
20642   cat conftest.err >&5
20643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644   (exit $ac_status); } >/dev/null && {
20645          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20646          test ! -s conftest.err
20647        }; then
20648   ac_header_preproc=yes
20649 else
20650   echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20652
20653   ac_header_preproc=no
20654 fi
20655
20656 rm -f conftest.err conftest.$ac_ext
20657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20658 echo "${ECHO_T}$ac_header_preproc" >&6; }
20659
20660 # So?  What about this header?
20661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20662   yes:no: )
20663     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20664 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20665     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20666 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20667     ac_header_preproc=yes
20668     ;;
20669   no:yes:* )
20670     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20671 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20672     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20673 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20674     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20675 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20676     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20677 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20678     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20679 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20680     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20681 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20682
20683     ;;
20684 esac
20685 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20686 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20687 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20691 fi
20692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20693 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20694
20695 fi
20696 if test $ac_cv_header_sys_sysmacros_h = yes; then
20697
20698 cat >>confdefs.h <<\_ACEOF
20699 #define MAJOR_IN_SYSMACROS 1
20700 _ACEOF
20701
20702 fi
20703
20704
20705   fi
20706 fi
20707
20708
20709
20710
20711
20712
20713 ac_header_dirent=no
20714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20715   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20716 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20717 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20719   echo $ECHO_N "(cached) $ECHO_C" >&6
20720 else
20721   cat >conftest.$ac_ext <<_ACEOF
20722 /* confdefs.h.  */
20723 _ACEOF
20724 cat confdefs.h >>conftest.$ac_ext
20725 cat >>conftest.$ac_ext <<_ACEOF
20726 /* end confdefs.h.  */
20727 #include <sys/types.h>
20728 #include <$ac_hdr>
20729
20730 int
20731 main ()
20732 {
20733 if ((DIR *) 0)
20734 return 0;
20735   ;
20736   return 0;
20737 }
20738 _ACEOF
20739 rm -f conftest.$ac_objext
20740 if { (ac_try="$ac_compile"
20741 case "(($ac_try" in
20742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743   *) ac_try_echo=$ac_try;;
20744 esac
20745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20746   (eval "$ac_compile") 2>conftest.er1
20747   ac_status=$?
20748   grep -v '^ *+' conftest.er1 >conftest.err
20749   rm -f conftest.er1
20750   cat conftest.err >&5
20751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752   (exit $ac_status); } && {
20753          test -z "$ac_c_werror_flag" ||
20754          test ! -s conftest.err
20755        } && test -s conftest.$ac_objext; then
20756   eval "$as_ac_Header=yes"
20757 else
20758   echo "$as_me: failed program was:" >&5
20759 sed 's/^/| /' conftest.$ac_ext >&5
20760
20761         eval "$as_ac_Header=no"
20762 fi
20763
20764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20765 fi
20766 ac_res=`eval echo '${'$as_ac_Header'}'`
20767                { echo "$as_me:$LINENO: result: $ac_res" >&5
20768 echo "${ECHO_T}$ac_res" >&6; }
20769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20770   cat >>confdefs.h <<_ACEOF
20771 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20772 _ACEOF
20773
20774 ac_header_dirent=$ac_hdr; break
20775 fi
20776
20777 done
20778 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20779 if test $ac_header_dirent = dirent.h; then
20780   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20781 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20782 if test "${ac_cv_search_opendir+set}" = set; then
20783   echo $ECHO_N "(cached) $ECHO_C" >&6
20784 else
20785   ac_func_search_save_LIBS=$LIBS
20786 cat >conftest.$ac_ext <<_ACEOF
20787 /* confdefs.h.  */
20788 _ACEOF
20789 cat confdefs.h >>conftest.$ac_ext
20790 cat >>conftest.$ac_ext <<_ACEOF
20791 /* end confdefs.h.  */
20792
20793 /* Override any GCC internal prototype to avoid an error.
20794    Use char because int might match the return type of a GCC
20795    builtin and then its argument prototype would still apply.  */
20796 #ifdef __cplusplus
20797 extern "C"
20798 #endif
20799 char opendir ();
20800 int
20801 main ()
20802 {
20803 return opendir ();
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 for ac_lib in '' dir; do
20809   if test -z "$ac_lib"; then
20810     ac_res="none required"
20811   else
20812     ac_res=-l$ac_lib
20813     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20814   fi
20815   rm -f conftest.$ac_objext conftest$ac_exeext
20816 if { (ac_try="$ac_link"
20817 case "(($ac_try" in
20818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20819   *) ac_try_echo=$ac_try;;
20820 esac
20821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20822   (eval "$ac_link") 2>conftest.er1
20823   ac_status=$?
20824   grep -v '^ *+' conftest.er1 >conftest.err
20825   rm -f conftest.er1
20826   cat conftest.err >&5
20827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828   (exit $ac_status); } && {
20829          test -z "$ac_c_werror_flag" ||
20830          test ! -s conftest.err
20831        } && test -s conftest$ac_exeext &&
20832        $as_test_x conftest$ac_exeext; then
20833   ac_cv_search_opendir=$ac_res
20834 else
20835   echo "$as_me: failed program was:" >&5
20836 sed 's/^/| /' conftest.$ac_ext >&5
20837
20838
20839 fi
20840
20841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20842       conftest$ac_exeext
20843   if test "${ac_cv_search_opendir+set}" = set; then
20844   break
20845 fi
20846 done
20847 if test "${ac_cv_search_opendir+set}" = set; then
20848   :
20849 else
20850   ac_cv_search_opendir=no
20851 fi
20852 rm conftest.$ac_ext
20853 LIBS=$ac_func_search_save_LIBS
20854 fi
20855 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20856 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20857 ac_res=$ac_cv_search_opendir
20858 if test "$ac_res" != no; then
20859   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20860
20861 fi
20862
20863 else
20864   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20865 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20866 if test "${ac_cv_search_opendir+set}" = set; then
20867   echo $ECHO_N "(cached) $ECHO_C" >&6
20868 else
20869   ac_func_search_save_LIBS=$LIBS
20870 cat >conftest.$ac_ext <<_ACEOF
20871 /* confdefs.h.  */
20872 _ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h.  */
20876
20877 /* Override any GCC internal prototype to avoid an error.
20878    Use char because int might match the return type of a GCC
20879    builtin and then its argument prototype would still apply.  */
20880 #ifdef __cplusplus
20881 extern "C"
20882 #endif
20883 char opendir ();
20884 int
20885 main ()
20886 {
20887 return opendir ();
20888   ;
20889   return 0;
20890 }
20891 _ACEOF
20892 for ac_lib in '' x; do
20893   if test -z "$ac_lib"; then
20894     ac_res="none required"
20895   else
20896     ac_res=-l$ac_lib
20897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20898   fi
20899   rm -f conftest.$ac_objext conftest$ac_exeext
20900 if { (ac_try="$ac_link"
20901 case "(($ac_try" in
20902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20903   *) ac_try_echo=$ac_try;;
20904 esac
20905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20906   (eval "$ac_link") 2>conftest.er1
20907   ac_status=$?
20908   grep -v '^ *+' conftest.er1 >conftest.err
20909   rm -f conftest.er1
20910   cat conftest.err >&5
20911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912   (exit $ac_status); } && {
20913          test -z "$ac_c_werror_flag" ||
20914          test ! -s conftest.err
20915        } && test -s conftest$ac_exeext &&
20916        $as_test_x conftest$ac_exeext; then
20917   ac_cv_search_opendir=$ac_res
20918 else
20919   echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20921
20922
20923 fi
20924
20925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20926       conftest$ac_exeext
20927   if test "${ac_cv_search_opendir+set}" = set; then
20928   break
20929 fi
20930 done
20931 if test "${ac_cv_search_opendir+set}" = set; then
20932   :
20933 else
20934   ac_cv_search_opendir=no
20935 fi
20936 rm conftest.$ac_ext
20937 LIBS=$ac_func_search_save_LIBS
20938 fi
20939 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20940 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20941 ac_res=$ac_cv_search_opendir
20942 if test "$ac_res" != no; then
20943   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20944
20945 fi
20946
20947 fi
20948
20949 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20950 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20951 if test "${ac_cv_header_stat_broken+set}" = set; then
20952   echo $ECHO_N "(cached) $ECHO_C" >&6
20953 else
20954   cat >conftest.$ac_ext <<_ACEOF
20955 /* confdefs.h.  */
20956 _ACEOF
20957 cat confdefs.h >>conftest.$ac_ext
20958 cat >>conftest.$ac_ext <<_ACEOF
20959 /* end confdefs.h.  */
20960 #include <sys/types.h>
20961 #include <sys/stat.h>
20962
20963 #if defined S_ISBLK && defined S_IFDIR
20964 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20965 #endif
20966
20967 #if defined S_ISBLK && defined S_IFCHR
20968 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20969 #endif
20970
20971 #if defined S_ISLNK && defined S_IFREG
20972 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20973 #endif
20974
20975 #if defined S_ISSOCK && defined S_IFREG
20976 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20977 #endif
20978
20979 _ACEOF
20980 rm -f conftest.$ac_objext
20981 if { (ac_try="$ac_compile"
20982 case "(($ac_try" in
20983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984   *) ac_try_echo=$ac_try;;
20985 esac
20986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20987   (eval "$ac_compile") 2>conftest.er1
20988   ac_status=$?
20989   grep -v '^ *+' conftest.er1 >conftest.err
20990   rm -f conftest.er1
20991   cat conftest.err >&5
20992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993   (exit $ac_status); } && {
20994          test -z "$ac_c_werror_flag" ||
20995          test ! -s conftest.err
20996        } && test -s conftest.$ac_objext; then
20997   ac_cv_header_stat_broken=no
20998 else
20999   echo "$as_me: failed program was:" >&5
21000 sed 's/^/| /' conftest.$ac_ext >&5
21001
21002         ac_cv_header_stat_broken=yes
21003 fi
21004
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21006 fi
21007 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
21008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
21009 if test $ac_cv_header_stat_broken = yes; then
21010
21011 cat >>confdefs.h <<\_ACEOF
21012 #define STAT_MACROS_BROKEN 1
21013 _ACEOF
21014
21015 fi
21016
21017 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21018 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
21019 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21020   echo $ECHO_N "(cached) $ECHO_C" >&6
21021 else
21022   cat >conftest.$ac_ext <<_ACEOF
21023 /* confdefs.h.  */
21024 _ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h.  */
21028 #include <sys/types.h>
21029 #include <sys/wait.h>
21030 #ifndef WEXITSTATUS
21031 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
21032 #endif
21033 #ifndef WIFEXITED
21034 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21035 #endif
21036
21037 int
21038 main ()
21039 {
21040   int s;
21041   wait (&s);
21042   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21043   ;
21044   return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext
21048 if { (ac_try="$ac_compile"
21049 case "(($ac_try" in
21050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051   *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054   (eval "$ac_compile") 2>conftest.er1
21055   ac_status=$?
21056   grep -v '^ *+' conftest.er1 >conftest.err
21057   rm -f conftest.er1
21058   cat conftest.err >&5
21059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060   (exit $ac_status); } && {
21061          test -z "$ac_c_werror_flag" ||
21062          test ! -s conftest.err
21063        } && test -s conftest.$ac_objext; then
21064   ac_cv_header_sys_wait_h=yes
21065 else
21066   echo "$as_me: failed program was:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21068
21069         ac_cv_header_sys_wait_h=no
21070 fi
21071
21072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21073 fi
21074 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21075 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
21076 if test $ac_cv_header_sys_wait_h = yes; then
21077
21078 cat >>confdefs.h <<\_ACEOF
21079 #define HAVE_SYS_WAIT_H 1
21080 _ACEOF
21081
21082 fi
21083
21084 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21085 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21086 if test "${ac_cv_header_time+set}" = set; then
21087   echo $ECHO_N "(cached) $ECHO_C" >&6
21088 else
21089   cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h.  */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h.  */
21095 #include <sys/types.h>
21096 #include <sys/time.h>
21097 #include <time.h>
21098
21099 int
21100 main ()
21101 {
21102 if ((struct tm *) 0)
21103 return 0;
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_compile") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } && {
21122          test -z "$ac_c_werror_flag" ||
21123          test ! -s conftest.err
21124        } && test -s conftest.$ac_objext; then
21125   ac_cv_header_time=yes
21126 else
21127   echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130         ac_cv_header_time=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 fi
21135 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21136 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21137 if test $ac_cv_header_time = yes; then
21138
21139 cat >>confdefs.h <<\_ACEOF
21140 #define TIME_WITH_SYS_TIME 1
21141 _ACEOF
21142
21143 fi
21144
21145 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
21146 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
21147 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
21148   echo $ECHO_N "(cached) $ECHO_C" >&6
21149 else
21150   cat >conftest.$ac_ext <<_ACEOF
21151 /* confdefs.h.  */
21152 _ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h.  */
21156 $ac_includes_default
21157 int
21158 main ()
21159 {
21160 static struct stat ac_aggr;
21161 if (ac_aggr.st_blksize)
21162 return 0;
21163   ;
21164   return 0;
21165 }
21166 _ACEOF
21167 rm -f conftest.$ac_objext
21168 if { (ac_try="$ac_compile"
21169 case "(($ac_try" in
21170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21171   *) ac_try_echo=$ac_try;;
21172 esac
21173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21174   (eval "$ac_compile") 2>conftest.er1
21175   ac_status=$?
21176   grep -v '^ *+' conftest.er1 >conftest.err
21177   rm -f conftest.er1
21178   cat conftest.err >&5
21179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21180   (exit $ac_status); } && {
21181          test -z "$ac_c_werror_flag" ||
21182          test ! -s conftest.err
21183        } && test -s conftest.$ac_objext; then
21184   ac_cv_member_struct_stat_st_blksize=yes
21185 else
21186   echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189         cat >conftest.$ac_ext <<_ACEOF
21190 /* confdefs.h.  */
21191 _ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h.  */
21195 $ac_includes_default
21196 int
21197 main ()
21198 {
21199 static struct stat ac_aggr;
21200 if (sizeof ac_aggr.st_blksize)
21201 return 0;
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_compile") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } && {
21220          test -z "$ac_c_werror_flag" ||
21221          test ! -s conftest.err
21222        } && test -s conftest.$ac_objext; then
21223   ac_cv_member_struct_stat_st_blksize=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228         ac_cv_member_struct_stat_st_blksize=no
21229 fi
21230
21231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21232 fi
21233
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 fi
21236 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
21237 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
21238 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21239
21240 cat >>confdefs.h <<_ACEOF
21241 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21242 _ACEOF
21243
21244
21245 cat >>confdefs.h <<\_ACEOF
21246 #define HAVE_ST_BLKSIZE 1
21247 _ACEOF
21248
21249 fi
21250
21251
21252 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21253 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21254 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21255   echo $ECHO_N "(cached) $ECHO_C" >&6
21256 else
21257   cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h.  */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h.  */
21263 $ac_includes_default
21264 int
21265 main ()
21266 {
21267 static struct stat ac_aggr;
21268 if (ac_aggr.st_blocks)
21269 return 0;
21270   ;
21271   return 0;
21272 }
21273 _ACEOF
21274 rm -f conftest.$ac_objext
21275 if { (ac_try="$ac_compile"
21276 case "(($ac_try" in
21277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278   *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281   (eval "$ac_compile") 2>conftest.er1
21282   ac_status=$?
21283   grep -v '^ *+' conftest.er1 >conftest.err
21284   rm -f conftest.er1
21285   cat conftest.err >&5
21286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287   (exit $ac_status); } && {
21288          test -z "$ac_c_werror_flag" ||
21289          test ! -s conftest.err
21290        } && test -s conftest.$ac_objext; then
21291   ac_cv_member_struct_stat_st_blocks=yes
21292 else
21293   echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296         cat >conftest.$ac_ext <<_ACEOF
21297 /* confdefs.h.  */
21298 _ACEOF
21299 cat confdefs.h >>conftest.$ac_ext
21300 cat >>conftest.$ac_ext <<_ACEOF
21301 /* end confdefs.h.  */
21302 $ac_includes_default
21303 int
21304 main ()
21305 {
21306 static struct stat ac_aggr;
21307 if (sizeof ac_aggr.st_blocks)
21308 return 0;
21309   ;
21310   return 0;
21311 }
21312 _ACEOF
21313 rm -f conftest.$ac_objext
21314 if { (ac_try="$ac_compile"
21315 case "(($ac_try" in
21316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317   *) ac_try_echo=$ac_try;;
21318 esac
21319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21320   (eval "$ac_compile") 2>conftest.er1
21321   ac_status=$?
21322   grep -v '^ *+' conftest.er1 >conftest.err
21323   rm -f conftest.er1
21324   cat conftest.err >&5
21325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326   (exit $ac_status); } && {
21327          test -z "$ac_c_werror_flag" ||
21328          test ! -s conftest.err
21329        } && test -s conftest.$ac_objext; then
21330   ac_cv_member_struct_stat_st_blocks=yes
21331 else
21332   echo "$as_me: failed program was:" >&5
21333 sed 's/^/| /' conftest.$ac_ext >&5
21334
21335         ac_cv_member_struct_stat_st_blocks=no
21336 fi
21337
21338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21339 fi
21340
21341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21342 fi
21343 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21344 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21345 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21346
21347 cat >>confdefs.h <<_ACEOF
21348 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21349 _ACEOF
21350
21351
21352 cat >>confdefs.h <<\_ACEOF
21353 #define HAVE_ST_BLOCKS 1
21354 _ACEOF
21355
21356 else
21357   case " $LIBOBJS " in
21358   *" fileblocks.$ac_objext "* ) ;;
21359   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21360  ;;
21361 esac
21362
21363 fi
21364
21365
21366 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21367 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21368 if test "${ac_cv_struct_tm+set}" = set; then
21369   echo $ECHO_N "(cached) $ECHO_C" >&6
21370 else
21371   cat >conftest.$ac_ext <<_ACEOF
21372 /* confdefs.h.  */
21373 _ACEOF
21374 cat confdefs.h >>conftest.$ac_ext
21375 cat >>conftest.$ac_ext <<_ACEOF
21376 /* end confdefs.h.  */
21377 #include <sys/types.h>
21378 #include <time.h>
21379
21380 int
21381 main ()
21382 {
21383 struct tm tm;
21384                                      int *p = &tm.tm_sec;
21385                                      return !p;
21386   ;
21387   return 0;
21388 }
21389 _ACEOF
21390 rm -f conftest.$ac_objext
21391 if { (ac_try="$ac_compile"
21392 case "(($ac_try" in
21393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394   *) ac_try_echo=$ac_try;;
21395 esac
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397   (eval "$ac_compile") 2>conftest.er1
21398   ac_status=$?
21399   grep -v '^ *+' conftest.er1 >conftest.err
21400   rm -f conftest.er1
21401   cat conftest.err >&5
21402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403   (exit $ac_status); } && {
21404          test -z "$ac_c_werror_flag" ||
21405          test ! -s conftest.err
21406        } && test -s conftest.$ac_objext; then
21407   ac_cv_struct_tm=time.h
21408 else
21409   echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21411
21412         ac_cv_struct_tm=sys/time.h
21413 fi
21414
21415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 fi
21417 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21418 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21419 if test $ac_cv_struct_tm = sys/time.h; then
21420
21421 cat >>confdefs.h <<\_ACEOF
21422 #define TM_IN_SYS_TIME 1
21423 _ACEOF
21424
21425 fi
21426
21427 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21428 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21429 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21430   echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432   cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h.  */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h.  */
21438 #include <sys/types.h>
21439 #include <$ac_cv_struct_tm>
21440
21441
21442 int
21443 main ()
21444 {
21445 static struct tm ac_aggr;
21446 if (ac_aggr.tm_zone)
21447 return 0;
21448   ;
21449   return 0;
21450 }
21451 _ACEOF
21452 rm -f conftest.$ac_objext
21453 if { (ac_try="$ac_compile"
21454 case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_compile") 2>conftest.er1
21460   ac_status=$?
21461   grep -v '^ *+' conftest.er1 >conftest.err
21462   rm -f conftest.er1
21463   cat conftest.err >&5
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); } && {
21466          test -z "$ac_c_werror_flag" ||
21467          test ! -s conftest.err
21468        } && test -s conftest.$ac_objext; then
21469   ac_cv_member_struct_tm_tm_zone=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474         cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h.  */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h.  */
21480 #include <sys/types.h>
21481 #include <$ac_cv_struct_tm>
21482
21483
21484 int
21485 main ()
21486 {
21487 static struct tm ac_aggr;
21488 if (sizeof ac_aggr.tm_zone)
21489 return 0;
21490   ;
21491   return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext
21495 if { (ac_try="$ac_compile"
21496 case "(($ac_try" in
21497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498   *) ac_try_echo=$ac_try;;
21499 esac
21500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21501   (eval "$ac_compile") 2>conftest.er1
21502   ac_status=$?
21503   grep -v '^ *+' conftest.er1 >conftest.err
21504   rm -f conftest.er1
21505   cat conftest.err >&5
21506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507   (exit $ac_status); } && {
21508          test -z "$ac_c_werror_flag" ||
21509          test ! -s conftest.err
21510        } && test -s conftest.$ac_objext; then
21511   ac_cv_member_struct_tm_tm_zone=yes
21512 else
21513   echo "$as_me: failed program was:" >&5
21514 sed 's/^/| /' conftest.$ac_ext >&5
21515
21516         ac_cv_member_struct_tm_tm_zone=no
21517 fi
21518
21519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21520 fi
21521
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 fi
21524 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21525 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21526 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21527
21528 cat >>confdefs.h <<_ACEOF
21529 #define HAVE_STRUCT_TM_TM_ZONE 1
21530 _ACEOF
21531
21532
21533 fi
21534
21535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21536
21537 cat >>confdefs.h <<\_ACEOF
21538 #define HAVE_TM_ZONE 1
21539 _ACEOF
21540
21541 else
21542   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21543 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21544 if test "${ac_cv_have_decl_tzname+set}" = set; then
21545   echo $ECHO_N "(cached) $ECHO_C" >&6
21546 else
21547   cat >conftest.$ac_ext <<_ACEOF
21548 /* confdefs.h.  */
21549 _ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h.  */
21553 #include <time.h>
21554
21555 int
21556 main ()
21557 {
21558 #ifndef tzname
21559   (void) tzname;
21560 #endif
21561
21562   ;
21563   return 0;
21564 }
21565 _ACEOF
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570   *) ac_try_echo=$ac_try;;
21571 esac
21572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21573   (eval "$ac_compile") 2>conftest.er1
21574   ac_status=$?
21575   grep -v '^ *+' conftest.er1 >conftest.err
21576   rm -f conftest.er1
21577   cat conftest.err >&5
21578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579   (exit $ac_status); } && {
21580          test -z "$ac_c_werror_flag" ||
21581          test ! -s conftest.err
21582        } && test -s conftest.$ac_objext; then
21583   ac_cv_have_decl_tzname=yes
21584 else
21585   echo "$as_me: failed program was:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21587
21588         ac_cv_have_decl_tzname=no
21589 fi
21590
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 fi
21593 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21594 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21595 if test $ac_cv_have_decl_tzname = yes; then
21596
21597 cat >>confdefs.h <<_ACEOF
21598 #define HAVE_DECL_TZNAME 1
21599 _ACEOF
21600
21601
21602 else
21603   cat >>confdefs.h <<_ACEOF
21604 #define HAVE_DECL_TZNAME 0
21605 _ACEOF
21606
21607
21608 fi
21609
21610
21611   { echo "$as_me:$LINENO: checking for tzname" >&5
21612 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21613 if test "${ac_cv_var_tzname+set}" = set; then
21614   echo $ECHO_N "(cached) $ECHO_C" >&6
21615 else
21616   cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h.  */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h.  */
21622 #include <time.h>
21623 #if !HAVE_DECL_TZNAME
21624 extern char *tzname[];
21625 #endif
21626
21627 int
21628 main ()
21629 {
21630 return tzname[0][0];
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_link") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && {
21649          test -z "$ac_c_werror_flag" ||
21650          test ! -s conftest.err
21651        } && test -s conftest$ac_exeext &&
21652        $as_test_x conftest$ac_exeext; then
21653   ac_cv_var_tzname=yes
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658         ac_cv_var_tzname=no
21659 fi
21660
21661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662       conftest$ac_exeext conftest.$ac_ext
21663 fi
21664 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21665 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21666   if test $ac_cv_var_tzname = yes; then
21667
21668 cat >>confdefs.h <<\_ACEOF
21669 #define HAVE_TZNAME 1
21670 _ACEOF
21671
21672   fi
21673 fi
21674
21675
21676 { echo "$as_me:$LINENO: checking for utime.h" >&5
21677 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21678 if test "${ba_cv_header_utime_h+set}" = set; then
21679   echo $ECHO_N "(cached) $ECHO_C" >&6
21680 else
21681   cat >conftest.$ac_ext <<_ACEOF
21682 /* confdefs.h.  */
21683 _ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h.  */
21687
21688 #include <sys/types.h>
21689 #include <utime.h>
21690 int
21691 main ()
21692 {
21693 struct utimbuf foo
21694   ;
21695   return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702   *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705   (eval "$ac_compile") 2>conftest.er1
21706   ac_status=$?
21707   grep -v '^ *+' conftest.er1 >conftest.err
21708   rm -f conftest.er1
21709   cat conftest.err >&5
21710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711   (exit $ac_status); } && {
21712          test -z "$ac_c_werror_flag" ||
21713          test ! -s conftest.err
21714        } && test -s conftest.$ac_objext; then
21715   ba_cv_header_utime_h=yes
21716 else
21717   echo "$as_me: failed program was:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21719
21720         ba_cv_header_utime_h=no
21721 fi
21722
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 fi
21725 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21726 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21727 test $ba_cv_header_utime_h = yes &&
21728 cat >>confdefs.h <<\_ACEOF
21729 #define HAVE_UTIME_H 1
21730 _ACEOF
21731
21732
21733 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21734 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21735 if test "${ba_cv_header_socklen_t+set}" = set; then
21736   echo $ECHO_N "(cached) $ECHO_C" >&6
21737 else
21738   cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h.  */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h.  */
21744
21745 #include <sys/types.h>
21746 #include <sys/socket.h>
21747 int
21748 main ()
21749 {
21750 socklen_t x
21751   ;
21752   return 0;
21753 }
21754 _ACEOF
21755 rm -f conftest.$ac_objext
21756 if { (ac_try="$ac_compile"
21757 case "(($ac_try" in
21758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759   *) ac_try_echo=$ac_try;;
21760 esac
21761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21762   (eval "$ac_compile") 2>conftest.er1
21763   ac_status=$?
21764   grep -v '^ *+' conftest.er1 >conftest.err
21765   rm -f conftest.er1
21766   cat conftest.err >&5
21767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768   (exit $ac_status); } && {
21769          test -z "$ac_c_werror_flag" ||
21770          test ! -s conftest.err
21771        } && test -s conftest.$ac_objext; then
21772   ba_cv_header_socklen_t=yes
21773 else
21774   echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21776
21777         ba_cv_header_socklen_t=no
21778 fi
21779
21780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21781 fi
21782 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21783 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21784 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21785 #define HAVE_SOCKLEN_T 1
21786 _ACEOF
21787
21788
21789 { echo "$as_me:$LINENO: checking for bigendian" >&5
21790 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21791 if test "${ba_cv_bigendian+set}" = set; then
21792   echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794   if test "$cross_compiling" = yes; then
21795   ba_cv_bigendian=no
21796 else
21797   cat >conftest.$ac_ext <<_ACEOF
21798 /* confdefs.h.  */
21799 _ACEOF
21800 cat confdefs.h >>conftest.$ac_ext
21801 cat >>conftest.$ac_ext <<_ACEOF
21802 /* end confdefs.h.  */
21803 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21804 _ACEOF
21805 rm -f conftest$ac_exeext
21806 if { (ac_try="$ac_link"
21807 case "(($ac_try" in
21808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21809   *) ac_try_echo=$ac_try;;
21810 esac
21811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21812   (eval "$ac_link") 2>&5
21813   ac_status=$?
21814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21815   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21816   { (case "(($ac_try" in
21817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818   *) ac_try_echo=$ac_try;;
21819 esac
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821   (eval "$ac_try") 2>&5
21822   ac_status=$?
21823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824   (exit $ac_status); }; }; then
21825   ba_cv_bigendian=yes
21826 else
21827   echo "$as_me: program exited with status $ac_status" >&5
21828 echo "$as_me: failed program was:" >&5
21829 sed 's/^/| /' conftest.$ac_ext >&5
21830
21831 ( exit $ac_status )
21832 ba_cv_bigendian=no
21833 fi
21834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21835 fi
21836
21837
21838 fi
21839 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21840 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21841 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21842 #define HAVE_BIGENDIAN 1
21843 _ACEOF
21844
21845
21846 ac_ext=cpp
21847 ac_cpp='$CXXCPP $CPPFLAGS'
21848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21851
21852
21853 { echo "$as_me:$LINENO: checking for typeof" >&5
21854 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21855 if test "${ba_cv_have_typeof+set}" = set; then
21856   echo $ECHO_N "(cached) $ECHO_C" >&6
21857 else
21858   if test "$cross_compiling" = yes; then
21859   ba_cv_have_typeof=no
21860 else
21861   cat >conftest.$ac_ext <<_ACEOF
21862 /* confdefs.h.  */
21863 _ACEOF
21864 cat confdefs.h >>conftest.$ac_ext
21865 cat >>conftest.$ac_ext <<_ACEOF
21866 /* end confdefs.h.  */
21867 main(){char *a = 0; a = (typeof a)a;}
21868 _ACEOF
21869 rm -f conftest$ac_exeext
21870 if { (ac_try="$ac_link"
21871 case "(($ac_try" in
21872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873   *) ac_try_echo=$ac_try;;
21874 esac
21875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21876   (eval "$ac_link") 2>&5
21877   ac_status=$?
21878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21880   { (case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_try") 2>&5
21886   ac_status=$?
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); }; }; then
21889   ba_cv_have_typeof=yes
21890 else
21891   echo "$as_me: program exited with status $ac_status" >&5
21892 echo "$as_me: failed program was:" >&5
21893 sed 's/^/| /' conftest.$ac_ext >&5
21894
21895 ( exit $ac_status )
21896 ba_cv_have_typeof=no
21897 fi
21898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21899 fi
21900
21901
21902 fi
21903 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21904 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21905 test $ba_cv_have_typeof = yes &&
21906 cat >>confdefs.h <<\_ACEOF
21907 #define HAVE_TYPEOF 1
21908 _ACEOF
21909
21910 ac_ext=c
21911 ac_cpp='$CPP $CPPFLAGS'
21912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915
21916
21917 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21918 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21919 if test "${ac_cv_c_const+set}" = set; then
21920   echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922   cat >conftest.$ac_ext <<_ACEOF
21923 /* confdefs.h.  */
21924 _ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h.  */
21928
21929 int
21930 main ()
21931 {
21932 /* FIXME: Include the comments suggested by Paul. */
21933 #ifndef __cplusplus
21934   /* Ultrix mips cc rejects this.  */
21935   typedef int charset[2];
21936   const charset cs;
21937   /* SunOS 4.1.1 cc rejects this.  */
21938   char const *const *pcpcc;
21939   char **ppc;
21940   /* NEC SVR4.0.2 mips cc rejects this.  */
21941   struct point {int x, y;};
21942   static struct point const zero = {0,0};
21943   /* AIX XL C 1.02.0.0 rejects this.
21944      It does not let you subtract one const X* pointer from another in
21945      an arm of an if-expression whose if-part is not a constant
21946      expression */
21947   const char *g = "string";
21948   pcpcc = &g + (g ? g-g : 0);
21949   /* HPUX 7.0 cc rejects these. */
21950   ++pcpcc;
21951   ppc = (char**) pcpcc;
21952   pcpcc = (char const *const *) ppc;
21953   { /* SCO 3.2v4 cc rejects this.  */
21954     char *t;
21955     char const *s = 0 ? (char *) 0 : (char const *) 0;
21956
21957     *t++ = 0;
21958     if (s) return 0;
21959   }
21960   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21961     int x[] = {25, 17};
21962     const int *foo = &x[0];
21963     ++foo;
21964   }
21965   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21966     typedef const int *iptr;
21967     iptr p = 0;
21968     ++p;
21969   }
21970   { /* AIX XL C 1.02.0.0 rejects this saying
21971        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21972     struct s { int j; const int *ap[3]; };
21973     struct s *b; b->j = 5;
21974   }
21975   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21976     const int foo = 10;
21977     if (!foo) return 0;
21978   }
21979   return !cs[0] && !zero.x;
21980 #endif
21981
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_compile") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } && {
22000          test -z "$ac_c_werror_flag" ||
22001          test ! -s conftest.err
22002        } && test -s conftest.$ac_objext; then
22003   ac_cv_c_const=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008         ac_cv_c_const=no
22009 fi
22010
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22014 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22015 if test $ac_cv_c_const = no; then
22016
22017 cat >>confdefs.h <<\_ACEOF
22018 #define const
22019 _ACEOF
22020
22021 fi
22022
22023
22024
22025 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
22026 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
22027 fstype=no
22028 # The order of these tests is important.
22029 cat >conftest.$ac_ext <<_ACEOF
22030 /* confdefs.h.  */
22031 _ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h.  */
22035 #include <sys/statvfs.h>
22036 #include <sys/fstyp.h>
22037 _ACEOF
22038 if { (ac_try="$ac_cpp conftest.$ac_ext"
22039 case "(($ac_try" in
22040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22041   *) ac_try_echo=$ac_try;;
22042 esac
22043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22044   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22045   ac_status=$?
22046   grep -v '^ *+' conftest.er1 >conftest.err
22047   rm -f conftest.er1
22048   cat conftest.err >&5
22049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050   (exit $ac_status); } >/dev/null && {
22051          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22052          test ! -s conftest.err
22053        }; then
22054   cat >>confdefs.h <<\_ACEOF
22055 #define FSTYPE_STATVFS 1
22056 _ACEOF
22057  fstype=SVR4
22058 else
22059   echo "$as_me: failed program was:" >&5
22060 sed 's/^/| /' conftest.$ac_ext >&5
22061
22062
22063 fi
22064
22065 rm -f conftest.err conftest.$ac_ext
22066 if test $fstype = no; then
22067 cat >conftest.$ac_ext <<_ACEOF
22068 /* confdefs.h.  */
22069 _ACEOF
22070 cat confdefs.h >>conftest.$ac_ext
22071 cat >>conftest.$ac_ext <<_ACEOF
22072 /* end confdefs.h.  */
22073 #include <sys/statfs.h>
22074 #include <sys/fstyp.h>
22075 _ACEOF
22076 if { (ac_try="$ac_cpp conftest.$ac_ext"
22077 case "(($ac_try" in
22078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079   *) ac_try_echo=$ac_try;;
22080 esac
22081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22083   ac_status=$?
22084   grep -v '^ *+' conftest.er1 >conftest.err
22085   rm -f conftest.er1
22086   cat conftest.err >&5
22087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088   (exit $ac_status); } >/dev/null && {
22089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22090          test ! -s conftest.err
22091        }; then
22092   cat >>confdefs.h <<\_ACEOF
22093 #define FSTYPE_USG_STATFS 1
22094 _ACEOF
22095  fstype=SVR3
22096 else
22097   echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22099
22100
22101 fi
22102
22103 rm -f conftest.err conftest.$ac_ext
22104 fi
22105 if test $fstype = no; then
22106 cat >conftest.$ac_ext <<_ACEOF
22107 /* confdefs.h.  */
22108 _ACEOF
22109 cat confdefs.h >>conftest.$ac_ext
22110 cat >>conftest.$ac_ext <<_ACEOF
22111 /* end confdefs.h.  */
22112 #include <sys/statfs.h>
22113 #include <sys/vmount.h>
22114 _ACEOF
22115 if { (ac_try="$ac_cpp conftest.$ac_ext"
22116 case "(($ac_try" in
22117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22118   *) ac_try_echo=$ac_try;;
22119 esac
22120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22121   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22122   ac_status=$?
22123   grep -v '^ *+' conftest.er1 >conftest.err
22124   rm -f conftest.er1
22125   cat conftest.err >&5
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); } >/dev/null && {
22128          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22129          test ! -s conftest.err
22130        }; then
22131   cat >>confdefs.h <<\_ACEOF
22132 #define FSTYPE_AIX_STATFS 1
22133 _ACEOF
22134  fstype=AIX
22135 else
22136   echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22138
22139
22140 fi
22141
22142 rm -f conftest.err conftest.$ac_ext
22143 fi
22144 if test $fstype = no; then
22145 cat >conftest.$ac_ext <<_ACEOF
22146 /* confdefs.h.  */
22147 _ACEOF
22148 cat confdefs.h >>conftest.$ac_ext
22149 cat >>conftest.$ac_ext <<_ACEOF
22150 /* end confdefs.h.  */
22151 #include <mntent.h>
22152 _ACEOF
22153 if { (ac_try="$ac_cpp conftest.$ac_ext"
22154 case "(($ac_try" in
22155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22156   *) ac_try_echo=$ac_try;;
22157 esac
22158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22160   ac_status=$?
22161   grep -v '^ *+' conftest.er1 >conftest.err
22162   rm -f conftest.er1
22163   cat conftest.err >&5
22164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165   (exit $ac_status); } >/dev/null && {
22166          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22167          test ! -s conftest.err
22168        }; then
22169   cat >>confdefs.h <<\_ACEOF
22170 #define FSTYPE_MNTENT 1
22171 _ACEOF
22172  fstype=4.3BSD
22173 else
22174   echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177
22178 fi
22179
22180 rm -f conftest.err conftest.$ac_ext
22181 fi
22182 if test $fstype = no; then
22183 cat >conftest.$ac_ext <<_ACEOF
22184 /* confdefs.h.  */
22185 _ACEOF
22186 cat confdefs.h >>conftest.$ac_ext
22187 cat >>conftest.$ac_ext <<_ACEOF
22188 /* end confdefs.h.  */
22189 #include <sys/mount.h>
22190
22191 _ACEOF
22192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22193   $EGREP "f_type;" >/dev/null 2>&1; then
22194   cat >>confdefs.h <<\_ACEOF
22195 #define FSTYPE_STATFS 1
22196 _ACEOF
22197  fstype=4.4BSD/OSF1
22198 fi
22199 rm -f conftest*
22200
22201 fi
22202 if test $fstype = no; then
22203 cat >conftest.$ac_ext <<_ACEOF
22204 /* confdefs.h.  */
22205 _ACEOF
22206 cat confdefs.h >>conftest.$ac_ext
22207 cat >>conftest.$ac_ext <<_ACEOF
22208 /* end confdefs.h.  */
22209 #include <sys/mount.h>
22210 #include <sys/fs_types.h>
22211 _ACEOF
22212 if { (ac_try="$ac_cpp conftest.$ac_ext"
22213 case "(($ac_try" in
22214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215   *) ac_try_echo=$ac_try;;
22216 esac
22217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22219   ac_status=$?
22220   grep -v '^ *+' conftest.er1 >conftest.err
22221   rm -f conftest.er1
22222   cat conftest.err >&5
22223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224   (exit $ac_status); } >/dev/null && {
22225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22226          test ! -s conftest.err
22227        }; then
22228   cat >>confdefs.h <<\_ACEOF
22229 #define FSTYPE_GETMNT 1
22230 _ACEOF
22231  fstype=Ultrix
22232 else
22233   echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236
22237 fi
22238
22239 rm -f conftest.err conftest.$ac_ext
22240 fi
22241 { echo "$as_me:$LINENO: result: $fstype" >&5
22242 echo "${ECHO_T}$fstype" >&6; }
22243
22244 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22245   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22246 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22247 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22248   echo $ECHO_N "(cached) $ECHO_C" >&6
22249 fi
22250 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22251 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22252 else
22253   # Is the header compilable?
22254 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22255 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22256 cat >conftest.$ac_ext <<_ACEOF
22257 /* confdefs.h.  */
22258 _ACEOF
22259 cat confdefs.h >>conftest.$ac_ext
22260 cat >>conftest.$ac_ext <<_ACEOF
22261 /* end confdefs.h.  */
22262 $ac_includes_default
22263 #include <sys/statvfs.h>
22264 _ACEOF
22265 rm -f conftest.$ac_objext
22266 if { (ac_try="$ac_compile"
22267 case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_compile") 2>conftest.er1
22273   ac_status=$?
22274   grep -v '^ *+' conftest.er1 >conftest.err
22275   rm -f conftest.er1
22276   cat conftest.err >&5
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); } && {
22279          test -z "$ac_c_werror_flag" ||
22280          test ! -s conftest.err
22281        } && test -s conftest.$ac_objext; then
22282   ac_header_compiler=yes
22283 else
22284   echo "$as_me: failed program was:" >&5
22285 sed 's/^/| /' conftest.$ac_ext >&5
22286
22287         ac_header_compiler=no
22288 fi
22289
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22292 echo "${ECHO_T}$ac_header_compiler" >&6; }
22293
22294 # Is the header present?
22295 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22296 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22297 cat >conftest.$ac_ext <<_ACEOF
22298 /* confdefs.h.  */
22299 _ACEOF
22300 cat confdefs.h >>conftest.$ac_ext
22301 cat >>conftest.$ac_ext <<_ACEOF
22302 /* end confdefs.h.  */
22303 #include <sys/statvfs.h>
22304 _ACEOF
22305 if { (ac_try="$ac_cpp conftest.$ac_ext"
22306 case "(($ac_try" in
22307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308   *) ac_try_echo=$ac_try;;
22309 esac
22310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22312   ac_status=$?
22313   grep -v '^ *+' conftest.er1 >conftest.err
22314   rm -f conftest.er1
22315   cat conftest.err >&5
22316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317   (exit $ac_status); } >/dev/null && {
22318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22319          test ! -s conftest.err
22320        }; then
22321   ac_header_preproc=yes
22322 else
22323   echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326   ac_header_preproc=no
22327 fi
22328
22329 rm -f conftest.err conftest.$ac_ext
22330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22331 echo "${ECHO_T}$ac_header_preproc" >&6; }
22332
22333 # So?  What about this header?
22334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22335   yes:no: )
22336     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22337 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22338     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22339 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22340     ac_header_preproc=yes
22341     ;;
22342   no:yes:* )
22343     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22344 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22345     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22346 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22347     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22348 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22349     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22350 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22351     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22352 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22353     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22354 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22355
22356     ;;
22357 esac
22358 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22359 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22360 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22361   echo $ECHO_N "(cached) $ECHO_C" >&6
22362 else
22363   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22364 fi
22365 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22366 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22367
22368 fi
22369 if test $ac_cv_header_sys_statvfs_h = yes; then
22370
22371 cat >>confdefs.h <<\_ACEOF
22372 #define HAVE_SYS_STATVFS_H 1
22373 _ACEOF
22374
22375 fi
22376
22377
22378
22379 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22380 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22381 if test "${ac_cv_type_signal+set}" = set; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384   cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h.  */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h.  */
22390 #include <sys/types.h>
22391 #include <signal.h>
22392
22393 int
22394 main ()
22395 {
22396 return *(signal (0, 0)) (0) == 1;
22397   ;
22398   return 0;
22399 }
22400 _ACEOF
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405   *) ac_try_echo=$ac_try;;
22406 esac
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408   (eval "$ac_compile") 2>conftest.er1
22409   ac_status=$?
22410   grep -v '^ *+' conftest.er1 >conftest.err
22411   rm -f conftest.er1
22412   cat conftest.err >&5
22413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414   (exit $ac_status); } && {
22415          test -z "$ac_c_werror_flag" ||
22416          test ! -s conftest.err
22417        } && test -s conftest.$ac_objext; then
22418   ac_cv_type_signal=int
22419 else
22420   echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22422
22423         ac_cv_type_signal=void
22424 fi
22425
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22427 fi
22428 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22429 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22430
22431 cat >>confdefs.h <<_ACEOF
22432 #define RETSIGTYPE $ac_cv_type_signal
22433 _ACEOF
22434
22435
22436
22437   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22438 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22439   if test "${bash_cv_signal_vintage+set}" = set; then
22440   echo $ECHO_N "(cached) $ECHO_C" >&6
22441 else
22442
22443     cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h.  */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h.  */
22449 #include <signal.h>
22450 int
22451 main ()
22452 {
22453
22454       sigset_t ss;
22455       struct sigaction sa;
22456       sigemptyset(&ss); sigsuspend(&ss);
22457       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22458       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22459
22460   ;
22461   return 0;
22462 }
22463 _ACEOF
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22468   *) ac_try_echo=$ac_try;;
22469 esac
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471   (eval "$ac_link") 2>conftest.er1
22472   ac_status=$?
22473   grep -v '^ *+' conftest.er1 >conftest.err
22474   rm -f conftest.er1
22475   cat conftest.err >&5
22476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477   (exit $ac_status); } && {
22478          test -z "$ac_c_werror_flag" ||
22479          test ! -s conftest.err
22480        } && test -s conftest$ac_exeext &&
22481        $as_test_x conftest$ac_exeext; then
22482   bash_cv_signal_vintage="posix"
22483 else
22484   echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487
22488       cat >conftest.$ac_ext <<_ACEOF
22489 /* confdefs.h.  */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h.  */
22494 #include <signal.h>
22495 int
22496 main ()
22497 {
22498
22499           int mask = sigmask(SIGINT);
22500           sigsetmask(mask); sigblock(mask); sigpause(mask);
22501
22502   ;
22503   return 0;
22504 }
22505 _ACEOF
22506 rm -f conftest.$ac_objext conftest$ac_exeext
22507 if { (ac_try="$ac_link"
22508 case "(($ac_try" in
22509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22510   *) ac_try_echo=$ac_try;;
22511 esac
22512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22513   (eval "$ac_link") 2>conftest.er1
22514   ac_status=$?
22515   grep -v '^ *+' conftest.er1 >conftest.err
22516   rm -f conftest.er1
22517   cat conftest.err >&5
22518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22519   (exit $ac_status); } && {
22520          test -z "$ac_c_werror_flag" ||
22521          test ! -s conftest.err
22522        } && test -s conftest$ac_exeext &&
22523        $as_test_x conftest$ac_exeext; then
22524   bash_cv_signal_vintage="4.2bsd"
22525 else
22526   echo "$as_me: failed program was:" >&5
22527 sed 's/^/| /' conftest.$ac_ext >&5
22528
22529
22530         cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h.  */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h.  */
22536
22537           #include <signal.h>
22538           RETSIGTYPE foo() { }
22539 int
22540 main ()
22541 {
22542
22543                   int mask = sigmask(SIGINT);
22544                   sigset(SIGINT, foo); sigrelse(SIGINT);
22545                   sighold(SIGINT); sigpause(SIGINT);
22546
22547   ;
22548   return 0;
22549 }
22550 _ACEOF
22551 rm -f conftest.$ac_objext conftest$ac_exeext
22552 if { (ac_try="$ac_link"
22553 case "(($ac_try" in
22554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555   *) ac_try_echo=$ac_try;;
22556 esac
22557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558   (eval "$ac_link") 2>conftest.er1
22559   ac_status=$?
22560   grep -v '^ *+' conftest.er1 >conftest.err
22561   rm -f conftest.er1
22562   cat conftest.err >&5
22563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564   (exit $ac_status); } && {
22565          test -z "$ac_c_werror_flag" ||
22566          test ! -s conftest.err
22567        } && test -s conftest$ac_exeext &&
22568        $as_test_x conftest$ac_exeext; then
22569   bash_cv_signal_vintage="svr3"
22570 else
22571   echo "$as_me: failed program was:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22573
22574         bash_cv_signal_vintage="v7"
22575
22576 fi
22577
22578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22579       conftest$ac_exeext conftest.$ac_ext
22580
22581 fi
22582
22583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22584       conftest$ac_exeext conftest.$ac_ext
22585
22586 fi
22587
22588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22589       conftest$ac_exeext conftest.$ac_ext
22590
22591 fi
22592
22593   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22594 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22595   if test "$bash_cv_signal_vintage" = "posix"; then
22596     cat >>confdefs.h <<\_ACEOF
22597 #define HAVE_POSIX_SIGNALS 1
22598 _ACEOF
22599
22600   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22601     cat >>confdefs.h <<\_ACEOF
22602 #define HAVE_BSD_SIGNALS 1
22603 _ACEOF
22604
22605   elif test "$bash_cv_signal_vintage" = "svr3"; then
22606     cat >>confdefs.h <<\_ACEOF
22607 #define HAVE_USG_SIGHOLD 1
22608 _ACEOF
22609
22610   fi
22611
22612 { echo "$as_me:$LINENO: checking for mode_t" >&5
22613 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22614 if test "${ac_cv_type_mode_t+set}" = set; then
22615   echo $ECHO_N "(cached) $ECHO_C" >&6
22616 else
22617   cat >conftest.$ac_ext <<_ACEOF
22618 /* confdefs.h.  */
22619 _ACEOF
22620 cat confdefs.h >>conftest.$ac_ext
22621 cat >>conftest.$ac_ext <<_ACEOF
22622 /* end confdefs.h.  */
22623 $ac_includes_default
22624 typedef mode_t ac__type_new_;
22625 int
22626 main ()
22627 {
22628 if ((ac__type_new_ *) 0)
22629   return 0;
22630 if (sizeof (ac__type_new_))
22631   return 0;
22632   ;
22633   return 0;
22634 }
22635 _ACEOF
22636 rm -f conftest.$ac_objext
22637 if { (ac_try="$ac_compile"
22638 case "(($ac_try" in
22639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22640   *) ac_try_echo=$ac_try;;
22641 esac
22642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22643   (eval "$ac_compile") 2>conftest.er1
22644   ac_status=$?
22645   grep -v '^ *+' conftest.er1 >conftest.err
22646   rm -f conftest.er1
22647   cat conftest.err >&5
22648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22649   (exit $ac_status); } && {
22650          test -z "$ac_c_werror_flag" ||
22651          test ! -s conftest.err
22652        } && test -s conftest.$ac_objext; then
22653   ac_cv_type_mode_t=yes
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658         ac_cv_type_mode_t=no
22659 fi
22660
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 fi
22663 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22664 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22665 if test $ac_cv_type_mode_t = yes; then
22666   :
22667 else
22668
22669 cat >>confdefs.h <<_ACEOF
22670 #define mode_t int
22671 _ACEOF
22672
22673 fi
22674
22675 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22676 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22677 if test "${ac_cv_type_uid_t+set}" = set; then
22678   echo $ECHO_N "(cached) $ECHO_C" >&6
22679 else
22680   cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h.  */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h.  */
22686 #include <sys/types.h>
22687
22688 _ACEOF
22689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22690   $EGREP "uid_t" >/dev/null 2>&1; then
22691   ac_cv_type_uid_t=yes
22692 else
22693   ac_cv_type_uid_t=no
22694 fi
22695 rm -f conftest*
22696
22697 fi
22698 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22699 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22700 if test $ac_cv_type_uid_t = no; then
22701
22702 cat >>confdefs.h <<\_ACEOF
22703 #define uid_t int
22704 _ACEOF
22705
22706
22707 cat >>confdefs.h <<\_ACEOF
22708 #define gid_t int
22709 _ACEOF
22710
22711 fi
22712
22713 { echo "$as_me:$LINENO: checking for size_t" >&5
22714 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22715 if test "${ac_cv_type_size_t+set}" = set; then
22716   echo $ECHO_N "(cached) $ECHO_C" >&6
22717 else
22718   cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h.  */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h.  */
22724 $ac_includes_default
22725 typedef size_t ac__type_new_;
22726 int
22727 main ()
22728 {
22729 if ((ac__type_new_ *) 0)
22730   return 0;
22731 if (sizeof (ac__type_new_))
22732   return 0;
22733   ;
22734   return 0;
22735 }
22736 _ACEOF
22737 rm -f conftest.$ac_objext
22738 if { (ac_try="$ac_compile"
22739 case "(($ac_try" in
22740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22741   *) ac_try_echo=$ac_try;;
22742 esac
22743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22744   (eval "$ac_compile") 2>conftest.er1
22745   ac_status=$?
22746   grep -v '^ *+' conftest.er1 >conftest.err
22747   rm -f conftest.er1
22748   cat conftest.err >&5
22749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750   (exit $ac_status); } && {
22751          test -z "$ac_c_werror_flag" ||
22752          test ! -s conftest.err
22753        } && test -s conftest.$ac_objext; then
22754   ac_cv_type_size_t=yes
22755 else
22756   echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22758
22759         ac_cv_type_size_t=no
22760 fi
22761
22762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763 fi
22764 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22765 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22766 if test $ac_cv_type_size_t = yes; then
22767   :
22768 else
22769
22770 cat >>confdefs.h <<_ACEOF
22771 #define size_t unsigned int
22772 _ACEOF
22773
22774 fi
22775
22776 { echo "$as_me:$LINENO: checking for pid_t" >&5
22777 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22778 if test "${ac_cv_type_pid_t+set}" = set; then
22779   echo $ECHO_N "(cached) $ECHO_C" >&6
22780 else
22781   cat >conftest.$ac_ext <<_ACEOF
22782 /* confdefs.h.  */
22783 _ACEOF
22784 cat confdefs.h >>conftest.$ac_ext
22785 cat >>conftest.$ac_ext <<_ACEOF
22786 /* end confdefs.h.  */
22787 $ac_includes_default
22788 typedef pid_t ac__type_new_;
22789 int
22790 main ()
22791 {
22792 if ((ac__type_new_ *) 0)
22793   return 0;
22794 if (sizeof (ac__type_new_))
22795   return 0;
22796   ;
22797   return 0;
22798 }
22799 _ACEOF
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804   *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807   (eval "$ac_compile") 2>conftest.er1
22808   ac_status=$?
22809   grep -v '^ *+' conftest.er1 >conftest.err
22810   rm -f conftest.er1
22811   cat conftest.err >&5
22812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22813   (exit $ac_status); } && {
22814          test -z "$ac_c_werror_flag" ||
22815          test ! -s conftest.err
22816        } && test -s conftest.$ac_objext; then
22817   ac_cv_type_pid_t=yes
22818 else
22819   echo "$as_me: failed program was:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22821
22822         ac_cv_type_pid_t=no
22823 fi
22824
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22826 fi
22827 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22828 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22829 if test $ac_cv_type_pid_t = yes; then
22830   :
22831 else
22832
22833 cat >>confdefs.h <<_ACEOF
22834 #define pid_t int
22835 _ACEOF
22836
22837 fi
22838
22839 { echo "$as_me:$LINENO: checking for off_t" >&5
22840 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22841 if test "${ac_cv_type_off_t+set}" = set; then
22842   echo $ECHO_N "(cached) $ECHO_C" >&6
22843 else
22844   cat >conftest.$ac_ext <<_ACEOF
22845 /* confdefs.h.  */
22846 _ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h.  */
22850 $ac_includes_default
22851 typedef off_t ac__type_new_;
22852 int
22853 main ()
22854 {
22855 if ((ac__type_new_ *) 0)
22856   return 0;
22857 if (sizeof (ac__type_new_))
22858   return 0;
22859   ;
22860   return 0;
22861 }
22862 _ACEOF
22863 rm -f conftest.$ac_objext
22864 if { (ac_try="$ac_compile"
22865 case "(($ac_try" in
22866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22867   *) ac_try_echo=$ac_try;;
22868 esac
22869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22870   (eval "$ac_compile") 2>conftest.er1
22871   ac_status=$?
22872   grep -v '^ *+' conftest.er1 >conftest.err
22873   rm -f conftest.er1
22874   cat conftest.err >&5
22875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876   (exit $ac_status); } && {
22877          test -z "$ac_c_werror_flag" ||
22878          test ! -s conftest.err
22879        } && test -s conftest.$ac_objext; then
22880   ac_cv_type_off_t=yes
22881 else
22882   echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.$ac_ext >&5
22884
22885         ac_cv_type_off_t=no
22886 fi
22887
22888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22889 fi
22890 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22891 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22892 if test $ac_cv_type_off_t = yes; then
22893   :
22894 else
22895
22896 cat >>confdefs.h <<_ACEOF
22897 #define off_t long int
22898 _ACEOF
22899
22900 fi
22901
22902 { echo "$as_me:$LINENO: checking for ino_t" >&5
22903 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22904 if test "${ac_cv_type_ino_t+set}" = set; then
22905   echo $ECHO_N "(cached) $ECHO_C" >&6
22906 else
22907   cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h.  */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h.  */
22913 $ac_includes_default
22914 typedef ino_t ac__type_new_;
22915 int
22916 main ()
22917 {
22918 if ((ac__type_new_ *) 0)
22919   return 0;
22920 if (sizeof (ac__type_new_))
22921   return 0;
22922   ;
22923   return 0;
22924 }
22925 _ACEOF
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930   *) ac_try_echo=$ac_try;;
22931 esac
22932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22933   (eval "$ac_compile") 2>conftest.er1
22934   ac_status=$?
22935   grep -v '^ *+' conftest.er1 >conftest.err
22936   rm -f conftest.er1
22937   cat conftest.err >&5
22938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22939   (exit $ac_status); } && {
22940          test -z "$ac_c_werror_flag" ||
22941          test ! -s conftest.err
22942        } && test -s conftest.$ac_objext; then
22943   ac_cv_type_ino_t=yes
22944 else
22945   echo "$as_me: failed program was:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22947
22948         ac_cv_type_ino_t=no
22949 fi
22950
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 fi
22953 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22954 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22955 if test $ac_cv_type_ino_t = yes; then
22956   :
22957 else
22958
22959 cat >>confdefs.h <<_ACEOF
22960 #define ino_t unsigned long
22961 _ACEOF
22962
22963 fi
22964
22965 { echo "$as_me:$LINENO: checking for dev_t" >&5
22966 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22967 if test "${ac_cv_type_dev_t+set}" = set; then
22968   echo $ECHO_N "(cached) $ECHO_C" >&6
22969 else
22970   cat >conftest.$ac_ext <<_ACEOF
22971 /* confdefs.h.  */
22972 _ACEOF
22973 cat confdefs.h >>conftest.$ac_ext
22974 cat >>conftest.$ac_ext <<_ACEOF
22975 /* end confdefs.h.  */
22976 $ac_includes_default
22977 typedef dev_t ac__type_new_;
22978 int
22979 main ()
22980 {
22981 if ((ac__type_new_ *) 0)
22982   return 0;
22983 if (sizeof (ac__type_new_))
22984   return 0;
22985   ;
22986   return 0;
22987 }
22988 _ACEOF
22989 rm -f conftest.$ac_objext
22990 if { (ac_try="$ac_compile"
22991 case "(($ac_try" in
22992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993   *) ac_try_echo=$ac_try;;
22994 esac
22995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22996   (eval "$ac_compile") 2>conftest.er1
22997   ac_status=$?
22998   grep -v '^ *+' conftest.er1 >conftest.err
22999   rm -f conftest.er1
23000   cat conftest.err >&5
23001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002   (exit $ac_status); } && {
23003          test -z "$ac_c_werror_flag" ||
23004          test ! -s conftest.err
23005        } && test -s conftest.$ac_objext; then
23006   ac_cv_type_dev_t=yes
23007 else
23008   echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011         ac_cv_type_dev_t=no
23012 fi
23013
23014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23015 fi
23016 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
23017 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
23018 if test $ac_cv_type_dev_t = yes; then
23019   :
23020 else
23021
23022 cat >>confdefs.h <<_ACEOF
23023 #define dev_t unsigned long
23024 _ACEOF
23025
23026 fi
23027
23028 { echo "$as_me:$LINENO: checking for daddr_t" >&5
23029 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
23030 if test "${ac_cv_type_daddr_t+set}" = set; then
23031   echo $ECHO_N "(cached) $ECHO_C" >&6
23032 else
23033   cat >conftest.$ac_ext <<_ACEOF
23034 /* confdefs.h.  */
23035 _ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h.  */
23039 $ac_includes_default
23040 typedef daddr_t ac__type_new_;
23041 int
23042 main ()
23043 {
23044 if ((ac__type_new_ *) 0)
23045   return 0;
23046 if (sizeof (ac__type_new_))
23047   return 0;
23048   ;
23049   return 0;
23050 }
23051 _ACEOF
23052 rm -f conftest.$ac_objext
23053 if { (ac_try="$ac_compile"
23054 case "(($ac_try" in
23055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23056   *) ac_try_echo=$ac_try;;
23057 esac
23058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23059   (eval "$ac_compile") 2>conftest.er1
23060   ac_status=$?
23061   grep -v '^ *+' conftest.er1 >conftest.err
23062   rm -f conftest.er1
23063   cat conftest.err >&5
23064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065   (exit $ac_status); } && {
23066          test -z "$ac_c_werror_flag" ||
23067          test ! -s conftest.err
23068        } && test -s conftest.$ac_objext; then
23069   ac_cv_type_daddr_t=yes
23070 else
23071   echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23073
23074         ac_cv_type_daddr_t=no
23075 fi
23076
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 fi
23079 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
23080 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
23081 if test $ac_cv_type_daddr_t = yes; then
23082   :
23083 else
23084
23085 cat >>confdefs.h <<_ACEOF
23086 #define daddr_t long
23087 _ACEOF
23088
23089 fi
23090
23091 { echo "$as_me:$LINENO: checking for major_t" >&5
23092 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
23093 if test "${ac_cv_type_major_t+set}" = set; then
23094   echo $ECHO_N "(cached) $ECHO_C" >&6
23095 else
23096   cat >conftest.$ac_ext <<_ACEOF
23097 /* confdefs.h.  */
23098 _ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h.  */
23102 $ac_includes_default
23103 typedef major_t ac__type_new_;
23104 int
23105 main ()
23106 {
23107 if ((ac__type_new_ *) 0)
23108   return 0;
23109 if (sizeof (ac__type_new_))
23110   return 0;
23111   ;
23112   return 0;
23113 }
23114 _ACEOF
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119   *) ac_try_echo=$ac_try;;
23120 esac
23121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23122   (eval "$ac_compile") 2>conftest.er1
23123   ac_status=$?
23124   grep -v '^ *+' conftest.er1 >conftest.err
23125   rm -f conftest.er1
23126   cat conftest.err >&5
23127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128   (exit $ac_status); } && {
23129          test -z "$ac_c_werror_flag" ||
23130          test ! -s conftest.err
23131        } && test -s conftest.$ac_objext; then
23132   ac_cv_type_major_t=yes
23133 else
23134   echo "$as_me: failed program was:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23136
23137         ac_cv_type_major_t=no
23138 fi
23139
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 fi
23142 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
23143 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
23144 if test $ac_cv_type_major_t = yes; then
23145   :
23146 else
23147
23148 cat >>confdefs.h <<_ACEOF
23149 #define major_t int
23150 _ACEOF
23151
23152 fi
23153
23154 { echo "$as_me:$LINENO: checking for minor_t" >&5
23155 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
23156 if test "${ac_cv_type_minor_t+set}" = set; then
23157   echo $ECHO_N "(cached) $ECHO_C" >&6
23158 else
23159   cat >conftest.$ac_ext <<_ACEOF
23160 /* confdefs.h.  */
23161 _ACEOF
23162 cat confdefs.h >>conftest.$ac_ext
23163 cat >>conftest.$ac_ext <<_ACEOF
23164 /* end confdefs.h.  */
23165 $ac_includes_default
23166 typedef minor_t ac__type_new_;
23167 int
23168 main ()
23169 {
23170 if ((ac__type_new_ *) 0)
23171   return 0;
23172 if (sizeof (ac__type_new_))
23173   return 0;
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 rm -f conftest.$ac_objext
23179 if { (ac_try="$ac_compile"
23180 case "(($ac_try" in
23181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23182   *) ac_try_echo=$ac_try;;
23183 esac
23184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23185   (eval "$ac_compile") 2>conftest.er1
23186   ac_status=$?
23187   grep -v '^ *+' conftest.er1 >conftest.err
23188   rm -f conftest.er1
23189   cat conftest.err >&5
23190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23191   (exit $ac_status); } && {
23192          test -z "$ac_c_werror_flag" ||
23193          test ! -s conftest.err
23194        } && test -s conftest.$ac_objext; then
23195   ac_cv_type_minor_t=yes
23196 else
23197   echo "$as_me: failed program was:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23199
23200         ac_cv_type_minor_t=no
23201 fi
23202
23203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 fi
23205 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
23206 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
23207 if test $ac_cv_type_minor_t = yes; then
23208   :
23209 else
23210
23211 cat >>confdefs.h <<_ACEOF
23212 #define minor_t int
23213 _ACEOF
23214
23215 fi
23216
23217 { echo "$as_me:$LINENO: checking for ssize_t" >&5
23218 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
23219 if test "${ac_cv_type_ssize_t+set}" = set; then
23220   echo $ECHO_N "(cached) $ECHO_C" >&6
23221 else
23222   cat >conftest.$ac_ext <<_ACEOF
23223 /* confdefs.h.  */
23224 _ACEOF
23225 cat confdefs.h >>conftest.$ac_ext
23226 cat >>conftest.$ac_ext <<_ACEOF
23227 /* end confdefs.h.  */
23228 $ac_includes_default
23229 typedef ssize_t ac__type_new_;
23230 int
23231 main ()
23232 {
23233 if ((ac__type_new_ *) 0)
23234   return 0;
23235 if (sizeof (ac__type_new_))
23236   return 0;
23237   ;
23238   return 0;
23239 }
23240 _ACEOF
23241 rm -f conftest.$ac_objext
23242 if { (ac_try="$ac_compile"
23243 case "(($ac_try" in
23244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23245   *) ac_try_echo=$ac_try;;
23246 esac
23247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23248   (eval "$ac_compile") 2>conftest.er1
23249   ac_status=$?
23250   grep -v '^ *+' conftest.er1 >conftest.err
23251   rm -f conftest.er1
23252   cat conftest.err >&5
23253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254   (exit $ac_status); } && {
23255          test -z "$ac_c_werror_flag" ||
23256          test ! -s conftest.err
23257        } && test -s conftest.$ac_objext; then
23258   ac_cv_type_ssize_t=yes
23259 else
23260   echo "$as_me: failed program was:" >&5
23261 sed 's/^/| /' conftest.$ac_ext >&5
23262
23263         ac_cv_type_ssize_t=no
23264 fi
23265
23266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23267 fi
23268 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23269 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23270 if test $ac_cv_type_ssize_t = yes; then
23271   :
23272 else
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define ssize_t int
23276 _ACEOF
23277
23278 fi
23279
23280 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23281 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23282 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23283   echo $ECHO_N "(cached) $ECHO_C" >&6
23284 else
23285   cat >conftest.$ac_ext <<_ACEOF
23286 /* confdefs.h.  */
23287 _ACEOF
23288 cat confdefs.h >>conftest.$ac_ext
23289 cat >>conftest.$ac_ext <<_ACEOF
23290 /* end confdefs.h.  */
23291 $ac_includes_default
23292 int
23293 main ()
23294 {
23295 static struct stat ac_aggr;
23296 if (ac_aggr.st_blocks)
23297 return 0;
23298   ;
23299   return 0;
23300 }
23301 _ACEOF
23302 rm -f conftest.$ac_objext
23303 if { (ac_try="$ac_compile"
23304 case "(($ac_try" in
23305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306   *) ac_try_echo=$ac_try;;
23307 esac
23308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23309   (eval "$ac_compile") 2>conftest.er1
23310   ac_status=$?
23311   grep -v '^ *+' conftest.er1 >conftest.err
23312   rm -f conftest.er1
23313   cat conftest.err >&5
23314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315   (exit $ac_status); } && {
23316          test -z "$ac_c_werror_flag" ||
23317          test ! -s conftest.err
23318        } && test -s conftest.$ac_objext; then
23319   ac_cv_member_struct_stat_st_blocks=yes
23320 else
23321   echo "$as_me: failed program was:" >&5
23322 sed 's/^/| /' conftest.$ac_ext >&5
23323
23324         cat >conftest.$ac_ext <<_ACEOF
23325 /* confdefs.h.  */
23326 _ACEOF
23327 cat confdefs.h >>conftest.$ac_ext
23328 cat >>conftest.$ac_ext <<_ACEOF
23329 /* end confdefs.h.  */
23330 $ac_includes_default
23331 int
23332 main ()
23333 {
23334 static struct stat ac_aggr;
23335 if (sizeof ac_aggr.st_blocks)
23336 return 0;
23337   ;
23338   return 0;
23339 }
23340 _ACEOF
23341 rm -f conftest.$ac_objext
23342 if { (ac_try="$ac_compile"
23343 case "(($ac_try" in
23344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23345   *) ac_try_echo=$ac_try;;
23346 esac
23347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23348   (eval "$ac_compile") 2>conftest.er1
23349   ac_status=$?
23350   grep -v '^ *+' conftest.er1 >conftest.err
23351   rm -f conftest.er1
23352   cat conftest.err >&5
23353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354   (exit $ac_status); } && {
23355          test -z "$ac_c_werror_flag" ||
23356          test ! -s conftest.err
23357        } && test -s conftest.$ac_objext; then
23358   ac_cv_member_struct_stat_st_blocks=yes
23359 else
23360   echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363         ac_cv_member_struct_stat_st_blocks=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 fi
23368
23369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23370 fi
23371 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23372 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23373 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23374
23375 cat >>confdefs.h <<_ACEOF
23376 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23377 _ACEOF
23378
23379
23380 cat >>confdefs.h <<\_ACEOF
23381 #define HAVE_ST_BLOCKS 1
23382 _ACEOF
23383
23384 else
23385   case " $LIBOBJS " in
23386   *" fileblocks.$ac_objext "* ) ;;
23387   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23388  ;;
23389 esac
23390
23391 fi
23392
23393
23394 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23395 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23396 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23397   echo $ECHO_N "(cached) $ECHO_C" >&6
23398 else
23399   cat >conftest.$ac_ext <<_ACEOF
23400 /* confdefs.h.  */
23401 _ACEOF
23402 cat confdefs.h >>conftest.$ac_ext
23403 cat >>conftest.$ac_ext <<_ACEOF
23404 /* end confdefs.h.  */
23405 $ac_includes_default
23406 int
23407 main ()
23408 {
23409 static struct stat ac_aggr;
23410 if (ac_aggr.st_rdev)
23411 return 0;
23412   ;
23413   return 0;
23414 }
23415 _ACEOF
23416 rm -f conftest.$ac_objext
23417 if { (ac_try="$ac_compile"
23418 case "(($ac_try" in
23419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23420   *) ac_try_echo=$ac_try;;
23421 esac
23422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23423   (eval "$ac_compile") 2>conftest.er1
23424   ac_status=$?
23425   grep -v '^ *+' conftest.er1 >conftest.err
23426   rm -f conftest.er1
23427   cat conftest.err >&5
23428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429   (exit $ac_status); } && {
23430          test -z "$ac_c_werror_flag" ||
23431          test ! -s conftest.err
23432        } && test -s conftest.$ac_objext; then
23433   ac_cv_member_struct_stat_st_rdev=yes
23434 else
23435   echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23437
23438         cat >conftest.$ac_ext <<_ACEOF
23439 /* confdefs.h.  */
23440 _ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h.  */
23444 $ac_includes_default
23445 int
23446 main ()
23447 {
23448 static struct stat ac_aggr;
23449 if (sizeof ac_aggr.st_rdev)
23450 return 0;
23451   ;
23452   return 0;
23453 }
23454 _ACEOF
23455 rm -f conftest.$ac_objext
23456 if { (ac_try="$ac_compile"
23457 case "(($ac_try" in
23458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459   *) ac_try_echo=$ac_try;;
23460 esac
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462   (eval "$ac_compile") 2>conftest.er1
23463   ac_status=$?
23464   grep -v '^ *+' conftest.er1 >conftest.err
23465   rm -f conftest.er1
23466   cat conftest.err >&5
23467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468   (exit $ac_status); } && {
23469          test -z "$ac_c_werror_flag" ||
23470          test ! -s conftest.err
23471        } && test -s conftest.$ac_objext; then
23472   ac_cv_member_struct_stat_st_rdev=yes
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477         ac_cv_member_struct_stat_st_rdev=no
23478 fi
23479
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 fi
23482
23483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484 fi
23485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23486 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23487 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23488
23489 cat >>confdefs.h <<_ACEOF
23490 #define HAVE_STRUCT_STAT_ST_RDEV 1
23491 _ACEOF
23492
23493
23494 cat >>confdefs.h <<\_ACEOF
23495 #define HAVE_ST_RDEV 1
23496 _ACEOF
23497
23498 fi
23499
23500
23501 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23502 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23503 if test "${ac_cv_struct_tm+set}" = set; then
23504   echo $ECHO_N "(cached) $ECHO_C" >&6
23505 else
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512 #include <sys/types.h>
23513 #include <time.h>
23514
23515 int
23516 main ()
23517 {
23518 struct tm tm;
23519                                      int *p = &tm.tm_sec;
23520                                      return !p;
23521   ;
23522   return 0;
23523 }
23524 _ACEOF
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529   *) ac_try_echo=$ac_try;;
23530 esac
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532   (eval "$ac_compile") 2>conftest.er1
23533   ac_status=$?
23534   grep -v '^ *+' conftest.er1 >conftest.err
23535   rm -f conftest.er1
23536   cat conftest.err >&5
23537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538   (exit $ac_status); } && {
23539          test -z "$ac_c_werror_flag" ||
23540          test ! -s conftest.err
23541        } && test -s conftest.$ac_objext; then
23542   ac_cv_struct_tm=time.h
23543 else
23544   echo "$as_me: failed program was:" >&5
23545 sed 's/^/| /' conftest.$ac_ext >&5
23546
23547         ac_cv_struct_tm=sys/time.h
23548 fi
23549
23550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 fi
23552 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23553 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23554 if test $ac_cv_struct_tm = sys/time.h; then
23555
23556 cat >>confdefs.h <<\_ACEOF
23557 #define TM_IN_SYS_TIME 1
23558 _ACEOF
23559
23560 fi
23561
23562 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23563 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23564 if test "${ac_cv_c_const+set}" = set; then
23565   echo $ECHO_N "(cached) $ECHO_C" >&6
23566 else
23567   cat >conftest.$ac_ext <<_ACEOF
23568 /* confdefs.h.  */
23569 _ACEOF
23570 cat confdefs.h >>conftest.$ac_ext
23571 cat >>conftest.$ac_ext <<_ACEOF
23572 /* end confdefs.h.  */
23573
23574 int
23575 main ()
23576 {
23577 /* FIXME: Include the comments suggested by Paul. */
23578 #ifndef __cplusplus
23579   /* Ultrix mips cc rejects this.  */
23580   typedef int charset[2];
23581   const charset cs;
23582   /* SunOS 4.1.1 cc rejects this.  */
23583   char const *const *pcpcc;
23584   char **ppc;
23585   /* NEC SVR4.0.2 mips cc rejects this.  */
23586   struct point {int x, y;};
23587   static struct point const zero = {0,0};
23588   /* AIX XL C 1.02.0.0 rejects this.
23589      It does not let you subtract one const X* pointer from another in
23590      an arm of an if-expression whose if-part is not a constant
23591      expression */
23592   const char *g = "string";
23593   pcpcc = &g + (g ? g-g : 0);
23594   /* HPUX 7.0 cc rejects these. */
23595   ++pcpcc;
23596   ppc = (char**) pcpcc;
23597   pcpcc = (char const *const *) ppc;
23598   { /* SCO 3.2v4 cc rejects this.  */
23599     char *t;
23600     char const *s = 0 ? (char *) 0 : (char const *) 0;
23601
23602     *t++ = 0;
23603     if (s) return 0;
23604   }
23605   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23606     int x[] = {25, 17};
23607     const int *foo = &x[0];
23608     ++foo;
23609   }
23610   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23611     typedef const int *iptr;
23612     iptr p = 0;
23613     ++p;
23614   }
23615   { /* AIX XL C 1.02.0.0 rejects this saying
23616        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23617     struct s { int j; const int *ap[3]; };
23618     struct s *b; b->j = 5;
23619   }
23620   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23621     const int foo = 10;
23622     if (!foo) return 0;
23623   }
23624   return !cs[0] && !zero.x;
23625 #endif
23626
23627   ;
23628   return 0;
23629 }
23630 _ACEOF
23631 rm -f conftest.$ac_objext
23632 if { (ac_try="$ac_compile"
23633 case "(($ac_try" in
23634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23635   *) ac_try_echo=$ac_try;;
23636 esac
23637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23638   (eval "$ac_compile") 2>conftest.er1
23639   ac_status=$?
23640   grep -v '^ *+' conftest.er1 >conftest.err
23641   rm -f conftest.er1
23642   cat conftest.err >&5
23643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644   (exit $ac_status); } && {
23645          test -z "$ac_c_werror_flag" ||
23646          test ! -s conftest.err
23647        } && test -s conftest.$ac_objext; then
23648   ac_cv_c_const=yes
23649 else
23650   echo "$as_me: failed program was:" >&5
23651 sed 's/^/| /' conftest.$ac_ext >&5
23652
23653         ac_cv_c_const=no
23654 fi
23655
23656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 fi
23658 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23659 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23660 if test $ac_cv_c_const = no; then
23661
23662 cat >>confdefs.h <<\_ACEOF
23663 #define const
23664 _ACEOF
23665
23666 fi
23667
23668
23669
23670 { echo "$as_me:$LINENO: checking for char" >&5
23671 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23672 if test "${ac_cv_type_char+set}" = set; then
23673   echo $ECHO_N "(cached) $ECHO_C" >&6
23674 else
23675   cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h.  */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h.  */
23681 $ac_includes_default
23682 typedef char ac__type_new_;
23683 int
23684 main ()
23685 {
23686 if ((ac__type_new_ *) 0)
23687   return 0;
23688 if (sizeof (ac__type_new_))
23689   return 0;
23690   ;
23691   return 0;
23692 }
23693 _ACEOF
23694 rm -f conftest.$ac_objext
23695 if { (ac_try="$ac_compile"
23696 case "(($ac_try" in
23697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23698   *) ac_try_echo=$ac_try;;
23699 esac
23700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23701   (eval "$ac_compile") 2>conftest.er1
23702   ac_status=$?
23703   grep -v '^ *+' conftest.er1 >conftest.err
23704   rm -f conftest.er1
23705   cat conftest.err >&5
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); } && {
23708          test -z "$ac_c_werror_flag" ||
23709          test ! -s conftest.err
23710        } && test -s conftest.$ac_objext; then
23711   ac_cv_type_char=yes
23712 else
23713   echo "$as_me: failed program was:" >&5
23714 sed 's/^/| /' conftest.$ac_ext >&5
23715
23716         ac_cv_type_char=no
23717 fi
23718
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23720 fi
23721 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23722 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23723
23724 # The cast to long int works around a bug in the HP C Compiler
23725 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23726 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23727 # This bug is HP SR number 8606223364.
23728 { echo "$as_me:$LINENO: checking size of char" >&5
23729 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23730 if test "${ac_cv_sizeof_char+set}" = set; then
23731   echo $ECHO_N "(cached) $ECHO_C" >&6
23732 else
23733   if test "$cross_compiling" = yes; then
23734   # Depending upon the size, compute the lo and hi bounds.
23735 cat >conftest.$ac_ext <<_ACEOF
23736 /* confdefs.h.  */
23737 _ACEOF
23738 cat confdefs.h >>conftest.$ac_ext
23739 cat >>conftest.$ac_ext <<_ACEOF
23740 /* end confdefs.h.  */
23741 $ac_includes_default
23742    typedef char ac__type_sizeof_;
23743 int
23744 main ()
23745 {
23746 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23747 test_array [0] = 0
23748
23749   ;
23750   return 0;
23751 }
23752 _ACEOF
23753 rm -f conftest.$ac_objext
23754 if { (ac_try="$ac_compile"
23755 case "(($ac_try" in
23756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23757   *) ac_try_echo=$ac_try;;
23758 esac
23759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23760   (eval "$ac_compile") 2>conftest.er1
23761   ac_status=$?
23762   grep -v '^ *+' conftest.er1 >conftest.err
23763   rm -f conftest.er1
23764   cat conftest.err >&5
23765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23766   (exit $ac_status); } && {
23767          test -z "$ac_c_werror_flag" ||
23768          test ! -s conftest.err
23769        } && test -s conftest.$ac_objext; then
23770   ac_lo=0 ac_mid=0
23771   while :; do
23772     cat >conftest.$ac_ext <<_ACEOF
23773 /* confdefs.h.  */
23774 _ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h.  */
23778 $ac_includes_default
23779    typedef char ac__type_sizeof_;
23780 int
23781 main ()
23782 {
23783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23784 test_array [0] = 0
23785
23786   ;
23787   return 0;
23788 }
23789 _ACEOF
23790 rm -f conftest.$ac_objext
23791 if { (ac_try="$ac_compile"
23792 case "(($ac_try" in
23793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794   *) ac_try_echo=$ac_try;;
23795 esac
23796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23797   (eval "$ac_compile") 2>conftest.er1
23798   ac_status=$?
23799   grep -v '^ *+' conftest.er1 >conftest.err
23800   rm -f conftest.er1
23801   cat conftest.err >&5
23802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803   (exit $ac_status); } && {
23804          test -z "$ac_c_werror_flag" ||
23805          test ! -s conftest.err
23806        } && test -s conftest.$ac_objext; then
23807   ac_hi=$ac_mid; break
23808 else
23809   echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812         ac_lo=`expr $ac_mid + 1`
23813                         if test $ac_lo -le $ac_mid; then
23814                           ac_lo= ac_hi=
23815                           break
23816                         fi
23817                         ac_mid=`expr 2 '*' $ac_mid + 1`
23818 fi
23819
23820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23821   done
23822 else
23823   echo "$as_me: failed program was:" >&5
23824 sed 's/^/| /' conftest.$ac_ext >&5
23825
23826         cat >conftest.$ac_ext <<_ACEOF
23827 /* confdefs.h.  */
23828 _ACEOF
23829 cat confdefs.h >>conftest.$ac_ext
23830 cat >>conftest.$ac_ext <<_ACEOF
23831 /* end confdefs.h.  */
23832 $ac_includes_default
23833    typedef char ac__type_sizeof_;
23834 int
23835 main ()
23836 {
23837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23838 test_array [0] = 0
23839
23840   ;
23841   return 0;
23842 }
23843 _ACEOF
23844 rm -f conftest.$ac_objext
23845 if { (ac_try="$ac_compile"
23846 case "(($ac_try" in
23847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23848   *) ac_try_echo=$ac_try;;
23849 esac
23850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23851   (eval "$ac_compile") 2>conftest.er1
23852   ac_status=$?
23853   grep -v '^ *+' conftest.er1 >conftest.err
23854   rm -f conftest.er1
23855   cat conftest.err >&5
23856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857   (exit $ac_status); } && {
23858          test -z "$ac_c_werror_flag" ||
23859          test ! -s conftest.err
23860        } && test -s conftest.$ac_objext; then
23861   ac_hi=-1 ac_mid=-1
23862   while :; do
23863     cat >conftest.$ac_ext <<_ACEOF
23864 /* confdefs.h.  */
23865 _ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h.  */
23869 $ac_includes_default
23870    typedef char ac__type_sizeof_;
23871 int
23872 main ()
23873 {
23874 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23875 test_array [0] = 0
23876
23877   ;
23878   return 0;
23879 }
23880 _ACEOF
23881 rm -f conftest.$ac_objext
23882 if { (ac_try="$ac_compile"
23883 case "(($ac_try" in
23884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23885   *) ac_try_echo=$ac_try;;
23886 esac
23887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23888   (eval "$ac_compile") 2>conftest.er1
23889   ac_status=$?
23890   grep -v '^ *+' conftest.er1 >conftest.err
23891   rm -f conftest.er1
23892   cat conftest.err >&5
23893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23894   (exit $ac_status); } && {
23895          test -z "$ac_c_werror_flag" ||
23896          test ! -s conftest.err
23897        } && test -s conftest.$ac_objext; then
23898   ac_lo=$ac_mid; break
23899 else
23900   echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.$ac_ext >&5
23902
23903         ac_hi=`expr '(' $ac_mid ')' - 1`
23904                         if test $ac_mid -le $ac_hi; then
23905                           ac_lo= ac_hi=
23906                           break
23907                         fi
23908                         ac_mid=`expr 2 '*' $ac_mid`
23909 fi
23910
23911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23912   done
23913 else
23914   echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23916
23917         ac_lo= ac_hi=
23918 fi
23919
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 fi
23922
23923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23924 # Binary search between lo and hi bounds.
23925 while test "x$ac_lo" != "x$ac_hi"; do
23926   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23927   cat >conftest.$ac_ext <<_ACEOF
23928 /* confdefs.h.  */
23929 _ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h.  */
23933 $ac_includes_default
23934    typedef char ac__type_sizeof_;
23935 int
23936 main ()
23937 {
23938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23939 test_array [0] = 0
23940
23941   ;
23942   return 0;
23943 }
23944 _ACEOF
23945 rm -f conftest.$ac_objext
23946 if { (ac_try="$ac_compile"
23947 case "(($ac_try" in
23948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949   *) ac_try_echo=$ac_try;;
23950 esac
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952   (eval "$ac_compile") 2>conftest.er1
23953   ac_status=$?
23954   grep -v '^ *+' conftest.er1 >conftest.err
23955   rm -f conftest.er1
23956   cat conftest.err >&5
23957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958   (exit $ac_status); } && {
23959          test -z "$ac_c_werror_flag" ||
23960          test ! -s conftest.err
23961        } && test -s conftest.$ac_objext; then
23962   ac_hi=$ac_mid
23963 else
23964   echo "$as_me: failed program was:" >&5
23965 sed 's/^/| /' conftest.$ac_ext >&5
23966
23967         ac_lo=`expr '(' $ac_mid ')' + 1`
23968 fi
23969
23970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23971 done
23972 case $ac_lo in
23973 ?*) ac_cv_sizeof_char=$ac_lo;;
23974 '') if test "$ac_cv_type_char" = yes; then
23975      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23976 See \`config.log' for more details." >&5
23977 echo "$as_me: error: cannot compute sizeof (char)
23978 See \`config.log' for more details." >&2;}
23979    { (exit 77); exit 77; }; }
23980    else
23981      ac_cv_sizeof_char=0
23982    fi ;;
23983 esac
23984 else
23985   cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h.  */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h.  */
23991 $ac_includes_default
23992    typedef char ac__type_sizeof_;
23993 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23994 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23995 #include <stdio.h>
23996 #include <stdlib.h>
23997 int
23998 main ()
23999 {
24000
24001   FILE *f = fopen ("conftest.val", "w");
24002   if (! f)
24003     return 1;
24004   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24005     {
24006       long int i = longval ();
24007       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24008         return 1;
24009       fprintf (f, "%ld\n", i);
24010     }
24011   else
24012     {
24013       unsigned long int i = ulongval ();
24014       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24015         return 1;
24016       fprintf (f, "%lu\n", i);
24017     }
24018   return ferror (f) || fclose (f) != 0;
24019
24020   ;
24021   return 0;
24022 }
24023 _ACEOF
24024 rm -f conftest$ac_exeext
24025 if { (ac_try="$ac_link"
24026 case "(($ac_try" in
24027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24028   *) ac_try_echo=$ac_try;;
24029 esac
24030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24031   (eval "$ac_link") 2>&5
24032   ac_status=$?
24033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24035   { (case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040   (eval "$ac_try") 2>&5
24041   ac_status=$?
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); }; }; then
24044   ac_cv_sizeof_char=`cat conftest.val`
24045 else
24046   echo "$as_me: program exited with status $ac_status" >&5
24047 echo "$as_me: failed program was:" >&5
24048 sed 's/^/| /' conftest.$ac_ext >&5
24049
24050 ( exit $ac_status )
24051 if test "$ac_cv_type_char" = yes; then
24052      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
24053 See \`config.log' for more details." >&5
24054 echo "$as_me: error: cannot compute sizeof (char)
24055 See \`config.log' for more details." >&2;}
24056    { (exit 77); exit 77; }; }
24057    else
24058      ac_cv_sizeof_char=0
24059    fi
24060 fi
24061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24062 fi
24063 rm -f conftest.val
24064 fi
24065 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
24066 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
24067
24068
24069
24070 cat >>confdefs.h <<_ACEOF
24071 #define SIZEOF_CHAR $ac_cv_sizeof_char
24072 _ACEOF
24073
24074
24075 { echo "$as_me:$LINENO: checking for short int" >&5
24076 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
24077 if test "${ac_cv_type_short_int+set}" = set; then
24078   echo $ECHO_N "(cached) $ECHO_C" >&6
24079 else
24080   cat >conftest.$ac_ext <<_ACEOF
24081 /* confdefs.h.  */
24082 _ACEOF
24083 cat confdefs.h >>conftest.$ac_ext
24084 cat >>conftest.$ac_ext <<_ACEOF
24085 /* end confdefs.h.  */
24086 $ac_includes_default
24087 typedef short int ac__type_new_;
24088 int
24089 main ()
24090 {
24091 if ((ac__type_new_ *) 0)
24092   return 0;
24093 if (sizeof (ac__type_new_))
24094   return 0;
24095   ;
24096   return 0;
24097 }
24098 _ACEOF
24099 rm -f conftest.$ac_objext
24100 if { (ac_try="$ac_compile"
24101 case "(($ac_try" in
24102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24103   *) ac_try_echo=$ac_try;;
24104 esac
24105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24106   (eval "$ac_compile") 2>conftest.er1
24107   ac_status=$?
24108   grep -v '^ *+' conftest.er1 >conftest.err
24109   rm -f conftest.er1
24110   cat conftest.err >&5
24111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112   (exit $ac_status); } && {
24113          test -z "$ac_c_werror_flag" ||
24114          test ! -s conftest.err
24115        } && test -s conftest.$ac_objext; then
24116   ac_cv_type_short_int=yes
24117 else
24118   echo "$as_me: failed program was:" >&5
24119 sed 's/^/| /' conftest.$ac_ext >&5
24120
24121         ac_cv_type_short_int=no
24122 fi
24123
24124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24125 fi
24126 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
24127 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
24128
24129 # The cast to long int works around a bug in the HP C Compiler
24130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24132 # This bug is HP SR number 8606223364.
24133 { echo "$as_me:$LINENO: checking size of short int" >&5
24134 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
24135 if test "${ac_cv_sizeof_short_int+set}" = set; then
24136   echo $ECHO_N "(cached) $ECHO_C" >&6
24137 else
24138   if test "$cross_compiling" = yes; then
24139   # Depending upon the size, compute the lo and hi bounds.
24140 cat >conftest.$ac_ext <<_ACEOF
24141 /* confdefs.h.  */
24142 _ACEOF
24143 cat confdefs.h >>conftest.$ac_ext
24144 cat >>conftest.$ac_ext <<_ACEOF
24145 /* end confdefs.h.  */
24146 $ac_includes_default
24147    typedef short int ac__type_sizeof_;
24148 int
24149 main ()
24150 {
24151 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24152 test_array [0] = 0
24153
24154   ;
24155   return 0;
24156 }
24157 _ACEOF
24158 rm -f conftest.$ac_objext
24159 if { (ac_try="$ac_compile"
24160 case "(($ac_try" in
24161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24162   *) ac_try_echo=$ac_try;;
24163 esac
24164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24165   (eval "$ac_compile") 2>conftest.er1
24166   ac_status=$?
24167   grep -v '^ *+' conftest.er1 >conftest.err
24168   rm -f conftest.er1
24169   cat conftest.err >&5
24170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24171   (exit $ac_status); } && {
24172          test -z "$ac_c_werror_flag" ||
24173          test ! -s conftest.err
24174        } && test -s conftest.$ac_objext; then
24175   ac_lo=0 ac_mid=0
24176   while :; do
24177     cat >conftest.$ac_ext <<_ACEOF
24178 /* confdefs.h.  */
24179 _ACEOF
24180 cat confdefs.h >>conftest.$ac_ext
24181 cat >>conftest.$ac_ext <<_ACEOF
24182 /* end confdefs.h.  */
24183 $ac_includes_default
24184    typedef short int ac__type_sizeof_;
24185 int
24186 main ()
24187 {
24188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24189 test_array [0] = 0
24190
24191   ;
24192   return 0;
24193 }
24194 _ACEOF
24195 rm -f conftest.$ac_objext
24196 if { (ac_try="$ac_compile"
24197 case "(($ac_try" in
24198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24199   *) ac_try_echo=$ac_try;;
24200 esac
24201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24202   (eval "$ac_compile") 2>conftest.er1
24203   ac_status=$?
24204   grep -v '^ *+' conftest.er1 >conftest.err
24205   rm -f conftest.er1
24206   cat conftest.err >&5
24207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208   (exit $ac_status); } && {
24209          test -z "$ac_c_werror_flag" ||
24210          test ! -s conftest.err
24211        } && test -s conftest.$ac_objext; then
24212   ac_hi=$ac_mid; break
24213 else
24214   echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.$ac_ext >&5
24216
24217         ac_lo=`expr $ac_mid + 1`
24218                         if test $ac_lo -le $ac_mid; then
24219                           ac_lo= ac_hi=
24220                           break
24221                         fi
24222                         ac_mid=`expr 2 '*' $ac_mid + 1`
24223 fi
24224
24225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24226   done
24227 else
24228   echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24230
24231         cat >conftest.$ac_ext <<_ACEOF
24232 /* confdefs.h.  */
24233 _ACEOF
24234 cat confdefs.h >>conftest.$ac_ext
24235 cat >>conftest.$ac_ext <<_ACEOF
24236 /* end confdefs.h.  */
24237 $ac_includes_default
24238    typedef short int ac__type_sizeof_;
24239 int
24240 main ()
24241 {
24242 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24243 test_array [0] = 0
24244
24245   ;
24246   return 0;
24247 }
24248 _ACEOF
24249 rm -f conftest.$ac_objext
24250 if { (ac_try="$ac_compile"
24251 case "(($ac_try" in
24252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24253   *) ac_try_echo=$ac_try;;
24254 esac
24255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24256   (eval "$ac_compile") 2>conftest.er1
24257   ac_status=$?
24258   grep -v '^ *+' conftest.er1 >conftest.err
24259   rm -f conftest.er1
24260   cat conftest.err >&5
24261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262   (exit $ac_status); } && {
24263          test -z "$ac_c_werror_flag" ||
24264          test ! -s conftest.err
24265        } && test -s conftest.$ac_objext; then
24266   ac_hi=-1 ac_mid=-1
24267   while :; do
24268     cat >conftest.$ac_ext <<_ACEOF
24269 /* confdefs.h.  */
24270 _ACEOF
24271 cat confdefs.h >>conftest.$ac_ext
24272 cat >>conftest.$ac_ext <<_ACEOF
24273 /* end confdefs.h.  */
24274 $ac_includes_default
24275    typedef short int ac__type_sizeof_;
24276 int
24277 main ()
24278 {
24279 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24280 test_array [0] = 0
24281
24282   ;
24283   return 0;
24284 }
24285 _ACEOF
24286 rm -f conftest.$ac_objext
24287 if { (ac_try="$ac_compile"
24288 case "(($ac_try" in
24289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290   *) ac_try_echo=$ac_try;;
24291 esac
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293   (eval "$ac_compile") 2>conftest.er1
24294   ac_status=$?
24295   grep -v '^ *+' conftest.er1 >conftest.err
24296   rm -f conftest.er1
24297   cat conftest.err >&5
24298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299   (exit $ac_status); } && {
24300          test -z "$ac_c_werror_flag" ||
24301          test ! -s conftest.err
24302        } && test -s conftest.$ac_objext; then
24303   ac_lo=$ac_mid; break
24304 else
24305   echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24307
24308         ac_hi=`expr '(' $ac_mid ')' - 1`
24309                         if test $ac_mid -le $ac_hi; then
24310                           ac_lo= ac_hi=
24311                           break
24312                         fi
24313                         ac_mid=`expr 2 '*' $ac_mid`
24314 fi
24315
24316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24317   done
24318 else
24319   echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.$ac_ext >&5
24321
24322         ac_lo= ac_hi=
24323 fi
24324
24325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24326 fi
24327
24328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24329 # Binary search between lo and hi bounds.
24330 while test "x$ac_lo" != "x$ac_hi"; do
24331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24332   cat >conftest.$ac_ext <<_ACEOF
24333 /* confdefs.h.  */
24334 _ACEOF
24335 cat confdefs.h >>conftest.$ac_ext
24336 cat >>conftest.$ac_ext <<_ACEOF
24337 /* end confdefs.h.  */
24338 $ac_includes_default
24339    typedef short int ac__type_sizeof_;
24340 int
24341 main ()
24342 {
24343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24344 test_array [0] = 0
24345
24346   ;
24347   return 0;
24348 }
24349 _ACEOF
24350 rm -f conftest.$ac_objext
24351 if { (ac_try="$ac_compile"
24352 case "(($ac_try" in
24353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354   *) ac_try_echo=$ac_try;;
24355 esac
24356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357   (eval "$ac_compile") 2>conftest.er1
24358   ac_status=$?
24359   grep -v '^ *+' conftest.er1 >conftest.err
24360   rm -f conftest.er1
24361   cat conftest.err >&5
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); } && {
24364          test -z "$ac_c_werror_flag" ||
24365          test ! -s conftest.err
24366        } && test -s conftest.$ac_objext; then
24367   ac_hi=$ac_mid
24368 else
24369   echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24371
24372         ac_lo=`expr '(' $ac_mid ')' + 1`
24373 fi
24374
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 done
24377 case $ac_lo in
24378 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24379 '') if test "$ac_cv_type_short_int" = yes; then
24380      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24381 See \`config.log' for more details." >&5
24382 echo "$as_me: error: cannot compute sizeof (short int)
24383 See \`config.log' for more details." >&2;}
24384    { (exit 77); exit 77; }; }
24385    else
24386      ac_cv_sizeof_short_int=0
24387    fi ;;
24388 esac
24389 else
24390   cat >conftest.$ac_ext <<_ACEOF
24391 /* confdefs.h.  */
24392 _ACEOF
24393 cat confdefs.h >>conftest.$ac_ext
24394 cat >>conftest.$ac_ext <<_ACEOF
24395 /* end confdefs.h.  */
24396 $ac_includes_default
24397    typedef short int ac__type_sizeof_;
24398 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24399 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24400 #include <stdio.h>
24401 #include <stdlib.h>
24402 int
24403 main ()
24404 {
24405
24406   FILE *f = fopen ("conftest.val", "w");
24407   if (! f)
24408     return 1;
24409   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24410     {
24411       long int i = longval ();
24412       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24413         return 1;
24414       fprintf (f, "%ld\n", i);
24415     }
24416   else
24417     {
24418       unsigned long int i = ulongval ();
24419       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24420         return 1;
24421       fprintf (f, "%lu\n", i);
24422     }
24423   return ferror (f) || fclose (f) != 0;
24424
24425   ;
24426   return 0;
24427 }
24428 _ACEOF
24429 rm -f conftest$ac_exeext
24430 if { (ac_try="$ac_link"
24431 case "(($ac_try" in
24432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24433   *) ac_try_echo=$ac_try;;
24434 esac
24435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24436   (eval "$ac_link") 2>&5
24437   ac_status=$?
24438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24440   { (case "(($ac_try" in
24441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24442   *) ac_try_echo=$ac_try;;
24443 esac
24444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24445   (eval "$ac_try") 2>&5
24446   ac_status=$?
24447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448   (exit $ac_status); }; }; then
24449   ac_cv_sizeof_short_int=`cat conftest.val`
24450 else
24451   echo "$as_me: program exited with status $ac_status" >&5
24452 echo "$as_me: failed program was:" >&5
24453 sed 's/^/| /' conftest.$ac_ext >&5
24454
24455 ( exit $ac_status )
24456 if test "$ac_cv_type_short_int" = yes; then
24457      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24458 See \`config.log' for more details." >&5
24459 echo "$as_me: error: cannot compute sizeof (short int)
24460 See \`config.log' for more details." >&2;}
24461    { (exit 77); exit 77; }; }
24462    else
24463      ac_cv_sizeof_short_int=0
24464    fi
24465 fi
24466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24467 fi
24468 rm -f conftest.val
24469 fi
24470 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24471 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24472
24473
24474
24475 cat >>confdefs.h <<_ACEOF
24476 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24477 _ACEOF
24478
24479
24480 { echo "$as_me:$LINENO: checking for int" >&5
24481 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24482 if test "${ac_cv_type_int+set}" = set; then
24483   echo $ECHO_N "(cached) $ECHO_C" >&6
24484 else
24485   cat >conftest.$ac_ext <<_ACEOF
24486 /* confdefs.h.  */
24487 _ACEOF
24488 cat confdefs.h >>conftest.$ac_ext
24489 cat >>conftest.$ac_ext <<_ACEOF
24490 /* end confdefs.h.  */
24491 $ac_includes_default
24492 typedef int ac__type_new_;
24493 int
24494 main ()
24495 {
24496 if ((ac__type_new_ *) 0)
24497   return 0;
24498 if (sizeof (ac__type_new_))
24499   return 0;
24500   ;
24501   return 0;
24502 }
24503 _ACEOF
24504 rm -f conftest.$ac_objext
24505 if { (ac_try="$ac_compile"
24506 case "(($ac_try" in
24507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24508   *) ac_try_echo=$ac_try;;
24509 esac
24510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24511   (eval "$ac_compile") 2>conftest.er1
24512   ac_status=$?
24513   grep -v '^ *+' conftest.er1 >conftest.err
24514   rm -f conftest.er1
24515   cat conftest.err >&5
24516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517   (exit $ac_status); } && {
24518          test -z "$ac_c_werror_flag" ||
24519          test ! -s conftest.err
24520        } && test -s conftest.$ac_objext; then
24521   ac_cv_type_int=yes
24522 else
24523   echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526         ac_cv_type_int=no
24527 fi
24528
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 fi
24531 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24532 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24533
24534 # The cast to long int works around a bug in the HP C Compiler
24535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24537 # This bug is HP SR number 8606223364.
24538 { echo "$as_me:$LINENO: checking size of int" >&5
24539 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24540 if test "${ac_cv_sizeof_int+set}" = set; then
24541   echo $ECHO_N "(cached) $ECHO_C" >&6
24542 else
24543   if test "$cross_compiling" = yes; then
24544   # Depending upon the size, compute the lo and hi bounds.
24545 cat >conftest.$ac_ext <<_ACEOF
24546 /* confdefs.h.  */
24547 _ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h.  */
24551 $ac_includes_default
24552    typedef int ac__type_sizeof_;
24553 int
24554 main ()
24555 {
24556 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24557 test_array [0] = 0
24558
24559   ;
24560   return 0;
24561 }
24562 _ACEOF
24563 rm -f conftest.$ac_objext
24564 if { (ac_try="$ac_compile"
24565 case "(($ac_try" in
24566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24567   *) ac_try_echo=$ac_try;;
24568 esac
24569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24570   (eval "$ac_compile") 2>conftest.er1
24571   ac_status=$?
24572   grep -v '^ *+' conftest.er1 >conftest.err
24573   rm -f conftest.er1
24574   cat conftest.err >&5
24575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24576   (exit $ac_status); } && {
24577          test -z "$ac_c_werror_flag" ||
24578          test ! -s conftest.err
24579        } && test -s conftest.$ac_objext; then
24580   ac_lo=0 ac_mid=0
24581   while :; do
24582     cat >conftest.$ac_ext <<_ACEOF
24583 /* confdefs.h.  */
24584 _ACEOF
24585 cat confdefs.h >>conftest.$ac_ext
24586 cat >>conftest.$ac_ext <<_ACEOF
24587 /* end confdefs.h.  */
24588 $ac_includes_default
24589    typedef int ac__type_sizeof_;
24590 int
24591 main ()
24592 {
24593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24594 test_array [0] = 0
24595
24596   ;
24597   return 0;
24598 }
24599 _ACEOF
24600 rm -f conftest.$ac_objext
24601 if { (ac_try="$ac_compile"
24602 case "(($ac_try" in
24603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604   *) ac_try_echo=$ac_try;;
24605 esac
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607   (eval "$ac_compile") 2>conftest.er1
24608   ac_status=$?
24609   grep -v '^ *+' conftest.er1 >conftest.err
24610   rm -f conftest.er1
24611   cat conftest.err >&5
24612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613   (exit $ac_status); } && {
24614          test -z "$ac_c_werror_flag" ||
24615          test ! -s conftest.err
24616        } && test -s conftest.$ac_objext; then
24617   ac_hi=$ac_mid; break
24618 else
24619   echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24621
24622         ac_lo=`expr $ac_mid + 1`
24623                         if test $ac_lo -le $ac_mid; then
24624                           ac_lo= ac_hi=
24625                           break
24626                         fi
24627                         ac_mid=`expr 2 '*' $ac_mid + 1`
24628 fi
24629
24630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24631   done
24632 else
24633   echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24635
24636         cat >conftest.$ac_ext <<_ACEOF
24637 /* confdefs.h.  */
24638 _ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h.  */
24642 $ac_includes_default
24643    typedef int ac__type_sizeof_;
24644 int
24645 main ()
24646 {
24647 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24648 test_array [0] = 0
24649
24650   ;
24651   return 0;
24652 }
24653 _ACEOF
24654 rm -f conftest.$ac_objext
24655 if { (ac_try="$ac_compile"
24656 case "(($ac_try" in
24657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24658   *) ac_try_echo=$ac_try;;
24659 esac
24660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24661   (eval "$ac_compile") 2>conftest.er1
24662   ac_status=$?
24663   grep -v '^ *+' conftest.er1 >conftest.err
24664   rm -f conftest.er1
24665   cat conftest.err >&5
24666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667   (exit $ac_status); } && {
24668          test -z "$ac_c_werror_flag" ||
24669          test ! -s conftest.err
24670        } && test -s conftest.$ac_objext; then
24671   ac_hi=-1 ac_mid=-1
24672   while :; do
24673     cat >conftest.$ac_ext <<_ACEOF
24674 /* confdefs.h.  */
24675 _ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h.  */
24679 $ac_includes_default
24680    typedef int ac__type_sizeof_;
24681 int
24682 main ()
24683 {
24684 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24685 test_array [0] = 0
24686
24687   ;
24688   return 0;
24689 }
24690 _ACEOF
24691 rm -f conftest.$ac_objext
24692 if { (ac_try="$ac_compile"
24693 case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_compile") 2>conftest.er1
24699   ac_status=$?
24700   grep -v '^ *+' conftest.er1 >conftest.err
24701   rm -f conftest.er1
24702   cat conftest.err >&5
24703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24704   (exit $ac_status); } && {
24705          test -z "$ac_c_werror_flag" ||
24706          test ! -s conftest.err
24707        } && test -s conftest.$ac_objext; then
24708   ac_lo=$ac_mid; break
24709 else
24710   echo "$as_me: failed program was:" >&5
24711 sed 's/^/| /' conftest.$ac_ext >&5
24712
24713         ac_hi=`expr '(' $ac_mid ')' - 1`
24714                         if test $ac_mid -le $ac_hi; then
24715                           ac_lo= ac_hi=
24716                           break
24717                         fi
24718                         ac_mid=`expr 2 '*' $ac_mid`
24719 fi
24720
24721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722   done
24723 else
24724   echo "$as_me: failed program was:" >&5
24725 sed 's/^/| /' conftest.$ac_ext >&5
24726
24727         ac_lo= ac_hi=
24728 fi
24729
24730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24731 fi
24732
24733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734 # Binary search between lo and hi bounds.
24735 while test "x$ac_lo" != "x$ac_hi"; do
24736   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24737   cat >conftest.$ac_ext <<_ACEOF
24738 /* confdefs.h.  */
24739 _ACEOF
24740 cat confdefs.h >>conftest.$ac_ext
24741 cat >>conftest.$ac_ext <<_ACEOF
24742 /* end confdefs.h.  */
24743 $ac_includes_default
24744    typedef int ac__type_sizeof_;
24745 int
24746 main ()
24747 {
24748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24749 test_array [0] = 0
24750
24751   ;
24752   return 0;
24753 }
24754 _ACEOF
24755 rm -f conftest.$ac_objext
24756 if { (ac_try="$ac_compile"
24757 case "(($ac_try" in
24758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24759   *) ac_try_echo=$ac_try;;
24760 esac
24761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24762   (eval "$ac_compile") 2>conftest.er1
24763   ac_status=$?
24764   grep -v '^ *+' conftest.er1 >conftest.err
24765   rm -f conftest.er1
24766   cat conftest.err >&5
24767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24768   (exit $ac_status); } && {
24769          test -z "$ac_c_werror_flag" ||
24770          test ! -s conftest.err
24771        } && test -s conftest.$ac_objext; then
24772   ac_hi=$ac_mid
24773 else
24774   echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777         ac_lo=`expr '(' $ac_mid ')' + 1`
24778 fi
24779
24780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 done
24782 case $ac_lo in
24783 ?*) ac_cv_sizeof_int=$ac_lo;;
24784 '') if test "$ac_cv_type_int" = yes; then
24785      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24786 See \`config.log' for more details." >&5
24787 echo "$as_me: error: cannot compute sizeof (int)
24788 See \`config.log' for more details." >&2;}
24789    { (exit 77); exit 77; }; }
24790    else
24791      ac_cv_sizeof_int=0
24792    fi ;;
24793 esac
24794 else
24795   cat >conftest.$ac_ext <<_ACEOF
24796 /* confdefs.h.  */
24797 _ACEOF
24798 cat confdefs.h >>conftest.$ac_ext
24799 cat >>conftest.$ac_ext <<_ACEOF
24800 /* end confdefs.h.  */
24801 $ac_includes_default
24802    typedef int ac__type_sizeof_;
24803 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24804 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24805 #include <stdio.h>
24806 #include <stdlib.h>
24807 int
24808 main ()
24809 {
24810
24811   FILE *f = fopen ("conftest.val", "w");
24812   if (! f)
24813     return 1;
24814   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24815     {
24816       long int i = longval ();
24817       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24818         return 1;
24819       fprintf (f, "%ld\n", i);
24820     }
24821   else
24822     {
24823       unsigned long int i = ulongval ();
24824       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24825         return 1;
24826       fprintf (f, "%lu\n", i);
24827     }
24828   return ferror (f) || fclose (f) != 0;
24829
24830   ;
24831   return 0;
24832 }
24833 _ACEOF
24834 rm -f conftest$ac_exeext
24835 if { (ac_try="$ac_link"
24836 case "(($ac_try" in
24837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838   *) ac_try_echo=$ac_try;;
24839 esac
24840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24841   (eval "$ac_link") 2>&5
24842   ac_status=$?
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24845   { (case "(($ac_try" in
24846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24847   *) ac_try_echo=$ac_try;;
24848 esac
24849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24850   (eval "$ac_try") 2>&5
24851   ac_status=$?
24852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853   (exit $ac_status); }; }; then
24854   ac_cv_sizeof_int=`cat conftest.val`
24855 else
24856   echo "$as_me: program exited with status $ac_status" >&5
24857 echo "$as_me: failed program was:" >&5
24858 sed 's/^/| /' conftest.$ac_ext >&5
24859
24860 ( exit $ac_status )
24861 if test "$ac_cv_type_int" = yes; then
24862      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24863 See \`config.log' for more details." >&5
24864 echo "$as_me: error: cannot compute sizeof (int)
24865 See \`config.log' for more details." >&2;}
24866    { (exit 77); exit 77; }; }
24867    else
24868      ac_cv_sizeof_int=0
24869    fi
24870 fi
24871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24872 fi
24873 rm -f conftest.val
24874 fi
24875 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24876 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24877
24878
24879
24880 cat >>confdefs.h <<_ACEOF
24881 #define SIZEOF_INT $ac_cv_sizeof_int
24882 _ACEOF
24883
24884
24885 { echo "$as_me:$LINENO: checking for long int" >&5
24886 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24887 if test "${ac_cv_type_long_int+set}" = set; then
24888   echo $ECHO_N "(cached) $ECHO_C" >&6
24889 else
24890   cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h.  */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h.  */
24896 $ac_includes_default
24897 typedef long int ac__type_new_;
24898 int
24899 main ()
24900 {
24901 if ((ac__type_new_ *) 0)
24902   return 0;
24903 if (sizeof (ac__type_new_))
24904   return 0;
24905   ;
24906   return 0;
24907 }
24908 _ACEOF
24909 rm -f conftest.$ac_objext
24910 if { (ac_try="$ac_compile"
24911 case "(($ac_try" in
24912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24913   *) ac_try_echo=$ac_try;;
24914 esac
24915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24916   (eval "$ac_compile") 2>conftest.er1
24917   ac_status=$?
24918   grep -v '^ *+' conftest.er1 >conftest.err
24919   rm -f conftest.er1
24920   cat conftest.err >&5
24921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24922   (exit $ac_status); } && {
24923          test -z "$ac_c_werror_flag" ||
24924          test ! -s conftest.err
24925        } && test -s conftest.$ac_objext; then
24926   ac_cv_type_long_int=yes
24927 else
24928   echo "$as_me: failed program was:" >&5
24929 sed 's/^/| /' conftest.$ac_ext >&5
24930
24931         ac_cv_type_long_int=no
24932 fi
24933
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24935 fi
24936 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24937 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24938
24939 # The cast to long int works around a bug in the HP C Compiler
24940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24942 # This bug is HP SR number 8606223364.
24943 { echo "$as_me:$LINENO: checking size of long int" >&5
24944 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24945 if test "${ac_cv_sizeof_long_int+set}" = set; then
24946   echo $ECHO_N "(cached) $ECHO_C" >&6
24947 else
24948   if test "$cross_compiling" = yes; then
24949   # Depending upon the size, compute the lo and hi bounds.
24950 cat >conftest.$ac_ext <<_ACEOF
24951 /* confdefs.h.  */
24952 _ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h.  */
24956 $ac_includes_default
24957    typedef long int ac__type_sizeof_;
24958 int
24959 main ()
24960 {
24961 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24962 test_array [0] = 0
24963
24964   ;
24965   return 0;
24966 }
24967 _ACEOF
24968 rm -f conftest.$ac_objext
24969 if { (ac_try="$ac_compile"
24970 case "(($ac_try" in
24971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24972   *) ac_try_echo=$ac_try;;
24973 esac
24974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24975   (eval "$ac_compile") 2>conftest.er1
24976   ac_status=$?
24977   grep -v '^ *+' conftest.er1 >conftest.err
24978   rm -f conftest.er1
24979   cat conftest.err >&5
24980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981   (exit $ac_status); } && {
24982          test -z "$ac_c_werror_flag" ||
24983          test ! -s conftest.err
24984        } && test -s conftest.$ac_objext; then
24985   ac_lo=0 ac_mid=0
24986   while :; do
24987     cat >conftest.$ac_ext <<_ACEOF
24988 /* confdefs.h.  */
24989 _ACEOF
24990 cat confdefs.h >>conftest.$ac_ext
24991 cat >>conftest.$ac_ext <<_ACEOF
24992 /* end confdefs.h.  */
24993 $ac_includes_default
24994    typedef long int ac__type_sizeof_;
24995 int
24996 main ()
24997 {
24998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24999 test_array [0] = 0
25000
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest.$ac_objext
25006 if { (ac_try="$ac_compile"
25007 case "(($ac_try" in
25008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009   *) ac_try_echo=$ac_try;;
25010 esac
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012   (eval "$ac_compile") 2>conftest.er1
25013   ac_status=$?
25014   grep -v '^ *+' conftest.er1 >conftest.err
25015   rm -f conftest.er1
25016   cat conftest.err >&5
25017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25018   (exit $ac_status); } && {
25019          test -z "$ac_c_werror_flag" ||
25020          test ! -s conftest.err
25021        } && test -s conftest.$ac_objext; then
25022   ac_hi=$ac_mid; break
25023 else
25024   echo "$as_me: failed program was:" >&5
25025 sed 's/^/| /' conftest.$ac_ext >&5
25026
25027         ac_lo=`expr $ac_mid + 1`
25028                         if test $ac_lo -le $ac_mid; then
25029                           ac_lo= ac_hi=
25030                           break
25031                         fi
25032                         ac_mid=`expr 2 '*' $ac_mid + 1`
25033 fi
25034
25035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25036   done
25037 else
25038   echo "$as_me: failed program was:" >&5
25039 sed 's/^/| /' conftest.$ac_ext >&5
25040
25041         cat >conftest.$ac_ext <<_ACEOF
25042 /* confdefs.h.  */
25043 _ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h.  */
25047 $ac_includes_default
25048    typedef long int ac__type_sizeof_;
25049 int
25050 main ()
25051 {
25052 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25053 test_array [0] = 0
25054
25055   ;
25056   return 0;
25057 }
25058 _ACEOF
25059 rm -f conftest.$ac_objext
25060 if { (ac_try="$ac_compile"
25061 case "(($ac_try" in
25062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25063   *) ac_try_echo=$ac_try;;
25064 esac
25065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25066   (eval "$ac_compile") 2>conftest.er1
25067   ac_status=$?
25068   grep -v '^ *+' conftest.er1 >conftest.err
25069   rm -f conftest.er1
25070   cat conftest.err >&5
25071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25072   (exit $ac_status); } && {
25073          test -z "$ac_c_werror_flag" ||
25074          test ! -s conftest.err
25075        } && test -s conftest.$ac_objext; then
25076   ac_hi=-1 ac_mid=-1
25077   while :; do
25078     cat >conftest.$ac_ext <<_ACEOF
25079 /* confdefs.h.  */
25080 _ACEOF
25081 cat confdefs.h >>conftest.$ac_ext
25082 cat >>conftest.$ac_ext <<_ACEOF
25083 /* end confdefs.h.  */
25084 $ac_includes_default
25085    typedef long int ac__type_sizeof_;
25086 int
25087 main ()
25088 {
25089 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25090 test_array [0] = 0
25091
25092   ;
25093   return 0;
25094 }
25095 _ACEOF
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100   *) ac_try_echo=$ac_try;;
25101 esac
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103   (eval "$ac_compile") 2>conftest.er1
25104   ac_status=$?
25105   grep -v '^ *+' conftest.er1 >conftest.err
25106   rm -f conftest.er1
25107   cat conftest.err >&5
25108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109   (exit $ac_status); } && {
25110          test -z "$ac_c_werror_flag" ||
25111          test ! -s conftest.err
25112        } && test -s conftest.$ac_objext; then
25113   ac_lo=$ac_mid; break
25114 else
25115   echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25117
25118         ac_hi=`expr '(' $ac_mid ')' - 1`
25119                         if test $ac_mid -le $ac_hi; then
25120                           ac_lo= ac_hi=
25121                           break
25122                         fi
25123                         ac_mid=`expr 2 '*' $ac_mid`
25124 fi
25125
25126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25127   done
25128 else
25129   echo "$as_me: failed program was:" >&5
25130 sed 's/^/| /' conftest.$ac_ext >&5
25131
25132         ac_lo= ac_hi=
25133 fi
25134
25135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25136 fi
25137
25138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25139 # Binary search between lo and hi bounds.
25140 while test "x$ac_lo" != "x$ac_hi"; do
25141   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25142   cat >conftest.$ac_ext <<_ACEOF
25143 /* confdefs.h.  */
25144 _ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h.  */
25148 $ac_includes_default
25149    typedef long int ac__type_sizeof_;
25150 int
25151 main ()
25152 {
25153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25154 test_array [0] = 0
25155
25156   ;
25157   return 0;
25158 }
25159 _ACEOF
25160 rm -f conftest.$ac_objext
25161 if { (ac_try="$ac_compile"
25162 case "(($ac_try" in
25163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25164   *) ac_try_echo=$ac_try;;
25165 esac
25166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25167   (eval "$ac_compile") 2>conftest.er1
25168   ac_status=$?
25169   grep -v '^ *+' conftest.er1 >conftest.err
25170   rm -f conftest.er1
25171   cat conftest.err >&5
25172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25173   (exit $ac_status); } && {
25174          test -z "$ac_c_werror_flag" ||
25175          test ! -s conftest.err
25176        } && test -s conftest.$ac_objext; then
25177   ac_hi=$ac_mid
25178 else
25179   echo "$as_me: failed program was:" >&5
25180 sed 's/^/| /' conftest.$ac_ext >&5
25181
25182         ac_lo=`expr '(' $ac_mid ')' + 1`
25183 fi
25184
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25186 done
25187 case $ac_lo in
25188 ?*) ac_cv_sizeof_long_int=$ac_lo;;
25189 '') if test "$ac_cv_type_long_int" = yes; then
25190      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25191 See \`config.log' for more details." >&5
25192 echo "$as_me: error: cannot compute sizeof (long int)
25193 See \`config.log' for more details." >&2;}
25194    { (exit 77); exit 77; }; }
25195    else
25196      ac_cv_sizeof_long_int=0
25197    fi ;;
25198 esac
25199 else
25200   cat >conftest.$ac_ext <<_ACEOF
25201 /* confdefs.h.  */
25202 _ACEOF
25203 cat confdefs.h >>conftest.$ac_ext
25204 cat >>conftest.$ac_ext <<_ACEOF
25205 /* end confdefs.h.  */
25206 $ac_includes_default
25207    typedef long int ac__type_sizeof_;
25208 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25209 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25210 #include <stdio.h>
25211 #include <stdlib.h>
25212 int
25213 main ()
25214 {
25215
25216   FILE *f = fopen ("conftest.val", "w");
25217   if (! f)
25218     return 1;
25219   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25220     {
25221       long int i = longval ();
25222       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25223         return 1;
25224       fprintf (f, "%ld\n", i);
25225     }
25226   else
25227     {
25228       unsigned long int i = ulongval ();
25229       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25230         return 1;
25231       fprintf (f, "%lu\n", i);
25232     }
25233   return ferror (f) || fclose (f) != 0;
25234
25235   ;
25236   return 0;
25237 }
25238 _ACEOF
25239 rm -f conftest$ac_exeext
25240 if { (ac_try="$ac_link"
25241 case "(($ac_try" in
25242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25243   *) ac_try_echo=$ac_try;;
25244 esac
25245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25246   (eval "$ac_link") 2>&5
25247   ac_status=$?
25248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25250   { (case "(($ac_try" in
25251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25252   *) ac_try_echo=$ac_try;;
25253 esac
25254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25255   (eval "$ac_try") 2>&5
25256   ac_status=$?
25257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }; }; then
25259   ac_cv_sizeof_long_int=`cat conftest.val`
25260 else
25261   echo "$as_me: program exited with status $ac_status" >&5
25262 echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ( exit $ac_status )
25266 if test "$ac_cv_type_long_int" = yes; then
25267      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25268 See \`config.log' for more details." >&5
25269 echo "$as_me: error: cannot compute sizeof (long int)
25270 See \`config.log' for more details." >&2;}
25271    { (exit 77); exit 77; }; }
25272    else
25273      ac_cv_sizeof_long_int=0
25274    fi
25275 fi
25276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25277 fi
25278 rm -f conftest.val
25279 fi
25280 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25281 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25282
25283
25284
25285 cat >>confdefs.h <<_ACEOF
25286 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25287 _ACEOF
25288
25289
25290 { echo "$as_me:$LINENO: checking for long long int" >&5
25291 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25292 if test "${ac_cv_type_long_long_int+set}" = set; then
25293   echo $ECHO_N "(cached) $ECHO_C" >&6
25294 else
25295   cat >conftest.$ac_ext <<_ACEOF
25296 /* confdefs.h.  */
25297 _ACEOF
25298 cat confdefs.h >>conftest.$ac_ext
25299 cat >>conftest.$ac_ext <<_ACEOF
25300 /* end confdefs.h.  */
25301 $ac_includes_default
25302 typedef long long int ac__type_new_;
25303 int
25304 main ()
25305 {
25306 if ((ac__type_new_ *) 0)
25307   return 0;
25308 if (sizeof (ac__type_new_))
25309   return 0;
25310   ;
25311   return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext
25315 if { (ac_try="$ac_compile"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321   (eval "$ac_compile") 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } && {
25328          test -z "$ac_c_werror_flag" ||
25329          test ! -s conftest.err
25330        } && test -s conftest.$ac_objext; then
25331   ac_cv_type_long_long_int=yes
25332 else
25333   echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.$ac_ext >&5
25335
25336         ac_cv_type_long_long_int=no
25337 fi
25338
25339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 fi
25341 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25342 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25343
25344 # The cast to long int works around a bug in the HP C Compiler
25345 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25346 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25347 # This bug is HP SR number 8606223364.
25348 { echo "$as_me:$LINENO: checking size of long long int" >&5
25349 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25350 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25351   echo $ECHO_N "(cached) $ECHO_C" >&6
25352 else
25353   if test "$cross_compiling" = yes; then
25354   # Depending upon the size, compute the lo and hi bounds.
25355 cat >conftest.$ac_ext <<_ACEOF
25356 /* confdefs.h.  */
25357 _ACEOF
25358 cat confdefs.h >>conftest.$ac_ext
25359 cat >>conftest.$ac_ext <<_ACEOF
25360 /* end confdefs.h.  */
25361 $ac_includes_default
25362    typedef long long int ac__type_sizeof_;
25363 int
25364 main ()
25365 {
25366 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25367 test_array [0] = 0
25368
25369   ;
25370   return 0;
25371 }
25372 _ACEOF
25373 rm -f conftest.$ac_objext
25374 if { (ac_try="$ac_compile"
25375 case "(($ac_try" in
25376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25377   *) ac_try_echo=$ac_try;;
25378 esac
25379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25380   (eval "$ac_compile") 2>conftest.er1
25381   ac_status=$?
25382   grep -v '^ *+' conftest.er1 >conftest.err
25383   rm -f conftest.er1
25384   cat conftest.err >&5
25385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25386   (exit $ac_status); } && {
25387          test -z "$ac_c_werror_flag" ||
25388          test ! -s conftest.err
25389        } && test -s conftest.$ac_objext; then
25390   ac_lo=0 ac_mid=0
25391   while :; do
25392     cat >conftest.$ac_ext <<_ACEOF
25393 /* confdefs.h.  */
25394 _ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h.  */
25398 $ac_includes_default
25399    typedef long long int ac__type_sizeof_;
25400 int
25401 main ()
25402 {
25403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25404 test_array [0] = 0
25405
25406   ;
25407   return 0;
25408 }
25409 _ACEOF
25410 rm -f conftest.$ac_objext
25411 if { (ac_try="$ac_compile"
25412 case "(($ac_try" in
25413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25414   *) ac_try_echo=$ac_try;;
25415 esac
25416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25417   (eval "$ac_compile") 2>conftest.er1
25418   ac_status=$?
25419   grep -v '^ *+' conftest.er1 >conftest.err
25420   rm -f conftest.er1
25421   cat conftest.err >&5
25422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25423   (exit $ac_status); } && {
25424          test -z "$ac_c_werror_flag" ||
25425          test ! -s conftest.err
25426        } && test -s conftest.$ac_objext; then
25427   ac_hi=$ac_mid; break
25428 else
25429   echo "$as_me: failed program was:" >&5
25430 sed 's/^/| /' conftest.$ac_ext >&5
25431
25432         ac_lo=`expr $ac_mid + 1`
25433                         if test $ac_lo -le $ac_mid; then
25434                           ac_lo= ac_hi=
25435                           break
25436                         fi
25437                         ac_mid=`expr 2 '*' $ac_mid + 1`
25438 fi
25439
25440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25441   done
25442 else
25443   echo "$as_me: failed program was:" >&5
25444 sed 's/^/| /' conftest.$ac_ext >&5
25445
25446         cat >conftest.$ac_ext <<_ACEOF
25447 /* confdefs.h.  */
25448 _ACEOF
25449 cat confdefs.h >>conftest.$ac_ext
25450 cat >>conftest.$ac_ext <<_ACEOF
25451 /* end confdefs.h.  */
25452 $ac_includes_default
25453    typedef long long int ac__type_sizeof_;
25454 int
25455 main ()
25456 {
25457 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25458 test_array [0] = 0
25459
25460   ;
25461   return 0;
25462 }
25463 _ACEOF
25464 rm -f conftest.$ac_objext
25465 if { (ac_try="$ac_compile"
25466 case "(($ac_try" in
25467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25468   *) ac_try_echo=$ac_try;;
25469 esac
25470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25471   (eval "$ac_compile") 2>conftest.er1
25472   ac_status=$?
25473   grep -v '^ *+' conftest.er1 >conftest.err
25474   rm -f conftest.er1
25475   cat conftest.err >&5
25476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477   (exit $ac_status); } && {
25478          test -z "$ac_c_werror_flag" ||
25479          test ! -s conftest.err
25480        } && test -s conftest.$ac_objext; then
25481   ac_hi=-1 ac_mid=-1
25482   while :; do
25483     cat >conftest.$ac_ext <<_ACEOF
25484 /* confdefs.h.  */
25485 _ACEOF
25486 cat confdefs.h >>conftest.$ac_ext
25487 cat >>conftest.$ac_ext <<_ACEOF
25488 /* end confdefs.h.  */
25489 $ac_includes_default
25490    typedef long long int ac__type_sizeof_;
25491 int
25492 main ()
25493 {
25494 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25495 test_array [0] = 0
25496
25497   ;
25498   return 0;
25499 }
25500 _ACEOF
25501 rm -f conftest.$ac_objext
25502 if { (ac_try="$ac_compile"
25503 case "(($ac_try" in
25504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25505   *) ac_try_echo=$ac_try;;
25506 esac
25507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25508   (eval "$ac_compile") 2>conftest.er1
25509   ac_status=$?
25510   grep -v '^ *+' conftest.er1 >conftest.err
25511   rm -f conftest.er1
25512   cat conftest.err >&5
25513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514   (exit $ac_status); } && {
25515          test -z "$ac_c_werror_flag" ||
25516          test ! -s conftest.err
25517        } && test -s conftest.$ac_objext; then
25518   ac_lo=$ac_mid; break
25519 else
25520   echo "$as_me: failed program was:" >&5
25521 sed 's/^/| /' conftest.$ac_ext >&5
25522
25523         ac_hi=`expr '(' $ac_mid ')' - 1`
25524                         if test $ac_mid -le $ac_hi; then
25525                           ac_lo= ac_hi=
25526                           break
25527                         fi
25528                         ac_mid=`expr 2 '*' $ac_mid`
25529 fi
25530
25531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25532   done
25533 else
25534   echo "$as_me: failed program was:" >&5
25535 sed 's/^/| /' conftest.$ac_ext >&5
25536
25537         ac_lo= ac_hi=
25538 fi
25539
25540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25541 fi
25542
25543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25544 # Binary search between lo and hi bounds.
25545 while test "x$ac_lo" != "x$ac_hi"; do
25546   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25547   cat >conftest.$ac_ext <<_ACEOF
25548 /* confdefs.h.  */
25549 _ACEOF
25550 cat confdefs.h >>conftest.$ac_ext
25551 cat >>conftest.$ac_ext <<_ACEOF
25552 /* end confdefs.h.  */
25553 $ac_includes_default
25554    typedef long long int ac__type_sizeof_;
25555 int
25556 main ()
25557 {
25558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25559 test_array [0] = 0
25560
25561   ;
25562   return 0;
25563 }
25564 _ACEOF
25565 rm -f conftest.$ac_objext
25566 if { (ac_try="$ac_compile"
25567 case "(($ac_try" in
25568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25569   *) ac_try_echo=$ac_try;;
25570 esac
25571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25572   (eval "$ac_compile") 2>conftest.er1
25573   ac_status=$?
25574   grep -v '^ *+' conftest.er1 >conftest.err
25575   rm -f conftest.er1
25576   cat conftest.err >&5
25577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578   (exit $ac_status); } && {
25579          test -z "$ac_c_werror_flag" ||
25580          test ! -s conftest.err
25581        } && test -s conftest.$ac_objext; then
25582   ac_hi=$ac_mid
25583 else
25584   echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.$ac_ext >&5
25586
25587         ac_lo=`expr '(' $ac_mid ')' + 1`
25588 fi
25589
25590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25591 done
25592 case $ac_lo in
25593 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25594 '') if test "$ac_cv_type_long_long_int" = yes; then
25595      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25596 See \`config.log' for more details." >&5
25597 echo "$as_me: error: cannot compute sizeof (long long int)
25598 See \`config.log' for more details." >&2;}
25599    { (exit 77); exit 77; }; }
25600    else
25601      ac_cv_sizeof_long_long_int=0
25602    fi ;;
25603 esac
25604 else
25605   cat >conftest.$ac_ext <<_ACEOF
25606 /* confdefs.h.  */
25607 _ACEOF
25608 cat confdefs.h >>conftest.$ac_ext
25609 cat >>conftest.$ac_ext <<_ACEOF
25610 /* end confdefs.h.  */
25611 $ac_includes_default
25612    typedef long long int ac__type_sizeof_;
25613 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25614 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25615 #include <stdio.h>
25616 #include <stdlib.h>
25617 int
25618 main ()
25619 {
25620
25621   FILE *f = fopen ("conftest.val", "w");
25622   if (! f)
25623     return 1;
25624   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25625     {
25626       long int i = longval ();
25627       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25628         return 1;
25629       fprintf (f, "%ld\n", i);
25630     }
25631   else
25632     {
25633       unsigned long int i = ulongval ();
25634       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25635         return 1;
25636       fprintf (f, "%lu\n", i);
25637     }
25638   return ferror (f) || fclose (f) != 0;
25639
25640   ;
25641   return 0;
25642 }
25643 _ACEOF
25644 rm -f conftest$ac_exeext
25645 if { (ac_try="$ac_link"
25646 case "(($ac_try" in
25647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25648   *) ac_try_echo=$ac_try;;
25649 esac
25650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25651   (eval "$ac_link") 2>&5
25652   ac_status=$?
25653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25655   { (case "(($ac_try" in
25656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25657   *) ac_try_echo=$ac_try;;
25658 esac
25659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25660   (eval "$ac_try") 2>&5
25661   ac_status=$?
25662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663   (exit $ac_status); }; }; then
25664   ac_cv_sizeof_long_long_int=`cat conftest.val`
25665 else
25666   echo "$as_me: program exited with status $ac_status" >&5
25667 echo "$as_me: failed program was:" >&5
25668 sed 's/^/| /' conftest.$ac_ext >&5
25669
25670 ( exit $ac_status )
25671 if test "$ac_cv_type_long_long_int" = yes; then
25672      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25673 See \`config.log' for more details." >&5
25674 echo "$as_me: error: cannot compute sizeof (long long int)
25675 See \`config.log' for more details." >&2;}
25676    { (exit 77); exit 77; }; }
25677    else
25678      ac_cv_sizeof_long_long_int=0
25679    fi
25680 fi
25681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25682 fi
25683 rm -f conftest.val
25684 fi
25685 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25686 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25687
25688
25689
25690 cat >>confdefs.h <<_ACEOF
25691 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25692 _ACEOF
25693
25694
25695 { echo "$as_me:$LINENO: checking for int *" >&5
25696 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25697 if test "${ac_cv_type_int_p+set}" = set; then
25698   echo $ECHO_N "(cached) $ECHO_C" >&6
25699 else
25700   cat >conftest.$ac_ext <<_ACEOF
25701 /* confdefs.h.  */
25702 _ACEOF
25703 cat confdefs.h >>conftest.$ac_ext
25704 cat >>conftest.$ac_ext <<_ACEOF
25705 /* end confdefs.h.  */
25706 $ac_includes_default
25707 typedef int * ac__type_new_;
25708 int
25709 main ()
25710 {
25711 if ((ac__type_new_ *) 0)
25712   return 0;
25713 if (sizeof (ac__type_new_))
25714   return 0;
25715   ;
25716   return 0;
25717 }
25718 _ACEOF
25719 rm -f conftest.$ac_objext
25720 if { (ac_try="$ac_compile"
25721 case "(($ac_try" in
25722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25723   *) ac_try_echo=$ac_try;;
25724 esac
25725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25726   (eval "$ac_compile") 2>conftest.er1
25727   ac_status=$?
25728   grep -v '^ *+' conftest.er1 >conftest.err
25729   rm -f conftest.er1
25730   cat conftest.err >&5
25731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25732   (exit $ac_status); } && {
25733          test -z "$ac_c_werror_flag" ||
25734          test ! -s conftest.err
25735        } && test -s conftest.$ac_objext; then
25736   ac_cv_type_int_p=yes
25737 else
25738   echo "$as_me: failed program was:" >&5
25739 sed 's/^/| /' conftest.$ac_ext >&5
25740
25741         ac_cv_type_int_p=no
25742 fi
25743
25744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25745 fi
25746 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25747 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25748
25749 # The cast to long int works around a bug in the HP C Compiler
25750 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25751 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25752 # This bug is HP SR number 8606223364.
25753 { echo "$as_me:$LINENO: checking size of int *" >&5
25754 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25755 if test "${ac_cv_sizeof_int_p+set}" = set; then
25756   echo $ECHO_N "(cached) $ECHO_C" >&6
25757 else
25758   if test "$cross_compiling" = yes; then
25759   # Depending upon the size, compute the lo and hi bounds.
25760 cat >conftest.$ac_ext <<_ACEOF
25761 /* confdefs.h.  */
25762 _ACEOF
25763 cat confdefs.h >>conftest.$ac_ext
25764 cat >>conftest.$ac_ext <<_ACEOF
25765 /* end confdefs.h.  */
25766 $ac_includes_default
25767    typedef int * ac__type_sizeof_;
25768 int
25769 main ()
25770 {
25771 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25772 test_array [0] = 0
25773
25774   ;
25775   return 0;
25776 }
25777 _ACEOF
25778 rm -f conftest.$ac_objext
25779 if { (ac_try="$ac_compile"
25780 case "(($ac_try" in
25781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25782   *) ac_try_echo=$ac_try;;
25783 esac
25784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25785   (eval "$ac_compile") 2>conftest.er1
25786   ac_status=$?
25787   grep -v '^ *+' conftest.er1 >conftest.err
25788   rm -f conftest.er1
25789   cat conftest.err >&5
25790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25791   (exit $ac_status); } && {
25792          test -z "$ac_c_werror_flag" ||
25793          test ! -s conftest.err
25794        } && test -s conftest.$ac_objext; then
25795   ac_lo=0 ac_mid=0
25796   while :; do
25797     cat >conftest.$ac_ext <<_ACEOF
25798 /* confdefs.h.  */
25799 _ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h.  */
25803 $ac_includes_default
25804    typedef int * ac__type_sizeof_;
25805 int
25806 main ()
25807 {
25808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25809 test_array [0] = 0
25810
25811   ;
25812   return 0;
25813 }
25814 _ACEOF
25815 rm -f conftest.$ac_objext
25816 if { (ac_try="$ac_compile"
25817 case "(($ac_try" in
25818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25819   *) ac_try_echo=$ac_try;;
25820 esac
25821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25822   (eval "$ac_compile") 2>conftest.er1
25823   ac_status=$?
25824   grep -v '^ *+' conftest.er1 >conftest.err
25825   rm -f conftest.er1
25826   cat conftest.err >&5
25827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25828   (exit $ac_status); } && {
25829          test -z "$ac_c_werror_flag" ||
25830          test ! -s conftest.err
25831        } && test -s conftest.$ac_objext; then
25832   ac_hi=$ac_mid; break
25833 else
25834   echo "$as_me: failed program was:" >&5
25835 sed 's/^/| /' conftest.$ac_ext >&5
25836
25837         ac_lo=`expr $ac_mid + 1`
25838                         if test $ac_lo -le $ac_mid; then
25839                           ac_lo= ac_hi=
25840                           break
25841                         fi
25842                         ac_mid=`expr 2 '*' $ac_mid + 1`
25843 fi
25844
25845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25846   done
25847 else
25848   echo "$as_me: failed program was:" >&5
25849 sed 's/^/| /' conftest.$ac_ext >&5
25850
25851         cat >conftest.$ac_ext <<_ACEOF
25852 /* confdefs.h.  */
25853 _ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h.  */
25857 $ac_includes_default
25858    typedef int * ac__type_sizeof_;
25859 int
25860 main ()
25861 {
25862 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25863 test_array [0] = 0
25864
25865   ;
25866   return 0;
25867 }
25868 _ACEOF
25869 rm -f conftest.$ac_objext
25870 if { (ac_try="$ac_compile"
25871 case "(($ac_try" in
25872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25873   *) ac_try_echo=$ac_try;;
25874 esac
25875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25876   (eval "$ac_compile") 2>conftest.er1
25877   ac_status=$?
25878   grep -v '^ *+' conftest.er1 >conftest.err
25879   rm -f conftest.er1
25880   cat conftest.err >&5
25881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882   (exit $ac_status); } && {
25883          test -z "$ac_c_werror_flag" ||
25884          test ! -s conftest.err
25885        } && test -s conftest.$ac_objext; then
25886   ac_hi=-1 ac_mid=-1
25887   while :; do
25888     cat >conftest.$ac_ext <<_ACEOF
25889 /* confdefs.h.  */
25890 _ACEOF
25891 cat confdefs.h >>conftest.$ac_ext
25892 cat >>conftest.$ac_ext <<_ACEOF
25893 /* end confdefs.h.  */
25894 $ac_includes_default
25895    typedef int * ac__type_sizeof_;
25896 int
25897 main ()
25898 {
25899 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25900 test_array [0] = 0
25901
25902   ;
25903   return 0;
25904 }
25905 _ACEOF
25906 rm -f conftest.$ac_objext
25907 if { (ac_try="$ac_compile"
25908 case "(($ac_try" in
25909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25910   *) ac_try_echo=$ac_try;;
25911 esac
25912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25913   (eval "$ac_compile") 2>conftest.er1
25914   ac_status=$?
25915   grep -v '^ *+' conftest.er1 >conftest.err
25916   rm -f conftest.er1
25917   cat conftest.err >&5
25918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25919   (exit $ac_status); } && {
25920          test -z "$ac_c_werror_flag" ||
25921          test ! -s conftest.err
25922        } && test -s conftest.$ac_objext; then
25923   ac_lo=$ac_mid; break
25924 else
25925   echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.$ac_ext >&5
25927
25928         ac_hi=`expr '(' $ac_mid ')' - 1`
25929                         if test $ac_mid -le $ac_hi; then
25930                           ac_lo= ac_hi=
25931                           break
25932                         fi
25933                         ac_mid=`expr 2 '*' $ac_mid`
25934 fi
25935
25936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25937   done
25938 else
25939   echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25941
25942         ac_lo= ac_hi=
25943 fi
25944
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25946 fi
25947
25948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25949 # Binary search between lo and hi bounds.
25950 while test "x$ac_lo" != "x$ac_hi"; do
25951   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25952   cat >conftest.$ac_ext <<_ACEOF
25953 /* confdefs.h.  */
25954 _ACEOF
25955 cat confdefs.h >>conftest.$ac_ext
25956 cat >>conftest.$ac_ext <<_ACEOF
25957 /* end confdefs.h.  */
25958 $ac_includes_default
25959    typedef int * ac__type_sizeof_;
25960 int
25961 main ()
25962 {
25963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25964 test_array [0] = 0
25965
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 rm -f conftest.$ac_objext
25971 if { (ac_try="$ac_compile"
25972 case "(($ac_try" in
25973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974   *) ac_try_echo=$ac_try;;
25975 esac
25976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25977   (eval "$ac_compile") 2>conftest.er1
25978   ac_status=$?
25979   grep -v '^ *+' conftest.er1 >conftest.err
25980   rm -f conftest.er1
25981   cat conftest.err >&5
25982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25983   (exit $ac_status); } && {
25984          test -z "$ac_c_werror_flag" ||
25985          test ! -s conftest.err
25986        } && test -s conftest.$ac_objext; then
25987   ac_hi=$ac_mid
25988 else
25989   echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25991
25992         ac_lo=`expr '(' $ac_mid ')' + 1`
25993 fi
25994
25995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25996 done
25997 case $ac_lo in
25998 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25999 '') if test "$ac_cv_type_int_p" = yes; then
26000      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
26001 See \`config.log' for more details." >&5
26002 echo "$as_me: error: cannot compute sizeof (int *)
26003 See \`config.log' for more details." >&2;}
26004    { (exit 77); exit 77; }; }
26005    else
26006      ac_cv_sizeof_int_p=0
26007    fi ;;
26008 esac
26009 else
26010   cat >conftest.$ac_ext <<_ACEOF
26011 /* confdefs.h.  */
26012 _ACEOF
26013 cat confdefs.h >>conftest.$ac_ext
26014 cat >>conftest.$ac_ext <<_ACEOF
26015 /* end confdefs.h.  */
26016 $ac_includes_default
26017    typedef int * ac__type_sizeof_;
26018 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26019 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26020 #include <stdio.h>
26021 #include <stdlib.h>
26022 int
26023 main ()
26024 {
26025
26026   FILE *f = fopen ("conftest.val", "w");
26027   if (! f)
26028     return 1;
26029   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26030     {
26031       long int i = longval ();
26032       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26033         return 1;
26034       fprintf (f, "%ld\n", i);
26035     }
26036   else
26037     {
26038       unsigned long int i = ulongval ();
26039       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26040         return 1;
26041       fprintf (f, "%lu\n", i);
26042     }
26043   return ferror (f) || fclose (f) != 0;
26044
26045   ;
26046   return 0;
26047 }
26048 _ACEOF
26049 rm -f conftest$ac_exeext
26050 if { (ac_try="$ac_link"
26051 case "(($ac_try" in
26052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053   *) ac_try_echo=$ac_try;;
26054 esac
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056   (eval "$ac_link") 2>&5
26057   ac_status=$?
26058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26060   { (case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26065   (eval "$ac_try") 2>&5
26066   ac_status=$?
26067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26068   (exit $ac_status); }; }; then
26069   ac_cv_sizeof_int_p=`cat conftest.val`
26070 else
26071   echo "$as_me: program exited with status $ac_status" >&5
26072 echo "$as_me: failed program was:" >&5
26073 sed 's/^/| /' conftest.$ac_ext >&5
26074
26075 ( exit $ac_status )
26076 if test "$ac_cv_type_int_p" = yes; then
26077      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
26078 See \`config.log' for more details." >&5
26079 echo "$as_me: error: cannot compute sizeof (int *)
26080 See \`config.log' for more details." >&2;}
26081    { (exit 77); exit 77; }; }
26082    else
26083      ac_cv_sizeof_int_p=0
26084    fi
26085 fi
26086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26087 fi
26088 rm -f conftest.val
26089 fi
26090 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
26091 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
26092
26093
26094
26095 cat >>confdefs.h <<_ACEOF
26096 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26097 _ACEOF
26098
26099
26100
26101 # Check for sys/types.h types
26102 { echo "$as_me:$LINENO: checking for u_int type" >&5
26103 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
26104 if test "${ac_cv_have_u_int+set}" = set; then
26105   echo $ECHO_N "(cached) $ECHO_C" >&6
26106 else
26107
26108     cat >conftest.$ac_ext <<_ACEOF
26109 /* confdefs.h.  */
26110 _ACEOF
26111 cat confdefs.h >>conftest.$ac_ext
26112 cat >>conftest.$ac_ext <<_ACEOF
26113 /* end confdefs.h.  */
26114  #include <sys/types.h>
26115 int
26116 main ()
26117 {
26118  u_int a; a = 1;
26119   ;
26120   return 0;
26121 }
26122 _ACEOF
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127   *) ac_try_echo=$ac_try;;
26128 esac
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130   (eval "$ac_compile") 2>conftest.er1
26131   ac_status=$?
26132   grep -v '^ *+' conftest.er1 >conftest.err
26133   rm -f conftest.er1
26134   cat conftest.err >&5
26135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136   (exit $ac_status); } && {
26137          test -z "$ac_c_werror_flag" ||
26138          test ! -s conftest.err
26139        } && test -s conftest.$ac_objext; then
26140    ac_cv_have_u_int="yes"
26141 else
26142   echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26144
26145          ac_cv_have_u_int="no"
26146
26147 fi
26148
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150
26151 fi
26152 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
26153 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
26154 if test "x$ac_cv_have_u_int" = "xyes" ; then
26155    cat >>confdefs.h <<\_ACEOF
26156 #define HAVE_U_INT 1
26157 _ACEOF
26158
26159    have_u_int=1
26160 fi
26161
26162 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
26163 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
26164 if test "${ac_cv_have_intmax_t+set}" = set; then
26165   echo $ECHO_N "(cached) $ECHO_C" >&6
26166 else
26167
26168    cat >conftest.$ac_ext <<_ACEOF
26169 /* confdefs.h.  */
26170 _ACEOF
26171 cat confdefs.h >>conftest.$ac_ext
26172 cat >>conftest.$ac_ext <<_ACEOF
26173 /* end confdefs.h.  */
26174  #include <sys/types.h>
26175 int
26176 main ()
26177 {
26178  intmax_t a; a = 1;
26179   ;
26180   return 0;
26181 }
26182 _ACEOF
26183 rm -f conftest.$ac_objext
26184 if { (ac_try="$ac_compile"
26185 case "(($ac_try" in
26186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187   *) ac_try_echo=$ac_try;;
26188 esac
26189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26190   (eval "$ac_compile") 2>conftest.er1
26191   ac_status=$?
26192   grep -v '^ *+' conftest.er1 >conftest.err
26193   rm -f conftest.er1
26194   cat conftest.err >&5
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); } && {
26197          test -z "$ac_c_werror_flag" ||
26198          test ! -s conftest.err
26199        } && test -s conftest.$ac_objext; then
26200    ac_cv_have_intmax_t="yes"
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205
26206          cat >conftest.$ac_ext <<_ACEOF
26207 /* confdefs.h.  */
26208 _ACEOF
26209 cat confdefs.h >>conftest.$ac_ext
26210 cat >>conftest.$ac_ext <<_ACEOF
26211 /* end confdefs.h.  */
26212  #include <stdint.h>
26213 int
26214 main ()
26215 {
26216  intmax_t a; a = 1;
26217   ;
26218   return 0;
26219 }
26220 _ACEOF
26221 rm -f conftest.$ac_objext
26222 if { (ac_try="$ac_compile"
26223 case "(($ac_try" in
26224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26225   *) ac_try_echo=$ac_try;;
26226 esac
26227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26228   (eval "$ac_compile") 2>conftest.er1
26229   ac_status=$?
26230   grep -v '^ *+' conftest.er1 >conftest.err
26231   rm -f conftest.er1
26232   cat conftest.err >&5
26233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26234   (exit $ac_status); } && {
26235          test -z "$ac_c_werror_flag" ||
26236          test ! -s conftest.err
26237        } && test -s conftest.$ac_objext; then
26238    ac_cv_have_intmax_t="yes"
26239 else
26240   echo "$as_me: failed program was:" >&5
26241 sed 's/^/| /' conftest.$ac_ext >&5
26242
26243          ac_cv_have_intmax_t="no"
26244
26245 fi
26246
26247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26248
26249
26250 fi
26251
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26253
26254
26255 fi
26256 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26257 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26258 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26259    cat >>confdefs.h <<\_ACEOF
26260 #define HAVE_INTMAX_T 1
26261 _ACEOF
26262
26263    have_intmax_t=1
26264 fi
26265
26266
26267 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26268 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26269 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26270   echo $ECHO_N "(cached) $ECHO_C" >&6
26271 else
26272
26273    cat >conftest.$ac_ext <<_ACEOF
26274 /* confdefs.h.  */
26275 _ACEOF
26276 cat confdefs.h >>conftest.$ac_ext
26277 cat >>conftest.$ac_ext <<_ACEOF
26278 /* end confdefs.h.  */
26279  #include <sys/types.h>
26280 int
26281 main ()
26282 {
26283  u_intmax_t a; a = 1;
26284   ;
26285   return 0;
26286 }
26287 _ACEOF
26288 rm -f conftest.$ac_objext
26289 if { (ac_try="$ac_compile"
26290 case "(($ac_try" in
26291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26292   *) ac_try_echo=$ac_try;;
26293 esac
26294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26295   (eval "$ac_compile") 2>conftest.er1
26296   ac_status=$?
26297   grep -v '^ *+' conftest.er1 >conftest.err
26298   rm -f conftest.er1
26299   cat conftest.err >&5
26300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26301   (exit $ac_status); } && {
26302          test -z "$ac_c_werror_flag" ||
26303          test ! -s conftest.err
26304        } && test -s conftest.$ac_objext; then
26305    ac_cv_have_u_intmax_t="yes"
26306 else
26307   echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.$ac_ext >&5
26309
26310
26311          cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317  #include <stdint.h>
26318 int
26319 main ()
26320 {
26321  u_intmax_t a; a = 1;
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 rm -f conftest.$ac_objext
26327 if { (ac_try="$ac_compile"
26328 case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_compile") 2>conftest.er1
26334   ac_status=$?
26335   grep -v '^ *+' conftest.er1 >conftest.err
26336   rm -f conftest.er1
26337   cat conftest.err >&5
26338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26339   (exit $ac_status); } && {
26340          test -z "$ac_c_werror_flag" ||
26341          test ! -s conftest.err
26342        } && test -s conftest.$ac_objext; then
26343    ac_cv_have_u_intmax_t="yes"
26344 else
26345   echo "$as_me: failed program was:" >&5
26346 sed 's/^/| /' conftest.$ac_ext >&5
26347
26348          ac_cv_have_u_intmax_t="no"
26349
26350 fi
26351
26352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26353
26354
26355 fi
26356
26357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358
26359 fi
26360 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26361 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26362 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26363    cat >>confdefs.h <<\_ACEOF
26364 #define HAVE_U_INTMAX_T 1
26365 _ACEOF
26366
26367    have_u_intmax_t=1
26368 fi
26369
26370
26371 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26372 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26373 if test "${ac_cv_have_intxx_t+set}" = set; then
26374   echo $ECHO_N "(cached) $ECHO_C" >&6
26375 else
26376
26377    cat >conftest.$ac_ext <<_ACEOF
26378 /* confdefs.h.  */
26379 _ACEOF
26380 cat confdefs.h >>conftest.$ac_ext
26381 cat >>conftest.$ac_ext <<_ACEOF
26382 /* end confdefs.h.  */
26383  #include <sys/types.h>
26384 int
26385 main ()
26386 {
26387  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26388   ;
26389   return 0;
26390 }
26391 _ACEOF
26392 rm -f conftest.$ac_objext
26393 if { (ac_try="$ac_compile"
26394 case "(($ac_try" in
26395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26396   *) ac_try_echo=$ac_try;;
26397 esac
26398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26399   (eval "$ac_compile") 2>conftest.er1
26400   ac_status=$?
26401   grep -v '^ *+' conftest.er1 >conftest.err
26402   rm -f conftest.er1
26403   cat conftest.err >&5
26404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405   (exit $ac_status); } && {
26406          test -z "$ac_c_werror_flag" ||
26407          test ! -s conftest.err
26408        } && test -s conftest.$ac_objext; then
26409    ac_cv_have_intxx_t="yes"
26410 else
26411   echo "$as_me: failed program was:" >&5
26412 sed 's/^/| /' conftest.$ac_ext >&5
26413
26414          ac_cv_have_intxx_t="no"
26415
26416 fi
26417
26418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26419
26420 fi
26421 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26422 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26423 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26424    cat >>confdefs.h <<\_ACEOF
26425 #define HAVE_INTXX_T 1
26426 _ACEOF
26427
26428    have_intxx_t=1
26429 fi
26430
26431 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26432 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26433 if test "${ac_cv_have_int64_t+set}" = set; then
26434   echo $ECHO_N "(cached) $ECHO_C" >&6
26435 else
26436
26437    cat >conftest.$ac_ext <<_ACEOF
26438 /* confdefs.h.  */
26439 _ACEOF
26440 cat confdefs.h >>conftest.$ac_ext
26441 cat >>conftest.$ac_ext <<_ACEOF
26442 /* end confdefs.h.  */
26443  #include <sys/types.h>
26444 int
26445 main ()
26446 {
26447  int64_t a; a = 1;
26448   ;
26449   return 0;
26450 }
26451 _ACEOF
26452 rm -f conftest.$ac_objext
26453 if { (ac_try="$ac_compile"
26454 case "(($ac_try" in
26455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26456   *) ac_try_echo=$ac_try;;
26457 esac
26458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26459   (eval "$ac_compile") 2>conftest.er1
26460   ac_status=$?
26461   grep -v '^ *+' conftest.er1 >conftest.err
26462   rm -f conftest.er1
26463   cat conftest.err >&5
26464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26465   (exit $ac_status); } && {
26466          test -z "$ac_c_werror_flag" ||
26467          test ! -s conftest.err
26468        } && test -s conftest.$ac_objext; then
26469    ac_cv_have_int64_t="yes"
26470 else
26471   echo "$as_me: failed program was:" >&5
26472 sed 's/^/| /' conftest.$ac_ext >&5
26473
26474          ac_cv_have_int64_t="no"
26475
26476 fi
26477
26478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26479
26480 fi
26481 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26482 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26483 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26484    cat >>confdefs.h <<\_ACEOF
26485 #define HAVE_INT64_T 1
26486 _ACEOF
26487
26488    have_int64_t=1
26489 fi
26490
26491 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26492 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26493 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26494   echo $ECHO_N "(cached) $ECHO_C" >&6
26495 else
26496
26497    cat >conftest.$ac_ext <<_ACEOF
26498 /* confdefs.h.  */
26499 _ACEOF
26500 cat confdefs.h >>conftest.$ac_ext
26501 cat >>conftest.$ac_ext <<_ACEOF
26502 /* end confdefs.h.  */
26503  #include <sys/types.h>
26504 int
26505 main ()
26506 {
26507  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26508   ;
26509   return 0;
26510 }
26511 _ACEOF
26512 rm -f conftest.$ac_objext
26513 if { (ac_try="$ac_compile"
26514 case "(($ac_try" in
26515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26516   *) ac_try_echo=$ac_try;;
26517 esac
26518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26519   (eval "$ac_compile") 2>conftest.er1
26520   ac_status=$?
26521   grep -v '^ *+' conftest.er1 >conftest.err
26522   rm -f conftest.er1
26523   cat conftest.err >&5
26524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26525   (exit $ac_status); } && {
26526          test -z "$ac_c_werror_flag" ||
26527          test ! -s conftest.err
26528        } && test -s conftest.$ac_objext; then
26529    ac_cv_have_u_intxx_t="yes"
26530 else
26531   echo "$as_me: failed program was:" >&5
26532 sed 's/^/| /' conftest.$ac_ext >&5
26533
26534          ac_cv_have_u_intxx_t="no"
26535
26536 fi
26537
26538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26539
26540 fi
26541 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26542 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26543 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26544    cat >>confdefs.h <<\_ACEOF
26545 #define HAVE_U_INTXX_T 1
26546 _ACEOF
26547
26548    have_u_intxx_t=1
26549 fi
26550
26551 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26552 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26553 if test "${ac_cv_have_u_int64_t+set}" = set; then
26554   echo $ECHO_N "(cached) $ECHO_C" >&6
26555 else
26556
26557    cat >conftest.$ac_ext <<_ACEOF
26558 /* confdefs.h.  */
26559 _ACEOF
26560 cat confdefs.h >>conftest.$ac_ext
26561 cat >>conftest.$ac_ext <<_ACEOF
26562 /* end confdefs.h.  */
26563  #include <sys/types.h>
26564 int
26565 main ()
26566 {
26567  u_int64_t a; a = 1;
26568   ;
26569   return 0;
26570 }
26571 _ACEOF
26572 rm -f conftest.$ac_objext
26573 if { (ac_try="$ac_compile"
26574 case "(($ac_try" in
26575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26576   *) ac_try_echo=$ac_try;;
26577 esac
26578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26579   (eval "$ac_compile") 2>conftest.er1
26580   ac_status=$?
26581   grep -v '^ *+' conftest.er1 >conftest.err
26582   rm -f conftest.er1
26583   cat conftest.err >&5
26584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585   (exit $ac_status); } && {
26586          test -z "$ac_c_werror_flag" ||
26587          test ! -s conftest.err
26588        } && test -s conftest.$ac_objext; then
26589    ac_cv_have_u_int64_t="yes"
26590 else
26591   echo "$as_me: failed program was:" >&5
26592 sed 's/^/| /' conftest.$ac_ext >&5
26593
26594          ac_cv_have_u_int64_t="no"
26595
26596 fi
26597
26598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26599
26600 fi
26601 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26602 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26603 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26604    cat >>confdefs.h <<\_ACEOF
26605 #define HAVE_U_INT64_T 1
26606 _ACEOF
26607
26608    have_u_int64_t=1
26609 fi
26610
26611 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26612            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26613 then
26614    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26615 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26616    cat >conftest.$ac_ext <<_ACEOF
26617 /* confdefs.h.  */
26618 _ACEOF
26619 cat confdefs.h >>conftest.$ac_ext
26620 cat >>conftest.$ac_ext <<_ACEOF
26621 /* end confdefs.h.  */
26622  #include <sys/bitypes.h>
26623 int
26624 main ()
26625 {
26626  int8_t a; int16_t b; int32_t c;
26627         u_int8_t e; u_int16_t f; u_int32_t g;
26628         a = b = c = e = f = g = 1;
26629   ;
26630   return 0;
26631 }
26632 _ACEOF
26633 rm -f conftest.$ac_objext
26634 if { (ac_try="$ac_compile"
26635 case "(($ac_try" in
26636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26637   *) ac_try_echo=$ac_try;;
26638 esac
26639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26640   (eval "$ac_compile") 2>conftest.er1
26641   ac_status=$?
26642   grep -v '^ *+' conftest.er1 >conftest.err
26643   rm -f conftest.er1
26644   cat conftest.err >&5
26645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646   (exit $ac_status); } && {
26647          test -z "$ac_c_werror_flag" ||
26648          test ! -s conftest.err
26649        } && test -s conftest.$ac_objext; then
26650    cat >>confdefs.h <<\_ACEOF
26651 #define HAVE_U_INTXX_T 1
26652 _ACEOF
26653
26654         cat >>confdefs.h <<\_ACEOF
26655 #define HAVE_INTXX_T 1
26656 _ACEOF
26657
26658         cat >>confdefs.h <<\_ACEOF
26659 #define HAVE_SYS_BITYPES_H 1
26660 _ACEOF
26661
26662         { echo "$as_me:$LINENO: result: yes" >&5
26663 echo "${ECHO_T}yes" >&6; }
26664 else
26665   echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26667
26668          { echo "$as_me:$LINENO: result: no" >&5
26669 echo "${ECHO_T}no" >&6; }
26670
26671 fi
26672
26673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26674 fi
26675
26676 if test -z "$have_u_intxx_t" ; then
26677    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26678 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26679 if test "${ac_cv_have_uintxx_t+set}" = set; then
26680   echo $ECHO_N "(cached) $ECHO_C" >&6
26681 else
26682
26683       cat >conftest.$ac_ext <<_ACEOF
26684 /* confdefs.h.  */
26685 _ACEOF
26686 cat confdefs.h >>conftest.$ac_ext
26687 cat >>conftest.$ac_ext <<_ACEOF
26688 /* end confdefs.h.  */
26689  #include <sys/types.h>
26690 int
26691 main ()
26692 {
26693  uint8_t a; uint16_t b;
26694            uint32_t c; a = b = c = 1;
26695   ;
26696   return 0;
26697 }
26698 _ACEOF
26699 rm -f conftest.$ac_objext
26700 if { (ac_try="$ac_compile"
26701 case "(($ac_try" in
26702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26703   *) ac_try_echo=$ac_try;;
26704 esac
26705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26706   (eval "$ac_compile") 2>conftest.er1
26707   ac_status=$?
26708   grep -v '^ *+' conftest.er1 >conftest.err
26709   rm -f conftest.er1
26710   cat conftest.err >&5
26711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26712   (exit $ac_status); } && {
26713          test -z "$ac_c_werror_flag" ||
26714          test ! -s conftest.err
26715        } && test -s conftest.$ac_objext; then
26716    ac_cv_have_uintxx_t="yes"
26717 else
26718   echo "$as_me: failed program was:" >&5
26719 sed 's/^/| /' conftest.$ac_ext >&5
26720
26721          ac_cv_have_uintxx_t="no"
26722
26723 fi
26724
26725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26726
26727 fi
26728 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26729 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26730    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26731       cat >>confdefs.h <<\_ACEOF
26732 #define HAVE_UINTXX_T 1
26733 _ACEOF
26734
26735    fi
26736 fi
26737
26738 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26739           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26740 then
26741    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26742 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26743    cat >conftest.$ac_ext <<_ACEOF
26744 /* confdefs.h.  */
26745 _ACEOF
26746 cat confdefs.h >>conftest.$ac_ext
26747 cat >>conftest.$ac_ext <<_ACEOF
26748 /* end confdefs.h.  */
26749  #include <sys/bitypes.h>
26750 int
26751 main ()
26752 {
26753  int64_t a; u_int64_t b;
26754        a = b = 1;
26755   ;
26756   return 0;
26757 }
26758 _ACEOF
26759 rm -f conftest.$ac_objext
26760 if { (ac_try="$ac_compile"
26761 case "(($ac_try" in
26762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26763   *) ac_try_echo=$ac_try;;
26764 esac
26765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26766   (eval "$ac_compile") 2>conftest.er1
26767   ac_status=$?
26768   grep -v '^ *+' conftest.er1 >conftest.err
26769   rm -f conftest.er1
26770   cat conftest.err >&5
26771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26772   (exit $ac_status); } && {
26773          test -z "$ac_c_werror_flag" ||
26774          test ! -s conftest.err
26775        } && test -s conftest.$ac_objext; then
26776    cat >>confdefs.h <<\_ACEOF
26777 #define HAVE_U_INT64_T 1
26778 _ACEOF
26779
26780        cat >>confdefs.h <<\_ACEOF
26781 #define HAVE_INT64_T 1
26782 _ACEOF
26783
26784        { echo "$as_me:$LINENO: result: yes" >&5
26785 echo "${ECHO_T}yes" >&6; }
26786 else
26787   echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26789
26790          { echo "$as_me:$LINENO: result: no" >&5
26791 echo "${ECHO_T}no" >&6; }
26792
26793 fi
26794
26795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26796 fi
26797
26798 if (test -z "$have_uintxx_t" && \
26799           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26800 then
26801    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26802 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26803    cat >conftest.$ac_ext <<_ACEOF
26804 /* confdefs.h.  */
26805 _ACEOF
26806 cat confdefs.h >>conftest.$ac_ext
26807 cat >>conftest.$ac_ext <<_ACEOF
26808 /* end confdefs.h.  */
26809  #include <sys/bitypes.h>
26810 int
26811 main ()
26812 {
26813  uint8_t a; uint16_t b;
26814           uint32_t c; a = b = c = 1;
26815   ;
26816   return 0;
26817 }
26818 _ACEOF
26819 rm -f conftest.$ac_objext
26820 if { (ac_try="$ac_compile"
26821 case "(($ac_try" in
26822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26823   *) ac_try_echo=$ac_try;;
26824 esac
26825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26826   (eval "$ac_compile") 2>conftest.er1
26827   ac_status=$?
26828   grep -v '^ *+' conftest.er1 >conftest.err
26829   rm -f conftest.er1
26830   cat conftest.err >&5
26831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26832   (exit $ac_status); } && {
26833          test -z "$ac_c_werror_flag" ||
26834          test ! -s conftest.err
26835        } && test -s conftest.$ac_objext; then
26836    cat >>confdefs.h <<\_ACEOF
26837 #define HAVE_UINTXX_T 1
26838 _ACEOF
26839
26840        { echo "$as_me:$LINENO: result: yes" >&5
26841 echo "${ECHO_T}yes" >&6; }
26842 else
26843   echo "$as_me: failed program was:" >&5
26844 sed 's/^/| /' conftest.$ac_ext >&5
26845
26846          { echo "$as_me:$LINENO: result: no" >&5
26847 echo "${ECHO_T}no" >&6; }
26848
26849 fi
26850
26851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26852
26853 fi
26854
26855
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866
26867
26868
26869
26870
26871 for ac_func in \
26872         fork \
26873         getcwd \
26874         gethostname \
26875         getpid \
26876         gettimeofday \
26877         setpgid \
26878         setpgrp \
26879         setsid \
26880         signal \
26881         strerror \
26882         strncmp \
26883         strncpy \
26884         vfprintf \
26885
26886 do
26887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26891   echo $ECHO_N "(cached) $ECHO_C" >&6
26892 else
26893   cat >conftest.$ac_ext <<_ACEOF
26894 /* confdefs.h.  */
26895 _ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h.  */
26899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26900    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26901 #define $ac_func innocuous_$ac_func
26902
26903 /* System header to define __stub macros and hopefully few prototypes,
26904     which can conflict with char $ac_func (); below.
26905     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26906     <limits.h> exists even on freestanding compilers.  */
26907
26908 #ifdef __STDC__
26909 # include <limits.h>
26910 #else
26911 # include <assert.h>
26912 #endif
26913
26914 #undef $ac_func
26915
26916 /* Override any GCC internal prototype to avoid an error.
26917    Use char because int might match the return type of a GCC
26918    builtin and then its argument prototype would still apply.  */
26919 #ifdef __cplusplus
26920 extern "C"
26921 #endif
26922 char $ac_func ();
26923 /* The GNU C library defines this for functions which it implements
26924     to always fail with ENOSYS.  Some functions are actually named
26925     something starting with __ and the normal name is an alias.  */
26926 #if defined __stub_$ac_func || defined __stub___$ac_func
26927 choke me
26928 #endif
26929
26930 int
26931 main ()
26932 {
26933 return $ac_func ();
26934   ;
26935   return 0;
26936 }
26937 _ACEOF
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (ac_try="$ac_link"
26940 case "(($ac_try" in
26941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942   *) ac_try_echo=$ac_try;;
26943 esac
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945   (eval "$ac_link") 2>conftest.er1
26946   ac_status=$?
26947   grep -v '^ *+' conftest.er1 >conftest.err
26948   rm -f conftest.er1
26949   cat conftest.err >&5
26950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951   (exit $ac_status); } && {
26952          test -z "$ac_c_werror_flag" ||
26953          test ! -s conftest.err
26954        } && test -s conftest$ac_exeext &&
26955        $as_test_x conftest$ac_exeext; then
26956   eval "$as_ac_var=yes"
26957 else
26958   echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26960
26961         eval "$as_ac_var=no"
26962 fi
26963
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965       conftest$ac_exeext conftest.$ac_ext
26966 fi
26967 ac_res=`eval echo '${'$as_ac_var'}'`
26968                { echo "$as_me:$LINENO: result: $ac_res" >&5
26969 echo "${ECHO_T}$ac_res" >&6; }
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971   cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26973 _ACEOF
26974
26975 else
26976   echo 'configure: cannot find needed function.'; exit 1
26977
26978 fi
26979 done
26980
26981
26982
26983 for ac_func in fchdir
26984 do
26985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26989   echo $ECHO_N "(cached) $ECHO_C" >&6
26990 else
26991   cat >conftest.$ac_ext <<_ACEOF
26992 /* confdefs.h.  */
26993 _ACEOF
26994 cat confdefs.h >>conftest.$ac_ext
26995 cat >>conftest.$ac_ext <<_ACEOF
26996 /* end confdefs.h.  */
26997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26999 #define $ac_func innocuous_$ac_func
27000
27001 /* System header to define __stub macros and hopefully few prototypes,
27002     which can conflict with char $ac_func (); below.
27003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27004     <limits.h> exists even on freestanding compilers.  */
27005
27006 #ifdef __STDC__
27007 # include <limits.h>
27008 #else
27009 # include <assert.h>
27010 #endif
27011
27012 #undef $ac_func
27013
27014 /* Override any GCC internal prototype to avoid an error.
27015    Use char because int might match the return type of a GCC
27016    builtin and then its argument prototype would still apply.  */
27017 #ifdef __cplusplus
27018 extern "C"
27019 #endif
27020 char $ac_func ();
27021 /* The GNU C library defines this for functions which it implements
27022     to always fail with ENOSYS.  Some functions are actually named
27023     something starting with __ and the normal name is an alias.  */
27024 #if defined __stub_$ac_func || defined __stub___$ac_func
27025 choke me
27026 #endif
27027
27028 int
27029 main ()
27030 {
27031 return $ac_func ();
27032   ;
27033   return 0;
27034 }
27035 _ACEOF
27036 rm -f conftest.$ac_objext conftest$ac_exeext
27037 if { (ac_try="$ac_link"
27038 case "(($ac_try" in
27039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27040   *) ac_try_echo=$ac_try;;
27041 esac
27042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27043   (eval "$ac_link") 2>conftest.er1
27044   ac_status=$?
27045   grep -v '^ *+' conftest.er1 >conftest.err
27046   rm -f conftest.er1
27047   cat conftest.err >&5
27048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049   (exit $ac_status); } && {
27050          test -z "$ac_c_werror_flag" ||
27051          test ! -s conftest.err
27052        } && test -s conftest$ac_exeext &&
27053        $as_test_x conftest$ac_exeext; then
27054   eval "$as_ac_var=yes"
27055 else
27056   echo "$as_me: failed program was:" >&5
27057 sed 's/^/| /' conftest.$ac_ext >&5
27058
27059         eval "$as_ac_var=no"
27060 fi
27061
27062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27063       conftest$ac_exeext conftest.$ac_ext
27064 fi
27065 ac_res=`eval echo '${'$as_ac_var'}'`
27066                { echo "$as_me:$LINENO: result: $ac_res" >&5
27067 echo "${ECHO_T}$ac_res" >&6; }
27068 if test `eval echo '${'$as_ac_var'}'` = yes; then
27069   cat >>confdefs.h <<_ACEOF
27070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27071 _ACEOF
27072  cat >>confdefs.h <<\_ACEOF
27073 #define HAVE_FCHDIR 1
27074 _ACEOF
27075
27076 fi
27077 done
27078
27079
27080 for ac_func in strtoll
27081 do
27082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27086   echo $ECHO_N "(cached) $ECHO_C" >&6
27087 else
27088   cat >conftest.$ac_ext <<_ACEOF
27089 /* confdefs.h.  */
27090 _ACEOF
27091 cat confdefs.h >>conftest.$ac_ext
27092 cat >>conftest.$ac_ext <<_ACEOF
27093 /* end confdefs.h.  */
27094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27095    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27096 #define $ac_func innocuous_$ac_func
27097
27098 /* System header to define __stub macros and hopefully few prototypes,
27099     which can conflict with char $ac_func (); below.
27100     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27101     <limits.h> exists even on freestanding compilers.  */
27102
27103 #ifdef __STDC__
27104 # include <limits.h>
27105 #else
27106 # include <assert.h>
27107 #endif
27108
27109 #undef $ac_func
27110
27111 /* Override any GCC internal prototype to avoid an error.
27112    Use char because int might match the return type of a GCC
27113    builtin and then its argument prototype would still apply.  */
27114 #ifdef __cplusplus
27115 extern "C"
27116 #endif
27117 char $ac_func ();
27118 /* The GNU C library defines this for functions which it implements
27119     to always fail with ENOSYS.  Some functions are actually named
27120     something starting with __ and the normal name is an alias.  */
27121 #if defined __stub_$ac_func || defined __stub___$ac_func
27122 choke me
27123 #endif
27124
27125 int
27126 main ()
27127 {
27128 return $ac_func ();
27129   ;
27130   return 0;
27131 }
27132 _ACEOF
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (ac_try="$ac_link"
27135 case "(($ac_try" in
27136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27137   *) ac_try_echo=$ac_try;;
27138 esac
27139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27140   (eval "$ac_link") 2>conftest.er1
27141   ac_status=$?
27142   grep -v '^ *+' conftest.er1 >conftest.err
27143   rm -f conftest.er1
27144   cat conftest.err >&5
27145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146   (exit $ac_status); } && {
27147          test -z "$ac_c_werror_flag" ||
27148          test ! -s conftest.err
27149        } && test -s conftest$ac_exeext &&
27150        $as_test_x conftest$ac_exeext; then
27151   eval "$as_ac_var=yes"
27152 else
27153   echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27155
27156         eval "$as_ac_var=no"
27157 fi
27158
27159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27160       conftest$ac_exeext conftest.$ac_ext
27161 fi
27162 ac_res=`eval echo '${'$as_ac_var'}'`
27163                { echo "$as_me:$LINENO: result: $ac_res" >&5
27164 echo "${ECHO_T}$ac_res" >&6; }
27165 if test `eval echo '${'$as_ac_var'}'` = yes; then
27166   cat >>confdefs.h <<_ACEOF
27167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27168 _ACEOF
27169  cat >>confdefs.h <<\_ACEOF
27170 #define HAVE_STRTOLL 1
27171 _ACEOF
27172
27173 fi
27174 done
27175
27176
27177 for ac_func in posix_fadvise
27178 do
27179 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27180 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27181 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27182 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27183   echo $ECHO_N "(cached) $ECHO_C" >&6
27184 else
27185   cat >conftest.$ac_ext <<_ACEOF
27186 /* confdefs.h.  */
27187 _ACEOF
27188 cat confdefs.h >>conftest.$ac_ext
27189 cat >>conftest.$ac_ext <<_ACEOF
27190 /* end confdefs.h.  */
27191 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27192    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27193 #define $ac_func innocuous_$ac_func
27194
27195 /* System header to define __stub macros and hopefully few prototypes,
27196     which can conflict with char $ac_func (); below.
27197     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27198     <limits.h> exists even on freestanding compilers.  */
27199
27200 #ifdef __STDC__
27201 # include <limits.h>
27202 #else
27203 # include <assert.h>
27204 #endif
27205
27206 #undef $ac_func
27207
27208 /* Override any GCC internal prototype to avoid an error.
27209    Use char because int might match the return type of a GCC
27210    builtin and then its argument prototype would still apply.  */
27211 #ifdef __cplusplus
27212 extern "C"
27213 #endif
27214 char $ac_func ();
27215 /* The GNU C library defines this for functions which it implements
27216     to always fail with ENOSYS.  Some functions are actually named
27217     something starting with __ and the normal name is an alias.  */
27218 #if defined __stub_$ac_func || defined __stub___$ac_func
27219 choke me
27220 #endif
27221
27222 int
27223 main ()
27224 {
27225 return $ac_func ();
27226   ;
27227   return 0;
27228 }
27229 _ACEOF
27230 rm -f conftest.$ac_objext conftest$ac_exeext
27231 if { (ac_try="$ac_link"
27232 case "(($ac_try" in
27233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27234   *) ac_try_echo=$ac_try;;
27235 esac
27236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27237   (eval "$ac_link") 2>conftest.er1
27238   ac_status=$?
27239   grep -v '^ *+' conftest.er1 >conftest.err
27240   rm -f conftest.er1
27241   cat conftest.err >&5
27242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27243   (exit $ac_status); } && {
27244          test -z "$ac_c_werror_flag" ||
27245          test ! -s conftest.err
27246        } && test -s conftest$ac_exeext &&
27247        $as_test_x conftest$ac_exeext; then
27248   eval "$as_ac_var=yes"
27249 else
27250   echo "$as_me: failed program was:" >&5
27251 sed 's/^/| /' conftest.$ac_ext >&5
27252
27253         eval "$as_ac_var=no"
27254 fi
27255
27256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27257       conftest$ac_exeext conftest.$ac_ext
27258 fi
27259 ac_res=`eval echo '${'$as_ac_var'}'`
27260                { echo "$as_me:$LINENO: result: $ac_res" >&5
27261 echo "${ECHO_T}$ac_res" >&6; }
27262 if test `eval echo '${'$as_ac_var'}'` = yes; then
27263   cat >>confdefs.h <<_ACEOF
27264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27265 _ACEOF
27266
27267 fi
27268 done
27269
27270
27271 for ac_func in fdatasync
27272 do
27273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27277   echo $ECHO_N "(cached) $ECHO_C" >&6
27278 else
27279   cat >conftest.$ac_ext <<_ACEOF
27280 /* confdefs.h.  */
27281 _ACEOF
27282 cat confdefs.h >>conftest.$ac_ext
27283 cat >>conftest.$ac_ext <<_ACEOF
27284 /* end confdefs.h.  */
27285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27287 #define $ac_func innocuous_$ac_func
27288
27289 /* System header to define __stub macros and hopefully few prototypes,
27290     which can conflict with char $ac_func (); below.
27291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27292     <limits.h> exists even on freestanding compilers.  */
27293
27294 #ifdef __STDC__
27295 # include <limits.h>
27296 #else
27297 # include <assert.h>
27298 #endif
27299
27300 #undef $ac_func
27301
27302 /* Override any GCC internal prototype to avoid an error.
27303    Use char because int might match the return type of a GCC
27304    builtin and then its argument prototype would still apply.  */
27305 #ifdef __cplusplus
27306 extern "C"
27307 #endif
27308 char $ac_func ();
27309 /* The GNU C library defines this for functions which it implements
27310     to always fail with ENOSYS.  Some functions are actually named
27311     something starting with __ and the normal name is an alias.  */
27312 #if defined __stub_$ac_func || defined __stub___$ac_func
27313 choke me
27314 #endif
27315
27316 int
27317 main ()
27318 {
27319 return $ac_func ();
27320   ;
27321   return 0;
27322 }
27323 _ACEOF
27324 rm -f conftest.$ac_objext conftest$ac_exeext
27325 if { (ac_try="$ac_link"
27326 case "(($ac_try" in
27327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27328   *) ac_try_echo=$ac_try;;
27329 esac
27330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27331   (eval "$ac_link") 2>conftest.er1
27332   ac_status=$?
27333   grep -v '^ *+' conftest.er1 >conftest.err
27334   rm -f conftest.er1
27335   cat conftest.err >&5
27336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337   (exit $ac_status); } && {
27338          test -z "$ac_c_werror_flag" ||
27339          test ! -s conftest.err
27340        } && test -s conftest$ac_exeext &&
27341        $as_test_x conftest$ac_exeext; then
27342   eval "$as_ac_var=yes"
27343 else
27344   echo "$as_me: failed program was:" >&5
27345 sed 's/^/| /' conftest.$ac_ext >&5
27346
27347         eval "$as_ac_var=no"
27348 fi
27349
27350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27351       conftest$ac_exeext conftest.$ac_ext
27352 fi
27353 ac_res=`eval echo '${'$as_ac_var'}'`
27354                { echo "$as_me:$LINENO: result: $ac_res" >&5
27355 echo "${ECHO_T}$ac_res" >&6; }
27356 if test `eval echo '${'$as_ac_var'}'` = yes; then
27357   cat >>confdefs.h <<_ACEOF
27358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27359 _ACEOF
27360
27361 fi
27362 done
27363
27364
27365
27366 for ac_func in chflags
27367 do
27368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27372   echo $ECHO_N "(cached) $ECHO_C" >&6
27373 else
27374   cat >conftest.$ac_ext <<_ACEOF
27375 /* confdefs.h.  */
27376 _ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h.  */
27380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27381    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27382 #define $ac_func innocuous_$ac_func
27383
27384 /* System header to define __stub macros and hopefully few prototypes,
27385     which can conflict with char $ac_func (); below.
27386     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27387     <limits.h> exists even on freestanding compilers.  */
27388
27389 #ifdef __STDC__
27390 # include <limits.h>
27391 #else
27392 # include <assert.h>
27393 #endif
27394
27395 #undef $ac_func
27396
27397 /* Override any GCC internal prototype to avoid an error.
27398    Use char because int might match the return type of a GCC
27399    builtin and then its argument prototype would still apply.  */
27400 #ifdef __cplusplus
27401 extern "C"
27402 #endif
27403 char $ac_func ();
27404 /* The GNU C library defines this for functions which it implements
27405     to always fail with ENOSYS.  Some functions are actually named
27406     something starting with __ and the normal name is an alias.  */
27407 #if defined __stub_$ac_func || defined __stub___$ac_func
27408 choke me
27409 #endif
27410
27411 int
27412 main ()
27413 {
27414 return $ac_func ();
27415   ;
27416   return 0;
27417 }
27418 _ACEOF
27419 rm -f conftest.$ac_objext conftest$ac_exeext
27420 if { (ac_try="$ac_link"
27421 case "(($ac_try" in
27422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27423   *) ac_try_echo=$ac_try;;
27424 esac
27425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27426   (eval "$ac_link") 2>conftest.er1
27427   ac_status=$?
27428   grep -v '^ *+' conftest.er1 >conftest.err
27429   rm -f conftest.er1
27430   cat conftest.err >&5
27431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27432   (exit $ac_status); } && {
27433          test -z "$ac_c_werror_flag" ||
27434          test ! -s conftest.err
27435        } && test -s conftest$ac_exeext &&
27436        $as_test_x conftest$ac_exeext; then
27437   eval "$as_ac_var=yes"
27438 else
27439   echo "$as_me: failed program was:" >&5
27440 sed 's/^/| /' conftest.$ac_ext >&5
27441
27442         eval "$as_ac_var=no"
27443 fi
27444
27445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27446       conftest$ac_exeext conftest.$ac_ext
27447 fi
27448 ac_res=`eval echo '${'$as_ac_var'}'`
27449                { echo "$as_me:$LINENO: result: $ac_res" >&5
27450 echo "${ECHO_T}$ac_res" >&6; }
27451 if test `eval echo '${'$as_ac_var'}'` = yes; then
27452   cat >>confdefs.h <<_ACEOF
27453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27454 _ACEOF
27455
27456 fi
27457 done
27458
27459
27460
27461
27462
27463
27464 for ac_func in snprintf vsnprintf gethostid fseeko
27465 do
27466 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27467 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27468 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27469 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27470   echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472   cat >conftest.$ac_ext <<_ACEOF
27473 /* confdefs.h.  */
27474 _ACEOF
27475 cat confdefs.h >>conftest.$ac_ext
27476 cat >>conftest.$ac_ext <<_ACEOF
27477 /* end confdefs.h.  */
27478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27479    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27480 #define $ac_func innocuous_$ac_func
27481
27482 /* System header to define __stub macros and hopefully few prototypes,
27483     which can conflict with char $ac_func (); below.
27484     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27485     <limits.h> exists even on freestanding compilers.  */
27486
27487 #ifdef __STDC__
27488 # include <limits.h>
27489 #else
27490 # include <assert.h>
27491 #endif
27492
27493 #undef $ac_func
27494
27495 /* Override any GCC internal prototype to avoid an error.
27496    Use char because int might match the return type of a GCC
27497    builtin and then its argument prototype would still apply.  */
27498 #ifdef __cplusplus
27499 extern "C"
27500 #endif
27501 char $ac_func ();
27502 /* The GNU C library defines this for functions which it implements
27503     to always fail with ENOSYS.  Some functions are actually named
27504     something starting with __ and the normal name is an alias.  */
27505 #if defined __stub_$ac_func || defined __stub___$ac_func
27506 choke me
27507 #endif
27508
27509 int
27510 main ()
27511 {
27512 return $ac_func ();
27513   ;
27514   return 0;
27515 }
27516 _ACEOF
27517 rm -f conftest.$ac_objext conftest$ac_exeext
27518 if { (ac_try="$ac_link"
27519 case "(($ac_try" in
27520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27521   *) ac_try_echo=$ac_try;;
27522 esac
27523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27524   (eval "$ac_link") 2>conftest.er1
27525   ac_status=$?
27526   grep -v '^ *+' conftest.er1 >conftest.err
27527   rm -f conftest.er1
27528   cat conftest.err >&5
27529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27530   (exit $ac_status); } && {
27531          test -z "$ac_c_werror_flag" ||
27532          test ! -s conftest.err
27533        } && test -s conftest$ac_exeext &&
27534        $as_test_x conftest$ac_exeext; then
27535   eval "$as_ac_var=yes"
27536 else
27537   echo "$as_me: failed program was:" >&5
27538 sed 's/^/| /' conftest.$ac_ext >&5
27539
27540         eval "$as_ac_var=no"
27541 fi
27542
27543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27544       conftest$ac_exeext conftest.$ac_ext
27545 fi
27546 ac_res=`eval echo '${'$as_ac_var'}'`
27547                { echo "$as_me:$LINENO: result: $ac_res" >&5
27548 echo "${ECHO_T}$ac_res" >&6; }
27549 if test `eval echo '${'$as_ac_var'}'` = yes; then
27550   cat >>confdefs.h <<_ACEOF
27551 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27552 _ACEOF
27553
27554 fi
27555 done
27556
27557
27558 { echo "$as_me:$LINENO: checking for va_copy" >&5
27559 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27560 if test "${ba_cv_va_copy+set}" = set; then
27561   echo $ECHO_N "(cached) $ECHO_C" >&6
27562 else
27563   cat >conftest.$ac_ext <<_ACEOF
27564 /* confdefs.h.  */
27565 _ACEOF
27566 cat confdefs.h >>conftest.$ac_ext
27567 cat >>conftest.$ac_ext <<_ACEOF
27568 /* end confdefs.h.  */
27569
27570 #include <stdarg.h>
27571 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27572 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27573
27574 int
27575 main ()
27576 {
27577 call_use_va_copy(1,2,3)
27578   ;
27579   return 0;
27580 }
27581 _ACEOF
27582 rm -f conftest.$ac_objext conftest$ac_exeext
27583 if { (ac_try="$ac_link"
27584 case "(($ac_try" in
27585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27586   *) ac_try_echo=$ac_try;;
27587 esac
27588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27589   (eval "$ac_link") 2>conftest.er1
27590   ac_status=$?
27591   grep -v '^ *+' conftest.er1 >conftest.err
27592   rm -f conftest.er1
27593   cat conftest.err >&5
27594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27595   (exit $ac_status); } && {
27596          test -z "$ac_c_werror_flag" ||
27597          test ! -s conftest.err
27598        } && test -s conftest$ac_exeext &&
27599        $as_test_x conftest$ac_exeext; then
27600   ba_cv_va_copy=yes
27601 else
27602   echo "$as_me: failed program was:" >&5
27603 sed 's/^/| /' conftest.$ac_ext >&5
27604
27605         ba_cv_va_copy=no
27606 fi
27607
27608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27609       conftest$ac_exeext conftest.$ac_ext
27610 fi
27611 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27612 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27613 test $ba_cv_va_copy = yes &&
27614 cat >>confdefs.h <<\_ACEOF
27615 #define HAVE_VA_COPY 1
27616 _ACEOF
27617
27618
27619
27620
27621
27622
27623
27624 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27625 do
27626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27630   echo $ECHO_N "(cached) $ECHO_C" >&6
27631 else
27632   cat >conftest.$ac_ext <<_ACEOF
27633 /* confdefs.h.  */
27634 _ACEOF
27635 cat confdefs.h >>conftest.$ac_ext
27636 cat >>conftest.$ac_ext <<_ACEOF
27637 /* end confdefs.h.  */
27638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27639    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27640 #define $ac_func innocuous_$ac_func
27641
27642 /* System header to define __stub macros and hopefully few prototypes,
27643     which can conflict with char $ac_func (); below.
27644     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27645     <limits.h> exists even on freestanding compilers.  */
27646
27647 #ifdef __STDC__
27648 # include <limits.h>
27649 #else
27650 # include <assert.h>
27651 #endif
27652
27653 #undef $ac_func
27654
27655 /* Override any GCC internal prototype to avoid an error.
27656    Use char because int might match the return type of a GCC
27657    builtin and then its argument prototype would still apply.  */
27658 #ifdef __cplusplus
27659 extern "C"
27660 #endif
27661 char $ac_func ();
27662 /* The GNU C library defines this for functions which it implements
27663     to always fail with ENOSYS.  Some functions are actually named
27664     something starting with __ and the normal name is an alias.  */
27665 #if defined __stub_$ac_func || defined __stub___$ac_func
27666 choke me
27667 #endif
27668
27669 int
27670 main ()
27671 {
27672 return $ac_func ();
27673   ;
27674   return 0;
27675 }
27676 _ACEOF
27677 rm -f conftest.$ac_objext conftest$ac_exeext
27678 if { (ac_try="$ac_link"
27679 case "(($ac_try" in
27680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27681   *) ac_try_echo=$ac_try;;
27682 esac
27683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27684   (eval "$ac_link") 2>conftest.er1
27685   ac_status=$?
27686   grep -v '^ *+' conftest.er1 >conftest.err
27687   rm -f conftest.er1
27688   cat conftest.err >&5
27689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27690   (exit $ac_status); } && {
27691          test -z "$ac_c_werror_flag" ||
27692          test ! -s conftest.err
27693        } && test -s conftest$ac_exeext &&
27694        $as_test_x conftest$ac_exeext; then
27695   eval "$as_ac_var=yes"
27696 else
27697   echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.$ac_ext >&5
27699
27700         eval "$as_ac_var=no"
27701 fi
27702
27703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27704       conftest$ac_exeext conftest.$ac_ext
27705 fi
27706 ac_res=`eval echo '${'$as_ac_var'}'`
27707                { echo "$as_me:$LINENO: result: $ac_res" >&5
27708 echo "${ECHO_T}$ac_res" >&6; }
27709 if test `eval echo '${'$as_ac_var'}'` = yes; then
27710   cat >>confdefs.h <<_ACEOF
27711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27712 _ACEOF
27713
27714 fi
27715 done
27716
27717
27718 # If resolver functions are not in libc check for -lnsl or -lresolv.
27719 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27720 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27721 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27722   echo $ECHO_N "(cached) $ECHO_C" >&6
27723 else
27724   cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h.  */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h.  */
27730 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27732 #define gethostbyname_r innocuous_gethostbyname_r
27733
27734 /* System header to define __stub macros and hopefully few prototypes,
27735     which can conflict with char gethostbyname_r (); below.
27736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27737     <limits.h> exists even on freestanding compilers.  */
27738
27739 #ifdef __STDC__
27740 # include <limits.h>
27741 #else
27742 # include <assert.h>
27743 #endif
27744
27745 #undef gethostbyname_r
27746
27747 /* Override any GCC internal prototype to avoid an error.
27748    Use char because int might match the return type of a GCC
27749    builtin and then its argument prototype would still apply.  */
27750 #ifdef __cplusplus
27751 extern "C"
27752 #endif
27753 char gethostbyname_r ();
27754 /* The GNU C library defines this for functions which it implements
27755     to always fail with ENOSYS.  Some functions are actually named
27756     something starting with __ and the normal name is an alias.  */
27757 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27758 choke me
27759 #endif
27760
27761 int
27762 main ()
27763 {
27764 return gethostbyname_r ();
27765   ;
27766   return 0;
27767 }
27768 _ACEOF
27769 rm -f conftest.$ac_objext conftest$ac_exeext
27770 if { (ac_try="$ac_link"
27771 case "(($ac_try" in
27772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27773   *) ac_try_echo=$ac_try;;
27774 esac
27775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27776   (eval "$ac_link") 2>conftest.er1
27777   ac_status=$?
27778   grep -v '^ *+' conftest.er1 >conftest.err
27779   rm -f conftest.er1
27780   cat conftest.err >&5
27781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782   (exit $ac_status); } && {
27783          test -z "$ac_c_werror_flag" ||
27784          test ! -s conftest.err
27785        } && test -s conftest$ac_exeext &&
27786        $as_test_x conftest$ac_exeext; then
27787   ac_cv_func_gethostbyname_r=yes
27788 else
27789   echo "$as_me: failed program was:" >&5
27790 sed 's/^/| /' conftest.$ac_ext >&5
27791
27792         ac_cv_func_gethostbyname_r=no
27793 fi
27794
27795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27796       conftest$ac_exeext conftest.$ac_ext
27797 fi
27798 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27799 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27800 if test $ac_cv_func_gethostbyname_r = yes; then
27801   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27802 echo "${ECHO_T}using libc's resolver" >&6; }
27803 else
27804
27805 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27806 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27807 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27808   echo $ECHO_N "(cached) $ECHO_C" >&6
27809 else
27810   ac_check_lib_save_LIBS=$LIBS
27811 LIBS="-lnsl  $LIBS"
27812 cat >conftest.$ac_ext <<_ACEOF
27813 /* confdefs.h.  */
27814 _ACEOF
27815 cat confdefs.h >>conftest.$ac_ext
27816 cat >>conftest.$ac_ext <<_ACEOF
27817 /* end confdefs.h.  */
27818
27819 /* Override any GCC internal prototype to avoid an error.
27820    Use char because int might match the return type of a GCC
27821    builtin and then its argument prototype would still apply.  */
27822 #ifdef __cplusplus
27823 extern "C"
27824 #endif
27825 char gethostbyname_r ();
27826 int
27827 main ()
27828 {
27829 return gethostbyname_r ();
27830   ;
27831   return 0;
27832 }
27833 _ACEOF
27834 rm -f conftest.$ac_objext conftest$ac_exeext
27835 if { (ac_try="$ac_link"
27836 case "(($ac_try" in
27837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27838   *) ac_try_echo=$ac_try;;
27839 esac
27840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27841   (eval "$ac_link") 2>conftest.er1
27842   ac_status=$?
27843   grep -v '^ *+' conftest.er1 >conftest.err
27844   rm -f conftest.er1
27845   cat conftest.err >&5
27846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847   (exit $ac_status); } && {
27848          test -z "$ac_c_werror_flag" ||
27849          test ! -s conftest.err
27850        } && test -s conftest$ac_exeext &&
27851        $as_test_x conftest$ac_exeext; then
27852   ac_cv_lib_nsl_gethostbyname_r=yes
27853 else
27854   echo "$as_me: failed program was:" >&5
27855 sed 's/^/| /' conftest.$ac_ext >&5
27856
27857         ac_cv_lib_nsl_gethostbyname_r=no
27858 fi
27859
27860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27861       conftest$ac_exeext conftest.$ac_ext
27862 LIBS=$ac_check_lib_save_LIBS
27863 fi
27864 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27865 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27866 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27867   cat >>confdefs.h <<_ACEOF
27868 #define HAVE_LIBNSL 1
27869 _ACEOF
27870
27871   LIBS="-lnsl $LIBS"
27872
27873 fi
27874
27875
27876 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27877 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27878 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27879   echo $ECHO_N "(cached) $ECHO_C" >&6
27880 else
27881   ac_check_lib_save_LIBS=$LIBS
27882 LIBS="-lresolv  $LIBS"
27883 cat >conftest.$ac_ext <<_ACEOF
27884 /* confdefs.h.  */
27885 _ACEOF
27886 cat confdefs.h >>conftest.$ac_ext
27887 cat >>conftest.$ac_ext <<_ACEOF
27888 /* end confdefs.h.  */
27889
27890 /* Override any GCC internal prototype to avoid an error.
27891    Use char because int might match the return type of a GCC
27892    builtin and then its argument prototype would still apply.  */
27893 #ifdef __cplusplus
27894 extern "C"
27895 #endif
27896 char gethostbyname_r ();
27897 int
27898 main ()
27899 {
27900 return gethostbyname_r ();
27901   ;
27902   return 0;
27903 }
27904 _ACEOF
27905 rm -f conftest.$ac_objext conftest$ac_exeext
27906 if { (ac_try="$ac_link"
27907 case "(($ac_try" in
27908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27909   *) ac_try_echo=$ac_try;;
27910 esac
27911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27912   (eval "$ac_link") 2>conftest.er1
27913   ac_status=$?
27914   grep -v '^ *+' conftest.er1 >conftest.err
27915   rm -f conftest.er1
27916   cat conftest.err >&5
27917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27918   (exit $ac_status); } && {
27919          test -z "$ac_c_werror_flag" ||
27920          test ! -s conftest.err
27921        } && test -s conftest$ac_exeext &&
27922        $as_test_x conftest$ac_exeext; then
27923   ac_cv_lib_resolv_gethostbyname_r=yes
27924 else
27925   echo "$as_me: failed program was:" >&5
27926 sed 's/^/| /' conftest.$ac_ext >&5
27927
27928         ac_cv_lib_resolv_gethostbyname_r=no
27929 fi
27930
27931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27932       conftest$ac_exeext conftest.$ac_ext
27933 LIBS=$ac_check_lib_save_LIBS
27934 fi
27935 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27936 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27937 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27938   cat >>confdefs.h <<_ACEOF
27939 #define HAVE_LIBRESOLV 1
27940 _ACEOF
27941
27942   LIBS="-lresolv $LIBS"
27943
27944 fi
27945
27946 fi
27947
27948
27949
27950
27951
27952 for ac_func in inet_pton
27953 do
27954 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27955 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27956 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27957 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27958   echo $ECHO_N "(cached) $ECHO_C" >&6
27959 else
27960   cat >conftest.$ac_ext <<_ACEOF
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27967    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27968 #define $ac_func innocuous_$ac_func
27969
27970 /* System header to define __stub macros and hopefully few prototypes,
27971     which can conflict with char $ac_func (); below.
27972     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27973     <limits.h> exists even on freestanding compilers.  */
27974
27975 #ifdef __STDC__
27976 # include <limits.h>
27977 #else
27978 # include <assert.h>
27979 #endif
27980
27981 #undef $ac_func
27982
27983 /* Override any GCC internal prototype to avoid an error.
27984    Use char because int might match the return type of a GCC
27985    builtin and then its argument prototype would still apply.  */
27986 #ifdef __cplusplus
27987 extern "C"
27988 #endif
27989 char $ac_func ();
27990 /* The GNU C library defines this for functions which it implements
27991     to always fail with ENOSYS.  Some functions are actually named
27992     something starting with __ and the normal name is an alias.  */
27993 #if defined __stub_$ac_func || defined __stub___$ac_func
27994 choke me
27995 #endif
27996
27997 int
27998 main ()
27999 {
28000 return $ac_func ();
28001   ;
28002   return 0;
28003 }
28004 _ACEOF
28005 rm -f conftest.$ac_objext conftest$ac_exeext
28006 if { (ac_try="$ac_link"
28007 case "(($ac_try" in
28008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28009   *) ac_try_echo=$ac_try;;
28010 esac
28011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28012   (eval "$ac_link") 2>conftest.er1
28013   ac_status=$?
28014   grep -v '^ *+' conftest.er1 >conftest.err
28015   rm -f conftest.er1
28016   cat conftest.err >&5
28017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28018   (exit $ac_status); } && {
28019          test -z "$ac_c_werror_flag" ||
28020          test ! -s conftest.err
28021        } && test -s conftest$ac_exeext &&
28022        $as_test_x conftest$ac_exeext; then
28023   eval "$as_ac_var=yes"
28024 else
28025   echo "$as_me: failed program was:" >&5
28026 sed 's/^/| /' conftest.$ac_ext >&5
28027
28028         eval "$as_ac_var=no"
28029 fi
28030
28031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28032       conftest$ac_exeext conftest.$ac_ext
28033 fi
28034 ac_res=`eval echo '${'$as_ac_var'}'`
28035                { echo "$as_me:$LINENO: result: $ac_res" >&5
28036 echo "${ECHO_T}$ac_res" >&6; }
28037 if test `eval echo '${'$as_ac_var'}'` = yes; then
28038   cat >>confdefs.h <<_ACEOF
28039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28040 _ACEOF
28041  cat >>confdefs.h <<\_ACEOF
28042 #define HAVE_INET_PTON 1
28043 _ACEOF
28044
28045 fi
28046 done
28047
28048
28049 for ac_func in inet_ntop
28050 do
28051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28055   echo $ECHO_N "(cached) $ECHO_C" >&6
28056 else
28057   cat >conftest.$ac_ext <<_ACEOF
28058 /* confdefs.h.  */
28059 _ACEOF
28060 cat confdefs.h >>conftest.$ac_ext
28061 cat >>conftest.$ac_ext <<_ACEOF
28062 /* end confdefs.h.  */
28063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28065 #define $ac_func innocuous_$ac_func
28066
28067 /* System header to define __stub macros and hopefully few prototypes,
28068     which can conflict with char $ac_func (); below.
28069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28070     <limits.h> exists even on freestanding compilers.  */
28071
28072 #ifdef __STDC__
28073 # include <limits.h>
28074 #else
28075 # include <assert.h>
28076 #endif
28077
28078 #undef $ac_func
28079
28080 /* Override any GCC internal prototype to avoid an error.
28081    Use char because int might match the return type of a GCC
28082    builtin and then its argument prototype would still apply.  */
28083 #ifdef __cplusplus
28084 extern "C"
28085 #endif
28086 char $ac_func ();
28087 /* The GNU C library defines this for functions which it implements
28088     to always fail with ENOSYS.  Some functions are actually named
28089     something starting with __ and the normal name is an alias.  */
28090 #if defined __stub_$ac_func || defined __stub___$ac_func
28091 choke me
28092 #endif
28093
28094 int
28095 main ()
28096 {
28097 return $ac_func ();
28098   ;
28099   return 0;
28100 }
28101 _ACEOF
28102 rm -f conftest.$ac_objext conftest$ac_exeext
28103 if { (ac_try="$ac_link"
28104 case "(($ac_try" in
28105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106   *) ac_try_echo=$ac_try;;
28107 esac
28108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28109   (eval "$ac_link") 2>conftest.er1
28110   ac_status=$?
28111   grep -v '^ *+' conftest.er1 >conftest.err
28112   rm -f conftest.er1
28113   cat conftest.err >&5
28114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115   (exit $ac_status); } && {
28116          test -z "$ac_c_werror_flag" ||
28117          test ! -s conftest.err
28118        } && test -s conftest$ac_exeext &&
28119        $as_test_x conftest$ac_exeext; then
28120   eval "$as_ac_var=yes"
28121 else
28122   echo "$as_me: failed program was:" >&5
28123 sed 's/^/| /' conftest.$ac_ext >&5
28124
28125         eval "$as_ac_var=no"
28126 fi
28127
28128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28129       conftest$ac_exeext conftest.$ac_ext
28130 fi
28131 ac_res=`eval echo '${'$as_ac_var'}'`
28132                { echo "$as_me:$LINENO: result: $ac_res" >&5
28133 echo "${ECHO_T}$ac_res" >&6; }
28134 if test `eval echo '${'$as_ac_var'}'` = yes; then
28135   cat >>confdefs.h <<_ACEOF
28136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28137 _ACEOF
28138  cat >>confdefs.h <<\_ACEOF
28139 #define HAVE_INET_NTOP 1
28140 _ACEOF
28141
28142 fi
28143 done
28144
28145
28146 for ac_func in gethostbyname2
28147 do
28148 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28149 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28150 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28151 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28152   echo $ECHO_N "(cached) $ECHO_C" >&6
28153 else
28154   cat >conftest.$ac_ext <<_ACEOF
28155 /* confdefs.h.  */
28156 _ACEOF
28157 cat confdefs.h >>conftest.$ac_ext
28158 cat >>conftest.$ac_ext <<_ACEOF
28159 /* end confdefs.h.  */
28160 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28161    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28162 #define $ac_func innocuous_$ac_func
28163
28164 /* System header to define __stub macros and hopefully few prototypes,
28165     which can conflict with char $ac_func (); below.
28166     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28167     <limits.h> exists even on freestanding compilers.  */
28168
28169 #ifdef __STDC__
28170 # include <limits.h>
28171 #else
28172 # include <assert.h>
28173 #endif
28174
28175 #undef $ac_func
28176
28177 /* Override any GCC internal prototype to avoid an error.
28178    Use char because int might match the return type of a GCC
28179    builtin and then its argument prototype would still apply.  */
28180 #ifdef __cplusplus
28181 extern "C"
28182 #endif
28183 char $ac_func ();
28184 /* The GNU C library defines this for functions which it implements
28185     to always fail with ENOSYS.  Some functions are actually named
28186     something starting with __ and the normal name is an alias.  */
28187 #if defined __stub_$ac_func || defined __stub___$ac_func
28188 choke me
28189 #endif
28190
28191 int
28192 main ()
28193 {
28194 return $ac_func ();
28195   ;
28196   return 0;
28197 }
28198 _ACEOF
28199 rm -f conftest.$ac_objext conftest$ac_exeext
28200 if { (ac_try="$ac_link"
28201 case "(($ac_try" in
28202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203   *) ac_try_echo=$ac_try;;
28204 esac
28205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28206   (eval "$ac_link") 2>conftest.er1
28207   ac_status=$?
28208   grep -v '^ *+' conftest.er1 >conftest.err
28209   rm -f conftest.er1
28210   cat conftest.err >&5
28211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28212   (exit $ac_status); } && {
28213          test -z "$ac_c_werror_flag" ||
28214          test ! -s conftest.err
28215        } && test -s conftest$ac_exeext &&
28216        $as_test_x conftest$ac_exeext; then
28217   eval "$as_ac_var=yes"
28218 else
28219   echo "$as_me: failed program was:" >&5
28220 sed 's/^/| /' conftest.$ac_ext >&5
28221
28222         eval "$as_ac_var=no"
28223 fi
28224
28225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28226       conftest$ac_exeext conftest.$ac_ext
28227 fi
28228 ac_res=`eval echo '${'$as_ac_var'}'`
28229                { echo "$as_me:$LINENO: result: $ac_res" >&5
28230 echo "${ECHO_T}$ac_res" >&6; }
28231 if test `eval echo '${'$as_ac_var'}'` = yes; then
28232   cat >>confdefs.h <<_ACEOF
28233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28234 _ACEOF
28235  cat >>confdefs.h <<\_ACEOF
28236 #define HAVE_GETHOSTBYNAME2 1
28237 _ACEOF
28238
28239 fi
28240 done
28241
28242
28243 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28244 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28245 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28246   echo $ECHO_N "(cached) $ECHO_C" >&6
28247 else
28248   cat >conftest.$ac_ext <<_ACEOF
28249 /* confdefs.h.  */
28250 _ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h.  */
28254 #include <sys/socket.h>
28255 int
28256 main ()
28257 {
28258 struct sockaddr s; s.sa_len;
28259   ;
28260   return 0;
28261 }
28262 _ACEOF
28263 rm -f conftest.$ac_objext
28264 if { (ac_try="$ac_compile"
28265 case "(($ac_try" in
28266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28267   *) ac_try_echo=$ac_try;;
28268 esac
28269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28270   (eval "$ac_compile") 2>conftest.er1
28271   ac_status=$?
28272   grep -v '^ *+' conftest.er1 >conftest.err
28273   rm -f conftest.er1
28274   cat conftest.err >&5
28275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); } && {
28277          test -z "$ac_c_werror_flag" ||
28278          test ! -s conftest.err
28279        } && test -s conftest.$ac_objext; then
28280   ac_cv_struct_sockaddr_sa_len=yes
28281 else
28282   echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285         ac_cv_struct_sockaddr_sa_len=no
28286 fi
28287
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28289 fi
28290 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28291 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28292
28293  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28294
28295 cat >>confdefs.h <<\_ACEOF
28296 #define HAVE_SA_LEN 1
28297 _ACEOF
28298
28299  fi
28300
28301
28302
28303
28304
28305 for ac_func in strftime
28306 do
28307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28311   echo $ECHO_N "(cached) $ECHO_C" >&6
28312 else
28313   cat >conftest.$ac_ext <<_ACEOF
28314 /* confdefs.h.  */
28315 _ACEOF
28316 cat confdefs.h >>conftest.$ac_ext
28317 cat >>conftest.$ac_ext <<_ACEOF
28318 /* end confdefs.h.  */
28319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28320    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28321 #define $ac_func innocuous_$ac_func
28322
28323 /* System header to define __stub macros and hopefully few prototypes,
28324     which can conflict with char $ac_func (); below.
28325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28326     <limits.h> exists even on freestanding compilers.  */
28327
28328 #ifdef __STDC__
28329 # include <limits.h>
28330 #else
28331 # include <assert.h>
28332 #endif
28333
28334 #undef $ac_func
28335
28336 /* Override any GCC internal prototype to avoid an error.
28337    Use char because int might match the return type of a GCC
28338    builtin and then its argument prototype would still apply.  */
28339 #ifdef __cplusplus
28340 extern "C"
28341 #endif
28342 char $ac_func ();
28343 /* The GNU C library defines this for functions which it implements
28344     to always fail with ENOSYS.  Some functions are actually named
28345     something starting with __ and the normal name is an alias.  */
28346 #if defined __stub_$ac_func || defined __stub___$ac_func
28347 choke me
28348 #endif
28349
28350 int
28351 main ()
28352 {
28353 return $ac_func ();
28354   ;
28355   return 0;
28356 }
28357 _ACEOF
28358 rm -f conftest.$ac_objext conftest$ac_exeext
28359 if { (ac_try="$ac_link"
28360 case "(($ac_try" in
28361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28362   *) ac_try_echo=$ac_try;;
28363 esac
28364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28365   (eval "$ac_link") 2>conftest.er1
28366   ac_status=$?
28367   grep -v '^ *+' conftest.er1 >conftest.err
28368   rm -f conftest.er1
28369   cat conftest.err >&5
28370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28371   (exit $ac_status); } && {
28372          test -z "$ac_c_werror_flag" ||
28373          test ! -s conftest.err
28374        } && test -s conftest$ac_exeext &&
28375        $as_test_x conftest$ac_exeext; then
28376   eval "$as_ac_var=yes"
28377 else
28378   echo "$as_me: failed program was:" >&5
28379 sed 's/^/| /' conftest.$ac_ext >&5
28380
28381         eval "$as_ac_var=no"
28382 fi
28383
28384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28385       conftest$ac_exeext conftest.$ac_ext
28386 fi
28387 ac_res=`eval echo '${'$as_ac_var'}'`
28388                { echo "$as_me:$LINENO: result: $ac_res" >&5
28389 echo "${ECHO_T}$ac_res" >&6; }
28390 if test `eval echo '${'$as_ac_var'}'` = yes; then
28391   cat >>confdefs.h <<_ACEOF
28392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28393 _ACEOF
28394
28395 else
28396   # strftime is in -lintl on SCO UNIX.
28397 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28398 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28399 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28400   echo $ECHO_N "(cached) $ECHO_C" >&6
28401 else
28402   ac_check_lib_save_LIBS=$LIBS
28403 LIBS="-lintl  $LIBS"
28404 cat >conftest.$ac_ext <<_ACEOF
28405 /* confdefs.h.  */
28406 _ACEOF
28407 cat confdefs.h >>conftest.$ac_ext
28408 cat >>conftest.$ac_ext <<_ACEOF
28409 /* end confdefs.h.  */
28410
28411 /* Override any GCC internal prototype to avoid an error.
28412    Use char because int might match the return type of a GCC
28413    builtin and then its argument prototype would still apply.  */
28414 #ifdef __cplusplus
28415 extern "C"
28416 #endif
28417 char strftime ();
28418 int
28419 main ()
28420 {
28421 return strftime ();
28422   ;
28423   return 0;
28424 }
28425 _ACEOF
28426 rm -f conftest.$ac_objext conftest$ac_exeext
28427 if { (ac_try="$ac_link"
28428 case "(($ac_try" in
28429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28430   *) ac_try_echo=$ac_try;;
28431 esac
28432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28433   (eval "$ac_link") 2>conftest.er1
28434   ac_status=$?
28435   grep -v '^ *+' conftest.er1 >conftest.err
28436   rm -f conftest.er1
28437   cat conftest.err >&5
28438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439   (exit $ac_status); } && {
28440          test -z "$ac_c_werror_flag" ||
28441          test ! -s conftest.err
28442        } && test -s conftest$ac_exeext &&
28443        $as_test_x conftest$ac_exeext; then
28444   ac_cv_lib_intl_strftime=yes
28445 else
28446   echo "$as_me: failed program was:" >&5
28447 sed 's/^/| /' conftest.$ac_ext >&5
28448
28449         ac_cv_lib_intl_strftime=no
28450 fi
28451
28452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28453       conftest$ac_exeext conftest.$ac_ext
28454 LIBS=$ac_check_lib_save_LIBS
28455 fi
28456 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28457 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28458 if test $ac_cv_lib_intl_strftime = yes; then
28459   cat >>confdefs.h <<\_ACEOF
28460 #define HAVE_STRFTIME 1
28461 _ACEOF
28462
28463 LIBS="-lintl $LIBS"
28464 fi
28465
28466 fi
28467 done
28468
28469
28470 for ac_func in vprintf
28471 do
28472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28473 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28475 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28476   echo $ECHO_N "(cached) $ECHO_C" >&6
28477 else
28478   cat >conftest.$ac_ext <<_ACEOF
28479 /* confdefs.h.  */
28480 _ACEOF
28481 cat confdefs.h >>conftest.$ac_ext
28482 cat >>conftest.$ac_ext <<_ACEOF
28483 /* end confdefs.h.  */
28484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28485    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28486 #define $ac_func innocuous_$ac_func
28487
28488 /* System header to define __stub macros and hopefully few prototypes,
28489     which can conflict with char $ac_func (); below.
28490     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28491     <limits.h> exists even on freestanding compilers.  */
28492
28493 #ifdef __STDC__
28494 # include <limits.h>
28495 #else
28496 # include <assert.h>
28497 #endif
28498
28499 #undef $ac_func
28500
28501 /* Override any GCC internal prototype to avoid an error.
28502    Use char because int might match the return type of a GCC
28503    builtin and then its argument prototype would still apply.  */
28504 #ifdef __cplusplus
28505 extern "C"
28506 #endif
28507 char $ac_func ();
28508 /* The GNU C library defines this for functions which it implements
28509     to always fail with ENOSYS.  Some functions are actually named
28510     something starting with __ and the normal name is an alias.  */
28511 #if defined __stub_$ac_func || defined __stub___$ac_func
28512 choke me
28513 #endif
28514
28515 int
28516 main ()
28517 {
28518 return $ac_func ();
28519   ;
28520   return 0;
28521 }
28522 _ACEOF
28523 rm -f conftest.$ac_objext conftest$ac_exeext
28524 if { (ac_try="$ac_link"
28525 case "(($ac_try" in
28526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28527   *) ac_try_echo=$ac_try;;
28528 esac
28529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28530   (eval "$ac_link") 2>conftest.er1
28531   ac_status=$?
28532   grep -v '^ *+' conftest.er1 >conftest.err
28533   rm -f conftest.er1
28534   cat conftest.err >&5
28535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28536   (exit $ac_status); } && {
28537          test -z "$ac_c_werror_flag" ||
28538          test ! -s conftest.err
28539        } && test -s conftest$ac_exeext &&
28540        $as_test_x conftest$ac_exeext; then
28541   eval "$as_ac_var=yes"
28542 else
28543   echo "$as_me: failed program was:" >&5
28544 sed 's/^/| /' conftest.$ac_ext >&5
28545
28546         eval "$as_ac_var=no"
28547 fi
28548
28549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28550       conftest$ac_exeext conftest.$ac_ext
28551 fi
28552 ac_res=`eval echo '${'$as_ac_var'}'`
28553                { echo "$as_me:$LINENO: result: $ac_res" >&5
28554 echo "${ECHO_T}$ac_res" >&6; }
28555 if test `eval echo '${'$as_ac_var'}'` = yes; then
28556   cat >>confdefs.h <<_ACEOF
28557 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28558 _ACEOF
28559
28560 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28561 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28562 if test "${ac_cv_func__doprnt+set}" = set; then
28563   echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565   cat >conftest.$ac_ext <<_ACEOF
28566 /* confdefs.h.  */
28567 _ACEOF
28568 cat confdefs.h >>conftest.$ac_ext
28569 cat >>conftest.$ac_ext <<_ACEOF
28570 /* end confdefs.h.  */
28571 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28573 #define _doprnt innocuous__doprnt
28574
28575 /* System header to define __stub macros and hopefully few prototypes,
28576     which can conflict with char _doprnt (); below.
28577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28578     <limits.h> exists even on freestanding compilers.  */
28579
28580 #ifdef __STDC__
28581 # include <limits.h>
28582 #else
28583 # include <assert.h>
28584 #endif
28585
28586 #undef _doprnt
28587
28588 /* Override any GCC internal prototype to avoid an error.
28589    Use char because int might match the return type of a GCC
28590    builtin and then its argument prototype would still apply.  */
28591 #ifdef __cplusplus
28592 extern "C"
28593 #endif
28594 char _doprnt ();
28595 /* The GNU C library defines this for functions which it implements
28596     to always fail with ENOSYS.  Some functions are actually named
28597     something starting with __ and the normal name is an alias.  */
28598 #if defined __stub__doprnt || defined __stub____doprnt
28599 choke me
28600 #endif
28601
28602 int
28603 main ()
28604 {
28605 return _doprnt ();
28606   ;
28607   return 0;
28608 }
28609 _ACEOF
28610 rm -f conftest.$ac_objext conftest$ac_exeext
28611 if { (ac_try="$ac_link"
28612 case "(($ac_try" in
28613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28614   *) ac_try_echo=$ac_try;;
28615 esac
28616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28617   (eval "$ac_link") 2>conftest.er1
28618   ac_status=$?
28619   grep -v '^ *+' conftest.er1 >conftest.err
28620   rm -f conftest.er1
28621   cat conftest.err >&5
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); } && {
28624          test -z "$ac_c_werror_flag" ||
28625          test ! -s conftest.err
28626        } && test -s conftest$ac_exeext &&
28627        $as_test_x conftest$ac_exeext; then
28628   ac_cv_func__doprnt=yes
28629 else
28630   echo "$as_me: failed program was:" >&5
28631 sed 's/^/| /' conftest.$ac_ext >&5
28632
28633         ac_cv_func__doprnt=no
28634 fi
28635
28636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28637       conftest$ac_exeext conftest.$ac_ext
28638 fi
28639 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28640 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28641 if test $ac_cv_func__doprnt = yes; then
28642
28643 cat >>confdefs.h <<\_ACEOF
28644 #define HAVE_DOPRNT 1
28645 _ACEOF
28646
28647 fi
28648
28649 fi
28650 done
28651
28652
28653 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28654 # for constant arguments.  Useless!
28655 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28656 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28657 if test "${ac_cv_working_alloca_h+set}" = set; then
28658   echo $ECHO_N "(cached) $ECHO_C" >&6
28659 else
28660   cat >conftest.$ac_ext <<_ACEOF
28661 /* confdefs.h.  */
28662 _ACEOF
28663 cat confdefs.h >>conftest.$ac_ext
28664 cat >>conftest.$ac_ext <<_ACEOF
28665 /* end confdefs.h.  */
28666 #include <alloca.h>
28667 int
28668 main ()
28669 {
28670 char *p = (char *) alloca (2 * sizeof (int));
28671                           if (p) return 0;
28672   ;
28673   return 0;
28674 }
28675 _ACEOF
28676 rm -f conftest.$ac_objext conftest$ac_exeext
28677 if { (ac_try="$ac_link"
28678 case "(($ac_try" in
28679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28680   *) ac_try_echo=$ac_try;;
28681 esac
28682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28683   (eval "$ac_link") 2>conftest.er1
28684   ac_status=$?
28685   grep -v '^ *+' conftest.er1 >conftest.err
28686   rm -f conftest.er1
28687   cat conftest.err >&5
28688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28689   (exit $ac_status); } && {
28690          test -z "$ac_c_werror_flag" ||
28691          test ! -s conftest.err
28692        } && test -s conftest$ac_exeext &&
28693        $as_test_x conftest$ac_exeext; then
28694   ac_cv_working_alloca_h=yes
28695 else
28696   echo "$as_me: failed program was:" >&5
28697 sed 's/^/| /' conftest.$ac_ext >&5
28698
28699         ac_cv_working_alloca_h=no
28700 fi
28701
28702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28703       conftest$ac_exeext conftest.$ac_ext
28704 fi
28705 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28706 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28707 if test $ac_cv_working_alloca_h = yes; then
28708
28709 cat >>confdefs.h <<\_ACEOF
28710 #define HAVE_ALLOCA_H 1
28711 _ACEOF
28712
28713 fi
28714
28715 { echo "$as_me:$LINENO: checking for alloca" >&5
28716 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28717 if test "${ac_cv_func_alloca_works+set}" = set; then
28718   echo $ECHO_N "(cached) $ECHO_C" >&6
28719 else
28720   cat >conftest.$ac_ext <<_ACEOF
28721 /* confdefs.h.  */
28722 _ACEOF
28723 cat confdefs.h >>conftest.$ac_ext
28724 cat >>conftest.$ac_ext <<_ACEOF
28725 /* end confdefs.h.  */
28726 #ifdef __GNUC__
28727 # define alloca __builtin_alloca
28728 #else
28729 # ifdef _MSC_VER
28730 #  include <malloc.h>
28731 #  define alloca _alloca
28732 # else
28733 #  ifdef HAVE_ALLOCA_H
28734 #   include <alloca.h>
28735 #  else
28736 #   ifdef _AIX
28737  #pragma alloca
28738 #   else
28739 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28740 char *alloca ();
28741 #    endif
28742 #   endif
28743 #  endif
28744 # endif
28745 #endif
28746
28747 int
28748 main ()
28749 {
28750 char *p = (char *) alloca (1);
28751                                     if (p) return 0;
28752   ;
28753   return 0;
28754 }
28755 _ACEOF
28756 rm -f conftest.$ac_objext conftest$ac_exeext
28757 if { (ac_try="$ac_link"
28758 case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_link") 2>conftest.er1
28764   ac_status=$?
28765   grep -v '^ *+' conftest.er1 >conftest.err
28766   rm -f conftest.er1
28767   cat conftest.err >&5
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } && {
28770          test -z "$ac_c_werror_flag" ||
28771          test ! -s conftest.err
28772        } && test -s conftest$ac_exeext &&
28773        $as_test_x conftest$ac_exeext; then
28774   ac_cv_func_alloca_works=yes
28775 else
28776   echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779         ac_cv_func_alloca_works=no
28780 fi
28781
28782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28783       conftest$ac_exeext conftest.$ac_ext
28784 fi
28785 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28786 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28787
28788 if test $ac_cv_func_alloca_works = yes; then
28789
28790 cat >>confdefs.h <<\_ACEOF
28791 #define HAVE_ALLOCA 1
28792 _ACEOF
28793
28794 else
28795   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28796 # that cause trouble.  Some versions do not even contain alloca or
28797 # contain a buggy version.  If you still want to use their alloca,
28798 # use ar to extract alloca.o from them instead of compiling alloca.c.
28799
28800 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28801
28802 cat >>confdefs.h <<\_ACEOF
28803 #define C_ALLOCA 1
28804 _ACEOF
28805
28806
28807 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28808 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28809 if test "${ac_cv_os_cray+set}" = set; then
28810   echo $ECHO_N "(cached) $ECHO_C" >&6
28811 else
28812   cat >conftest.$ac_ext <<_ACEOF
28813 /* confdefs.h.  */
28814 _ACEOF
28815 cat confdefs.h >>conftest.$ac_ext
28816 cat >>conftest.$ac_ext <<_ACEOF
28817 /* end confdefs.h.  */
28818 #if defined CRAY && ! defined CRAY2
28819 webecray
28820 #else
28821 wenotbecray
28822 #endif
28823
28824 _ACEOF
28825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28826   $EGREP "webecray" >/dev/null 2>&1; then
28827   ac_cv_os_cray=yes
28828 else
28829   ac_cv_os_cray=no
28830 fi
28831 rm -f conftest*
28832
28833 fi
28834 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28835 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28836 if test $ac_cv_os_cray = yes; then
28837   for ac_func in _getb67 GETB67 getb67; do
28838     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28839 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28840 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28842   echo $ECHO_N "(cached) $ECHO_C" >&6
28843 else
28844   cat >conftest.$ac_ext <<_ACEOF
28845 /* confdefs.h.  */
28846 _ACEOF
28847 cat confdefs.h >>conftest.$ac_ext
28848 cat >>conftest.$ac_ext <<_ACEOF
28849 /* end confdefs.h.  */
28850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28852 #define $ac_func innocuous_$ac_func
28853
28854 /* System header to define __stub macros and hopefully few prototypes,
28855     which can conflict with char $ac_func (); below.
28856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28857     <limits.h> exists even on freestanding compilers.  */
28858
28859 #ifdef __STDC__
28860 # include <limits.h>
28861 #else
28862 # include <assert.h>
28863 #endif
28864
28865 #undef $ac_func
28866
28867 /* Override any GCC internal prototype to avoid an error.
28868    Use char because int might match the return type of a GCC
28869    builtin and then its argument prototype would still apply.  */
28870 #ifdef __cplusplus
28871 extern "C"
28872 #endif
28873 char $ac_func ();
28874 /* The GNU C library defines this for functions which it implements
28875     to always fail with ENOSYS.  Some functions are actually named
28876     something starting with __ and the normal name is an alias.  */
28877 #if defined __stub_$ac_func || defined __stub___$ac_func
28878 choke me
28879 #endif
28880
28881 int
28882 main ()
28883 {
28884 return $ac_func ();
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 rm -f conftest.$ac_objext conftest$ac_exeext
28890 if { (ac_try="$ac_link"
28891 case "(($ac_try" in
28892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893   *) ac_try_echo=$ac_try;;
28894 esac
28895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28896   (eval "$ac_link") 2>conftest.er1
28897   ac_status=$?
28898   grep -v '^ *+' conftest.er1 >conftest.err
28899   rm -f conftest.er1
28900   cat conftest.err >&5
28901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902   (exit $ac_status); } && {
28903          test -z "$ac_c_werror_flag" ||
28904          test ! -s conftest.err
28905        } && test -s conftest$ac_exeext &&
28906        $as_test_x conftest$ac_exeext; then
28907   eval "$as_ac_var=yes"
28908 else
28909   echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28911
28912         eval "$as_ac_var=no"
28913 fi
28914
28915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28916       conftest$ac_exeext conftest.$ac_ext
28917 fi
28918 ac_res=`eval echo '${'$as_ac_var'}'`
28919                { echo "$as_me:$LINENO: result: $ac_res" >&5
28920 echo "${ECHO_T}$ac_res" >&6; }
28921 if test `eval echo '${'$as_ac_var'}'` = yes; then
28922
28923 cat >>confdefs.h <<_ACEOF
28924 #define CRAY_STACKSEG_END $ac_func
28925 _ACEOF
28926
28927     break
28928 fi
28929
28930   done
28931 fi
28932
28933 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28934 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28935 if test "${ac_cv_c_stack_direction+set}" = set; then
28936   echo $ECHO_N "(cached) $ECHO_C" >&6
28937 else
28938   if test "$cross_compiling" = yes; then
28939   ac_cv_c_stack_direction=0
28940 else
28941   cat >conftest.$ac_ext <<_ACEOF
28942 /* confdefs.h.  */
28943 _ACEOF
28944 cat confdefs.h >>conftest.$ac_ext
28945 cat >>conftest.$ac_ext <<_ACEOF
28946 /* end confdefs.h.  */
28947 $ac_includes_default
28948 int
28949 find_stack_direction ()
28950 {
28951   static char *addr = 0;
28952   auto char dummy;
28953   if (addr == 0)
28954     {
28955       addr = &dummy;
28956       return find_stack_direction ();
28957     }
28958   else
28959     return (&dummy > addr) ? 1 : -1;
28960 }
28961
28962 int
28963 main ()
28964 {
28965   return find_stack_direction () < 0;
28966 }
28967 _ACEOF
28968 rm -f conftest$ac_exeext
28969 if { (ac_try="$ac_link"
28970 case "(($ac_try" in
28971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28972   *) ac_try_echo=$ac_try;;
28973 esac
28974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28975   (eval "$ac_link") 2>&5
28976   ac_status=$?
28977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28979   { (case "(($ac_try" in
28980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981   *) ac_try_echo=$ac_try;;
28982 esac
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984   (eval "$ac_try") 2>&5
28985   ac_status=$?
28986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); }; }; then
28988   ac_cv_c_stack_direction=1
28989 else
28990   echo "$as_me: program exited with status $ac_status" >&5
28991 echo "$as_me: failed program was:" >&5
28992 sed 's/^/| /' conftest.$ac_ext >&5
28993
28994 ( exit $ac_status )
28995 ac_cv_c_stack_direction=-1
28996 fi
28997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28998 fi
28999
29000
29001 fi
29002 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
29003 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
29004
29005 cat >>confdefs.h <<_ACEOF
29006 #define STACK_DIRECTION $ac_cv_c_stack_direction
29007 _ACEOF
29008
29009
29010 fi
29011
29012 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29013 # -lseq on Dynix/PTX, -lgen on Unixware.
29014 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
29015 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
29016 if test "${ac_cv_search_getmntent+set}" = set; then
29017   echo $ECHO_N "(cached) $ECHO_C" >&6
29018 else
29019   ac_func_search_save_LIBS=$LIBS
29020 cat >conftest.$ac_ext <<_ACEOF
29021 /* confdefs.h.  */
29022 _ACEOF
29023 cat confdefs.h >>conftest.$ac_ext
29024 cat >>conftest.$ac_ext <<_ACEOF
29025 /* end confdefs.h.  */
29026
29027 /* Override any GCC internal prototype to avoid an error.
29028    Use char because int might match the return type of a GCC
29029    builtin and then its argument prototype would still apply.  */
29030 #ifdef __cplusplus
29031 extern "C"
29032 #endif
29033 char getmntent ();
29034 int
29035 main ()
29036 {
29037 return getmntent ();
29038   ;
29039   return 0;
29040 }
29041 _ACEOF
29042 for ac_lib in '' sun seq gen; do
29043   if test -z "$ac_lib"; then
29044     ac_res="none required"
29045   else
29046     ac_res=-l$ac_lib
29047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29048   fi
29049   rm -f conftest.$ac_objext conftest$ac_exeext
29050 if { (ac_try="$ac_link"
29051 case "(($ac_try" in
29052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29053   *) ac_try_echo=$ac_try;;
29054 esac
29055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29056   (eval "$ac_link") 2>conftest.er1
29057   ac_status=$?
29058   grep -v '^ *+' conftest.er1 >conftest.err
29059   rm -f conftest.er1
29060   cat conftest.err >&5
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); } && {
29063          test -z "$ac_c_werror_flag" ||
29064          test ! -s conftest.err
29065        } && test -s conftest$ac_exeext &&
29066        $as_test_x conftest$ac_exeext; then
29067   ac_cv_search_getmntent=$ac_res
29068 else
29069   echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29071
29072
29073 fi
29074
29075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29076       conftest$ac_exeext
29077   if test "${ac_cv_search_getmntent+set}" = set; then
29078   break
29079 fi
29080 done
29081 if test "${ac_cv_search_getmntent+set}" = set; then
29082   :
29083 else
29084   ac_cv_search_getmntent=no
29085 fi
29086 rm conftest.$ac_ext
29087 LIBS=$ac_func_search_save_LIBS
29088 fi
29089 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
29090 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
29091 ac_res=$ac_cv_search_getmntent
29092 if test "$ac_res" != no; then
29093   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29094   ac_cv_func_getmntent=yes
29095
29096 cat >>confdefs.h <<\_ACEOF
29097 #define HAVE_GETMNTENT 1
29098 _ACEOF
29099
29100 else
29101   ac_cv_func_getmntent=no
29102 fi
29103
29104
29105 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29106 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
29107 if test "${ac_cv_func_closedir_void+set}" = set; then
29108   echo $ECHO_N "(cached) $ECHO_C" >&6
29109 else
29110   if test "$cross_compiling" = yes; then
29111   ac_cv_func_closedir_void=yes
29112 else
29113   cat >conftest.$ac_ext <<_ACEOF
29114 /* confdefs.h.  */
29115 _ACEOF
29116 cat confdefs.h >>conftest.$ac_ext
29117 cat >>conftest.$ac_ext <<_ACEOF
29118 /* end confdefs.h.  */
29119 $ac_includes_default
29120 #include <$ac_header_dirent>
29121 #ifndef __cplusplus
29122 int closedir ();
29123 #endif
29124
29125 int
29126 main ()
29127 {
29128 return closedir (opendir (".")) != 0;
29129   ;
29130   return 0;
29131 }
29132 _ACEOF
29133 rm -f conftest$ac_exeext
29134 if { (ac_try="$ac_link"
29135 case "(($ac_try" in
29136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29137   *) ac_try_echo=$ac_try;;
29138 esac
29139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29140   (eval "$ac_link") 2>&5
29141   ac_status=$?
29142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29144   { (case "(($ac_try" in
29145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29146   *) ac_try_echo=$ac_try;;
29147 esac
29148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29149   (eval "$ac_try") 2>&5
29150   ac_status=$?
29151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152   (exit $ac_status); }; }; then
29153   ac_cv_func_closedir_void=no
29154 else
29155   echo "$as_me: program exited with status $ac_status" >&5
29156 echo "$as_me: failed program was:" >&5
29157 sed 's/^/| /' conftest.$ac_ext >&5
29158
29159 ( exit $ac_status )
29160 ac_cv_func_closedir_void=yes
29161 fi
29162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29163 fi
29164
29165
29166 fi
29167 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29168 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
29169 if test $ac_cv_func_closedir_void = yes; then
29170
29171 cat >>confdefs.h <<\_ACEOF
29172 #define CLOSEDIR_VOID 1
29173 _ACEOF
29174
29175 fi
29176
29177 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
29178 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
29179 if test "${ac_cv_func_setpgrp_void+set}" = set; then
29180   echo $ECHO_N "(cached) $ECHO_C" >&6
29181 else
29182   if test "$cross_compiling" = yes; then
29183   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
29184 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
29185    { (exit 1); exit 1; }; }
29186 else
29187   cat >conftest.$ac_ext <<_ACEOF
29188 /* confdefs.h.  */
29189 _ACEOF
29190 cat confdefs.h >>conftest.$ac_ext
29191 cat >>conftest.$ac_ext <<_ACEOF
29192 /* end confdefs.h.  */
29193 $ac_includes_default
29194 int
29195 main ()
29196 {
29197 /* If this system has a BSD-style setpgrp which takes arguments,
29198   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29199   exit successfully. */
29200   return setpgrp (1,1) != -1;
29201   ;
29202   return 0;
29203 }
29204 _ACEOF
29205 rm -f conftest$ac_exeext
29206 if { (ac_try="$ac_link"
29207 case "(($ac_try" in
29208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209   *) ac_try_echo=$ac_try;;
29210 esac
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212   (eval "$ac_link") 2>&5
29213   ac_status=$?
29214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29216   { (case "(($ac_try" in
29217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29218   *) ac_try_echo=$ac_try;;
29219 esac
29220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29221   (eval "$ac_try") 2>&5
29222   ac_status=$?
29223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224   (exit $ac_status); }; }; then
29225   ac_cv_func_setpgrp_void=no
29226 else
29227   echo "$as_me: program exited with status $ac_status" >&5
29228 echo "$as_me: failed program was:" >&5
29229 sed 's/^/| /' conftest.$ac_ext >&5
29230
29231 ( exit $ac_status )
29232 ac_cv_func_setpgrp_void=yes
29233 fi
29234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29235 fi
29236
29237
29238 fi
29239 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29240 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29241 if test $ac_cv_func_setpgrp_void = yes; then
29242
29243 cat >>confdefs.h <<\_ACEOF
29244 #define SETPGRP_VOID 1
29245 _ACEOF
29246
29247 fi
29248                       # AC_FUNC_FNMATCH    dnl use local version
29249
29250
29251 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29252 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29253 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29254   echo $ECHO_N "(cached) $ECHO_C" >&6
29255 else
29256   ac_check_lib_save_LIBS=$LIBS
29257 LIBS="-lintl  $LIBS"
29258 cat >conftest.$ac_ext <<_ACEOF
29259 /* confdefs.h.  */
29260 _ACEOF
29261 cat confdefs.h >>conftest.$ac_ext
29262 cat >>conftest.$ac_ext <<_ACEOF
29263 /* end confdefs.h.  */
29264
29265 /* Override any GCC internal prototype to avoid an error.
29266    Use char because int might match the return type of a GCC
29267    builtin and then its argument prototype would still apply.  */
29268 #ifdef __cplusplus
29269 extern "C"
29270 #endif
29271 char gettext ();
29272 int
29273 main ()
29274 {
29275 return gettext ();
29276   ;
29277   return 0;
29278 }
29279 _ACEOF
29280 rm -f conftest.$ac_objext conftest$ac_exeext
29281 if { (ac_try="$ac_link"
29282 case "(($ac_try" in
29283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29284   *) ac_try_echo=$ac_try;;
29285 esac
29286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29287   (eval "$ac_link") 2>conftest.er1
29288   ac_status=$?
29289   grep -v '^ *+' conftest.er1 >conftest.err
29290   rm -f conftest.er1
29291   cat conftest.err >&5
29292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29293   (exit $ac_status); } && {
29294          test -z "$ac_c_werror_flag" ||
29295          test ! -s conftest.err
29296        } && test -s conftest$ac_exeext &&
29297        $as_test_x conftest$ac_exeext; then
29298   ac_cv_lib_intl_gettext=yes
29299 else
29300   echo "$as_me: failed program was:" >&5
29301 sed 's/^/| /' conftest.$ac_ext >&5
29302
29303         ac_cv_lib_intl_gettext=no
29304 fi
29305
29306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29307       conftest$ac_exeext conftest.$ac_ext
29308 LIBS=$ac_check_lib_save_LIBS
29309 fi
29310 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29311 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29312 if test $ac_cv_lib_intl_gettext = yes; then
29313   LIBS="$LIBS -lintl"
29314 fi
29315
29316
29317
29318
29319 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29320 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29321 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29322   echo $ECHO_N "(cached) $ECHO_C" >&6
29323 else
29324   ac_check_lib_save_LIBS=$LIBS
29325 LIBS="-lsun  $LIBS"
29326 cat >conftest.$ac_ext <<_ACEOF
29327 /* confdefs.h.  */
29328 _ACEOF
29329 cat confdefs.h >>conftest.$ac_ext
29330 cat >>conftest.$ac_ext <<_ACEOF
29331 /* end confdefs.h.  */
29332
29333 /* Override any GCC internal prototype to avoid an error.
29334    Use char because int might match the return type of a GCC
29335    builtin and then its argument prototype would still apply.  */
29336 #ifdef __cplusplus
29337 extern "C"
29338 #endif
29339 char getpwnam ();
29340 int
29341 main ()
29342 {
29343 return getpwnam ();
29344   ;
29345   return 0;
29346 }
29347 _ACEOF
29348 rm -f conftest.$ac_objext conftest$ac_exeext
29349 if { (ac_try="$ac_link"
29350 case "(($ac_try" in
29351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29352   *) ac_try_echo=$ac_try;;
29353 esac
29354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29355   (eval "$ac_link") 2>conftest.er1
29356   ac_status=$?
29357   grep -v '^ *+' conftest.er1 >conftest.err
29358   rm -f conftest.er1
29359   cat conftest.err >&5
29360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29361   (exit $ac_status); } && {
29362          test -z "$ac_c_werror_flag" ||
29363          test ! -s conftest.err
29364        } && test -s conftest$ac_exeext &&
29365        $as_test_x conftest$ac_exeext; then
29366   ac_cv_lib_sun_getpwnam=yes
29367 else
29368   echo "$as_me: failed program was:" >&5
29369 sed 's/^/| /' conftest.$ac_ext >&5
29370
29371         ac_cv_lib_sun_getpwnam=no
29372 fi
29373
29374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29375       conftest$ac_exeext conftest.$ac_ext
29376 LIBS=$ac_check_lib_save_LIBS
29377 fi
29378 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29379 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29380 if test $ac_cv_lib_sun_getpwnam = yes; then
29381   cat >>confdefs.h <<_ACEOF
29382 #define HAVE_LIBSUN 1
29383 _ACEOF
29384
29385   LIBS="-lsun $LIBS"
29386
29387 fi
29388
29389
29390
29391 for ac_header in zlib.h
29392 do
29393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 fi
29400 ac_res=`eval echo '${'$as_ac_Header'}'`
29401                { echo "$as_me:$LINENO: result: $ac_res" >&5
29402 echo "${ECHO_T}$ac_res" >&6; }
29403 else
29404   # Is the header compilable?
29405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29407 cat >conftest.$ac_ext <<_ACEOF
29408 /* confdefs.h.  */
29409 _ACEOF
29410 cat confdefs.h >>conftest.$ac_ext
29411 cat >>conftest.$ac_ext <<_ACEOF
29412 /* end confdefs.h.  */
29413 $ac_includes_default
29414 #include <$ac_header>
29415 _ACEOF
29416 rm -f conftest.$ac_objext
29417 if { (ac_try="$ac_compile"
29418 case "(($ac_try" in
29419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29420   *) ac_try_echo=$ac_try;;
29421 esac
29422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29423   (eval "$ac_compile") 2>conftest.er1
29424   ac_status=$?
29425   grep -v '^ *+' conftest.er1 >conftest.err
29426   rm -f conftest.er1
29427   cat conftest.err >&5
29428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29429   (exit $ac_status); } && {
29430          test -z "$ac_c_werror_flag" ||
29431          test ! -s conftest.err
29432        } && test -s conftest.$ac_objext; then
29433   ac_header_compiler=yes
29434 else
29435   echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.$ac_ext >&5
29437
29438         ac_header_compiler=no
29439 fi
29440
29441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29443 echo "${ECHO_T}$ac_header_compiler" >&6; }
29444
29445 # Is the header present?
29446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29448 cat >conftest.$ac_ext <<_ACEOF
29449 /* confdefs.h.  */
29450 _ACEOF
29451 cat confdefs.h >>conftest.$ac_ext
29452 cat >>conftest.$ac_ext <<_ACEOF
29453 /* end confdefs.h.  */
29454 #include <$ac_header>
29455 _ACEOF
29456 if { (ac_try="$ac_cpp conftest.$ac_ext"
29457 case "(($ac_try" in
29458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29459   *) ac_try_echo=$ac_try;;
29460 esac
29461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29463   ac_status=$?
29464   grep -v '^ *+' conftest.er1 >conftest.err
29465   rm -f conftest.er1
29466   cat conftest.err >&5
29467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29468   (exit $ac_status); } >/dev/null && {
29469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29470          test ! -s conftest.err
29471        }; then
29472   ac_header_preproc=yes
29473 else
29474   echo "$as_me: failed program was:" >&5
29475 sed 's/^/| /' conftest.$ac_ext >&5
29476
29477   ac_header_preproc=no
29478 fi
29479
29480 rm -f conftest.err conftest.$ac_ext
29481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29482 echo "${ECHO_T}$ac_header_preproc" >&6; }
29483
29484 # So?  What about this header?
29485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29486   yes:no: )
29487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29491     ac_header_preproc=yes
29492     ;;
29493   no:yes:* )
29494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29506
29507     ;;
29508 esac
29509 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29510 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29512   echo $ECHO_N "(cached) $ECHO_C" >&6
29513 else
29514   eval "$as_ac_Header=\$ac_header_preproc"
29515 fi
29516 ac_res=`eval echo '${'$as_ac_Header'}'`
29517                { echo "$as_me:$LINENO: result: $ac_res" >&5
29518 echo "${ECHO_T}$ac_res" >&6; }
29519
29520 fi
29521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29522   cat >>confdefs.h <<_ACEOF
29523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29524 _ACEOF
29525
29526 fi
29527
29528 done
29529
29530 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29531 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29532 if test "${ac_cv_lib_z_deflate+set}" = set; then
29533   echo $ECHO_N "(cached) $ECHO_C" >&6
29534 else
29535   ac_check_lib_save_LIBS=$LIBS
29536 LIBS="-lz  $LIBS"
29537 cat >conftest.$ac_ext <<_ACEOF
29538 /* confdefs.h.  */
29539 _ACEOF
29540 cat confdefs.h >>conftest.$ac_ext
29541 cat >>conftest.$ac_ext <<_ACEOF
29542 /* end confdefs.h.  */
29543
29544 /* Override any GCC internal prototype to avoid an error.
29545    Use char because int might match the return type of a GCC
29546    builtin and then its argument prototype would still apply.  */
29547 #ifdef __cplusplus
29548 extern "C"
29549 #endif
29550 char deflate ();
29551 int
29552 main ()
29553 {
29554 return deflate ();
29555   ;
29556   return 0;
29557 }
29558 _ACEOF
29559 rm -f conftest.$ac_objext conftest$ac_exeext
29560 if { (ac_try="$ac_link"
29561 case "(($ac_try" in
29562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29563   *) ac_try_echo=$ac_try;;
29564 esac
29565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29566   (eval "$ac_link") 2>conftest.er1
29567   ac_status=$?
29568   grep -v '^ *+' conftest.er1 >conftest.err
29569   rm -f conftest.er1
29570   cat conftest.err >&5
29571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572   (exit $ac_status); } && {
29573          test -z "$ac_c_werror_flag" ||
29574          test ! -s conftest.err
29575        } && test -s conftest$ac_exeext &&
29576        $as_test_x conftest$ac_exeext; then
29577   ac_cv_lib_z_deflate=yes
29578 else
29579   echo "$as_me: failed program was:" >&5
29580 sed 's/^/| /' conftest.$ac_ext >&5
29581
29582         ac_cv_lib_z_deflate=no
29583 fi
29584
29585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29586       conftest$ac_exeext conftest.$ac_ext
29587 LIBS=$ac_check_lib_save_LIBS
29588 fi
29589 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29590 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29591 if test $ac_cv_lib_z_deflate = yes; then
29592   FDLIBS="-lz"
29593 fi
29594
29595 have_zlib=no
29596 if test x$FDLIBS = x-lz; then
29597   cat >>confdefs.h <<\_ACEOF
29598 #define HAVE_LIBZ 1
29599 _ACEOF
29600
29601   have_zlib=yes
29602 fi
29603
29604 #
29605 # Check for ACL libraries
29606 #
29607 have_acl=no
29608 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29609   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29610 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29612   echo $ECHO_N "(cached) $ECHO_C" >&6
29613 fi
29614 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29615 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29616 else
29617   # Is the header compilable?
29618 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29619 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29620 cat >conftest.$ac_ext <<_ACEOF
29621 /* confdefs.h.  */
29622 _ACEOF
29623 cat confdefs.h >>conftest.$ac_ext
29624 cat >>conftest.$ac_ext <<_ACEOF
29625 /* end confdefs.h.  */
29626 $ac_includes_default
29627 #include <sys/acl.h>
29628 _ACEOF
29629 rm -f conftest.$ac_objext
29630 if { (ac_try="$ac_compile"
29631 case "(($ac_try" in
29632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29633   *) ac_try_echo=$ac_try;;
29634 esac
29635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29636   (eval "$ac_compile") 2>conftest.er1
29637   ac_status=$?
29638   grep -v '^ *+' conftest.er1 >conftest.err
29639   rm -f conftest.er1
29640   cat conftest.err >&5
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); } && {
29643          test -z "$ac_c_werror_flag" ||
29644          test ! -s conftest.err
29645        } && test -s conftest.$ac_objext; then
29646   ac_header_compiler=yes
29647 else
29648   echo "$as_me: failed program was:" >&5
29649 sed 's/^/| /' conftest.$ac_ext >&5
29650
29651         ac_header_compiler=no
29652 fi
29653
29654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29656 echo "${ECHO_T}$ac_header_compiler" >&6; }
29657
29658 # Is the header present?
29659 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29660 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29661 cat >conftest.$ac_ext <<_ACEOF
29662 /* confdefs.h.  */
29663 _ACEOF
29664 cat confdefs.h >>conftest.$ac_ext
29665 cat >>conftest.$ac_ext <<_ACEOF
29666 /* end confdefs.h.  */
29667 #include <sys/acl.h>
29668 _ACEOF
29669 if { (ac_try="$ac_cpp conftest.$ac_ext"
29670 case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } >/dev/null && {
29682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29683          test ! -s conftest.err
29684        }; then
29685   ac_header_preproc=yes
29686 else
29687   echo "$as_me: failed program was:" >&5
29688 sed 's/^/| /' conftest.$ac_ext >&5
29689
29690   ac_header_preproc=no
29691 fi
29692
29693 rm -f conftest.err conftest.$ac_ext
29694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29695 echo "${ECHO_T}$ac_header_preproc" >&6; }
29696
29697 # So?  What about this header?
29698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29699   yes:no: )
29700     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29701 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29702     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29703 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29704     ac_header_preproc=yes
29705     ;;
29706   no:yes:* )
29707     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29708 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29709     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29710 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29711     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29712 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29713     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29714 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29715     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29716 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29717     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29718 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29719
29720     ;;
29721 esac
29722 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29723 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29724 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29725   echo $ECHO_N "(cached) $ECHO_C" >&6
29726 else
29727   ac_cv_header_sys_acl_h=$ac_header_preproc
29728 fi
29729 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29730 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29731
29732 fi
29733
29734
29735 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29736 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29737 if test "${ac_cv_func_acl_get_file+set}" = set; then
29738   echo $ECHO_N "(cached) $ECHO_C" >&6
29739 else
29740   cat >conftest.$ac_ext <<_ACEOF
29741 /* confdefs.h.  */
29742 _ACEOF
29743 cat confdefs.h >>conftest.$ac_ext
29744 cat >>conftest.$ac_ext <<_ACEOF
29745 /* end confdefs.h.  */
29746 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29748 #define acl_get_file innocuous_acl_get_file
29749
29750 /* System header to define __stub macros and hopefully few prototypes,
29751     which can conflict with char acl_get_file (); below.
29752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29753     <limits.h> exists even on freestanding compilers.  */
29754
29755 #ifdef __STDC__
29756 # include <limits.h>
29757 #else
29758 # include <assert.h>
29759 #endif
29760
29761 #undef acl_get_file
29762
29763 /* Override any GCC internal prototype to avoid an error.
29764    Use char because int might match the return type of a GCC
29765    builtin and then its argument prototype would still apply.  */
29766 #ifdef __cplusplus
29767 extern "C"
29768 #endif
29769 char acl_get_file ();
29770 /* The GNU C library defines this for functions which it implements
29771     to always fail with ENOSYS.  Some functions are actually named
29772     something starting with __ and the normal name is an alias.  */
29773 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29774 choke me
29775 #endif
29776
29777 int
29778 main ()
29779 {
29780 return acl_get_file ();
29781   ;
29782   return 0;
29783 }
29784 _ACEOF
29785 rm -f conftest.$ac_objext conftest$ac_exeext
29786 if { (ac_try="$ac_link"
29787 case "(($ac_try" in
29788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29789   *) ac_try_echo=$ac_try;;
29790 esac
29791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29792   (eval "$ac_link") 2>conftest.er1
29793   ac_status=$?
29794   grep -v '^ *+' conftest.er1 >conftest.err
29795   rm -f conftest.er1
29796   cat conftest.err >&5
29797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29798   (exit $ac_status); } && {
29799          test -z "$ac_c_werror_flag" ||
29800          test ! -s conftest.err
29801        } && test -s conftest$ac_exeext &&
29802        $as_test_x conftest$ac_exeext; then
29803   ac_cv_func_acl_get_file=yes
29804 else
29805   echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.$ac_ext >&5
29807
29808         ac_cv_func_acl_get_file=no
29809 fi
29810
29811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29812       conftest$ac_exeext conftest.$ac_ext
29813 fi
29814 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29815 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29816 if test $ac_cv_func_acl_get_file = yes; then
29817   have_acl=yes
29818 else
29819   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29820 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29821 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29822   echo $ECHO_N "(cached) $ECHO_C" >&6
29823 else
29824   ac_check_lib_save_LIBS=$LIBS
29825 LIBS="-lacl  $LIBS"
29826 cat >conftest.$ac_ext <<_ACEOF
29827 /* confdefs.h.  */
29828 _ACEOF
29829 cat confdefs.h >>conftest.$ac_ext
29830 cat >>conftest.$ac_ext <<_ACEOF
29831 /* end confdefs.h.  */
29832
29833 /* Override any GCC internal prototype to avoid an error.
29834    Use char because int might match the return type of a GCC
29835    builtin and then its argument prototype would still apply.  */
29836 #ifdef __cplusplus
29837 extern "C"
29838 #endif
29839 char acl_get_file ();
29840 int
29841 main ()
29842 {
29843 return acl_get_file ();
29844   ;
29845   return 0;
29846 }
29847 _ACEOF
29848 rm -f conftest.$ac_objext conftest$ac_exeext
29849 if { (ac_try="$ac_link"
29850 case "(($ac_try" in
29851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29852   *) ac_try_echo=$ac_try;;
29853 esac
29854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29855   (eval "$ac_link") 2>conftest.er1
29856   ac_status=$?
29857   grep -v '^ *+' conftest.er1 >conftest.err
29858   rm -f conftest.er1
29859   cat conftest.err >&5
29860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29861   (exit $ac_status); } && {
29862          test -z "$ac_c_werror_flag" ||
29863          test ! -s conftest.err
29864        } && test -s conftest$ac_exeext &&
29865        $as_test_x conftest$ac_exeext; then
29866   ac_cv_lib_acl_acl_get_file=yes
29867 else
29868   echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.$ac_ext >&5
29870
29871         ac_cv_lib_acl_acl_get_file=no
29872 fi
29873
29874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29875       conftest$ac_exeext conftest.$ac_ext
29876 LIBS=$ac_check_lib_save_LIBS
29877 fi
29878 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29879 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29880 if test $ac_cv_lib_acl_acl_get_file = yes; then
29881   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29882 else
29883   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29884 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29885 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29886   echo $ECHO_N "(cached) $ECHO_C" >&6
29887 else
29888   ac_check_lib_save_LIBS=$LIBS
29889 LIBS="-lsec  $LIBS"
29890 cat >conftest.$ac_ext <<_ACEOF
29891 /* confdefs.h.  */
29892 _ACEOF
29893 cat confdefs.h >>conftest.$ac_ext
29894 cat >>conftest.$ac_ext <<_ACEOF
29895 /* end confdefs.h.  */
29896
29897 /* Override any GCC internal prototype to avoid an error.
29898    Use char because int might match the return type of a GCC
29899    builtin and then its argument prototype would still apply.  */
29900 #ifdef __cplusplus
29901 extern "C"
29902 #endif
29903 char acltotext ();
29904 int
29905 main ()
29906 {
29907 return acltotext ();
29908   ;
29909   return 0;
29910 }
29911 _ACEOF
29912 rm -f conftest.$ac_objext conftest$ac_exeext
29913 if { (ac_try="$ac_link"
29914 case "(($ac_try" in
29915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29916   *) ac_try_echo=$ac_try;;
29917 esac
29918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29919   (eval "$ac_link") 2>conftest.er1
29920   ac_status=$?
29921   grep -v '^ *+' conftest.er1 >conftest.err
29922   rm -f conftest.er1
29923   cat conftest.err >&5
29924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29925   (exit $ac_status); } && {
29926          test -z "$ac_c_werror_flag" ||
29927          test ! -s conftest.err
29928        } && test -s conftest$ac_exeext &&
29929        $as_test_x conftest$ac_exeext; then
29930   ac_cv_lib_sec_acltotext=yes
29931 else
29932   echo "$as_me: failed program was:" >&5
29933 sed 's/^/| /' conftest.$ac_ext >&5
29934
29935         ac_cv_lib_sec_acltotext=no
29936 fi
29937
29938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29939       conftest$ac_exeext conftest.$ac_ext
29940 LIBS=$ac_check_lib_save_LIBS
29941 fi
29942 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29943 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29944 if test $ac_cv_lib_sec_acltotext = yes; then
29945   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29946 fi
29947
29948
29949 fi
29950
29951
29952 fi
29953
29954 if test $have_acl = yes; then
29955    cat >>confdefs.h <<\_ACEOF
29956 #define HAVE_ACL 1
29957 _ACEOF
29958
29959 fi
29960
29961 PTHREAD_LIB=""
29962 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29963 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29964 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29965   echo $ECHO_N "(cached) $ECHO_C" >&6
29966 else
29967   ac_check_lib_save_LIBS=$LIBS
29968 LIBS="-lpthread  $LIBS"
29969 cat >conftest.$ac_ext <<_ACEOF
29970 /* confdefs.h.  */
29971 _ACEOF
29972 cat confdefs.h >>conftest.$ac_ext
29973 cat >>conftest.$ac_ext <<_ACEOF
29974 /* end confdefs.h.  */
29975
29976 /* Override any GCC internal prototype to avoid an error.
29977    Use char because int might match the return type of a GCC
29978    builtin and then its argument prototype would still apply.  */
29979 #ifdef __cplusplus
29980 extern "C"
29981 #endif
29982 char pthread_create ();
29983 int
29984 main ()
29985 {
29986 return pthread_create ();
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995   *) ac_try_echo=$ac_try;;
29996 esac
29997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29998   (eval "$ac_link") 2>conftest.er1
29999   ac_status=$?
30000   grep -v '^ *+' conftest.er1 >conftest.err
30001   rm -f conftest.er1
30002   cat conftest.err >&5
30003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004   (exit $ac_status); } && {
30005          test -z "$ac_c_werror_flag" ||
30006          test ! -s conftest.err
30007        } && test -s conftest$ac_exeext &&
30008        $as_test_x conftest$ac_exeext; then
30009   ac_cv_lib_pthread_pthread_create=yes
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014         ac_cv_lib_pthread_pthread_create=no
30015 fi
30016
30017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30018       conftest$ac_exeext conftest.$ac_ext
30019 LIBS=$ac_check_lib_save_LIBS
30020 fi
30021 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
30022 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
30023 if test $ac_cv_lib_pthread_pthread_create = yes; then
30024   PTHREAD_LIB="-lpthread"
30025 else
30026   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
30027 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
30028 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
30029   echo $ECHO_N "(cached) $ECHO_C" >&6
30030 else
30031   ac_check_lib_save_LIBS=$LIBS
30032 LIBS="-lpthreads  $LIBS"
30033 cat >conftest.$ac_ext <<_ACEOF
30034 /* confdefs.h.  */
30035 _ACEOF
30036 cat confdefs.h >>conftest.$ac_ext
30037 cat >>conftest.$ac_ext <<_ACEOF
30038 /* end confdefs.h.  */
30039
30040 /* Override any GCC internal prototype to avoid an error.
30041    Use char because int might match the return type of a GCC
30042    builtin and then its argument prototype would still apply.  */
30043 #ifdef __cplusplus
30044 extern "C"
30045 #endif
30046 char pthread_create ();
30047 int
30048 main ()
30049 {
30050 return pthread_create ();
30051   ;
30052   return 0;
30053 }
30054 _ACEOF
30055 rm -f conftest.$ac_objext conftest$ac_exeext
30056 if { (ac_try="$ac_link"
30057 case "(($ac_try" in
30058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30059   *) ac_try_echo=$ac_try;;
30060 esac
30061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30062   (eval "$ac_link") 2>conftest.er1
30063   ac_status=$?
30064   grep -v '^ *+' conftest.er1 >conftest.err
30065   rm -f conftest.er1
30066   cat conftest.err >&5
30067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30068   (exit $ac_status); } && {
30069          test -z "$ac_c_werror_flag" ||
30070          test ! -s conftest.err
30071        } && test -s conftest$ac_exeext &&
30072        $as_test_x conftest$ac_exeext; then
30073   ac_cv_lib_pthreads_pthread_create=yes
30074 else
30075   echo "$as_me: failed program was:" >&5
30076 sed 's/^/| /' conftest.$ac_ext >&5
30077
30078         ac_cv_lib_pthreads_pthread_create=no
30079 fi
30080
30081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30082       conftest$ac_exeext conftest.$ac_ext
30083 LIBS=$ac_check_lib_save_LIBS
30084 fi
30085 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
30086 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
30087 if test $ac_cv_lib_pthreads_pthread_create = yes; then
30088   PTHREAD_LIB="-lpthreads"
30089 else
30090   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
30091 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
30092 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
30093   echo $ECHO_N "(cached) $ECHO_C" >&6
30094 else
30095   ac_check_lib_save_LIBS=$LIBS
30096 LIBS="-lc_r  $LIBS"
30097 cat >conftest.$ac_ext <<_ACEOF
30098 /* confdefs.h.  */
30099 _ACEOF
30100 cat confdefs.h >>conftest.$ac_ext
30101 cat >>conftest.$ac_ext <<_ACEOF
30102 /* end confdefs.h.  */
30103
30104 /* Override any GCC internal prototype to avoid an error.
30105    Use char because int might match the return type of a GCC
30106    builtin and then its argument prototype would still apply.  */
30107 #ifdef __cplusplus
30108 extern "C"
30109 #endif
30110 char pthread_create ();
30111 int
30112 main ()
30113 {
30114 return pthread_create ();
30115   ;
30116   return 0;
30117 }
30118 _ACEOF
30119 rm -f conftest.$ac_objext conftest$ac_exeext
30120 if { (ac_try="$ac_link"
30121 case "(($ac_try" in
30122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30123   *) ac_try_echo=$ac_try;;
30124 esac
30125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30126   (eval "$ac_link") 2>conftest.er1
30127   ac_status=$?
30128   grep -v '^ *+' conftest.er1 >conftest.err
30129   rm -f conftest.er1
30130   cat conftest.err >&5
30131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132   (exit $ac_status); } && {
30133          test -z "$ac_c_werror_flag" ||
30134          test ! -s conftest.err
30135        } && test -s conftest$ac_exeext &&
30136        $as_test_x conftest$ac_exeext; then
30137   ac_cv_lib_c_r_pthread_create=yes
30138 else
30139   echo "$as_me: failed program was:" >&5
30140 sed 's/^/| /' conftest.$ac_ext >&5
30141
30142         ac_cv_lib_c_r_pthread_create=no
30143 fi
30144
30145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30146       conftest$ac_exeext conftest.$ac_ext
30147 LIBS=$ac_check_lib_save_LIBS
30148 fi
30149 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
30150 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
30151 if test $ac_cv_lib_c_r_pthread_create = yes; then
30152   PTHREAD_LIB="-lc_r"
30153 else
30154   { echo "$as_me:$LINENO: checking for pthread_create" >&5
30155 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
30156 if test "${ac_cv_func_pthread_create+set}" = set; then
30157   echo $ECHO_N "(cached) $ECHO_C" >&6
30158 else
30159   cat >conftest.$ac_ext <<_ACEOF
30160 /* confdefs.h.  */
30161 _ACEOF
30162 cat confdefs.h >>conftest.$ac_ext
30163 cat >>conftest.$ac_ext <<_ACEOF
30164 /* end confdefs.h.  */
30165 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
30166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30167 #define pthread_create innocuous_pthread_create
30168
30169 /* System header to define __stub macros and hopefully few prototypes,
30170     which can conflict with char pthread_create (); below.
30171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30172     <limits.h> exists even on freestanding compilers.  */
30173
30174 #ifdef __STDC__
30175 # include <limits.h>
30176 #else
30177 # include <assert.h>
30178 #endif
30179
30180 #undef pthread_create
30181
30182 /* Override any GCC internal prototype to avoid an error.
30183    Use char because int might match the return type of a GCC
30184    builtin and then its argument prototype would still apply.  */
30185 #ifdef __cplusplus
30186 extern "C"
30187 #endif
30188 char pthread_create ();
30189 /* The GNU C library defines this for functions which it implements
30190     to always fail with ENOSYS.  Some functions are actually named
30191     something starting with __ and the normal name is an alias.  */
30192 #if defined __stub_pthread_create || defined __stub___pthread_create
30193 choke me
30194 #endif
30195
30196 int
30197 main ()
30198 {
30199 return pthread_create ();
30200   ;
30201   return 0;
30202 }
30203 _ACEOF
30204 rm -f conftest.$ac_objext conftest$ac_exeext
30205 if { (ac_try="$ac_link"
30206 case "(($ac_try" in
30207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208   *) ac_try_echo=$ac_try;;
30209 esac
30210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30211   (eval "$ac_link") 2>conftest.er1
30212   ac_status=$?
30213   grep -v '^ *+' conftest.er1 >conftest.err
30214   rm -f conftest.er1
30215   cat conftest.err >&5
30216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217   (exit $ac_status); } && {
30218          test -z "$ac_c_werror_flag" ||
30219          test ! -s conftest.err
30220        } && test -s conftest$ac_exeext &&
30221        $as_test_x conftest$ac_exeext; then
30222   ac_cv_func_pthread_create=yes
30223 else
30224   echo "$as_me: failed program was:" >&5
30225 sed 's/^/| /' conftest.$ac_ext >&5
30226
30227         ac_cv_func_pthread_create=no
30228 fi
30229
30230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30231       conftest$ac_exeext conftest.$ac_ext
30232 fi
30233 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
30234 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
30235
30236
30237 fi
30238
30239
30240 fi
30241
30242
30243 fi
30244
30245
30246
30247 cat >>confdefs.h <<\_ACEOF
30248 #define FDLIBS 1
30249 _ACEOF
30250
30251
30252
30253 CFLAGS=${CFLAGS--O}
30254
30255 if test x$have_gcc = xyes ; then
30256    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30257    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30258 fi
30259 LDFLAGS=${LDFLAGS--O}
30260 DB_LIBS="${SQL_LFLAGS}"
30261 CPPFLAGS="$CPPFLAGS"
30262 CFLAGS="$CFLAGS"
30263
30264
30265
30266
30267
30268
30269
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279 OBJLIST=
30280
30281
30282 lld="lld"
30283 llu="llu"
30284
30285 WCFLAGS=
30286 WLDFLAGS=
30287
30288 #
30289 # Finally we set appropriate distribution specific
30290 #  variables and defaults
30291 #
30292 # PFILES are platform specific files
30293 PFILES="platforms/Makefile"
30294 PSCMD="ps -e"
30295 WIN32=
30296 MACOSX=
30297 hostname=`uname -n | cut -d '.' -f 1`
30298 if test x${hostname} = x ; then
30299   hostname="localhost"
30300 fi
30301 case "$DISTNAME" in
30302 aix)
30303         DISTVER=`uname -r`
30304         PSCMD="ps -e -o pid,comm"
30305         PFILES="${PFILES} \
30306            platforms/aix/Makefile"
30307         TAPEDRIVE="/dev/rmt0.1"
30308   ;;
30309 alpha)
30310         DISTVER=`uname -r`
30311         PTHREAD_LIB="-lpthread -lexc"
30312         if test "${CC}" = "gcc" ; then
30313            lld="lld"
30314            llu="llu"
30315         else
30316            lld="ld"
30317            llu="lu"
30318         fi
30319         TAPEDRIVE="/dev/nrmt0"
30320   ;;
30321 bsdi)
30322         DISTVER=`uname -a |awk '{print $3}'`
30323         TAPEDRIVE="/dev/nrmt0"
30324         PTHREAD_LIB="-pthread"
30325         CFLAGS="${CFLAGS} -pthread"
30326         PSCMD="ps -ax -o pid,command"
30327         lld="qd"
30328         llu="qu"
30329         PFILES="${PFILES} \
30330             platforms/bsdi/Makefile \
30331             platforms/bsdi/bacula-fd \
30332             platforms/bsdi/bacula-sd \
30333             platforms/bsdi/bacula-dir"
30334         largefile_support="yes"
30335   ;;
30336 cygwin)
30337         DISTVER=`uname -a |awk '{print $3}'`
30338         TAPEDRIVE="/dev/nrst0"
30339         WIN32=win32
30340         WCFLAGS="-mwindows"
30341         WLDFLAGS="-mwindows"
30342   ;;
30343 darwin)
30344         DISTVER=`uname -r`
30345         TAPEDRIVE="/dev/nst0"
30346         PSCMD="ps -e -o pid,command"
30347         MACOSX=macosx
30348         PFILES="${PFILES} \
30349            platforms/darwin/Makefile"
30350   ;;
30351 debian)
30352 #       Make sure hostname is resolved
30353         ping -c 1 $hostname 2>&1 1>/dev/null
30354         if test ! $? = 0; then
30355            hostname="localhost"
30356         fi
30357         if `grep -q ubuntu /etc/apt/sources.list`; then
30358            DISTNAME="ubuntu"
30359         fi
30360         DISTVER=`cat /etc/debian_version`
30361         if test -f /etc/lsb-release ; then
30362            . /etc/lsb-release
30363            if test "x$DISTRIB_ID" != "x" ; then
30364               DISTNAME=$DISTRIB_ID
30365            fi
30366            if test "x$DISTRIB_RELEASE" != "x" ; then
30367               DISTVER=$DISTRIB_RELEASE
30368            fi
30369         fi
30370         if test "$DISTNAME" = "Ubuntu" ; then
30371            DISTNAME="ubuntu"
30372         fi
30373         TAPEDRIVE="/dev/nst0"
30374         PSCMD="ps -e -o pid,command"
30375         if test "$DISTNAME" = "ubuntu" ; then
30376            PFILES="${PFILES} \
30377               platforms/ubuntu/Makefile \
30378               platforms/ubuntu/bacula-fd \
30379               platforms/ubuntu/bacula-sd \
30380               platforms/ubuntu/bacula-dir"
30381         else
30382            PFILES="${PFILES} \
30383               platforms/debian/Makefile \
30384               platforms/debian/bacula-fd \
30385               platforms/debian/bacula-sd \
30386               platforms/debian/bacula-dir"
30387         fi
30388   ;;
30389 freebsd)
30390 #       Make sure hostname is resolved
30391         ping -c 1 $hostname 2>&1 1>/dev/null
30392         if test ! $? = 0; then
30393            hostname="localhost"
30394         fi
30395         DISTVER=`uname -a |awk '{print $3}'`
30396         VER=`echo $DISTVER | cut -c 1`
30397         if test x$VER = x4 ; then
30398            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30399            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30400         fi
30401         lld="qd"
30402         llu="qu"
30403         TAPEDRIVE="/dev/nrsa0"
30404         PSCMD="ps -ax -o pid,command"
30405         PFILES="${PFILES} \
30406             platforms/freebsd/Makefile \
30407             platforms/freebsd/bacula-fd \
30408             platforms/freebsd/bacula-sd \
30409             platforms/freebsd/bacula-dir"
30410         largefile_support="yes"
30411   ;;
30412 hpux)
30413         PSCMD="UNIX95=1; ps -e -o pid,comm"
30414         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30415         DISTVER=`uname -r`
30416         TAPEDRIVE="/dev/rmt/0hnb"
30417         PTHREAD_LIB="-lpthread"
30418         cat >>confdefs.h <<\_ACEOF
30419 #define _INCLUDE_LONGLONG 1
30420 _ACEOF
30421
30422   ;;
30423 irix)
30424         DISTVER=`uname -r`
30425         TAPEDRIVE="/dev/rmt/0cbn"
30426         PSCMD="ps -e -o pid,comm"
30427         PFILES="${PFILES} \
30428             platforms/irix/Makefile \
30429             platforms/irix/bacula-fd \
30430             platforms/irix/bacula-sd \
30431             platforms/irix/bacula-dir"
30432   ;;
30433 netbsd)
30434         DISTVER=`uname -a |awk '{print $3}'`
30435         lld="qd"
30436         llu="qu"
30437         TAPEDRIVE="/dev/nrst0"
30438         PSCMD="ps -ax -o pid,command"
30439         PTHREAD_LIB="-pthread"
30440         CFLAGS="${CFLAGS} -pthread"
30441   ;;
30442 openbsd)
30443         DISTVER=`uname -a |awk '{print $3}'`
30444         lld="qd"
30445         llu="qu"
30446         TAPEDRIVE="/dev/nrst0"
30447         PSCMD="ps -ax -o pid,command"
30448         PTHREAD_LIB="-pthread"
30449         CFLAGS="${CFLAGS} -pthread"
30450         PFILES="${PFILES} \
30451             platforms/openbsd/Makefile \
30452             platforms/openbsd/bacula-fd \
30453             platforms/openbsd/bacula-sd \
30454             platforms/openbsd/bacula-dir"
30455   ;;
30456 redhat)
30457 #       Make sure hostname is resolved
30458         ping -c 1 $hostname 2>&1 1>/dev/null
30459         if test ! $? = 0; then
30460            hostname="localhost"
30461         fi
30462         if test -f /etc/whitebox-release ; then
30463            f=/etc/whitebox-release
30464         else
30465            f=/etc/redhat-release
30466         fi
30467         if test `cat $f | grep release |\
30468                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30469            DISTVER="Enterprise "`cat $f | grep release |\
30470                     cut -f 6 -d ' '`
30471         else
30472             DISTVER=`cat /etc/redhat-release | grep release |\
30473                      cut -f 5 -d ' '`
30474         fi
30475         TAPEDRIVE="/dev/nst0"
30476         PSCMD="ps -e -o pid,command"
30477         PFILES="${PFILES} \
30478             platforms/redhat/Makefile \
30479             platforms/redhat/bacula-fd \
30480             platforms/redhat/bacula-sd \
30481             platforms/redhat/bacula-dir \
30482             platforms/redhat/bacula.spec \
30483             "
30484   ;;
30485 mandrake)
30486 #       Make sure hostname is resolved
30487         ping -c 1 $hostname 2>&1 1>/dev/null
30488         if test ! $? = 0; then
30489            hostname="localhost"
30490         fi
30491         DISTVER=`cat /etc/mandrake-release | grep release |\
30492            cut -f 5 -d ' '`
30493         TAPEDRIVE="/dev/nst0"
30494         PSCMD="ps -e -o pid,command"
30495         PFILES="${PFILES} \
30496             platforms/mandrake/Makefile \
30497             platforms/mandrake/bacula-fd \
30498             platforms/mandrake/bacula-sd \
30499             platforms/mandrake/bacula-dir \
30500             platforms/mandrake/bacula.spec \
30501             "
30502   ;;
30503 gentoo)
30504 #       Make sure hostname is resolved
30505         ping -c 1 $hostname 2>&1 1>/dev/null
30506         if test ! $? = 0; then
30507            hostname="localhost"
30508         fi
30509         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30510         TAPEDRIVE="/dev/nst0"
30511         PSCMD="ps -e -o pid,command"
30512         PFILES="${PFILES} \
30513             platforms/gentoo/Makefile \
30514          platforms/gentoo/bacula-init \
30515             platforms/gentoo/bacula-fd \
30516             platforms/gentoo/bacula-sd \
30517             platforms/gentoo/bacula-dir"
30518   ;;
30519 slackware)
30520 #       Make sure hostname is resolved
30521         ping -c 1 $hostname 2>&1 1>/dev/null
30522         if test ! $? = 0; then
30523            hostname="localhost"
30524         fi
30525         DISTVER=`cat /etc/slackware-version`
30526         TAPEDRIVE="/dev/nst0"
30527         PSCMD="ps -e -o pid,command"
30528         PFILES="${PFILES} \
30529             platforms/slackware/Makefile \
30530             platforms/slackware/rc.bacula-fd \
30531             platforms/slackware/rc.bacula-sd \
30532             platforms/slackware/rc.bacula-dir\
30533             platforms/slackware/functions.bacula"
30534   ;;
30535 solaris)
30536         DISTVER=`uname -r`
30537         TAPEDRIVE="/dev/rmt/0cbn"
30538         PSCMD="ps -e -o pid,comm"
30539         PFILES="${PFILES} \
30540             platforms/solaris/Makefile \
30541             platforms/solaris/bacula-fd \
30542             platforms/solaris/bacula-sd \
30543             platforms/solaris/bacula-dir"
30544         if test x$DISTVER = x5.6 ; then
30545             cat >>confdefs.h <<\_ACEOF
30546 #define HAVE_OLD_SOCKOPT 1
30547 _ACEOF
30548
30549         fi
30550         LIBS="$LIBS -lresolv"
30551   ;;
30552 suse)
30553 #       Make sure hostname is resolved
30554         ping -c 1 $hostname 2>&1 1>/dev/null
30555         if test ! $? = 0; then
30556            hostname="localhost"
30557         fi
30558         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30559             cut -f 3 -d ' '`
30560         TAPEDRIVE="/dev/nst0"
30561         PSCMD="ps -e -o pid,command"
30562         PFILES="${PFILES} \
30563             platforms/suse/Makefile \
30564             platforms/suse/bacula-fd \
30565             platforms/suse/bacula-sd \
30566             platforms/suse/bacula-dir \
30567             platforms/suse/bacula \
30568             platforms/suse/bacula.spec"
30569   ;;
30570 suse5)
30571 #       Make sure hostname is resolved
30572         ping -c 1 $hostname 2>&1 1>/dev/null
30573         if test ! $? = 0; then
30574            hostname="localhost"
30575         fi
30576         DISTNAME=suse
30577         DISTVER=5.x
30578         TAPEDRIVE="/dev/nst0"
30579         PSCMD="ps -e -o pid,command"
30580         PFILES="${PFILES} \
30581             platforms/suse/Makefile \
30582             platforms/suse/bacula-fd \
30583             platforms/suse/bacula-sd \
30584             platforms/suse/bacula-dir"
30585   ;;
30586 unknown)
30587         DISTVER=unknown
30588         TAPEDRIVE="/dev/nst0"
30589   ;;
30590 *)
30591   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30592   ;;
30593 esac
30594
30595
30596
30597 LIBS="$PTHREAD_LIB $LIBS"
30598
30599 cat >>confdefs.h <<_ACEOF
30600 #define lld "$lld"
30601 _ACEOF
30602
30603 cat >>confdefs.h <<_ACEOF
30604 #define llu "$llu"
30605 _ACEOF
30606
30607
30608
30609
30610
30611
30612
30613
30614 MCOMMON=./autoconf/Make.common
30615
30616
30617 if test "x${subsysdir}" = "x${sbindir}" ; then
30618    echo " "
30619    echo " "
30620    echo "You have set both --sbindir and --with-subsys-dir"
30621    echo "  equal to: ${subsysdir} "
30622    echo "This is not permitted. Please reconfigure."
30623    echo " "
30624    echo "Aborting configuration ..."
30625    echo " "
30626    echo " "
30627    exit 1
30628 fi
30629
30630 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"
30631
30632 ac_config_commands="$ac_config_commands default"
30633
30634 cat >confcache <<\_ACEOF
30635 # This file is a shell script that caches the results of configure
30636 # tests run on this system so they can be shared between configure
30637 # scripts and configure runs, see configure's option --config-cache.
30638 # It is not useful on other systems.  If it contains results you don't
30639 # want to keep, you may remove or edit it.
30640 #
30641 # config.status only pays attention to the cache file if you give it
30642 # the --recheck option to rerun configure.
30643 #
30644 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30645 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30646 # following values.
30647
30648 _ACEOF
30649
30650 # The following way of writing the cache mishandles newlines in values,
30651 # but we know of no workaround that is simple, portable, and efficient.
30652 # So, we kill variables containing newlines.
30653 # Ultrix sh set writes to stderr and can't be redirected directly,
30654 # and sets the high bit in the cache file unless we assign to the vars.
30655 (
30656   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30657     eval ac_val=\$$ac_var
30658     case $ac_val in #(
30659     *${as_nl}*)
30660       case $ac_var in #(
30661       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30662 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30663       esac
30664       case $ac_var in #(
30665       _ | IFS | as_nl) ;; #(
30666       *) $as_unset $ac_var ;;
30667       esac ;;
30668     esac
30669   done
30670
30671   (set) 2>&1 |
30672     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30673     *${as_nl}ac_space=\ *)
30674       # `set' does not quote correctly, so add quotes (double-quote
30675       # substitution turns \\\\ into \\, and sed turns \\ into \).
30676       sed -n \
30677         "s/'/'\\\\''/g;
30678           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30679       ;; #(
30680     *)
30681       # `set' quotes correctly as required by POSIX, so do not add quotes.
30682       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30683       ;;
30684     esac |
30685     sort
30686 ) |
30687   sed '
30688      /^ac_cv_env_/b end
30689      t clear
30690      :clear
30691      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30692      t end
30693      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30694      :end' >>confcache
30695 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30696   if test -w "$cache_file"; then
30697     test "x$cache_file" != "x/dev/null" &&
30698       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30699 echo "$as_me: updating cache $cache_file" >&6;}
30700     cat confcache >$cache_file
30701   else
30702     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30703 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30704   fi
30705 fi
30706 rm -f confcache
30707
30708 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30709 # Let make expand exec_prefix.
30710 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30711
30712 DEFS=-DHAVE_CONFIG_H
30713
30714 ac_libobjs=
30715 ac_ltlibobjs=
30716 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30717   # 1. Remove the extension, and $U if already installed.
30718   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30719   ac_i=`echo "$ac_i" | sed "$ac_script"`
30720   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30721   #    will be set to the directory where LIBOBJS objects are built.
30722   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30723   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30724 done
30725 LIBOBJS=$ac_libobjs
30726
30727 LTLIBOBJS=$ac_ltlibobjs
30728
30729
30730
30731 : ${CONFIG_STATUS=./config.status}
30732 ac_clean_files_save=$ac_clean_files
30733 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30734 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30735 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30736 cat >$CONFIG_STATUS <<_ACEOF
30737 #! $SHELL
30738 # Generated by $as_me.
30739 # Run this file to recreate the current configuration.
30740 # Compiler output produced by configure, useful for debugging
30741 # configure, is in config.log if it exists.
30742
30743 debug=false
30744 ac_cs_recheck=false
30745 ac_cs_silent=false
30746 SHELL=\${CONFIG_SHELL-$SHELL}
30747 _ACEOF
30748
30749 cat >>$CONFIG_STATUS <<\_ACEOF
30750 ## --------------------- ##
30751 ## M4sh Initialization.  ##
30752 ## --------------------- ##
30753
30754 # Be more Bourne compatible
30755 DUALCASE=1; export DUALCASE # for MKS sh
30756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30757   emulate sh
30758   NULLCMD=:
30759   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30760   # is contrary to our usage.  Disable this feature.
30761   alias -g '${1+"$@"}'='"$@"'
30762   setopt NO_GLOB_SUBST
30763 else
30764   case `(set -o) 2>/dev/null` in
30765   *posix*) set -o posix ;;
30766 esac
30767
30768 fi
30769
30770
30771
30772
30773 # PATH needs CR
30774 # Avoid depending upon Character Ranges.
30775 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30776 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30777 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30778 as_cr_digits='0123456789'
30779 as_cr_alnum=$as_cr_Letters$as_cr_digits
30780
30781 # The user is always right.
30782 if test "${PATH_SEPARATOR+set}" != set; then
30783   echo "#! /bin/sh" >conf$$.sh
30784   echo  "exit 0"   >>conf$$.sh
30785   chmod +x conf$$.sh
30786   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30787     PATH_SEPARATOR=';'
30788   else
30789     PATH_SEPARATOR=:
30790   fi
30791   rm -f conf$$.sh
30792 fi
30793
30794 # Support unset when possible.
30795 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30796   as_unset=unset
30797 else
30798   as_unset=false
30799 fi
30800
30801
30802 # IFS
30803 # We need space, tab and new line, in precisely that order.  Quoting is
30804 # there to prevent editors from complaining about space-tab.
30805 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30806 # splitting by setting IFS to empty value.)
30807 as_nl='
30808 '
30809 IFS=" ""        $as_nl"
30810
30811 # Find who we are.  Look in the path if we contain no directory separator.
30812 case $0 in
30813   *[\\/]* ) as_myself=$0 ;;
30814   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30815 for as_dir in $PATH
30816 do
30817   IFS=$as_save_IFS
30818   test -z "$as_dir" && as_dir=.
30819   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30820 done
30821 IFS=$as_save_IFS
30822
30823      ;;
30824 esac
30825 # We did not find ourselves, most probably we were run as `sh COMMAND'
30826 # in which case we are not to be found in the path.
30827 if test "x$as_myself" = x; then
30828   as_myself=$0
30829 fi
30830 if test ! -f "$as_myself"; then
30831   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30832   { (exit 1); exit 1; }
30833 fi
30834
30835 # Work around bugs in pre-3.0 UWIN ksh.
30836 for as_var in ENV MAIL MAILPATH
30837 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30838 done
30839 PS1='$ '
30840 PS2='> '
30841 PS4='+ '
30842
30843 # NLS nuisances.
30844 for as_var in \
30845   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30846   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30847   LC_TELEPHONE LC_TIME
30848 do
30849   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30850     eval $as_var=C; export $as_var
30851   else
30852     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30853   fi
30854 done
30855
30856 # Required to use basename.
30857 if expr a : '\(a\)' >/dev/null 2>&1 &&
30858    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30859   as_expr=expr
30860 else
30861   as_expr=false
30862 fi
30863
30864 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30865   as_basename=basename
30866 else
30867   as_basename=false
30868 fi
30869
30870
30871 # Name of the executable.
30872 as_me=`$as_basename -- "$0" ||
30873 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30874          X"$0" : 'X\(//\)$' \| \
30875          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30876 echo X/"$0" |
30877     sed '/^.*\/\([^/][^/]*\)\/*$/{
30878             s//\1/
30879             q
30880           }
30881           /^X\/\(\/\/\)$/{
30882             s//\1/
30883             q
30884           }
30885           /^X\/\(\/\).*/{
30886             s//\1/
30887             q
30888           }
30889           s/.*/./; q'`
30890
30891 # CDPATH.
30892 $as_unset CDPATH
30893
30894
30895
30896   as_lineno_1=$LINENO
30897   as_lineno_2=$LINENO
30898   test "x$as_lineno_1" != "x$as_lineno_2" &&
30899   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30900
30901   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30902   # uniformly replaced by the line number.  The first 'sed' inserts a
30903   # line-number line after each line using $LINENO; the second 'sed'
30904   # does the real work.  The second script uses 'N' to pair each
30905   # line-number line with the line containing $LINENO, and appends
30906   # trailing '-' during substitution so that $LINENO is not a special
30907   # case at line end.
30908   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30909   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30910   # E. McMahon (1931-1989) for sed's syntax.  :-)
30911   sed -n '
30912     p
30913     /[$]LINENO/=
30914   ' <$as_myself |
30915     sed '
30916       s/[$]LINENO.*/&-/
30917       t lineno
30918       b
30919       :lineno
30920       N
30921       :loop
30922       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30923       t loop
30924       s/-\n.*//
30925     ' >$as_me.lineno &&
30926   chmod +x "$as_me.lineno" ||
30927     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30928    { (exit 1); exit 1; }; }
30929
30930   # Don't try to exec as it changes $[0], causing all sort of problems
30931   # (the dirname of $[0] is not the place where we might find the
30932   # original and so on.  Autoconf is especially sensitive to this).
30933   . "./$as_me.lineno"
30934   # Exit status is that of the last command.
30935   exit
30936 }
30937
30938
30939 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30940   as_dirname=dirname
30941 else
30942   as_dirname=false
30943 fi
30944
30945 ECHO_C= ECHO_N= ECHO_T=
30946 case `echo -n x` in
30947 -n*)
30948   case `echo 'x\c'` in
30949   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30950   *)   ECHO_C='\c';;
30951   esac;;
30952 *)
30953   ECHO_N='-n';;
30954 esac
30955
30956 if expr a : '\(a\)' >/dev/null 2>&1 &&
30957    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30958   as_expr=expr
30959 else
30960   as_expr=false
30961 fi
30962
30963 rm -f conf$$ conf$$.exe conf$$.file
30964 if test -d conf$$.dir; then
30965   rm -f conf$$.dir/conf$$.file
30966 else
30967   rm -f conf$$.dir
30968   mkdir conf$$.dir
30969 fi
30970 echo >conf$$.file
30971 if ln -s conf$$.file conf$$ 2>/dev/null; then
30972   as_ln_s='ln -s'
30973   # ... but there are two gotchas:
30974   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30975   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30976   # In both cases, we have to default to `cp -p'.
30977   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30978     as_ln_s='cp -p'
30979 elif ln conf$$.file conf$$ 2>/dev/null; then
30980   as_ln_s=ln
30981 else
30982   as_ln_s='cp -p'
30983 fi
30984 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30985 rmdir conf$$.dir 2>/dev/null
30986
30987 if mkdir -p . 2>/dev/null; then
30988   as_mkdir_p=:
30989 else
30990   test -d ./-p && rmdir ./-p
30991   as_mkdir_p=false
30992 fi
30993
30994 if test -x / >/dev/null 2>&1; then
30995   as_test_x='test -x'
30996 else
30997   if ls -dL / >/dev/null 2>&1; then
30998     as_ls_L_option=L
30999   else
31000     as_ls_L_option=
31001   fi
31002   as_test_x='
31003     eval sh -c '\''
31004       if test -d "$1"; then
31005         test -d "$1/.";
31006       else
31007         case $1 in
31008         -*)set "./$1";;
31009         esac;
31010         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
31011         ???[sx]*):;;*)false;;esac;fi
31012     '\'' sh
31013   '
31014 fi
31015 as_executable_p=$as_test_x
31016
31017 # Sed expression to map a string onto a valid CPP name.
31018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31019
31020 # Sed expression to map a string onto a valid variable name.
31021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31022
31023
31024 exec 6>&1
31025
31026 # Save the log message, to keep $[0] and so on meaningful, and to
31027 # report actual input values of CONFIG_FILES etc. instead of their
31028 # values after options handling.
31029 ac_log="
31030 This file was extended by $as_me, which was
31031 generated by GNU Autoconf 2.61.  Invocation command line was
31032
31033   CONFIG_FILES    = $CONFIG_FILES
31034   CONFIG_HEADERS  = $CONFIG_HEADERS
31035   CONFIG_LINKS    = $CONFIG_LINKS
31036   CONFIG_COMMANDS = $CONFIG_COMMANDS
31037   $ $0 $@
31038
31039 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31040 "
31041
31042 _ACEOF
31043
31044 cat >>$CONFIG_STATUS <<_ACEOF
31045 # Files that config.status was made for.
31046 config_files="$ac_config_files"
31047 config_headers="$ac_config_headers"
31048 config_commands="$ac_config_commands"
31049
31050 _ACEOF
31051
31052 cat >>$CONFIG_STATUS <<\_ACEOF
31053 ac_cs_usage="\
31054 \`$as_me' instantiates files from templates according to the
31055 current configuration.
31056
31057 Usage: $0 [OPTIONS] [FILE]...
31058
31059   -h, --help       print this help, then exit
31060   -V, --version    print version number and configuration settings, then exit
31061   -q, --quiet      do not print progress messages
31062   -d, --debug      don't remove temporary files
31063       --recheck    update $as_me by reconfiguring in the same conditions
31064   --file=FILE[:TEMPLATE]
31065                    instantiate the configuration file FILE
31066   --header=FILE[:TEMPLATE]
31067                    instantiate the configuration header FILE
31068
31069 Configuration files:
31070 $config_files
31071
31072 Configuration headers:
31073 $config_headers
31074
31075 Configuration commands:
31076 $config_commands
31077
31078 Report bugs to <bug-autoconf@gnu.org>."
31079
31080 _ACEOF
31081 cat >>$CONFIG_STATUS <<_ACEOF
31082 ac_cs_version="\\
31083 config.status
31084 configured by $0, generated by GNU Autoconf 2.61,
31085   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
31086
31087 Copyright (C) 2006 Free Software Foundation, Inc.
31088 This config.status script is free software; the Free Software Foundation
31089 gives unlimited permission to copy, distribute and modify it."
31090
31091 ac_pwd='$ac_pwd'
31092 srcdir='$srcdir'
31093 INSTALL='$INSTALL'
31094 _ACEOF
31095
31096 cat >>$CONFIG_STATUS <<\_ACEOF
31097 # If no file are specified by the user, then we need to provide default
31098 # value.  By we need to know if files were specified by the user.
31099 ac_need_defaults=:
31100 while test $# != 0
31101 do
31102   case $1 in
31103   --*=*)
31104     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31105     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31106     ac_shift=:
31107     ;;
31108   *)
31109     ac_option=$1
31110     ac_optarg=$2
31111     ac_shift=shift
31112     ;;
31113   esac
31114
31115   case $ac_option in
31116   # Handling of the options.
31117   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31118     ac_cs_recheck=: ;;
31119   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31120     echo "$ac_cs_version"; exit ;;
31121   --debug | --debu | --deb | --de | --d | -d )
31122     debug=: ;;
31123   --file | --fil | --fi | --f )
31124     $ac_shift
31125     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31126     ac_need_defaults=false;;
31127   --header | --heade | --head | --hea )
31128     $ac_shift
31129     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31130     ac_need_defaults=false;;
31131   --he | --h)
31132     # Conflict between --help and --header
31133     { echo "$as_me: error: ambiguous option: $1
31134 Try \`$0 --help' for more information." >&2
31135    { (exit 1); exit 1; }; };;
31136   --help | --hel | -h )
31137     echo "$ac_cs_usage"; exit ;;
31138   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31139   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31140     ac_cs_silent=: ;;
31141
31142   # This is an error.
31143   -*) { echo "$as_me: error: unrecognized option: $1
31144 Try \`$0 --help' for more information." >&2
31145    { (exit 1); exit 1; }; } ;;
31146
31147   *) ac_config_targets="$ac_config_targets $1"
31148      ac_need_defaults=false ;;
31149
31150   esac
31151   shift
31152 done
31153
31154 ac_configure_extra_args=
31155
31156 if $ac_cs_silent; then
31157   exec 6>/dev/null
31158   ac_configure_extra_args="$ac_configure_extra_args --silent"
31159 fi
31160
31161 _ACEOF
31162 cat >>$CONFIG_STATUS <<_ACEOF
31163 if \$ac_cs_recheck; then
31164   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31165   CONFIG_SHELL=$SHELL
31166   export CONFIG_SHELL
31167   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31168 fi
31169
31170 _ACEOF
31171 cat >>$CONFIG_STATUS <<\_ACEOF
31172 exec 5>>config.log
31173 {
31174   echo
31175   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31176 ## Running $as_me. ##
31177 _ASBOX
31178   echo "$ac_log"
31179 } >&5
31180
31181 _ACEOF
31182 cat >>$CONFIG_STATUS <<_ACEOF
31183 #
31184 # INIT-COMMANDS
31185 #
31186 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31187     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31188     # from automake.
31189     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31190     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31191     LINGUAS="${LINGUAS-%UNSET%}"
31192
31193
31194 _ACEOF
31195
31196 cat >>$CONFIG_STATUS <<\_ACEOF
31197
31198 # Handling of arguments.
31199 for ac_config_target in $ac_config_targets
31200 do
31201   case $ac_config_target in
31202     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31203     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31204     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31205     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31206     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31207     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
31208     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
31209     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31210     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
31211     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
31212     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31213     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
31214     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31215     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31216     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31217     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31218     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31219     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31220     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31221     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31222     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31223     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31224     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31225     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31226     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31227     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31228     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31229     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31230     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31231     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31232     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31233     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31234     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31235     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31236     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31237     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31238     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31239     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31240     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31241     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31242     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31243     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31244     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31245     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31246     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
31247     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
31248     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31249     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31250     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31251     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31252     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31253     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31254     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31255     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31256     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31257     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31258     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31259     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31260     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31261     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31262     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31263     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31264     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31265     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31266     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31267     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31268     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31269     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31270     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31271     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31272     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31273     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31274     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31275     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31276     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31277     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31278     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
31279     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31280     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31281     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31282     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31283     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31284     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31285     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31286     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31287     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31288     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31289     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31290     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31291     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31292     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31293     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31294     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31295     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31296     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31297     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31298     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31299     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31300     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31301     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31302     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31303     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31304     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31305     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31306     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31307     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31308     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31309     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31310     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31311     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31312     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31313     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31314
31315   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31316 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31317    { (exit 1); exit 1; }; };;
31318   esac
31319 done
31320
31321
31322 # If the user did not use the arguments to specify the items to instantiate,
31323 # then the envvar interface is used.  Set only those that are not.
31324 # We use the long form for the default assignment because of an extremely
31325 # bizarre bug on SunOS 4.1.3.
31326 if $ac_need_defaults; then
31327   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31328   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31329   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31330 fi
31331
31332 # Have a temporary directory for convenience.  Make it in the build tree
31333 # simply because there is no reason against having it here, and in addition,
31334 # creating and moving files from /tmp can sometimes cause problems.
31335 # Hook for its removal unless debugging.
31336 # Note that there is a small window in which the directory will not be cleaned:
31337 # after its creation but before its name has been assigned to `$tmp'.
31338 $debug ||
31339 {
31340   tmp=
31341   trap 'exit_status=$?
31342   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31343 ' 0
31344   trap '{ (exit 1); exit 1; }' 1 2 13 15
31345 }
31346 # Create a (secure) tmp directory for tmp files.
31347
31348 {
31349   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31350   test -n "$tmp" && test -d "$tmp"
31351 }  ||
31352 {
31353   tmp=./conf$$-$RANDOM
31354   (umask 077 && mkdir "$tmp")
31355 } ||
31356 {
31357    echo "$me: cannot create a temporary directory in ." >&2
31358    { (exit 1); exit 1; }
31359 }
31360
31361 #
31362 # Set up the sed scripts for CONFIG_FILES section.
31363 #
31364
31365 # No need to generate the scripts if there are no CONFIG_FILES.
31366 # This happens for instance when ./config.status config.h
31367 if test -n "$CONFIG_FILES"; then
31368
31369 _ACEOF
31370
31371 # Create sed commands to just substitute file output variables.
31372
31373 # Remaining file output variables are in a fragment that also has non-file
31374 # output varibles.
31375
31376
31377
31378 ac_delim='%!_!# '
31379 for ac_last_try in false false false false false :; do
31380   cat >conf$$subs.sed <<_ACEOF
31381 SHELL!$SHELL$ac_delim
31382 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31383 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31384 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31385 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31386 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31387 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31388 exec_prefix!$exec_prefix$ac_delim
31389 prefix!$prefix$ac_delim
31390 program_transform_name!$program_transform_name$ac_delim
31391 bindir!$bindir$ac_delim
31392 sbindir!$sbindir$ac_delim
31393 libexecdir!$libexecdir$ac_delim
31394 datarootdir!$datarootdir$ac_delim
31395 datadir!$datadir$ac_delim
31396 sysconfdir!$sysconfdir$ac_delim
31397 sharedstatedir!$sharedstatedir$ac_delim
31398 localstatedir!$localstatedir$ac_delim
31399 includedir!$includedir$ac_delim
31400 oldincludedir!$oldincludedir$ac_delim
31401 docdir!$docdir$ac_delim
31402 infodir!$infodir$ac_delim
31403 htmldir!$htmldir$ac_delim
31404 dvidir!$dvidir$ac_delim
31405 pdfdir!$pdfdir$ac_delim
31406 psdir!$psdir$ac_delim
31407 libdir!$libdir$ac_delim
31408 localedir!$localedir$ac_delim
31409 mandir!$mandir$ac_delim
31410 DEFS!$DEFS$ac_delim
31411 ECHO_C!$ECHO_C$ac_delim
31412 ECHO_N!$ECHO_N$ac_delim
31413 ECHO_T!$ECHO_T$ac_delim
31414 LIBS!$LIBS$ac_delim
31415 build_alias!$build_alias$ac_delim
31416 host_alias!$host_alias$ac_delim
31417 target_alias!$target_alias$ac_delim
31418 BUILD_DIR!$BUILD_DIR$ac_delim
31419 TOP_DIR!$TOP_DIR$ac_delim
31420 TRUEPRG!$TRUEPRG$ac_delim
31421 FALSEPRG!$FALSEPRG$ac_delim
31422 VERSION!$VERSION$ac_delim
31423 DATE!$DATE$ac_delim
31424 LSMDATE!$LSMDATE$ac_delim
31425 BACULA!$BACULA$ac_delim
31426 post_host!$post_host$ac_delim
31427 CC!$CC$ac_delim
31428 CFLAGS!$CFLAGS$ac_delim
31429 LDFLAGS!$LDFLAGS$ac_delim
31430 CPPFLAGS!$CPPFLAGS$ac_delim
31431 ac_ct_CC!$ac_ct_CC$ac_delim
31432 EXEEXT!$EXEEXT$ac_delim
31433 OBJEXT!$OBJEXT$ac_delim
31434 CXX!$CXX$ac_delim
31435 CXXFLAGS!$CXXFLAGS$ac_delim
31436 ac_ct_CXX!$ac_ct_CXX$ac_delim
31437 CPP!$CPP$ac_delim
31438 GREP!$GREP$ac_delim
31439 EGREP!$EGREP$ac_delim
31440 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31441 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31442 INSTALL_DATA!$INSTALL_DATA$ac_delim
31443 RANLIB!$RANLIB$ac_delim
31444 MV!$MV$ac_delim
31445 RM!$RM$ac_delim
31446 CP!$CP$ac_delim
31447 SED!$SED$ac_delim
31448 ECHO!$ECHO$ac_delim
31449 CMP!$CMP$ac_delim
31450 TBL!$TBL$ac_delim
31451 AR!$AR$ac_delim
31452 OPENSSL!$OPENSSL$ac_delim
31453 MTX!$MTX$ac_delim
31454 DD!$DD$ac_delim
31455 MKISOFS!$MKISOFS$ac_delim
31456 PYTHON!$PYTHON$ac_delim
31457 GROWISOFS!$GROWISOFS$ac_delim
31458 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31459 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31460 PKGCONFIG!$PKGCONFIG$ac_delim
31461 QMAKE!$QMAKE$ac_delim
31462 QMAKEQT4!$QMAKEQT4$ac_delim
31463 WXCONFIG!$WXCONFIG$ac_delim
31464 WXFLAGS!$WXFLAGS$ac_delim
31465 CDRECORD!$CDRECORD$ac_delim
31466 PIDOF!$PIDOF$ac_delim
31467 AWK!$AWK$ac_delim
31468 ARFLAGS!$ARFLAGS$ac_delim
31469 MAKE_SHELL!$MAKE_SHELL$ac_delim
31470 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31471 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31472 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31473 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31474 build!$build$ac_delim
31475 _ACEOF
31476
31477   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31478     break
31479   elif $ac_last_try; then
31480     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31481 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31482    { (exit 1); exit 1; }; }
31483   else
31484     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31485   fi
31486 done
31487
31488 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31489 if test -n "$ac_eof"; then
31490   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31491   ac_eof=`expr $ac_eof + 1`
31492 fi
31493
31494 cat >>$CONFIG_STATUS <<_ACEOF
31495 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31497 /^[      ]*@MCOMMON@[    ]*$/{
31498 r $MCOMMON
31499 d
31500 }
31501 _ACEOF
31502 sed '
31503 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31504 s/^/s,@/; s/!/@,|#_!!_#|/
31505 :n
31506 t n
31507 s/'"$ac_delim"'$/,g/; t
31508 s/$/\\/; p
31509 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31510 ' >>$CONFIG_STATUS <conf$$subs.sed
31511 rm -f conf$$subs.sed
31512 cat >>$CONFIG_STATUS <<_ACEOF
31513 CEOF$ac_eof
31514 _ACEOF
31515
31516
31517 ac_delim='%!_!# '
31518 for ac_last_try in false false false false false :; do
31519   cat >conf$$subs.sed <<_ACEOF
31520 build_cpu!$build_cpu$ac_delim
31521 build_vendor!$build_vendor$ac_delim
31522 build_os!$build_os$ac_delim
31523 host!$host$ac_delim
31524 host_cpu!$host_cpu$ac_delim
31525 host_vendor!$host_vendor$ac_delim
31526 host_os!$host_os$ac_delim
31527 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31528 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31529 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31530 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31531 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31532 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31533 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31534 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31535 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31536 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31537 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31538 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31539 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31540 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31541 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31542 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31543 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31544 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31545 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31546 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31547 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31548 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31549 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31550 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31551 SET_MAKE!$SET_MAKE$ac_delim
31552 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31553 USE_NLS!$USE_NLS$ac_delim
31554 MSGFMT!$MSGFMT$ac_delim
31555 GMSGFMT!$GMSGFMT$ac_delim
31556 XGETTEXT!$XGETTEXT$ac_delim
31557 MSGMERGE!$MSGMERGE$ac_delim
31558 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31559 LIBICONV!$LIBICONV$ac_delim
31560 LTLIBICONV!$LTLIBICONV$ac_delim
31561 INTLLIBS!$INTLLIBS$ac_delim
31562 LIBINTL!$LIBINTL$ac_delim
31563 LTLIBINTL!$LTLIBINTL$ac_delim
31564 POSUB!$POSUB$ac_delim
31565 GLIBC2!$GLIBC2$ac_delim
31566 ALLOCA!$ALLOCA$ac_delim
31567 GLIBC21!$GLIBC21$ac_delim
31568 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31569 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31570 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31571 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31572 INTLBISON!$INTLBISON$ac_delim
31573 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31574 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31575 CATOBJEXT!$CATOBJEXT$ac_delim
31576 DATADIRNAME!$DATADIRNAME$ac_delim
31577 INSTOBJEXT!$INSTOBJEXT$ac_delim
31578 GENCAT!$GENCAT$ac_delim
31579 INTLOBJS!$INTLOBJS$ac_delim
31580 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31581 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31582 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31583 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31584 GNOME_LIBS!$GNOME_LIBS$ac_delim
31585 GNOME_DIR!$GNOME_DIR$ac_delim
31586 BAT_DIR!$BAT_DIR$ac_delim
31587 QWT_INC!$QWT_INC$ac_delim
31588 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31589 QWT_LIB!$QWT_LIB$ac_delim
31590 QWT!$QWT$ac_delim
31591 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31592 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31593 WX_DIR!$WX_DIR$ac_delim
31594 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31595 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31596 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31597 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31598 STATIC_FD!$STATIC_FD$ac_delim
31599 STATIC_SD!$STATIC_SD$ac_delim
31600 STATIC_DIR!$STATIC_DIR$ac_delim
31601 STATIC_CONS!$STATIC_CONS$ac_delim
31602 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31603 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31604 ALL_DIRS!$ALL_DIRS$ac_delim
31605 DIRD_DIR!$DIRD_DIR$ac_delim
31606 DIR_TOOLS!$DIR_TOOLS$ac_delim
31607 STORED_DIR!$STORED_DIR$ac_delim
31608 CONS_INC!$CONS_INC$ac_delim
31609 CONS_OBJ!$CONS_OBJ$ac_delim
31610 CONS_SRC!$CONS_SRC$ac_delim
31611 CONS_LIBS!$CONS_LIBS$ac_delim
31612 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31613 READLINE_SRC!$READLINE_SRC$ac_delim
31614 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31615 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31616 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31617 _ACEOF
31618
31619   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31620     break
31621   elif $ac_last_try; then
31622     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31623 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31624    { (exit 1); exit 1; }; }
31625   else
31626     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31627   fi
31628 done
31629
31630 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31631 if test -n "$ac_eof"; then
31632   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31633   ac_eof=`expr $ac_eof + 1`
31634 fi
31635
31636 cat >>$CONFIG_STATUS <<_ACEOF
31637 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31639 _ACEOF
31640 sed '
31641 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31642 s/^/s,@/; s/!/@,|#_!!_#|/
31643 :n
31644 t n
31645 s/'"$ac_delim"'$/,g/; t
31646 s/$/\\/; p
31647 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31648 ' >>$CONFIG_STATUS <conf$$subs.sed
31649 rm -f conf$$subs.sed
31650 cat >>$CONFIG_STATUS <<_ACEOF
31651 CEOF$ac_eof
31652 _ACEOF
31653
31654
31655 ac_delim='%!_!# '
31656 for ac_last_try in false false false false false :; do
31657   cat >conf$$subs.sed <<_ACEOF
31658 OPENSSL_INC!$OPENSSL_INC$ac_delim
31659 working_dir!$working_dir$ac_delim
31660 archivedir!$archivedir$ac_delim
31661 scriptdir!$scriptdir$ac_delim
31662 plugindir!$plugindir$ac_delim
31663 dump_email!$dump_email$ac_delim
31664 job_email!$job_email$ac_delim
31665 smtp_host!$smtp_host$ac_delim
31666 piddir!$piddir$ac_delim
31667 subsysdir!$subsysdir$ac_delim
31668 baseport!$baseport$ac_delim
31669 dir_port!$dir_port$ac_delim
31670 fd_port!$fd_port$ac_delim
31671 sd_port!$sd_port$ac_delim
31672 dir_password!$dir_password$ac_delim
31673 fd_password!$fd_password$ac_delim
31674 sd_password!$sd_password$ac_delim
31675 mon_dir_password!$mon_dir_password$ac_delim
31676 mon_fd_password!$mon_fd_password$ac_delim
31677 mon_sd_password!$mon_sd_password$ac_delim
31678 db_name!$db_name$ac_delim
31679 db_user!$db_user$ac_delim
31680 db_password!$db_password$ac_delim
31681 db_port!$db_port$ac_delim
31682 dir_user!$dir_user$ac_delim
31683 dir_group!$dir_group$ac_delim
31684 sd_user!$sd_user$ac_delim
31685 sd_group!$sd_group$ac_delim
31686 fd_user!$fd_user$ac_delim
31687 fd_group!$fd_group$ac_delim
31688 SBINPERM!$SBINPERM$ac_delim
31689 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31690 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31691 SQL_BINDIR!$SQL_BINDIR$ac_delim
31692 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31693 uncomment_dbi!$uncomment_dbi$ac_delim
31694 DB_PROG!$DB_PROG$ac_delim
31695 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
31696 cats!$cats$ac_delim
31697 DB_TYPE!$DB_TYPE$ac_delim
31698 GETCONF!$GETCONF$ac_delim
31699 XMKMF!$XMKMF$ac_delim
31700 X_CFLAGS!$X_CFLAGS$ac_delim
31701 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31702 X_LIBS!$X_LIBS$ac_delim
31703 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31704 LIBOBJS!$LIBOBJS$ac_delim
31705 FDLIBS!$FDLIBS$ac_delim
31706 DEBUG!$DEBUG$ac_delim
31707 DINCLUDE!$DINCLUDE$ac_delim
31708 DLIB!$DLIB$ac_delim
31709 DB_LIBS!$DB_LIBS$ac_delim
31710 WCFLAGS!$WCFLAGS$ac_delim
31711 WLDFLAGS!$WLDFLAGS$ac_delim
31712 WRAPLIBS!$WRAPLIBS$ac_delim
31713 OBJLIST!$OBJLIST$ac_delim
31714 hostname!$hostname$ac_delim
31715 TAPEDRIVE!$TAPEDRIVE$ac_delim
31716 PSCMD!$PSCMD$ac_delim
31717 WIN32!$WIN32$ac_delim
31718 MACOSX!$MACOSX$ac_delim
31719 DISTNAME!$DISTNAME$ac_delim
31720 DISTVER!$DISTVER$ac_delim
31721 LTLIBOBJS!$LTLIBOBJS$ac_delim
31722 _ACEOF
31723
31724   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 64; then
31725     break
31726   elif $ac_last_try; then
31727     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31728 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31729    { (exit 1); exit 1; }; }
31730   else
31731     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31732   fi
31733 done
31734
31735 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31736 if test -n "$ac_eof"; then
31737   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31738   ac_eof=`expr $ac_eof + 1`
31739 fi
31740
31741 cat >>$CONFIG_STATUS <<_ACEOF
31742 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31744 _ACEOF
31745 sed '
31746 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31747 s/^/s,@/; s/!/@,|#_!!_#|/
31748 :n
31749 t n
31750 s/'"$ac_delim"'$/,g/; t
31751 s/$/\\/; p
31752 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31753 ' >>$CONFIG_STATUS <conf$$subs.sed
31754 rm -f conf$$subs.sed
31755 cat >>$CONFIG_STATUS <<_ACEOF
31756 :end
31757 s/|#_!!_#|//g
31758 CEOF$ac_eof
31759 _ACEOF
31760
31761
31762 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31763 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31764 # trailing colons and then remove the whole line if VPATH becomes empty
31765 # (actually we leave an empty line to preserve line numbers).
31766 if test "x$srcdir" = x.; then
31767   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31768 s/:*\$(srcdir):*/:/
31769 s/:*\${srcdir}:*/:/
31770 s/:*@srcdir@:*/:/
31771 s/^\([^=]*=[     ]*\):*/\1/
31772 s/:*$//
31773 s/^[^=]*=[       ]*$//
31774 }'
31775 fi
31776
31777 cat >>$CONFIG_STATUS <<\_ACEOF
31778 fi # test -n "$CONFIG_FILES"
31779
31780
31781 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31782 do
31783   case $ac_tag in
31784   :[FHLC]) ac_mode=$ac_tag; continue;;
31785   esac
31786   case $ac_mode$ac_tag in
31787   :[FHL]*:*);;
31788   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31789 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31790    { (exit 1); exit 1; }; };;
31791   :[FH]-) ac_tag=-:-;;
31792   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31793   esac
31794   ac_save_IFS=$IFS
31795   IFS=:
31796   set x $ac_tag
31797   IFS=$ac_save_IFS
31798   shift
31799   ac_file=$1
31800   shift
31801
31802   case $ac_mode in
31803   :L) ac_source=$1;;
31804   :[FH])
31805     ac_file_inputs=
31806     for ac_f
31807     do
31808       case $ac_f in
31809       -) ac_f="$tmp/stdin";;
31810       *) # Look for the file first in the build tree, then in the source tree
31811          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31812          # because $ac_f cannot contain `:'.
31813          test -f "$ac_f" ||
31814            case $ac_f in
31815            [\\/$]*) false;;
31816            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31817            esac ||
31818            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31819 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31820    { (exit 1); exit 1; }; };;
31821       esac
31822       ac_file_inputs="$ac_file_inputs $ac_f"
31823     done
31824
31825     # Let's still pretend it is `configure' which instantiates (i.e., don't
31826     # use $as_me), people would be surprised to read:
31827     #    /* config.h.  Generated by config.status.  */
31828     configure_input="Generated from "`IFS=:
31829           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31830     if test x"$ac_file" != x-; then
31831       configure_input="$ac_file.  $configure_input"
31832       { echo "$as_me:$LINENO: creating $ac_file" >&5
31833 echo "$as_me: creating $ac_file" >&6;}
31834     fi
31835
31836     case $ac_tag in
31837     *:-:* | *:-) cat >"$tmp/stdin";;
31838     esac
31839     ;;
31840   esac
31841
31842   ac_dir=`$as_dirname -- "$ac_file" ||
31843 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31844          X"$ac_file" : 'X\(//\)[^/]' \| \
31845          X"$ac_file" : 'X\(//\)$' \| \
31846          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31847 echo X"$ac_file" |
31848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31849             s//\1/
31850             q
31851           }
31852           /^X\(\/\/\)[^/].*/{
31853             s//\1/
31854             q
31855           }
31856           /^X\(\/\/\)$/{
31857             s//\1/
31858             q
31859           }
31860           /^X\(\/\).*/{
31861             s//\1/
31862             q
31863           }
31864           s/.*/./; q'`
31865   { as_dir="$ac_dir"
31866   case $as_dir in #(
31867   -*) as_dir=./$as_dir;;
31868   esac
31869   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31870     as_dirs=
31871     while :; do
31872       case $as_dir in #(
31873       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31874       *) as_qdir=$as_dir;;
31875       esac
31876       as_dirs="'$as_qdir' $as_dirs"
31877       as_dir=`$as_dirname -- "$as_dir" ||
31878 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31879          X"$as_dir" : 'X\(//\)[^/]' \| \
31880          X"$as_dir" : 'X\(//\)$' \| \
31881          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31882 echo X"$as_dir" |
31883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31884             s//\1/
31885             q
31886           }
31887           /^X\(\/\/\)[^/].*/{
31888             s//\1/
31889             q
31890           }
31891           /^X\(\/\/\)$/{
31892             s//\1/
31893             q
31894           }
31895           /^X\(\/\).*/{
31896             s//\1/
31897             q
31898           }
31899           s/.*/./; q'`
31900       test -d "$as_dir" && break
31901     done
31902     test -z "$as_dirs" || eval "mkdir $as_dirs"
31903   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31904 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31905    { (exit 1); exit 1; }; }; }
31906   ac_builddir=.
31907
31908 case "$ac_dir" in
31909 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31910 *)
31911   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31912   # A ".." for each directory in $ac_dir_suffix.
31913   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31914   case $ac_top_builddir_sub in
31915   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31916   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31917   esac ;;
31918 esac
31919 ac_abs_top_builddir=$ac_pwd
31920 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31921 # for backward compatibility:
31922 ac_top_builddir=$ac_top_build_prefix
31923
31924 case $srcdir in
31925   .)  # We are building in place.
31926     ac_srcdir=.
31927     ac_top_srcdir=$ac_top_builddir_sub
31928     ac_abs_top_srcdir=$ac_pwd ;;
31929   [\\/]* | ?:[\\/]* )  # Absolute name.
31930     ac_srcdir=$srcdir$ac_dir_suffix;
31931     ac_top_srcdir=$srcdir
31932     ac_abs_top_srcdir=$srcdir ;;
31933   *) # Relative name.
31934     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31935     ac_top_srcdir=$ac_top_build_prefix$srcdir
31936     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31937 esac
31938 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31939
31940
31941   case $ac_mode in
31942   :F)
31943   #
31944   # CONFIG_FILE
31945   #
31946
31947   case $INSTALL in
31948   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31949   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31950   esac
31951 _ACEOF
31952
31953 cat >>$CONFIG_STATUS <<\_ACEOF
31954 # If the template does not know about datarootdir, expand it.
31955 # FIXME: This hack should be removed a few years after 2.60.
31956 ac_datarootdir_hack=; ac_datarootdir_seen=
31957
31958 case `sed -n '/datarootdir/ {
31959   p
31960   q
31961 }
31962 /@datadir@/p
31963 /@docdir@/p
31964 /@infodir@/p
31965 /@localedir@/p
31966 /@mandir@/p
31967 ' $ac_file_inputs` in
31968 *datarootdir*) ac_datarootdir_seen=yes;;
31969 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31970   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31971 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31972 _ACEOF
31973 cat >>$CONFIG_STATUS <<_ACEOF
31974   ac_datarootdir_hack='
31975   s&@datadir@&$datadir&g
31976   s&@docdir@&$docdir&g
31977   s&@infodir@&$infodir&g
31978   s&@localedir@&$localedir&g
31979   s&@mandir@&$mandir&g
31980     s&\\\${datarootdir}&$datarootdir&g' ;;
31981 esac
31982 _ACEOF
31983
31984 # Neutralize VPATH when `$srcdir' = `.'.
31985 # Shell code in configure.ac might set extrasub.
31986 # FIXME: do we really want to maintain this feature?
31987 cat >>$CONFIG_STATUS <<_ACEOF
31988   sed "$ac_vpsub
31989 $extrasub
31990 _ACEOF
31991 cat >>$CONFIG_STATUS <<\_ACEOF
31992 :t
31993 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31994 s&@configure_input@&$configure_input&;t t
31995 s&@top_builddir@&$ac_top_builddir_sub&;t t
31996 s&@srcdir@&$ac_srcdir&;t t
31997 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31998 s&@top_srcdir@&$ac_top_srcdir&;t t
31999 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32000 s&@builddir@&$ac_builddir&;t t
32001 s&@abs_builddir@&$ac_abs_builddir&;t t
32002 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32003 s&@INSTALL@&$ac_INSTALL&;t t
32004 $ac_datarootdir_hack
32005 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
32006
32007 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32008   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32009   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32010   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32011 which seems to be undefined.  Please make sure it is defined." >&5
32012 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32013 which seems to be undefined.  Please make sure it is defined." >&2;}
32014
32015   rm -f "$tmp/stdin"
32016   case $ac_file in
32017   -) cat "$tmp/out"; rm -f "$tmp/out";;
32018   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
32019   esac
32020  ;;
32021   :H)
32022   #
32023   # CONFIG_HEADER
32024   #
32025 _ACEOF
32026
32027 # Transform confdefs.h into a sed script `conftest.defines', that
32028 # substitutes the proper values into config.h.in to produce config.h.
32029 rm -f conftest.defines conftest.tail
32030 # First, append a space to every undef/define line, to ease matching.
32031 echo 's/$/ /' >conftest.defines
32032 # Then, protect against being on the right side of a sed subst, or in
32033 # an unquoted here document, in config.status.  If some macros were
32034 # called several times there might be several #defines for the same
32035 # symbol, which is useless.  But do not sort them, since the last
32036 # AC_DEFINE must be honored.
32037 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32038 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
32039 # NAME is the cpp macro being defined, VALUE is the value it is being given.
32040 # PARAMS is the parameter list in the macro definition--in most cases, it's
32041 # just an empty string.
32042 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
32043 ac_dB='\\)[      (].*,\\1define\\2'
32044 ac_dC=' '
32045 ac_dD=' ,'
32046
32047 uniq confdefs.h |
32048   sed -n '
32049         t rset
32050         :rset
32051         s/^[     ]*#[    ]*define[       ][      ]*//
32052         t ok
32053         d
32054         :ok
32055         s/[\\&,]/\\&/g
32056         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
32057         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
32058   ' >>conftest.defines
32059
32060 # Remove the space that was appended to ease matching.
32061 # Then replace #undef with comments.  This is necessary, for
32062 # example, in the case of _POSIX_SOURCE, which is predefined and required
32063 # on some systems where configure will not decide to define it.
32064 # (The regexp can be short, since the line contains either #define or #undef.)
32065 echo 's/ $//
32066 s,^[     #]*u.*,/* & */,' >>conftest.defines
32067
32068 # Break up conftest.defines:
32069 ac_max_sed_lines=50
32070
32071 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
32072 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
32073 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
32074 # et cetera.
32075 ac_in='$ac_file_inputs'
32076 ac_out='"$tmp/out1"'
32077 ac_nxt='"$tmp/out2"'
32078
32079 while :
32080 do
32081   # Write a here document:
32082     cat >>$CONFIG_STATUS <<_ACEOF
32083     # First, check the format of the line:
32084     cat >"\$tmp/defines.sed" <<\\CEOF
32085 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
32086 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
32087 b
32088 :def
32089 _ACEOF
32090   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
32091   echo 'CEOF
32092     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
32093   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
32094   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
32095   grep . conftest.tail >/dev/null || break
32096   rm -f conftest.defines
32097   mv conftest.tail conftest.defines
32098 done
32099 rm -f conftest.defines conftest.tail
32100
32101 echo "ac_result=$ac_in" >>$CONFIG_STATUS
32102 cat >>$CONFIG_STATUS <<\_ACEOF
32103   if test x"$ac_file" != x-; then
32104     echo "/* $configure_input  */" >"$tmp/config.h"
32105     cat "$ac_result" >>"$tmp/config.h"
32106     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
32107       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32108 echo "$as_me: $ac_file is unchanged" >&6;}
32109     else
32110       rm -f $ac_file
32111       mv "$tmp/config.h" $ac_file
32112     fi
32113   else
32114     echo "/* $configure_input  */"
32115     cat "$ac_result"
32116   fi
32117   rm -f "$tmp/out12"
32118  ;;
32119
32120   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
32121 echo "$as_me: executing $ac_file commands" >&6;}
32122  ;;
32123   esac
32124
32125
32126   case $ac_file$ac_mode in
32127     "default-1":C)
32128     for ac_file in $CONFIG_FILES; do
32129       # Support "outfile[:infile[:infile...]]"
32130       case "$ac_file" in
32131         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32132       esac
32133       # PO directories have a Makefile.in generated from Makefile.in.in.
32134       case "$ac_file" in */Makefile.in)
32135         # Adjust a relative srcdir.
32136         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32137         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32138         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32139         # In autoconf-2.13 it is called $ac_given_srcdir.
32140         # In autoconf-2.50 it is called $srcdir.
32141         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32142         case "$ac_given_srcdir" in
32143           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32144           /*) top_srcdir="$ac_given_srcdir" ;;
32145           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32146         esac
32147         # Treat a directory as a PO directory if and only if it has a
32148         # POTFILES.in file. This allows packages to have multiple PO
32149         # directories under different names or in different locations.
32150         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32151           rm -f "$ac_dir/POTFILES"
32152           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32153           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32154           POMAKEFILEDEPS="POTFILES.in"
32155           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32156           # on $ac_dir but don't depend on user-specified configuration
32157           # parameters.
32158           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32159             # The LINGUAS file contains the set of available languages.
32160             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32161               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32162             fi
32163             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32164             # Hide the ALL_LINGUAS assigment from automake.
32165             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32166             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32167           else
32168             # The set of available languages was given in configure.in.
32169             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32170           fi
32171           # Compute POFILES
32172           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32173           # Compute UPDATEPOFILES
32174           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32175           # Compute DUMMYPOFILES
32176           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32177           # Compute GMOFILES
32178           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32179           case "$ac_given_srcdir" in
32180             .) srcdirpre= ;;
32181             *) srcdirpre='$(srcdir)/' ;;
32182           esac
32183           POFILES=
32184           UPDATEPOFILES=
32185           DUMMYPOFILES=
32186           GMOFILES=
32187           for lang in $ALL_LINGUAS; do
32188             POFILES="$POFILES $srcdirpre$lang.po"
32189             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32190             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32191             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32192           done
32193           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32194           # environment variable.
32195           INST_LINGUAS=
32196           if test -n "$ALL_LINGUAS"; then
32197             for presentlang in $ALL_LINGUAS; do
32198               useit=no
32199               if test "%UNSET%" != "$LINGUAS"; then
32200                 desiredlanguages="$LINGUAS"
32201               else
32202                 desiredlanguages="$ALL_LINGUAS"
32203               fi
32204               for desiredlang in $desiredlanguages; do
32205                 # Use the presentlang catalog if desiredlang is
32206                 #   a. equal to presentlang, or
32207                 #   b. a variant of presentlang (because in this case,
32208                 #      presentlang can be used as a fallback for messages
32209                 #      which are not translated in the desiredlang catalog).
32210                 case "$desiredlang" in
32211                   "$presentlang"*) useit=yes;;
32212                 esac
32213               done
32214               if test $useit = yes; then
32215                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32216               fi
32217             done
32218           fi
32219           CATALOGS=
32220           if test -n "$INST_LINGUAS"; then
32221             for lang in $INST_LINGUAS; do
32222               CATALOGS="$CATALOGS $lang.gmo"
32223             done
32224           fi
32225           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32226           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"
32227           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32228             if test -f "$f"; then
32229               case "$f" in
32230                 *.orig | *.bak | *~) ;;
32231                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32232               esac
32233             fi
32234           done
32235         fi
32236         ;;
32237       esac
32238     done ;;
32239     "default":C)
32240  ;;
32241
32242   esac
32243 done # for ac_tag
32244
32245
32246 { (exit 0); exit 0; }
32247 _ACEOF
32248 chmod +x $CONFIG_STATUS
32249 ac_clean_files=$ac_clean_files_save
32250
32251
32252 # configure is writing to config.log, and then calls config.status.
32253 # config.status does its own redirection, appending to config.log.
32254 # Unfortunately, on DOS this fails, as config.log is still kept open
32255 # by configure, so config.status won't be able to write to it; its
32256 # output is simply discarded.  So we exec the FD to /dev/null,
32257 # effectively closing config.log, so it can be properly (re)opened and
32258 # appended to by config.status.  When coming back to configure, we
32259 # need to make the FD available again.
32260 if test "$no_create" != yes; then
32261   ac_cs_success=:
32262   ac_config_status_args=
32263   test "$silent" = yes &&
32264     ac_config_status_args="$ac_config_status_args --quiet"
32265   exec 5>/dev/null
32266   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32267   exec 5>>config.log
32268   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32269   # would make configure fail if this is the last instruction.
32270   $ac_cs_success || { (exit 1); exit 1; }
32271 fi
32272
32273
32274 if test "${support_bat}" = "yes" ; then
32275   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
32276   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
32277   exit 1
32278   fi
32279
32280   QMAKEBIN="qmake"
32281
32282   if test "x$QMAKEQT4" != "xnone"; then
32283     QMAKEBIN=qmake-qt4
32284   fi
32285
32286   cd src/qt-console
32287   chmod 755 install_conf_file build-depkgs-qt-console
32288   echo "Creating bat Makefile"
32289   $QMAKEBIN
32290   make clean
32291   cd ${BUILD_DIR}
32292 fi
32293
32294 echo "Doing make of dependencies"
32295 ${MAKE:-make} depend
32296
32297 cd scripts
32298 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32299 chmod 755 dvd-handler dvd-simulator
32300 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32301 cd ..
32302
32303 c=updatedb
32304 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32305 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32306
32307 c=src/cats
32308
32309 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32310 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32311
32312 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32313 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32314
32315 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32316 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32317
32318 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32319 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32320
32321 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32322 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32323
32324 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32325 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32326
32327 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32328 chmod 755 $c/sqlite
32329 chmod 755 $c/mysql
32330
32331 chmod 755 src/win32/build-depkgs-mingw32
32332
32333
32334
32335 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32336    largefile_support="yes"
32337 fi
32338
32339 #
32340 # A whole lot of hand springs to get the compiler version.
32341 #  This is because gcc changed the output in version 3.0
32342 #
32343 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32344 if test "x${CCVERSION}" = "x" ; then
32345   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32346 fi
32347 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32348 if test x"${CXXVERSION}" = x ; then
32349   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32350 fi
32351
32352 if test "x${subsysdir}" = "x${sbindir}" ; then
32353    echo " "
32354    echo " "
32355    echo "You have set --sbindir and --with-subsys-dir"
32356    echo "  both equal to: ${subsysdir} "
32357    echo "  This is not permitted. Please reconfigure."
32358    echo " "
32359    echo "Aborting configuration ..."
32360    echo " "
32361    echo " "
32362    exit 1
32363 fi
32364
32365 if test "x${db_type}" = "xInternal" ; then
32366    echo " "
32367    echo " "
32368    echo "You have not specified either --enable-client-only or one of the"
32369    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32370    echo "  This is not permitted. Please reconfigure."
32371    echo " "
32372    echo "Aborting the configuration ..."
32373    echo " "
32374    echo " "
32375    exit 1
32376 fi
32377
32378 echo "
32379 Configuration on `date`:
32380
32381   Host:                       ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32382   Bacula version:             ${BACULA} ${VERSION} (${DATE})
32383   Source code location:       ${srcdir}
32384   Install binaries:           ${sbindir}
32385   Install config files:       ${sysconfdir}
32386   Scripts directory:          ${scriptdir}
32387   Archive directory:          ${archivedir}
32388   Working directory:          ${working_dir}
32389   PID directory:              ${piddir}
32390   Subsys directory:           ${subsysdir}
32391   Man directory:              ${mandir}
32392   Data directory:             ${datadir}
32393   C Compiler:                 ${CC} ${CCVERSION}
32394   C++ Compiler:               ${CXX} ${CXXVERSION}
32395   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32396   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32397   Libraries:                  ${LIBS}
32398   Statically Linked Tools:    ${support_static_tools}
32399   Statically Linked FD:       ${support_static_fd}
32400   Statically Linked SD:       ${support_static_sd}
32401   Statically Linked DIR:      ${support_static_dir}
32402   Statically Linked CONS:     ${support_static_cons}
32403   Database type:              ${db_type}
32404   Database port:              ${db_port}
32405   Database lib:               ${DB_LIBS}
32406   Database name:              ${db_name}
32407   Database user:              ${db_user}
32408
32409   Job Output Email:           ${job_email}
32410   Traceback Email:            ${dump_email}
32411   SMTP Host Address:          ${smtp_host}
32412
32413   Director Port:              ${dir_port}
32414   File daemon Port:           ${fd_port}
32415   Storage daemon Port:        ${sd_port}
32416
32417   Director User:              ${dir_user}
32418   Director Group:             ${dir_group}
32419   Storage Daemon User:        ${sd_user}
32420   Storage DaemonGroup:        ${sd_group}
32421   File Daemon User:           ${fd_user}
32422   File Daemon Group:          ${fd_group}
32423
32424   SQL binaries Directory      ${SQL_BINDIR}
32425
32426   Large file support:         $largefile_support
32427   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32428   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32429   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32430   TLS support:                ${support_tls}
32431   Encryption support:         ${support_crypto}
32432   ZLIB support:               ${have_zlib}
32433   enable-smartalloc:          ${support_smartalloc}
32434   bat support:                ${support_bat} ${QWT_LDFLAGS}
32435   enable-gnome:               ${support_gnome} ${gnome_version}
32436   enable-bwx-console:         ${support_wx_console} ${wx_version}
32437   enable-tray-monitor:        ${support_tray_monitor}
32438   client-only:                ${build_client_only}
32439   build-dird:                 ${build_dird}
32440   build-stored:               ${build_stored}
32441   ACL support:                ${have_acl}
32442   Python support:             ${support_python} ${PYTHON_LIBS}
32443   Batch insert enabled:       ${support_batch_insert}
32444
32445   " > config.out
32446
32447 cat config.out