]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Improve algorithm for detecting pre-reserved volume and
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 BUILD_DIR
654 TOP_DIR
655 TRUEPRG
656 FALSEPRG
657 VERSION
658 DATE
659 LSMDATE
660 CC
661 CFLAGS
662 LDFLAGS
663 CPPFLAGS
664 ac_ct_CC
665 EXEEXT
666 OBJEXT
667 CXX
668 CXXFLAGS
669 ac_ct_CXX
670 CPP
671 GREP
672 EGREP
673 INSTALL_PROGRAM
674 INSTALL_SCRIPT
675 INSTALL_DATA
676 RANLIB
677 MV
678 RM
679 CP
680 SED
681 ECHO
682 CMP
683 TBL
684 AR
685 OPENSSL
686 MTX
687 DD
688 MKISOFS
689 PYTHON
690 GROWISOFS
691 DVDRWMEDIAINFO
692 DVDRWFORMAT
693 PKGCONFIG
694 QMAKE
695 QMAKEQT4
696 WXCONFIG
697 WXFLAGS
698 CDRECORD
699 PIDOF
700 AWK
701 ARFLAGS
702 MAKE_SHELL
703 LOCAL_LIBS
704 LOCAL_CFLAGS
705 LOCAL_LDFLAGS
706 LOCAL_DEFS
707 build
708 build_cpu
709 build_vendor
710 build_os
711 host
712 host_cpu
713 host_vendor
714 host_os
715 HAVE_SUN_OS_TRUE
716 HAVE_SUN_OS_FALSE
717 HAVE_OSF1_OS_TRUE
718 HAVE_OSF1_OS_FALSE
719 HAVE_AIX_OS_TRUE
720 HAVE_AIX_OS_FALSE
721 HAVE_HPUX_OS_TRUE
722 HAVE_HPUX_OS_FALSE
723 HAVE_LINUX_OS_TRUE
724 HAVE_LINUX_OS_FALSE
725 HAVE_FREEBSD_OS_TRUE
726 HAVE_FREEBSD_OS_FALSE
727 HAVE_NETBSD_OS_TRUE
728 HAVE_NETBSD_OS_FALSE
729 HAVE_OPENBSD_OS_TRUE
730 HAVE_OPENBSD_OS_FALSE
731 HAVE_BSDI_OS_TRUE
732 HAVE_BSDI_OS_FALSE
733 HAVE_SGI_OS_TRUE
734 HAVE_SGI_OS_FALSE
735 HAVE_IRIX_OS_TRUE
736 HAVE_IRIX_OS_FALSE
737 HAVE_DARWIN_OS_TRUE
738 HAVE_DARWIN_OS_FALSE
739 SET_MAKE
740 MKINSTALLDIRS
741 USE_NLS
742 MSGFMT
743 GMSGFMT
744 XGETTEXT
745 MSGMERGE
746 INTL_MACOSX_LIBS
747 LIBICONV
748 LTLIBICONV
749 INTLLIBS
750 LIBINTL
751 LTLIBINTL
752 POSUB
753 GLIBC2
754 ALLOCA
755 GLIBC21
756 HAVE_POSIX_PRINTF
757 HAVE_ASPRINTF
758 HAVE_SNPRINTF
759 HAVE_WPRINTF
760 INTLBISON
761 BUILD_INCLUDED_LIBINTL
762 USE_INCLUDED_LIBINTL
763 CATOBJEXT
764 DATADIRNAME
765 INSTOBJEXT
766 GENCAT
767 INTLOBJS
768 INTL_LIBTOOL_SUFFIX_PREFIX
769 GNOME_INCLUDEDIR
770 GNOMEUI_LIBS
771 GNOME_LIBDIR
772 GNOME_LIBS
773 GNOME_DIR
774 BAT_DIR
775 QWT_INC
776 QWT_LDFLAGS
777 WXCONS_CPPFLAGS
778 WXCONS_LDFLAGS
779 WX_DIR
780 TRAY_MONITOR_CPPFLAGS
781 TRAY_MONITOR_LDFLAGS
782 TRAY_MONITOR_DIR
783 TTOOL_LDFLAGS
784 STATIC_FD
785 STATIC_SD
786 STATIC_DIR
787 STATIC_CONS
788 STATIC_GNOME_CONS
789 STATIC_WX_CONS
790 ALL_DIRS
791 DIRD_DIR
792 DIR_TOOLS
793 STORED_DIR
794 CONS_INC
795 CONS_OBJ
796 CONS_SRC
797 CONS_LIBS
798 CONS_LDFLAGS
799 READLINE_SRC
800 PYTHON_LIBS
801 PYTHON_INCDIR
802 OPENSSL_LIBS
803 OPENSSL_INC
804 working_dir
805 archivedir
806 scriptdir
807 dump_email
808 job_email
809 smtp_host
810 piddir
811 subsysdir
812 baseport
813 dir_port
814 fd_port
815 sd_port
816 dir_password
817 fd_password
818 sd_password
819 mon_dir_password
820 mon_fd_password
821 mon_sd_password
822 db_name
823 db_user
824 dir_user
825 dir_group
826 sd_user
827 sd_group
828 fd_user
829 fd_group
830 SBINPERM
831 SQL_LFLAGS
832 SQL_INCLUDE
833 SQL_BINDIR
834 DBI_DBD_DRIVERDIR
835 DB_PROG
836 cats
837 DB_TYPE
838 GETCONF
839 XMKMF
840 X_CFLAGS
841 X_PRE_LIBS
842 X_LIBS
843 X_EXTRA_LIBS
844 LIBOBJS
845 FDLIBS
846 DEBUG
847 DINCLUDE
848 DLIB
849 DB_LIBS
850 WCFLAGS
851 WLDFLAGS
852 WRAPLIBS
853 OBJLIST
854 hostname
855 TAPEDRIVE
856 PSCMD
857 WIN32
858 MACOSX
859 DISTNAME
860 DISTVER
861 LTLIBOBJS'
862 ac_subst_files='MCOMMON'
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
871 CXX
872 CXXFLAGS
873 CCC
874 CPP
875 WXCONFIG
876 WXFLAGS
877 XMKMF'
878
879
880 # Initialize some variables set by options.
881 ac_init_help=
882 ac_init_version=false
883 # The variables have the same names as the options, with
884 # dashes changed to underlines.
885 cache_file=/dev/null
886 exec_prefix=NONE
887 no_create=
888 no_recursion=
889 prefix=NONE
890 program_prefix=NONE
891 program_suffix=NONE
892 program_transform_name=s,x,x,
893 silent=
894 site=
895 srcdir=
896 verbose=
897 x_includes=NONE
898 x_libraries=NONE
899
900 # Installation directory options.
901 # These are left unexpanded so users can "make install exec_prefix=/foo"
902 # and all the variables that are supposed to be based on exec_prefix
903 # by default will actually change.
904 # Use braces instead of parens because sh, perl, etc. also accept them.
905 # (The list follows the same order as the GNU Coding Standards.)
906 bindir='${exec_prefix}/bin'
907 sbindir='${exec_prefix}/sbin'
908 libexecdir='${exec_prefix}/libexec'
909 datarootdir='${prefix}/share'
910 datadir='${datarootdir}'
911 sysconfdir='${prefix}/etc'
912 sharedstatedir='${prefix}/com'
913 localstatedir='${prefix}/var'
914 includedir='${prefix}/include'
915 oldincludedir='/usr/include'
916 docdir='${datarootdir}/doc/${PACKAGE}'
917 infodir='${datarootdir}/info'
918 htmldir='${docdir}'
919 dvidir='${docdir}'
920 pdfdir='${docdir}'
921 psdir='${docdir}'
922 libdir='${exec_prefix}/lib'
923 localedir='${datarootdir}/locale'
924 mandir='${datarootdir}/man'
925
926 ac_prev=
927 ac_dashdash=
928 for ac_option
929 do
930   # If the previous option needs an argument, assign it.
931   if test -n "$ac_prev"; then
932     eval $ac_prev=\$ac_option
933     ac_prev=
934     continue
935   fi
936
937   case $ac_option in
938   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
939   *)    ac_optarg=yes ;;
940   esac
941
942   # Accept the important Cygnus configure options, so we can diagnose typos.
943
944   case $ac_dashdash$ac_option in
945   --)
946     ac_dashdash=yes ;;
947
948   -bindir | --bindir | --bindi | --bind | --bin | --bi)
949     ac_prev=bindir ;;
950   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951     bindir=$ac_optarg ;;
952
953   -build | --build | --buil | --bui | --bu)
954     ac_prev=build_alias ;;
955   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956     build_alias=$ac_optarg ;;
957
958   -cache-file | --cache-file | --cache-fil | --cache-fi \
959   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960     ac_prev=cache_file ;;
961   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963     cache_file=$ac_optarg ;;
964
965   --config-cache | -C)
966     cache_file=config.cache ;;
967
968   -datadir | --datadir | --datadi | --datad)
969     ac_prev=datadir ;;
970   -datadir=* | --datadir=* | --datadi=* | --datad=*)
971     datadir=$ac_optarg ;;
972
973   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974   | --dataroo | --dataro | --datar)
975     ac_prev=datarootdir ;;
976   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978     datarootdir=$ac_optarg ;;
979
980   -disable-* | --disable-*)
981     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982     # Reject names that are not valid shell variable names.
983     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
984       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
985    { (exit 1); exit 1; }; }
986     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
987     eval enable_$ac_feature=no ;;
988
989   -docdir | --docdir | --docdi | --doc | --do)
990     ac_prev=docdir ;;
991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992     docdir=$ac_optarg ;;
993
994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995     ac_prev=dvidir ;;
996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997     dvidir=$ac_optarg ;;
998
999   -enable-* | --enable-*)
1000     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004    { (exit 1); exit 1; }; }
1005     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006     eval enable_$ac_feature=\$ac_optarg ;;
1007
1008   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1009   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1010   | --exec | --exe | --ex)
1011     ac_prev=exec_prefix ;;
1012   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1013   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1014   | --exec=* | --exe=* | --ex=*)
1015     exec_prefix=$ac_optarg ;;
1016
1017   -gas | --gas | --ga | --g)
1018     # Obsolete; use --with-gas.
1019     with_gas=yes ;;
1020
1021   -help | --help | --hel | --he | -h)
1022     ac_init_help=long ;;
1023   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1024     ac_init_help=recursive ;;
1025   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1026     ac_init_help=short ;;
1027
1028   -host | --host | --hos | --ho)
1029     ac_prev=host_alias ;;
1030   -host=* | --host=* | --hos=* | --ho=*)
1031     host_alias=$ac_optarg ;;
1032
1033   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1034     ac_prev=htmldir ;;
1035   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1036   | --ht=*)
1037     htmldir=$ac_optarg ;;
1038
1039   -includedir | --includedir | --includedi | --included | --include \
1040   | --includ | --inclu | --incl | --inc)
1041     ac_prev=includedir ;;
1042   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1043   | --includ=* | --inclu=* | --incl=* | --inc=*)
1044     includedir=$ac_optarg ;;
1045
1046   -infodir | --infodir | --infodi | --infod | --info | --inf)
1047     ac_prev=infodir ;;
1048   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1049     infodir=$ac_optarg ;;
1050
1051   -libdir | --libdir | --libdi | --libd)
1052     ac_prev=libdir ;;
1053   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1054     libdir=$ac_optarg ;;
1055
1056   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1057   | --libexe | --libex | --libe)
1058     ac_prev=libexecdir ;;
1059   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1060   | --libexe=* | --libex=* | --libe=*)
1061     libexecdir=$ac_optarg ;;
1062
1063   -localedir | --localedir | --localedi | --localed | --locale)
1064     ac_prev=localedir ;;
1065   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1066     localedir=$ac_optarg ;;
1067
1068   -localstatedir | --localstatedir | --localstatedi | --localstated \
1069   | --localstate | --localstat | --localsta | --localst | --locals)
1070     ac_prev=localstatedir ;;
1071   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1072   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1073     localstatedir=$ac_optarg ;;
1074
1075   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1076     ac_prev=mandir ;;
1077   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1078     mandir=$ac_optarg ;;
1079
1080   -nfp | --nfp | --nf)
1081     # Obsolete; use --without-fp.
1082     with_fp=no ;;
1083
1084   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1085   | --no-cr | --no-c | -n)
1086     no_create=yes ;;
1087
1088   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1089   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090     no_recursion=yes ;;
1091
1092   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1093   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1094   | --oldin | --oldi | --old | --ol | --o)
1095     ac_prev=oldincludedir ;;
1096   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1097   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1098   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1099     oldincludedir=$ac_optarg ;;
1100
1101   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1102     ac_prev=prefix ;;
1103   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1104     prefix=$ac_optarg ;;
1105
1106   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1107   | --program-pre | --program-pr | --program-p)
1108     ac_prev=program_prefix ;;
1109   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1110   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1111     program_prefix=$ac_optarg ;;
1112
1113   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1114   | --program-suf | --program-su | --program-s)
1115     ac_prev=program_suffix ;;
1116   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1117   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1118     program_suffix=$ac_optarg ;;
1119
1120   -program-transform-name | --program-transform-name \
1121   | --program-transform-nam | --program-transform-na \
1122   | --program-transform-n | --program-transform- \
1123   | --program-transform | --program-transfor \
1124   | --program-transfo | --program-transf \
1125   | --program-trans | --program-tran \
1126   | --progr-tra | --program-tr | --program-t)
1127     ac_prev=program_transform_name ;;
1128   -program-transform-name=* | --program-transform-name=* \
1129   | --program-transform-nam=* | --program-transform-na=* \
1130   | --program-transform-n=* | --program-transform-=* \
1131   | --program-transform=* | --program-transfor=* \
1132   | --program-transfo=* | --program-transf=* \
1133   | --program-trans=* | --program-tran=* \
1134   | --progr-tra=* | --program-tr=* | --program-t=*)
1135     program_transform_name=$ac_optarg ;;
1136
1137   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1138     ac_prev=pdfdir ;;
1139   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1140     pdfdir=$ac_optarg ;;
1141
1142   -psdir | --psdir | --psdi | --psd | --ps)
1143     ac_prev=psdir ;;
1144   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145     psdir=$ac_optarg ;;
1146
1147   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1148   | -silent | --silent | --silen | --sile | --sil)
1149     silent=yes ;;
1150
1151   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1152     ac_prev=sbindir ;;
1153   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1154   | --sbi=* | --sb=*)
1155     sbindir=$ac_optarg ;;
1156
1157   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1158   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1159   | --sharedst | --shareds | --shared | --share | --shar \
1160   | --sha | --sh)
1161     ac_prev=sharedstatedir ;;
1162   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1163   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1164   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1165   | --sha=* | --sh=*)
1166     sharedstatedir=$ac_optarg ;;
1167
1168   -site | --site | --sit)
1169     ac_prev=site ;;
1170   -site=* | --site=* | --sit=*)
1171     site=$ac_optarg ;;
1172
1173   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1174     ac_prev=srcdir ;;
1175   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1176     srcdir=$ac_optarg ;;
1177
1178   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1179   | --syscon | --sysco | --sysc | --sys | --sy)
1180     ac_prev=sysconfdir ;;
1181   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1182   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1183     sysconfdir=$ac_optarg ;;
1184
1185   -target | --target | --targe | --targ | --tar | --ta | --t)
1186     ac_prev=target_alias ;;
1187   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1188     target_alias=$ac_optarg ;;
1189
1190   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191     verbose=yes ;;
1192
1193   -version | --version | --versio | --versi | --vers | -V)
1194     ac_init_version=: ;;
1195
1196   -with-* | --with-*)
1197     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1198     # Reject names that are not valid shell variable names.
1199     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200       { echo "$as_me: error: invalid package name: $ac_package" >&2
1201    { (exit 1); exit 1; }; }
1202     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1203     eval with_$ac_package=\$ac_optarg ;;
1204
1205   -without-* | --without-*)
1206     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no ;;
1213
1214   --x)
1215     # Obsolete; use --with-x.
1216     with_x=yes ;;
1217
1218   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1219   | --x-incl | --x-inc | --x-in | --x-i)
1220     ac_prev=x_includes ;;
1221   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1222   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1223     x_includes=$ac_optarg ;;
1224
1225   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1226   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1227     ac_prev=x_libraries ;;
1228   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1229   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1230     x_libraries=$ac_optarg ;;
1231
1232   -*) { echo "$as_me: error: unrecognized option: $ac_option
1233 Try \`$0 --help' for more information." >&2
1234    { (exit 1); exit 1; }; }
1235     ;;
1236
1237   *=*)
1238     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1239     # Reject names that are not valid shell variable names.
1240     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1241       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1242    { (exit 1); exit 1; }; }
1243     eval $ac_envvar=\$ac_optarg
1244     export $ac_envvar ;;
1245
1246   *)
1247     # FIXME: should be removed in autoconf 3.0.
1248     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1249     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1250       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1251     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1252     ;;
1253
1254   esac
1255 done
1256
1257 if test -n "$ac_prev"; then
1258   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1259   { echo "$as_me: error: missing argument to $ac_option" >&2
1260    { (exit 1); exit 1; }; }
1261 fi
1262
1263 # Be sure to have absolute directory names.
1264 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265                 datadir sysconfdir sharedstatedir localstatedir includedir \
1266                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267                 libdir localedir mandir
1268 do
1269   eval ac_val=\$$ac_var
1270   case $ac_val in
1271     [\\/$]* | ?:[\\/]* )  continue;;
1272     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1273   esac
1274   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1275    { (exit 1); exit 1; }; }
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used." >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   { echo "$as_me: error: Working directory cannot be determined" >&2
1306    { (exit 1); exit 1; }; }
1307 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1308   { echo "$as_me: error: pwd does not report name of working directory" >&2
1309    { (exit 1); exit 1; }; }
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$0" ||
1317 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$0" : 'X\(//\)[^/]' \| \
1319          X"$0" : 'X\(//\)$' \| \
1320          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1321 echo X"$0" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1349    { (exit 1); exit 1; }; }
1350 fi
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352 ac_abs_confdir=`(
1353         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1354    { (exit 1); exit 1; }; }
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_env_${ac_var}_value=\$${ac_var}
1369   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377   # Omit some internal or obsolete options to make the list less imposing.
1378   # This message is too long to be a string in the A/UX 3.1 sh.
1379   cat <<_ACEOF
1380 \`configure' configures this package to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390   -h, --help              display this help and exit
1391       --help=short        display options specific to this package
1392       --help=recursive    display the short help of all the included packages
1393   -V, --version           display version information and exit
1394   -q, --quiet, --silent   do not print \`checking...' messages
1395       --cache-file=FILE   cache test results in FILE [disabled]
1396   -C, --config-cache      alias for \`--cache-file=config.cache'
1397   -n, --no-create         do not create output files
1398       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401   --prefix=PREFIX         install architecture-independent files in PREFIX
1402                           [$ac_default_prefix]
1403   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                           [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414   --bindir=DIR           user executables [EPREFIX/bin]
1415   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1416   --libexecdir=DIR       program executables [EPREFIX/libexec]
1417   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1418   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1419   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1420   --libdir=DIR           object code libraries [EPREFIX/lib]
1421   --includedir=DIR       C header files [PREFIX/include]
1422   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR          info documentation [DATAROOTDIR/info]
1426   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR           man documentation [DATAROOTDIR/man]
1428   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1429   --htmldir=DIR          html documentation [DOCDIR]
1430   --dvidir=DIR           dvi documentation [DOCDIR]
1431   --pdfdir=DIR           pdf documentation [DOCDIR]
1432   --psdir=DIR            ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 X features:
1438   --x-includes=DIR    X include files are in DIR
1439   --x-libraries=DIR   X library files are in DIR
1440
1441 System types:
1442   --build=BUILD     configure for building on BUILD [guessed]
1443   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1453   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1454   --disable-nls           do not use Native Language Support
1455   --disable-rpath         do not hardcode runtime library paths
1456   --enable-gnome          enable build of bgnome-console GUI disabled
1457   --enable-bat  enable build of bat Qt4 GUI disabled
1458   --enable-bwx-console     enable build of wxWidgets console disabled
1459   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1460   --enable-smartalloc     enable smartalloc debugging support disabled
1461   --enable-static-tools   enable static tape tools disabled
1462   --enable-static-fd      enable static File daemon disabled
1463   --enable-static-sd      enable static Storage daemon disabled
1464   --enable-static-dir     enable static Director disabled
1465   --enable-static-cons    enable static Console disabled
1466   --enable-client-only    build client (File daemon) only disabled
1467   --enable-build-dird     enable building of dird (Director) enabled
1468   --enable-build-stored   enable building of stored (Storage daemon) enabled
1469  --disable-conio disable conio support enabled
1470
1471   --enable-ipv6             enable ipv6 support enabled
1472
1473   --disable-readline      disable readline support disable
1474
1475         --enable-batch-insert       enable the DB batch insert code disabled
1476   --disable-largefile     omit support for large files
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1482   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1483   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1484   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1485   --without-libintl-prefix     don't search for libintl in includedir and libdir
1486   --with-included-gettext use the GNU gettext library included here
1487  --with-qwt[=DIR]                 specify qwt library directory
1488  --with-readline[=DIR]         specify readline library directory
1489
1490   --with-python[=DIR]   Include Python support.  DIR is the Python base
1491                           install directory, default is to search through
1492                           a number of common places for the Python files.
1493   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1494   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1495   --with-working-dir=PATH        specify path of Bacula working directory
1496   --with-archivedir=PATH        specify path of SD archive directory
1497   --with-scriptdir=PATH    specify path of Bacula scripts directory
1498   --with-dump-email=EMAIL        dump email address
1499   --with-job-email=EMAIL         job output email address
1500   --with-smtp-host=HOST          SMTP mail host address
1501   --with-pid-dir=PATH            specify location of Bacula pid files
1502   --with-subsys-dir=PATH         specify location of Bacula subsys file
1503   --with-baseport=PORT           specify base port address for daemons
1504   --with-dir-password=PASSWORD   specify Director's password
1505   --with-fd-password=PASSWORD    specify Client's password
1506   --with-sd-password=PASSWORD    specify Storage daemon's password
1507   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1508   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1509   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1510   --with-db-name=DBNAME        specify database name (default bacula)
1511   --with-db-user=UNAME         specify database user (default bacula)
1512   --with-dir-user=USER           specify user for Director daemon
1513   --with-dir-group=GROUP                 specify group for Director daemon
1514   --with-sd-user=USER            specify user for Storage daemon
1515   --with-sd-group=GROUP          specify group for Storage daemon
1516   --with-fd-user=USER            specify user for File daemon
1517   --with-fd-group=GROUP          specify group for File daemon
1518   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1519   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1520                           base install directory, defaults to /usr/local/pgsql
1521
1522   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1523                           install directory, default is to search through
1524                           a number of common places for the MySQL files.
1525
1526   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1527                           install directory, default is to search through
1528                           a number of common places for the MySQL files.
1529
1530   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1531                           install directory, default is to search through
1532                           a number of common places for the SQLite3 files.
1533
1534   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1535                           install directory, default is to search through
1536                           a number of common places for the SQLite files.
1537
1538   --with-dbi[=DIR]     Include DBI support.  DIR is the DBD base
1539                           install directory, default is to search through
1540                           a number of common places for the DBI files.
1541
1542   --with-dbi-driver[=DRIVER]     Suport for DBI driver.  DRIVER is
1543                           the one DBI driver like Mysql, Postgresql, others.
1544                           Default is to not configure any driver.
1545   --with-x                use the X Window System
1546
1547 Some influential environment variables:
1548   CC          C compiler command
1549   CFLAGS      C compiler flags
1550   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1551               nonstandard directory <lib dir>
1552   LIBS        libraries to pass to the linker, e.g. -l<library>
1553   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1554               you have headers in a nonstandard directory <include dir>
1555   CXX         C++ compiler command
1556   CXXFLAGS    C++ compiler flags
1557   CPP         C preprocessor
1558   WXCONFIG    wx-config command. On some systems, you must set it to
1559               wx-config-2.6 to use wxWidgets 2.6.
1560   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1561   XMKMF       Path to xmkmf, Makefile generator for X Window System
1562
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1565
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571   # If there are subdirs, report their specific --help.
1572   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573     test -d "$ac_dir" || continue
1574     ac_builddir=.
1575
1576 case "$ac_dir" in
1577 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *)
1579   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1580   # A ".." for each directory in $ac_dir_suffix.
1581   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1582   case $ac_top_builddir_sub in
1583   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585   esac ;;
1586 esac
1587 ac_abs_top_builddir=$ac_pwd
1588 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589 # for backward compatibility:
1590 ac_top_builddir=$ac_top_build_prefix
1591
1592 case $srcdir in
1593   .)  # We are building in place.
1594     ac_srcdir=.
1595     ac_top_srcdir=$ac_top_builddir_sub
1596     ac_abs_top_srcdir=$ac_pwd ;;
1597   [\\/]* | ?:[\\/]* )  # Absolute name.
1598     ac_srcdir=$srcdir$ac_dir_suffix;
1599     ac_top_srcdir=$srcdir
1600     ac_abs_top_srcdir=$srcdir ;;
1601   *) # Relative name.
1602     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603     ac_top_srcdir=$ac_top_build_prefix$srcdir
1604     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605 esac
1606 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608     cd "$ac_dir" || { ac_status=$?; continue; }
1609     # Check for guested configure.
1610     if test -f "$ac_srcdir/configure.gnu"; then
1611       echo &&
1612       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613     elif test -f "$ac_srcdir/configure"; then
1614       echo &&
1615       $SHELL "$ac_srcdir/configure" --help=recursive
1616     else
1617       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618     fi || ac_status=$?
1619     cd "$ac_pwd" || { ac_status=$?; break; }
1620   done
1621 fi
1622
1623 test -n "$ac_init_help" && exit $ac_status
1624 if $ac_init_version; then
1625   cat <<\_ACEOF
1626 configure
1627 generated by GNU Autoconf 2.61
1628
1629 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1630 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1631 This configure script is free software; the Free Software Foundation
1632 gives unlimited permission to copy, distribute and modify it.
1633 _ACEOF
1634   exit
1635 fi
1636 cat >config.log <<_ACEOF
1637 This file contains any messages produced by compilers while
1638 running configure, to aid debugging if configure makes a mistake.
1639
1640 It was created by $as_me, which was
1641 generated by GNU Autoconf 2.61.  Invocation command line was
1642
1643   $ $0 $@
1644
1645 _ACEOF
1646 exec 5>>config.log
1647 {
1648 cat <<_ASUNAME
1649 ## --------- ##
1650 ## Platform. ##
1651 ## --------- ##
1652
1653 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1654 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1655 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1656 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1657 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1658
1659 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1660 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1661
1662 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1663 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1664 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1665 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1666 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1667 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1668 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1669
1670 _ASUNAME
1671
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1673 for as_dir in $PATH
1674 do
1675   IFS=$as_save_IFS
1676   test -z "$as_dir" && as_dir=.
1677   echo "PATH: $as_dir"
1678 done
1679 IFS=$as_save_IFS
1680
1681 } >&5
1682
1683 cat >&5 <<_ACEOF
1684
1685
1686 ## ----------- ##
1687 ## Core tests. ##
1688 ## ----------- ##
1689
1690 _ACEOF
1691
1692
1693 # Keep a trace of the command line.
1694 # Strip out --no-create and --no-recursion so they do not pile up.
1695 # Strip out --silent because we don't want to record it for future runs.
1696 # Also quote any args containing shell meta-characters.
1697 # Make two passes to allow for proper duplicate-argument suppression.
1698 ac_configure_args=
1699 ac_configure_args0=
1700 ac_configure_args1=
1701 ac_must_keep_next=false
1702 for ac_pass in 1 2
1703 do
1704   for ac_arg
1705   do
1706     case $ac_arg in
1707     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1708     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1709     | -silent | --silent | --silen | --sile | --sil)
1710       continue ;;
1711     *\'*)
1712       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1713     esac
1714     case $ac_pass in
1715     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1716     2)
1717       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1718       if test $ac_must_keep_next = true; then
1719         ac_must_keep_next=false # Got value, back to normal.
1720       else
1721         case $ac_arg in
1722           *=* | --config-cache | -C | -disable-* | --disable-* \
1723           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1724           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1725           | -with-* | --with-* | -without-* | --without-* | --x)
1726             case "$ac_configure_args0 " in
1727               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1728             esac
1729             ;;
1730           -* ) ac_must_keep_next=true ;;
1731         esac
1732       fi
1733       ac_configure_args="$ac_configure_args '$ac_arg'"
1734       ;;
1735     esac
1736   done
1737 done
1738 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1739 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1740
1741 # When interrupted or exit'd, cleanup temporary files, and complete
1742 # config.log.  We remove comments because anyway the quotes in there
1743 # would cause problems or look ugly.
1744 # WARNING: Use '\'' to represent an apostrophe within the trap.
1745 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1746 trap 'exit_status=$?
1747   # Save into config.log some information that might help in debugging.
1748   {
1749     echo
1750
1751     cat <<\_ASBOX
1752 ## ---------------- ##
1753 ## Cache variables. ##
1754 ## ---------------- ##
1755 _ASBOX
1756     echo
1757     # The following way of writing the cache mishandles newlines in values,
1758 (
1759   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1760     eval ac_val=\$$ac_var
1761     case $ac_val in #(
1762     *${as_nl}*)
1763       case $ac_var in #(
1764       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1765 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1766       esac
1767       case $ac_var in #(
1768       _ | IFS | as_nl) ;; #(
1769       *) $as_unset $ac_var ;;
1770       esac ;;
1771     esac
1772   done
1773   (set) 2>&1 |
1774     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1775     *${as_nl}ac_space=\ *)
1776       sed -n \
1777         "s/'\''/'\''\\\\'\'''\''/g;
1778           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1779       ;; #(
1780     *)
1781       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1782       ;;
1783     esac |
1784     sort
1785 )
1786     echo
1787
1788     cat <<\_ASBOX
1789 ## ----------------- ##
1790 ## Output variables. ##
1791 ## ----------------- ##
1792 _ASBOX
1793     echo
1794     for ac_var in $ac_subst_vars
1795     do
1796       eval ac_val=\$$ac_var
1797       case $ac_val in
1798       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1799       esac
1800       echo "$ac_var='\''$ac_val'\''"
1801     done | sort
1802     echo
1803
1804     if test -n "$ac_subst_files"; then
1805       cat <<\_ASBOX
1806 ## ------------------- ##
1807 ## File substitutions. ##
1808 ## ------------------- ##
1809 _ASBOX
1810       echo
1811       for ac_var in $ac_subst_files
1812       do
1813         eval ac_val=\$$ac_var
1814         case $ac_val in
1815         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1816         esac
1817         echo "$ac_var='\''$ac_val'\''"
1818       done | sort
1819       echo
1820     fi
1821
1822     if test -s confdefs.h; then
1823       cat <<\_ASBOX
1824 ## ----------- ##
1825 ## confdefs.h. ##
1826 ## ----------- ##
1827 _ASBOX
1828       echo
1829       cat confdefs.h
1830       echo
1831     fi
1832     test "$ac_signal" != 0 &&
1833       echo "$as_me: caught signal $ac_signal"
1834     echo "$as_me: exit $exit_status"
1835   } >&5
1836   rm -f core *.core core.conftest.* &&
1837     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1838     exit $exit_status
1839 ' 0
1840 for ac_signal in 1 2 13 15; do
1841   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1842 done
1843 ac_signal=0
1844
1845 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1846 rm -f -r conftest* confdefs.h
1847
1848 # Predefined preprocessor variables.
1849
1850 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_NAME "$PACKAGE_NAME"
1852 _ACEOF
1853
1854
1855 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1857 _ACEOF
1858
1859
1860 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1862 _ACEOF
1863
1864
1865 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_STRING "$PACKAGE_STRING"
1867 _ACEOF
1868
1869
1870 cat >>confdefs.h <<_ACEOF
1871 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1872 _ACEOF
1873
1874
1875 # Let the site file select an alternate cache file if it wants to.
1876 # Prefer explicitly selected file to automatically selected ones.
1877 if test -n "$CONFIG_SITE"; then
1878   set x "$CONFIG_SITE"
1879 elif test "x$prefix" != xNONE; then
1880   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1881 else
1882   set x "$ac_default_prefix/share/config.site" \
1883         "$ac_default_prefix/etc/config.site"
1884 fi
1885 shift
1886 for ac_site_file
1887 do
1888   if test -r "$ac_site_file"; then
1889     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1890 echo "$as_me: loading site script $ac_site_file" >&6;}
1891     sed 's/^/| /' "$ac_site_file" >&5
1892     . "$ac_site_file"
1893   fi
1894 done
1895
1896 if test -r "$cache_file"; then
1897   # Some versions of bash will fail to source /dev/null (special
1898   # files actually), so we avoid doing that.
1899   if test -f "$cache_file"; then
1900     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1901 echo "$as_me: loading cache $cache_file" >&6;}
1902     case $cache_file in
1903       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1904       *)                      . "./$cache_file";;
1905     esac
1906   fi
1907 else
1908   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1909 echo "$as_me: creating cache $cache_file" >&6;}
1910   >$cache_file
1911 fi
1912
1913 # Check that the precious variables saved in the cache have kept the same
1914 # value.
1915 ac_cache_corrupted=false
1916 for ac_var in $ac_precious_vars; do
1917   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1918   eval ac_new_set=\$ac_env_${ac_var}_set
1919   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1920   eval ac_new_val=\$ac_env_${ac_var}_value
1921   case $ac_old_set,$ac_new_set in
1922     set,)
1923       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1924 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1925       ac_cache_corrupted=: ;;
1926     ,set)
1927       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1928 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1929       ac_cache_corrupted=: ;;
1930     ,);;
1931     *)
1932       if test "x$ac_old_val" != "x$ac_new_val"; then
1933         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1934 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1935         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1936 echo "$as_me:   former value:  $ac_old_val" >&2;}
1937         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1938 echo "$as_me:   current value: $ac_new_val" >&2;}
1939         ac_cache_corrupted=:
1940       fi;;
1941   esac
1942   # Pass precious variables to config.status.
1943   if test "$ac_new_set" = set; then
1944     case $ac_new_val in
1945     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1946     *) ac_arg=$ac_var=$ac_new_val ;;
1947     esac
1948     case " $ac_configure_args " in
1949       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1950       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1951     esac
1952   fi
1953 done
1954 if $ac_cache_corrupted; then
1955   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1956 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1957   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1958 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978 ac_ext=c
1979 ac_cpp='$CPP $CPPFLAGS'
1980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1983
1984
1985 BUILD_DIR=`pwd`
1986 cd ..
1987 TOP_DIR=`pwd`
1988 cd ${BUILD_DIR}
1989
1990
1991 ac_aux_dir=
1992 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1993   if test -f "$ac_dir/install-sh"; then
1994     ac_aux_dir=$ac_dir
1995     ac_install_sh="$ac_aux_dir/install-sh -c"
1996     break
1997   elif test -f "$ac_dir/install.sh"; then
1998     ac_aux_dir=$ac_dir
1999     ac_install_sh="$ac_aux_dir/install.sh -c"
2000     break
2001   elif test -f "$ac_dir/shtool"; then
2002     ac_aux_dir=$ac_dir
2003     ac_install_sh="$ac_aux_dir/shtool install -c"
2004     break
2005   fi
2006 done
2007 if test -z "$ac_aux_dir"; then
2008   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2009 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2010    { (exit 1); exit 1; }; }
2011 fi
2012
2013 # These three variables are undocumented and unsupported,
2014 # and are intended to be withdrawn in a future Autoconf release.
2015 # They can cause serious problems if a builder's source tree is in a directory
2016 # whose full name contains unusual characters.
2017 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2018 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2019 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2020
2021
2022 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2023
2024
2025
2026
2027
2028 for ac_prog in true
2029 do
2030   # Extract the first word of "$ac_prog", so it can be a program name with args.
2031 set dummy $ac_prog; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   case $TRUEPRG in
2038   [\\/]* | ?:[\\/]*)
2039   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2040   ;;
2041   *)
2042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045   IFS=$as_save_IFS
2046   test -z "$as_dir" && as_dir=.
2047   for ac_exec_ext in '' $ac_executable_extensions; do
2048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2049     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2050     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051     break 2
2052   fi
2053 done
2054 done
2055 IFS=$as_save_IFS
2056
2057   ;;
2058 esac
2059 fi
2060 TRUEPRG=$ac_cv_path_TRUEPRG
2061 if test -n "$TRUEPRG"; then
2062   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2063 echo "${ECHO_T}$TRUEPRG" >&6; }
2064 else
2065   { echo "$as_me:$LINENO: result: no" >&5
2066 echo "${ECHO_T}no" >&6; }
2067 fi
2068
2069
2070   test -n "$TRUEPRG" && break
2071 done
2072 test -n "$TRUEPRG" || TRUEPRG=":"
2073
2074 for ac_prog in false
2075 do
2076   # Extract the first word of "$ac_prog", so it can be a program name with args.
2077 set dummy $ac_prog; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2081   echo $ECHO_N "(cached) $ECHO_C" >&6
2082 else
2083   case $FALSEPRG in
2084   [\\/]* | ?:[\\/]*)
2085   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2086   ;;
2087   *)
2088   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089 for as_dir in $PATH
2090 do
2091   IFS=$as_save_IFS
2092   test -z "$as_dir" && as_dir=.
2093   for ac_exec_ext in '' $ac_executable_extensions; do
2094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2097     break 2
2098   fi
2099 done
2100 done
2101 IFS=$as_save_IFS
2102
2103   ;;
2104 esac
2105 fi
2106 FALSEPRG=$ac_cv_path_FALSEPRG
2107 if test -n "$FALSEPRG"; then
2108   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2109 echo "${ECHO_T}$FALSEPRG" >&6; }
2110 else
2111   { echo "$as_me:$LINENO: result: no" >&5
2112 echo "${ECHO_T}no" >&6; }
2113 fi
2114
2115
2116   test -n "$FALSEPRG" && break
2117 done
2118 test -n "$FALSEPRG" || FALSEPRG=":"
2119
2120
2121
2122 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2123 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2124 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2125 echo "configuring for bacula $VERSION ($DATE)"
2126
2127
2128
2129 ac_ext=c
2130 ac_cpp='$CPP $CPPFLAGS'
2131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2134 if test -n "$ac_tool_prefix"; then
2135   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140   echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142   if test -n "$CC"; then
2143   ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2153     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161 fi
2162 CC=$ac_cv_prog_CC
2163 if test -n "$CC"; then
2164   { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2166 else
2167   { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2169 fi
2170
2171
2172 fi
2173 if test -z "$ac_cv_prog_CC"; then
2174   ac_ct_CC=$CC
2175   # Extract the first word of "gcc", so it can be a program name with args.
2176 set dummy gcc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   if test -n "$ac_ct_CC"; then
2183   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2184 else
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 for as_dir in $PATH
2187 do
2188   IFS=$as_save_IFS
2189   test -z "$as_dir" && as_dir=.
2190   for ac_exec_ext in '' $ac_executable_extensions; do
2191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2192     ac_cv_prog_ac_ct_CC="gcc"
2193     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194     break 2
2195   fi
2196 done
2197 done
2198 IFS=$as_save_IFS
2199
2200 fi
2201 fi
2202 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2203 if test -n "$ac_ct_CC"; then
2204   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2205 echo "${ECHO_T}$ac_ct_CC" >&6; }
2206 else
2207   { echo "$as_me:$LINENO: result: no" >&5
2208 echo "${ECHO_T}no" >&6; }
2209 fi
2210
2211   if test "x$ac_ct_CC" = x; then
2212     CC=""
2213   else
2214     case $cross_compiling:$ac_tool_warned in
2215 yes:)
2216 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2217 whose name does not start with the host triplet.  If you think this
2218 configuration is useful to you, please write to autoconf@gnu.org." >&5
2219 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2220 whose name does not start with the host triplet.  If you think this
2221 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2222 ac_tool_warned=yes ;;
2223 esac
2224     CC=$ac_ct_CC
2225   fi
2226 else
2227   CC="$ac_cv_prog_CC"
2228 fi
2229
2230 if test -z "$CC"; then
2231           if test -n "$ac_tool_prefix"; then
2232     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2233 set dummy ${ac_tool_prefix}cc; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237   echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239   if test -n "$CC"; then
2240   ac_cv_prog_CC="$CC" # Let the user override the test.
2241 else
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2244 do
2245   IFS=$as_save_IFS
2246   test -z "$as_dir" && as_dir=.
2247   for ac_exec_ext in '' $ac_executable_extensions; do
2248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249     ac_cv_prog_CC="${ac_tool_prefix}cc"
2250     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251     break 2
2252   fi
2253 done
2254 done
2255 IFS=$as_save_IFS
2256
2257 fi
2258 fi
2259 CC=$ac_cv_prog_CC
2260 if test -n "$CC"; then
2261   { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2263 else
2264   { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2266 fi
2267
2268
2269   fi
2270 fi
2271 if test -z "$CC"; then
2272   # Extract the first word of "cc", so it can be a program name with args.
2273 set dummy cc; ac_word=$2
2274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277   echo $ECHO_N "(cached) $ECHO_C" >&6
2278 else
2279   if test -n "$CC"; then
2280   ac_cv_prog_CC="$CC" # Let the user override the test.
2281 else
2282   ac_prog_rejected=no
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH
2285 do
2286   IFS=$as_save_IFS
2287   test -z "$as_dir" && as_dir=.
2288   for ac_exec_ext in '' $ac_executable_extensions; do
2289   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2291        ac_prog_rejected=yes
2292        continue
2293      fi
2294     ac_cv_prog_CC="cc"
2295     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296     break 2
2297   fi
2298 done
2299 done
2300 IFS=$as_save_IFS
2301
2302 if test $ac_prog_rejected = yes; then
2303   # We found a bogon in the path, so make sure we never use it.
2304   set dummy $ac_cv_prog_CC
2305   shift
2306   if test $# != 0; then
2307     # We chose a different compiler from the bogus one.
2308     # However, it has the same basename, so the bogon will be chosen
2309     # first if we set CC to just the basename; use the full file name.
2310     shift
2311     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2312   fi
2313 fi
2314 fi
2315 fi
2316 CC=$ac_cv_prog_CC
2317 if test -n "$CC"; then
2318   { echo "$as_me:$LINENO: result: $CC" >&5
2319 echo "${ECHO_T}$CC" >&6; }
2320 else
2321   { echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6; }
2323 fi
2324
2325
2326 fi
2327 if test -z "$CC"; then
2328   if test -n "$ac_tool_prefix"; then
2329   for ac_prog in cl.exe
2330   do
2331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2335 if test "${ac_cv_prog_CC+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   if test -n "$CC"; then
2339   ac_cv_prog_CC="$CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2349     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 CC=$ac_cv_prog_CC
2359 if test -n "$CC"; then
2360   { echo "$as_me:$LINENO: result: $CC" >&5
2361 echo "${ECHO_T}$CC" >&6; }
2362 else
2363   { echo "$as_me:$LINENO: result: no" >&5
2364 echo "${ECHO_T}no" >&6; }
2365 fi
2366
2367
2368     test -n "$CC" && break
2369   done
2370 fi
2371 if test -z "$CC"; then
2372   ac_ct_CC=$CC
2373   for ac_prog in cl.exe
2374 do
2375   # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   if test -n "$ac_ct_CC"; then
2383   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2384 else
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 for as_dir in $PATH
2387 do
2388   IFS=$as_save_IFS
2389   test -z "$as_dir" && as_dir=.
2390   for ac_exec_ext in '' $ac_executable_extensions; do
2391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392     ac_cv_prog_ac_ct_CC="$ac_prog"
2393     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2394     break 2
2395   fi
2396 done
2397 done
2398 IFS=$as_save_IFS
2399
2400 fi
2401 fi
2402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2403 if test -n "$ac_ct_CC"; then
2404   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2405 echo "${ECHO_T}$ac_ct_CC" >&6; }
2406 else
2407   { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2409 fi
2410
2411
2412   test -n "$ac_ct_CC" && break
2413 done
2414
2415   if test "x$ac_ct_CC" = x; then
2416     CC=""
2417   else
2418     case $cross_compiling:$ac_tool_warned in
2419 yes:)
2420 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2421 whose name does not start with the host triplet.  If you think this
2422 configuration is useful to you, please write to autoconf@gnu.org." >&5
2423 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2424 whose name does not start with the host triplet.  If you think this
2425 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2426 ac_tool_warned=yes ;;
2427 esac
2428     CC=$ac_ct_CC
2429   fi
2430 fi
2431
2432 fi
2433
2434
2435 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2436 See \`config.log' for more details." >&5
2437 echo "$as_me: error: no acceptable C compiler found in \$PATH
2438 See \`config.log' for more details." >&2;}
2439    { (exit 1); exit 1; }; }
2440
2441 # Provide some information about the compiler.
2442 echo "$as_me:$LINENO: checking for C compiler version" >&5
2443 ac_compiler=`set X $ac_compile; echo $2`
2444 { (ac_try="$ac_compiler --version >&5"
2445 case "(($ac_try" in
2446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447   *) ac_try_echo=$ac_try;;
2448 esac
2449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2450   (eval "$ac_compiler --version >&5") 2>&5
2451   ac_status=$?
2452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2453   (exit $ac_status); }
2454 { (ac_try="$ac_compiler -v >&5"
2455 case "(($ac_try" in
2456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457   *) ac_try_echo=$ac_try;;
2458 esac
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460   (eval "$ac_compiler -v >&5") 2>&5
2461   ac_status=$?
2462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463   (exit $ac_status); }
2464 { (ac_try="$ac_compiler -V >&5"
2465 case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_compiler -V >&5") 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }
2474
2475 cat >conftest.$ac_ext <<_ACEOF
2476 /* confdefs.h.  */
2477 _ACEOF
2478 cat confdefs.h >>conftest.$ac_ext
2479 cat >>conftest.$ac_ext <<_ACEOF
2480 /* end confdefs.h.  */
2481
2482 int
2483 main ()
2484 {
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 ac_clean_files_save=$ac_clean_files
2491 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2492 # Try to create an executable without -o first, disregard a.out.
2493 # It will help us diagnose broken compilers, and finding out an intuition
2494 # of exeext.
2495 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2496 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2497 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2498 #
2499 # List of possible output files, starting from the most likely.
2500 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2501 # only as a last resort.  b.out is created by i960 compilers.
2502 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2503 #
2504 # The IRIX 6 linker writes into existing files which may not be
2505 # executable, retaining their permissions.  Remove them first so a
2506 # subsequent execution test works.
2507 ac_rmfiles=
2508 for ac_file in $ac_files
2509 do
2510   case $ac_file in
2511     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2512     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2513   esac
2514 done
2515 rm -f $ac_rmfiles
2516
2517 if { (ac_try="$ac_link_default"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_link_default") 2>&5
2524   ac_status=$?
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); }; then
2527   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2529 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2530 # so that the user can short-circuit this test for compilers unknown to
2531 # Autoconf.
2532 for ac_file in $ac_files ''
2533 do
2534   test -f "$ac_file" || continue
2535   case $ac_file in
2536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2537         ;;
2538     [ab].out )
2539         # We found the default executable, but exeext='' is most
2540         # certainly right.
2541         break;;
2542     *.* )
2543         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2544         then :; else
2545            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546         fi
2547         # We set ac_cv_exeext here because the later test for it is not
2548         # safe: cross compilers may not add the suffix if given an `-o'
2549         # argument, so we may need to know it at that point already.
2550         # Even if this section looks crufty: it has the advantage of
2551         # actually working.
2552         break;;
2553     * )
2554         break;;
2555   esac
2556 done
2557 test "$ac_cv_exeext" = no && ac_cv_exeext=
2558
2559 else
2560   ac_file=''
2561 fi
2562
2563 { echo "$as_me:$LINENO: result: $ac_file" >&5
2564 echo "${ECHO_T}$ac_file" >&6; }
2565 if test -z "$ac_file"; then
2566   echo "$as_me: failed program was:" >&5
2567 sed 's/^/| /' conftest.$ac_ext >&5
2568
2569 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2570 See \`config.log' for more details." >&5
2571 echo "$as_me: error: C compiler cannot create executables
2572 See \`config.log' for more details." >&2;}
2573    { (exit 77); exit 77; }; }
2574 fi
2575
2576 ac_exeext=$ac_cv_exeext
2577
2578 # Check that the compiler produces executables we can run.  If not, either
2579 # the compiler is broken, or we cross compile.
2580 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2581 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2582 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2583 # If not cross compiling, check that we can run a simple program.
2584 if test "$cross_compiling" != yes; then
2585   if { ac_try='./$ac_file'
2586   { (case "(($ac_try" in
2587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2588   *) ac_try_echo=$ac_try;;
2589 esac
2590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2591   (eval "$ac_try") 2>&5
2592   ac_status=$?
2593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; }; then
2595     cross_compiling=no
2596   else
2597     if test "$cross_compiling" = maybe; then
2598         cross_compiling=yes
2599     else
2600         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2601 If you meant to cross compile, use \`--host'.
2602 See \`config.log' for more details." >&5
2603 echo "$as_me: error: cannot run C compiled programs.
2604 If you meant to cross compile, use \`--host'.
2605 See \`config.log' for more details." >&2;}
2606    { (exit 1); exit 1; }; }
2607     fi
2608   fi
2609 fi
2610 { echo "$as_me:$LINENO: result: yes" >&5
2611 echo "${ECHO_T}yes" >&6; }
2612
2613 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2614 ac_clean_files=$ac_clean_files_save
2615 # Check that the compiler produces executables we can run.  If not, either
2616 # the compiler is broken, or we cross compile.
2617 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2618 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2619 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2620 echo "${ECHO_T}$cross_compiling" >&6; }
2621
2622 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2623 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2624 if { (ac_try="$ac_link"
2625 case "(($ac_try" in
2626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2627   *) ac_try_echo=$ac_try;;
2628 esac
2629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2630   (eval "$ac_link") 2>&5
2631   ac_status=$?
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); }; then
2634   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2635 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2636 # work properly (i.e., refer to `conftest.exe'), while it won't with
2637 # `rm'.
2638 for ac_file in conftest.exe conftest conftest.*; do
2639   test -f "$ac_file" || continue
2640   case $ac_file in
2641     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2642     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2643           break;;
2644     * ) break;;
2645   esac
2646 done
2647 else
2648   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2649 See \`config.log' for more details." >&5
2650 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2651 See \`config.log' for more details." >&2;}
2652    { (exit 1); exit 1; }; }
2653 fi
2654
2655 rm -f conftest$ac_cv_exeext
2656 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2657 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2658
2659 rm -f conftest.$ac_ext
2660 EXEEXT=$ac_cv_exeext
2661 ac_exeext=$EXEEXT
2662 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2663 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2664 if test "${ac_cv_objext+set}" = set; then
2665   echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667   cat >conftest.$ac_ext <<_ACEOF
2668 /* confdefs.h.  */
2669 _ACEOF
2670 cat confdefs.h >>conftest.$ac_ext
2671 cat >>conftest.$ac_ext <<_ACEOF
2672 /* end confdefs.h.  */
2673
2674 int
2675 main ()
2676 {
2677
2678   ;
2679   return 0;
2680 }
2681 _ACEOF
2682 rm -f conftest.o conftest.obj
2683 if { (ac_try="$ac_compile"
2684 case "(($ac_try" in
2685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686   *) ac_try_echo=$ac_try;;
2687 esac
2688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689   (eval "$ac_compile") 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; then
2693   for ac_file in conftest.o conftest.obj conftest.*; do
2694   test -f "$ac_file" || continue;
2695   case $ac_file in
2696     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2697     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2698        break;;
2699   esac
2700 done
2701 else
2702   echo "$as_me: failed program was:" >&5
2703 sed 's/^/| /' conftest.$ac_ext >&5
2704
2705 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2706 See \`config.log' for more details." >&5
2707 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2708 See \`config.log' for more details." >&2;}
2709    { (exit 1); exit 1; }; }
2710 fi
2711
2712 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2713 fi
2714 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2715 echo "${ECHO_T}$ac_cv_objext" >&6; }
2716 OBJEXT=$ac_cv_objext
2717 ac_objext=$OBJEXT
2718 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2719 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2720 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   cat >conftest.$ac_ext <<_ACEOF
2724 /* confdefs.h.  */
2725 _ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h.  */
2729
2730 int
2731 main ()
2732 {
2733 #ifndef __GNUC__
2734        choke me
2735 #endif
2736
2737   ;
2738   return 0;
2739 }
2740 _ACEOF
2741 rm -f conftest.$ac_objext
2742 if { (ac_try="$ac_compile"
2743 case "(($ac_try" in
2744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745   *) ac_try_echo=$ac_try;;
2746 esac
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748   (eval "$ac_compile") 2>conftest.er1
2749   ac_status=$?
2750   grep -v '^ *+' conftest.er1 >conftest.err
2751   rm -f conftest.er1
2752   cat conftest.err >&5
2753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754   (exit $ac_status); } && {
2755          test -z "$ac_c_werror_flag" ||
2756          test ! -s conftest.err
2757        } && test -s conftest.$ac_objext; then
2758   ac_compiler_gnu=yes
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763         ac_compiler_gnu=no
2764 fi
2765
2766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2767 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2768
2769 fi
2770 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2771 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2772 GCC=`test $ac_compiler_gnu = yes && echo yes`
2773 ac_test_CFLAGS=${CFLAGS+set}
2774 ac_save_CFLAGS=$CFLAGS
2775 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2776 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2777 if test "${ac_cv_prog_cc_g+set}" = set; then
2778   echo $ECHO_N "(cached) $ECHO_C" >&6
2779 else
2780   ac_save_c_werror_flag=$ac_c_werror_flag
2781    ac_c_werror_flag=yes
2782    ac_cv_prog_cc_g=no
2783    CFLAGS="-g"
2784    cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (ac_try="$ac_compile"
2801 case "(($ac_try" in
2802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803   *) ac_try_echo=$ac_try;;
2804 esac
2805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2806   (eval "$ac_compile") 2>conftest.er1
2807   ac_status=$?
2808   grep -v '^ *+' conftest.er1 >conftest.err
2809   rm -f conftest.er1
2810   cat conftest.err >&5
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); } && {
2813          test -z "$ac_c_werror_flag" ||
2814          test ! -s conftest.err
2815        } && test -s conftest.$ac_objext; then
2816   ac_cv_prog_cc_g=yes
2817 else
2818   echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.$ac_ext >&5
2820
2821         CFLAGS=""
2822       cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_compile") 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } && {
2851          test -z "$ac_c_werror_flag" ||
2852          test ! -s conftest.err
2853        } && test -s conftest.$ac_objext; then
2854   :
2855 else
2856   echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859         ac_c_werror_flag=$ac_save_c_werror_flag
2860          CFLAGS="-g"
2861          cat >conftest.$ac_ext <<_ACEOF
2862 /* confdefs.h.  */
2863 _ACEOF
2864 cat confdefs.h >>conftest.$ac_ext
2865 cat >>conftest.$ac_ext <<_ACEOF
2866 /* end confdefs.h.  */
2867
2868 int
2869 main ()
2870 {
2871
2872   ;
2873   return 0;
2874 }
2875 _ACEOF
2876 rm -f conftest.$ac_objext
2877 if { (ac_try="$ac_compile"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_compile") 2>conftest.er1
2884   ac_status=$?
2885   grep -v '^ *+' conftest.er1 >conftest.err
2886   rm -f conftest.er1
2887   cat conftest.err >&5
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); } && {
2890          test -z "$ac_c_werror_flag" ||
2891          test ! -s conftest.err
2892        } && test -s conftest.$ac_objext; then
2893   ac_cv_prog_cc_g=yes
2894 else
2895   echo "$as_me: failed program was:" >&5
2896 sed 's/^/| /' conftest.$ac_ext >&5
2897
2898
2899 fi
2900
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 fi
2903
2904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 fi
2906
2907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2908    ac_c_werror_flag=$ac_save_c_werror_flag
2909 fi
2910 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2911 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2912 if test "$ac_test_CFLAGS" = set; then
2913   CFLAGS=$ac_save_CFLAGS
2914 elif test $ac_cv_prog_cc_g = yes; then
2915   if test "$GCC" = yes; then
2916     CFLAGS="-g -O2"
2917   else
2918     CFLAGS="-g"
2919   fi
2920 else
2921   if test "$GCC" = yes; then
2922     CFLAGS="-O2"
2923   else
2924     CFLAGS=
2925   fi
2926 fi
2927 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2928 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2929 if test "${ac_cv_prog_cc_c89+set}" = set; then
2930   echo $ECHO_N "(cached) $ECHO_C" >&6
2931 else
2932   ac_cv_prog_cc_c89=no
2933 ac_save_CC=$CC
2934 cat >conftest.$ac_ext <<_ACEOF
2935 /* confdefs.h.  */
2936 _ACEOF
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h.  */
2940 #include <stdarg.h>
2941 #include <stdio.h>
2942 #include <sys/types.h>
2943 #include <sys/stat.h>
2944 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2945 struct buf { int x; };
2946 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2947 static char *e (p, i)
2948      char **p;
2949      int i;
2950 {
2951   return p[i];
2952 }
2953 static char *f (char * (*g) (char **, int), char **p, ...)
2954 {
2955   char *s;
2956   va_list v;
2957   va_start (v,p);
2958   s = g (p, va_arg (v,int));
2959   va_end (v);
2960   return s;
2961 }
2962
2963 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2964    function prototypes and stuff, but not '\xHH' hex character constants.
2965    These don't provoke an error unfortunately, instead are silently treated
2966    as 'x'.  The following induces an error, until -std is added to get
2967    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2968    array size at least.  It's necessary to write '\x00'==0 to get something
2969    that's true only with -std.  */
2970 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2971
2972 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2973    inside strings and character constants.  */
2974 #define FOO(x) 'x'
2975 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2976
2977 int test (int i, double x);
2978 struct s1 {int (*f) (int a);};
2979 struct s2 {int (*f) (double a);};
2980 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2981 int argc;
2982 char **argv;
2983 int
2984 main ()
2985 {
2986 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2992         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2993 do
2994   CC="$ac_save_CC $ac_arg"
2995   rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compile") 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } && {
3009          test -z "$ac_c_werror_flag" ||
3010          test ! -s conftest.err
3011        } && test -s conftest.$ac_objext; then
3012   ac_cv_prog_cc_c89=$ac_arg
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017
3018 fi
3019
3020 rm -f core conftest.err conftest.$ac_objext
3021   test "x$ac_cv_prog_cc_c89" != "xno" && break
3022 done
3023 rm -f conftest.$ac_ext
3024 CC=$ac_save_CC
3025
3026 fi
3027 # AC_CACHE_VAL
3028 case "x$ac_cv_prog_cc_c89" in
3029   x)
3030     { echo "$as_me:$LINENO: result: none needed" >&5
3031 echo "${ECHO_T}none needed" >&6; } ;;
3032   xno)
3033     { echo "$as_me:$LINENO: result: unsupported" >&5
3034 echo "${ECHO_T}unsupported" >&6; } ;;
3035   *)
3036     CC="$CC $ac_cv_prog_cc_c89"
3037     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3038 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3039 esac
3040
3041
3042 ac_ext=c
3043 ac_cpp='$CPP $CPPFLAGS'
3044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047
3048 ac_ext=cpp
3049 ac_cpp='$CXXCPP $CPPFLAGS'
3050 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3051 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3052 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3053 if test -z "$CXX"; then
3054   if test -n "$CCC"; then
3055     CXX=$CCC
3056   else
3057     if test -n "$ac_tool_prefix"; then
3058   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3059   do
3060     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_CXX+set}" = set; then
3065   echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067   if test -n "$CXX"; then
3068   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073   IFS=$as_save_IFS
3074   test -z "$as_dir" && as_dir=.
3075   for ac_exec_ext in '' $ac_executable_extensions; do
3076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079     break 2
3080   fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CXX=$ac_cv_prog_CXX
3088 if test -n "$CXX"; then
3089   { echo "$as_me:$LINENO: result: $CXX" >&5
3090 echo "${ECHO_T}$CXX" >&6; }
3091 else
3092   { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3094 fi
3095
3096
3097     test -n "$CXX" && break
3098   done
3099 fi
3100 if test -z "$CXX"; then
3101   ac_ct_CXX=$CXX
3102   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3103 do
3104   # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3109   echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111   if test -n "$ac_ct_CXX"; then
3112   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117   IFS=$as_save_IFS
3118   test -z "$as_dir" && as_dir=.
3119   for ac_exec_ext in '' $ac_executable_extensions; do
3120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121     ac_cv_prog_ac_ct_CXX="$ac_prog"
3122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123     break 2
3124   fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3132 if test -n "$ac_ct_CXX"; then
3133   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3134 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3135 else
3136   { echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6; }
3138 fi
3139
3140
3141   test -n "$ac_ct_CXX" && break
3142 done
3143
3144   if test "x$ac_ct_CXX" = x; then
3145     CXX="g++"
3146   else
3147     case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet.  If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&5
3152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet.  If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157     CXX=$ac_ct_CXX
3158   fi
3159 fi
3160
3161   fi
3162 fi
3163 # Provide some information about the compiler.
3164 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3165 ac_compiler=`set X $ac_compile; echo $2`
3166 { (ac_try="$ac_compiler --version >&5"
3167 case "(($ac_try" in
3168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169   *) ac_try_echo=$ac_try;;
3170 esac
3171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172   (eval "$ac_compiler --version >&5") 2>&5
3173   ac_status=$?
3174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175   (exit $ac_status); }
3176 { (ac_try="$ac_compiler -v >&5"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182   (eval "$ac_compiler -v >&5") 2>&5
3183   ac_status=$?
3184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185   (exit $ac_status); }
3186 { (ac_try="$ac_compiler -V >&5"
3187 case "(($ac_try" in
3188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189   *) ac_try_echo=$ac_try;;
3190 esac
3191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3192   (eval "$ac_compiler -V >&5") 2>&5
3193   ac_status=$?
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); }
3196
3197 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3198 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3199 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3200   echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202   cat >conftest.$ac_ext <<_ACEOF
3203 /* confdefs.h.  */
3204 _ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h.  */
3208
3209 int
3210 main ()
3211 {
3212 #ifndef __GNUC__
3213        choke me
3214 #endif
3215
3216   ;
3217   return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3222 case "(($ac_try" in
3223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224   *) ac_try_echo=$ac_try;;
3225 esac
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227   (eval "$ac_compile") 2>conftest.er1
3228   ac_status=$?
3229   grep -v '^ *+' conftest.er1 >conftest.err
3230   rm -f conftest.er1
3231   cat conftest.err >&5
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); } && {
3234          test -z "$ac_cxx_werror_flag" ||
3235          test ! -s conftest.err
3236        } && test -s conftest.$ac_objext; then
3237   ac_compiler_gnu=yes
3238 else
3239   echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242         ac_compiler_gnu=no
3243 fi
3244
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3247
3248 fi
3249 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3250 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3251 GXX=`test $ac_compiler_gnu = yes && echo yes`
3252 ac_test_CXXFLAGS=${CXXFLAGS+set}
3253 ac_save_CXXFLAGS=$CXXFLAGS
3254 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3255 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3256 if test "${ac_cv_prog_cxx_g+set}" = set; then
3257   echo $ECHO_N "(cached) $ECHO_C" >&6
3258 else
3259   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3260    ac_cxx_werror_flag=yes
3261    ac_cv_prog_cxx_g=no
3262    CXXFLAGS="-g"
3263    cat >conftest.$ac_ext <<_ACEOF
3264 /* confdefs.h.  */
3265 _ACEOF
3266 cat confdefs.h >>conftest.$ac_ext
3267 cat >>conftest.$ac_ext <<_ACEOF
3268 /* end confdefs.h.  */
3269
3270 int
3271 main ()
3272 {
3273
3274   ;
3275   return 0;
3276 }
3277 _ACEOF
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282   *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285   (eval "$ac_compile") 2>conftest.er1
3286   ac_status=$?
3287   grep -v '^ *+' conftest.er1 >conftest.err
3288   rm -f conftest.er1
3289   cat conftest.err >&5
3290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291   (exit $ac_status); } && {
3292          test -z "$ac_cxx_werror_flag" ||
3293          test ! -s conftest.err
3294        } && test -s conftest.$ac_objext; then
3295   ac_cv_prog_cxx_g=yes
3296 else
3297   echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300         CXXFLAGS=""
3301       cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307
3308 int
3309 main ()
3310 {
3311
3312   ;
3313   return 0;
3314 }
3315 _ACEOF
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_compile") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } && {
3330          test -z "$ac_cxx_werror_flag" ||
3331          test ! -s conftest.err
3332        } && test -s conftest.$ac_objext; then
3333   :
3334 else
3335   echo "$as_me: failed program was:" >&5
3336 sed 's/^/| /' conftest.$ac_ext >&5
3337
3338         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3339          CXXFLAGS="-g"
3340          cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h.  */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h.  */
3346
3347 int
3348 main ()
3349 {
3350
3351   ;
3352   return 0;
3353 }
3354 _ACEOF
3355 rm -f conftest.$ac_objext
3356 if { (ac_try="$ac_compile"
3357 case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_compile") 2>conftest.er1
3363   ac_status=$?
3364   grep -v '^ *+' conftest.er1 >conftest.err
3365   rm -f conftest.er1
3366   cat conftest.err >&5
3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368   (exit $ac_status); } && {
3369          test -z "$ac_cxx_werror_flag" ||
3370          test ! -s conftest.err
3371        } && test -s conftest.$ac_objext; then
3372   ac_cv_prog_cxx_g=yes
3373 else
3374   echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3376
3377
3378 fi
3379
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 fi
3382
3383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3384 fi
3385
3386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3387    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3388 fi
3389 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3390 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3391 if test "$ac_test_CXXFLAGS" = set; then
3392   CXXFLAGS=$ac_save_CXXFLAGS
3393 elif test $ac_cv_prog_cxx_g = yes; then
3394   if test "$GXX" = yes; then
3395     CXXFLAGS="-g -O2"
3396   else
3397     CXXFLAGS="-g"
3398   fi
3399 else
3400   if test "$GXX" = yes; then
3401     CXXFLAGS="-O2"
3402   else
3403     CXXFLAGS=
3404   fi
3405 fi
3406 ac_ext=c
3407 ac_cpp='$CPP $CPPFLAGS'
3408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3411
3412 if test "x$CC" != xcc; then
3413   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3414 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3415 else
3416   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3417 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3418 fi
3419 set dummy $CC; ac_cc=`echo $2 |
3420                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3421 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3422   echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424   cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h.  */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h.  */
3430
3431 int
3432 main ()
3433 {
3434
3435   ;
3436   return 0;
3437 }
3438 _ACEOF
3439 # Make sure it works both with $CC and with simple cc.
3440 # We do the test twice because some compilers refuse to overwrite an
3441 # existing .o file with -o, though they will create one.
3442 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3443 rm -f conftest2.*
3444 if { (case "(($ac_try" in
3445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446   *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449   (eval "$ac_try") 2>&5
3450   ac_status=$?
3451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452   (exit $ac_status); } &&
3453    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3455   *) ac_try_echo=$ac_try;;
3456 esac
3457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3458   (eval "$ac_try") 2>&5
3459   ac_status=$?
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); };
3462 then
3463   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3464   if test "x$CC" != xcc; then
3465     # Test first that cc exists at all.
3466     if { ac_try='cc -c conftest.$ac_ext >&5'
3467   { (case "(($ac_try" in
3468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469   *) ac_try_echo=$ac_try;;
3470 esac
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472   (eval "$ac_try") 2>&5
3473   ac_status=$?
3474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475   (exit $ac_status); }; }; then
3476       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3477       rm -f conftest2.*
3478       if { (case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } &&
3487          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_try") 2>&5
3493   ac_status=$?
3494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495   (exit $ac_status); };
3496       then
3497         # cc works too.
3498         :
3499       else
3500         # cc exists but doesn't like -o.
3501         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3502       fi
3503     fi
3504   fi
3505 else
3506   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3507 fi
3508 rm -f core conftest*
3509
3510 fi
3511 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3512   { echo "$as_me:$LINENO: result: yes" >&5
3513 echo "${ECHO_T}yes" >&6; }
3514 else
3515   { echo "$as_me:$LINENO: result: no" >&5
3516 echo "${ECHO_T}no" >&6; }
3517
3518 cat >>confdefs.h <<\_ACEOF
3519 #define NO_MINUS_C_MINUS_O 1
3520 _ACEOF
3521
3522 fi
3523
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3530 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3531 # On Suns, sometimes $CPP names a directory.
3532 if test -n "$CPP" && test -d "$CPP"; then
3533   CPP=
3534 fi
3535 if test -z "$CPP"; then
3536   if test "${ac_cv_prog_CPP+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539       # Double quotes because CPP needs to be expanded
3540     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3541     do
3542       ac_preproc_ok=false
3543 for ac_c_preproc_warn_flag in '' yes
3544 do
3545   # Use a header file that comes with gcc, so configuring glibc
3546   # with a fresh cross-compiler works.
3547   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3548   # <limits.h> exists even on freestanding compilers.
3549   # On the NeXT, cc -E runs the code through the compiler's parser,
3550   # not just through cpp. "Syntax error" is here to catch this case.
3551   cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h.  */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h.  */
3557 #ifdef __STDC__
3558 # include <limits.h>
3559 #else
3560 # include <assert.h>
3561 #endif
3562                      Syntax error
3563 _ACEOF
3564 if { (ac_try="$ac_cpp conftest.$ac_ext"
3565 case "(($ac_try" in
3566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567   *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3571   ac_status=$?
3572   grep -v '^ *+' conftest.er1 >conftest.err
3573   rm -f conftest.er1
3574   cat conftest.err >&5
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); } >/dev/null && {
3577          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3578          test ! -s conftest.err
3579        }; then
3580   :
3581 else
3582   echo "$as_me: failed program was:" >&5
3583 sed 's/^/| /' conftest.$ac_ext >&5
3584
3585   # Broken: fails on valid input.
3586 continue
3587 fi
3588
3589 rm -f conftest.err conftest.$ac_ext
3590
3591   # OK, works on sane cases.  Now check whether nonexistent headers
3592   # can be detected and how.
3593   cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h.  */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h.  */
3599 #include <ac_nonexistent.h>
3600 _ACEOF
3601 if { (ac_try="$ac_cpp conftest.$ac_ext"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3608   ac_status=$?
3609   grep -v '^ *+' conftest.er1 >conftest.err
3610   rm -f conftest.er1
3611   cat conftest.err >&5
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); } >/dev/null && {
3614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3615          test ! -s conftest.err
3616        }; then
3617   # Broken: success on invalid input.
3618 continue
3619 else
3620   echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623   # Passes both tests.
3624 ac_preproc_ok=:
3625 break
3626 fi
3627
3628 rm -f conftest.err conftest.$ac_ext
3629
3630 done
3631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3632 rm -f conftest.err conftest.$ac_ext
3633 if $ac_preproc_ok; then
3634   break
3635 fi
3636
3637     done
3638     ac_cv_prog_CPP=$CPP
3639
3640 fi
3641   CPP=$ac_cv_prog_CPP
3642 else
3643   ac_cv_prog_CPP=$CPP
3644 fi
3645 { echo "$as_me:$LINENO: result: $CPP" >&5
3646 echo "${ECHO_T}$CPP" >&6; }
3647 ac_preproc_ok=false
3648 for ac_c_preproc_warn_flag in '' yes
3649 do
3650   # Use a header file that comes with gcc, so configuring glibc
3651   # with a fresh cross-compiler works.
3652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3653   # <limits.h> exists even on freestanding compilers.
3654   # On the NeXT, cc -E runs the code through the compiler's parser,
3655   # not just through cpp. "Syntax error" is here to catch this case.
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 #ifdef __STDC__
3663 # include <limits.h>
3664 #else
3665 # include <assert.h>
3666 #endif
3667                      Syntax error
3668 _ACEOF
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3670 case "(($ac_try" in
3671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672   *) ac_try_echo=$ac_try;;
3673 esac
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3676   ac_status=$?
3677   grep -v '^ *+' conftest.er1 >conftest.err
3678   rm -f conftest.er1
3679   cat conftest.err >&5
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); } >/dev/null && {
3682          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683          test ! -s conftest.err
3684        }; then
3685   :
3686 else
3687   echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690   # Broken: fails on valid input.
3691 continue
3692 fi
3693
3694 rm -f conftest.err conftest.$ac_ext
3695
3696   # OK, works on sane cases.  Now check whether nonexistent headers
3697   # can be detected and how.
3698   cat >conftest.$ac_ext <<_ACEOF
3699 /* confdefs.h.  */
3700 _ACEOF
3701 cat confdefs.h >>conftest.$ac_ext
3702 cat >>conftest.$ac_ext <<_ACEOF
3703 /* end confdefs.h.  */
3704 #include <ac_nonexistent.h>
3705 _ACEOF
3706 if { (ac_try="$ac_cpp conftest.$ac_ext"
3707 case "(($ac_try" in
3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709   *) ac_try_echo=$ac_try;;
3710 esac
3711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3713   ac_status=$?
3714   grep -v '^ *+' conftest.er1 >conftest.err
3715   rm -f conftest.er1
3716   cat conftest.err >&5
3717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718   (exit $ac_status); } >/dev/null && {
3719          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3720          test ! -s conftest.err
3721        }; then
3722   # Broken: success on invalid input.
3723 continue
3724 else
3725   echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728   # Passes both tests.
3729 ac_preproc_ok=:
3730 break
3731 fi
3732
3733 rm -f conftest.err conftest.$ac_ext
3734
3735 done
3736 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3737 rm -f conftest.err conftest.$ac_ext
3738 if $ac_preproc_ok; then
3739   :
3740 else
3741   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3742 See \`config.log' for more details." >&5
3743 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3744 See \`config.log' for more details." >&2;}
3745    { (exit 1); exit 1; }; }
3746 fi
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
3755 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3756 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3757 if test "${ac_cv_path_GREP+set}" = set; then
3758   echo $ECHO_N "(cached) $ECHO_C" >&6
3759 else
3760   # Extract the first word of "grep ggrep" to use in msg output
3761 if test -z "$GREP"; then
3762 set dummy grep ggrep; ac_prog_name=$2
3763 if test "${ac_cv_path_GREP+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   ac_path_GREP_found=false
3767 # Loop through the user's path and test for each of PROGNAME-LIST
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3770 do
3771   IFS=$as_save_IFS
3772   test -z "$as_dir" && as_dir=.
3773   for ac_prog in grep ggrep; do
3774   for ac_exec_ext in '' $ac_executable_extensions; do
3775     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3776     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3777     # Check for GNU ac_path_GREP and select it if it is found.
3778   # Check for GNU $ac_path_GREP
3779 case `"$ac_path_GREP" --version 2>&1` in
3780 *GNU*)
3781   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3782 *)
3783   ac_count=0
3784   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3785   while :
3786   do
3787     cat "conftest.in" "conftest.in" >"conftest.tmp"
3788     mv "conftest.tmp" "conftest.in"
3789     cp "conftest.in" "conftest.nl"
3790     echo 'GREP' >> "conftest.nl"
3791     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3792     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3793     ac_count=`expr $ac_count + 1`
3794     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3795       # Best one so far, save it but keep looking for a better one
3796       ac_cv_path_GREP="$ac_path_GREP"
3797       ac_path_GREP_max=$ac_count
3798     fi
3799     # 10*(2^10) chars as input seems more than enough
3800     test $ac_count -gt 10 && break
3801   done
3802   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3803 esac
3804
3805
3806     $ac_path_GREP_found && break 3
3807   done
3808 done
3809
3810 done
3811 IFS=$as_save_IFS
3812
3813
3814 fi
3815
3816 GREP="$ac_cv_path_GREP"
3817 if test -z "$GREP"; then
3818   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3819 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3820    { (exit 1); exit 1; }; }
3821 fi
3822
3823 else
3824   ac_cv_path_GREP=$GREP
3825 fi
3826
3827
3828 fi
3829 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3830 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3831  GREP="$ac_cv_path_GREP"
3832
3833
3834 { echo "$as_me:$LINENO: checking for egrep" >&5
3835 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3836 if test "${ac_cv_path_EGREP+set}" = set; then
3837   echo $ECHO_N "(cached) $ECHO_C" >&6
3838 else
3839   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3840    then ac_cv_path_EGREP="$GREP -E"
3841    else
3842      # Extract the first word of "egrep" to use in msg output
3843 if test -z "$EGREP"; then
3844 set dummy egrep; ac_prog_name=$2
3845 if test "${ac_cv_path_EGREP+set}" = set; then
3846   echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848   ac_path_EGREP_found=false
3849 # Loop through the user's path and test for each of PROGNAME-LIST
3850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3852 do
3853   IFS=$as_save_IFS
3854   test -z "$as_dir" && as_dir=.
3855   for ac_prog in egrep; do
3856   for ac_exec_ext in '' $ac_executable_extensions; do
3857     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3858     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3859     # Check for GNU ac_path_EGREP and select it if it is found.
3860   # Check for GNU $ac_path_EGREP
3861 case `"$ac_path_EGREP" --version 2>&1` in
3862 *GNU*)
3863   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3864 *)
3865   ac_count=0
3866   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3867   while :
3868   do
3869     cat "conftest.in" "conftest.in" >"conftest.tmp"
3870     mv "conftest.tmp" "conftest.in"
3871     cp "conftest.in" "conftest.nl"
3872     echo 'EGREP' >> "conftest.nl"
3873     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3874     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3875     ac_count=`expr $ac_count + 1`
3876     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3877       # Best one so far, save it but keep looking for a better one
3878       ac_cv_path_EGREP="$ac_path_EGREP"
3879       ac_path_EGREP_max=$ac_count
3880     fi
3881     # 10*(2^10) chars as input seems more than enough
3882     test $ac_count -gt 10 && break
3883   done
3884   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3885 esac
3886
3887
3888     $ac_path_EGREP_found && break 3
3889   done
3890 done
3891
3892 done
3893 IFS=$as_save_IFS
3894
3895
3896 fi
3897
3898 EGREP="$ac_cv_path_EGREP"
3899 if test -z "$EGREP"; then
3900   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3901 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3902    { (exit 1); exit 1; }; }
3903 fi
3904
3905 else
3906   ac_cv_path_EGREP=$EGREP
3907 fi
3908
3909
3910    fi
3911 fi
3912 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3913 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3914  EGREP="$ac_cv_path_EGREP"
3915
3916
3917 if test $ac_cv_c_compiler_gnu = yes; then
3918     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3919 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3920 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923     ac_pattern="Autoconf.*'x'"
3924   cat >conftest.$ac_ext <<_ACEOF
3925 /* confdefs.h.  */
3926 _ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h.  */
3930 #include <sgtty.h>
3931 Autoconf TIOCGETP
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3935   ac_cv_prog_gcc_traditional=yes
3936 else
3937   ac_cv_prog_gcc_traditional=no
3938 fi
3939 rm -f conftest*
3940
3941
3942   if test $ac_cv_prog_gcc_traditional = no; then
3943     cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h.  */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h.  */
3949 #include <termio.h>
3950 Autoconf TCGETA
3951 _ACEOF
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3954   ac_cv_prog_gcc_traditional=yes
3955 fi
3956 rm -f conftest*
3957
3958   fi
3959 fi
3960 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3961 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3962   if test $ac_cv_prog_gcc_traditional = yes; then
3963     CC="$CC -traditional"
3964   fi
3965 fi
3966
3967 BASECC=`basename $CC`
3968 have_gcc=no
3969 if test "x$BASECC" = xgcc; then
3970    cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_GCC 1
3972 _ACEOF
3973
3974    have_gcc=yes
3975 fi
3976 # Extract the first word of "$CXX", so it can be a program name with args.
3977 set dummy $CXX; ac_word=$2
3978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3980 if test "${ac_cv_path_CXX+set}" = set; then
3981   echo $ECHO_N "(cached) $ECHO_C" >&6
3982 else
3983   case $CXX in
3984   [\\/]* | ?:[\\/]*)
3985   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3986   ;;
3987   *)
3988   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for ac_exec_ext in '' $ac_executable_extensions; do
3994   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3995     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3996     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997     break 2
3998   fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4004   ;;
4005 esac
4006 fi
4007 CXX=$ac_cv_path_CXX
4008 if test -n "$CXX"; then
4009   { echo "$as_me:$LINENO: result: $CXX" >&5
4010 echo "${ECHO_T}$CXX" >&6; }
4011 else
4012   { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4014 fi
4015
4016
4017 if test ! -e $CXX; then
4018    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4019 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4020    { (exit 1); exit 1; }; }
4021 fi
4022
4023 # Find a good install program.  We prefer a C program (faster),
4024 # so one script is as good as another.  But avoid the broken or
4025 # incompatible versions:
4026 # SysV /etc/install, /usr/sbin/install
4027 # SunOS /usr/etc/install
4028 # IRIX /sbin/install
4029 # AIX /bin/install
4030 # AmigaOS /C/install, which installs bootblocks on floppy discs
4031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4034 # OS/2's system install, which has a completely different semantic
4035 # ./install, which can be erroneously created by make from ./install.sh.
4036 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4037 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4038 if test -z "$INSTALL"; then
4039 if test "${ac_cv_path_install+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 for as_dir in $PATH
4044 do
4045   IFS=$as_save_IFS
4046   test -z "$as_dir" && as_dir=.
4047   # Account for people who put trailing slashes in PATH elements.
4048 case $as_dir/ in
4049   ./ | .// | /cC/* | \
4050   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4051   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4052   /usr/ucb/* ) ;;
4053   *)
4054     # OSF1 and SCO ODT 3.0 have their own names for install.
4055     # Don't use installbsd from OSF since it installs stuff as root
4056     # by default.
4057     for ac_prog in ginstall scoinst install; do
4058       for ac_exec_ext in '' $ac_executable_extensions; do
4059         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4060           if test $ac_prog = install &&
4061             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4062             # AIX install.  It has an incompatible calling convention.
4063             :
4064           elif test $ac_prog = install &&
4065             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4066             # program-specific install script used by HP pwplus--don't use.
4067             :
4068           else
4069             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4070             break 3
4071           fi
4072         fi
4073       done
4074     done
4075     ;;
4076 esac
4077 done
4078 IFS=$as_save_IFS
4079
4080
4081 fi
4082   if test "${ac_cv_path_install+set}" = set; then
4083     INSTALL=$ac_cv_path_install
4084   else
4085     # As a last resort, use the slow shell script.  Don't cache a
4086     # value for INSTALL within a source directory, because that will
4087     # break other packages using the cache if that directory is
4088     # removed, or if the value is a relative name.
4089     INSTALL=$ac_install_sh
4090   fi
4091 fi
4092 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4093 echo "${ECHO_T}$INSTALL" >&6; }
4094
4095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4096 # It thinks the first close brace ends the variable substitution.
4097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4098
4099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4100
4101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4102
4103 if test -n "$ac_tool_prefix"; then
4104   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4105 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4108 if test "${ac_cv_prog_RANLIB+set}" = set; then
4109   echo $ECHO_N "(cached) $ECHO_C" >&6
4110 else
4111   if test -n "$RANLIB"; then
4112   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4113 else
4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 for as_dir in $PATH
4116 do
4117   IFS=$as_save_IFS
4118   test -z "$as_dir" && as_dir=.
4119   for ac_exec_ext in '' $ac_executable_extensions; do
4120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4121     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4122     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4123     break 2
4124   fi
4125 done
4126 done
4127 IFS=$as_save_IFS
4128
4129 fi
4130 fi
4131 RANLIB=$ac_cv_prog_RANLIB
4132 if test -n "$RANLIB"; then
4133   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4134 echo "${ECHO_T}$RANLIB" >&6; }
4135 else
4136   { echo "$as_me:$LINENO: result: no" >&5
4137 echo "${ECHO_T}no" >&6; }
4138 fi
4139
4140
4141 fi
4142 if test -z "$ac_cv_prog_RANLIB"; then
4143   ac_ct_RANLIB=$RANLIB
4144   # Extract the first word of "ranlib", so it can be a program name with args.
4145 set dummy ranlib; ac_word=$2
4146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4149   echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151   if test -n "$ac_ct_RANLIB"; then
4152   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4156 do
4157   IFS=$as_save_IFS
4158   test -z "$as_dir" && as_dir=.
4159   for ac_exec_ext in '' $ac_executable_extensions; do
4160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161     ac_cv_prog_ac_ct_RANLIB="ranlib"
4162     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163     break 2
4164   fi
4165 done
4166 done
4167 IFS=$as_save_IFS
4168
4169 fi
4170 fi
4171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4172 if test -n "$ac_ct_RANLIB"; then
4173   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4175 else
4176   { echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6; }
4178 fi
4179
4180   if test "x$ac_ct_RANLIB" = x; then
4181     RANLIB=":"
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet.  If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&5
4188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189 whose name does not start with the host triplet.  If you think this
4190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191 ac_tool_warned=yes ;;
4192 esac
4193     RANLIB=$ac_ct_RANLIB
4194   fi
4195 else
4196   RANLIB="$ac_cv_prog_RANLIB"
4197 fi
4198
4199 # Extract the first word of "mv", so it can be a program name with args.
4200 set dummy mv; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_path_MV+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   case $MV in
4207   [\\/]* | ?:[\\/]*)
4208   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4209   ;;
4210   *)
4211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4213 do
4214   IFS=$as_save_IFS
4215   test -z "$as_dir" && as_dir=.
4216   for ac_exec_ext in '' $ac_executable_extensions; do
4217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220     break 2
4221   fi
4222 done
4223 done
4224 IFS=$as_save_IFS
4225
4226   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4227   ;;
4228 esac
4229 fi
4230 MV=$ac_cv_path_MV
4231 if test -n "$MV"; then
4232   { echo "$as_me:$LINENO: result: $MV" >&5
4233 echo "${ECHO_T}$MV" >&6; }
4234 else
4235   { echo "$as_me:$LINENO: result: no" >&5
4236 echo "${ECHO_T}no" >&6; }
4237 fi
4238
4239
4240 # Extract the first word of "rm", so it can be a program name with args.
4241 set dummy rm; ac_word=$2
4242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4244 if test "${ac_cv_path_RM+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247   case $RM in
4248   [\\/]* | ?:[\\/]*)
4249   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4250   ;;
4251   *)
4252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4254 do
4255   IFS=$as_save_IFS
4256   test -z "$as_dir" && as_dir=.
4257   for ac_exec_ext in '' $ac_executable_extensions; do
4258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4260     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261     break 2
4262   fi
4263 done
4264 done
4265 IFS=$as_save_IFS
4266
4267   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4268   ;;
4269 esac
4270 fi
4271 RM=$ac_cv_path_RM
4272 if test -n "$RM"; then
4273   { echo "$as_me:$LINENO: result: $RM" >&5
4274 echo "${ECHO_T}$RM" >&6; }
4275 else
4276   { echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6; }
4278 fi
4279
4280
4281 # Extract the first word of "cp", so it can be a program name with args.
4282 set dummy cp; ac_word=$2
4283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4285 if test "${ac_cv_path_CP+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   case $CP in
4289   [\\/]* | ?:[\\/]*)
4290   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4291   ;;
4292   *)
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306 IFS=$as_save_IFS
4307
4308   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4309   ;;
4310 esac
4311 fi
4312 CP=$ac_cv_path_CP
4313 if test -n "$CP"; then
4314   { echo "$as_me:$LINENO: result: $CP" >&5
4315 echo "${ECHO_T}$CP" >&6; }
4316 else
4317   { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4319 fi
4320
4321
4322 # Extract the first word of "sed", so it can be a program name with args.
4323 set dummy sed; ac_word=$2
4324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4326 if test "${ac_cv_path_SED+set}" = set; then
4327   echo $ECHO_N "(cached) $ECHO_C" >&6
4328 else
4329   case $SED in
4330   [\\/]* | ?:[\\/]*)
4331   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4332   ;;
4333   *)
4334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337   IFS=$as_save_IFS
4338   test -z "$as_dir" && as_dir=.
4339   for ac_exec_ext in '' $ac_executable_extensions; do
4340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4342     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343     break 2
4344   fi
4345 done
4346 done
4347 IFS=$as_save_IFS
4348
4349   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4350   ;;
4351 esac
4352 fi
4353 SED=$ac_cv_path_SED
4354 if test -n "$SED"; then
4355   { echo "$as_me:$LINENO: result: $SED" >&5
4356 echo "${ECHO_T}$SED" >&6; }
4357 else
4358   { echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6; }
4360 fi
4361
4362
4363 # Extract the first word of "echo", so it can be a program name with args.
4364 set dummy echo; ac_word=$2
4365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4367 if test "${ac_cv_path_ECHO+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   case $ECHO in
4371   [\\/]* | ?:[\\/]*)
4372   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4373   ;;
4374   *)
4375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380   for ac_exec_ext in '' $ac_executable_extensions; do
4381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4382     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384     break 2
4385   fi
4386 done
4387 done
4388 IFS=$as_save_IFS
4389
4390   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4391   ;;
4392 esac
4393 fi
4394 ECHO=$ac_cv_path_ECHO
4395 if test -n "$ECHO"; then
4396   { echo "$as_me:$LINENO: result: $ECHO" >&5
4397 echo "${ECHO_T}$ECHO" >&6; }
4398 else
4399   { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4401 fi
4402
4403
4404 # Extract the first word of "cmp", so it can be a program name with args.
4405 set dummy cmp; ac_word=$2
4406 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4408 if test "${ac_cv_path_CMP+set}" = set; then
4409   echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411   case $CMP in
4412   [\\/]* | ?:[\\/]*)
4413   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4414   ;;
4415   *)
4416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417 for as_dir in $PATH
4418 do
4419   IFS=$as_save_IFS
4420   test -z "$as_dir" && as_dir=.
4421   for ac_exec_ext in '' $ac_executable_extensions; do
4422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4423     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425     break 2
4426   fi
4427 done
4428 done
4429 IFS=$as_save_IFS
4430
4431   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4432   ;;
4433 esac
4434 fi
4435 CMP=$ac_cv_path_CMP
4436 if test -n "$CMP"; then
4437   { echo "$as_me:$LINENO: result: $CMP" >&5
4438 echo "${ECHO_T}$CMP" >&6; }
4439 else
4440   { echo "$as_me:$LINENO: result: no" >&5
4441 echo "${ECHO_T}no" >&6; }
4442 fi
4443
4444
4445 # Extract the first word of "tbl", so it can be a program name with args.
4446 set dummy tbl; ac_word=$2
4447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4449 if test "${ac_cv_path_TBL+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   case $TBL in
4453   [\\/]* | ?:[\\/]*)
4454   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4455   ;;
4456   *)
4457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4459 do
4460   IFS=$as_save_IFS
4461   test -z "$as_dir" && as_dir=.
4462   for ac_exec_ext in '' $ac_executable_extensions; do
4463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4465     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466     break 2
4467   fi
4468 done
4469 done
4470 IFS=$as_save_IFS
4471
4472   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4473   ;;
4474 esac
4475 fi
4476 TBL=$ac_cv_path_TBL
4477 if test -n "$TBL"; then
4478   { echo "$as_me:$LINENO: result: $TBL" >&5
4479 echo "${ECHO_T}$TBL" >&6; }
4480 else
4481   { echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6; }
4483 fi
4484
4485
4486 # Extract the first word of "ar", so it can be a program name with args.
4487 set dummy ar; ac_word=$2
4488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4490 if test "${ac_cv_path_AR+set}" = set; then
4491   echo $ECHO_N "(cached) $ECHO_C" >&6
4492 else
4493   case $AR in
4494   [\\/]* | ?:[\\/]*)
4495   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4496   ;;
4497   *)
4498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4500 do
4501   IFS=$as_save_IFS
4502   test -z "$as_dir" && as_dir=.
4503   for ac_exec_ext in '' $ac_executable_extensions; do
4504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4506     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507     break 2
4508   fi
4509 done
4510 done
4511 IFS=$as_save_IFS
4512
4513   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4514   ;;
4515 esac
4516 fi
4517 AR=$ac_cv_path_AR
4518 if test -n "$AR"; then
4519   { echo "$as_me:$LINENO: result: $AR" >&5
4520 echo "${ECHO_T}$AR" >&6; }
4521 else
4522   { echo "$as_me:$LINENO: result: no" >&5
4523 echo "${ECHO_T}no" >&6; }
4524 fi
4525
4526
4527 # Extract the first word of "openssl", so it can be a program name with args.
4528 set dummy openssl; ac_word=$2
4529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4531 if test "${ac_cv_path_OPENSSL+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   case $OPENSSL in
4535   [\\/]* | ?:[\\/]*)
4536   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4537   ;;
4538   *)
4539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 for as_dir in $PATH
4541 do
4542   IFS=$as_save_IFS
4543   test -z "$as_dir" && as_dir=.
4544   for ac_exec_ext in '' $ac_executable_extensions; do
4545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4547     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548     break 2
4549   fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4555   ;;
4556 esac
4557 fi
4558 OPENSSL=$ac_cv_path_OPENSSL
4559 if test -n "$OPENSSL"; then
4560   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4561 echo "${ECHO_T}$OPENSSL" >&6; }
4562 else
4563   { echo "$as_me:$LINENO: result: no" >&5
4564 echo "${ECHO_T}no" >&6; }
4565 fi
4566
4567
4568 # Extract the first word of "mtx", so it can be a program name with args.
4569 set dummy mtx; ac_word=$2
4570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4572 if test "${ac_cv_path_MTX+set}" = set; then
4573   echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575   case $MTX in
4576   [\\/]* | ?:[\\/]*)
4577   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4578   ;;
4579   *)
4580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581 for as_dir in $PATH
4582 do
4583   IFS=$as_save_IFS
4584   test -z "$as_dir" && as_dir=.
4585   for ac_exec_ext in '' $ac_executable_extensions; do
4586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4587     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589     break 2
4590   fi
4591 done
4592 done
4593 IFS=$as_save_IFS
4594
4595   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4596   ;;
4597 esac
4598 fi
4599 MTX=$ac_cv_path_MTX
4600 if test -n "$MTX"; then
4601   { echo "$as_me:$LINENO: result: $MTX" >&5
4602 echo "${ECHO_T}$MTX" >&6; }
4603 else
4604   { echo "$as_me:$LINENO: result: no" >&5
4605 echo "${ECHO_T}no" >&6; }
4606 fi
4607
4608
4609 # Extract the first word of "dd", so it can be a program name with args.
4610 set dummy dd; ac_word=$2
4611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4613 if test "${ac_cv_path_DD+set}" = set; then
4614   echo $ECHO_N "(cached) $ECHO_C" >&6
4615 else
4616   case $DD in
4617   [\\/]* | ?:[\\/]*)
4618   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4619   ;;
4620   *)
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626   for ac_exec_ext in '' $ac_executable_extensions; do
4627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4628     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630     break 2
4631   fi
4632 done
4633 done
4634 IFS=$as_save_IFS
4635
4636   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4637   ;;
4638 esac
4639 fi
4640 DD=$ac_cv_path_DD
4641 if test -n "$DD"; then
4642   { echo "$as_me:$LINENO: result: $DD" >&5
4643 echo "${ECHO_T}$DD" >&6; }
4644 else
4645   { echo "$as_me:$LINENO: result: no" >&5
4646 echo "${ECHO_T}no" >&6; }
4647 fi
4648
4649
4650 # Extract the first word of "mkisofs", so it can be a program name with args.
4651 set dummy mkisofs; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_path_MKISOFS+set}" = set; then
4655   echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657   case $MKISOFS in
4658   [\\/]* | ?:[\\/]*)
4659   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4660   ;;
4661   *)
4662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667   for ac_exec_ext in '' $ac_executable_extensions; do
4668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4669     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4670     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671     break 2
4672   fi
4673 done
4674 done
4675 IFS=$as_save_IFS
4676
4677   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4678   ;;
4679 esac
4680 fi
4681 MKISOFS=$ac_cv_path_MKISOFS
4682 if test -n "$MKISOFS"; then
4683   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4684 echo "${ECHO_T}$MKISOFS" >&6; }
4685 else
4686   { echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6; }
4688 fi
4689
4690
4691 # Extract the first word of "python", so it can be a program name with args.
4692 set dummy python; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_path_PYTHON+set}" = set; then
4696   echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698   case $PYTHON in
4699   [\\/]* | ?:[\\/]*)
4700   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4701   ;;
4702   *)
4703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4719   ;;
4720 esac
4721 fi
4722 PYTHON=$ac_cv_path_PYTHON
4723 if test -n "$PYTHON"; then
4724   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4725 echo "${ECHO_T}$PYTHON" >&6; }
4726 else
4727   { echo "$as_me:$LINENO: result: no" >&5
4728 echo "${ECHO_T}no" >&6; }
4729 fi
4730
4731
4732 # Extract the first word of "growisofs", so it can be a program name with args.
4733 set dummy growisofs; ac_word=$2
4734 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4736 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   case $GROWISOFS in
4740   [\\/]* | ?:[\\/]*)
4741   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4742   ;;
4743   *)
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749   for ac_exec_ext in '' $ac_executable_extensions; do
4750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4752     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753     break 2
4754   fi
4755 done
4756 done
4757 IFS=$as_save_IFS
4758
4759   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4760   ;;
4761 esac
4762 fi
4763 GROWISOFS=$ac_cv_path_GROWISOFS
4764 if test -n "$GROWISOFS"; then
4765   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4766 echo "${ECHO_T}$GROWISOFS" >&6; }
4767 else
4768   { echo "$as_me:$LINENO: result: no" >&5
4769 echo "${ECHO_T}no" >&6; }
4770 fi
4771
4772
4773 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4774 set dummy dvd+rw-mediainfo; ac_word=$2
4775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4777 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4778   echo $ECHO_N "(cached) $ECHO_C" >&6
4779 else
4780   case $DVDRWMEDIAINFO in
4781   [\\/]* | ?:[\\/]*)
4782   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4783   ;;
4784   *)
4785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790   for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4793     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4801   ;;
4802 esac
4803 fi
4804 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4805 if test -n "$DVDRWMEDIAINFO"; then
4806   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4807 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4808 else
4809   { echo "$as_me:$LINENO: result: no" >&5
4810 echo "${ECHO_T}no" >&6; }
4811 fi
4812
4813
4814 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4815 set dummy dvd+rw-format; ac_word=$2
4816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4818 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4819   echo $ECHO_N "(cached) $ECHO_C" >&6
4820 else
4821   case $DVDRWFORMAT in
4822   [\\/]* | ?:[\\/]*)
4823   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4824   ;;
4825   *)
4826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4842   ;;
4843 esac
4844 fi
4845 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4846 if test -n "$DVDRWFORMAT"; then
4847   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4848 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4849 else
4850   { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4852 fi
4853
4854
4855 # Extract the first word of "pkg-config", so it can be a program name with args.
4856 set dummy pkg-config; ac_word=$2
4857 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4859 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   case $PKGCONFIG in
4863   [\\/]* | ?:[\\/]*)
4864   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4865   ;;
4866   *)
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872   for ac_exec_ext in '' $ac_executable_extensions; do
4873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4874     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876     break 2
4877   fi
4878 done
4879 done
4880 IFS=$as_save_IFS
4881
4882   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4883   ;;
4884 esac
4885 fi
4886 PKGCONFIG=$ac_cv_path_PKGCONFIG
4887 if test -n "$PKGCONFIG"; then
4888   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4889 echo "${ECHO_T}$PKGCONFIG" >&6; }
4890 else
4891   { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4893 fi
4894
4895
4896 # Extract the first word of "qmake", so it can be a program name with args.
4897 set dummy qmake; ac_word=$2
4898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_QMAKE+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   case $QMAKE in
4904   [\\/]* | ?:[\\/]*)
4905   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4906   ;;
4907   *)
4908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911   IFS=$as_save_IFS
4912   test -z "$as_dir" && as_dir=.
4913   for ac_exec_ext in '' $ac_executable_extensions; do
4914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4916     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917     break 2
4918   fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4924   ;;
4925 esac
4926 fi
4927 QMAKE=$ac_cv_path_QMAKE
4928 if test -n "$QMAKE"; then
4929   { echo "$as_me:$LINENO: result: $QMAKE" >&5
4930 echo "${ECHO_T}$QMAKE" >&6; }
4931 else
4932   { echo "$as_me:$LINENO: result: no" >&5
4933 echo "${ECHO_T}no" >&6; }
4934 fi
4935
4936
4937 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4938 set dummy qmake-qt4; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   case $QMAKEQT4 in
4945   [\\/]* | ?:[\\/]*)
4946   ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4947   ;;
4948   *)
4949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4951 do
4952   IFS=$as_save_IFS
4953   test -z "$as_dir" && as_dir=.
4954   for ac_exec_ext in '' $ac_executable_extensions; do
4955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956     ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958     break 2
4959   fi
4960 done
4961 done
4962 IFS=$as_save_IFS
4963
4964   test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4965   ;;
4966 esac
4967 fi
4968 QMAKEQT4=$ac_cv_path_QMAKEQT4
4969 if test -n "$QMAKEQT4"; then
4970   { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4971 echo "${ECHO_T}$QMAKEQT4" >&6; }
4972 else
4973   { echo "$as_me:$LINENO: result: no" >&5
4974 echo "${ECHO_T}no" >&6; }
4975 fi
4976
4977
4978
4979 if test "x$WXCONFIG" = x; then
4980   WXCONFIG=wx-config
4981 fi
4982 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4983 set dummy ${WXCONFIG}; ac_word=$2
4984 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4986 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4987   echo $ECHO_N "(cached) $ECHO_C" >&6
4988 else
4989   case $WXCONFIG in
4990   [\\/]* | ?:[\\/]*)
4991   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4992   ;;
4993   *)
4994   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4996 do
4997   IFS=$as_save_IFS
4998   test -z "$as_dir" && as_dir=.
4999   for ac_exec_ext in '' $ac_executable_extensions; do
5000   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003     break 2
5004   fi
5005 done
5006 done
5007 IFS=$as_save_IFS
5008
5009   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5010   ;;
5011 esac
5012 fi
5013 WXCONFIG=$ac_cv_path_WXCONFIG
5014 if test -n "$WXCONFIG"; then
5015   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5016 echo "${ECHO_T}$WXCONFIG" >&6; }
5017 else
5018   { echo "$as_me:$LINENO: result: no" >&5
5019 echo "${ECHO_T}no" >&6; }
5020 fi
5021
5022
5023
5024 # Extract the first word of "cdrecord", so it can be a program name with args.
5025 set dummy cdrecord; ac_word=$2
5026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5028 if test "${ac_cv_path_CDRECORD+set}" = set; then
5029   echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031   case $CDRECORD in
5032   [\\/]* | ?:[\\/]*)
5033   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5034   ;;
5035   *)
5036   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 for as_dir in $PATH
5038 do
5039   IFS=$as_save_IFS
5040   test -z "$as_dir" && as_dir=.
5041   for ac_exec_ext in '' $ac_executable_extensions; do
5042   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5043     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045     break 2
5046   fi
5047 done
5048 done
5049 IFS=$as_save_IFS
5050
5051   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5052   ;;
5053 esac
5054 fi
5055 CDRECORD=$ac_cv_path_CDRECORD
5056 if test -n "$CDRECORD"; then
5057   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5058 echo "${ECHO_T}$CDRECORD" >&6; }
5059 else
5060   { echo "$as_me:$LINENO: result: no" >&5
5061 echo "${ECHO_T}no" >&6; }
5062 fi
5063
5064
5065 # Extract the first word of "pidof", so it can be a program name with args.
5066 set dummy pidof; ac_word=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_PIDOF+set}" = set; then
5070   echo $ECHO_N "(cached) $ECHO_C" >&6
5071 else
5072   case $PIDOF in
5073   [\\/]* | ?:[\\/]*)
5074   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5075   ;;
5076   *)
5077   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080   IFS=$as_save_IFS
5081   test -z "$as_dir" && as_dir=.
5082   for ac_exec_ext in '' $ac_executable_extensions; do
5083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086     break 2
5087   fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5093   ;;
5094 esac
5095 fi
5096 PIDOF=$ac_cv_path_PIDOF
5097 if test -n "$PIDOF"; then
5098   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5099 echo "${ECHO_T}$PIDOF" >&6; }
5100 else
5101   { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5103 fi
5104
5105
5106 for ac_prog in gawk mawk nawk awk
5107 do
5108   # Extract the first word of "$ac_prog", so it can be a program name with args.
5109 set dummy $ac_prog; ac_word=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_prog_AWK+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115   if test -n "$AWK"; then
5116   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123   for ac_exec_ext in '' $ac_executable_extensions; do
5124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125     ac_cv_prog_AWK="$ac_prog"
5126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127     break 2
5128   fi
5129 done
5130 done
5131 IFS=$as_save_IFS
5132
5133 fi
5134 fi
5135 AWK=$ac_cv_prog_AWK
5136 if test -n "$AWK"; then
5137   { echo "$as_me:$LINENO: result: $AWK" >&5
5138 echo "${ECHO_T}$AWK" >&6; }
5139 else
5140   { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5142 fi
5143
5144
5145   test -n "$AWK" && break
5146 done
5147
5148 # Some AWK programs fail, so test it and warn the user
5149 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5150       { if ((prog == $2) || (("(" prog ")") == $2) ||
5151            (("" prog "") == $2) ||
5152            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5153 else
5154   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5155    The regex engine of $AWK is too broken to be used you
5156    might want to install GNU AWK.
5157    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5158 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5159    The regex engine of $AWK is too broken to be used you
5160    might want to install GNU AWK.
5161    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5162    { (exit 1); exit 1; }; }
5163 fi
5164 THE_AWK=$AWK
5165 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5166 set dummy $THE_AWK; ac_word=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_AWK+set}" = set; then
5170   echo $ECHO_N "(cached) $ECHO_C" >&6
5171 else
5172   case $AWK in
5173   [\\/]* | ?:[\\/]*)
5174   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5175   ;;
5176   *)
5177   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180   IFS=$as_save_IFS
5181   test -z "$as_dir" && as_dir=.
5182   for ac_exec_ext in '' $ac_executable_extensions; do
5183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186     break 2
5187   fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5193   ;;
5194 esac
5195 fi
5196 AWK=$ac_cv_path_AWK
5197 if test -n "$AWK"; then
5198   { echo "$as_me:$LINENO: result: $AWK" >&5
5199 echo "${ECHO_T}$AWK" >&6; }
5200 else
5201   { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204
5205
5206
5207
5208 test -n "$ARFLAG" || ARFLAGS="cr"
5209
5210
5211 MAKE_SHELL=/bin/sh
5212
5213
5214
5215
5216
5217
5218
5219 # Make sure we can run config.sub.
5220 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5221   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5222 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5223    { (exit 1); exit 1; }; }
5224
5225 { echo "$as_me:$LINENO: checking build system type" >&5
5226 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5227 if test "${ac_cv_build+set}" = set; then
5228   echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230   ac_build_alias=$build_alias
5231 test "x$ac_build_alias" = x &&
5232   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5233 test "x$ac_build_alias" = x &&
5234   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5235 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5236    { (exit 1); exit 1; }; }
5237 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5238   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5239 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5240    { (exit 1); exit 1; }; }
5241
5242 fi
5243 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5244 echo "${ECHO_T}$ac_cv_build" >&6; }
5245 case $ac_cv_build in
5246 *-*-*) ;;
5247 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5248 echo "$as_me: error: invalid value of canonical build" >&2;}
5249    { (exit 1); exit 1; }; };;
5250 esac
5251 build=$ac_cv_build
5252 ac_save_IFS=$IFS; IFS='-'
5253 set x $ac_cv_build
5254 shift
5255 build_cpu=$1
5256 build_vendor=$2
5257 shift; shift
5258 # Remember, the first character of IFS is used to create $*,
5259 # except with old shells:
5260 build_os=$*
5261 IFS=$ac_save_IFS
5262 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5263
5264
5265
5266 { echo "$as_me:$LINENO: checking host system type" >&5
5267 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5268 if test "${ac_cv_host+set}" = set; then
5269   echo $ECHO_N "(cached) $ECHO_C" >&6
5270 else
5271   if test "x$host_alias" = x; then
5272   ac_cv_host=$ac_cv_build
5273 else
5274   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5275     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5276 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5277    { (exit 1); exit 1; }; }
5278 fi
5279
5280 fi
5281 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5282 echo "${ECHO_T}$ac_cv_host" >&6; }
5283 case $ac_cv_host in
5284 *-*-*) ;;
5285 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5286 echo "$as_me: error: invalid value of canonical host" >&2;}
5287    { (exit 1); exit 1; }; };;
5288 esac
5289 host=$ac_cv_host
5290 ac_save_IFS=$IFS; IFS='-'
5291 set x $ac_cv_host
5292 shift
5293 host_cpu=$1
5294 host_vendor=$2
5295 shift; shift
5296 # Remember, the first character of IFS is used to create $*,
5297 # except with old shells:
5298 host_os=$*
5299 IFS=$ac_save_IFS
5300 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5301
5302
5303 case $host_os in
5304   *cygwin* ) CYGWIN=yes;;
5305          * ) CYGWIN=no;;
5306 esac
5307
5308 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5309 then
5310
5311
5312 if $TRUEPRG; then
5313   HAVE_SUN_OS_TRUE=
5314   HAVE_SUN_OS_FALSE='#'
5315 else
5316   HAVE_SUN_OS_TRUE='#'
5317   HAVE_SUN_OS_FALSE=
5318 fi
5319         cat >>confdefs.h <<\_ACEOF
5320 #define HAVE_SUN_OS 1
5321 _ACEOF
5322
5323 else
5324
5325
5326 if $FALSEPRG; then
5327   HAVE_SUN_OS_TRUE=
5328   HAVE_SUN_OS_FALSE='#'
5329 else
5330   HAVE_SUN_OS_TRUE='#'
5331   HAVE_SUN_OS_FALSE=
5332 fi
5333 fi
5334
5335 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5336 then
5337
5338
5339 if $TRUEPRG; then
5340   HAVE_OSF1_OS_TRUE=
5341   HAVE_OSF1_OS_FALSE='#'
5342 else
5343   HAVE_OSF1_OS_TRUE='#'
5344   HAVE_OSF1_OS_FALSE=
5345 fi
5346         cat >>confdefs.h <<\_ACEOF
5347 #define HAVE_OSF1_OS 1
5348 _ACEOF
5349
5350 else
5351
5352
5353 if $FALSEPRG; then
5354   HAVE_OSF1_OS_TRUE=
5355   HAVE_OSF1_OS_FALSE='#'
5356 else
5357   HAVE_OSF1_OS_TRUE='#'
5358   HAVE_OSF1_OS_FALSE=
5359 fi
5360 fi
5361
5362 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5363 then
5364
5365
5366 if $TRUEPRG; then
5367   HAVE_AIX_OS_TRUE=
5368   HAVE_AIX_OS_FALSE='#'
5369 else
5370   HAVE_AIX_OS_TRUE='#'
5371   HAVE_AIX_OS_FALSE=
5372 fi
5373         cat >>confdefs.h <<\_ACEOF
5374 #define HAVE_AIX_OS 1
5375 _ACEOF
5376
5377 else
5378
5379
5380 if $FALSEPRG; then
5381   HAVE_AIX_OS_TRUE=
5382   HAVE_AIX_OS_FALSE='#'
5383 else
5384   HAVE_AIX_OS_TRUE='#'
5385   HAVE_AIX_OS_FALSE=
5386 fi
5387 fi
5388
5389 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5390 then
5391
5392
5393 if $TRUEPRG; then
5394   HAVE_HPUX_OS_TRUE=
5395   HAVE_HPUX_OS_FALSE='#'
5396 else
5397   HAVE_HPUX_OS_TRUE='#'
5398   HAVE_HPUX_OS_FALSE=
5399 fi
5400         cat >>confdefs.h <<\_ACEOF
5401 #define HAVE_HPUX_OS 1
5402 _ACEOF
5403
5404 else
5405
5406
5407 if $FALSEPRG; then
5408   HAVE_HPUX_OS_TRUE=
5409   HAVE_HPUX_OS_FALSE='#'
5410 else
5411   HAVE_HPUX_OS_TRUE='#'
5412   HAVE_HPUX_OS_FALSE=
5413 fi
5414 fi
5415
5416 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5417 then
5418
5419
5420 if $TRUEPRG; then
5421   HAVE_LINUX_OS_TRUE=
5422   HAVE_LINUX_OS_FALSE='#'
5423 else
5424   HAVE_LINUX_OS_TRUE='#'
5425   HAVE_LINUX_OS_FALSE=
5426 fi
5427         cat >>confdefs.h <<\_ACEOF
5428 #define HAVE_LINUX_OS 1
5429 _ACEOF
5430
5431 else
5432
5433
5434 if $FALSEPRG; then
5435   HAVE_LINUX_OS_TRUE=
5436   HAVE_LINUX_OS_FALSE='#'
5437 else
5438   HAVE_LINUX_OS_TRUE='#'
5439   HAVE_LINUX_OS_FALSE=
5440 fi
5441 fi
5442
5443 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5444 then
5445
5446
5447 if $TRUEPRG; then
5448   HAVE_FREEBSD_OS_TRUE=
5449   HAVE_FREEBSD_OS_FALSE='#'
5450 else
5451   HAVE_FREEBSD_OS_TRUE='#'
5452   HAVE_FREEBSD_OS_FALSE=
5453 fi
5454         cat >>confdefs.h <<\_ACEOF
5455 #define HAVE_FREEBSD_OS 1
5456 _ACEOF
5457
5458 else
5459
5460
5461 if $FALSEPRG; then
5462   HAVE_FREEBSD_OS_TRUE=
5463   HAVE_FREEBSD_OS_FALSE='#'
5464 else
5465   HAVE_FREEBSD_OS_TRUE='#'
5466   HAVE_FREEBSD_OS_FALSE=
5467 fi
5468 fi
5469
5470 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5471 then
5472
5473
5474 if $TRUEPRG; then
5475   HAVE_NETBSD_OS_TRUE=
5476   HAVE_NETBSD_OS_FALSE='#'
5477 else
5478   HAVE_NETBSD_OS_TRUE='#'
5479   HAVE_NETBSD_OS_FALSE=
5480 fi
5481         cat >>confdefs.h <<\_ACEOF
5482 #define HAVE_NETBSD_OS 1
5483 _ACEOF
5484
5485 else
5486
5487
5488 if $FALSEPRG; then
5489   HAVE_NETBSD_OS_TRUE=
5490   HAVE_NETBSD_OS_FALSE='#'
5491 else
5492   HAVE_NETBSD_OS_TRUE='#'
5493   HAVE_NETBSD_OS_FALSE=
5494 fi
5495 fi
5496
5497 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5498 then
5499
5500
5501 if $TRUEPRG; then
5502   HAVE_OPENBSD_OS_TRUE=
5503   HAVE_OPENBSD_OS_FALSE='#'
5504 else
5505   HAVE_OPENBSD_OS_TRUE='#'
5506   HAVE_OPENBSD_OS_FALSE=
5507 fi
5508         cat >>confdefs.h <<\_ACEOF
5509 #define HAVE_OPENBSD_OS 1
5510 _ACEOF
5511
5512 else
5513
5514
5515 if $FALSEPRG; then
5516   HAVE_OPENBSD_OS_TRUE=
5517   HAVE_OPENBSD_OS_FALSE='#'
5518 else
5519   HAVE_OPENBSD_OS_TRUE='#'
5520   HAVE_OPENBSD_OS_FALSE=
5521 fi
5522 fi
5523
5524 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5525 then
5526
5527
5528 if $TRUEPRG; then
5529   HAVE_BSDI_OS_TRUE=
5530   HAVE_BSDI_OS_FALSE='#'
5531 else
5532   HAVE_BSDI_OS_TRUE='#'
5533   HAVE_BSDI_OS_FALSE=
5534 fi
5535         cat >>confdefs.h <<\_ACEOF
5536 #define HAVE_BSDI_OS 1
5537 _ACEOF
5538
5539 else
5540
5541
5542 if $FALSEPRG; then
5543   HAVE_BSDI_OS_TRUE=
5544   HAVE_BSDI_OS_FALSE='#'
5545 else
5546   HAVE_BSDI_OS_TRUE='#'
5547   HAVE_BSDI_OS_FALSE=
5548 fi
5549 fi
5550
5551 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5552 then
5553
5554
5555 if $TRUEPRG; then
5556   HAVE_SGI_OS_TRUE=
5557   HAVE_SGI_OS_FALSE='#'
5558 else
5559   HAVE_SGI_OS_TRUE='#'
5560   HAVE_SGI_OS_FALSE=
5561 fi
5562         cat >>confdefs.h <<\_ACEOF
5563 #define HAVE_SGI_OS 1
5564 _ACEOF
5565
5566 else
5567
5568
5569 if $FALSEPRG; then
5570   HAVE_SGI_OS_TRUE=
5571   HAVE_SGI_OS_FALSE='#'
5572 else
5573   HAVE_SGI_OS_TRUE='#'
5574   HAVE_SGI_OS_FALSE=
5575 fi
5576 fi
5577
5578 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5579 then
5580
5581
5582 if $TRUEPRG; then
5583   HAVE_IRIX_OS_TRUE=
5584   HAVE_IRIX_OS_FALSE='#'
5585 else
5586   HAVE_IRIX_OS_TRUE='#'
5587   HAVE_IRIX_OS_FALSE=
5588 fi
5589         cat >>confdefs.h <<\_ACEOF
5590 #define HAVE_IRIX_OS 1
5591 _ACEOF
5592
5593 else
5594
5595
5596 if $FALSEPRG; then
5597   HAVE_IRIX_OS_TRUE=
5598   HAVE_IRIX_OS_FALSE='#'
5599 else
5600   HAVE_IRIX_OS_TRUE='#'
5601   HAVE_IRIX_OS_FALSE=
5602 fi
5603 fi
5604
5605 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5606 then
5607
5608
5609 if $TRUEPRG; then
5610   HAVE_DARWIN_OS_TRUE=
5611   HAVE_DARWIN_OS_FALSE='#'
5612 else
5613   HAVE_DARWIN_OS_TRUE='#'
5614   HAVE_DARWIN_OS_FALSE=
5615 fi
5616     cat >>confdefs.h <<\_ACEOF
5617 #define HAVE_DARWIN_OS 1
5618 _ACEOF
5619
5620 else
5621
5622
5623 if $FALSEPRG; then
5624   HAVE_DARWIN_OS_TRUE=
5625   HAVE_DARWIN_OS_FALSE='#'
5626 else
5627   HAVE_DARWIN_OS_TRUE='#'
5628   HAVE_DARWIN_OS_FALSE=
5629 fi
5630 fi
5631
5632
5633 # -----------------------------------------------------------
5634 # ----------------------------------------------------------
5635 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5636 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5637 if test "x$DISTNAME" != "x"
5638 then
5639         echo "distname set to $DISTNAME"
5640 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5641 then
5642         DISTNAME=alpha
5643 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5644 then
5645         DISTNAME=aix
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5647 then
5648         DISTNAME=hpux
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5650 then
5651         DISTNAME=solaris
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5653 then
5654         DISTNAME=freebsd
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5656 then
5657         DISTNAME=netbsd
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5659 then
5660         DISTNAME=openbsd
5661 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5662 then
5663         DISTNAME=irix
5664 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5665 then
5666         DISTNAME=bsdi
5667 elif test -f /etc/SuSE-release
5668 then
5669         DISTNAME=suse
5670 elif test -d /etc/SuSEconfig
5671 then
5672         DISTNAME=suse5
5673 elif test -f /etc/mandrake-release
5674 then
5675         DISTNAME=mandrake
5676 elif test -f /etc/whitebox-release
5677 then
5678        DISTNAME=redhat
5679 elif test -f /etc/redhat-release
5680 then
5681         DISTNAME=redhat
5682 elif test -f /etc/gentoo-release
5683 then
5684         DISTNAME=gentoo
5685 elif test -f /etc/debian_version
5686 then
5687         DISTNAME=debian
5688 elif test -f /etc/slackware-version
5689 then
5690         DISTNAME=slackware
5691 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5692 then
5693     DISTNAME=darwin
5694 elif test -f /etc/engarde-version
5695 then
5696         DISTNAME=engarde
5697 elif test "$CYGWIN" = yes
5698 then
5699         DISTNAME=cygwin
5700         cat >>confdefs.h <<\_ACEOF
5701 #define HAVE_CYGWIN 1
5702 _ACEOF
5703
5704 else
5705         DISTNAME=unknown
5706 fi
5707 { echo "$as_me:$LINENO: result: done" >&5
5708 echo "${ECHO_T}done" >&6; }
5709
5710
5711 # --------------------------------------------------
5712 # Suppport for gettext (translations)
5713 # By default, $datadir is ${prefix}/share
5714 # --------------------------------------------------
5715 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5716 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5717 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5718 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5719   echo $ECHO_N "(cached) $ECHO_C" >&6
5720 else
5721   cat >conftest.make <<\_ACEOF
5722 SHELL = /bin/sh
5723 all:
5724         @echo '@@@%%%=$(MAKE)=@@@%%%'
5725 _ACEOF
5726 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5727 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5728   *@@@%%%=?*=@@@%%%*)
5729     eval ac_cv_prog_make_${ac_make}_set=yes;;
5730   *)
5731     eval ac_cv_prog_make_${ac_make}_set=no;;
5732 esac
5733 rm -f conftest.make
5734 fi
5735 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5736   { echo "$as_me:$LINENO: result: yes" >&5
5737 echo "${ECHO_T}yes" >&6; }
5738   SET_MAKE=
5739 else
5740   { echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6; }
5742   SET_MAKE="MAKE=${MAKE-make}"
5743 fi
5744
5745
5746
5747         MKINSTALLDIRS=
5748   if test -n "$ac_aux_dir"; then
5749     case "$ac_aux_dir" in
5750       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5751       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5752     esac
5753   fi
5754   if test -z "$MKINSTALLDIRS"; then
5755     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5756   fi
5757
5758
5759
5760   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5761 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5762     # Check whether --enable-nls was given.
5763 if test "${enable_nls+set}" = set; then
5764   enableval=$enable_nls; USE_NLS=$enableval
5765 else
5766   USE_NLS=yes
5767 fi
5768
5769   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5770 echo "${ECHO_T}$USE_NLS" >&6; }
5771
5772
5773
5774
5775
5776
5777 # Prepare PATH_SEPARATOR.
5778 # The user is always right.
5779 if test "${PATH_SEPARATOR+set}" != set; then
5780   echo "#! /bin/sh" >conf$$.sh
5781   echo  "exit 0"   >>conf$$.sh
5782   chmod +x conf$$.sh
5783   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5784     PATH_SEPARATOR=';'
5785   else
5786     PATH_SEPARATOR=:
5787   fi
5788   rm -f conf$$.sh
5789 fi
5790
5791 # Find out how to test for executable files. Don't use a zero-byte file,
5792 # as systems may use methods other than mode bits to determine executability.
5793 cat >conf$$.file <<_ASEOF
5794 #! /bin/sh
5795 exit 0
5796 _ASEOF
5797 chmod +x conf$$.file
5798 if test -x conf$$.file >/dev/null 2>&1; then
5799   ac_executable_p="test -x"
5800 else
5801   ac_executable_p="test -f"
5802 fi
5803 rm -f conf$$.file
5804
5805 # Extract the first word of "msgfmt", so it can be a program name with args.
5806 set dummy msgfmt; ac_word=$2
5807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5809 if test "${ac_cv_path_MSGFMT+set}" = set; then
5810   echo $ECHO_N "(cached) $ECHO_C" >&6
5811 else
5812   case "$MSGFMT" in
5813   [\\/]* | ?:[\\/]*)
5814     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5815     ;;
5816   *)
5817     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5818     for ac_dir in $PATH; do
5819       IFS="$ac_save_IFS"
5820       test -z "$ac_dir" && ac_dir=.
5821       for ac_exec_ext in '' $ac_executable_extensions; do
5822         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5823           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5824           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5825      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5826             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5827             break 2
5828           fi
5829         fi
5830       done
5831     done
5832     IFS="$ac_save_IFS"
5833   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5834     ;;
5835 esac
5836 fi
5837 MSGFMT="$ac_cv_path_MSGFMT"
5838 if test "$MSGFMT" != ":"; then
5839   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5840 echo "${ECHO_T}$MSGFMT" >&6; }
5841 else
5842   { echo "$as_me:$LINENO: result: no" >&5
5843 echo "${ECHO_T}no" >&6; }
5844 fi
5845
5846   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5847 set dummy gmsgfmt; ac_word=$2
5848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5850 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5851   echo $ECHO_N "(cached) $ECHO_C" >&6
5852 else
5853   case $GMSGFMT in
5854   [\\/]* | ?:[\\/]*)
5855   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5856   ;;
5857   *)
5858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5865     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871 IFS=$as_save_IFS
5872
5873   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5874   ;;
5875 esac
5876 fi
5877 GMSGFMT=$ac_cv_path_GMSGFMT
5878 if test -n "$GMSGFMT"; then
5879   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5880 echo "${ECHO_T}$GMSGFMT" >&6; }
5881 else
5882   { echo "$as_me:$LINENO: result: no" >&5
5883 echo "${ECHO_T}no" >&6; }
5884 fi
5885
5886
5887
5888
5889 # Prepare PATH_SEPARATOR.
5890 # The user is always right.
5891 if test "${PATH_SEPARATOR+set}" != set; then
5892   echo "#! /bin/sh" >conf$$.sh
5893   echo  "exit 0"   >>conf$$.sh
5894   chmod +x conf$$.sh
5895   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5896     PATH_SEPARATOR=';'
5897   else
5898     PATH_SEPARATOR=:
5899   fi
5900   rm -f conf$$.sh
5901 fi
5902
5903 # Find out how to test for executable files. Don't use a zero-byte file,
5904 # as systems may use methods other than mode bits to determine executability.
5905 cat >conf$$.file <<_ASEOF
5906 #! /bin/sh
5907 exit 0
5908 _ASEOF
5909 chmod +x conf$$.file
5910 if test -x conf$$.file >/dev/null 2>&1; then
5911   ac_executable_p="test -x"
5912 else
5913   ac_executable_p="test -f"
5914 fi
5915 rm -f conf$$.file
5916
5917 # Extract the first word of "xgettext", so it can be a program name with args.
5918 set dummy xgettext; ac_word=$2
5919 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5921 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5922   echo $ECHO_N "(cached) $ECHO_C" >&6
5923 else
5924   case "$XGETTEXT" in
5925   [\\/]* | ?:[\\/]*)
5926     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5927     ;;
5928   *)
5929     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5930     for ac_dir in $PATH; do
5931       IFS="$ac_save_IFS"
5932       test -z "$ac_dir" && ac_dir=.
5933       for ac_exec_ext in '' $ac_executable_extensions; do
5934         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5935           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5936           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5937      (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
5938             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5939             break 2
5940           fi
5941         fi
5942       done
5943     done
5944     IFS="$ac_save_IFS"
5945   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5946     ;;
5947 esac
5948 fi
5949 XGETTEXT="$ac_cv_path_XGETTEXT"
5950 if test "$XGETTEXT" != ":"; then
5951   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5952 echo "${ECHO_T}$XGETTEXT" >&6; }
5953 else
5954   { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5956 fi
5957
5958     rm -f messages.po
5959
5960
5961 # Prepare PATH_SEPARATOR.
5962 # The user is always right.
5963 if test "${PATH_SEPARATOR+set}" != set; then
5964   echo "#! /bin/sh" >conf$$.sh
5965   echo  "exit 0"   >>conf$$.sh
5966   chmod +x conf$$.sh
5967   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5968     PATH_SEPARATOR=';'
5969   else
5970     PATH_SEPARATOR=:
5971   fi
5972   rm -f conf$$.sh
5973 fi
5974
5975 # Find out how to test for executable files. Don't use a zero-byte file,
5976 # as systems may use methods other than mode bits to determine executability.
5977 cat >conf$$.file <<_ASEOF
5978 #! /bin/sh
5979 exit 0
5980 _ASEOF
5981 chmod +x conf$$.file
5982 if test -x conf$$.file >/dev/null 2>&1; then
5983   ac_executable_p="test -x"
5984 else
5985   ac_executable_p="test -f"
5986 fi
5987 rm -f conf$$.file
5988
5989 # Extract the first word of "msgmerge", so it can be a program name with args.
5990 set dummy msgmerge; ac_word=$2
5991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5993 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5994   echo $ECHO_N "(cached) $ECHO_C" >&6
5995 else
5996   case "$MSGMERGE" in
5997   [\\/]* | ?:[\\/]*)
5998     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5999     ;;
6000   *)
6001     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6002     for ac_dir in $PATH; do
6003       IFS="$ac_save_IFS"
6004       test -z "$ac_dir" && ac_dir=.
6005       for ac_exec_ext in '' $ac_executable_extensions; do
6006         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6007           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6008           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6009             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6010             break 2
6011           fi
6012         fi
6013       done
6014     done
6015     IFS="$ac_save_IFS"
6016   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6017     ;;
6018 esac
6019 fi
6020 MSGMERGE="$ac_cv_path_MSGMERGE"
6021 if test "$MSGMERGE" != ":"; then
6022   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6023 echo "${ECHO_T}$MSGMERGE" >&6; }
6024 else
6025   { echo "$as_me:$LINENO: result: no" >&5
6026 echo "${ECHO_T}no" >&6; }
6027 fi
6028
6029
6030       if test "$GMSGFMT" != ":"; then
6031             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6032        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6033       : ;
6034     else
6035       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6036       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6037 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6038       GMSGFMT=":"
6039     fi
6040   fi
6041
6042       if test "$XGETTEXT" != ":"; then
6043             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6044        (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
6045       : ;
6046     else
6047       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6048 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6049       XGETTEXT=":"
6050     fi
6051         rm -f messages.po
6052   fi
6053
6054   ac_config_commands="$ac_config_commands default-1"
6055
6056
6057
6058       if test "X$prefix" = "XNONE"; then
6059     acl_final_prefix="$ac_default_prefix"
6060   else
6061     acl_final_prefix="$prefix"
6062   fi
6063   if test "X$exec_prefix" = "XNONE"; then
6064     acl_final_exec_prefix='${prefix}'
6065   else
6066     acl_final_exec_prefix="$exec_prefix"
6067   fi
6068   acl_save_prefix="$prefix"
6069   prefix="$acl_final_prefix"
6070   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6071   prefix="$acl_save_prefix"
6072
6073
6074 # Check whether --with-gnu-ld was given.
6075 if test "${with_gnu_ld+set}" = set; then
6076   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6077 else
6078   with_gnu_ld=no
6079 fi
6080
6081 # Prepare PATH_SEPARATOR.
6082 # The user is always right.
6083 if test "${PATH_SEPARATOR+set}" != set; then
6084   echo "#! /bin/sh" >conf$$.sh
6085   echo  "exit 0"   >>conf$$.sh
6086   chmod +x conf$$.sh
6087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6088     PATH_SEPARATOR=';'
6089   else
6090     PATH_SEPARATOR=:
6091   fi
6092   rm -f conf$$.sh
6093 fi
6094 ac_prog=ld
6095 if test "$GCC" = yes; then
6096   # Check if gcc -print-prog-name=ld gives a path.
6097   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6098 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6099   case $host in
6100   *-*-mingw*)
6101     # gcc leaves a trailing carriage return which upsets mingw
6102     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6103   *)
6104     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6105   esac
6106   case $ac_prog in
6107     # Accept absolute paths.
6108     [\\/]* | [A-Za-z]:[\\/]*)
6109       re_direlt='/[^/][^/]*/\.\./'
6110       # Canonicalize the path of ld
6111       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6112       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6113         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6114       done
6115       test -z "$LD" && LD="$ac_prog"
6116       ;;
6117   "")
6118     # If it fails, then pretend we aren't using GCC.
6119     ac_prog=ld
6120     ;;
6121   *)
6122     # If it is relative, then search for the first ld in PATH.
6123     with_gnu_ld=unknown
6124     ;;
6125   esac
6126 elif test "$with_gnu_ld" = yes; then
6127   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6128 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6129 else
6130   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6131 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6132 fi
6133 if test "${acl_cv_path_LD+set}" = set; then
6134   echo $ECHO_N "(cached) $ECHO_C" >&6
6135 else
6136   if test -z "$LD"; then
6137   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6138   for ac_dir in $PATH; do
6139     test -z "$ac_dir" && ac_dir=.
6140     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6141       acl_cv_path_LD="$ac_dir/$ac_prog"
6142       # Check to see if the program is GNU ld.  I'd rather use --version,
6143       # but apparently some GNU ld's only accept -v.
6144       # Break only if it was the GNU/non-GNU ld that we prefer.
6145       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6146       *GNU* | *'with BFD'*)
6147         test "$with_gnu_ld" != no && break ;;
6148       *)
6149         test "$with_gnu_ld" != yes && break ;;
6150       esac
6151     fi
6152   done
6153   IFS="$ac_save_ifs"
6154 else
6155   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6156 fi
6157 fi
6158
6159 LD="$acl_cv_path_LD"
6160 if test -n "$LD"; then
6161   { echo "$as_me:$LINENO: result: $LD" >&5
6162 echo "${ECHO_T}$LD" >&6; }
6163 else
6164   { echo "$as_me:$LINENO: result: no" >&5
6165 echo "${ECHO_T}no" >&6; }
6166 fi
6167 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6168 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6169    { (exit 1); exit 1; }; }
6170 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6171 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6172 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6173   echo $ECHO_N "(cached) $ECHO_C" >&6
6174 else
6175   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6176 case `$LD -v 2>&1 </dev/null` in
6177 *GNU* | *'with BFD'*)
6178   acl_cv_prog_gnu_ld=yes ;;
6179 *)
6180   acl_cv_prog_gnu_ld=no ;;
6181 esac
6182 fi
6183 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6184 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6185 with_gnu_ld=$acl_cv_prog_gnu_ld
6186
6187
6188
6189
6190                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6191 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6192 if test "${acl_cv_rpath+set}" = set; then
6193   echo $ECHO_N "(cached) $ECHO_C" >&6
6194 else
6195
6196     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6197     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6198     . ./conftest.sh
6199     rm -f ./conftest.sh
6200     acl_cv_rpath=done
6201
6202 fi
6203 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6204 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6205   wl="$acl_cv_wl"
6206   libext="$acl_cv_libext"
6207   shlibext="$acl_cv_shlibext"
6208   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6209   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6210   hardcode_direct="$acl_cv_hardcode_direct"
6211   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6212     # Check whether --enable-rpath was given.
6213 if test "${enable_rpath+set}" = set; then
6214   enableval=$enable_rpath; :
6215 else
6216   enable_rpath=yes
6217 fi
6218
6219
6220
6221
6222
6223
6224
6225
6226     use_additional=yes
6227
6228   acl_save_prefix="$prefix"
6229   prefix="$acl_final_prefix"
6230   acl_save_exec_prefix="$exec_prefix"
6231   exec_prefix="$acl_final_exec_prefix"
6232
6233     eval additional_includedir=\"$includedir\"
6234     eval additional_libdir=\"$libdir\"
6235
6236   exec_prefix="$acl_save_exec_prefix"
6237   prefix="$acl_save_prefix"
6238
6239
6240 # Check whether --with-libiconv-prefix was given.
6241 if test "${with_libiconv_prefix+set}" = set; then
6242   withval=$with_libiconv_prefix;
6243     if test "X$withval" = "Xno"; then
6244       use_additional=no
6245     else
6246       if test "X$withval" = "X"; then
6247
6248   acl_save_prefix="$prefix"
6249   prefix="$acl_final_prefix"
6250   acl_save_exec_prefix="$exec_prefix"
6251   exec_prefix="$acl_final_exec_prefix"
6252
6253           eval additional_includedir=\"$includedir\"
6254           eval additional_libdir=\"$libdir\"
6255
6256   exec_prefix="$acl_save_exec_prefix"
6257   prefix="$acl_save_prefix"
6258
6259       else
6260         additional_includedir="$withval/include"
6261         additional_libdir="$withval/lib"
6262       fi
6263     fi
6264
6265 fi
6266
6267       LIBICONV=
6268   LTLIBICONV=
6269   INCICONV=
6270   rpathdirs=
6271   ltrpathdirs=
6272   names_already_handled=
6273   names_next_round='iconv '
6274   while test -n "$names_next_round"; do
6275     names_this_round="$names_next_round"
6276     names_next_round=
6277     for name in $names_this_round; do
6278       already_handled=
6279       for n in $names_already_handled; do
6280         if test "$n" = "$name"; then
6281           already_handled=yes
6282           break
6283         fi
6284       done
6285       if test -z "$already_handled"; then
6286         names_already_handled="$names_already_handled $name"
6287                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6288         eval value=\"\$HAVE_LIB$uppername\"
6289         if test -n "$value"; then
6290           if test "$value" = yes; then
6291             eval value=\"\$LIB$uppername\"
6292             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6293             eval value=\"\$LTLIB$uppername\"
6294             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6295           else
6296                                     :
6297           fi
6298         else
6299                               found_dir=
6300           found_la=
6301           found_so=
6302           found_a=
6303           if test $use_additional = yes; then
6304             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6305               found_dir="$additional_libdir"
6306               found_so="$additional_libdir/lib$name.$shlibext"
6307               if test -f "$additional_libdir/lib$name.la"; then
6308                 found_la="$additional_libdir/lib$name.la"
6309               fi
6310             else
6311               if test -f "$additional_libdir/lib$name.$libext"; then
6312                 found_dir="$additional_libdir"
6313                 found_a="$additional_libdir/lib$name.$libext"
6314                 if test -f "$additional_libdir/lib$name.la"; then
6315                   found_la="$additional_libdir/lib$name.la"
6316                 fi
6317               fi
6318             fi
6319           fi
6320           if test "X$found_dir" = "X"; then
6321             for x in $LDFLAGS $LTLIBICONV; do
6322
6323   acl_save_prefix="$prefix"
6324   prefix="$acl_final_prefix"
6325   acl_save_exec_prefix="$exec_prefix"
6326   exec_prefix="$acl_final_exec_prefix"
6327   eval x=\"$x\"
6328   exec_prefix="$acl_save_exec_prefix"
6329   prefix="$acl_save_prefix"
6330
6331               case "$x" in
6332                 -L*)
6333                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6334                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6335                     found_dir="$dir"
6336                     found_so="$dir/lib$name.$shlibext"
6337                     if test -f "$dir/lib$name.la"; then
6338                       found_la="$dir/lib$name.la"
6339                     fi
6340                   else
6341                     if test -f "$dir/lib$name.$libext"; then
6342                       found_dir="$dir"
6343                       found_a="$dir/lib$name.$libext"
6344                       if test -f "$dir/lib$name.la"; then
6345                         found_la="$dir/lib$name.la"
6346                       fi
6347                     fi
6348                   fi
6349                   ;;
6350               esac
6351               if test "X$found_dir" != "X"; then
6352                 break
6353               fi
6354             done
6355           fi
6356           if test "X$found_dir" != "X"; then
6357                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6358             if test "X$found_so" != "X"; then
6359                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6360                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6361               else
6362                                                                                 haveit=
6363                 for x in $ltrpathdirs; do
6364                   if test "X$x" = "X$found_dir"; then
6365                     haveit=yes
6366                     break
6367                   fi
6368                 done
6369                 if test -z "$haveit"; then
6370                   ltrpathdirs="$ltrpathdirs $found_dir"
6371                 fi
6372                                 if test "$hardcode_direct" = yes; then
6373                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6374                 else
6375                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6376                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6377                                                             haveit=
6378                     for x in $rpathdirs; do
6379                       if test "X$x" = "X$found_dir"; then
6380                         haveit=yes
6381                         break
6382                       fi
6383                     done
6384                     if test -z "$haveit"; then
6385                       rpathdirs="$rpathdirs $found_dir"
6386                     fi
6387                   else
6388                                                                                 haveit=
6389                     for x in $LDFLAGS $LIBICONV; do
6390
6391   acl_save_prefix="$prefix"
6392   prefix="$acl_final_prefix"
6393   acl_save_exec_prefix="$exec_prefix"
6394   exec_prefix="$acl_final_exec_prefix"
6395   eval x=\"$x\"
6396   exec_prefix="$acl_save_exec_prefix"
6397   prefix="$acl_save_prefix"
6398
6399                       if test "X$x" = "X-L$found_dir"; then
6400                         haveit=yes
6401                         break
6402                       fi
6403                     done
6404                     if test -z "$haveit"; then
6405                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6406                     fi
6407                     if test "$hardcode_minus_L" != no; then
6408                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6409                     else
6410                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6411                     fi
6412                   fi
6413                 fi
6414               fi
6415             else
6416               if test "X$found_a" != "X"; then
6417                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6418               else
6419                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6420               fi
6421             fi
6422                         additional_includedir=
6423             case "$found_dir" in
6424               */lib | */lib/)
6425                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6426                 additional_includedir="$basedir/include"
6427                 ;;
6428             esac
6429             if test "X$additional_includedir" != "X"; then
6430                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6431                 haveit=
6432                 if test "X$additional_includedir" = "X/usr/local/include"; then
6433                   if test -n "$GCC"; then
6434                     case $host_os in
6435                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6436                     esac
6437                   fi
6438                 fi
6439                 if test -z "$haveit"; then
6440                   for x in $CPPFLAGS $INCICONV; do
6441
6442   acl_save_prefix="$prefix"
6443   prefix="$acl_final_prefix"
6444   acl_save_exec_prefix="$exec_prefix"
6445   exec_prefix="$acl_final_exec_prefix"
6446   eval x=\"$x\"
6447   exec_prefix="$acl_save_exec_prefix"
6448   prefix="$acl_save_prefix"
6449
6450                     if test "X$x" = "X-I$additional_includedir"; then
6451                       haveit=yes
6452                       break
6453                     fi
6454                   done
6455                   if test -z "$haveit"; then
6456                     if test -d "$additional_includedir"; then
6457                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6458                     fi
6459                   fi
6460                 fi
6461               fi
6462             fi
6463                         if test -n "$found_la"; then
6464                                                         save_libdir="$libdir"
6465               case "$found_la" in
6466                 */* | *\\*) . "$found_la" ;;
6467                 *) . "./$found_la" ;;
6468               esac
6469               libdir="$save_libdir"
6470                             for dep in $dependency_libs; do
6471                 case "$dep" in
6472                   -L*)
6473                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6474                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6475                       haveit=
6476                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6477                         if test -n "$GCC"; then
6478                           case $host_os in
6479                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6480                           esac
6481                         fi
6482                       fi
6483                       if test -z "$haveit"; then
6484                         haveit=
6485                         for x in $LDFLAGS $LIBICONV; do
6486
6487   acl_save_prefix="$prefix"
6488   prefix="$acl_final_prefix"
6489   acl_save_exec_prefix="$exec_prefix"
6490   exec_prefix="$acl_final_exec_prefix"
6491   eval x=\"$x\"
6492   exec_prefix="$acl_save_exec_prefix"
6493   prefix="$acl_save_prefix"
6494
6495                           if test "X$x" = "X-L$additional_libdir"; then
6496                             haveit=yes
6497                             break
6498                           fi
6499                         done
6500                         if test -z "$haveit"; then
6501                           if test -d "$additional_libdir"; then
6502                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6503                           fi
6504                         fi
6505                         haveit=
6506                         for x in $LDFLAGS $LTLIBICONV; do
6507
6508   acl_save_prefix="$prefix"
6509   prefix="$acl_final_prefix"
6510   acl_save_exec_prefix="$exec_prefix"
6511   exec_prefix="$acl_final_exec_prefix"
6512   eval x=\"$x\"
6513   exec_prefix="$acl_save_exec_prefix"
6514   prefix="$acl_save_prefix"
6515
6516                           if test "X$x" = "X-L$additional_libdir"; then
6517                             haveit=yes
6518                             break
6519                           fi
6520                         done
6521                         if test -z "$haveit"; then
6522                           if test -d "$additional_libdir"; then
6523                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6524                           fi
6525                         fi
6526                       fi
6527                     fi
6528                     ;;
6529                   -R*)
6530                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6531                     if test "$enable_rpath" != no; then
6532                                                                   haveit=
6533                       for x in $rpathdirs; do
6534                         if test "X$x" = "X$dir"; then
6535                           haveit=yes
6536                           break
6537                         fi
6538                       done
6539                       if test -z "$haveit"; then
6540                         rpathdirs="$rpathdirs $dir"
6541                       fi
6542                                                                   haveit=
6543                       for x in $ltrpathdirs; do
6544                         if test "X$x" = "X$dir"; then
6545                           haveit=yes
6546                           break
6547                         fi
6548                       done
6549                       if test -z "$haveit"; then
6550                         ltrpathdirs="$ltrpathdirs $dir"
6551                       fi
6552                     fi
6553                     ;;
6554                   -l*)
6555                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6556                     ;;
6557                   *.la)
6558                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6559                     ;;
6560                   *)
6561                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6562                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6563                     ;;
6564                 esac
6565               done
6566             fi
6567           else
6568                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6569             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6570           fi
6571         fi
6572       fi
6573     done
6574   done
6575   if test "X$rpathdirs" != "X"; then
6576     if test -n "$hardcode_libdir_separator"; then
6577                         alldirs=
6578       for found_dir in $rpathdirs; do
6579         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6580       done
6581             acl_save_libdir="$libdir"
6582       libdir="$alldirs"
6583       eval flag=\"$hardcode_libdir_flag_spec\"
6584       libdir="$acl_save_libdir"
6585       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6586     else
6587             for found_dir in $rpathdirs; do
6588         acl_save_libdir="$libdir"
6589         libdir="$found_dir"
6590         eval flag=\"$hardcode_libdir_flag_spec\"
6591         libdir="$acl_save_libdir"
6592         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6593       done
6594     fi
6595   fi
6596   if test "X$ltrpathdirs" != "X"; then
6597             for found_dir in $ltrpathdirs; do
6598       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6599     done
6600   fi
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6620 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6621 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6622   echo $ECHO_N "(cached) $ECHO_C" >&6
6623 else
6624   gt_save_CPPFLAGS="$CPPFLAGS"
6625      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6626      gt_save_LIBS="$LIBS"
6627      LIBS="$LIBS -framework CoreFoundation"
6628      cat >conftest.$ac_ext <<_ACEOF
6629 /* confdefs.h.  */
6630 _ACEOF
6631 cat confdefs.h >>conftest.$ac_ext
6632 cat >>conftest.$ac_ext <<_ACEOF
6633 /* end confdefs.h.  */
6634 #include <CFPreferences.h>
6635 int
6636 main ()
6637 {
6638 CFPreferencesCopyAppValue(NULL, NULL)
6639   ;
6640   return 0;
6641 }
6642 _ACEOF
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (ac_try="$ac_link"
6645 case "(($ac_try" in
6646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647   *) ac_try_echo=$ac_try;;
6648 esac
6649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650   (eval "$ac_link") 2>conftest.er1
6651   ac_status=$?
6652   grep -v '^ *+' conftest.er1 >conftest.err
6653   rm -f conftest.er1
6654   cat conftest.err >&5
6655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656   (exit $ac_status); } && {
6657          test -z "$ac_c_werror_flag" ||
6658          test ! -s conftest.err
6659        } && test -s conftest$ac_exeext &&
6660        $as_test_x conftest$ac_exeext; then
6661   gt_cv_func_CFPreferencesCopyAppValue=yes
6662 else
6663   echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6665
6666         gt_cv_func_CFPreferencesCopyAppValue=no
6667 fi
6668
6669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6670       conftest$ac_exeext conftest.$ac_ext
6671      CPPFLAGS="$gt_save_CPPFLAGS"
6672      LIBS="$gt_save_LIBS"
6673 fi
6674 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6675 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6676   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6677
6678 cat >>confdefs.h <<\_ACEOF
6679 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6680 _ACEOF
6681
6682   fi
6683     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6684 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6685 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6686   echo $ECHO_N "(cached) $ECHO_C" >&6
6687 else
6688   gt_save_CPPFLAGS="$CPPFLAGS"
6689      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6690      gt_save_LIBS="$LIBS"
6691      LIBS="$LIBS -framework CoreFoundation"
6692      cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h.  */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h.  */
6698 #include <CFLocale.h>
6699 int
6700 main ()
6701 {
6702 CFLocaleCopyCurrent();
6703   ;
6704   return 0;
6705 }
6706 _ACEOF
6707 rm -f conftest.$ac_objext conftest$ac_exeext
6708 if { (ac_try="$ac_link"
6709 case "(($ac_try" in
6710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711   *) ac_try_echo=$ac_try;;
6712 esac
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714   (eval "$ac_link") 2>conftest.er1
6715   ac_status=$?
6716   grep -v '^ *+' conftest.er1 >conftest.err
6717   rm -f conftest.er1
6718   cat conftest.err >&5
6719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720   (exit $ac_status); } && {
6721          test -z "$ac_c_werror_flag" ||
6722          test ! -s conftest.err
6723        } && test -s conftest$ac_exeext &&
6724        $as_test_x conftest$ac_exeext; then
6725   gt_cv_func_CFLocaleCopyCurrent=yes
6726 else
6727   echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730         gt_cv_func_CFLocaleCopyCurrent=no
6731 fi
6732
6733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6734       conftest$ac_exeext conftest.$ac_ext
6735      CPPFLAGS="$gt_save_CPPFLAGS"
6736      LIBS="$gt_save_LIBS"
6737 fi
6738 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6739 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6740   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6741
6742 cat >>confdefs.h <<\_ACEOF
6743 #define HAVE_CFLOCALECOPYCURRENT 1
6744 _ACEOF
6745
6746   fi
6747   INTL_MACOSX_LIBS=
6748   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6749     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6750   fi
6751
6752
6753
6754
6755   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6756 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6757     # Check whether --enable-nls was given.
6758 if test "${enable_nls+set}" = set; then
6759   enableval=$enable_nls; USE_NLS=$enableval
6760 else
6761   USE_NLS=yes
6762 fi
6763
6764   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6765 echo "${ECHO_T}$USE_NLS" >&6; }
6766
6767
6768
6769
6770   LIBINTL=
6771   LTLIBINTL=
6772   POSUB=
6773
6774     if test "$USE_NLS" = "yes"; then
6775     gt_use_preinstalled_gnugettext=no
6776
6777
6778
6779
6780
6781
6782         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6783 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6784 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6785   echo $ECHO_N "(cached) $ECHO_C" >&6
6786 else
6787   cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <libintl.h>
6794 extern int _nl_msg_cat_cntr;
6795 extern int *_nl_domain_bindings;
6796 int
6797 main ()
6798 {
6799 bindtextdomain ("", "");
6800 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext conftest$ac_exeext
6806 if { (ac_try="$ac_link"
6807 case "(($ac_try" in
6808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809   *) ac_try_echo=$ac_try;;
6810 esac
6811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6812   (eval "$ac_link") 2>conftest.er1
6813   ac_status=$?
6814   grep -v '^ *+' conftest.er1 >conftest.err
6815   rm -f conftest.er1
6816   cat conftest.err >&5
6817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6818   (exit $ac_status); } && {
6819          test -z "$ac_c_werror_flag" ||
6820          test ! -s conftest.err
6821        } && test -s conftest$ac_exeext &&
6822        $as_test_x conftest$ac_exeext; then
6823   gt_cv_func_gnugettext1_libc=yes
6824 else
6825   echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828         gt_cv_func_gnugettext1_libc=no
6829 fi
6830
6831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6832       conftest$ac_exeext conftest.$ac_ext
6833 fi
6834 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6835 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6836
6837         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6838
6839
6840
6841
6842
6843           am_save_CPPFLAGS="$CPPFLAGS"
6844
6845   for element in $INCICONV; do
6846     haveit=
6847     for x in $CPPFLAGS; do
6848
6849   acl_save_prefix="$prefix"
6850   prefix="$acl_final_prefix"
6851   acl_save_exec_prefix="$exec_prefix"
6852   exec_prefix="$acl_final_exec_prefix"
6853   eval x=\"$x\"
6854   exec_prefix="$acl_save_exec_prefix"
6855   prefix="$acl_save_prefix"
6856
6857       if test "X$x" = "X$element"; then
6858         haveit=yes
6859         break
6860       fi
6861     done
6862     if test -z "$haveit"; then
6863       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6864     fi
6865   done
6866
6867
6868   { echo "$as_me:$LINENO: checking for iconv" >&5
6869 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6870 if test "${am_cv_func_iconv+set}" = set; then
6871   echo $ECHO_N "(cached) $ECHO_C" >&6
6872 else
6873
6874     am_cv_func_iconv="no, consider installing GNU libiconv"
6875     am_cv_lib_iconv=no
6876     cat >conftest.$ac_ext <<_ACEOF
6877 /* confdefs.h.  */
6878 _ACEOF
6879 cat confdefs.h >>conftest.$ac_ext
6880 cat >>conftest.$ac_ext <<_ACEOF
6881 /* end confdefs.h.  */
6882 #include <stdlib.h>
6883 #include <iconv.h>
6884 int
6885 main ()
6886 {
6887 iconv_t cd = iconv_open("","");
6888        iconv(cd,NULL,NULL,NULL,NULL);
6889        iconv_close(cd);
6890   ;
6891   return 0;
6892 }
6893 _ACEOF
6894 rm -f conftest.$ac_objext conftest$ac_exeext
6895 if { (ac_try="$ac_link"
6896 case "(($ac_try" in
6897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6898   *) ac_try_echo=$ac_try;;
6899 esac
6900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6901   (eval "$ac_link") 2>conftest.er1
6902   ac_status=$?
6903   grep -v '^ *+' conftest.er1 >conftest.err
6904   rm -f conftest.er1
6905   cat conftest.err >&5
6906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907   (exit $ac_status); } && {
6908          test -z "$ac_c_werror_flag" ||
6909          test ! -s conftest.err
6910        } && test -s conftest$ac_exeext &&
6911        $as_test_x conftest$ac_exeext; then
6912   am_cv_func_iconv=yes
6913 else
6914   echo "$as_me: failed program was:" >&5
6915 sed 's/^/| /' conftest.$ac_ext >&5
6916
6917
6918 fi
6919
6920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6921       conftest$ac_exeext conftest.$ac_ext
6922     if test "$am_cv_func_iconv" != yes; then
6923       am_save_LIBS="$LIBS"
6924       LIBS="$LIBS $LIBICONV"
6925       cat >conftest.$ac_ext <<_ACEOF
6926 /* confdefs.h.  */
6927 _ACEOF
6928 cat confdefs.h >>conftest.$ac_ext
6929 cat >>conftest.$ac_ext <<_ACEOF
6930 /* end confdefs.h.  */
6931 #include <stdlib.h>
6932 #include <iconv.h>
6933 int
6934 main ()
6935 {
6936 iconv_t cd = iconv_open("","");
6937          iconv(cd,NULL,NULL,NULL,NULL);
6938          iconv_close(cd);
6939   ;
6940   return 0;
6941 }
6942 _ACEOF
6943 rm -f conftest.$ac_objext conftest$ac_exeext
6944 if { (ac_try="$ac_link"
6945 case "(($ac_try" in
6946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6947   *) ac_try_echo=$ac_try;;
6948 esac
6949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6950   (eval "$ac_link") 2>conftest.er1
6951   ac_status=$?
6952   grep -v '^ *+' conftest.er1 >conftest.err
6953   rm -f conftest.er1
6954   cat conftest.err >&5
6955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956   (exit $ac_status); } && {
6957          test -z "$ac_c_werror_flag" ||
6958          test ! -s conftest.err
6959        } && test -s conftest$ac_exeext &&
6960        $as_test_x conftest$ac_exeext; then
6961   am_cv_lib_iconv=yes
6962         am_cv_func_iconv=yes
6963 else
6964   echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6966
6967
6968 fi
6969
6970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6971       conftest$ac_exeext conftest.$ac_ext
6972       LIBS="$am_save_LIBS"
6973     fi
6974
6975 fi
6976 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6977 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6978   if test "$am_cv_func_iconv" = yes; then
6979
6980 cat >>confdefs.h <<\_ACEOF
6981 #define HAVE_ICONV 1
6982 _ACEOF
6983
6984   fi
6985   if test "$am_cv_lib_iconv" = yes; then
6986     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6987 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6988     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6989 echo "${ECHO_T}$LIBICONV" >&6; }
6990   else
6991             CPPFLAGS="$am_save_CPPFLAGS"
6992     LIBICONV=
6993     LTLIBICONV=
6994   fi
6995
6996
6997
6998
6999
7000
7001     use_additional=yes
7002
7003   acl_save_prefix="$prefix"
7004   prefix="$acl_final_prefix"
7005   acl_save_exec_prefix="$exec_prefix"
7006   exec_prefix="$acl_final_exec_prefix"
7007
7008     eval additional_includedir=\"$includedir\"
7009     eval additional_libdir=\"$libdir\"
7010
7011   exec_prefix="$acl_save_exec_prefix"
7012   prefix="$acl_save_prefix"
7013
7014
7015 # Check whether --with-libintl-prefix was given.
7016 if test "${with_libintl_prefix+set}" = set; then
7017   withval=$with_libintl_prefix;
7018     if test "X$withval" = "Xno"; then
7019       use_additional=no
7020     else
7021       if test "X$withval" = "X"; then
7022
7023   acl_save_prefix="$prefix"
7024   prefix="$acl_final_prefix"
7025   acl_save_exec_prefix="$exec_prefix"
7026   exec_prefix="$acl_final_exec_prefix"
7027
7028           eval additional_includedir=\"$includedir\"
7029           eval additional_libdir=\"$libdir\"
7030
7031   exec_prefix="$acl_save_exec_prefix"
7032   prefix="$acl_save_prefix"
7033
7034       else
7035         additional_includedir="$withval/include"
7036         additional_libdir="$withval/lib"
7037       fi
7038     fi
7039
7040 fi
7041
7042       LIBINTL=
7043   LTLIBINTL=
7044   INCINTL=
7045   rpathdirs=
7046   ltrpathdirs=
7047   names_already_handled=
7048   names_next_round='intl '
7049   while test -n "$names_next_round"; do
7050     names_this_round="$names_next_round"
7051     names_next_round=
7052     for name in $names_this_round; do
7053       already_handled=
7054       for n in $names_already_handled; do
7055         if test "$n" = "$name"; then
7056           already_handled=yes
7057           break
7058         fi
7059       done
7060       if test -z "$already_handled"; then
7061         names_already_handled="$names_already_handled $name"
7062                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7063         eval value=\"\$HAVE_LIB$uppername\"
7064         if test -n "$value"; then
7065           if test "$value" = yes; then
7066             eval value=\"\$LIB$uppername\"
7067             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7068             eval value=\"\$LTLIB$uppername\"
7069             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7070           else
7071                                     :
7072           fi
7073         else
7074                               found_dir=
7075           found_la=
7076           found_so=
7077           found_a=
7078           if test $use_additional = yes; then
7079             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7080               found_dir="$additional_libdir"
7081               found_so="$additional_libdir/lib$name.$shlibext"
7082               if test -f "$additional_libdir/lib$name.la"; then
7083                 found_la="$additional_libdir/lib$name.la"
7084               fi
7085             else
7086               if test -f "$additional_libdir/lib$name.$libext"; then
7087                 found_dir="$additional_libdir"
7088                 found_a="$additional_libdir/lib$name.$libext"
7089                 if test -f "$additional_libdir/lib$name.la"; then
7090                   found_la="$additional_libdir/lib$name.la"
7091                 fi
7092               fi
7093             fi
7094           fi
7095           if test "X$found_dir" = "X"; then
7096             for x in $LDFLAGS $LTLIBINTL; do
7097
7098   acl_save_prefix="$prefix"
7099   prefix="$acl_final_prefix"
7100   acl_save_exec_prefix="$exec_prefix"
7101   exec_prefix="$acl_final_exec_prefix"
7102   eval x=\"$x\"
7103   exec_prefix="$acl_save_exec_prefix"
7104   prefix="$acl_save_prefix"
7105
7106               case "$x" in
7107                 -L*)
7108                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7109                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7110                     found_dir="$dir"
7111                     found_so="$dir/lib$name.$shlibext"
7112                     if test -f "$dir/lib$name.la"; then
7113                       found_la="$dir/lib$name.la"
7114                     fi
7115                   else
7116                     if test -f "$dir/lib$name.$libext"; then
7117                       found_dir="$dir"
7118                       found_a="$dir/lib$name.$libext"
7119                       if test -f "$dir/lib$name.la"; then
7120                         found_la="$dir/lib$name.la"
7121                       fi
7122                     fi
7123                   fi
7124                   ;;
7125               esac
7126               if test "X$found_dir" != "X"; then
7127                 break
7128               fi
7129             done
7130           fi
7131           if test "X$found_dir" != "X"; then
7132                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7133             if test "X$found_so" != "X"; then
7134                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7135                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7136               else
7137                                                                                 haveit=
7138                 for x in $ltrpathdirs; do
7139                   if test "X$x" = "X$found_dir"; then
7140                     haveit=yes
7141                     break
7142                   fi
7143                 done
7144                 if test -z "$haveit"; then
7145                   ltrpathdirs="$ltrpathdirs $found_dir"
7146                 fi
7147                                 if test "$hardcode_direct" = yes; then
7148                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7149                 else
7150                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7151                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7152                                                             haveit=
7153                     for x in $rpathdirs; do
7154                       if test "X$x" = "X$found_dir"; then
7155                         haveit=yes
7156                         break
7157                       fi
7158                     done
7159                     if test -z "$haveit"; then
7160                       rpathdirs="$rpathdirs $found_dir"
7161                     fi
7162                   else
7163                                                                                 haveit=
7164                     for x in $LDFLAGS $LIBINTL; do
7165
7166   acl_save_prefix="$prefix"
7167   prefix="$acl_final_prefix"
7168   acl_save_exec_prefix="$exec_prefix"
7169   exec_prefix="$acl_final_exec_prefix"
7170   eval x=\"$x\"
7171   exec_prefix="$acl_save_exec_prefix"
7172   prefix="$acl_save_prefix"
7173
7174                       if test "X$x" = "X-L$found_dir"; then
7175                         haveit=yes
7176                         break
7177                       fi
7178                     done
7179                     if test -z "$haveit"; then
7180                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7181                     fi
7182                     if test "$hardcode_minus_L" != no; then
7183                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7184                     else
7185                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7186                     fi
7187                   fi
7188                 fi
7189               fi
7190             else
7191               if test "X$found_a" != "X"; then
7192                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7193               else
7194                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7195               fi
7196             fi
7197                         additional_includedir=
7198             case "$found_dir" in
7199               */lib | */lib/)
7200                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7201                 additional_includedir="$basedir/include"
7202                 ;;
7203             esac
7204             if test "X$additional_includedir" != "X"; then
7205                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7206                 haveit=
7207                 if test "X$additional_includedir" = "X/usr/local/include"; then
7208                   if test -n "$GCC"; then
7209                     case $host_os in
7210                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7211                     esac
7212                   fi
7213                 fi
7214                 if test -z "$haveit"; then
7215                   for x in $CPPFLAGS $INCINTL; do
7216
7217   acl_save_prefix="$prefix"
7218   prefix="$acl_final_prefix"
7219   acl_save_exec_prefix="$exec_prefix"
7220   exec_prefix="$acl_final_exec_prefix"
7221   eval x=\"$x\"
7222   exec_prefix="$acl_save_exec_prefix"
7223   prefix="$acl_save_prefix"
7224
7225                     if test "X$x" = "X-I$additional_includedir"; then
7226                       haveit=yes
7227                       break
7228                     fi
7229                   done
7230                   if test -z "$haveit"; then
7231                     if test -d "$additional_includedir"; then
7232                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7233                     fi
7234                   fi
7235                 fi
7236               fi
7237             fi
7238                         if test -n "$found_la"; then
7239                                                         save_libdir="$libdir"
7240               case "$found_la" in
7241                 */* | *\\*) . "$found_la" ;;
7242                 *) . "./$found_la" ;;
7243               esac
7244               libdir="$save_libdir"
7245                             for dep in $dependency_libs; do
7246                 case "$dep" in
7247                   -L*)
7248                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7249                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7250                       haveit=
7251                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7252                         if test -n "$GCC"; then
7253                           case $host_os in
7254                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7255                           esac
7256                         fi
7257                       fi
7258                       if test -z "$haveit"; then
7259                         haveit=
7260                         for x in $LDFLAGS $LIBINTL; do
7261
7262   acl_save_prefix="$prefix"
7263   prefix="$acl_final_prefix"
7264   acl_save_exec_prefix="$exec_prefix"
7265   exec_prefix="$acl_final_exec_prefix"
7266   eval x=\"$x\"
7267   exec_prefix="$acl_save_exec_prefix"
7268   prefix="$acl_save_prefix"
7269
7270                           if test "X$x" = "X-L$additional_libdir"; then
7271                             haveit=yes
7272                             break
7273                           fi
7274                         done
7275                         if test -z "$haveit"; then
7276                           if test -d "$additional_libdir"; then
7277                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7278                           fi
7279                         fi
7280                         haveit=
7281                         for x in $LDFLAGS $LTLIBINTL; do
7282
7283   acl_save_prefix="$prefix"
7284   prefix="$acl_final_prefix"
7285   acl_save_exec_prefix="$exec_prefix"
7286   exec_prefix="$acl_final_exec_prefix"
7287   eval x=\"$x\"
7288   exec_prefix="$acl_save_exec_prefix"
7289   prefix="$acl_save_prefix"
7290
7291                           if test "X$x" = "X-L$additional_libdir"; then
7292                             haveit=yes
7293                             break
7294                           fi
7295                         done
7296                         if test -z "$haveit"; then
7297                           if test -d "$additional_libdir"; then
7298                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7299                           fi
7300                         fi
7301                       fi
7302                     fi
7303                     ;;
7304                   -R*)
7305                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7306                     if test "$enable_rpath" != no; then
7307                                                                   haveit=
7308                       for x in $rpathdirs; do
7309                         if test "X$x" = "X$dir"; then
7310                           haveit=yes
7311                           break
7312                         fi
7313                       done
7314                       if test -z "$haveit"; then
7315                         rpathdirs="$rpathdirs $dir"
7316                       fi
7317                                                                   haveit=
7318                       for x in $ltrpathdirs; do
7319                         if test "X$x" = "X$dir"; then
7320                           haveit=yes
7321                           break
7322                         fi
7323                       done
7324                       if test -z "$haveit"; then
7325                         ltrpathdirs="$ltrpathdirs $dir"
7326                       fi
7327                     fi
7328                     ;;
7329                   -l*)
7330                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7331                     ;;
7332                   *.la)
7333                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7334                     ;;
7335                   *)
7336                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7337                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7338                     ;;
7339                 esac
7340               done
7341             fi
7342           else
7343                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7344             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7345           fi
7346         fi
7347       fi
7348     done
7349   done
7350   if test "X$rpathdirs" != "X"; then
7351     if test -n "$hardcode_libdir_separator"; then
7352                         alldirs=
7353       for found_dir in $rpathdirs; do
7354         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7355       done
7356             acl_save_libdir="$libdir"
7357       libdir="$alldirs"
7358       eval flag=\"$hardcode_libdir_flag_spec\"
7359       libdir="$acl_save_libdir"
7360       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7361     else
7362             for found_dir in $rpathdirs; do
7363         acl_save_libdir="$libdir"
7364         libdir="$found_dir"
7365         eval flag=\"$hardcode_libdir_flag_spec\"
7366         libdir="$acl_save_libdir"
7367         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7368       done
7369     fi
7370   fi
7371   if test "X$ltrpathdirs" != "X"; then
7372             for found_dir in $ltrpathdirs; do
7373       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7374     done
7375   fi
7376
7377           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7378 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7379 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7380   echo $ECHO_N "(cached) $ECHO_C" >&6
7381 else
7382   gt_save_CPPFLAGS="$CPPFLAGS"
7383             CPPFLAGS="$CPPFLAGS $INCINTL"
7384             gt_save_LIBS="$LIBS"
7385             LIBS="$LIBS $LIBINTL"
7386                         cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h.  */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h.  */
7392 #include <libintl.h>
7393 extern int _nl_msg_cat_cntr;
7394 extern
7395 #ifdef __cplusplus
7396 "C"
7397 #endif
7398 const char *_nl_expand_alias (const char *);
7399 int
7400 main ()
7401 {
7402 bindtextdomain ("", "");
7403 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7404   ;
7405   return 0;
7406 }
7407 _ACEOF
7408 rm -f conftest.$ac_objext conftest$ac_exeext
7409 if { (ac_try="$ac_link"
7410 case "(($ac_try" in
7411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412   *) ac_try_echo=$ac_try;;
7413 esac
7414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7415   (eval "$ac_link") 2>conftest.er1
7416   ac_status=$?
7417   grep -v '^ *+' conftest.er1 >conftest.err
7418   rm -f conftest.er1
7419   cat conftest.err >&5
7420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421   (exit $ac_status); } && {
7422          test -z "$ac_c_werror_flag" ||
7423          test ! -s conftest.err
7424        } && test -s conftest$ac_exeext &&
7425        $as_test_x conftest$ac_exeext; then
7426   gt_cv_func_gnugettext1_libintl=yes
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431         gt_cv_func_gnugettext1_libintl=no
7432 fi
7433
7434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7435       conftest$ac_exeext conftest.$ac_ext
7436                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7437               LIBS="$LIBS $LIBICONV"
7438               cat >conftest.$ac_ext <<_ACEOF
7439 /* confdefs.h.  */
7440 _ACEOF
7441 cat confdefs.h >>conftest.$ac_ext
7442 cat >>conftest.$ac_ext <<_ACEOF
7443 /* end confdefs.h.  */
7444 #include <libintl.h>
7445 extern int _nl_msg_cat_cntr;
7446 extern
7447 #ifdef __cplusplus
7448 "C"
7449 #endif
7450 const char *_nl_expand_alias (const char *);
7451 int
7452 main ()
7453 {
7454 bindtextdomain ("", "");
7455 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7467   (eval "$ac_link") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } && {
7474          test -z "$ac_c_werror_flag" ||
7475          test ! -s conftest.err
7476        } && test -s conftest$ac_exeext &&
7477        $as_test_x conftest$ac_exeext; then
7478   LIBINTL="$LIBINTL $LIBICONV"
7479                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7480                 gt_cv_func_gnugettext1_libintl=yes
7481
7482 else
7483   echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486
7487 fi
7488
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490       conftest$ac_exeext conftest.$ac_ext
7491             fi
7492             CPPFLAGS="$gt_save_CPPFLAGS"
7493             LIBS="$gt_save_LIBS"
7494 fi
7495 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7496 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7497         fi
7498
7499                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7500            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7501                 && test "$PACKAGE" != gettext-runtime \
7502                 && test "$PACKAGE" != gettext-tools; }; then
7503           gt_use_preinstalled_gnugettext=yes
7504         else
7505                     LIBINTL=
7506           LTLIBINTL=
7507           INCINTL=
7508         fi
7509
7510
7511
7512     if test -n "$INTL_MACOSX_LIBS"; then
7513       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7514          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7515                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7516         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7517       fi
7518     fi
7519
7520     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7521        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7522
7523 cat >>confdefs.h <<\_ACEOF
7524 #define ENABLE_NLS 1
7525 _ACEOF
7526
7527     else
7528       USE_NLS=no
7529     fi
7530   fi
7531
7532   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7533 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7534   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7535 echo "${ECHO_T}$USE_NLS" >&6; }
7536   if test "$USE_NLS" = "yes"; then
7537     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7538 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7539     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7540       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7541         gt_source="external libintl"
7542       else
7543         gt_source="libc"
7544       fi
7545     else
7546       gt_source="included intl directory"
7547     fi
7548     { echo "$as_me:$LINENO: result: $gt_source" >&5
7549 echo "${ECHO_T}$gt_source" >&6; }
7550   fi
7551
7552   if test "$USE_NLS" = "yes"; then
7553
7554     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7555       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7556         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7557 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7558         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7559 echo "${ECHO_T}$LIBINTL" >&6; }
7560
7561   for element in $INCINTL; do
7562     haveit=
7563     for x in $CPPFLAGS; do
7564
7565   acl_save_prefix="$prefix"
7566   prefix="$acl_final_prefix"
7567   acl_save_exec_prefix="$exec_prefix"
7568   exec_prefix="$acl_final_exec_prefix"
7569   eval x=\"$x\"
7570   exec_prefix="$acl_save_exec_prefix"
7571   prefix="$acl_save_prefix"
7572
7573       if test "X$x" = "X$element"; then
7574         haveit=yes
7575         break
7576       fi
7577     done
7578     if test -z "$haveit"; then
7579       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7580     fi
7581   done
7582
7583       fi
7584
7585
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_GETTEXT 1
7588 _ACEOF
7589
7590
7591 cat >>confdefs.h <<\_ACEOF
7592 #define HAVE_DCGETTEXT 1
7593 _ACEOF
7594
7595     fi
7596
7597         POSUB=po
7598   fi
7599
7600
7601
7602     INTLLIBS="$LIBINTL"
7603
7604
7605
7606
7607
7608
7609 if test x${prefix} = xNONE ; then
7610    if test `eval echo ${datadir}` = NONE/share ; then
7611       datadir=/usr/share
7612    fi
7613 fi
7614
7615 # ------------------------------------------------------------------
7616 #  If the user has not set --prefix, we set our default to nothing.
7617 #  In this case, if the user has not set --sysconfdir, we set it
7618 #  to the package default of /etc/bacula.  If either --prefix or
7619 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7620 # ------------------------------------------------------------------
7621 if test x${prefix} = xNONE ; then
7622     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7623         sysconfdir=/etc/bacula
7624     fi
7625     prefix=
7626 fi
7627 sysconfdir=`eval echo ${sysconfdir}`
7628 datadir=`eval echo ${datadir}`
7629 localedir=`eval echo ${datadir}/locale`
7630 cat >>confdefs.h <<_ACEOF
7631 #define LOCALEDIR "$localedir"
7632 _ACEOF
7633
7634 cat >>confdefs.h <<_ACEOF
7635 #define SYSCONFDIR "$sysconfdir"
7636 _ACEOF
7637
7638
7639 # -------------------------------------------------------------------------
7640 #  If the user has not set --exec-prefix, we default to ${prefix}
7641 # -------------------------------------------------------------------------
7642 if test x${exec_prefix} = xNONE ; then
7643     exec_prefix=${prefix}
7644 fi
7645
7646 # ------------------------------------------------------------------
7647 # If the user has not set --sbindir, we set our default as /sbin
7648 # ------------------------------------------------------------------
7649 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7650     sbindir=${exec_prefix}/sbin
7651 fi
7652 sbindir=`eval echo ${sbindir}`
7653
7654
7655 # -------------------------------------------------------------------------
7656 #  If the user has not set --mandir, we default to /usr/share/man
7657 # -------------------------------------------------------------------------
7658 if test x$mandir = x'${prefix}/man' ; then
7659    mandir=/usr/share/man
7660 fi
7661
7662
7663 for ac_prog in msgfmt
7664 do
7665   # Extract the first word of "$ac_prog", so it can be a program name with args.
7666 set dummy $ac_prog; ac_word=$2
7667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7669 if test "${ac_cv_path_MSGFMT+set}" = set; then
7670   echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672   case $MSGFMT in
7673   [\\/]* | ?:[\\/]*)
7674   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7675   ;;
7676   *)
7677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7678 for as_dir in $PATH
7679 do
7680   IFS=$as_save_IFS
7681   test -z "$as_dir" && as_dir=.
7682   for ac_exec_ext in '' $ac_executable_extensions; do
7683   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686     break 2
7687   fi
7688 done
7689 done
7690 IFS=$as_save_IFS
7691
7692   ;;
7693 esac
7694 fi
7695 MSGFMT=$ac_cv_path_MSGFMT
7696 if test -n "$MSGFMT"; then
7697   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7698 echo "${ECHO_T}$MSGFMT" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705   test -n "$MSGFMT" && break
7706 done
7707 test -n "$MSGFMT" || MSGFMT="no"
7708
7709 if test "$MSGFMT" = "no"
7710 then
7711    echo 'msgfmt program not found, disabling NLS !'
7712    USE_NLS=no
7713    USE_INCLUDED_LIBINTL=no
7714 #else
7715
7716     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7717 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7718 if test "${ac_cv_gnu_library_2+set}" = set; then
7719   echo $ECHO_N "(cached) $ECHO_C" >&6
7720 else
7721   cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h.  */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h.  */
7727
7728 #include <features.h>
7729 #ifdef __GNU_LIBRARY__
7730  #if (__GLIBC__ >= 2)
7731   Lucky GNU user
7732  #endif
7733 #endif
7734
7735 _ACEOF
7736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7738   ac_cv_gnu_library_2=yes
7739 else
7740   ac_cv_gnu_library_2=no
7741 fi
7742 rm -f conftest*
7743
7744
7745
7746 fi
7747 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7748 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7749
7750     GLIBC2="$ac_cv_gnu_library_2"
7751
7752
7753
7754         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7755 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7756 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7757   echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759   ac_check_lib_save_LIBS=$LIBS
7760 LIBS="-lcposix  $LIBS"
7761 cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767
7768 /* Override any GCC internal prototype to avoid an error.
7769    Use char because int might match the return type of a GCC
7770    builtin and then its argument prototype would still apply.  */
7771 #ifdef __cplusplus
7772 extern "C"
7773 #endif
7774 char strerror ();
7775 int
7776 main ()
7777 {
7778 return strerror ();
7779   ;
7780   return 0;
7781 }
7782 _ACEOF
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784 if { (ac_try="$ac_link"
7785 case "(($ac_try" in
7786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787   *) ac_try_echo=$ac_try;;
7788 esac
7789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790   (eval "$ac_link") 2>conftest.er1
7791   ac_status=$?
7792   grep -v '^ *+' conftest.er1 >conftest.err
7793   rm -f conftest.er1
7794   cat conftest.err >&5
7795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796   (exit $ac_status); } && {
7797          test -z "$ac_c_werror_flag" ||
7798          test ! -s conftest.err
7799        } && test -s conftest$ac_exeext &&
7800        $as_test_x conftest$ac_exeext; then
7801   ac_cv_lib_cposix_strerror=yes
7802 else
7803   echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7805
7806         ac_cv_lib_cposix_strerror=no
7807 fi
7808
7809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810       conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7812 fi
7813 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7814 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7815 if test $ac_cv_lib_cposix_strerror = yes; then
7816   LIBS="$LIBS -lcposix"
7817 fi
7818
7819
7820
7821 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7822 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7823 if test "${ac_cv_header_stdc+set}" = set; then
7824   echo $ECHO_N "(cached) $ECHO_C" >&6
7825 else
7826   cat >conftest.$ac_ext <<_ACEOF
7827 /* confdefs.h.  */
7828 _ACEOF
7829 cat confdefs.h >>conftest.$ac_ext
7830 cat >>conftest.$ac_ext <<_ACEOF
7831 /* end confdefs.h.  */
7832 #include <stdlib.h>
7833 #include <stdarg.h>
7834 #include <string.h>
7835 #include <float.h>
7836
7837 int
7838 main ()
7839 {
7840
7841   ;
7842   return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849   *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852   (eval "$ac_compile") 2>conftest.er1
7853   ac_status=$?
7854   grep -v '^ *+' conftest.er1 >conftest.err
7855   rm -f conftest.er1
7856   cat conftest.err >&5
7857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858   (exit $ac_status); } && {
7859          test -z "$ac_c_werror_flag" ||
7860          test ! -s conftest.err
7861        } && test -s conftest.$ac_objext; then
7862   ac_cv_header_stdc=yes
7863 else
7864   echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867         ac_cv_header_stdc=no
7868 fi
7869
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871
7872 if test $ac_cv_header_stdc = yes; then
7873   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7874   cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h.  */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h.  */
7880 #include <string.h>
7881
7882 _ACEOF
7883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7884   $EGREP "memchr" >/dev/null 2>&1; then
7885   :
7886 else
7887   ac_cv_header_stdc=no
7888 fi
7889 rm -f conftest*
7890
7891 fi
7892
7893 if test $ac_cv_header_stdc = yes; then
7894   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7895   cat >conftest.$ac_ext <<_ACEOF
7896 /* confdefs.h.  */
7897 _ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h.  */
7901 #include <stdlib.h>
7902
7903 _ACEOF
7904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7905   $EGREP "free" >/dev/null 2>&1; then
7906   :
7907 else
7908   ac_cv_header_stdc=no
7909 fi
7910 rm -f conftest*
7911
7912 fi
7913
7914 if test $ac_cv_header_stdc = yes; then
7915   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7916   if test "$cross_compiling" = yes; then
7917   :
7918 else
7919   cat >conftest.$ac_ext <<_ACEOF
7920 /* confdefs.h.  */
7921 _ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h.  */
7925 #include <ctype.h>
7926 #include <stdlib.h>
7927 #if ((' ' & 0x0FF) == 0x020)
7928 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7929 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7930 #else
7931 # define ISLOWER(c) \
7932                    (('a' <= (c) && (c) <= 'i') \
7933                      || ('j' <= (c) && (c) <= 'r') \
7934                      || ('s' <= (c) && (c) <= 'z'))
7935 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7936 #endif
7937
7938 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7939 int
7940 main ()
7941 {
7942   int i;
7943   for (i = 0; i < 256; i++)
7944     if (XOR (islower (i), ISLOWER (i))
7945         || toupper (i) != TOUPPER (i))
7946       return 2;
7947   return 0;
7948 }
7949 _ACEOF
7950 rm -f conftest$ac_exeext
7951 if { (ac_try="$ac_link"
7952 case "(($ac_try" in
7953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7954   *) ac_try_echo=$ac_try;;
7955 esac
7956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7957   (eval "$ac_link") 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7961   { (case "(($ac_try" in
7962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963   *) ac_try_echo=$ac_try;;
7964 esac
7965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966   (eval "$ac_try") 2>&5
7967   ac_status=$?
7968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969   (exit $ac_status); }; }; then
7970   :
7971 else
7972   echo "$as_me: program exited with status $ac_status" >&5
7973 echo "$as_me: failed program was:" >&5
7974 sed 's/^/| /' conftest.$ac_ext >&5
7975
7976 ( exit $ac_status )
7977 ac_cv_header_stdc=no
7978 fi
7979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7980 fi
7981
7982
7983 fi
7984 fi
7985 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7986 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7987 if test $ac_cv_header_stdc = yes; then
7988
7989 cat >>confdefs.h <<\_ACEOF
7990 #define STDC_HEADERS 1
7991 _ACEOF
7992
7993 fi
7994
7995 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7996 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7997 if test "${ac_cv_c_const+set}" = set; then
7998   echo $ECHO_N "(cached) $ECHO_C" >&6
7999 else
8000   cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h.  */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h.  */
8006
8007 int
8008 main ()
8009 {
8010 /* FIXME: Include the comments suggested by Paul. */
8011 #ifndef __cplusplus
8012   /* Ultrix mips cc rejects this.  */
8013   typedef int charset[2];
8014   const charset cs;
8015   /* SunOS 4.1.1 cc rejects this.  */
8016   char const *const *pcpcc;
8017   char **ppc;
8018   /* NEC SVR4.0.2 mips cc rejects this.  */
8019   struct point {int x, y;};
8020   static struct point const zero = {0,0};
8021   /* AIX XL C 1.02.0.0 rejects this.
8022      It does not let you subtract one const X* pointer from another in
8023      an arm of an if-expression whose if-part is not a constant
8024      expression */
8025   const char *g = "string";
8026   pcpcc = &g + (g ? g-g : 0);
8027   /* HPUX 7.0 cc rejects these. */
8028   ++pcpcc;
8029   ppc = (char**) pcpcc;
8030   pcpcc = (char const *const *) ppc;
8031   { /* SCO 3.2v4 cc rejects this.  */
8032     char *t;
8033     char const *s = 0 ? (char *) 0 : (char const *) 0;
8034
8035     *t++ = 0;
8036     if (s) return 0;
8037   }
8038   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8039     int x[] = {25, 17};
8040     const int *foo = &x[0];
8041     ++foo;
8042   }
8043   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8044     typedef const int *iptr;
8045     iptr p = 0;
8046     ++p;
8047   }
8048   { /* AIX XL C 1.02.0.0 rejects this saying
8049        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8050     struct s { int j; const int *ap[3]; };
8051     struct s *b; b->j = 5;
8052   }
8053   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8054     const int foo = 10;
8055     if (!foo) return 0;
8056   }
8057   return !cs[0] && !zero.x;
8058 #endif
8059
8060   ;
8061   return 0;
8062 }
8063 _ACEOF
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8066 case "(($ac_try" in
8067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068   *) ac_try_echo=$ac_try;;
8069 esac
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071   (eval "$ac_compile") 2>conftest.er1
8072   ac_status=$?
8073   grep -v '^ *+' conftest.er1 >conftest.err
8074   rm -f conftest.er1
8075   cat conftest.err >&5
8076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077   (exit $ac_status); } && {
8078          test -z "$ac_c_werror_flag" ||
8079          test ! -s conftest.err
8080        } && test -s conftest.$ac_objext; then
8081   ac_cv_c_const=yes
8082 else
8083   echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.$ac_ext >&5
8085
8086         ac_cv_c_const=no
8087 fi
8088
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8092 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8093 if test $ac_cv_c_const = no; then
8094
8095 cat >>confdefs.h <<\_ACEOF
8096 #define const
8097 _ACEOF
8098
8099 fi
8100
8101
8102   { echo "$as_me:$LINENO: checking for signed" >&5
8103 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8104 if test "${bh_cv_c_signed+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   cat >conftest.$ac_ext <<_ACEOF
8108 /* confdefs.h.  */
8109 _ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h.  */
8113
8114 int
8115 main ()
8116 {
8117 signed char x;
8118   ;
8119   return 0;
8120 }
8121 _ACEOF
8122 rm -f conftest.$ac_objext
8123 if { (ac_try="$ac_compile"
8124 case "(($ac_try" in
8125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8126   *) ac_try_echo=$ac_try;;
8127 esac
8128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8129   (eval "$ac_compile") 2>conftest.er1
8130   ac_status=$?
8131   grep -v '^ *+' conftest.er1 >conftest.err
8132   rm -f conftest.er1
8133   cat conftest.err >&5
8134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135   (exit $ac_status); } && {
8136          test -z "$ac_c_werror_flag" ||
8137          test ! -s conftest.err
8138        } && test -s conftest.$ac_objext; then
8139   bh_cv_c_signed=yes
8140 else
8141   echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8143
8144         bh_cv_c_signed=no
8145 fi
8146
8147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8148 fi
8149 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8150 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8151   if test $bh_cv_c_signed = no; then
8152
8153 cat >>confdefs.h <<\_ACEOF
8154 #define signed
8155 _ACEOF
8156
8157   fi
8158
8159 { echo "$as_me:$LINENO: checking for inline" >&5
8160 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8161 if test "${ac_cv_c_inline+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   ac_cv_c_inline=no
8165 for ac_kw in inline __inline__ __inline; do
8166   cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172 #ifndef __cplusplus
8173 typedef int foo_t;
8174 static $ac_kw foo_t static_foo () {return 0; }
8175 $ac_kw foo_t foo () {return 0; }
8176 #endif
8177
8178 _ACEOF
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_compile") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } && {
8193          test -z "$ac_c_werror_flag" ||
8194          test ! -s conftest.err
8195        } && test -s conftest.$ac_objext; then
8196   ac_cv_c_inline=$ac_kw
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201
8202 fi
8203
8204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205   test "$ac_cv_c_inline" != no && break
8206 done
8207
8208 fi
8209 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8210 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8211
8212
8213 case $ac_cv_c_inline in
8214   inline | yes) ;;
8215   *)
8216     case $ac_cv_c_inline in
8217       no) ac_val=;;
8218       *) ac_val=$ac_cv_c_inline;;
8219     esac
8220     cat >>confdefs.h <<_ACEOF
8221 #ifndef __cplusplus
8222 #define inline $ac_val
8223 #endif
8224 _ACEOF
8225     ;;
8226 esac
8227
8228 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8239                   inttypes.h stdint.h unistd.h
8240 do
8241 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8245   echo $ECHO_N "(cached) $ECHO_C" >&6
8246 else
8247   cat >conftest.$ac_ext <<_ACEOF
8248 /* confdefs.h.  */
8249 _ACEOF
8250 cat confdefs.h >>conftest.$ac_ext
8251 cat >>conftest.$ac_ext <<_ACEOF
8252 /* end confdefs.h.  */
8253 $ac_includes_default
8254
8255 #include <$ac_header>
8256 _ACEOF
8257 rm -f conftest.$ac_objext
8258 if { (ac_try="$ac_compile"
8259 case "(($ac_try" in
8260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8261   *) ac_try_echo=$ac_try;;
8262 esac
8263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8264   (eval "$ac_compile") 2>conftest.er1
8265   ac_status=$?
8266   grep -v '^ *+' conftest.er1 >conftest.err
8267   rm -f conftest.er1
8268   cat conftest.err >&5
8269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270   (exit $ac_status); } && {
8271          test -z "$ac_c_werror_flag" ||
8272          test ! -s conftest.err
8273        } && test -s conftest.$ac_objext; then
8274   eval "$as_ac_Header=yes"
8275 else
8276   echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8278
8279         eval "$as_ac_Header=no"
8280 fi
8281
8282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8283 fi
8284 ac_res=`eval echo '${'$as_ac_Header'}'`
8285                { echo "$as_me:$LINENO: result: $ac_res" >&5
8286 echo "${ECHO_T}$ac_res" >&6; }
8287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8288   cat >>confdefs.h <<_ACEOF
8289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8290 _ACEOF
8291
8292 fi
8293
8294 done
8295
8296
8297 { echo "$as_me:$LINENO: checking for off_t" >&5
8298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8299 if test "${ac_cv_type_off_t+set}" = set; then
8300   echo $ECHO_N "(cached) $ECHO_C" >&6
8301 else
8302   cat >conftest.$ac_ext <<_ACEOF
8303 /* confdefs.h.  */
8304 _ACEOF
8305 cat confdefs.h >>conftest.$ac_ext
8306 cat >>conftest.$ac_ext <<_ACEOF
8307 /* end confdefs.h.  */
8308 $ac_includes_default
8309 typedef off_t ac__type_new_;
8310 int
8311 main ()
8312 {
8313 if ((ac__type_new_ *) 0)
8314   return 0;
8315 if (sizeof (ac__type_new_))
8316   return 0;
8317   ;
8318   return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (ac_try="$ac_compile"
8323 case "(($ac_try" in
8324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325   *) ac_try_echo=$ac_try;;
8326 esac
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328   (eval "$ac_compile") 2>conftest.er1
8329   ac_status=$?
8330   grep -v '^ *+' conftest.er1 >conftest.err
8331   rm -f conftest.er1
8332   cat conftest.err >&5
8333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334   (exit $ac_status); } && {
8335          test -z "$ac_c_werror_flag" ||
8336          test ! -s conftest.err
8337        } && test -s conftest.$ac_objext; then
8338   ac_cv_type_off_t=yes
8339 else
8340   echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8342
8343         ac_cv_type_off_t=no
8344 fi
8345
8346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347 fi
8348 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8349 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8350 if test $ac_cv_type_off_t = yes; then
8351   :
8352 else
8353
8354 cat >>confdefs.h <<_ACEOF
8355 #define off_t long int
8356 _ACEOF
8357
8358 fi
8359
8360 { echo "$as_me:$LINENO: checking for size_t" >&5
8361 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8362 if test "${ac_cv_type_size_t+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h.  */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h.  */
8371 $ac_includes_default
8372 typedef size_t ac__type_new_;
8373 int
8374 main ()
8375 {
8376 if ((ac__type_new_ *) 0)
8377   return 0;
8378 if (sizeof (ac__type_new_))
8379   return 0;
8380   ;
8381   return 0;
8382 }
8383 _ACEOF
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8386 case "(($ac_try" in
8387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8388   *) ac_try_echo=$ac_try;;
8389 esac
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391   (eval "$ac_compile") 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } && {
8398          test -z "$ac_c_werror_flag" ||
8399          test ! -s conftest.err
8400        } && test -s conftest.$ac_objext; then
8401   ac_cv_type_size_t=yes
8402 else
8403   echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8405
8406         ac_cv_type_size_t=no
8407 fi
8408
8409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8410 fi
8411 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8412 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8413 if test $ac_cv_type_size_t = yes; then
8414   :
8415 else
8416
8417 cat >>confdefs.h <<_ACEOF
8418 #define size_t unsigned int
8419 _ACEOF
8420
8421 fi
8422
8423
8424   { echo "$as_me:$LINENO: checking for long long" >&5
8425 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8426 if test "${ac_cv_type_long_long+set}" = set; then
8427   echo $ECHO_N "(cached) $ECHO_C" >&6
8428 else
8429   cat >conftest.$ac_ext <<_ACEOF
8430 /* confdefs.h.  */
8431 _ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h.  */
8435 long long ll = 1LL; int i = 63;
8436 int
8437 main ()
8438 {
8439 long long llmax = (long long) -1;
8440      return ll << i | ll >> i | llmax / ll | llmax % ll;
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (ac_try="$ac_link"
8447 case "(($ac_try" in
8448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449   *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452   (eval "$ac_link") 2>conftest.er1
8453   ac_status=$?
8454   grep -v '^ *+' conftest.er1 >conftest.err
8455   rm -f conftest.er1
8456   cat conftest.err >&5
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } && {
8459          test -z "$ac_c_werror_flag" ||
8460          test ! -s conftest.err
8461        } && test -s conftest$ac_exeext &&
8462        $as_test_x conftest$ac_exeext; then
8463   ac_cv_type_long_long=yes
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468         ac_cv_type_long_long=no
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472       conftest$ac_exeext conftest.$ac_ext
8473 fi
8474 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8475 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8476   if test $ac_cv_type_long_long = yes; then
8477
8478 cat >>confdefs.h <<\_ACEOF
8479 #define HAVE_LONG_LONG 1
8480 _ACEOF
8481
8482   fi
8483
8484
8485   { echo "$as_me:$LINENO: checking for long double" >&5
8486 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8487 if test "${gt_cv_c_long_double+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   if test "$GCC" = yes; then
8491        gt_cv_c_long_double=yes
8492      else
8493        cat >conftest.$ac_ext <<_ACEOF
8494 /* confdefs.h.  */
8495 _ACEOF
8496 cat confdefs.h >>conftest.$ac_ext
8497 cat >>conftest.$ac_ext <<_ACEOF
8498 /* end confdefs.h.  */
8499
8500          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8501          long double foo = 0.0;
8502          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8503          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8504
8505 int
8506 main ()
8507 {
8508
8509   ;
8510   return 0;
8511 }
8512 _ACEOF
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8515 case "(($ac_try" in
8516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517   *) ac_try_echo=$ac_try;;
8518 esac
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520   (eval "$ac_compile") 2>conftest.er1
8521   ac_status=$?
8522   grep -v '^ *+' conftest.er1 >conftest.err
8523   rm -f conftest.er1
8524   cat conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   (exit $ac_status); } && {
8527          test -z "$ac_c_werror_flag" ||
8528          test ! -s conftest.err
8529        } && test -s conftest.$ac_objext; then
8530   gt_cv_c_long_double=yes
8531 else
8532   echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8534
8535         gt_cv_c_long_double=no
8536 fi
8537
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539      fi
8540 fi
8541 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8542 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8543   if test $gt_cv_c_long_double = yes; then
8544
8545 cat >>confdefs.h <<\_ACEOF
8546 #define HAVE_LONG_DOUBLE 1
8547 _ACEOF
8548
8549   fi
8550
8551
8552   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8553 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8554 if test "${gt_cv_c_wchar_t+set}" = set; then
8555   echo $ECHO_N "(cached) $ECHO_C" >&6
8556 else
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 #include <stddef.h>
8564        wchar_t foo = (wchar_t)'\0';
8565 int
8566 main ()
8567 {
8568
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580   (eval "$ac_compile") 2>conftest.er1
8581   ac_status=$?
8582   grep -v '^ *+' conftest.er1 >conftest.err
8583   rm -f conftest.er1
8584   cat conftest.err >&5
8585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586   (exit $ac_status); } && {
8587          test -z "$ac_c_werror_flag" ||
8588          test ! -s conftest.err
8589        } && test -s conftest.$ac_objext; then
8590   gt_cv_c_wchar_t=yes
8591 else
8592   echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595         gt_cv_c_wchar_t=no
8596 fi
8597
8598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8599 fi
8600 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8601 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8602   if test $gt_cv_c_wchar_t = yes; then
8603
8604 cat >>confdefs.h <<\_ACEOF
8605 #define HAVE_WCHAR_T 1
8606 _ACEOF
8607
8608   fi
8609
8610
8611   { echo "$as_me:$LINENO: checking for wint_t" >&5
8612 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8613 if test "${gt_cv_c_wint_t+set}" = set; then
8614   echo $ECHO_N "(cached) $ECHO_C" >&6
8615 else
8616   cat >conftest.$ac_ext <<_ACEOF
8617 /* confdefs.h.  */
8618 _ACEOF
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h.  */
8622 #include <wchar.h>
8623        wint_t foo = (wchar_t)'\0';
8624 int
8625 main ()
8626 {
8627
8628   ;
8629   return 0;
8630 }
8631 _ACEOF
8632 rm -f conftest.$ac_objext
8633 if { (ac_try="$ac_compile"
8634 case "(($ac_try" in
8635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8636   *) ac_try_echo=$ac_try;;
8637 esac
8638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8639   (eval "$ac_compile") 2>conftest.er1
8640   ac_status=$?
8641   grep -v '^ *+' conftest.er1 >conftest.err
8642   rm -f conftest.er1
8643   cat conftest.err >&5
8644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645   (exit $ac_status); } && {
8646          test -z "$ac_c_werror_flag" ||
8647          test ! -s conftest.err
8648        } && test -s conftest.$ac_objext; then
8649   gt_cv_c_wint_t=yes
8650 else
8651   echo "$as_me: failed program was:" >&5
8652 sed 's/^/| /' conftest.$ac_ext >&5
8653
8654         gt_cv_c_wint_t=no
8655 fi
8656
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658 fi
8659 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8660 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8661   if test $gt_cv_c_wint_t = yes; then
8662
8663 cat >>confdefs.h <<\_ACEOF
8664 #define HAVE_WINT_T 1
8665 _ACEOF
8666
8667   fi
8668
8669
8670   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8671 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8672 if test "${gl_cv_header_inttypes_h+set}" = set; then
8673   echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675   cat >conftest.$ac_ext <<_ACEOF
8676 /* confdefs.h.  */
8677 _ACEOF
8678 cat confdefs.h >>conftest.$ac_ext
8679 cat >>conftest.$ac_ext <<_ACEOF
8680 /* end confdefs.h.  */
8681 #include <sys/types.h>
8682 #include <inttypes.h>
8683 int
8684 main ()
8685 {
8686 uintmax_t i = (uintmax_t) -1;
8687   ;
8688   return 0;
8689 }
8690 _ACEOF
8691 rm -f conftest.$ac_objext
8692 if { (ac_try="$ac_compile"
8693 case "(($ac_try" in
8694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695   *) ac_try_echo=$ac_try;;
8696 esac
8697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698   (eval "$ac_compile") 2>conftest.er1
8699   ac_status=$?
8700   grep -v '^ *+' conftest.er1 >conftest.err
8701   rm -f conftest.er1
8702   cat conftest.err >&5
8703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8704   (exit $ac_status); } && {
8705          test -z "$ac_c_werror_flag" ||
8706          test ! -s conftest.err
8707        } && test -s conftest.$ac_objext; then
8708   gl_cv_header_inttypes_h=yes
8709 else
8710   echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713         gl_cv_header_inttypes_h=no
8714 fi
8715
8716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8717 fi
8718 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8719 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8720   if test $gl_cv_header_inttypes_h = yes; then
8721
8722 cat >>confdefs.h <<_ACEOF
8723 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8724 _ACEOF
8725
8726   fi
8727
8728
8729   { echo "$as_me:$LINENO: checking for stdint.h" >&5
8730 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8731 if test "${gl_cv_header_stdint_h+set}" = set; then
8732   echo $ECHO_N "(cached) $ECHO_C" >&6
8733 else
8734   cat >conftest.$ac_ext <<_ACEOF
8735 /* confdefs.h.  */
8736 _ACEOF
8737 cat confdefs.h >>conftest.$ac_ext
8738 cat >>conftest.$ac_ext <<_ACEOF
8739 /* end confdefs.h.  */
8740 #include <sys/types.h>
8741 #include <stdint.h>
8742 int
8743 main ()
8744 {
8745 uintmax_t i = (uintmax_t) -1;
8746   ;
8747   return 0;
8748 }
8749 _ACEOF
8750 rm -f conftest.$ac_objext
8751 if { (ac_try="$ac_compile"
8752 case "(($ac_try" in
8753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8754   *) ac_try_echo=$ac_try;;
8755 esac
8756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8757   (eval "$ac_compile") 2>conftest.er1
8758   ac_status=$?
8759   grep -v '^ *+' conftest.er1 >conftest.err
8760   rm -f conftest.er1
8761   cat conftest.err >&5
8762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763   (exit $ac_status); } && {
8764          test -z "$ac_c_werror_flag" ||
8765          test ! -s conftest.err
8766        } && test -s conftest.$ac_objext; then
8767   gl_cv_header_stdint_h=yes
8768 else
8769   echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8771
8772         gl_cv_header_stdint_h=no
8773 fi
8774
8775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8776 fi
8777 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8778 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8779   if test $gl_cv_header_stdint_h = yes; then
8780
8781 cat >>confdefs.h <<_ACEOF
8782 #define HAVE_STDINT_H_WITH_UINTMAX 1
8783 _ACEOF
8784
8785   fi
8786
8787
8788
8789
8790   { echo "$as_me:$LINENO: checking for intmax_t" >&5
8791 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8792 if test "${gt_cv_c_intmax_t+set}" = set; then
8793   echo $ECHO_N "(cached) $ECHO_C" >&6
8794 else
8795   cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h.  */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h.  */
8801
8802 #include <stddef.h>
8803 #include <stdlib.h>
8804 #if HAVE_STDINT_H_WITH_UINTMAX
8805 #include <stdint.h>
8806 #endif
8807 #if HAVE_INTTYPES_H_WITH_UINTMAX
8808 #include <inttypes.h>
8809 #endif
8810
8811 int
8812 main ()
8813 {
8814 intmax_t x = -1;
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8826   (eval "$ac_compile") 2>conftest.er1
8827   ac_status=$?
8828   grep -v '^ *+' conftest.er1 >conftest.err
8829   rm -f conftest.er1
8830   cat conftest.err >&5
8831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832   (exit $ac_status); } && {
8833          test -z "$ac_c_werror_flag" ||
8834          test ! -s conftest.err
8835        } && test -s conftest.$ac_objext; then
8836   gt_cv_c_intmax_t=yes
8837 else
8838   echo "$as_me: failed program was:" >&5
8839 sed 's/^/| /' conftest.$ac_ext >&5
8840
8841         gt_cv_c_intmax_t=no
8842 fi
8843
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8845 fi
8846 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8847 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8848   if test $gt_cv_c_intmax_t = yes; then
8849
8850 cat >>confdefs.h <<\_ACEOF
8851 #define HAVE_INTMAX_T 1
8852 _ACEOF
8853
8854   fi
8855
8856
8857
8858   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8859 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8860 if test "${gt_cv_func_printf_posix+set}" = set; then
8861   echo $ECHO_N "(cached) $ECHO_C" >&6
8862 else
8863
8864       if test "$cross_compiling" = yes; then
8865
8866         cat >conftest.$ac_ext <<_ACEOF
8867 /* confdefs.h.  */
8868 _ACEOF
8869 cat confdefs.h >>conftest.$ac_ext
8870 cat >>conftest.$ac_ext <<_ACEOF
8871 /* end confdefs.h.  */
8872
8873 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8874   notposix
8875 #endif
8876
8877 _ACEOF
8878 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8879   $EGREP "notposix" >/dev/null 2>&1; then
8880   gt_cv_func_printf_posix="guessing no"
8881 else
8882   gt_cv_func_printf_posix="guessing yes"
8883 fi
8884 rm -f conftest*
8885
8886
8887 else
8888   cat >conftest.$ac_ext <<_ACEOF
8889 /* confdefs.h.  */
8890 _ACEOF
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h.  */
8894
8895 #include <stdio.h>
8896 #include <string.h>
8897 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8898    dollar expansion (possibly an autoconf bug).  */
8899 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8900 static char buf[100];
8901 int main ()
8902 {
8903   sprintf (buf, format, 33, 55);
8904   return (strcmp (buf, "55 33") != 0);
8905 }
8906 _ACEOF
8907 rm -f conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914   (eval "$ac_link") 2>&5
8915   ac_status=$?
8916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8918   { (case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_try") 2>&5
8924   ac_status=$?
8925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926   (exit $ac_status); }; }; then
8927   gt_cv_func_printf_posix=yes
8928 else
8929   echo "$as_me: program exited with status $ac_status" >&5
8930 echo "$as_me: failed program was:" >&5
8931 sed 's/^/| /' conftest.$ac_ext >&5
8932
8933 ( exit $ac_status )
8934 gt_cv_func_printf_posix=no
8935 fi
8936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8937 fi
8938
8939
8940
8941 fi
8942 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8943 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8944   case $gt_cv_func_printf_posix in
8945     *yes)
8946
8947 cat >>confdefs.h <<\_ACEOF
8948 #define HAVE_POSIX_PRINTF 1
8949 _ACEOF
8950
8951       ;;
8952   esac
8953
8954 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8955 # for constant arguments.  Useless!
8956 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8957 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8958 if test "${ac_cv_working_alloca_h+set}" = set; then
8959   echo $ECHO_N "(cached) $ECHO_C" >&6
8960 else
8961   cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967 #include <alloca.h>
8968 int
8969 main ()
8970 {
8971 char *p = (char *) alloca (2 * sizeof (int));
8972                           if (p) return 0;
8973   ;
8974   return 0;
8975 }
8976 _ACEOF
8977 rm -f conftest.$ac_objext conftest$ac_exeext
8978 if { (ac_try="$ac_link"
8979 case "(($ac_try" in
8980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8981   *) ac_try_echo=$ac_try;;
8982 esac
8983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8984   (eval "$ac_link") 2>conftest.er1
8985   ac_status=$?
8986   grep -v '^ *+' conftest.er1 >conftest.err
8987   rm -f conftest.er1
8988   cat conftest.err >&5
8989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990   (exit $ac_status); } && {
8991          test -z "$ac_c_werror_flag" ||
8992          test ! -s conftest.err
8993        } && test -s conftest$ac_exeext &&
8994        $as_test_x conftest$ac_exeext; then
8995   ac_cv_working_alloca_h=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000         ac_cv_working_alloca_h=no
9001 fi
9002
9003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9004       conftest$ac_exeext conftest.$ac_ext
9005 fi
9006 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9007 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9008 if test $ac_cv_working_alloca_h = yes; then
9009
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_ALLOCA_H 1
9012 _ACEOF
9013
9014 fi
9015
9016 { echo "$as_me:$LINENO: checking for alloca" >&5
9017 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9018 if test "${ac_cv_func_alloca_works+set}" = set; then
9019   echo $ECHO_N "(cached) $ECHO_C" >&6
9020 else
9021   cat >conftest.$ac_ext <<_ACEOF
9022 /* confdefs.h.  */
9023 _ACEOF
9024 cat confdefs.h >>conftest.$ac_ext
9025 cat >>conftest.$ac_ext <<_ACEOF
9026 /* end confdefs.h.  */
9027 #ifdef __GNUC__
9028 # define alloca __builtin_alloca
9029 #else
9030 # ifdef _MSC_VER
9031 #  include <malloc.h>
9032 #  define alloca _alloca
9033 # else
9034 #  ifdef HAVE_ALLOCA_H
9035 #   include <alloca.h>
9036 #  else
9037 #   ifdef _AIX
9038  #pragma alloca
9039 #   else
9040 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9041 char *alloca ();
9042 #    endif
9043 #   endif
9044 #  endif
9045 # endif
9046 #endif
9047
9048 int
9049 main ()
9050 {
9051 char *p = (char *) alloca (1);
9052                                     if (p) return 0;
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (ac_try="$ac_link"
9059 case "(($ac_try" in
9060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061   *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064   (eval "$ac_link") 2>conftest.er1
9065   ac_status=$?
9066   grep -v '^ *+' conftest.er1 >conftest.err
9067   rm -f conftest.er1
9068   cat conftest.err >&5
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); } && {
9071          test -z "$ac_c_werror_flag" ||
9072          test ! -s conftest.err
9073        } && test -s conftest$ac_exeext &&
9074        $as_test_x conftest$ac_exeext; then
9075   ac_cv_func_alloca_works=yes
9076 else
9077   echo "$as_me: failed program was:" >&5
9078 sed 's/^/| /' conftest.$ac_ext >&5
9079
9080         ac_cv_func_alloca_works=no
9081 fi
9082
9083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9084       conftest$ac_exeext conftest.$ac_ext
9085 fi
9086 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9087 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9088
9089 if test $ac_cv_func_alloca_works = yes; then
9090
9091 cat >>confdefs.h <<\_ACEOF
9092 #define HAVE_ALLOCA 1
9093 _ACEOF
9094
9095 else
9096   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9097 # that cause trouble.  Some versions do not even contain alloca or
9098 # contain a buggy version.  If you still want to use their alloca,
9099 # use ar to extract alloca.o from them instead of compiling alloca.c.
9100
9101 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9102
9103 cat >>confdefs.h <<\_ACEOF
9104 #define C_ALLOCA 1
9105 _ACEOF
9106
9107
9108 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9109 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9110 if test "${ac_cv_os_cray+set}" = set; then
9111   echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113   cat >conftest.$ac_ext <<_ACEOF
9114 /* confdefs.h.  */
9115 _ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h.  */
9119 #if defined CRAY && ! defined CRAY2
9120 webecray
9121 #else
9122 wenotbecray
9123 #endif
9124
9125 _ACEOF
9126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9127   $EGREP "webecray" >/dev/null 2>&1; then
9128   ac_cv_os_cray=yes
9129 else
9130   ac_cv_os_cray=no
9131 fi
9132 rm -f conftest*
9133
9134 fi
9135 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9136 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9137 if test $ac_cv_os_cray = yes; then
9138   for ac_func in _getb67 GETB67 getb67; do
9139     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9143   echo $ECHO_N "(cached) $ECHO_C" >&6
9144 else
9145   cat >conftest.$ac_ext <<_ACEOF
9146 /* confdefs.h.  */
9147 _ACEOF
9148 cat confdefs.h >>conftest.$ac_ext
9149 cat >>conftest.$ac_ext <<_ACEOF
9150 /* end confdefs.h.  */
9151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9153 #define $ac_func innocuous_$ac_func
9154
9155 /* System header to define __stub macros and hopefully few prototypes,
9156     which can conflict with char $ac_func (); below.
9157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9158     <limits.h> exists even on freestanding compilers.  */
9159
9160 #ifdef __STDC__
9161 # include <limits.h>
9162 #else
9163 # include <assert.h>
9164 #endif
9165
9166 #undef $ac_func
9167
9168 /* Override any GCC internal prototype to avoid an error.
9169    Use char because int might match the return type of a GCC
9170    builtin and then its argument prototype would still apply.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char $ac_func ();
9175 /* The GNU C library defines this for functions which it implements
9176     to always fail with ENOSYS.  Some functions are actually named
9177     something starting with __ and the normal name is an alias.  */
9178 #if defined __stub_$ac_func || defined __stub___$ac_func
9179 choke me
9180 #endif
9181
9182 int
9183 main ()
9184 {
9185 return $ac_func ();
9186   ;
9187   return 0;
9188 }
9189 _ACEOF
9190 rm -f conftest.$ac_objext conftest$ac_exeext
9191 if { (ac_try="$ac_link"
9192 case "(($ac_try" in
9193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9194   *) ac_try_echo=$ac_try;;
9195 esac
9196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9197   (eval "$ac_link") 2>conftest.er1
9198   ac_status=$?
9199   grep -v '^ *+' conftest.er1 >conftest.err
9200   rm -f conftest.er1
9201   cat conftest.err >&5
9202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203   (exit $ac_status); } && {
9204          test -z "$ac_c_werror_flag" ||
9205          test ! -s conftest.err
9206        } && test -s conftest$ac_exeext &&
9207        $as_test_x conftest$ac_exeext; then
9208   eval "$as_ac_var=yes"
9209 else
9210   echo "$as_me: failed program was:" >&5
9211 sed 's/^/| /' conftest.$ac_ext >&5
9212
9213         eval "$as_ac_var=no"
9214 fi
9215
9216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9217       conftest$ac_exeext conftest.$ac_ext
9218 fi
9219 ac_res=`eval echo '${'$as_ac_var'}'`
9220                { echo "$as_me:$LINENO: result: $ac_res" >&5
9221 echo "${ECHO_T}$ac_res" >&6; }
9222 if test `eval echo '${'$as_ac_var'}'` = yes; then
9223
9224 cat >>confdefs.h <<_ACEOF
9225 #define CRAY_STACKSEG_END $ac_func
9226 _ACEOF
9227
9228     break
9229 fi
9230
9231   done
9232 fi
9233
9234 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9235 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9236 if test "${ac_cv_c_stack_direction+set}" = set; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   if test "$cross_compiling" = yes; then
9240   ac_cv_c_stack_direction=0
9241 else
9242   cat >conftest.$ac_ext <<_ACEOF
9243 /* confdefs.h.  */
9244 _ACEOF
9245 cat confdefs.h >>conftest.$ac_ext
9246 cat >>conftest.$ac_ext <<_ACEOF
9247 /* end confdefs.h.  */
9248 $ac_includes_default
9249 int
9250 find_stack_direction ()
9251 {
9252   static char *addr = 0;
9253   auto char dummy;
9254   if (addr == 0)
9255     {
9256       addr = &dummy;
9257       return find_stack_direction ();
9258     }
9259   else
9260     return (&dummy > addr) ? 1 : -1;
9261 }
9262
9263 int
9264 main ()
9265 {
9266   return find_stack_direction () < 0;
9267 }
9268 _ACEOF
9269 rm -f conftest$ac_exeext
9270 if { (ac_try="$ac_link"
9271 case "(($ac_try" in
9272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273   *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276   (eval "$ac_link") 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9280   { (case "(($ac_try" in
9281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282   *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285   (eval "$ac_try") 2>&5
9286   ac_status=$?
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); }; }; then
9289   ac_cv_c_stack_direction=1
9290 else
9291   echo "$as_me: program exited with status $ac_status" >&5
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ( exit $ac_status )
9296 ac_cv_c_stack_direction=-1
9297 fi
9298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9299 fi
9300
9301
9302 fi
9303 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9304 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9305
9306 cat >>confdefs.h <<_ACEOF
9307 #define STACK_DIRECTION $ac_cv_c_stack_direction
9308 _ACEOF
9309
9310
9311 fi
9312
9313
9314
9315 for ac_header in stdlib.h unistd.h
9316 do
9317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9319   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9322   echo $ECHO_N "(cached) $ECHO_C" >&6
9323 fi
9324 ac_res=`eval echo '${'$as_ac_Header'}'`
9325                { echo "$as_me:$LINENO: result: $ac_res" >&5
9326 echo "${ECHO_T}$ac_res" >&6; }
9327 else
9328   # Is the header compilable?
9329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9331 cat >conftest.$ac_ext <<_ACEOF
9332 /* confdefs.h.  */
9333 _ACEOF
9334 cat confdefs.h >>conftest.$ac_ext
9335 cat >>conftest.$ac_ext <<_ACEOF
9336 /* end confdefs.h.  */
9337 $ac_includes_default
9338 #include <$ac_header>
9339 _ACEOF
9340 rm -f conftest.$ac_objext
9341 if { (ac_try="$ac_compile"
9342 case "(($ac_try" in
9343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344   *) ac_try_echo=$ac_try;;
9345 esac
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347   (eval "$ac_compile") 2>conftest.er1
9348   ac_status=$?
9349   grep -v '^ *+' conftest.er1 >conftest.err
9350   rm -f conftest.er1
9351   cat conftest.err >&5
9352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353   (exit $ac_status); } && {
9354          test -z "$ac_c_werror_flag" ||
9355          test ! -s conftest.err
9356        } && test -s conftest.$ac_objext; then
9357   ac_header_compiler=yes
9358 else
9359   echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9361
9362         ac_header_compiler=no
9363 fi
9364
9365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9367 echo "${ECHO_T}$ac_header_compiler" >&6; }
9368
9369 # Is the header present?
9370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h.  */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h.  */
9378 #include <$ac_header>
9379 _ACEOF
9380 if { (ac_try="$ac_cpp conftest.$ac_ext"
9381 case "(($ac_try" in
9382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9383   *) ac_try_echo=$ac_try;;
9384 esac
9385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9386   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9387   ac_status=$?
9388   grep -v '^ *+' conftest.er1 >conftest.err
9389   rm -f conftest.er1
9390   cat conftest.err >&5
9391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392   (exit $ac_status); } >/dev/null && {
9393          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9394          test ! -s conftest.err
9395        }; then
9396   ac_header_preproc=yes
9397 else
9398   echo "$as_me: failed program was:" >&5
9399 sed 's/^/| /' conftest.$ac_ext >&5
9400
9401   ac_header_preproc=no
9402 fi
9403
9404 rm -f conftest.err conftest.$ac_ext
9405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9406 echo "${ECHO_T}$ac_header_preproc" >&6; }
9407
9408 # So?  What about this header?
9409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9410   yes:no: )
9411     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9413     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9415     ac_header_preproc=yes
9416     ;;
9417   no:yes:* )
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9420     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9421 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9422     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9424     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9425 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9428     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9430
9431     ;;
9432 esac
9433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9436   echo $ECHO_N "(cached) $ECHO_C" >&6
9437 else
9438   eval "$as_ac_Header=\$ac_header_preproc"
9439 fi
9440 ac_res=`eval echo '${'$as_ac_Header'}'`
9441                { echo "$as_me:$LINENO: result: $ac_res" >&5
9442 echo "${ECHO_T}$ac_res" >&6; }
9443
9444 fi
9445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9446   cat >>confdefs.h <<_ACEOF
9447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9448 _ACEOF
9449
9450 fi
9451
9452 done
9453
9454
9455 for ac_func in getpagesize
9456 do
9457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9461   echo $ECHO_N "(cached) $ECHO_C" >&6
9462 else
9463   cat >conftest.$ac_ext <<_ACEOF
9464 /* confdefs.h.  */
9465 _ACEOF
9466 cat confdefs.h >>conftest.$ac_ext
9467 cat >>conftest.$ac_ext <<_ACEOF
9468 /* end confdefs.h.  */
9469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9471 #define $ac_func innocuous_$ac_func
9472
9473 /* System header to define __stub macros and hopefully few prototypes,
9474     which can conflict with char $ac_func (); below.
9475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9476     <limits.h> exists even on freestanding compilers.  */
9477
9478 #ifdef __STDC__
9479 # include <limits.h>
9480 #else
9481 # include <assert.h>
9482 #endif
9483
9484 #undef $ac_func
9485
9486 /* Override any GCC internal prototype to avoid an error.
9487    Use char because int might match the return type of a GCC
9488    builtin and then its argument prototype would still apply.  */
9489 #ifdef __cplusplus
9490 extern "C"
9491 #endif
9492 char $ac_func ();
9493 /* The GNU C library defines this for functions which it implements
9494     to always fail with ENOSYS.  Some functions are actually named
9495     something starting with __ and the normal name is an alias.  */
9496 #if defined __stub_$ac_func || defined __stub___$ac_func
9497 choke me
9498 #endif
9499
9500 int
9501 main ()
9502 {
9503 return $ac_func ();
9504   ;
9505   return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext conftest$ac_exeext
9509 if { (ac_try="$ac_link"
9510 case "(($ac_try" in
9511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512   *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515   (eval "$ac_link") 2>conftest.er1
9516   ac_status=$?
9517   grep -v '^ *+' conftest.er1 >conftest.err
9518   rm -f conftest.er1
9519   cat conftest.err >&5
9520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521   (exit $ac_status); } && {
9522          test -z "$ac_c_werror_flag" ||
9523          test ! -s conftest.err
9524        } && test -s conftest$ac_exeext &&
9525        $as_test_x conftest$ac_exeext; then
9526   eval "$as_ac_var=yes"
9527 else
9528   echo "$as_me: failed program was:" >&5
9529 sed 's/^/| /' conftest.$ac_ext >&5
9530
9531         eval "$as_ac_var=no"
9532 fi
9533
9534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9535       conftest$ac_exeext conftest.$ac_ext
9536 fi
9537 ac_res=`eval echo '${'$as_ac_var'}'`
9538                { echo "$as_me:$LINENO: result: $ac_res" >&5
9539 echo "${ECHO_T}$ac_res" >&6; }
9540 if test `eval echo '${'$as_ac_var'}'` = yes; then
9541   cat >>confdefs.h <<_ACEOF
9542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9543 _ACEOF
9544
9545 fi
9546 done
9547
9548 { echo "$as_me:$LINENO: checking for working mmap" >&5
9549 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9551   echo $ECHO_N "(cached) $ECHO_C" >&6
9552 else
9553   if test "$cross_compiling" = yes; then
9554   ac_cv_func_mmap_fixed_mapped=no
9555 else
9556   cat >conftest.$ac_ext <<_ACEOF
9557 /* confdefs.h.  */
9558 _ACEOF
9559 cat confdefs.h >>conftest.$ac_ext
9560 cat >>conftest.$ac_ext <<_ACEOF
9561 /* end confdefs.h.  */
9562 $ac_includes_default
9563 /* malloc might have been renamed as rpl_malloc. */
9564 #undef malloc
9565
9566 /* Thanks to Mike Haertel and Jim Avera for this test.
9567    Here is a matrix of mmap possibilities:
9568         mmap private not fixed
9569         mmap private fixed at somewhere currently unmapped
9570         mmap private fixed at somewhere already mapped
9571         mmap shared not fixed
9572         mmap shared fixed at somewhere currently unmapped
9573         mmap shared fixed at somewhere already mapped
9574    For private mappings, we should verify that changes cannot be read()
9575    back from the file, nor mmap's back from the file at a different
9576    address.  (There have been systems where private was not correctly
9577    implemented like the infamous i386 svr4.0, and systems where the
9578    VM page cache was not coherent with the file system buffer cache
9579    like early versions of FreeBSD and possibly contemporary NetBSD.)
9580    For shared mappings, we should conversely verify that changes get
9581    propagated back to all the places they're supposed to be.
9582
9583    Grep wants private fixed already mapped.
9584    The main things grep needs to know about mmap are:
9585    * does it exist and is it safe to write into the mmap'd area
9586    * how to use it (BSD variants)  */
9587
9588 #include <fcntl.h>
9589 #include <sys/mman.h>
9590
9591 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9592 char *malloc ();
9593 #endif
9594
9595 /* This mess was copied from the GNU getpagesize.h.  */
9596 #ifndef HAVE_GETPAGESIZE
9597 /* Assume that all systems that can run configure have sys/param.h.  */
9598 # ifndef HAVE_SYS_PARAM_H
9599 #  define HAVE_SYS_PARAM_H 1
9600 # endif
9601
9602 # ifdef _SC_PAGESIZE
9603 #  define getpagesize() sysconf(_SC_PAGESIZE)
9604 # else /* no _SC_PAGESIZE */
9605 #  ifdef HAVE_SYS_PARAM_H
9606 #   include <sys/param.h>
9607 #   ifdef EXEC_PAGESIZE
9608 #    define getpagesize() EXEC_PAGESIZE
9609 #   else /* no EXEC_PAGESIZE */
9610 #    ifdef NBPG
9611 #     define getpagesize() NBPG * CLSIZE
9612 #     ifndef CLSIZE
9613 #      define CLSIZE 1
9614 #     endif /* no CLSIZE */
9615 #    else /* no NBPG */
9616 #     ifdef NBPC
9617 #      define getpagesize() NBPC
9618 #     else /* no NBPC */
9619 #      ifdef PAGESIZE
9620 #       define getpagesize() PAGESIZE
9621 #      endif /* PAGESIZE */
9622 #     endif /* no NBPC */
9623 #    endif /* no NBPG */
9624 #   endif /* no EXEC_PAGESIZE */
9625 #  else /* no HAVE_SYS_PARAM_H */
9626 #   define getpagesize() 8192   /* punt totally */
9627 #  endif /* no HAVE_SYS_PARAM_H */
9628 # endif /* no _SC_PAGESIZE */
9629
9630 #endif /* no HAVE_GETPAGESIZE */
9631
9632 int
9633 main ()
9634 {
9635   char *data, *data2, *data3;
9636   int i, pagesize;
9637   int fd;
9638
9639   pagesize = getpagesize ();
9640
9641   /* First, make a file with some known garbage in it. */
9642   data = (char *) malloc (pagesize);
9643   if (!data)
9644     return 1;
9645   for (i = 0; i < pagesize; ++i)
9646     *(data + i) = rand ();
9647   umask (0);
9648   fd = creat ("conftest.mmap", 0600);
9649   if (fd < 0)
9650     return 1;
9651   if (write (fd, data, pagesize) != pagesize)
9652     return 1;
9653   close (fd);
9654
9655   /* Next, try to mmap the file at a fixed address which already has
9656      something else allocated at it.  If we can, also make sure that
9657      we see the same garbage.  */
9658   fd = open ("conftest.mmap", O_RDWR);
9659   if (fd < 0)
9660     return 1;
9661   data2 = (char *) malloc (2 * pagesize);
9662   if (!data2)
9663     return 1;
9664   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9665   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9666                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
9667     return 1;
9668   for (i = 0; i < pagesize; ++i)
9669     if (*(data + i) != *(data2 + i))
9670       return 1;
9671
9672   /* Finally, make sure that changes to the mapped area do not
9673      percolate back to the file as seen by read().  (This is a bug on
9674      some variants of i386 svr4.0.)  */
9675   for (i = 0; i < pagesize; ++i)
9676     *(data2 + i) = *(data2 + i) + 1;
9677   data3 = (char *) malloc (pagesize);
9678   if (!data3)
9679     return 1;
9680   if (read (fd, data3, pagesize) != pagesize)
9681     return 1;
9682   for (i = 0; i < pagesize; ++i)
9683     if (*(data + i) != *(data3 + i))
9684       return 1;
9685   close (fd);
9686   return 0;
9687 }
9688 _ACEOF
9689 rm -f conftest$ac_exeext
9690 if { (ac_try="$ac_link"
9691 case "(($ac_try" in
9692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9693   *) ac_try_echo=$ac_try;;
9694 esac
9695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9696   (eval "$ac_link") 2>&5
9697   ac_status=$?
9698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9700   { (case "(($ac_try" in
9701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702   *) ac_try_echo=$ac_try;;
9703 esac
9704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9705   (eval "$ac_try") 2>&5
9706   ac_status=$?
9707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708   (exit $ac_status); }; }; then
9709   ac_cv_func_mmap_fixed_mapped=yes
9710 else
9711   echo "$as_me: program exited with status $ac_status" >&5
9712 echo "$as_me: failed program was:" >&5
9713 sed 's/^/| /' conftest.$ac_ext >&5
9714
9715 ( exit $ac_status )
9716 ac_cv_func_mmap_fixed_mapped=no
9717 fi
9718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9719 fi
9720
9721
9722 fi
9723 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9724 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9725 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9726
9727 cat >>confdefs.h <<\_ACEOF
9728 #define HAVE_MMAP 1
9729 _ACEOF
9730
9731 fi
9732 rm -f conftest.mmap
9733
9734
9735     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9736 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9737 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9738   echo $ECHO_N "(cached) $ECHO_C" >&6
9739 else
9740   cat >conftest.$ac_ext <<_ACEOF
9741 /* confdefs.h.  */
9742 _ACEOF
9743 cat confdefs.h >>conftest.$ac_ext
9744 cat >>conftest.$ac_ext <<_ACEOF
9745 /* end confdefs.h.  */
9746
9747 #include <features.h>
9748 #ifdef __GNU_LIBRARY__
9749  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9750   Lucky GNU user
9751  #endif
9752 #endif
9753
9754 _ACEOF
9755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9756   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9757   ac_cv_gnu_library_2_1=yes
9758 else
9759   ac_cv_gnu_library_2_1=no
9760 fi
9761 rm -f conftest*
9762
9763
9764
9765 fi
9766 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9767 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9768
9769     GLIBC21="$ac_cv_gnu_library_2_1"
9770
9771
9772
9773
9774   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9775 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9776 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9777   echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779
9780       if test "$cross_compiling" = yes; then
9781
9782           # Guess based on the CPU.
9783           case "$host_cpu" in
9784             alpha* | i3456786 | m68k | s390*)
9785               gt_cv_int_divbyzero_sigfpe="guessing yes";;
9786             *)
9787               gt_cv_int_divbyzero_sigfpe="guessing no";;
9788           esac
9789
9790 else
9791   cat >conftest.$ac_ext <<_ACEOF
9792 /* confdefs.h.  */
9793 _ACEOF
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h.  */
9797
9798 #include <stdlib.h>
9799 #include <signal.h>
9800
9801 static void
9802 #ifdef __cplusplus
9803 sigfpe_handler (int sig)
9804 #else
9805 sigfpe_handler (sig) int sig;
9806 #endif
9807 {
9808   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
9809   exit (sig != SIGFPE);
9810 }
9811
9812 int x = 1;
9813 int y = 0;
9814 int z;
9815 int nan;
9816
9817 int main ()
9818 {
9819   signal (SIGFPE, sigfpe_handler);
9820 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
9821 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9822   signal (SIGTRAP, sigfpe_handler);
9823 #endif
9824 /* Linux/SPARC yields signal SIGILL.  */
9825 #if defined (__sparc__) && defined (__linux__)
9826   signal (SIGILL, sigfpe_handler);
9827 #endif
9828
9829   z = x / y;
9830   nan = y / y;
9831   exit (1);
9832 }
9833
9834 _ACEOF
9835 rm -f conftest$ac_exeext
9836 if { (ac_try="$ac_link"
9837 case "(($ac_try" in
9838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9839   *) ac_try_echo=$ac_try;;
9840 esac
9841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9842   (eval "$ac_link") 2>&5
9843   ac_status=$?
9844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9846   { (case "(($ac_try" in
9847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9848   *) ac_try_echo=$ac_try;;
9849 esac
9850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9851   (eval "$ac_try") 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }; }; then
9855   gt_cv_int_divbyzero_sigfpe=yes
9856 else
9857   echo "$as_me: program exited with status $ac_status" >&5
9858 echo "$as_me: failed program was:" >&5
9859 sed 's/^/| /' conftest.$ac_ext >&5
9860
9861 ( exit $ac_status )
9862 gt_cv_int_divbyzero_sigfpe=no
9863 fi
9864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9865 fi
9866
9867
9868
9869 fi
9870 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9871 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9872   case "$gt_cv_int_divbyzero_sigfpe" in
9873     *yes) value=1;;
9874     *) value=0;;
9875   esac
9876
9877 cat >>confdefs.h <<_ACEOF
9878 #define INTDIV0_RAISES_SIGFPE $value
9879 _ACEOF
9880
9881
9882
9883   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9884 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9885 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9886   echo $ECHO_N "(cached) $ECHO_C" >&6
9887 else
9888   cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h.  */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h.  */
9894 unsigned long long ull = 1ULL; int i = 63;
9895 int
9896 main ()
9897 {
9898 unsigned long long ullmax = (unsigned long long) -1;
9899      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9900   ;
9901   return 0;
9902 }
9903 _ACEOF
9904 rm -f conftest.$ac_objext conftest$ac_exeext
9905 if { (ac_try="$ac_link"
9906 case "(($ac_try" in
9907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9908   *) ac_try_echo=$ac_try;;
9909 esac
9910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9911   (eval "$ac_link") 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && {
9918          test -z "$ac_c_werror_flag" ||
9919          test ! -s conftest.err
9920        } && test -s conftest$ac_exeext &&
9921        $as_test_x conftest$ac_exeext; then
9922   ac_cv_type_unsigned_long_long=yes
9923 else
9924   echo "$as_me: failed program was:" >&5
9925 sed 's/^/| /' conftest.$ac_ext >&5
9926
9927         ac_cv_type_unsigned_long_long=no
9928 fi
9929
9930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9931       conftest$ac_exeext conftest.$ac_ext
9932 fi
9933 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9934 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9935   if test $ac_cv_type_unsigned_long_long = yes; then
9936
9937 cat >>confdefs.h <<\_ACEOF
9938 #define HAVE_UNSIGNED_LONG_LONG 1
9939 _ACEOF
9940
9941   fi
9942
9943
9944
9945
9946   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9947
9948     test $ac_cv_type_unsigned_long_long = yes \
9949       && ac_type='unsigned long long' \
9950       || ac_type='unsigned long'
9951
9952 cat >>confdefs.h <<_ACEOF
9953 #define uintmax_t $ac_type
9954 _ACEOF
9955
9956   else
9957
9958 cat >>confdefs.h <<\_ACEOF
9959 #define HAVE_UINTMAX_T 1
9960 _ACEOF
9961
9962   fi
9963
9964
9965   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9966 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9967 if test "${gt_cv_header_inttypes_h+set}" = set; then
9968   echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970
9971     cat >conftest.$ac_ext <<_ACEOF
9972 /* confdefs.h.  */
9973 _ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h.  */
9977 #include <sys/types.h>
9978 #include <inttypes.h>
9979 int
9980 main ()
9981 {
9982
9983   ;
9984   return 0;
9985 }
9986 _ACEOF
9987 rm -f conftest.$ac_objext
9988 if { (ac_try="$ac_compile"
9989 case "(($ac_try" in
9990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991   *) ac_try_echo=$ac_try;;
9992 esac
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994   (eval "$ac_compile") 2>conftest.er1
9995   ac_status=$?
9996   grep -v '^ *+' conftest.er1 >conftest.err
9997   rm -f conftest.er1
9998   cat conftest.err >&5
9999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10000   (exit $ac_status); } && {
10001          test -z "$ac_c_werror_flag" ||
10002          test ! -s conftest.err
10003        } && test -s conftest.$ac_objext; then
10004   gt_cv_header_inttypes_h=yes
10005 else
10006   echo "$as_me: failed program was:" >&5
10007 sed 's/^/| /' conftest.$ac_ext >&5
10008
10009         gt_cv_header_inttypes_h=no
10010 fi
10011
10012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013
10014 fi
10015 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10016 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10017   if test $gt_cv_header_inttypes_h = yes; then
10018
10019 cat >>confdefs.h <<_ACEOF
10020 #define HAVE_INTTYPES_H 1
10021 _ACEOF
10022
10023   fi
10024
10025
10026
10027   if test $gt_cv_header_inttypes_h = yes; then
10028     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10029 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10030 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10031   echo $ECHO_N "(cached) $ECHO_C" >&6
10032 else
10033
10034         cat >conftest.$ac_ext <<_ACEOF
10035 /* confdefs.h.  */
10036 _ACEOF
10037 cat confdefs.h >>conftest.$ac_ext
10038 cat >>conftest.$ac_ext <<_ACEOF
10039 /* end confdefs.h.  */
10040 #include <inttypes.h>
10041 #ifdef PRId32
10042 char *p = PRId32;
10043 #endif
10044
10045 int
10046 main ()
10047 {
10048
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext
10054 if { (ac_try="$ac_compile"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_compile") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } && {
10067          test -z "$ac_c_werror_flag" ||
10068          test ! -s conftest.err
10069        } && test -s conftest.$ac_objext; then
10070   gt_cv_inttypes_pri_broken=no
10071 else
10072   echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10074
10075         gt_cv_inttypes_pri_broken=yes
10076 fi
10077
10078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079
10080 fi
10081 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10082 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10083   fi
10084   if test "$gt_cv_inttypes_pri_broken" = yes; then
10085
10086 cat >>confdefs.h <<_ACEOF
10087 #define PRI_MACROS_BROKEN 1
10088 _ACEOF
10089
10090   fi
10091
10092
10093
10094 for ac_header in stdint.h
10095 do
10096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10098   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10101   echo $ECHO_N "(cached) $ECHO_C" >&6
10102 fi
10103 ac_res=`eval echo '${'$as_ac_Header'}'`
10104                { echo "$as_me:$LINENO: result: $ac_res" >&5
10105 echo "${ECHO_T}$ac_res" >&6; }
10106 else
10107   # Is the header compilable?
10108 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10109 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10110 cat >conftest.$ac_ext <<_ACEOF
10111 /* confdefs.h.  */
10112 _ACEOF
10113 cat confdefs.h >>conftest.$ac_ext
10114 cat >>conftest.$ac_ext <<_ACEOF
10115 /* end confdefs.h.  */
10116 $ac_includes_default
10117 #include <$ac_header>
10118 _ACEOF
10119 rm -f conftest.$ac_objext
10120 if { (ac_try="$ac_compile"
10121 case "(($ac_try" in
10122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123   *) ac_try_echo=$ac_try;;
10124 esac
10125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10126   (eval "$ac_compile") 2>conftest.er1
10127   ac_status=$?
10128   grep -v '^ *+' conftest.er1 >conftest.err
10129   rm -f conftest.er1
10130   cat conftest.err >&5
10131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132   (exit $ac_status); } && {
10133          test -z "$ac_c_werror_flag" ||
10134          test ! -s conftest.err
10135        } && test -s conftest.$ac_objext; then
10136   ac_header_compiler=yes
10137 else
10138   echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10140
10141         ac_header_compiler=no
10142 fi
10143
10144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10145 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10146 echo "${ECHO_T}$ac_header_compiler" >&6; }
10147
10148 # Is the header present?
10149 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10150 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10151 cat >conftest.$ac_ext <<_ACEOF
10152 /* confdefs.h.  */
10153 _ACEOF
10154 cat confdefs.h >>conftest.$ac_ext
10155 cat >>conftest.$ac_ext <<_ACEOF
10156 /* end confdefs.h.  */
10157 #include <$ac_header>
10158 _ACEOF
10159 if { (ac_try="$ac_cpp conftest.$ac_ext"
10160 case "(($ac_try" in
10161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10162   *) ac_try_echo=$ac_try;;
10163 esac
10164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10165   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10166   ac_status=$?
10167   grep -v '^ *+' conftest.er1 >conftest.err
10168   rm -f conftest.er1
10169   cat conftest.err >&5
10170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171   (exit $ac_status); } >/dev/null && {
10172          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10173          test ! -s conftest.err
10174        }; then
10175   ac_header_preproc=yes
10176 else
10177   echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10179
10180   ac_header_preproc=no
10181 fi
10182
10183 rm -f conftest.err conftest.$ac_ext
10184 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10185 echo "${ECHO_T}$ac_header_preproc" >&6; }
10186
10187 # So?  What about this header?
10188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10189   yes:no: )
10190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10194     ac_header_preproc=yes
10195     ;;
10196   no:yes:* )
10197     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10199     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10200 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10201     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10203     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10204 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10205     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10207     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10209
10210     ;;
10211 esac
10212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   eval "$as_ac_Header=\$ac_header_preproc"
10218 fi
10219 ac_res=`eval echo '${'$as_ac_Header'}'`
10220                { echo "$as_me:$LINENO: result: $ac_res" >&5
10221 echo "${ECHO_T}$ac_res" >&6; }
10222
10223 fi
10224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10225   cat >>confdefs.h <<_ACEOF
10226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10227 _ACEOF
10228
10229 fi
10230
10231 done
10232
10233     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10234 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10235   result=
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242
10243 #include <limits.h>
10244 #if HAVE_STDINT_H
10245 #include <stdint.h>
10246 #endif
10247 #ifdef SIZE_MAX
10248 Found it
10249 #endif
10250
10251 _ACEOF
10252 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10253   $EGREP "Found it" >/dev/null 2>&1; then
10254   result=yes
10255 fi
10256 rm -f conftest*
10257
10258   if test -z "$result"; then
10259                     if test "$cross_compiling" = yes; then
10260   # Depending upon the size, compute the lo and hi bounds.
10261 cat >conftest.$ac_ext <<_ACEOF
10262 /* confdefs.h.  */
10263 _ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h.  */
10267 #include <stddef.h>
10268 int
10269 main ()
10270 {
10271 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10272 test_array [0] = 0
10273
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 rm -f conftest.$ac_objext
10279 if { (ac_try="$ac_compile"
10280 case "(($ac_try" in
10281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282   *) ac_try_echo=$ac_try;;
10283 esac
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285   (eval "$ac_compile") 2>conftest.er1
10286   ac_status=$?
10287   grep -v '^ *+' conftest.er1 >conftest.err
10288   rm -f conftest.er1
10289   cat conftest.err >&5
10290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291   (exit $ac_status); } && {
10292          test -z "$ac_c_werror_flag" ||
10293          test ! -s conftest.err
10294        } && test -s conftest.$ac_objext; then
10295   ac_lo=0 ac_mid=0
10296   while :; do
10297     cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h.  */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h.  */
10303 #include <stddef.h>
10304 int
10305 main ()
10306 {
10307 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10308 test_array [0] = 0
10309
10310   ;
10311   return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest.$ac_objext
10315 if { (ac_try="$ac_compile"
10316 case "(($ac_try" in
10317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318   *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321   (eval "$ac_compile") 2>conftest.er1
10322   ac_status=$?
10323   grep -v '^ *+' conftest.er1 >conftest.err
10324   rm -f conftest.er1
10325   cat conftest.err >&5
10326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10327   (exit $ac_status); } && {
10328          test -z "$ac_c_werror_flag" ||
10329          test ! -s conftest.err
10330        } && test -s conftest.$ac_objext; then
10331   ac_hi=$ac_mid; break
10332 else
10333   echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10335
10336         ac_lo=`expr $ac_mid + 1`
10337                         if test $ac_lo -le $ac_mid; then
10338                           ac_lo= ac_hi=
10339                           break
10340                         fi
10341                         ac_mid=`expr 2 '*' $ac_mid + 1`
10342 fi
10343
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345   done
10346 else
10347   echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350         cat >conftest.$ac_ext <<_ACEOF
10351 /* confdefs.h.  */
10352 _ACEOF
10353 cat confdefs.h >>conftest.$ac_ext
10354 cat >>conftest.$ac_ext <<_ACEOF
10355 /* end confdefs.h.  */
10356 #include <stddef.h>
10357 int
10358 main ()
10359 {
10360 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10361 test_array [0] = 0
10362
10363   ;
10364   return 0;
10365 }
10366 _ACEOF
10367 rm -f conftest.$ac_objext
10368 if { (ac_try="$ac_compile"
10369 case "(($ac_try" in
10370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10371   *) ac_try_echo=$ac_try;;
10372 esac
10373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10374   (eval "$ac_compile") 2>conftest.er1
10375   ac_status=$?
10376   grep -v '^ *+' conftest.er1 >conftest.err
10377   rm -f conftest.er1
10378   cat conftest.err >&5
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); } && {
10381          test -z "$ac_c_werror_flag" ||
10382          test ! -s conftest.err
10383        } && test -s conftest.$ac_objext; then
10384   ac_hi=-1 ac_mid=-1
10385   while :; do
10386     cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h.  */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h.  */
10392 #include <stddef.h>
10393 int
10394 main ()
10395 {
10396 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10397 test_array [0] = 0
10398
10399   ;
10400   return 0;
10401 }
10402 _ACEOF
10403 rm -f conftest.$ac_objext
10404 if { (ac_try="$ac_compile"
10405 case "(($ac_try" in
10406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10407   *) ac_try_echo=$ac_try;;
10408 esac
10409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10410   (eval "$ac_compile") 2>conftest.er1
10411   ac_status=$?
10412   grep -v '^ *+' conftest.er1 >conftest.err
10413   rm -f conftest.er1
10414   cat conftest.err >&5
10415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); } && {
10417          test -z "$ac_c_werror_flag" ||
10418          test ! -s conftest.err
10419        } && test -s conftest.$ac_objext; then
10420   ac_lo=$ac_mid; break
10421 else
10422   echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425         ac_hi=`expr '(' $ac_mid ')' - 1`
10426                         if test $ac_mid -le $ac_hi; then
10427                           ac_lo= ac_hi=
10428                           break
10429                         fi
10430                         ac_mid=`expr 2 '*' $ac_mid`
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10434   done
10435 else
10436   echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10438
10439         ac_lo= ac_hi=
10440 fi
10441
10442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10443 fi
10444
10445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10446 # Binary search between lo and hi bounds.
10447 while test "x$ac_lo" != "x$ac_hi"; do
10448   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10449   cat >conftest.$ac_ext <<_ACEOF
10450 /* confdefs.h.  */
10451 _ACEOF
10452 cat confdefs.h >>conftest.$ac_ext
10453 cat >>conftest.$ac_ext <<_ACEOF
10454 /* end confdefs.h.  */
10455 #include <stddef.h>
10456 int
10457 main ()
10458 {
10459 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10460 test_array [0] = 0
10461
10462   ;
10463   return 0;
10464 }
10465 _ACEOF
10466 rm -f conftest.$ac_objext
10467 if { (ac_try="$ac_compile"
10468 case "(($ac_try" in
10469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470   *) ac_try_echo=$ac_try;;
10471 esac
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473   (eval "$ac_compile") 2>conftest.er1
10474   ac_status=$?
10475   grep -v '^ *+' conftest.er1 >conftest.err
10476   rm -f conftest.er1
10477   cat conftest.err >&5
10478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479   (exit $ac_status); } && {
10480          test -z "$ac_c_werror_flag" ||
10481          test ! -s conftest.err
10482        } && test -s conftest.$ac_objext; then
10483   ac_hi=$ac_mid
10484 else
10485   echo "$as_me: failed program was:" >&5
10486 sed 's/^/| /' conftest.$ac_ext >&5
10487
10488         ac_lo=`expr '(' $ac_mid ')' + 1`
10489 fi
10490
10491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10492 done
10493 case $ac_lo in
10494 ?*) res_hi=$ac_lo;;
10495 '') result=? ;;
10496 esac
10497 else
10498   cat >conftest.$ac_ext <<_ACEOF
10499 /* confdefs.h.  */
10500 _ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h.  */
10504 #include <stddef.h>
10505 static long int longval () { return ~(size_t)0 / 10; }
10506 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10507 #include <stdio.h>
10508 #include <stdlib.h>
10509 int
10510 main ()
10511 {
10512
10513   FILE *f = fopen ("conftest.val", "w");
10514   if (! f)
10515     return 1;
10516   if ((~(size_t)0 / 10) < 0)
10517     {
10518       long int i = longval ();
10519       if (i != (~(size_t)0 / 10))
10520         return 1;
10521       fprintf (f, "%ld\n", i);
10522     }
10523   else
10524     {
10525       unsigned long int i = ulongval ();
10526       if (i != (~(size_t)0 / 10))
10527         return 1;
10528       fprintf (f, "%lu\n", i);
10529     }
10530   return ferror (f) || fclose (f) != 0;
10531
10532   ;
10533   return 0;
10534 }
10535 _ACEOF
10536 rm -f conftest$ac_exeext
10537 if { (ac_try="$ac_link"
10538 case "(($ac_try" in
10539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10540   *) ac_try_echo=$ac_try;;
10541 esac
10542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10543   (eval "$ac_link") 2>&5
10544   ac_status=$?
10545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10547   { (case "(($ac_try" in
10548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549   *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552   (eval "$ac_try") 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); }; }; then
10556   res_hi=`cat conftest.val`
10557 else
10558   echo "$as_me: program exited with status $ac_status" >&5
10559 echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.$ac_ext >&5
10561
10562 ( exit $ac_status )
10563 result=?
10564 fi
10565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10566 fi
10567 rm -f conftest.val
10568
10569     if test "$cross_compiling" = yes; then
10570   # Depending upon the size, compute the lo and hi bounds.
10571 cat >conftest.$ac_ext <<_ACEOF
10572 /* confdefs.h.  */
10573 _ACEOF
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h.  */
10577 #include <stddef.h>
10578 int
10579 main ()
10580 {
10581 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10582 test_array [0] = 0
10583
10584   ;
10585   return 0;
10586 }
10587 _ACEOF
10588 rm -f conftest.$ac_objext
10589 if { (ac_try="$ac_compile"
10590 case "(($ac_try" in
10591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592   *) ac_try_echo=$ac_try;;
10593 esac
10594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595   (eval "$ac_compile") 2>conftest.er1
10596   ac_status=$?
10597   grep -v '^ *+' conftest.er1 >conftest.err
10598   rm -f conftest.er1
10599   cat conftest.err >&5
10600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601   (exit $ac_status); } && {
10602          test -z "$ac_c_werror_flag" ||
10603          test ! -s conftest.err
10604        } && test -s conftest.$ac_objext; then
10605   ac_lo=0 ac_mid=0
10606   while :; do
10607     cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613 #include <stddef.h>
10614 int
10615 main ()
10616 {
10617 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10618 test_array [0] = 0
10619
10620   ;
10621   return 0;
10622 }
10623 _ACEOF
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628   *) ac_try_echo=$ac_try;;
10629 esac
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631   (eval "$ac_compile") 2>conftest.er1
10632   ac_status=$?
10633   grep -v '^ *+' conftest.er1 >conftest.err
10634   rm -f conftest.er1
10635   cat conftest.err >&5
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); } && {
10638          test -z "$ac_c_werror_flag" ||
10639          test ! -s conftest.err
10640        } && test -s conftest.$ac_objext; then
10641   ac_hi=$ac_mid; break
10642 else
10643   echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646         ac_lo=`expr $ac_mid + 1`
10647                         if test $ac_lo -le $ac_mid; then
10648                           ac_lo= ac_hi=
10649                           break
10650                         fi
10651                         ac_mid=`expr 2 '*' $ac_mid + 1`
10652 fi
10653
10654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655   done
10656 else
10657   echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10659
10660         cat >conftest.$ac_ext <<_ACEOF
10661 /* confdefs.h.  */
10662 _ACEOF
10663 cat confdefs.h >>conftest.$ac_ext
10664 cat >>conftest.$ac_ext <<_ACEOF
10665 /* end confdefs.h.  */
10666 #include <stddef.h>
10667 int
10668 main ()
10669 {
10670 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10671 test_array [0] = 0
10672
10673   ;
10674   return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681   *) ac_try_echo=$ac_try;;
10682 esac
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684   (eval "$ac_compile") 2>conftest.er1
10685   ac_status=$?
10686   grep -v '^ *+' conftest.er1 >conftest.err
10687   rm -f conftest.er1
10688   cat conftest.err >&5
10689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690   (exit $ac_status); } && {
10691          test -z "$ac_c_werror_flag" ||
10692          test ! -s conftest.err
10693        } && test -s conftest.$ac_objext; then
10694   ac_hi=-1 ac_mid=-1
10695   while :; do
10696     cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702 #include <stddef.h>
10703 int
10704 main ()
10705 {
10706 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10707 test_array [0] = 0
10708
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext
10714 if { (ac_try="$ac_compile"
10715 case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_compile") 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && {
10727          test -z "$ac_c_werror_flag" ||
10728          test ! -s conftest.err
10729        } && test -s conftest.$ac_objext; then
10730   ac_lo=$ac_mid; break
10731 else
10732   echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10734
10735         ac_hi=`expr '(' $ac_mid ')' - 1`
10736                         if test $ac_mid -le $ac_hi; then
10737                           ac_lo= ac_hi=
10738                           break
10739                         fi
10740                         ac_mid=`expr 2 '*' $ac_mid`
10741 fi
10742
10743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10744   done
10745 else
10746   echo "$as_me: failed program was:" >&5
10747 sed 's/^/| /' conftest.$ac_ext >&5
10748
10749         ac_lo= ac_hi=
10750 fi
10751
10752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10753 fi
10754
10755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 # Binary search between lo and hi bounds.
10757 while test "x$ac_lo" != "x$ac_hi"; do
10758   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10759   cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765 #include <stddef.h>
10766 int
10767 main ()
10768 {
10769 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10770 test_array [0] = 0
10771
10772   ;
10773   return 0;
10774 }
10775 _ACEOF
10776 rm -f conftest.$ac_objext
10777 if { (ac_try="$ac_compile"
10778 case "(($ac_try" in
10779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780   *) ac_try_echo=$ac_try;;
10781 esac
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783   (eval "$ac_compile") 2>conftest.er1
10784   ac_status=$?
10785   grep -v '^ *+' conftest.er1 >conftest.err
10786   rm -f conftest.er1
10787   cat conftest.err >&5
10788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789   (exit $ac_status); } && {
10790          test -z "$ac_c_werror_flag" ||
10791          test ! -s conftest.err
10792        } && test -s conftest.$ac_objext; then
10793   ac_hi=$ac_mid
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798         ac_lo=`expr '(' $ac_mid ')' + 1`
10799 fi
10800
10801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10802 done
10803 case $ac_lo in
10804 ?*) res_lo=$ac_lo;;
10805 '') result=? ;;
10806 esac
10807 else
10808   cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h.  */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h.  */
10814 #include <stddef.h>
10815 static long int longval () { return ~(size_t)0 % 10; }
10816 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10817 #include <stdio.h>
10818 #include <stdlib.h>
10819 int
10820 main ()
10821 {
10822
10823   FILE *f = fopen ("conftest.val", "w");
10824   if (! f)
10825     return 1;
10826   if ((~(size_t)0 % 10) < 0)
10827     {
10828       long int i = longval ();
10829       if (i != (~(size_t)0 % 10))
10830         return 1;
10831       fprintf (f, "%ld\n", i);
10832     }
10833   else
10834     {
10835       unsigned long int i = ulongval ();
10836       if (i != (~(size_t)0 % 10))
10837         return 1;
10838       fprintf (f, "%lu\n", i);
10839     }
10840   return ferror (f) || fclose (f) != 0;
10841
10842   ;
10843   return 0;
10844 }
10845 _ACEOF
10846 rm -f conftest$ac_exeext
10847 if { (ac_try="$ac_link"
10848 case "(($ac_try" in
10849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10850   *) ac_try_echo=$ac_try;;
10851 esac
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853   (eval "$ac_link") 2>&5
10854   ac_status=$?
10855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10857   { (case "(($ac_try" in
10858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859   *) ac_try_echo=$ac_try;;
10860 esac
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862   (eval "$ac_try") 2>&5
10863   ac_status=$?
10864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865   (exit $ac_status); }; }; then
10866   res_lo=`cat conftest.val`
10867 else
10868   echo "$as_me: program exited with status $ac_status" >&5
10869 echo "$as_me: failed program was:" >&5
10870 sed 's/^/| /' conftest.$ac_ext >&5
10871
10872 ( exit $ac_status )
10873 result=?
10874 fi
10875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10876 fi
10877 rm -f conftest.val
10878
10879     if test "$cross_compiling" = yes; then
10880   # Depending upon the size, compute the lo and hi bounds.
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h.  */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h.  */
10887 #include <stddef.h>
10888 int
10889 main ()
10890 {
10891 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10892 test_array [0] = 0
10893
10894   ;
10895   return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext
10899 if { (ac_try="$ac_compile"
10900 case "(($ac_try" in
10901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902   *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905   (eval "$ac_compile") 2>conftest.er1
10906   ac_status=$?
10907   grep -v '^ *+' conftest.er1 >conftest.err
10908   rm -f conftest.er1
10909   cat conftest.err >&5
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); } && {
10912          test -z "$ac_c_werror_flag" ||
10913          test ! -s conftest.err
10914        } && test -s conftest.$ac_objext; then
10915   ac_lo=0 ac_mid=0
10916   while :; do
10917     cat >conftest.$ac_ext <<_ACEOF
10918 /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #include <stddef.h>
10924 int
10925 main ()
10926 {
10927 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10928 test_array [0] = 0
10929
10930   ;
10931   return 0;
10932 }
10933 _ACEOF
10934 rm -f conftest.$ac_objext
10935 if { (ac_try="$ac_compile"
10936 case "(($ac_try" in
10937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10938   *) ac_try_echo=$ac_try;;
10939 esac
10940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10941   (eval "$ac_compile") 2>conftest.er1
10942   ac_status=$?
10943   grep -v '^ *+' conftest.er1 >conftest.err
10944   rm -f conftest.er1
10945   cat conftest.err >&5
10946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947   (exit $ac_status); } && {
10948          test -z "$ac_c_werror_flag" ||
10949          test ! -s conftest.err
10950        } && test -s conftest.$ac_objext; then
10951   ac_hi=$ac_mid; break
10952 else
10953   echo "$as_me: failed program was:" >&5
10954 sed 's/^/| /' conftest.$ac_ext >&5
10955
10956         ac_lo=`expr $ac_mid + 1`
10957                         if test $ac_lo -le $ac_mid; then
10958                           ac_lo= ac_hi=
10959                           break
10960                         fi
10961                         ac_mid=`expr 2 '*' $ac_mid + 1`
10962 fi
10963
10964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10965   done
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h.  */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h.  */
10976 #include <stddef.h>
10977 int
10978 main ()
10979 {
10980 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10981 test_array [0] = 0
10982
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext
10988 if { (ac_try="$ac_compile"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_compile") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } && {
11001          test -z "$ac_c_werror_flag" ||
11002          test ! -s conftest.err
11003        } && test -s conftest.$ac_objext; then
11004   ac_hi=-1 ac_mid=-1
11005   while :; do
11006     cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h.  */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h.  */
11012 #include <stddef.h>
11013 int
11014 main ()
11015 {
11016 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11017 test_array [0] = 0
11018
11019   ;
11020   return 0;
11021 }
11022 _ACEOF
11023 rm -f conftest.$ac_objext
11024 if { (ac_try="$ac_compile"
11025 case "(($ac_try" in
11026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11027   *) ac_try_echo=$ac_try;;
11028 esac
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030   (eval "$ac_compile") 2>conftest.er1
11031   ac_status=$?
11032   grep -v '^ *+' conftest.er1 >conftest.err
11033   rm -f conftest.er1
11034   cat conftest.err >&5
11035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036   (exit $ac_status); } && {
11037          test -z "$ac_c_werror_flag" ||
11038          test ! -s conftest.err
11039        } && test -s conftest.$ac_objext; then
11040   ac_lo=$ac_mid; break
11041 else
11042   echo "$as_me: failed program was:" >&5
11043 sed 's/^/| /' conftest.$ac_ext >&5
11044
11045         ac_hi=`expr '(' $ac_mid ')' - 1`
11046                         if test $ac_mid -le $ac_hi; then
11047                           ac_lo= ac_hi=
11048                           break
11049                         fi
11050                         ac_mid=`expr 2 '*' $ac_mid`
11051 fi
11052
11053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11054   done
11055 else
11056   echo "$as_me: failed program was:" >&5
11057 sed 's/^/| /' conftest.$ac_ext >&5
11058
11059         ac_lo= ac_hi=
11060 fi
11061
11062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11063 fi
11064
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11066 # Binary search between lo and hi bounds.
11067 while test "x$ac_lo" != "x$ac_hi"; do
11068   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11069   cat >conftest.$ac_ext <<_ACEOF
11070 /* confdefs.h.  */
11071 _ACEOF
11072 cat confdefs.h >>conftest.$ac_ext
11073 cat >>conftest.$ac_ext <<_ACEOF
11074 /* end confdefs.h.  */
11075 #include <stddef.h>
11076 int
11077 main ()
11078 {
11079 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11080 test_array [0] = 0
11081
11082   ;
11083   return 0;
11084 }
11085 _ACEOF
11086 rm -f conftest.$ac_objext
11087 if { (ac_try="$ac_compile"
11088 case "(($ac_try" in
11089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11090   *) ac_try_echo=$ac_try;;
11091 esac
11092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11093   (eval "$ac_compile") 2>conftest.er1
11094   ac_status=$?
11095   grep -v '^ *+' conftest.er1 >conftest.err
11096   rm -f conftest.er1
11097   cat conftest.err >&5
11098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099   (exit $ac_status); } && {
11100          test -z "$ac_c_werror_flag" ||
11101          test ! -s conftest.err
11102        } && test -s conftest.$ac_objext; then
11103   ac_hi=$ac_mid
11104 else
11105   echo "$as_me: failed program was:" >&5
11106 sed 's/^/| /' conftest.$ac_ext >&5
11107
11108         ac_lo=`expr '(' $ac_mid ')' + 1`
11109 fi
11110
11111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11112 done
11113 case $ac_lo in
11114 ?*) fits_in_uint=$ac_lo;;
11115 '') result=? ;;
11116 esac
11117 else
11118   cat >conftest.$ac_ext <<_ACEOF
11119 /* confdefs.h.  */
11120 _ACEOF
11121 cat confdefs.h >>conftest.$ac_ext
11122 cat >>conftest.$ac_ext <<_ACEOF
11123 /* end confdefs.h.  */
11124 #include <stddef.h>
11125 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11126 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11127 #include <stdio.h>
11128 #include <stdlib.h>
11129 int
11130 main ()
11131 {
11132
11133   FILE *f = fopen ("conftest.val", "w");
11134   if (! f)
11135     return 1;
11136   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11137     {
11138       long int i = longval ();
11139       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11140         return 1;
11141       fprintf (f, "%ld\n", i);
11142     }
11143   else
11144     {
11145       unsigned long int i = ulongval ();
11146       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11147         return 1;
11148       fprintf (f, "%lu\n", i);
11149     }
11150   return ferror (f) || fclose (f) != 0;
11151
11152   ;
11153   return 0;
11154 }
11155 _ACEOF
11156 rm -f conftest$ac_exeext
11157 if { (ac_try="$ac_link"
11158 case "(($ac_try" in
11159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11160   *) ac_try_echo=$ac_try;;
11161 esac
11162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11163   (eval "$ac_link") 2>&5
11164   ac_status=$?
11165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11166   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11167   { (case "(($ac_try" in
11168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11169   *) ac_try_echo=$ac_try;;
11170 esac
11171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11172   (eval "$ac_try") 2>&5
11173   ac_status=$?
11174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175   (exit $ac_status); }; }; then
11176   fits_in_uint=`cat conftest.val`
11177 else
11178   echo "$as_me: program exited with status $ac_status" >&5
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11181
11182 ( exit $ac_status )
11183 result=?
11184 fi
11185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11186 fi
11187 rm -f conftest.val
11188
11189     if test "$fits_in_uint" = 1; then
11190                   cat >conftest.$ac_ext <<_ACEOF
11191 /* confdefs.h.  */
11192 _ACEOF
11193 cat confdefs.h >>conftest.$ac_ext
11194 cat >>conftest.$ac_ext <<_ACEOF
11195 /* end confdefs.h.  */
11196 #include <stddef.h>
11197         extern size_t foo;
11198         extern unsigned long foo;
11199
11200 int
11201 main ()
11202 {
11203
11204   ;
11205   return 0;
11206 }
11207 _ACEOF
11208 rm -f conftest.$ac_objext
11209 if { (ac_try="$ac_compile"
11210 case "(($ac_try" in
11211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212   *) ac_try_echo=$ac_try;;
11213 esac
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215   (eval "$ac_compile") 2>conftest.er1
11216   ac_status=$?
11217   grep -v '^ *+' conftest.er1 >conftest.err
11218   rm -f conftest.er1
11219   cat conftest.err >&5
11220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221   (exit $ac_status); } && {
11222          test -z "$ac_c_werror_flag" ||
11223          test ! -s conftest.err
11224        } && test -s conftest.$ac_objext; then
11225   fits_in_uint=0
11226 else
11227   echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.$ac_ext >&5
11229
11230
11231 fi
11232
11233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11234     fi
11235     if test -z "$result"; then
11236       if test "$fits_in_uint" = 1; then
11237         result="$res_hi$res_lo"U
11238       else
11239         result="$res_hi$res_lo"UL
11240       fi
11241     else
11242             result='~(size_t)0'
11243     fi
11244   fi
11245   { echo "$as_me:$LINENO: result: $result" >&5
11246 echo "${ECHO_T}$result" >&6; }
11247   if test "$result" != yes; then
11248
11249 cat >>confdefs.h <<_ACEOF
11250 #define SIZE_MAX $result
11251 _ACEOF
11252
11253   fi
11254
11255
11256
11257
11258
11259 for ac_header in stdint.h
11260 do
11261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11263   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266   echo $ECHO_N "(cached) $ECHO_C" >&6
11267 fi
11268 ac_res=`eval echo '${'$as_ac_Header'}'`
11269                { echo "$as_me:$LINENO: result: $ac_res" >&5
11270 echo "${ECHO_T}$ac_res" >&6; }
11271 else
11272   # Is the header compilable?
11273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11275 cat >conftest.$ac_ext <<_ACEOF
11276 /* confdefs.h.  */
11277 _ACEOF
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h.  */
11281 $ac_includes_default
11282 #include <$ac_header>
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (ac_try="$ac_compile"
11286 case "(($ac_try" in
11287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11288   *) ac_try_echo=$ac_try;;
11289 esac
11290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11291   (eval "$ac_compile") 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } && {
11298          test -z "$ac_c_werror_flag" ||
11299          test ! -s conftest.err
11300        } && test -s conftest.$ac_objext; then
11301   ac_header_compiler=yes
11302 else
11303   echo "$as_me: failed program was:" >&5
11304 sed 's/^/| /' conftest.$ac_ext >&5
11305
11306         ac_header_compiler=no
11307 fi
11308
11309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11311 echo "${ECHO_T}$ac_header_compiler" >&6; }
11312
11313 # Is the header present?
11314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11316 cat >conftest.$ac_ext <<_ACEOF
11317 /* confdefs.h.  */
11318 _ACEOF
11319 cat confdefs.h >>conftest.$ac_ext
11320 cat >>conftest.$ac_ext <<_ACEOF
11321 /* end confdefs.h.  */
11322 #include <$ac_header>
11323 _ACEOF
11324 if { (ac_try="$ac_cpp conftest.$ac_ext"
11325 case "(($ac_try" in
11326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327   *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11331   ac_status=$?
11332   grep -v '^ *+' conftest.er1 >conftest.err
11333   rm -f conftest.er1
11334   cat conftest.err >&5
11335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336   (exit $ac_status); } >/dev/null && {
11337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11338          test ! -s conftest.err
11339        }; then
11340   ac_header_preproc=yes
11341 else
11342   echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11344
11345   ac_header_preproc=no
11346 fi
11347
11348 rm -f conftest.err conftest.$ac_ext
11349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350 echo "${ECHO_T}$ac_header_preproc" >&6; }
11351
11352 # So?  What about this header?
11353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354   yes:no: )
11355     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359     ac_header_preproc=yes
11360     ;;
11361   no:yes:* )
11362     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11365 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11366     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11369 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11370     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11374
11375     ;;
11376 esac
11377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11380   echo $ECHO_N "(cached) $ECHO_C" >&6
11381 else
11382   eval "$as_ac_Header=\$ac_header_preproc"
11383 fi
11384 ac_res=`eval echo '${'$as_ac_Header'}'`
11385                { echo "$as_me:$LINENO: result: $ac_res" >&5
11386 echo "${ECHO_T}$ac_res" >&6; }
11387
11388 fi
11389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 fi
11395
11396 done
11397
11398
11399
11400
11401
11402
11403
11404
11405   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11406 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11407 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11408   echo $ECHO_N "(cached) $ECHO_C" >&6
11409 else
11410   cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h.  */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h.  */
11416 $ac_includes_default
11417 typedef ptrdiff_t ac__type_new_;
11418 int
11419 main ()
11420 {
11421 if ((ac__type_new_ *) 0)
11422   return 0;
11423 if (sizeof (ac__type_new_))
11424   return 0;
11425   ;
11426   return 0;
11427 }
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433   *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436   (eval "$ac_compile") 2>conftest.er1
11437   ac_status=$?
11438   grep -v '^ *+' conftest.er1 >conftest.err
11439   rm -f conftest.er1
11440   cat conftest.err >&5
11441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442   (exit $ac_status); } && {
11443          test -z "$ac_c_werror_flag" ||
11444          test ! -s conftest.err
11445        } && test -s conftest.$ac_objext; then
11446   ac_cv_type_ptrdiff_t=yes
11447 else
11448   echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11450
11451         ac_cv_type_ptrdiff_t=no
11452 fi
11453
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 fi
11456 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11457 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11458 if test $ac_cv_type_ptrdiff_t = yes; then
11459   :
11460 else
11461
11462 cat >>confdefs.h <<\_ACEOF
11463 #define ptrdiff_t long
11464 _ACEOF
11465
11466
11467 fi
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11480 stdlib.h string.h unistd.h sys/param.h
11481 do
11482 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11483 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11484   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487   echo $ECHO_N "(cached) $ECHO_C" >&6
11488 fi
11489 ac_res=`eval echo '${'$as_ac_Header'}'`
11490                { echo "$as_me:$LINENO: result: $ac_res" >&5
11491 echo "${ECHO_T}$ac_res" >&6; }
11492 else
11493   # Is the header compilable?
11494 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11496 cat >conftest.$ac_ext <<_ACEOF
11497 /* confdefs.h.  */
11498 _ACEOF
11499 cat confdefs.h >>conftest.$ac_ext
11500 cat >>conftest.$ac_ext <<_ACEOF
11501 /* end confdefs.h.  */
11502 $ac_includes_default
11503 #include <$ac_header>
11504 _ACEOF
11505 rm -f conftest.$ac_objext
11506 if { (ac_try="$ac_compile"
11507 case "(($ac_try" in
11508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509   *) ac_try_echo=$ac_try;;
11510 esac
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512   (eval "$ac_compile") 2>conftest.er1
11513   ac_status=$?
11514   grep -v '^ *+' conftest.er1 >conftest.err
11515   rm -f conftest.er1
11516   cat conftest.err >&5
11517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518   (exit $ac_status); } && {
11519          test -z "$ac_c_werror_flag" ||
11520          test ! -s conftest.err
11521        } && test -s conftest.$ac_objext; then
11522   ac_header_compiler=yes
11523 else
11524   echo "$as_me: failed program was:" >&5
11525 sed 's/^/| /' conftest.$ac_ext >&5
11526
11527         ac_header_compiler=no
11528 fi
11529
11530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11531 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11532 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533
11534 # Is the header present?
11535 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11536 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11537 cat >conftest.$ac_ext <<_ACEOF
11538 /* confdefs.h.  */
11539 _ACEOF
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h.  */
11543 #include <$ac_header>
11544 _ACEOF
11545 if { (ac_try="$ac_cpp conftest.$ac_ext"
11546 case "(($ac_try" in
11547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548   *) ac_try_echo=$ac_try;;
11549 esac
11550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11552   ac_status=$?
11553   grep -v '^ *+' conftest.er1 >conftest.err
11554   rm -f conftest.er1
11555   cat conftest.err >&5
11556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557   (exit $ac_status); } >/dev/null && {
11558          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11559          test ! -s conftest.err
11560        }; then
11561   ac_header_preproc=yes
11562 else
11563   echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11565
11566   ac_header_preproc=no
11567 fi
11568
11569 rm -f conftest.err conftest.$ac_ext
11570 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11571 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572
11573 # So?  What about this header?
11574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575   yes:no: )
11576     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11577 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11579 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11580     ac_header_preproc=yes
11581     ;;
11582   no:yes:* )
11583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11585     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11586 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11587     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11588 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11589     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11590 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11591     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11592 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11593     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11594 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11595
11596     ;;
11597 esac
11598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11601   echo $ECHO_N "(cached) $ECHO_C" >&6
11602 else
11603   eval "$as_ac_Header=\$ac_header_preproc"
11604 fi
11605 ac_res=`eval echo '${'$as_ac_Header'}'`
11606                { echo "$as_me:$LINENO: result: $ac_res" >&5
11607 echo "${ECHO_T}$ac_res" >&6; }
11608
11609 fi
11610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11611   cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11613 _ACEOF
11614
11615 fi
11616
11617 done
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11643 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11644 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11645 __fsetlocking
11646 do
11647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 else
11653   cat >conftest.$ac_ext <<_ACEOF
11654 /* confdefs.h.  */
11655 _ACEOF
11656 cat confdefs.h >>conftest.$ac_ext
11657 cat >>conftest.$ac_ext <<_ACEOF
11658 /* end confdefs.h.  */
11659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11661 #define $ac_func innocuous_$ac_func
11662
11663 /* System header to define __stub macros and hopefully few prototypes,
11664     which can conflict with char $ac_func (); below.
11665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11666     <limits.h> exists even on freestanding compilers.  */
11667
11668 #ifdef __STDC__
11669 # include <limits.h>
11670 #else
11671 # include <assert.h>
11672 #endif
11673
11674 #undef $ac_func
11675
11676 /* Override any GCC internal prototype to avoid an error.
11677    Use char because int might match the return type of a GCC
11678    builtin and then its argument prototype would still apply.  */
11679 #ifdef __cplusplus
11680 extern "C"
11681 #endif
11682 char $ac_func ();
11683 /* The GNU C library defines this for functions which it implements
11684     to always fail with ENOSYS.  Some functions are actually named
11685     something starting with __ and the normal name is an alias.  */
11686 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 choke me
11688 #endif
11689
11690 int
11691 main ()
11692 {
11693 return $ac_func ();
11694   ;
11695   return 0;
11696 }
11697 _ACEOF
11698 rm -f conftest.$ac_objext conftest$ac_exeext
11699 if { (ac_try="$ac_link"
11700 case "(($ac_try" in
11701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11702   *) ac_try_echo=$ac_try;;
11703 esac
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705   (eval "$ac_link") 2>conftest.er1
11706   ac_status=$?
11707   grep -v '^ *+' conftest.er1 >conftest.err
11708   rm -f conftest.er1
11709   cat conftest.err >&5
11710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11711   (exit $ac_status); } && {
11712          test -z "$ac_c_werror_flag" ||
11713          test ! -s conftest.err
11714        } && test -s conftest$ac_exeext &&
11715        $as_test_x conftest$ac_exeext; then
11716   eval "$as_ac_var=yes"
11717 else
11718   echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11720
11721         eval "$as_ac_var=no"
11722 fi
11723
11724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11725       conftest$ac_exeext conftest.$ac_ext
11726 fi
11727 ac_res=`eval echo '${'$as_ac_var'}'`
11728                { echo "$as_me:$LINENO: result: $ac_res" >&5
11729 echo "${ECHO_T}$ac_res" >&6; }
11730 if test `eval echo '${'$as_ac_var'}'` = yes; then
11731   cat >>confdefs.h <<_ACEOF
11732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11733 _ACEOF
11734
11735 fi
11736 done
11737
11738
11739
11740   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11741 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11742 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11743   echo $ECHO_N "(cached) $ECHO_C" >&6
11744 else
11745   cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h.  */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h.  */
11751 #include <stdio.h>
11752 int
11753 main ()
11754 {
11755
11756 #ifndef _snprintf
11757   char *p = (char *) _snprintf;
11758 #endif
11759
11760   ;
11761   return 0;
11762 }
11763 _ACEOF
11764 rm -f conftest.$ac_objext
11765 if { (ac_try="$ac_compile"
11766 case "(($ac_try" in
11767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11768   *) ac_try_echo=$ac_try;;
11769 esac
11770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11771   (eval "$ac_compile") 2>conftest.er1
11772   ac_status=$?
11773   grep -v '^ *+' conftest.er1 >conftest.err
11774   rm -f conftest.er1
11775   cat conftest.err >&5
11776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777   (exit $ac_status); } && {
11778          test -z "$ac_c_werror_flag" ||
11779          test ! -s conftest.err
11780        } && test -s conftest.$ac_objext; then
11781   ac_cv_have_decl__snprintf=yes
11782 else
11783   echo "$as_me: failed program was:" >&5
11784 sed 's/^/| /' conftest.$ac_ext >&5
11785
11786         ac_cv_have_decl__snprintf=no
11787 fi
11788
11789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11790 fi
11791 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11792 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11793   if test $ac_cv_have_decl__snprintf = yes; then
11794     gt_value=1
11795   else
11796     gt_value=0
11797   fi
11798
11799 cat >>confdefs.h <<_ACEOF
11800 #define HAVE_DECL__SNPRINTF $gt_value
11801 _ACEOF
11802
11803
11804
11805   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11806 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11807 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11808   echo $ECHO_N "(cached) $ECHO_C" >&6
11809 else
11810   cat >conftest.$ac_ext <<_ACEOF
11811 /* confdefs.h.  */
11812 _ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h.  */
11816 #include <stdio.h>
11817 int
11818 main ()
11819 {
11820
11821 #ifndef _snwprintf
11822   char *p = (char *) _snwprintf;
11823 #endif
11824
11825   ;
11826   return 0;
11827 }
11828 _ACEOF
11829 rm -f conftest.$ac_objext
11830 if { (ac_try="$ac_compile"
11831 case "(($ac_try" in
11832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11833   *) ac_try_echo=$ac_try;;
11834 esac
11835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11836   (eval "$ac_compile") 2>conftest.er1
11837   ac_status=$?
11838   grep -v '^ *+' conftest.er1 >conftest.err
11839   rm -f conftest.er1
11840   cat conftest.err >&5
11841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } && {
11843          test -z "$ac_c_werror_flag" ||
11844          test ! -s conftest.err
11845        } && test -s conftest.$ac_objext; then
11846   ac_cv_have_decl__snwprintf=yes
11847 else
11848   echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.$ac_ext >&5
11850
11851         ac_cv_have_decl__snwprintf=no
11852 fi
11853
11854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11855 fi
11856 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11857 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11858   if test $ac_cv_have_decl__snwprintf = yes; then
11859     gt_value=1
11860   else
11861     gt_value=0
11862   fi
11863
11864 cat >>confdefs.h <<_ACEOF
11865 #define HAVE_DECL__SNWPRINTF $gt_value
11866 _ACEOF
11867
11868
11869
11870
11871   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11872 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11873 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   cat >conftest.$ac_ext <<_ACEOF
11877 /* confdefs.h.  */
11878 _ACEOF
11879 cat confdefs.h >>conftest.$ac_ext
11880 cat >>conftest.$ac_ext <<_ACEOF
11881 /* end confdefs.h.  */
11882 #include <stdio.h>
11883 int
11884 main ()
11885 {
11886
11887 #ifndef feof_unlocked
11888   char *p = (char *) feof_unlocked;
11889 #endif
11890
11891   ;
11892   return 0;
11893 }
11894 _ACEOF
11895 rm -f conftest.$ac_objext
11896 if { (ac_try="$ac_compile"
11897 case "(($ac_try" in
11898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899   *) ac_try_echo=$ac_try;;
11900 esac
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902   (eval "$ac_compile") 2>conftest.er1
11903   ac_status=$?
11904   grep -v '^ *+' conftest.er1 >conftest.err
11905   rm -f conftest.er1
11906   cat conftest.err >&5
11907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908   (exit $ac_status); } && {
11909          test -z "$ac_c_werror_flag" ||
11910          test ! -s conftest.err
11911        } && test -s conftest.$ac_objext; then
11912   ac_cv_have_decl_feof_unlocked=yes
11913 else
11914   echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11916
11917         ac_cv_have_decl_feof_unlocked=no
11918 fi
11919
11920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11921 fi
11922 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11923 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11924   if test $ac_cv_have_decl_feof_unlocked = yes; then
11925     gt_value=1
11926   else
11927     gt_value=0
11928   fi
11929
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11932 _ACEOF
11933
11934
11935
11936   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11937 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11938 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11939   echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941   cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h.  */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h.  */
11947 #include <stdio.h>
11948 int
11949 main ()
11950 {
11951
11952 #ifndef fgets_unlocked
11953   char *p = (char *) fgets_unlocked;
11954 #endif
11955
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext
11961 if { (ac_try="$ac_compile"
11962 case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_compile") 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } && {
11974          test -z "$ac_c_werror_flag" ||
11975          test ! -s conftest.err
11976        } && test -s conftest.$ac_objext; then
11977   ac_cv_have_decl_fgets_unlocked=yes
11978 else
11979   echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11981
11982         ac_cv_have_decl_fgets_unlocked=no
11983 fi
11984
11985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11986 fi
11987 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11988 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11989   if test $ac_cv_have_decl_fgets_unlocked = yes; then
11990     gt_value=1
11991   else
11992     gt_value=0
11993   fi
11994
11995 cat >>confdefs.h <<_ACEOF
11996 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11997 _ACEOF
11998
11999
12000
12001   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
12002 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
12003 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
12004   echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006   cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h.  */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h.  */
12012 #include <stdio.h>
12013 int
12014 main ()
12015 {
12016
12017 #ifndef getc_unlocked
12018   char *p = (char *) getc_unlocked;
12019 #endif
12020
12021   ;
12022   return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (ac_try="$ac_compile"
12027 case "(($ac_try" in
12028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029   *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032   (eval "$ac_compile") 2>conftest.er1
12033   ac_status=$?
12034   grep -v '^ *+' conftest.er1 >conftest.err
12035   rm -f conftest.er1
12036   cat conftest.err >&5
12037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038   (exit $ac_status); } && {
12039          test -z "$ac_c_werror_flag" ||
12040          test ! -s conftest.err
12041        } && test -s conftest.$ac_objext; then
12042   ac_cv_have_decl_getc_unlocked=yes
12043 else
12044   echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047         ac_cv_have_decl_getc_unlocked=no
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 fi
12052 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12053 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12054   if test $ac_cv_have_decl_getc_unlocked = yes; then
12055     gt_value=1
12056   else
12057     gt_value=0
12058   fi
12059
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12062 _ACEOF
12063
12064
12065
12066   case $gt_cv_func_printf_posix in
12067     *yes) HAVE_POSIX_PRINTF=1 ;;
12068     *) HAVE_POSIX_PRINTF=0 ;;
12069   esac
12070
12071   if test "$ac_cv_func_asprintf" = yes; then
12072     HAVE_ASPRINTF=1
12073   else
12074     HAVE_ASPRINTF=0
12075   fi
12076
12077   if test "$ac_cv_func_snprintf" = yes; then
12078     HAVE_SNPRINTF=1
12079   else
12080     HAVE_SNPRINTF=0
12081   fi
12082
12083   if test "$ac_cv_func_wprintf" = yes; then
12084     HAVE_WPRINTF=1
12085   else
12086     HAVE_WPRINTF=0
12087   fi
12088
12089
12090
12091
12092
12093
12094
12095           am_save_CPPFLAGS="$CPPFLAGS"
12096
12097   for element in $INCICONV; do
12098     haveit=
12099     for x in $CPPFLAGS; do
12100
12101   acl_save_prefix="$prefix"
12102   prefix="$acl_final_prefix"
12103   acl_save_exec_prefix="$exec_prefix"
12104   exec_prefix="$acl_final_exec_prefix"
12105   eval x=\"$x\"
12106   exec_prefix="$acl_save_exec_prefix"
12107   prefix="$acl_save_prefix"
12108
12109       if test "X$x" = "X$element"; then
12110         haveit=yes
12111         break
12112       fi
12113     done
12114     if test -z "$haveit"; then
12115       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12116     fi
12117   done
12118
12119
12120   { echo "$as_me:$LINENO: checking for iconv" >&5
12121 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12122 if test "${am_cv_func_iconv+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125
12126     am_cv_func_iconv="no, consider installing GNU libiconv"
12127     am_cv_lib_iconv=no
12128     cat >conftest.$ac_ext <<_ACEOF
12129 /* confdefs.h.  */
12130 _ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h.  */
12134 #include <stdlib.h>
12135 #include <iconv.h>
12136 int
12137 main ()
12138 {
12139 iconv_t cd = iconv_open("","");
12140        iconv(cd,NULL,NULL,NULL,NULL);
12141        iconv_close(cd);
12142   ;
12143   return 0;
12144 }
12145 _ACEOF
12146 rm -f conftest.$ac_objext conftest$ac_exeext
12147 if { (ac_try="$ac_link"
12148 case "(($ac_try" in
12149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150   *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153   (eval "$ac_link") 2>conftest.er1
12154   ac_status=$?
12155   grep -v '^ *+' conftest.er1 >conftest.err
12156   rm -f conftest.er1
12157   cat conftest.err >&5
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); } && {
12160          test -z "$ac_c_werror_flag" ||
12161          test ! -s conftest.err
12162        } && test -s conftest$ac_exeext &&
12163        $as_test_x conftest$ac_exeext; then
12164   am_cv_func_iconv=yes
12165 else
12166   echo "$as_me: failed program was:" >&5
12167 sed 's/^/| /' conftest.$ac_ext >&5
12168
12169
12170 fi
12171
12172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12173       conftest$ac_exeext conftest.$ac_ext
12174     if test "$am_cv_func_iconv" != yes; then
12175       am_save_LIBS="$LIBS"
12176       LIBS="$LIBS $LIBICONV"
12177       cat >conftest.$ac_ext <<_ACEOF
12178 /* confdefs.h.  */
12179 _ACEOF
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h.  */
12183 #include <stdlib.h>
12184 #include <iconv.h>
12185 int
12186 main ()
12187 {
12188 iconv_t cd = iconv_open("","");
12189          iconv(cd,NULL,NULL,NULL,NULL);
12190          iconv_close(cd);
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_link") 2>conftest.er1
12203   ac_status=$?
12204   grep -v '^ *+' conftest.er1 >conftest.err
12205   rm -f conftest.er1
12206   cat conftest.err >&5
12207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208   (exit $ac_status); } && {
12209          test -z "$ac_c_werror_flag" ||
12210          test ! -s conftest.err
12211        } && test -s conftest$ac_exeext &&
12212        $as_test_x conftest$ac_exeext; then
12213   am_cv_lib_iconv=yes
12214         am_cv_func_iconv=yes
12215 else
12216   echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12218
12219
12220 fi
12221
12222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12223       conftest$ac_exeext conftest.$ac_ext
12224       LIBS="$am_save_LIBS"
12225     fi
12226
12227 fi
12228 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12229 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12230   if test "$am_cv_func_iconv" = yes; then
12231
12232 cat >>confdefs.h <<\_ACEOF
12233 #define HAVE_ICONV 1
12234 _ACEOF
12235
12236   fi
12237   if test "$am_cv_lib_iconv" = yes; then
12238     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12239 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12240     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12241 echo "${ECHO_T}$LIBICONV" >&6; }
12242   else
12243             CPPFLAGS="$am_save_CPPFLAGS"
12244     LIBICONV=
12245     LTLIBICONV=
12246   fi
12247
12248
12249
12250   if test "$am_cv_func_iconv" = yes; then
12251     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12252 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12253     if test "${am_cv_proto_iconv+set}" = set; then
12254   echo $ECHO_N "(cached) $ECHO_C" >&6
12255 else
12256
12257       cat >conftest.$ac_ext <<_ACEOF
12258 /* confdefs.h.  */
12259 _ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h.  */
12263
12264 #include <stdlib.h>
12265 #include <iconv.h>
12266 extern
12267 #ifdef __cplusplus
12268 "C"
12269 #endif
12270 #if defined(__STDC__) || defined(__cplusplus)
12271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12272 #else
12273 size_t iconv();
12274 #endif
12275
12276 int
12277 main ()
12278 {
12279
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 rm -f conftest.$ac_objext
12285 if { (ac_try="$ac_compile"
12286 case "(($ac_try" in
12287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12288   *) ac_try_echo=$ac_try;;
12289 esac
12290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12291   (eval "$ac_compile") 2>conftest.er1
12292   ac_status=$?
12293   grep -v '^ *+' conftest.er1 >conftest.err
12294   rm -f conftest.er1
12295   cat conftest.err >&5
12296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297   (exit $ac_status); } && {
12298          test -z "$ac_c_werror_flag" ||
12299          test ! -s conftest.err
12300        } && test -s conftest.$ac_objext; then
12301   am_cv_proto_iconv_arg1=""
12302 else
12303   echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12305
12306         am_cv_proto_iconv_arg1="const"
12307 fi
12308
12309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12310       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);"
12311 fi
12312
12313     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12314     { echo "$as_me:$LINENO: result: ${ac_t:-
12315          }$am_cv_proto_iconv" >&5
12316 echo "${ECHO_T}${ac_t:-
12317          }$am_cv_proto_iconv" >&6; }
12318
12319 cat >>confdefs.h <<_ACEOF
12320 #define ICONV_CONST $am_cv_proto_iconv_arg1
12321 _ACEOF
12322
12323   fi
12324
12325
12326   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12327 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12328 if test "${am_cv_langinfo_codeset+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331   cat >conftest.$ac_ext <<_ACEOF
12332 /* confdefs.h.  */
12333 _ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h.  */
12337 #include <langinfo.h>
12338 int
12339 main ()
12340 {
12341 char* cs = nl_langinfo(CODESET);
12342   ;
12343   return 0;
12344 }
12345 _ACEOF
12346 rm -f conftest.$ac_objext conftest$ac_exeext
12347 if { (ac_try="$ac_link"
12348 case "(($ac_try" in
12349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350   *) ac_try_echo=$ac_try;;
12351 esac
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353   (eval "$ac_link") 2>conftest.er1
12354   ac_status=$?
12355   grep -v '^ *+' conftest.er1 >conftest.err
12356   rm -f conftest.er1
12357   cat conftest.err >&5
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); } && {
12360          test -z "$ac_c_werror_flag" ||
12361          test ! -s conftest.err
12362        } && test -s conftest$ac_exeext &&
12363        $as_test_x conftest$ac_exeext; then
12364   am_cv_langinfo_codeset=yes
12365 else
12366   echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12368
12369         am_cv_langinfo_codeset=no
12370 fi
12371
12372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12373       conftest$ac_exeext conftest.$ac_ext
12374
12375 fi
12376 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12377 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12378   if test $am_cv_langinfo_codeset = yes; then
12379
12380 cat >>confdefs.h <<\_ACEOF
12381 #define HAVE_LANGINFO_CODESET 1
12382 _ACEOF
12383
12384   fi
12385
12386   if test $ac_cv_header_locale_h = yes; then
12387
12388   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12389 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12390 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12391   echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393   cat >conftest.$ac_ext <<_ACEOF
12394 /* confdefs.h.  */
12395 _ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h.  */
12399 #include <locale.h>
12400 int
12401 main ()
12402 {
12403 return LC_MESSAGES
12404   ;
12405   return 0;
12406 }
12407 _ACEOF
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (ac_try="$ac_link"
12410 case "(($ac_try" in
12411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12412   *) ac_try_echo=$ac_try;;
12413 esac
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415   (eval "$ac_link") 2>conftest.er1
12416   ac_status=$?
12417   grep -v '^ *+' conftest.er1 >conftest.err
12418   rm -f conftest.er1
12419   cat conftest.err >&5
12420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421   (exit $ac_status); } && {
12422          test -z "$ac_c_werror_flag" ||
12423          test ! -s conftest.err
12424        } && test -s conftest$ac_exeext &&
12425        $as_test_x conftest$ac_exeext; then
12426   gt_cv_val_LC_MESSAGES=yes
12427 else
12428   echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.$ac_ext >&5
12430
12431         gt_cv_val_LC_MESSAGES=no
12432 fi
12433
12434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12435       conftest$ac_exeext conftest.$ac_ext
12436 fi
12437 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12438 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12439   if test $gt_cv_val_LC_MESSAGES = yes; then
12440
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_LC_MESSAGES 1
12443 _ACEOF
12444
12445   fi
12446
12447   fi
12448
12449   if test -n "$INTL_MACOSX_LIBS"; then
12450     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12451   fi
12452
12453                       for ac_prog in bison
12454 do
12455   # Extract the first word of "$ac_prog", so it can be a program name with args.
12456 set dummy $ac_prog; ac_word=$2
12457 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12459 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12460   echo $ECHO_N "(cached) $ECHO_C" >&6
12461 else
12462   if test -n "$INTLBISON"; then
12463   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12464 else
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12467 do
12468   IFS=$as_save_IFS
12469   test -z "$as_dir" && as_dir=.
12470   for ac_exec_ext in '' $ac_executable_extensions; do
12471   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472     ac_cv_prog_INTLBISON="$ac_prog"
12473     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12474     break 2
12475   fi
12476 done
12477 done
12478 IFS=$as_save_IFS
12479
12480 fi
12481 fi
12482 INTLBISON=$ac_cv_prog_INTLBISON
12483 if test -n "$INTLBISON"; then
12484   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12485 echo "${ECHO_T}$INTLBISON" >&6; }
12486 else
12487   { echo "$as_me:$LINENO: result: no" >&5
12488 echo "${ECHO_T}no" >&6; }
12489 fi
12490
12491
12492   test -n "$INTLBISON" && break
12493 done
12494
12495   if test -z "$INTLBISON"; then
12496     ac_verc_fail=yes
12497   else
12498         { echo "$as_me:$LINENO: checking version of bison" >&5
12499 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12500     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12501     case $ac_prog_version in
12502       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12503       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12504          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12505       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12506     esac
12507     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12508 echo "${ECHO_T}$ac_prog_version" >&6; }
12509   fi
12510   if test $ac_verc_fail = yes; then
12511     INTLBISON=:
12512   fi
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12530 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12531 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12532   echo $ECHO_N "(cached) $ECHO_C" >&6
12533 else
12534   gt_save_CPPFLAGS="$CPPFLAGS"
12535      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12536      gt_save_LIBS="$LIBS"
12537      LIBS="$LIBS -framework CoreFoundation"
12538      cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h.  */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h.  */
12544 #include <CFPreferences.h>
12545 int
12546 main ()
12547 {
12548 CFPreferencesCopyAppValue(NULL, NULL)
12549   ;
12550   return 0;
12551 }
12552 _ACEOF
12553 rm -f conftest.$ac_objext conftest$ac_exeext
12554 if { (ac_try="$ac_link"
12555 case "(($ac_try" in
12556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12557   *) ac_try_echo=$ac_try;;
12558 esac
12559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12560   (eval "$ac_link") 2>conftest.er1
12561   ac_status=$?
12562   grep -v '^ *+' conftest.er1 >conftest.err
12563   rm -f conftest.er1
12564   cat conftest.err >&5
12565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566   (exit $ac_status); } && {
12567          test -z "$ac_c_werror_flag" ||
12568          test ! -s conftest.err
12569        } && test -s conftest$ac_exeext &&
12570        $as_test_x conftest$ac_exeext; then
12571   gt_cv_func_CFPreferencesCopyAppValue=yes
12572 else
12573   echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12575
12576         gt_cv_func_CFPreferencesCopyAppValue=no
12577 fi
12578
12579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12580       conftest$ac_exeext conftest.$ac_ext
12581      CPPFLAGS="$gt_save_CPPFLAGS"
12582      LIBS="$gt_save_LIBS"
12583 fi
12584 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12585 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12586   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12587
12588 cat >>confdefs.h <<\_ACEOF
12589 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12590 _ACEOF
12591
12592   fi
12593     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12594 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12595 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12596   echo $ECHO_N "(cached) $ECHO_C" >&6
12597 else
12598   gt_save_CPPFLAGS="$CPPFLAGS"
12599      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12600      gt_save_LIBS="$LIBS"
12601      LIBS="$LIBS -framework CoreFoundation"
12602      cat >conftest.$ac_ext <<_ACEOF
12603 /* confdefs.h.  */
12604 _ACEOF
12605 cat confdefs.h >>conftest.$ac_ext
12606 cat >>conftest.$ac_ext <<_ACEOF
12607 /* end confdefs.h.  */
12608 #include <CFLocale.h>
12609 int
12610 main ()
12611 {
12612 CFLocaleCopyCurrent();
12613   ;
12614   return 0;
12615 }
12616 _ACEOF
12617 rm -f conftest.$ac_objext conftest$ac_exeext
12618 if { (ac_try="$ac_link"
12619 case "(($ac_try" in
12620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12621   *) ac_try_echo=$ac_try;;
12622 esac
12623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12624   (eval "$ac_link") 2>conftest.er1
12625   ac_status=$?
12626   grep -v '^ *+' conftest.er1 >conftest.err
12627   rm -f conftest.er1
12628   cat conftest.err >&5
12629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630   (exit $ac_status); } && {
12631          test -z "$ac_c_werror_flag" ||
12632          test ! -s conftest.err
12633        } && test -s conftest$ac_exeext &&
12634        $as_test_x conftest$ac_exeext; then
12635   gt_cv_func_CFLocaleCopyCurrent=yes
12636 else
12637   echo "$as_me: failed program was:" >&5
12638 sed 's/^/| /' conftest.$ac_ext >&5
12639
12640         gt_cv_func_CFLocaleCopyCurrent=no
12641 fi
12642
12643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12644       conftest$ac_exeext conftest.$ac_ext
12645      CPPFLAGS="$gt_save_CPPFLAGS"
12646      LIBS="$gt_save_LIBS"
12647 fi
12648 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12649 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12650   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12651
12652 cat >>confdefs.h <<\_ACEOF
12653 #define HAVE_CFLOCALECOPYCURRENT 1
12654 _ACEOF
12655
12656   fi
12657   INTL_MACOSX_LIBS=
12658   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12659     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12660   fi
12661
12662
12663
12664
12665   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12666 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12667     # Check whether --enable-nls was given.
12668 if test "${enable_nls+set}" = set; then
12669   enableval=$enable_nls; USE_NLS=$enableval
12670 else
12671   USE_NLS=yes
12672 fi
12673
12674   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12675 echo "${ECHO_T}$USE_NLS" >&6; }
12676
12677
12678
12679
12680     BUILD_INCLUDED_LIBINTL=no
12681     USE_INCLUDED_LIBINTL=no
12682
12683   LIBINTL=
12684   LTLIBINTL=
12685   POSUB=
12686
12687     if test "$USE_NLS" = "yes"; then
12688     gt_use_preinstalled_gnugettext=no
12689
12690       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12691 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12692
12693 # Check whether --with-included-gettext was given.
12694 if test "${with_included_gettext+set}" = set; then
12695   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12696 else
12697   nls_cv_force_use_gnu_gettext=no
12698 fi
12699
12700       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12701 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12702
12703       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12704       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12705
12706
12707
12708
12709
12710
12711         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12712 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12713 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12714   echo $ECHO_N "(cached) $ECHO_C" >&6
12715 else
12716   cat >conftest.$ac_ext <<_ACEOF
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722 #include <libintl.h>
12723 extern int _nl_msg_cat_cntr;
12724 extern int *_nl_domain_bindings;
12725 int
12726 main ()
12727 {
12728 bindtextdomain ("", "");
12729 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12730   ;
12731   return 0;
12732 }
12733 _ACEOF
12734 rm -f conftest.$ac_objext conftest$ac_exeext
12735 if { (ac_try="$ac_link"
12736 case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_link") 2>conftest.er1
12742   ac_status=$?
12743   grep -v '^ *+' conftest.er1 >conftest.err
12744   rm -f conftest.er1
12745   cat conftest.err >&5
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } && {
12748          test -z "$ac_c_werror_flag" ||
12749          test ! -s conftest.err
12750        } && test -s conftest$ac_exeext &&
12751        $as_test_x conftest$ac_exeext; then
12752   gt_cv_func_gnugettext1_libc=yes
12753 else
12754   echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12756
12757         gt_cv_func_gnugettext1_libc=no
12758 fi
12759
12760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12761       conftest$ac_exeext conftest.$ac_ext
12762 fi
12763 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12764 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12765
12766         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12767
12768
12769
12770     use_additional=yes
12771
12772   acl_save_prefix="$prefix"
12773   prefix="$acl_final_prefix"
12774   acl_save_exec_prefix="$exec_prefix"
12775   exec_prefix="$acl_final_exec_prefix"
12776
12777     eval additional_includedir=\"$includedir\"
12778     eval additional_libdir=\"$libdir\"
12779
12780   exec_prefix="$acl_save_exec_prefix"
12781   prefix="$acl_save_prefix"
12782
12783
12784 # Check whether --with-libintl-prefix was given.
12785 if test "${with_libintl_prefix+set}" = set; then
12786   withval=$with_libintl_prefix;
12787     if test "X$withval" = "Xno"; then
12788       use_additional=no
12789     else
12790       if test "X$withval" = "X"; then
12791
12792   acl_save_prefix="$prefix"
12793   prefix="$acl_final_prefix"
12794   acl_save_exec_prefix="$exec_prefix"
12795   exec_prefix="$acl_final_exec_prefix"
12796
12797           eval additional_includedir=\"$includedir\"
12798           eval additional_libdir=\"$libdir\"
12799
12800   exec_prefix="$acl_save_exec_prefix"
12801   prefix="$acl_save_prefix"
12802
12803       else
12804         additional_includedir="$withval/include"
12805         additional_libdir="$withval/lib"
12806       fi
12807     fi
12808
12809 fi
12810
12811       LIBINTL=
12812   LTLIBINTL=
12813   INCINTL=
12814   rpathdirs=
12815   ltrpathdirs=
12816   names_already_handled=
12817   names_next_round='intl '
12818   while test -n "$names_next_round"; do
12819     names_this_round="$names_next_round"
12820     names_next_round=
12821     for name in $names_this_round; do
12822       already_handled=
12823       for n in $names_already_handled; do
12824         if test "$n" = "$name"; then
12825           already_handled=yes
12826           break
12827         fi
12828       done
12829       if test -z "$already_handled"; then
12830         names_already_handled="$names_already_handled $name"
12831                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12832         eval value=\"\$HAVE_LIB$uppername\"
12833         if test -n "$value"; then
12834           if test "$value" = yes; then
12835             eval value=\"\$LIB$uppername\"
12836             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12837             eval value=\"\$LTLIB$uppername\"
12838             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12839           else
12840                                     :
12841           fi
12842         else
12843                               found_dir=
12844           found_la=
12845           found_so=
12846           found_a=
12847           if test $use_additional = yes; then
12848             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12849               found_dir="$additional_libdir"
12850               found_so="$additional_libdir/lib$name.$shlibext"
12851               if test -f "$additional_libdir/lib$name.la"; then
12852                 found_la="$additional_libdir/lib$name.la"
12853               fi
12854             else
12855               if test -f "$additional_libdir/lib$name.$libext"; then
12856                 found_dir="$additional_libdir"
12857                 found_a="$additional_libdir/lib$name.$libext"
12858                 if test -f "$additional_libdir/lib$name.la"; then
12859                   found_la="$additional_libdir/lib$name.la"
12860                 fi
12861               fi
12862             fi
12863           fi
12864           if test "X$found_dir" = "X"; then
12865             for x in $LDFLAGS $LTLIBINTL; do
12866
12867   acl_save_prefix="$prefix"
12868   prefix="$acl_final_prefix"
12869   acl_save_exec_prefix="$exec_prefix"
12870   exec_prefix="$acl_final_exec_prefix"
12871   eval x=\"$x\"
12872   exec_prefix="$acl_save_exec_prefix"
12873   prefix="$acl_save_prefix"
12874
12875               case "$x" in
12876                 -L*)
12877                   dir=`echo "X$x" | sed -e 's/^X-L//'`
12878                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12879                     found_dir="$dir"
12880                     found_so="$dir/lib$name.$shlibext"
12881                     if test -f "$dir/lib$name.la"; then
12882                       found_la="$dir/lib$name.la"
12883                     fi
12884                   else
12885                     if test -f "$dir/lib$name.$libext"; then
12886                       found_dir="$dir"
12887                       found_a="$dir/lib$name.$libext"
12888                       if test -f "$dir/lib$name.la"; then
12889                         found_la="$dir/lib$name.la"
12890                       fi
12891                     fi
12892                   fi
12893                   ;;
12894               esac
12895               if test "X$found_dir" != "X"; then
12896                 break
12897               fi
12898             done
12899           fi
12900           if test "X$found_dir" != "X"; then
12901                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12902             if test "X$found_so" != "X"; then
12903                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12904                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12905               else
12906                                                                                 haveit=
12907                 for x in $ltrpathdirs; do
12908                   if test "X$x" = "X$found_dir"; then
12909                     haveit=yes
12910                     break
12911                   fi
12912                 done
12913                 if test -z "$haveit"; then
12914                   ltrpathdirs="$ltrpathdirs $found_dir"
12915                 fi
12916                                 if test "$hardcode_direct" = yes; then
12917                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12918                 else
12919                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12920                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12921                                                             haveit=
12922                     for x in $rpathdirs; do
12923                       if test "X$x" = "X$found_dir"; then
12924                         haveit=yes
12925                         break
12926                       fi
12927                     done
12928                     if test -z "$haveit"; then
12929                       rpathdirs="$rpathdirs $found_dir"
12930                     fi
12931                   else
12932                                                                                 haveit=
12933                     for x in $LDFLAGS $LIBINTL; do
12934
12935   acl_save_prefix="$prefix"
12936   prefix="$acl_final_prefix"
12937   acl_save_exec_prefix="$exec_prefix"
12938   exec_prefix="$acl_final_exec_prefix"
12939   eval x=\"$x\"
12940   exec_prefix="$acl_save_exec_prefix"
12941   prefix="$acl_save_prefix"
12942
12943                       if test "X$x" = "X-L$found_dir"; then
12944                         haveit=yes
12945                         break
12946                       fi
12947                     done
12948                     if test -z "$haveit"; then
12949                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12950                     fi
12951                     if test "$hardcode_minus_L" != no; then
12952                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12953                     else
12954                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12955                     fi
12956                   fi
12957                 fi
12958               fi
12959             else
12960               if test "X$found_a" != "X"; then
12961                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12962               else
12963                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12964               fi
12965             fi
12966                         additional_includedir=
12967             case "$found_dir" in
12968               */lib | */lib/)
12969                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12970                 additional_includedir="$basedir/include"
12971                 ;;
12972             esac
12973             if test "X$additional_includedir" != "X"; then
12974                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
12975                 haveit=
12976                 if test "X$additional_includedir" = "X/usr/local/include"; then
12977                   if test -n "$GCC"; then
12978                     case $host_os in
12979                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12980                     esac
12981                   fi
12982                 fi
12983                 if test -z "$haveit"; then
12984                   for x in $CPPFLAGS $INCINTL; do
12985
12986   acl_save_prefix="$prefix"
12987   prefix="$acl_final_prefix"
12988   acl_save_exec_prefix="$exec_prefix"
12989   exec_prefix="$acl_final_exec_prefix"
12990   eval x=\"$x\"
12991   exec_prefix="$acl_save_exec_prefix"
12992   prefix="$acl_save_prefix"
12993
12994                     if test "X$x" = "X-I$additional_includedir"; then
12995                       haveit=yes
12996                       break
12997                     fi
12998                   done
12999                   if test -z "$haveit"; then
13000                     if test -d "$additional_includedir"; then
13001                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13002                     fi
13003                   fi
13004                 fi
13005               fi
13006             fi
13007                         if test -n "$found_la"; then
13008                                                         save_libdir="$libdir"
13009               case "$found_la" in
13010                 */* | *\\*) . "$found_la" ;;
13011                 *) . "./$found_la" ;;
13012               esac
13013               libdir="$save_libdir"
13014                             for dep in $dependency_libs; do
13015                 case "$dep" in
13016                   -L*)
13017                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13018                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
13019                       haveit=
13020                       if test "X$additional_libdir" = "X/usr/local/lib"; then
13021                         if test -n "$GCC"; then
13022                           case $host_os in
13023                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13024                           esac
13025                         fi
13026                       fi
13027                       if test -z "$haveit"; then
13028                         haveit=
13029                         for x in $LDFLAGS $LIBINTL; do
13030
13031   acl_save_prefix="$prefix"
13032   prefix="$acl_final_prefix"
13033   acl_save_exec_prefix="$exec_prefix"
13034   exec_prefix="$acl_final_exec_prefix"
13035   eval x=\"$x\"
13036   exec_prefix="$acl_save_exec_prefix"
13037   prefix="$acl_save_prefix"
13038
13039                           if test "X$x" = "X-L$additional_libdir"; then
13040                             haveit=yes
13041                             break
13042                           fi
13043                         done
13044                         if test -z "$haveit"; then
13045                           if test -d "$additional_libdir"; then
13046                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13047                           fi
13048                         fi
13049                         haveit=
13050                         for x in $LDFLAGS $LTLIBINTL; do
13051
13052   acl_save_prefix="$prefix"
13053   prefix="$acl_final_prefix"
13054   acl_save_exec_prefix="$exec_prefix"
13055   exec_prefix="$acl_final_exec_prefix"
13056   eval x=\"$x\"
13057   exec_prefix="$acl_save_exec_prefix"
13058   prefix="$acl_save_prefix"
13059
13060                           if test "X$x" = "X-L$additional_libdir"; then
13061                             haveit=yes
13062                             break
13063                           fi
13064                         done
13065                         if test -z "$haveit"; then
13066                           if test -d "$additional_libdir"; then
13067                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13068                           fi
13069                         fi
13070                       fi
13071                     fi
13072                     ;;
13073                   -R*)
13074                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13075                     if test "$enable_rpath" != no; then
13076                                                                   haveit=
13077                       for x in $rpathdirs; do
13078                         if test "X$x" = "X$dir"; then
13079                           haveit=yes
13080                           break
13081                         fi
13082                       done
13083                       if test -z "$haveit"; then
13084                         rpathdirs="$rpathdirs $dir"
13085                       fi
13086                                                                   haveit=
13087                       for x in $ltrpathdirs; do
13088                         if test "X$x" = "X$dir"; then
13089                           haveit=yes
13090                           break
13091                         fi
13092                       done
13093                       if test -z "$haveit"; then
13094                         ltrpathdirs="$ltrpathdirs $dir"
13095                       fi
13096                     fi
13097                     ;;
13098                   -l*)
13099                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13100                     ;;
13101                   *.la)
13102                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13103                     ;;
13104                   *)
13105                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13106                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13107                     ;;
13108                 esac
13109               done
13110             fi
13111           else
13112                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13113             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13114           fi
13115         fi
13116       fi
13117     done
13118   done
13119   if test "X$rpathdirs" != "X"; then
13120     if test -n "$hardcode_libdir_separator"; then
13121                         alldirs=
13122       for found_dir in $rpathdirs; do
13123         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13124       done
13125             acl_save_libdir="$libdir"
13126       libdir="$alldirs"
13127       eval flag=\"$hardcode_libdir_flag_spec\"
13128       libdir="$acl_save_libdir"
13129       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13130     else
13131             for found_dir in $rpathdirs; do
13132         acl_save_libdir="$libdir"
13133         libdir="$found_dir"
13134         eval flag=\"$hardcode_libdir_flag_spec\"
13135         libdir="$acl_save_libdir"
13136         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13137       done
13138     fi
13139   fi
13140   if test "X$ltrpathdirs" != "X"; then
13141             for found_dir in $ltrpathdirs; do
13142       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13143     done
13144   fi
13145
13146           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13147 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13148 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13149   echo $ECHO_N "(cached) $ECHO_C" >&6
13150 else
13151   gt_save_CPPFLAGS="$CPPFLAGS"
13152             CPPFLAGS="$CPPFLAGS $INCINTL"
13153             gt_save_LIBS="$LIBS"
13154             LIBS="$LIBS $LIBINTL"
13155                         cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161 #include <libintl.h>
13162 extern int _nl_msg_cat_cntr;
13163 extern
13164 #ifdef __cplusplus
13165 "C"
13166 #endif
13167 const char *_nl_expand_alias (const char *);
13168 int
13169 main ()
13170 {
13171 bindtextdomain ("", "");
13172 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13173   ;
13174   return 0;
13175 }
13176 _ACEOF
13177 rm -f conftest.$ac_objext conftest$ac_exeext
13178 if { (ac_try="$ac_link"
13179 case "(($ac_try" in
13180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13181   *) ac_try_echo=$ac_try;;
13182 esac
13183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13184   (eval "$ac_link") 2>conftest.er1
13185   ac_status=$?
13186   grep -v '^ *+' conftest.er1 >conftest.err
13187   rm -f conftest.er1
13188   cat conftest.err >&5
13189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190   (exit $ac_status); } && {
13191          test -z "$ac_c_werror_flag" ||
13192          test ! -s conftest.err
13193        } && test -s conftest$ac_exeext &&
13194        $as_test_x conftest$ac_exeext; then
13195   gt_cv_func_gnugettext1_libintl=yes
13196 else
13197   echo "$as_me: failed program was:" >&5
13198 sed 's/^/| /' conftest.$ac_ext >&5
13199
13200         gt_cv_func_gnugettext1_libintl=no
13201 fi
13202
13203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13204       conftest$ac_exeext conftest.$ac_ext
13205                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13206               LIBS="$LIBS $LIBICONV"
13207               cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h.  */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h.  */
13213 #include <libintl.h>
13214 extern int _nl_msg_cat_cntr;
13215 extern
13216 #ifdef __cplusplus
13217 "C"
13218 #endif
13219 const char *_nl_expand_alias (const char *);
13220 int
13221 main ()
13222 {
13223 bindtextdomain ("", "");
13224 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 rm -f conftest.$ac_objext conftest$ac_exeext
13230 if { (ac_try="$ac_link"
13231 case "(($ac_try" in
13232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233   *) ac_try_echo=$ac_try;;
13234 esac
13235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13236   (eval "$ac_link") 2>conftest.er1
13237   ac_status=$?
13238   grep -v '^ *+' conftest.er1 >conftest.err
13239   rm -f conftest.er1
13240   cat conftest.err >&5
13241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242   (exit $ac_status); } && {
13243          test -z "$ac_c_werror_flag" ||
13244          test ! -s conftest.err
13245        } && test -s conftest$ac_exeext &&
13246        $as_test_x conftest$ac_exeext; then
13247   LIBINTL="$LIBINTL $LIBICONV"
13248                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13249                 gt_cv_func_gnugettext1_libintl=yes
13250
13251 else
13252   echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13254
13255
13256 fi
13257
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259       conftest$ac_exeext conftest.$ac_ext
13260             fi
13261             CPPFLAGS="$gt_save_CPPFLAGS"
13262             LIBS="$gt_save_LIBS"
13263 fi
13264 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13265 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13266         fi
13267
13268                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13269            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13270                 && test "$PACKAGE" != gettext-runtime \
13271                 && test "$PACKAGE" != gettext-tools; }; then
13272           gt_use_preinstalled_gnugettext=yes
13273         else
13274                     LIBINTL=
13275           LTLIBINTL=
13276           INCINTL=
13277         fi
13278
13279
13280         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13281                               nls_cv_use_gnu_gettext=yes
13282         fi
13283       fi
13284
13285       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13286                 BUILD_INCLUDED_LIBINTL=yes
13287         USE_INCLUDED_LIBINTL=yes
13288         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13289         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13290         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13291       fi
13292
13293       CATOBJEXT=
13294       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13295          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13296                 CATOBJEXT=.gmo
13297       fi
13298
13299
13300     if test -n "$INTL_MACOSX_LIBS"; then
13301       if test "$gt_use_preinstalled_gnugettext" = "yes" \
13302          || test "$nls_cv_use_gnu_gettext" = "yes"; then
13303                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13304         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13305       fi
13306     fi
13307
13308     if test "$gt_use_preinstalled_gnugettext" = "yes" \
13309        || test "$nls_cv_use_gnu_gettext" = "yes"; then
13310
13311 cat >>confdefs.h <<\_ACEOF
13312 #define ENABLE_NLS 1
13313 _ACEOF
13314
13315     else
13316       USE_NLS=no
13317     fi
13318   fi
13319
13320   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13321 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13322   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13323 echo "${ECHO_T}$USE_NLS" >&6; }
13324   if test "$USE_NLS" = "yes"; then
13325     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13326 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13327     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13328       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13329         gt_source="external libintl"
13330       else
13331         gt_source="libc"
13332       fi
13333     else
13334       gt_source="included intl directory"
13335     fi
13336     { echo "$as_me:$LINENO: result: $gt_source" >&5
13337 echo "${ECHO_T}$gt_source" >&6; }
13338   fi
13339
13340   if test "$USE_NLS" = "yes"; then
13341
13342     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13343       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13344         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13345 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13346         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13347 echo "${ECHO_T}$LIBINTL" >&6; }
13348
13349   for element in $INCINTL; do
13350     haveit=
13351     for x in $CPPFLAGS; do
13352
13353   acl_save_prefix="$prefix"
13354   prefix="$acl_final_prefix"
13355   acl_save_exec_prefix="$exec_prefix"
13356   exec_prefix="$acl_final_exec_prefix"
13357   eval x=\"$x\"
13358   exec_prefix="$acl_save_exec_prefix"
13359   prefix="$acl_save_prefix"
13360
13361       if test "X$x" = "X$element"; then
13362         haveit=yes
13363         break
13364       fi
13365     done
13366     if test -z "$haveit"; then
13367       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13368     fi
13369   done
13370
13371       fi
13372
13373
13374 cat >>confdefs.h <<\_ACEOF
13375 #define HAVE_GETTEXT 1
13376 _ACEOF
13377
13378
13379 cat >>confdefs.h <<\_ACEOF
13380 #define HAVE_DCGETTEXT 1
13381 _ACEOF
13382
13383     fi
13384
13385         POSUB=po
13386   fi
13387
13388
13389             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13390       BUILD_INCLUDED_LIBINTL=yes
13391     fi
13392
13393
13394
13395
13396
13397         nls_cv_header_intl=
13398     nls_cv_header_libgt=
13399
13400         DATADIRNAME=share
13401
13402
13403         INSTOBJEXT=.mo
13404
13405
13406         GENCAT=gencat
13407
13408
13409         INTLOBJS=
13410     if test "$USE_INCLUDED_LIBINTL" = yes; then
13411       INTLOBJS="\$(GETTOBJS)"
13412     fi
13413
13414
13415         INTL_LIBTOOL_SUFFIX_PREFIX=
13416
13417
13418
13419     INTLLIBS="$LIBINTL"
13420
13421
13422
13423
13424
13425
13426 fi
13427
13428
13429 support_mysql=no
13430 support_sqlite=no
13431 support_sqlite3=no
13432 support_postgresql=no
13433 support_dbi=no
13434 support_smartalloc=yes
13435 support_readline=yes
13436 support_conio=yes
13437 support_gnome=no
13438 support_bat=no
13439 support_wx_console=no
13440 support_tls=no
13441 support_crypto=no
13442 gnome_version=
13443 wx_version=
13444 support_static_tools=no
13445 support_static_fd=no
13446 support_static_sd=no
13447 support_static_dir=no
13448 support_static_cons=no
13449 support_python=no
13450 build_client_only=no
13451 build_dird=yes
13452 build_stored=yes
13453 cats=
13454 db_type=Internal
13455 DB_TYPE=bdb
13456
13457
13458 # -------------------------------------------
13459 # gnome (default off)
13460 # -------------------------------------------
13461 # Check whether --enable-gnome was given.
13462 if test "${enable_gnome+set}" = set; then
13463   enableval=$enable_gnome; if test x$enableval = xyes; then
13464     support_gnome=yes
13465   fi
13466 fi
13467
13468
13469 GNOME_DIR=
13470 if test x$support_gnome = xyes; then
13471   abc=`$PKGCONFIG --exists libgnomeui-2.0`
13472   pkg=$?
13473   if test $pkg = 0; then
13474      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13475      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13476      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13477      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13478
13479
13480
13481
13482      GNOME_DIR=src/gnome2-console
13483      gnome_version="Version 2.x"
13484   else
13485      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13486 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13487    { (exit 1); exit 1; }; }
13488   fi
13489 fi
13490
13491
13492 # -------------------------------------------
13493 # bat (default off)
13494 # -------------------------------------------
13495 # Check whether --enable-bat was given.
13496 if test "${enable_bat+set}" = set; then
13497   enableval=$enable_bat; if test x$enableval = xyes; then
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define HAVE_BAT 1
13501 _ACEOF
13502
13503     support_bat=yes
13504   fi
13505 fi
13506
13507
13508 BAT_DIR=
13509 if test x$support_bat = xyes; then
13510   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13511   pkg=$?
13512   if test $pkg = 0; then
13513      BAT_DIR=src/qt-console
13514   else
13515      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13516 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13517    { (exit 1); exit 1; }; }
13518   fi
13519 fi
13520
13521 #
13522 #  If bat is enabled, we need the qwt library
13523 got_qwt=no
13524 QWT_INC=
13525 QWT_LDFLAGS=
13526 if test x$support_bat = xyes; then
13527    { echo "$as_me:$LINENO: checking for qwt support" >&5
13528 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13529
13530 # Check whether --with-qwt was given.
13531 if test "${with_qwt+set}" = set; then
13532   withval=$with_qwt;
13533         case "$with_qwt" in
13534         no)
13535           ;;
13536         yes|*)
13537           if test -f ${with_qwt}/include/qwt.h; then
13538              QWT_INC="${with_qwt}/include"
13539              QWT_LDFLAGS="-L${with_qwt}/lib"
13540           fi
13541           ;;
13542         esac
13543
13544
13545 fi
13546
13547 #
13548 # Search in standard places, or --with-qwt not specified
13549 #
13550    if test x$QWT_INC = x; then
13551       for root in /usr /usr/local; do
13552          for ver in qwt qwt5 qwt-qt4; do
13553             if test -f ${root}/include/${ver}/qwt.h; then
13554                QWT_INC="${root}/include/${ver}"
13555                if test -d ${root}/lib64/; then
13556                   QWT_LDFLAGS="-L${root}/lib64"
13557                else
13558                   QWT_LDFLAGS="-L${root}/lib"
13559                fi
13560                got_qwt=yes
13561                break;
13562             fi
13563          done
13564       done
13565    fi
13566    if test x$QWT_INC = x; then
13567       { echo "$as_me:$LINENO: result: no" >&5
13568 echo "${ECHO_T}no" >&6; }
13569       { { echo "$as_me:$LINENO: error: Unable to find qwt package needed by bat" >&5
13570 echo "$as_me: error: Unable to find qwt package needed by bat" >&2;}
13571    { (exit 1); exit 1; }; }
13572       BAT_DIR=
13573       support_bat=no
13574    else
13575       { echo "$as_me:$LINENO: result: yes" >&5
13576 echo "${ECHO_T}yes" >&6; }
13577    fi
13578 fi
13579
13580
13581
13582
13583
13584
13585 # -------------------------------------------
13586 # bwx-console (default off)
13587 # -------------------------------------------
13588 # Check whether --enable-bwx-console was given.
13589 if test "${enable_bwx_console+set}" = set; then
13590   enableval=$enable_bwx_console; if test x$enableval = xyes; then
13591     support_wx_console=yes
13592   fi
13593 fi
13594
13595
13596 WX_DIR=
13597 if test x$support_wx_console = xyes; then
13598   abc=`$WXCONFIG $WXFLAGS --cppflags`
13599   pkg=$?
13600   if test $pkg = 0; then
13601      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13602      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13603      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13604
13605
13606
13607      WX_DIR=src/wx-console
13608   else
13609      echo " "
13610      echo "wx-config program not found. bwx-console disabled."
13611      echo " "
13612      support_wx_console=no
13613   fi
13614 fi
13615
13616
13617
13618 # -------------------------------------------
13619 # tray-monitor (default off)
13620 # -------------------------------------------
13621 # Check whether --enable-tray-monitor was given.
13622 if test "${enable_tray_monitor+set}" = set; then
13623   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13624     support_tray_monitor=yes
13625   fi
13626 fi
13627
13628
13629 TRAY_MONITOR_DIR=
13630 if test x$support_tray_monitor = xyes; then
13631   abc=`$PKGCONFIG --exists gtk+-2.0`
13632   pkg=$?
13633   if test $pkg = 0; then
13634      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13635      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13636
13637
13638      TRAY_MONITOR_DIR=src/tray-monitor
13639      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13640      pkg=$?
13641      if test $pkg = 0; then
13642
13643 cat >>confdefs.h <<\_ACEOF
13644 #define HAVE_GTK_2_4 1
13645 _ACEOF
13646
13647      fi
13648   fi
13649 fi
13650
13651
13652 # -------------------------------------------
13653 # smartalloc (default off)
13654 # -------------------------------------------
13655 # Check whether --enable-smartalloc was given.
13656 if test "${enable_smartalloc+set}" = set; then
13657   enableval=$enable_smartalloc; if test x$enableval = xno; then
13658     support_smartalloc=no
13659   fi
13660 fi
13661
13662
13663 if test x$support_smartalloc = xyes; then
13664
13665 cat >>confdefs.h <<\_ACEOF
13666 #define SMARTALLOC 1
13667 _ACEOF
13668
13669 fi
13670
13671 # -------------------------------------------
13672 # static-tools (default off)
13673 # -------------------------------------------
13674 # Check whether --enable-static-tools was given.
13675 if test "${enable_static_tools+set}" = set; then
13676   enableval=$enable_static_tools; if test x$enableval = xyes; then
13677      support_static_tools=yes
13678    fi
13679 fi
13680
13681
13682 TTOOL_LDFLAGS=
13683 if test x$support_static_tools = xyes; then
13684    TTOOL_LDFLAGS="-static"
13685 fi
13686
13687
13688 # -------------------------------------------
13689 # static-fd    (default off)
13690 # -------------------------------------------
13691 # Check whether --enable-static-fd was given.
13692 if test "${enable_static_fd+set}" = set; then
13693   enableval=$enable_static_fd; if test x$enableval = xyes; then
13694      support_static_fd=yes
13695    fi
13696 fi
13697
13698
13699 STATIC_FD=
13700 if test x$support_static_fd = xyes; then
13701    STATIC_FD="static-bacula-fd"
13702 fi
13703
13704
13705 # -------------------------------------------
13706 # static-sd    (default off)
13707 # -------------------------------------------
13708 # Check whether --enable-static-sd was given.
13709 if test "${enable_static_sd+set}" = set; then
13710   enableval=$enable_static_sd; if test x$enableval = xyes; then
13711      support_static_sd=yes
13712    fi
13713 fi
13714
13715
13716 STATIC_SD=
13717 if test x$support_static_sd = xyes; then
13718    STATIC_SD="static-bacula-sd"
13719 fi
13720
13721
13722 # -------------------------------------------
13723 # static-dir   (default off)
13724 # -------------------------------------------
13725 # Check whether --enable-static-dir was given.
13726 if test "${enable_static_dir+set}" = set; then
13727   enableval=$enable_static_dir; if test x$enableval = xyes; then
13728      support_static_dir=yes
13729    fi
13730 fi
13731
13732
13733 STATIC_DIR=
13734 if test x$support_static_dir = xyes; then
13735    STATIC_DIR="static-bacula-dir"
13736 fi
13737
13738
13739 # -------------------------------------------
13740 # static-cons  (default off)
13741 # -------------------------------------------
13742 # Check whether --enable-static-cons was given.
13743 if test "${enable_static_cons+set}" = set; then
13744   enableval=$enable_static_cons; if test x$enableval = xyes; then
13745      support_static_cons=yes
13746    fi
13747 fi
13748
13749
13750 STATIC_CONS=
13751 STATIC_GNOME_CONS=
13752 STATIC_WX_CONS=
13753 if test x$support_static_cons = xyes; then
13754    STATIC_CONS="static-bconsole"
13755    STATIC_GNOME_CONS="static-bgnome-console"
13756    STATIC_WX_CONS="static-bwx-console"
13757 fi
13758
13759
13760
13761
13762 # -------------------------------------------
13763 # client_only  (default off)
13764 # -------------------------------------------
13765 # Check whether --enable-client-only was given.
13766 if test "${enable_client_only+set}" = set; then
13767   enableval=$enable_client_only; if test x$enableval = xyes; then
13768       build_client_only=yes
13769       db_type=None
13770       DB_TYPE=none
13771    fi
13772 fi
13773
13774 if test x$build_client_only = xno; then
13775    ALL_DIRS="subdirs"
13776 else
13777    ALL_DIRS=""
13778 fi
13779
13780
13781 # -------------------------------------------
13782 # director  (default on)
13783 # -------------------------------------------
13784 # Check whether --enable-build-dird was given.
13785 if test "${enable_build_dird+set}" = set; then
13786   enableval=$enable_build_dird; if test x$enableval = xno; then
13787       build_dird=no
13788    fi
13789 fi
13790
13791 if test x$build_dird = xyes; then
13792    DIRD_DIR="src/dird"
13793    DIR_TOOLS="DIRTOOLS"
13794 else
13795    DIRD_DIR=""
13796    DIR_TOOLS="NODIRTOOLS"
13797 fi
13798
13799
13800
13801 # -------------------------------------------
13802 # stored  (default on)
13803 # -------------------------------------------
13804 # Check whether --enable-build-stored was given.
13805 if test "${enable_build_stored+set}" = set; then
13806   enableval=$enable_build_stored; if test x$enableval = xno; then
13807       build_stored=no
13808    fi
13809 fi
13810
13811 if test x$build_stored = xyes; then
13812    STORED_DIR="src/stored"
13813 else
13814    STORED_DIR=""
13815 fi
13816
13817
13818 # ---------------------------------------------------
13819 # Check for conio (Bacula readline substitute)(
13820 # ---------------------------------------------------
13821 # this allows you to turn it completely off
13822 # Check whether --enable-conio was given.
13823 if test "${enable_conio+set}" = set; then
13824   enableval=$enable_conio; if test x$enableval = xno; then
13825      support_conio=no
13826   fi
13827
13828 fi
13829
13830
13831
13832 # ---------------------------------------------------
13833 # Check for IPv6 support
13834 # ---------------------------------------------------
13835 # this allows you to turn it completely off
13836 support_ipv6=yes
13837 # Check whether --enable-ipv6 was given.
13838 if test "${enable_ipv6+set}" = set; then
13839   enableval=$enable_ipv6; if test x$enableval = xno; then
13840      support_ipv6=no
13841   fi
13842
13843 fi
13844
13845
13846 if test x$support_ipv6 = xyes; then
13847     cat >conftest.$ac_ext <<_ACEOF
13848 /* confdefs.h.  */
13849 _ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h.  */
13853  #include <sys/types.h>
13854 #include <sys/socket.h>
13855 #include <netinet/in.h>
13856 int
13857 main ()
13858 {
13859 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13860   ;
13861   return 0;
13862 }
13863 _ACEOF
13864 rm -f conftest.$ac_objext conftest$ac_exeext
13865 if { (ac_try="$ac_link"
13866 case "(($ac_try" in
13867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13868   *) ac_try_echo=$ac_try;;
13869 esac
13870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13871   (eval "$ac_link") 2>conftest.er1
13872   ac_status=$?
13873   grep -v '^ *+' conftest.er1 >conftest.err
13874   rm -f conftest.er1
13875   cat conftest.err >&5
13876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877   (exit $ac_status); } && {
13878          test -z "$ac_c_werror_flag" ||
13879          test ! -s conftest.err
13880        } && test -s conftest$ac_exeext &&
13881        $as_test_x conftest$ac_exeext; then
13882   support_ipv6=yes
13883 else
13884   echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13886
13887         support_ipv6=no
13888 fi
13889
13890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13891       conftest$ac_exeext conftest.$ac_ext
13892 fi
13893
13894 if test x$support_ipv6 = xyes; then
13895
13896 cat >>confdefs.h <<\_ACEOF
13897 #define HAVE_IPV6 1
13898 _ACEOF
13899
13900 fi
13901
13902
13903
13904 got_conio="no"
13905 if test x$support_conio = xyes; then
13906    if test "${ac_cv_header_termcap_h+set}" = set; then
13907   { echo "$as_me:$LINENO: checking for termcap.h" >&5
13908 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13909 if test "${ac_cv_header_termcap_h+set}" = set; then
13910   echo $ECHO_N "(cached) $ECHO_C" >&6
13911 fi
13912 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13913 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13914 else
13915   # Is the header compilable?
13916 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13917 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13918 cat >conftest.$ac_ext <<_ACEOF
13919 /* confdefs.h.  */
13920 _ACEOF
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h.  */
13924 $ac_includes_default
13925 #include <termcap.h>
13926 _ACEOF
13927 rm -f conftest.$ac_objext
13928 if { (ac_try="$ac_compile"
13929 case "(($ac_try" in
13930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931   *) ac_try_echo=$ac_try;;
13932 esac
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934   (eval "$ac_compile") 2>conftest.er1
13935   ac_status=$?
13936   grep -v '^ *+' conftest.er1 >conftest.err
13937   rm -f conftest.er1
13938   cat conftest.err >&5
13939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940   (exit $ac_status); } && {
13941          test -z "$ac_c_werror_flag" ||
13942          test ! -s conftest.err
13943        } && test -s conftest.$ac_objext; then
13944   ac_header_compiler=yes
13945 else
13946   echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949         ac_header_compiler=no
13950 fi
13951
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13953 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13954 echo "${ECHO_T}$ac_header_compiler" >&6; }
13955
13956 # Is the header present?
13957 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13958 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13959 cat >conftest.$ac_ext <<_ACEOF
13960 /* confdefs.h.  */
13961 _ACEOF
13962 cat confdefs.h >>conftest.$ac_ext
13963 cat >>conftest.$ac_ext <<_ACEOF
13964 /* end confdefs.h.  */
13965 #include <termcap.h>
13966 _ACEOF
13967 if { (ac_try="$ac_cpp conftest.$ac_ext"
13968 case "(($ac_try" in
13969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970   *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13974   ac_status=$?
13975   grep -v '^ *+' conftest.er1 >conftest.err
13976   rm -f conftest.er1
13977   cat conftest.err >&5
13978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979   (exit $ac_status); } >/dev/null && {
13980          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13981          test ! -s conftest.err
13982        }; then
13983   ac_header_preproc=yes
13984 else
13985   echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988   ac_header_preproc=no
13989 fi
13990
13991 rm -f conftest.err conftest.$ac_ext
13992 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13993 echo "${ECHO_T}$ac_header_preproc" >&6; }
13994
13995 # So?  What about this header?
13996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13997   yes:no: )
13998     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13999 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14000     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14001 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14002     ac_header_preproc=yes
14003     ;;
14004   no:yes:* )
14005     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14006 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14007     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
14008 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
14009     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14010 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14011     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
14012 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14013     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14014 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14015     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14016 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14017
14018     ;;
14019 esac
14020 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14021 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_termcap_h+set}" = set; then
14023   echo $ECHO_N "(cached) $ECHO_C" >&6
14024 else
14025   ac_cv_header_termcap_h=$ac_header_preproc
14026 fi
14027 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14028 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14029
14030 fi
14031 if test $ac_cv_header_termcap_h = yes; then
14032    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14033 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14034 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14035   echo $ECHO_N "(cached) $ECHO_C" >&6
14036 else
14037   ac_check_lib_save_LIBS=$LIBS
14038 LIBS="-ltermcap  $LIBS"
14039 cat >conftest.$ac_ext <<_ACEOF
14040 /* confdefs.h.  */
14041 _ACEOF
14042 cat confdefs.h >>conftest.$ac_ext
14043 cat >>conftest.$ac_ext <<_ACEOF
14044 /* end confdefs.h.  */
14045
14046 /* Override any GCC internal prototype to avoid an error.
14047    Use char because int might match the return type of a GCC
14048    builtin and then its argument prototype would still apply.  */
14049 #ifdef __cplusplus
14050 extern "C"
14051 #endif
14052 char tgetent ();
14053 int
14054 main ()
14055 {
14056 return tgetent ();
14057   ;
14058   return 0;
14059 }
14060 _ACEOF
14061 rm -f conftest.$ac_objext conftest$ac_exeext
14062 if { (ac_try="$ac_link"
14063 case "(($ac_try" in
14064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065   *) ac_try_echo=$ac_try;;
14066 esac
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068   (eval "$ac_link") 2>conftest.er1
14069   ac_status=$?
14070   grep -v '^ *+' conftest.er1 >conftest.err
14071   rm -f conftest.er1
14072   cat conftest.err >&5
14073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074   (exit $ac_status); } && {
14075          test -z "$ac_c_werror_flag" ||
14076          test ! -s conftest.err
14077        } && test -s conftest$ac_exeext &&
14078        $as_test_x conftest$ac_exeext; then
14079   ac_cv_lib_termcap_tgetent=yes
14080 else
14081   echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.$ac_ext >&5
14083
14084         ac_cv_lib_termcap_tgetent=no
14085 fi
14086
14087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14088       conftest$ac_exeext conftest.$ac_ext
14089 LIBS=$ac_check_lib_save_LIBS
14090 fi
14091 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14092 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14093 if test $ac_cv_lib_termcap_tgetent = yes; then
14094    CONS_LIBS="-ltermcap"
14095          CONS_OBJ="conio.o"
14096          CONS_SRC="conio.c"
14097          got_conio="yes"
14098          support_readline=no
14099
14100 cat >>confdefs.h <<\_ACEOF
14101 #define HAVE_CONIO 1
14102 _ACEOF
14103
14104
14105 else
14106    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14107 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14108 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14109   echo $ECHO_N "(cached) $ECHO_C" >&6
14110 else
14111   ac_check_lib_save_LIBS=$LIBS
14112 LIBS="-lncurses  $LIBS"
14113 cat >conftest.$ac_ext <<_ACEOF
14114 /* confdefs.h.  */
14115 _ACEOF
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h.  */
14119
14120 /* Override any GCC internal prototype to avoid an error.
14121    Use char because int might match the return type of a GCC
14122    builtin and then its argument prototype would still apply.  */
14123 #ifdef __cplusplus
14124 extern "C"
14125 #endif
14126 char tgetent ();
14127 int
14128 main ()
14129 {
14130 return tgetent ();
14131   ;
14132   return 0;
14133 }
14134 _ACEOF
14135 rm -f conftest.$ac_objext conftest$ac_exeext
14136 if { (ac_try="$ac_link"
14137 case "(($ac_try" in
14138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14139   *) ac_try_echo=$ac_try;;
14140 esac
14141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14142   (eval "$ac_link") 2>conftest.er1
14143   ac_status=$?
14144   grep -v '^ *+' conftest.er1 >conftest.err
14145   rm -f conftest.er1
14146   cat conftest.err >&5
14147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148   (exit $ac_status); } && {
14149          test -z "$ac_c_werror_flag" ||
14150          test ! -s conftest.err
14151        } && test -s conftest$ac_exeext &&
14152        $as_test_x conftest$ac_exeext; then
14153   ac_cv_lib_ncurses_tgetent=yes
14154 else
14155   echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14157
14158         ac_cv_lib_ncurses_tgetent=no
14159 fi
14160
14161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14162       conftest$ac_exeext conftest.$ac_ext
14163 LIBS=$ac_check_lib_save_LIBS
14164 fi
14165 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14166 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14167 if test $ac_cv_lib_ncurses_tgetent = yes; then
14168    CONS_LIBS="-lncurses"
14169            CONS_OBJ="conio.o"
14170            CONS_SRC="conio.c"
14171            got_conio="yes"
14172            support_readline=no
14173
14174 cat >>confdefs.h <<\_ACEOF
14175 #define HAVE_CONIO 1
14176 _ACEOF
14177
14178
14179 fi
14180
14181
14182 fi
14183
14184
14185 else
14186
14187
14188 for ac_header in curses.h
14189 do
14190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14192   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14195   echo $ECHO_N "(cached) $ECHO_C" >&6
14196 fi
14197 ac_res=`eval echo '${'$as_ac_Header'}'`
14198                { echo "$as_me:$LINENO: result: $ac_res" >&5
14199 echo "${ECHO_T}$ac_res" >&6; }
14200 else
14201   # Is the header compilable?
14202 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14204 cat >conftest.$ac_ext <<_ACEOF
14205 /* confdefs.h.  */
14206 _ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h.  */
14210 $ac_includes_default
14211 #include <$ac_header>
14212 _ACEOF
14213 rm -f conftest.$ac_objext
14214 if { (ac_try="$ac_compile"
14215 case "(($ac_try" in
14216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217   *) ac_try_echo=$ac_try;;
14218 esac
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220   (eval "$ac_compile") 2>conftest.er1
14221   ac_status=$?
14222   grep -v '^ *+' conftest.er1 >conftest.err
14223   rm -f conftest.er1
14224   cat conftest.err >&5
14225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226   (exit $ac_status); } && {
14227          test -z "$ac_c_werror_flag" ||
14228          test ! -s conftest.err
14229        } && test -s conftest.$ac_objext; then
14230   ac_header_compiler=yes
14231 else
14232   echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14234
14235         ac_header_compiler=no
14236 fi
14237
14238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14240 echo "${ECHO_T}$ac_header_compiler" >&6; }
14241
14242 # Is the header present?
14243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14245 cat >conftest.$ac_ext <<_ACEOF
14246 /* confdefs.h.  */
14247 _ACEOF
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h.  */
14251 #include <$ac_header>
14252 _ACEOF
14253 if { (ac_try="$ac_cpp conftest.$ac_ext"
14254 case "(($ac_try" in
14255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14256   *) ac_try_echo=$ac_try;;
14257 esac
14258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14260   ac_status=$?
14261   grep -v '^ *+' conftest.er1 >conftest.err
14262   rm -f conftest.er1
14263   cat conftest.err >&5
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); } >/dev/null && {
14266          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14267          test ! -s conftest.err
14268        }; then
14269   ac_header_preproc=yes
14270 else
14271   echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14273
14274   ac_header_preproc=no
14275 fi
14276
14277 rm -f conftest.err conftest.$ac_ext
14278 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14279 echo "${ECHO_T}$ac_header_preproc" >&6; }
14280
14281 # So?  What about this header?
14282 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14283   yes:no: )
14284     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14285 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14286     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14287 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14288     ac_header_preproc=yes
14289     ;;
14290   no:yes:* )
14291     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14292 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14293     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14294 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14295     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14296 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14297     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14298 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14299     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14300 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14301     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14302 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14303
14304     ;;
14305 esac
14306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14309   echo $ECHO_N "(cached) $ECHO_C" >&6
14310 else
14311   eval "$as_ac_Header=\$ac_header_preproc"
14312 fi
14313 ac_res=`eval echo '${'$as_ac_Header'}'`
14314                { echo "$as_me:$LINENO: result: $ac_res" >&5
14315 echo "${ECHO_T}$ac_res" >&6; }
14316
14317 fi
14318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14319   cat >>confdefs.h <<_ACEOF
14320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14321 _ACEOF
14322
14323 fi
14324
14325 done
14326
14327          { echo "$as_me:$LINENO: checking for term.h" >&5
14328 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14329 if test "${ac_cv_header_term_h+set}" = set; then
14330   echo $ECHO_N "(cached) $ECHO_C" >&6
14331 else
14332   cat >conftest.$ac_ext <<_ACEOF
14333 /* confdefs.h.  */
14334 _ACEOF
14335 cat confdefs.h >>conftest.$ac_ext
14336 cat >>conftest.$ac_ext <<_ACEOF
14337 /* end confdefs.h.  */
14338 #if HAVE_CURSES_H
14339 #include <curses.h>
14340 #endif
14341
14342
14343 #include <term.h>
14344 _ACEOF
14345 rm -f conftest.$ac_objext
14346 if { (ac_try="$ac_compile"
14347 case "(($ac_try" in
14348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14349   *) ac_try_echo=$ac_try;;
14350 esac
14351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14352   (eval "$ac_compile") 2>conftest.er1
14353   ac_status=$?
14354   grep -v '^ *+' conftest.er1 >conftest.err
14355   rm -f conftest.er1
14356   cat conftest.err >&5
14357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358   (exit $ac_status); } && {
14359          test -z "$ac_c_werror_flag" ||
14360          test ! -s conftest.err
14361        } && test -s conftest.$ac_objext; then
14362   ac_cv_header_term_h=yes
14363 else
14364   echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14366
14367         ac_cv_header_term_h=no
14368 fi
14369
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14371 fi
14372 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14373 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14374 if test $ac_cv_header_term_h = yes; then
14375    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14376 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14377 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   ac_check_lib_save_LIBS=$LIBS
14381 LIBS="-lcurses  $LIBS"
14382 cat >conftest.$ac_ext <<_ACEOF
14383 /* confdefs.h.  */
14384 _ACEOF
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h.  */
14388
14389 /* Override any GCC internal prototype to avoid an error.
14390    Use char because int might match the return type of a GCC
14391    builtin and then its argument prototype would still apply.  */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 char tgetent ();
14396 int
14397 main ()
14398 {
14399 return tgetent ();
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 rm -f conftest.$ac_objext conftest$ac_exeext
14405 if { (ac_try="$ac_link"
14406 case "(($ac_try" in
14407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408   *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411   (eval "$ac_link") 2>conftest.er1
14412   ac_status=$?
14413   grep -v '^ *+' conftest.er1 >conftest.err
14414   rm -f conftest.er1
14415   cat conftest.err >&5
14416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417   (exit $ac_status); } && {
14418          test -z "$ac_c_werror_flag" ||
14419          test ! -s conftest.err
14420        } && test -s conftest$ac_exeext &&
14421        $as_test_x conftest$ac_exeext; then
14422   ac_cv_lib_curses_tgetent=yes
14423 else
14424   echo "$as_me: failed program was:" >&5
14425 sed 's/^/| /' conftest.$ac_ext >&5
14426
14427         ac_cv_lib_curses_tgetent=no
14428 fi
14429
14430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14431       conftest$ac_exeext conftest.$ac_ext
14432 LIBS=$ac_check_lib_save_LIBS
14433 fi
14434 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14435 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14436 if test $ac_cv_lib_curses_tgetent = yes; then
14437    CONS_LIBS="-lcurses"
14438                    CONS_OBJ="conio.o"
14439                    CONS_SRC="conio.c"
14440                    got_conio="yes"
14441                    support_readline=no
14442
14443 cat >>confdefs.h <<\_ACEOF
14444 #define HAVE_CONIO 1
14445 _ACEOF
14446
14447
14448 fi
14449
14450
14451 else
14452    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14453 fi
14454
14455
14456
14457 fi
14458
14459
14460 fi
14461
14462
14463 # ---------------------------------------------------
14464 # Check for readline support/directory (default off)
14465 # ---------------------------------------------------
14466 # this allows you to turn it completely off
14467 # Check whether --enable-readline was given.
14468 if test "${enable_readline+set}" = set; then
14469   enableval=$enable_readline; if test x$enableval = xno; then
14470     support_readline=no
14471   fi
14472 fi
14473
14474
14475 got_readline="no"
14476 READLINE_SRC=
14477 if test x$support_readline = xyes; then
14478
14479 # Check whether --with-readline was given.
14480 if test "${with_readline+set}" = set; then
14481   withval=$with_readline;
14482         case "$with_readline" in
14483         no) : ;;
14484         yes|*)
14485           if test -f ${with_readline}/readline.h; then
14486              CONS_INC="-I${with_readline}"
14487              CONS_LDFLAGS="-L$with_readline"
14488           elif test -f ${with_readline}/include/readline/readline.h; then
14489              CONS_INC="-I${with_readline}/include/readline"
14490              CONS_LDFLAGS="-L${with_readline}/lib"
14491              with_readline="${with_readline}/include/readline"
14492           else
14493              with_readline="/usr/include/readline"
14494           fi
14495           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14497   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14498 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14500   echo $ECHO_N "(cached) $ECHO_C" >&6
14501 fi
14502 ac_res=`eval echo '${'$as_ac_Header'}'`
14503                { echo "$as_me:$LINENO: result: $ac_res" >&5
14504 echo "${ECHO_T}$ac_res" >&6; }
14505 else
14506   # Is the header compilable?
14507 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14508 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14510 /* confdefs.h.  */
14511 _ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h.  */
14515 $ac_includes_default
14516 #include <${with_readline}/readline.h>
14517 _ACEOF
14518 rm -f conftest.$ac_objext
14519 if { (ac_try="$ac_compile"
14520 case "(($ac_try" in
14521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14522   *) ac_try_echo=$ac_try;;
14523 esac
14524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14525   (eval "$ac_compile") 2>conftest.er1
14526   ac_status=$?
14527   grep -v '^ *+' conftest.er1 >conftest.err
14528   rm -f conftest.er1
14529   cat conftest.err >&5
14530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531   (exit $ac_status); } && {
14532          test -z "$ac_c_werror_flag" ||
14533          test ! -s conftest.err
14534        } && test -s conftest.$ac_objext; then
14535   ac_header_compiler=yes
14536 else
14537   echo "$as_me: failed program was:" >&5
14538 sed 's/^/| /' conftest.$ac_ext >&5
14539
14540         ac_header_compiler=no
14541 fi
14542
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14545 echo "${ECHO_T}$ac_header_compiler" >&6; }
14546
14547 # Is the header present?
14548 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14549 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14550 cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 #include <${with_readline}/readline.h>
14557 _ACEOF
14558 if { (ac_try="$ac_cpp conftest.$ac_ext"
14559 case "(($ac_try" in
14560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561   *) ac_try_echo=$ac_try;;
14562 esac
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14565   ac_status=$?
14566   grep -v '^ *+' conftest.er1 >conftest.err
14567   rm -f conftest.er1
14568   cat conftest.err >&5
14569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14570   (exit $ac_status); } >/dev/null && {
14571          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14572          test ! -s conftest.err
14573        }; then
14574   ac_header_preproc=yes
14575 else
14576   echo "$as_me: failed program was:" >&5
14577 sed 's/^/| /' conftest.$ac_ext >&5
14578
14579   ac_header_preproc=no
14580 fi
14581
14582 rm -f conftest.err conftest.$ac_ext
14583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14584 echo "${ECHO_T}$ac_header_preproc" >&6; }
14585
14586 # So?  What about this header?
14587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14588   yes:no: )
14589     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14590 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14591     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14592 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14593     ac_header_preproc=yes
14594     ;;
14595   no:yes:* )
14596     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14598     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
14599 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
14600     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14601 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14602     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14603 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14604     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14605 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14606     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14607 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14608
14609     ;;
14610 esac
14611 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14612 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14614   echo $ECHO_N "(cached) $ECHO_C" >&6
14615 else
14616   eval "$as_ac_Header=\$ac_header_preproc"
14617 fi
14618 ac_res=`eval echo '${'$as_ac_Header'}'`
14619                { echo "$as_me:$LINENO: result: $ac_res" >&5
14620 echo "${ECHO_T}$ac_res" >&6; }
14621
14622 fi
14623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14624
14625 cat >>confdefs.h <<\_ACEOF
14626 #define HAVE_READLINE 1
14627 _ACEOF
14628
14629                CONS_LIBS="-lreadline -lhistory -ltermcap"
14630                got_readline="yes"
14631
14632 else
14633    echo " "
14634                echo "readline.h not found. readline turned off ..."
14635                echo " "
14636
14637
14638 fi
14639
14640
14641           ;;
14642         esac
14643
14644 else
14645
14646        # check for standard readline library
14647        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14648   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14649 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 fi
14653 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14654 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14655 else
14656   # Is the header compilable?
14657 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14658 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14660 /* confdefs.h.  */
14661 _ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h.  */
14665 $ac_includes_default
14666 #include </usr/include/readline/readline.h>
14667 _ACEOF
14668 rm -f conftest.$ac_objext
14669 if { (ac_try="$ac_compile"
14670 case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_compile") 2>conftest.er1
14676   ac_status=$?
14677   grep -v '^ *+' conftest.er1 >conftest.err
14678   rm -f conftest.er1
14679   cat conftest.err >&5
14680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681   (exit $ac_status); } && {
14682          test -z "$ac_c_werror_flag" ||
14683          test ! -s conftest.err
14684        } && test -s conftest.$ac_objext; then
14685   ac_header_compiler=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690         ac_header_compiler=no
14691 fi
14692
14693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14695 echo "${ECHO_T}$ac_header_compiler" >&6; }
14696
14697 # Is the header present?
14698 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14699 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14700 cat >conftest.$ac_ext <<_ACEOF
14701 /* confdefs.h.  */
14702 _ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h.  */
14706 #include </usr/include/readline/readline.h>
14707 _ACEOF
14708 if { (ac_try="$ac_cpp conftest.$ac_ext"
14709 case "(($ac_try" in
14710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14711   *) ac_try_echo=$ac_try;;
14712 esac
14713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14715   ac_status=$?
14716   grep -v '^ *+' conftest.er1 >conftest.err
14717   rm -f conftest.er1
14718   cat conftest.err >&5
14719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } >/dev/null && {
14721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14722          test ! -s conftest.err
14723        }; then
14724   ac_header_preproc=yes
14725 else
14726   echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729   ac_header_preproc=no
14730 fi
14731
14732 rm -f conftest.err conftest.$ac_ext
14733 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14734 echo "${ECHO_T}$ac_header_preproc" >&6; }
14735
14736 # So?  What about this header?
14737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14738   yes:no: )
14739     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14740 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14741     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14742 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14743     ac_header_preproc=yes
14744     ;;
14745   no:yes:* )
14746     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14748     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
14749 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14750     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14751 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14753 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14754     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14755 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14756     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14757 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14758
14759     ;;
14760 esac
14761 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14762 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14763 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14764   echo $ECHO_N "(cached) $ECHO_C" >&6
14765 else
14766   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14767 fi
14768 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14769 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14770
14771 fi
14772 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14773
14774 cat >>confdefs.h <<\_ACEOF
14775 #define HAVE_READLINE 1
14776 _ACEOF
14777
14778            got_readline="yes"
14779            CONS_INC="-I/usr/include/readline"
14780            CONS_LIBS="-lreadline -ltermcap"
14781
14782 else
14783
14784            # Did not find standard library, so try Bacula's default
14785             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14787   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14788 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14790   echo $ECHO_N "(cached) $ECHO_C" >&6
14791 fi
14792 ac_res=`eval echo '${'$as_ac_Header'}'`
14793                { echo "$as_me:$LINENO: result: $ac_res" >&5
14794 echo "${ECHO_T}$ac_res" >&6; }
14795 else
14796   # Is the header compilable?
14797 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14799 cat >conftest.$ac_ext <<_ACEOF
14800 /* confdefs.h.  */
14801 _ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h.  */
14805 $ac_includes_default
14806 #include <${TOP_DIR}/depkgs/readline/readline.h>
14807 _ACEOF
14808 rm -f conftest.$ac_objext
14809 if { (ac_try="$ac_compile"
14810 case "(($ac_try" in
14811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812   *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815   (eval "$ac_compile") 2>conftest.er1
14816   ac_status=$?
14817   grep -v '^ *+' conftest.er1 >conftest.err
14818   rm -f conftest.er1
14819   cat conftest.err >&5
14820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821   (exit $ac_status); } && {
14822          test -z "$ac_c_werror_flag" ||
14823          test ! -s conftest.err
14824        } && test -s conftest.$ac_objext; then
14825   ac_header_compiler=yes
14826 else
14827   echo "$as_me: failed program was:" >&5
14828 sed 's/^/| /' conftest.$ac_ext >&5
14829
14830         ac_header_compiler=no
14831 fi
14832
14833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14835 echo "${ECHO_T}$ac_header_compiler" >&6; }
14836
14837 # Is the header present?
14838 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14839 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14840 cat >conftest.$ac_ext <<_ACEOF
14841 /* confdefs.h.  */
14842 _ACEOF
14843 cat confdefs.h >>conftest.$ac_ext
14844 cat >>conftest.$ac_ext <<_ACEOF
14845 /* end confdefs.h.  */
14846 #include <${TOP_DIR}/depkgs/readline/readline.h>
14847 _ACEOF
14848 if { (ac_try="$ac_cpp conftest.$ac_ext"
14849 case "(($ac_try" in
14850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851   *) ac_try_echo=$ac_try;;
14852 esac
14853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14854   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14855   ac_status=$?
14856   grep -v '^ *+' conftest.er1 >conftest.err
14857   rm -f conftest.er1
14858   cat conftest.err >&5
14859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14860   (exit $ac_status); } >/dev/null && {
14861          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14862          test ! -s conftest.err
14863        }; then
14864   ac_header_preproc=yes
14865 else
14866   echo "$as_me: failed program was:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14868
14869   ac_header_preproc=no
14870 fi
14871
14872 rm -f conftest.err conftest.$ac_ext
14873 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14874 echo "${ECHO_T}$ac_header_preproc" >&6; }
14875
14876 # So?  What about this header?
14877 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14878   yes:no: )
14879     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14880 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14881     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14882 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14883     ac_header_preproc=yes
14884     ;;
14885   no:yes:* )
14886     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14888     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
14889 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
14890     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14891 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14892     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
14893 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14894     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14895 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14896     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14897 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14898
14899     ;;
14900 esac
14901 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14902 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14904   echo $ECHO_N "(cached) $ECHO_C" >&6
14905 else
14906   eval "$as_ac_Header=\$ac_header_preproc"
14907 fi
14908 ac_res=`eval echo '${'$as_ac_Header'}'`
14909                { echo "$as_me:$LINENO: result: $ac_res" >&5
14910 echo "${ECHO_T}$ac_res" >&6; }
14911
14912 fi
14913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14914
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_READLINE 1
14917 _ACEOF
14918
14919                  got_readline="yes"
14920                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
14921                  CONS_LIBS="-lreadline -lhistory -ltermcap"
14922                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14923                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14924
14925 else
14926    echo " "
14927                 echo "readline.h not found. readline turned off ..."
14928                 echo " "
14929
14930
14931 fi
14932
14933
14934
14935
14936 fi
14937
14938
14939
14940
14941 fi
14942
14943 fi
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954 # Minimal stuff for readline Makefile configuration
14955 MAKE_SHELL=/bin/sh
14956
14957 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14958 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14959 if test "${ac_cv_header_stat_broken+set}" = set; then
14960   echo $ECHO_N "(cached) $ECHO_C" >&6
14961 else
14962   cat >conftest.$ac_ext <<_ACEOF
14963 /* confdefs.h.  */
14964 _ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h.  */
14968 #include <sys/types.h>
14969 #include <sys/stat.h>
14970
14971 #if defined S_ISBLK && defined S_IFDIR
14972 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14973 #endif
14974
14975 #if defined S_ISBLK && defined S_IFCHR
14976 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14977 #endif
14978
14979 #if defined S_ISLNK && defined S_IFREG
14980 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14981 #endif
14982
14983 #if defined S_ISSOCK && defined S_IFREG
14984 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14985 #endif
14986
14987 _ACEOF
14988 rm -f conftest.$ac_objext
14989 if { (ac_try="$ac_compile"
14990 case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_compile") 2>conftest.er1
14996   ac_status=$?
14997   grep -v '^ *+' conftest.er1 >conftest.err
14998   rm -f conftest.er1
14999   cat conftest.err >&5
15000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } && {
15002          test -z "$ac_c_werror_flag" ||
15003          test ! -s conftest.err
15004        } && test -s conftest.$ac_objext; then
15005   ac_cv_header_stat_broken=no
15006 else
15007   echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15009
15010         ac_cv_header_stat_broken=yes
15011 fi
15012
15013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15014 fi
15015 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15016 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15017 if test $ac_cv_header_stat_broken = yes; then
15018
15019 cat >>confdefs.h <<\_ACEOF
15020 #define STAT_MACROS_BROKEN 1
15021 _ACEOF
15022
15023 fi
15024
15025
15026
15027
15028
15029
15030 ac_header_dirent=no
15031 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15032   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15033 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15034 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15036   echo $ECHO_N "(cached) $ECHO_C" >&6
15037 else
15038   cat >conftest.$ac_ext <<_ACEOF
15039 /* confdefs.h.  */
15040 _ACEOF
15041 cat confdefs.h >>conftest.$ac_ext
15042 cat >>conftest.$ac_ext <<_ACEOF
15043 /* end confdefs.h.  */
15044 #include <sys/types.h>
15045 #include <$ac_hdr>
15046
15047 int
15048 main ()
15049 {
15050 if ((DIR *) 0)
15051 return 0;
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 rm -f conftest.$ac_objext
15057 if { (ac_try="$ac_compile"
15058 case "(($ac_try" in
15059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15060   *) ac_try_echo=$ac_try;;
15061 esac
15062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15063   (eval "$ac_compile") 2>conftest.er1
15064   ac_status=$?
15065   grep -v '^ *+' conftest.er1 >conftest.err
15066   rm -f conftest.er1
15067   cat conftest.err >&5
15068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069   (exit $ac_status); } && {
15070          test -z "$ac_c_werror_flag" ||
15071          test ! -s conftest.err
15072        } && test -s conftest.$ac_objext; then
15073   eval "$as_ac_Header=yes"
15074 else
15075   echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078         eval "$as_ac_Header=no"
15079 fi
15080
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 fi
15083 ac_res=`eval echo '${'$as_ac_Header'}'`
15084                { echo "$as_me:$LINENO: result: $ac_res" >&5
15085 echo "${ECHO_T}$ac_res" >&6; }
15086 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15087   cat >>confdefs.h <<_ACEOF
15088 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15089 _ACEOF
15090
15091 ac_header_dirent=$ac_hdr; break
15092 fi
15093
15094 done
15095 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15096 if test $ac_header_dirent = dirent.h; then
15097   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15098 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15099 if test "${ac_cv_search_opendir+set}" = set; then
15100   echo $ECHO_N "(cached) $ECHO_C" >&6
15101 else
15102   ac_func_search_save_LIBS=$LIBS
15103 cat >conftest.$ac_ext <<_ACEOF
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109
15110 /* Override any GCC internal prototype to avoid an error.
15111    Use char because int might match the return type of a GCC
15112    builtin and then its argument prototype would still apply.  */
15113 #ifdef __cplusplus
15114 extern "C"
15115 #endif
15116 char opendir ();
15117 int
15118 main ()
15119 {
15120 return opendir ();
15121   ;
15122   return 0;
15123 }
15124 _ACEOF
15125 for ac_lib in '' dir; do
15126   if test -z "$ac_lib"; then
15127     ac_res="none required"
15128   else
15129     ac_res=-l$ac_lib
15130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15131   fi
15132   rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_link") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest$ac_exeext &&
15149        $as_test_x conftest$ac_exeext; then
15150   ac_cv_search_opendir=$ac_res
15151 else
15152   echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.$ac_ext >&5
15154
15155
15156 fi
15157
15158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15159       conftest$ac_exeext
15160   if test "${ac_cv_search_opendir+set}" = set; then
15161   break
15162 fi
15163 done
15164 if test "${ac_cv_search_opendir+set}" = set; then
15165   :
15166 else
15167   ac_cv_search_opendir=no
15168 fi
15169 rm conftest.$ac_ext
15170 LIBS=$ac_func_search_save_LIBS
15171 fi
15172 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15173 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15174 ac_res=$ac_cv_search_opendir
15175 if test "$ac_res" != no; then
15176   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15177
15178 fi
15179
15180 else
15181   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15182 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15183 if test "${ac_cv_search_opendir+set}" = set; then
15184   echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186   ac_func_search_save_LIBS=$LIBS
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h.  */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h.  */
15193
15194 /* Override any GCC internal prototype to avoid an error.
15195    Use char because int might match the return type of a GCC
15196    builtin and then its argument prototype would still apply.  */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 char opendir ();
15201 int
15202 main ()
15203 {
15204 return opendir ();
15205   ;
15206   return 0;
15207 }
15208 _ACEOF
15209 for ac_lib in '' x; do
15210   if test -z "$ac_lib"; then
15211     ac_res="none required"
15212   else
15213     ac_res=-l$ac_lib
15214     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15215   fi
15216   rm -f conftest.$ac_objext conftest$ac_exeext
15217 if { (ac_try="$ac_link"
15218 case "(($ac_try" in
15219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220   *) ac_try_echo=$ac_try;;
15221 esac
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223   (eval "$ac_link") 2>conftest.er1
15224   ac_status=$?
15225   grep -v '^ *+' conftest.er1 >conftest.err
15226   rm -f conftest.er1
15227   cat conftest.err >&5
15228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229   (exit $ac_status); } && {
15230          test -z "$ac_c_werror_flag" ||
15231          test ! -s conftest.err
15232        } && test -s conftest$ac_exeext &&
15233        $as_test_x conftest$ac_exeext; then
15234   ac_cv_search_opendir=$ac_res
15235 else
15236   echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15238
15239
15240 fi
15241
15242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15243       conftest$ac_exeext
15244   if test "${ac_cv_search_opendir+set}" = set; then
15245   break
15246 fi
15247 done
15248 if test "${ac_cv_search_opendir+set}" = set; then
15249   :
15250 else
15251   ac_cv_search_opendir=no
15252 fi
15253 rm conftest.$ac_ext
15254 LIBS=$ac_func_search_save_LIBS
15255 fi
15256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15258 ac_res=$ac_cv_search_opendir
15259 if test "$ac_res" != no; then
15260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15261
15262 fi
15263
15264 fi
15265
15266
15267
15268
15269
15270
15271
15272
15273 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15274 do
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15278 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15279   echo $ECHO_N "(cached) $ECHO_C" >&6
15280 else
15281   cat >conftest.$ac_ext <<_ACEOF
15282 /* confdefs.h.  */
15283 _ACEOF
15284 cat confdefs.h >>conftest.$ac_ext
15285 cat >>conftest.$ac_ext <<_ACEOF
15286 /* end confdefs.h.  */
15287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15288    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15289 #define $ac_func innocuous_$ac_func
15290
15291 /* System header to define __stub macros and hopefully few prototypes,
15292     which can conflict with char $ac_func (); below.
15293     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15294     <limits.h> exists even on freestanding compilers.  */
15295
15296 #ifdef __STDC__
15297 # include <limits.h>
15298 #else
15299 # include <assert.h>
15300 #endif
15301
15302 #undef $ac_func
15303
15304 /* Override any GCC internal prototype to avoid an error.
15305    Use char because int might match the return type of a GCC
15306    builtin and then its argument prototype would still apply.  */
15307 #ifdef __cplusplus
15308 extern "C"
15309 #endif
15310 char $ac_func ();
15311 /* The GNU C library defines this for functions which it implements
15312     to always fail with ENOSYS.  Some functions are actually named
15313     something starting with __ and the normal name is an alias.  */
15314 #if defined __stub_$ac_func || defined __stub___$ac_func
15315 choke me
15316 #endif
15317
15318 int
15319 main ()
15320 {
15321 return $ac_func ();
15322   ;
15323   return 0;
15324 }
15325 _ACEOF
15326 rm -f conftest.$ac_objext conftest$ac_exeext
15327 if { (ac_try="$ac_link"
15328 case "(($ac_try" in
15329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15330   *) ac_try_echo=$ac_try;;
15331 esac
15332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15333   (eval "$ac_link") 2>conftest.er1
15334   ac_status=$?
15335   grep -v '^ *+' conftest.er1 >conftest.err
15336   rm -f conftest.er1
15337   cat conftest.err >&5
15338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339   (exit $ac_status); } && {
15340          test -z "$ac_c_werror_flag" ||
15341          test ! -s conftest.err
15342        } && test -s conftest$ac_exeext &&
15343        $as_test_x conftest$ac_exeext; then
15344   eval "$as_ac_var=yes"
15345 else
15346   echo "$as_me: failed program was:" >&5
15347 sed 's/^/| /' conftest.$ac_ext >&5
15348
15349         eval "$as_ac_var=no"
15350 fi
15351
15352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15353       conftest$ac_exeext conftest.$ac_ext
15354 fi
15355 ac_res=`eval echo '${'$as_ac_var'}'`
15356                { echo "$as_me:$LINENO: result: $ac_res" >&5
15357 echo "${ECHO_T}$ac_res" >&6; }
15358 if test `eval echo '${'$as_ac_var'}'` = yes; then
15359   cat >>confdefs.h <<_ACEOF
15360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15361 _ACEOF
15362
15363 fi
15364 done
15365
15366
15367
15368 for ac_func in nanosleep nl_langinfo
15369 do
15370 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   cat >conftest.$ac_ext <<_ACEOF
15377 /* confdefs.h.  */
15378 _ACEOF
15379 cat confdefs.h >>conftest.$ac_ext
15380 cat >>conftest.$ac_ext <<_ACEOF
15381 /* end confdefs.h.  */
15382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15383    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15384 #define $ac_func innocuous_$ac_func
15385
15386 /* System header to define __stub macros and hopefully few prototypes,
15387     which can conflict with char $ac_func (); below.
15388     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15389     <limits.h> exists even on freestanding compilers.  */
15390
15391 #ifdef __STDC__
15392 # include <limits.h>
15393 #else
15394 # include <assert.h>
15395 #endif
15396
15397 #undef $ac_func
15398
15399 /* Override any GCC internal prototype to avoid an error.
15400    Use char because int might match the return type of a GCC
15401    builtin and then its argument prototype would still apply.  */
15402 #ifdef __cplusplus
15403 extern "C"
15404 #endif
15405 char $ac_func ();
15406 /* The GNU C library defines this for functions which it implements
15407     to always fail with ENOSYS.  Some functions are actually named
15408     something starting with __ and the normal name is an alias.  */
15409 #if defined __stub_$ac_func || defined __stub___$ac_func
15410 choke me
15411 #endif
15412
15413 int
15414 main ()
15415 {
15416 return $ac_func ();
15417   ;
15418   return 0;
15419 }
15420 _ACEOF
15421 rm -f conftest.$ac_objext conftest$ac_exeext
15422 if { (ac_try="$ac_link"
15423 case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_link") 2>conftest.er1
15429   ac_status=$?
15430   grep -v '^ *+' conftest.er1 >conftest.err
15431   rm -f conftest.er1
15432   cat conftest.err >&5
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } && {
15435          test -z "$ac_c_werror_flag" ||
15436          test ! -s conftest.err
15437        } && test -s conftest$ac_exeext &&
15438        $as_test_x conftest$ac_exeext; then
15439   eval "$as_ac_var=yes"
15440 else
15441   echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15443
15444         eval "$as_ac_var=no"
15445 fi
15446
15447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15448       conftest$ac_exeext conftest.$ac_ext
15449 fi
15450 ac_res=`eval echo '${'$as_ac_var'}'`
15451                { echo "$as_me:$LINENO: result: $ac_res" >&5
15452 echo "${ECHO_T}$ac_res" >&6; }
15453 if test `eval echo '${'$as_ac_var'}'` = yes; then
15454   cat >>confdefs.h <<_ACEOF
15455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15456 _ACEOF
15457
15458 fi
15459 done
15460
15461
15462 for ac_header in varargs.h
15463 do
15464 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15466   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15469   echo $ECHO_N "(cached) $ECHO_C" >&6
15470 fi
15471 ac_res=`eval echo '${'$as_ac_Header'}'`
15472                { echo "$as_me:$LINENO: result: $ac_res" >&5
15473 echo "${ECHO_T}$ac_res" >&6; }
15474 else
15475   # Is the header compilable?
15476 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15477 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15478 cat >conftest.$ac_ext <<_ACEOF
15479 /* confdefs.h.  */
15480 _ACEOF
15481 cat confdefs.h >>conftest.$ac_ext
15482 cat >>conftest.$ac_ext <<_ACEOF
15483 /* end confdefs.h.  */
15484 $ac_includes_default
15485 #include <$ac_header>
15486 _ACEOF
15487 rm -f conftest.$ac_objext
15488 if { (ac_try="$ac_compile"
15489 case "(($ac_try" in
15490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491   *) ac_try_echo=$ac_try;;
15492 esac
15493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15494   (eval "$ac_compile") 2>conftest.er1
15495   ac_status=$?
15496   grep -v '^ *+' conftest.er1 >conftest.err
15497   rm -f conftest.er1
15498   cat conftest.err >&5
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); } && {
15501          test -z "$ac_c_werror_flag" ||
15502          test ! -s conftest.err
15503        } && test -s conftest.$ac_objext; then
15504   ac_header_compiler=yes
15505 else
15506   echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15508
15509         ac_header_compiler=no
15510 fi
15511
15512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15514 echo "${ECHO_T}$ac_header_compiler" >&6; }
15515
15516 # Is the header present?
15517 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15519 cat >conftest.$ac_ext <<_ACEOF
15520 /* confdefs.h.  */
15521 _ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h.  */
15525 #include <$ac_header>
15526 _ACEOF
15527 if { (ac_try="$ac_cpp conftest.$ac_ext"
15528 case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15533   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15534   ac_status=$?
15535   grep -v '^ *+' conftest.er1 >conftest.err
15536   rm -f conftest.er1
15537   cat conftest.err >&5
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); } >/dev/null && {
15540          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15541          test ! -s conftest.err
15542        }; then
15543   ac_header_preproc=yes
15544 else
15545   echo "$as_me: failed program was:" >&5
15546 sed 's/^/| /' conftest.$ac_ext >&5
15547
15548   ac_header_preproc=no
15549 fi
15550
15551 rm -f conftest.err conftest.$ac_ext
15552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15553 echo "${ECHO_T}$ac_header_preproc" >&6; }
15554
15555 # So?  What about this header?
15556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15557   yes:no: )
15558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15561 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15562     ac_header_preproc=yes
15563     ;;
15564   no:yes:* )
15565     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15566 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15567     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15568 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15569     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15570 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15571     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15572 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15573     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15574 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15575     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15576 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15577
15578     ;;
15579 esac
15580 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15581 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15582 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15583   echo $ECHO_N "(cached) $ECHO_C" >&6
15584 else
15585   eval "$as_ac_Header=\$ac_header_preproc"
15586 fi
15587 ac_res=`eval echo '${'$as_ac_Header'}'`
15588                { echo "$as_me:$LINENO: result: $ac_res" >&5
15589 echo "${ECHO_T}$ac_res" >&6; }
15590
15591 fi
15592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15593   cat >>confdefs.h <<_ACEOF
15594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15595 _ACEOF
15596
15597 fi
15598
15599 done
15600
15601
15602 # End of readline/conio stuff
15603 # -----------------------------------------------------------------------
15604
15605 # -----------------------------------------------------------------------
15606 #  Check for Python support
15607 #
15608 { echo "$as_me:$LINENO: checking for Python support" >&5
15609 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15610
15611 # Check whether --with-python was given.
15612 if test "${with_python+set}" = set; then
15613   withval=$with_python;
15614   PYTHON_INCDIR=
15615   PYTHON_LIBS=
15616   if test "$withval" != "no"; then
15617      if test "$withval" = "yes"; then
15618         for python_root in /usr /usr/local /usr/sfw; do
15619           for ver in python2.2 python2.3 python2.4 python2.5; do
15620              if test -f $python_root/include/${ver}/Python.h; then
15621                 PYTHON_INCDIR=-I$python_root/include/${ver}
15622                 if test -d $python_root/lib64/${ver}/config; then
15623                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15624                 else
15625                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15626                 fi
15627                 break
15628              fi
15629           done
15630         done
15631         if test x$PYTHON_INCDIR = x; then
15632           if test -f $prefix/include/Python.h; then
15633              PYTHON_INCDIR=-I$prefix/include
15634              if test -d $prefix/lib64/config; then
15635                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15636              else
15637                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15638              fi
15639           else
15640            { echo "$as_me:$LINENO: result: no" >&5
15641 echo "${ECHO_T}no" >&6; }
15642            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15643 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15644    { (exit 1); exit 1; }; }
15645           fi
15646         fi
15647      else
15648         if test -f $withval/Python.h; then
15649            PYTHON_INCDIR=-I$withval
15650            PYTHON_LIBS="-L$withval/config -lpython"
15651         elif test -f $withval/include/Python.h; then
15652            PYTHON_INCDIR=-I$withval/include
15653            if test -d $withval/lib64/config; then
15654               PYTHON_LIBS="-L$withval/lib64/config -lpython"
15655            else
15656               PYTHON_LIBS="-L$withval/lib/config -lpython"
15657            fi
15658         elif test -f $withval/include/python/Python.h; then
15659            PYTHON_INCDIR=-I$withval/include/python
15660            if test -d $withval/lib64/python/config; then
15661               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15662            else
15663               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15664            fi
15665         else
15666            { echo "$as_me:$LINENO: result: no" >&5
15667 echo "${ECHO_T}no" >&6; }
15668            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15669 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15670    { (exit 1); exit 1; }; }
15671         fi
15672      fi
15673      cat >>confdefs.h <<\_ACEOF
15674 #define HAVE_PYTHON 1
15675 _ACEOF
15676
15677      { echo "$as_me:$LINENO: result: yes" >&5
15678 echo "${ECHO_T}yes" >&6; }
15679      support_python=yes
15680      { echo "$as_me:$LINENO: checking for more Python libs" >&5
15681 echo "$as_me: checking for more Python libs" >&6;}
15682      saved_LIBS="$LIBS"; LIBS=
15683      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15684 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15685 if test "${ac_cv_search_shm_open+set}" = set; then
15686   echo $ECHO_N "(cached) $ECHO_C" >&6
15687 else
15688   ac_func_search_save_LIBS=$LIBS
15689 cat >conftest.$ac_ext <<_ACEOF
15690 /* confdefs.h.  */
15691 _ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h.  */
15695
15696 /* Override any GCC internal prototype to avoid an error.
15697    Use char because int might match the return type of a GCC
15698    builtin and then its argument prototype would still apply.  */
15699 #ifdef __cplusplus
15700 extern "C"
15701 #endif
15702 char shm_open ();
15703 int
15704 main ()
15705 {
15706 return shm_open ();
15707   ;
15708   return 0;
15709 }
15710 _ACEOF
15711 for ac_lib in '' rt; do
15712   if test -z "$ac_lib"; then
15713     ac_res="none required"
15714   else
15715     ac_res=-l$ac_lib
15716     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15717   fi
15718   rm -f conftest.$ac_objext conftest$ac_exeext
15719 if { (ac_try="$ac_link"
15720 case "(($ac_try" in
15721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722   *) ac_try_echo=$ac_try;;
15723 esac
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725   (eval "$ac_link") 2>conftest.er1
15726   ac_status=$?
15727   grep -v '^ *+' conftest.er1 >conftest.err
15728   rm -f conftest.er1
15729   cat conftest.err >&5
15730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731   (exit $ac_status); } && {
15732          test -z "$ac_c_werror_flag" ||
15733          test ! -s conftest.err
15734        } && test -s conftest$ac_exeext &&
15735        $as_test_x conftest$ac_exeext; then
15736   ac_cv_search_shm_open=$ac_res
15737 else
15738   echo "$as_me: failed program was:" >&5
15739 sed 's/^/| /' conftest.$ac_ext >&5
15740
15741
15742 fi
15743
15744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15745       conftest$ac_exeext
15746   if test "${ac_cv_search_shm_open+set}" = set; then
15747   break
15748 fi
15749 done
15750 if test "${ac_cv_search_shm_open+set}" = set; then
15751   :
15752 else
15753   ac_cv_search_shm_open=no
15754 fi
15755 rm conftest.$ac_ext
15756 LIBS=$ac_func_search_save_LIBS
15757 fi
15758 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15759 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15760 ac_res=$ac_cv_search_shm_open
15761 if test "$ac_res" != no; then
15762   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15763
15764 fi
15765
15766
15767 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15768 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15769 if test "${ac_cv_lib_util_openpty+set}" = set; then
15770   echo $ECHO_N "(cached) $ECHO_C" >&6
15771 else
15772   ac_check_lib_save_LIBS=$LIBS
15773 LIBS="-lutil  $LIBS"
15774 cat >conftest.$ac_ext <<_ACEOF
15775 /* confdefs.h.  */
15776 _ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h.  */
15780
15781 /* Override any GCC internal prototype to avoid an error.
15782    Use char because int might match the return type of a GCC
15783    builtin and then its argument prototype would still apply.  */
15784 #ifdef __cplusplus
15785 extern "C"
15786 #endif
15787 char openpty ();
15788 int
15789 main ()
15790 {
15791 return openpty ();
15792   ;
15793   return 0;
15794 }
15795 _ACEOF
15796 rm -f conftest.$ac_objext conftest$ac_exeext
15797 if { (ac_try="$ac_link"
15798 case "(($ac_try" in
15799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800   *) ac_try_echo=$ac_try;;
15801 esac
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803   (eval "$ac_link") 2>conftest.er1
15804   ac_status=$?
15805   grep -v '^ *+' conftest.er1 >conftest.err
15806   rm -f conftest.er1
15807   cat conftest.err >&5
15808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809   (exit $ac_status); } && {
15810          test -z "$ac_c_werror_flag" ||
15811          test ! -s conftest.err
15812        } && test -s conftest$ac_exeext &&
15813        $as_test_x conftest$ac_exeext; then
15814   ac_cv_lib_util_openpty=yes
15815 else
15816   echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15818
15819         ac_cv_lib_util_openpty=no
15820 fi
15821
15822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15823       conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15825 fi
15826 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15827 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15828 if test $ac_cv_lib_util_openpty = yes; then
15829   cat >>confdefs.h <<_ACEOF
15830 #define HAVE_LIBUTIL 1
15831 _ACEOF
15832
15833   LIBS="-lutil $LIBS"
15834
15835 fi
15836
15837      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15838      LIBS="$saved_LIBS"
15839   else
15840      { echo "$as_me:$LINENO: result: no" >&5
15841 echo "${ECHO_T}no" >&6; }
15842   fi
15843
15844 else
15845
15846   { echo "$as_me:$LINENO: result: no" >&5
15847 echo "${ECHO_T}no" >&6; }
15848
15849 fi
15850
15851
15852
15853
15854 #
15855 # Find where sockets are (especially for Solaris)
15856 # Do this before the TCP Wrappers test since tcp wrappers
15857 # uses the socket library and some linkers are stupid.
15858 #
15859 { echo "$as_me:$LINENO: checking for socket" >&5
15860 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15861 if test "${ac_cv_func_socket+set}" = set; then
15862   echo $ECHO_N "(cached) $ECHO_C" >&6
15863 else
15864   cat >conftest.$ac_ext <<_ACEOF
15865 /* confdefs.h.  */
15866 _ACEOF
15867 cat confdefs.h >>conftest.$ac_ext
15868 cat >>conftest.$ac_ext <<_ACEOF
15869 /* end confdefs.h.  */
15870 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15871    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15872 #define socket innocuous_socket
15873
15874 /* System header to define __stub macros and hopefully few prototypes,
15875     which can conflict with char socket (); below.
15876     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15877     <limits.h> exists even on freestanding compilers.  */
15878
15879 #ifdef __STDC__
15880 # include <limits.h>
15881 #else
15882 # include <assert.h>
15883 #endif
15884
15885 #undef socket
15886
15887 /* Override any GCC internal prototype to avoid an error.
15888    Use char because int might match the return type of a GCC
15889    builtin and then its argument prototype would still apply.  */
15890 #ifdef __cplusplus
15891 extern "C"
15892 #endif
15893 char socket ();
15894 /* The GNU C library defines this for functions which it implements
15895     to always fail with ENOSYS.  Some functions are actually named
15896     something starting with __ and the normal name is an alias.  */
15897 #if defined __stub_socket || defined __stub___socket
15898 choke me
15899 #endif
15900
15901 int
15902 main ()
15903 {
15904 return socket ();
15905   ;
15906   return 0;
15907 }
15908 _ACEOF
15909 rm -f conftest.$ac_objext conftest$ac_exeext
15910 if { (ac_try="$ac_link"
15911 case "(($ac_try" in
15912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15913   *) ac_try_echo=$ac_try;;
15914 esac
15915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15916   (eval "$ac_link") 2>conftest.er1
15917   ac_status=$?
15918   grep -v '^ *+' conftest.er1 >conftest.err
15919   rm -f conftest.er1
15920   cat conftest.err >&5
15921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15922   (exit $ac_status); } && {
15923          test -z "$ac_c_werror_flag" ||
15924          test ! -s conftest.err
15925        } && test -s conftest$ac_exeext &&
15926        $as_test_x conftest$ac_exeext; then
15927   ac_cv_func_socket=yes
15928 else
15929   echo "$as_me: failed program was:" >&5
15930 sed 's/^/| /' conftest.$ac_ext >&5
15931
15932         ac_cv_func_socket=no
15933 fi
15934
15935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15936       conftest$ac_exeext conftest.$ac_ext
15937 fi
15938 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15939 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15940 if test $ac_cv_func_socket = yes; then
15941   { echo "$as_me:$LINENO: result: using libc's socket" >&5
15942 echo "${ECHO_T}using libc's socket" >&6; }
15943 else
15944
15945 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15946 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15947 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15948   echo $ECHO_N "(cached) $ECHO_C" >&6
15949 else
15950   ac_check_lib_save_LIBS=$LIBS
15951 LIBS="-lxnet  $LIBS"
15952 cat >conftest.$ac_ext <<_ACEOF
15953 /* confdefs.h.  */
15954 _ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h.  */
15958
15959 /* Override any GCC internal prototype to avoid an error.
15960    Use char because int might match the return type of a GCC
15961    builtin and then its argument prototype would still apply.  */
15962 #ifdef __cplusplus
15963 extern "C"
15964 #endif
15965 char socket ();
15966 int
15967 main ()
15968 {
15969 return socket ();
15970   ;
15971   return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978   *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981   (eval "$ac_link") 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } && {
15988          test -z "$ac_c_werror_flag" ||
15989          test ! -s conftest.err
15990        } && test -s conftest$ac_exeext &&
15991        $as_test_x conftest$ac_exeext; then
15992   ac_cv_lib_xnet_socket=yes
15993 else
15994   echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997         ac_cv_lib_xnet_socket=no
15998 fi
15999
16000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16001       conftest$ac_exeext conftest.$ac_ext
16002 LIBS=$ac_check_lib_save_LIBS
16003 fi
16004 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16005 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16006 if test $ac_cv_lib_xnet_socket = yes; then
16007   cat >>confdefs.h <<_ACEOF
16008 #define HAVE_LIBXNET 1
16009 _ACEOF
16010
16011   LIBS="-lxnet $LIBS"
16012
16013 fi
16014
16015
16016 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16017 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16018 if test "${ac_cv_lib_socket_socket+set}" = set; then
16019   echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021   ac_check_lib_save_LIBS=$LIBS
16022 LIBS="-lsocket  $LIBS"
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h.  */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h.  */
16029
16030 /* Override any GCC internal prototype to avoid an error.
16031    Use char because int might match the return type of a GCC
16032    builtin and then its argument prototype would still apply.  */
16033 #ifdef __cplusplus
16034 extern "C"
16035 #endif
16036 char socket ();
16037 int
16038 main ()
16039 {
16040 return socket ();
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (ac_try="$ac_link"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16052   (eval "$ac_link") 2>conftest.er1
16053   ac_status=$?
16054   grep -v '^ *+' conftest.er1 >conftest.err
16055   rm -f conftest.er1
16056   cat conftest.err >&5
16057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058   (exit $ac_status); } && {
16059          test -z "$ac_c_werror_flag" ||
16060          test ! -s conftest.err
16061        } && test -s conftest$ac_exeext &&
16062        $as_test_x conftest$ac_exeext; then
16063   ac_cv_lib_socket_socket=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068         ac_cv_lib_socket_socket=no
16069 fi
16070
16071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16072       conftest$ac_exeext conftest.$ac_ext
16073 LIBS=$ac_check_lib_save_LIBS
16074 fi
16075 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16076 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16077 if test $ac_cv_lib_socket_socket = yes; then
16078   cat >>confdefs.h <<_ACEOF
16079 #define HAVE_LIBSOCKET 1
16080 _ACEOF
16081
16082   LIBS="-lsocket $LIBS"
16083
16084 fi
16085
16086
16087 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16088 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16089 if test "${ac_cv_lib_inet_socket+set}" = set; then
16090   echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092   ac_check_lib_save_LIBS=$LIBS
16093 LIBS="-linet  $LIBS"
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h.  */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h.  */
16100
16101 /* Override any GCC internal prototype to avoid an error.
16102    Use char because int might match the return type of a GCC
16103    builtin and then its argument prototype would still apply.  */
16104 #ifdef __cplusplus
16105 extern "C"
16106 #endif
16107 char socket ();
16108 int
16109 main ()
16110 {
16111 return socket ();
16112   ;
16113   return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext conftest$ac_exeext
16117 if { (ac_try="$ac_link"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_link") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } && {
16130          test -z "$ac_c_werror_flag" ||
16131          test ! -s conftest.err
16132        } && test -s conftest$ac_exeext &&
16133        $as_test_x conftest$ac_exeext; then
16134   ac_cv_lib_inet_socket=yes
16135 else
16136   echo "$as_me: failed program was:" >&5
16137 sed 's/^/| /' conftest.$ac_ext >&5
16138
16139         ac_cv_lib_inet_socket=no
16140 fi
16141
16142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16143       conftest$ac_exeext conftest.$ac_ext
16144 LIBS=$ac_check_lib_save_LIBS
16145 fi
16146 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16147 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16148 if test $ac_cv_lib_inet_socket = yes; then
16149   cat >>confdefs.h <<_ACEOF
16150 #define HAVE_LIBINET 1
16151 _ACEOF
16152
16153   LIBS="-linet $LIBS"
16154
16155 fi
16156
16157 fi
16158
16159
16160
16161 # -----------------------------------------------------------
16162 # Check whether user wants TCP wrappers support (default off)
16163 # -----------------------------------------------------------
16164 TCPW_MSG="no"
16165 WRAPLIBS=""
16166
16167 # Check whether --with-tcp-wrappers was given.
16168 if test "${with_tcp_wrappers+set}" = set; then
16169   withval=$with_tcp_wrappers;
16170     if test "x$withval" != "xno" ; then
16171        saved_LIBS="$LIBS"
16172        LIBS="$saved_LIBS -lwrap"
16173        { echo "$as_me:$LINENO: checking for libwrap" >&5
16174 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16175        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16176 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16177 if test "${ac_cv_search_nanosleep+set}" = set; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 else
16180   ac_func_search_save_LIBS=$LIBS
16181 cat >conftest.$ac_ext <<_ACEOF
16182 /* confdefs.h.  */
16183 _ACEOF
16184 cat confdefs.h >>conftest.$ac_ext
16185 cat >>conftest.$ac_ext <<_ACEOF
16186 /* end confdefs.h.  */
16187
16188 /* Override any GCC internal prototype to avoid an error.
16189    Use char because int might match the return type of a GCC
16190    builtin and then its argument prototype would still apply.  */
16191 #ifdef __cplusplus
16192 extern "C"
16193 #endif
16194 char nanosleep ();
16195 int
16196 main ()
16197 {
16198 return nanosleep ();
16199   ;
16200   return 0;
16201 }
16202 _ACEOF
16203 for ac_lib in '' rt; do
16204   if test -z "$ac_lib"; then
16205     ac_res="none required"
16206   else
16207     ac_res=-l$ac_lib
16208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16209   fi
16210   rm -f conftest.$ac_objext conftest$ac_exeext
16211 if { (ac_try="$ac_link"
16212 case "(($ac_try" in
16213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16214   *) ac_try_echo=$ac_try;;
16215 esac
16216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16217   (eval "$ac_link") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && {
16224          test -z "$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        } && test -s conftest$ac_exeext &&
16227        $as_test_x conftest$ac_exeext; then
16228   ac_cv_search_nanosleep=$ac_res
16229 else
16230   echo "$as_me: failed program was:" >&5
16231 sed 's/^/| /' conftest.$ac_ext >&5
16232
16233
16234 fi
16235
16236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16237       conftest$ac_exeext
16238   if test "${ac_cv_search_nanosleep+set}" = set; then
16239   break
16240 fi
16241 done
16242 if test "${ac_cv_search_nanosleep+set}" = set; then
16243   :
16244 else
16245   ac_cv_search_nanosleep=no
16246 fi
16247 rm conftest.$ac_ext
16248 LIBS=$ac_func_search_save_LIBS
16249 fi
16250 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16251 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16252 ac_res=$ac_cv_search_nanosleep
16253 if test "$ac_res" != no; then
16254   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16255
16256 fi
16257
16258        cat >conftest.$ac_ext <<_ACEOF
16259 /* confdefs.h.  */
16260 _ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h.  */
16264  #include <sys/types.h>
16265             #include <tcpd.h>
16266              int deny_severity = 0;
16267              int allow_severity = 0;
16268              struct request_info *req;
16269 int
16270 main ()
16271 {
16272  hosts_access(req);
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 rm -f conftest.$ac_objext conftest$ac_exeext
16278 if { (ac_try="$ac_link"
16279 case "(($ac_try" in
16280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281   *) ac_try_echo=$ac_try;;
16282 esac
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284   (eval "$ac_link") 2>conftest.er1
16285   ac_status=$?
16286   grep -v '^ *+' conftest.er1 >conftest.err
16287   rm -f conftest.er1
16288   cat conftest.err >&5
16289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290   (exit $ac_status); } && {
16291          test -z "$ac_c_werror_flag" ||
16292          test ! -s conftest.err
16293        } && test -s conftest$ac_exeext &&
16294        $as_test_x conftest$ac_exeext; then
16295
16296             { echo "$as_me:$LINENO: result: yes" >&5
16297 echo "${ECHO_T}yes" >&6; }
16298
16299 cat >>confdefs.h <<\_ACEOF
16300 #define HAVE_LIBWRAP 1
16301 _ACEOF
16302
16303             TCPW_MSG="yes"
16304             LIBS="$saved_LIBS"
16305             WRAPLIBS="-lwrap"
16306
16307 else
16308   echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311
16312             LIBS="$saved_LIBS -lwrap -lnsl"
16313             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16314             cat >conftest.$ac_ext <<_ACEOF
16315 /* confdefs.h.  */
16316 _ACEOF
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h.  */
16320  #include <sys/types.h>
16321                  #include <tcpd.h>
16322                  int deny_severity = 0;
16323                  int allow_severity = 0;
16324                  struct request_info *req;
16325 int
16326 main ()
16327 {
16328  hosts_access(req);
16329   ;
16330   return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337   *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340   (eval "$ac_link") 2>conftest.er1
16341   ac_status=$?
16342   grep -v '^ *+' conftest.er1 >conftest.err
16343   rm -f conftest.er1
16344   cat conftest.err >&5
16345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346   (exit $ac_status); } && {
16347          test -z "$ac_c_werror_flag" ||
16348          test ! -s conftest.err
16349        } && test -s conftest$ac_exeext &&
16350        $as_test_x conftest$ac_exeext; then
16351
16352                  { echo "$as_me:$LINENO: result: yes" >&5
16353 echo "${ECHO_T}yes" >&6; }
16354
16355 cat >>confdefs.h <<\_ACEOF
16356 #define HAVE_LIBWRAP 1
16357 _ACEOF
16358
16359                  TCPW_MSG="yes"
16360                  LIBS="$saved_LIBS"
16361                  WRAPLIBS="-lwrap"
16362
16363 else
16364   echo "$as_me: failed program was:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16366
16367         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16368 echo "$as_me: error: *** libwrap missing" >&2;}
16369    { (exit 1); exit 1; }; }
16370
16371 fi
16372
16373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16374       conftest$ac_exeext conftest.$ac_ext
16375
16376 fi
16377
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379       conftest$ac_exeext conftest.$ac_ext
16380     fi
16381
16382
16383 fi
16384
16385
16386 # -----------------------------------------------------------
16387 # Check whether OpenSSL is available
16388 # -----------------------------------------------------------
16389 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16390 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16391
16392 # Check whether --with-openssl was given.
16393 if test "${with_openssl+set}" = set; then
16394   withval=$with_openssl; with_openssl_directory=${withval}
16395 fi
16396
16397
16398 if test "x$with_openssl_directory" != "x"; then
16399         OPENSSL_LIBS="-lssl -lcrypto"
16400         OPENSSL_INC=""
16401
16402         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16403                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16404                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16405         fi
16406
16407         saved_LIBS="${LIBS}"
16408         saved_CFLAGS="${CFLAGS}"
16409         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16410         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16411
16412         cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418  #include <openssl/ssl.h>
16419 int
16420 main ()
16421 {
16422  CRYPTO_set_id_callback(NULL);
16423   ;
16424   return 0;
16425 }
16426 _ACEOF
16427 rm -f conftest.$ac_objext conftest$ac_exeext
16428 if { (ac_try="$ac_link"
16429 case "(($ac_try" in
16430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431   *) ac_try_echo=$ac_try;;
16432 esac
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434   (eval "$ac_link") 2>conftest.er1
16435   ac_status=$?
16436   grep -v '^ *+' conftest.er1 >conftest.err
16437   rm -f conftest.er1
16438   cat conftest.err >&5
16439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16440   (exit $ac_status); } && {
16441          test -z "$ac_c_werror_flag" ||
16442          test ! -s conftest.err
16443        } && test -s conftest$ac_exeext &&
16444        $as_test_x conftest$ac_exeext; then
16445
16446                         support_tls="yes"
16447                         support_crypto="yes"
16448
16449 else
16450   echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453          support_tls="no"
16454
16455 fi
16456
16457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16458       conftest$ac_exeext conftest.$ac_ext
16459
16460         cat >conftest.$ac_ext <<_ACEOF
16461 /* confdefs.h.  */
16462 _ACEOF
16463 cat confdefs.h >>conftest.$ac_ext
16464 cat >>conftest.$ac_ext <<_ACEOF
16465 /* end confdefs.h.  */
16466  #include <openssl/evp.h>
16467 int
16468 main ()
16469 {
16470  EVP_sha512();
16471   ;
16472   return 0;
16473 }
16474 _ACEOF
16475 rm -f conftest.$ac_objext conftest$ac_exeext
16476 if { (ac_try="$ac_link"
16477 case "(($ac_try" in
16478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16479   *) ac_try_echo=$ac_try;;
16480 esac
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482   (eval "$ac_link") 2>conftest.er1
16483   ac_status=$?
16484   grep -v '^ *+' conftest.er1 >conftest.err
16485   rm -f conftest.er1
16486   cat conftest.err >&5
16487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16488   (exit $ac_status); } && {
16489          test -z "$ac_c_werror_flag" ||
16490          test ! -s conftest.err
16491        } && test -s conftest$ac_exeext &&
16492        $as_test_x conftest$ac_exeext; then
16493    ac_cv_openssl_sha2="yes"
16494 else
16495   echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16497
16498          ac_cv_openssl_sha2="no"
16499
16500 fi
16501
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503       conftest$ac_exeext conftest.$ac_ext
16504
16505         # Solaris disables greater than 128+ bit encryption in their OpenSSL
16506         # implementation, presumably for export reasons. If 192bit AES
16507         # is available, we assume that we're running with a 'non-export'
16508         # openssl library.
16509         cat >conftest.$ac_ext <<_ACEOF
16510 /* confdefs.h.  */
16511 _ACEOF
16512 cat confdefs.h >>conftest.$ac_ext
16513 cat >>conftest.$ac_ext <<_ACEOF
16514 /* end confdefs.h.  */
16515  #include <openssl/evp.h>
16516 int
16517 main ()
16518 {
16519  EVP_aes_192_cbc();
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_link") 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } && {
16538          test -z "$ac_c_werror_flag" ||
16539          test ! -s conftest.err
16540        } && test -s conftest$ac_exeext &&
16541        $as_test_x conftest$ac_exeext; then
16542    ac_cv_openssl_export="no"
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547          ac_cv_openssl_export="yes"
16548
16549 fi
16550
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552       conftest$ac_exeext conftest.$ac_ext
16553
16554         LIBS="${saved_LIBS}"
16555         CFLAGS="${saved_CFLAGS}"
16556
16557         if test "$support_tls" = "yes"; then
16558
16559 cat >>confdefs.h <<\_ACEOF
16560 #define HAVE_OPENSSL 1
16561 _ACEOF
16562
16563
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_TLS 1
16566 _ACEOF
16567
16568
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_CRYPTO 1
16571 _ACEOF
16572
16573         fi
16574
16575         if test "$ac_cv_openssl_sha2" = "yes"; then
16576
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_SHA2 1
16579 _ACEOF
16580
16581         fi
16582
16583         if test "$ac_cv_openssl_export" = "yes"; then
16584
16585 cat >>confdefs.h <<\_ACEOF
16586 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16587 _ACEOF
16588
16589         fi
16590 else
16591         support_tls="no"
16592         support_crypto="no"
16593         OPENSSL_LIBS=""
16594         OPENSSL_INC=""
16595 fi
16596
16597 { echo "$as_me:$LINENO: result: $support_tls" >&5
16598 echo "${ECHO_T}$support_tls" >&6; }
16599
16600
16601
16602
16603 # -----------------------------------------------------------
16604 # dlopen is needed for plugins
16605 # -----------------------------------------------------------
16606 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16607 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16608 if test "${ac_cv_search_dlopen+set}" = set; then
16609   echo $ECHO_N "(cached) $ECHO_C" >&6
16610 else
16611   ac_func_search_save_LIBS=$LIBS
16612 cat >conftest.$ac_ext <<_ACEOF
16613 /* confdefs.h.  */
16614 _ACEOF
16615 cat confdefs.h >>conftest.$ac_ext
16616 cat >>conftest.$ac_ext <<_ACEOF
16617 /* end confdefs.h.  */
16618
16619 /* Override any GCC internal prototype to avoid an error.
16620    Use char because int might match the return type of a GCC
16621    builtin and then its argument prototype would still apply.  */
16622 #ifdef __cplusplus
16623 extern "C"
16624 #endif
16625 char dlopen ();
16626 int
16627 main ()
16628 {
16629 return dlopen ();
16630   ;
16631   return 0;
16632 }
16633 _ACEOF
16634 for ac_lib in '' dl; do
16635   if test -z "$ac_lib"; then
16636     ac_res="none required"
16637   else
16638     ac_res=-l$ac_lib
16639     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16640   fi
16641   rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (ac_try="$ac_link"
16643 case "(($ac_try" in
16644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645   *) ac_try_echo=$ac_try;;
16646 esac
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648   (eval "$ac_link") 2>conftest.er1
16649   ac_status=$?
16650   grep -v '^ *+' conftest.er1 >conftest.err
16651   rm -f conftest.er1
16652   cat conftest.err >&5
16653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654   (exit $ac_status); } && {
16655          test -z "$ac_c_werror_flag" ||
16656          test ! -s conftest.err
16657        } && test -s conftest$ac_exeext &&
16658        $as_test_x conftest$ac_exeext; then
16659   ac_cv_search_dlopen=$ac_res
16660 else
16661   echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16668       conftest$ac_exeext
16669   if test "${ac_cv_search_dlopen+set}" = set; then
16670   break
16671 fi
16672 done
16673 if test "${ac_cv_search_dlopen+set}" = set; then
16674   :
16675 else
16676   ac_cv_search_dlopen=no
16677 fi
16678 rm conftest.$ac_ext
16679 LIBS=$ac_func_search_save_LIBS
16680 fi
16681 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16682 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16683 ac_res=$ac_cv_search_dlopen
16684 if test "$ac_res" != no; then
16685   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16686
16687 fi
16688
16689
16690 # ------------------------------------------
16691 # Where to place working dir
16692 # ------------------------------------------
16693 working_dir=`eval echo ${prefix}/var/bacula/working`
16694
16695 # Check whether --with-working-dir was given.
16696 if test "${with_working_dir+set}" = set; then
16697   withval=$with_working_dir;
16698        if test "x$withval" != "xno" ; then
16699               working_dir=$withval
16700        fi
16701
16702
16703 fi
16704
16705
16706
16707
16708 # ------------------------------------------------------------------
16709 # If the user has not set archivedir, we set our default as /tmp
16710 # ------------------------------------------------------------------
16711 archive_dir=/tmp
16712
16713 # Check whether --with-archivedir was given.
16714 if test "${with_archivedir+set}" = set; then
16715   withval=$with_archivedir;
16716        if test "x$withval" != "xno" ; then
16717               archivedir=$withval
16718        fi
16719
16720
16721 fi
16722
16723
16724
16725
16726
16727
16728 # ------------------------------------------
16729 # Where to place scriptdir (script files)
16730 # ------------------------------------------
16731 scriptdir=`eval echo ${sysconfdir}`
16732
16733 # Check whether --with-scriptdir was given.
16734 if test "${with_scriptdir+set}" = set; then
16735   withval=$with_scriptdir;
16736        if test "x$withval" != "xno" ; then
16737               scriptdir=$withval
16738        fi
16739
16740
16741 fi
16742
16743
16744
16745
16746
16747 # ------------------------------------------
16748 # Where to send dump email
16749 # ------------------------------------------
16750 dump_email=root@localhost
16751
16752 # Check whether --with-dump-email was given.
16753 if test "${with_dump_email+set}" = set; then
16754   withval=$with_dump_email;
16755        if test "x$withval" != "xno" ; then
16756               dump_email=$withval
16757        fi
16758
16759
16760 fi
16761
16762
16763
16764
16765 # ------------------------------------------
16766 # Where to send job email
16767 # ------------------------------------------
16768 job_email=root@localhost
16769
16770 # Check whether --with-job-email was given.
16771 if test "${with_job_email+set}" = set; then
16772   withval=$with_job_email;
16773        if test "x$withval" != "xno" ; then
16774               job_email=$withval
16775        fi
16776
16777
16778 fi
16779
16780
16781
16782
16783 # ------------------------------------------
16784 # Where to find smtp host
16785 # ------------------------------------------
16786 smtp_host=localhost
16787
16788 # Check whether --with-smtp_host was given.
16789 if test "${with_smtp_host+set}" = set; then
16790   withval=$with_smtp_host;
16791        if test "x$withval" != "xno" ; then
16792               smtp_host=$withval
16793        fi
16794
16795
16796 fi
16797
16798
16799
16800
16801
16802 # ------------------------------------
16803 # Where to place pid files
16804 # ------------------------------------
16805 piddir=/var/run
16806
16807 # Check whether --with-pid-dir was given.
16808 if test "${with_pid_dir+set}" = set; then
16809   withval=$with_pid_dir;
16810         if test "x$withval" != "xno" ; then
16811             piddir=$withval
16812         fi
16813
16814
16815 fi
16816
16817
16818 cat >>confdefs.h <<_ACEOF
16819 #define _PATH_BACULA_PIDDIR "$piddir"
16820 _ACEOF
16821
16822
16823
16824
16825 # ------------------------------------
16826 # Where to place subsys "lock file"
16827 # ------------------------------------
16828 subsysdir=/var/run/subsys
16829 if test -d /var/run/subsys; then
16830    subsysdir=/var/run/subsys
16831 elif test -d /var/lock/subsys; then
16832    subsysdir=/var/lock/subsys
16833 else
16834    subsysdir=/var/run/subsys
16835 fi
16836
16837 # Check whether --with-subsys-dir was given.
16838 if test "${with_subsys_dir+set}" = set; then
16839   withval=$with_subsys_dir;
16840         if test "x$withval" != "xno" ; then
16841             subsysdir=$withval
16842         fi
16843
16844
16845 fi
16846
16847
16848
16849
16850
16851
16852 # ------------------------------------
16853 # Where to start assigning ports
16854 # ------------------------------------
16855 baseport=9101
16856
16857 # Check whether --with-baseport was given.
16858 if test "${with_baseport+set}" = set; then
16859   withval=$with_baseport;
16860         if test "x$withval" != "xno" ; then
16861              baseport=$withval
16862         fi
16863
16864
16865 fi
16866
16867
16868
16869 dir_port=`expr $baseport`
16870 fd_port=`expr $baseport + 1`
16871 sd_port=`expr $fd_port + 1`
16872
16873
16874
16875
16876
16877
16878 # ------------------------------------------
16879 # Generate passwords
16880 # ------------------------------------------
16881 dir_password=
16882
16883 # Check whether --with-dir-password was given.
16884 if test "${with_dir_password+set}" = set; then
16885   withval=$with_dir_password;
16886        if test "x$withval" != "xno" ; then
16887            dir_password=$withval
16888        fi
16889
16890
16891 fi
16892
16893
16894 if test "x$dir_password" = "x" ; then
16895    if test "x$OPENSSL" = "xnone" ; then
16896       key=`autoconf/randpass 33`
16897    else
16898       key=`openssl rand -base64 33`
16899    fi
16900    dir_password=$key
16901 fi
16902
16903 fd_password=
16904
16905 # Check whether --with-fd-password was given.
16906 if test "${with_fd_password+set}" = set; then
16907   withval=$with_fd_password;
16908        if test "x$withval" != "xno" ; then
16909            fd_password=$withval
16910        fi
16911
16912
16913 fi
16914
16915
16916 if test "x$fd_password" = "x" ; then
16917    if test "x$OPENSSL" = "xnone" ; then
16918       key=`autoconf/randpass 37`
16919    else
16920       key=`openssl rand -base64 33`
16921    fi
16922    fd_password=$key
16923 fi
16924
16925 sd_password=
16926
16927 # Check whether --with-sd-password was given.
16928 if test "${with_sd_password+set}" = set; then
16929   withval=$with_sd_password;
16930        if test "x$withval" != "xno" ; then
16931            sd_password=$withval
16932        fi
16933
16934
16935 fi
16936
16937
16938 if test "x$sd_password" = "x" ; then
16939    if test "x$OPENSSL" = "xnone" ; then
16940       key=`autoconf/randpass 41`
16941    else
16942       key=`openssl rand -base64 33`
16943    fi
16944    sd_password=$key
16945 fi
16946
16947 mon_dir_password=
16948
16949 # Check whether --with-mon-dir-password was given.
16950 if test "${with_mon_dir_password+set}" = set; then
16951   withval=$with_mon_dir_password;
16952        if test "x$withval" != "xno" ; then
16953            mon_dir_password=$withval
16954        fi
16955
16956
16957 fi
16958
16959
16960 if test "x$mon_dir_password" = "x" ; then
16961    if test "x$OPENSSL" = "xnone" ; then
16962       key=`autoconf/randpass 33`
16963    else
16964       key=`openssl rand -base64 33`
16965    fi
16966    mon_dir_password=$key
16967 fi
16968
16969 mon_fd_password=
16970
16971 # Check whether --with-mon-fd-password was given.
16972 if test "${with_mon_fd_password+set}" = set; then
16973   withval=$with_mon_fd_password;
16974        if test "x$withval" != "xno" ; then
16975            mon_fd_password=$withval
16976        fi
16977
16978
16979 fi
16980
16981
16982 if test "x$mon_fd_password" = "x" ; then
16983    if test "x$OPENSSL" = "xnone" ; then
16984       key=`autoconf/randpass 37`
16985    else
16986       key=`openssl rand -base64 33`
16987    fi
16988    mon_fd_password=$key
16989 fi
16990
16991 mon_sd_password=
16992
16993 # Check whether --with-mon-sd-password was given.
16994 if test "${with_mon_sd_password+set}" = set; then
16995   withval=$with_mon_sd_password;
16996        if test "x$withval" != "xno" ; then
16997            mon_sd_password=$withval
16998        fi
16999
17000
17001 fi
17002
17003
17004 if test "x$mon_sd_password" = "x" ; then
17005    if test "x$OPENSSL" = "xnone" ; then
17006       key=`autoconf/randpass 41`
17007    else
17008       key=`openssl rand -base64 33`
17009    fi
17010    mon_sd_password=$key
17011 fi
17012
17013
17014
17015
17016
17017
17018
17019
17020 #
17021 # Pickup any database name
17022 #
17023 db_name=bacula
17024
17025 # Check whether --with-db_name was given.
17026 if test "${with_db_name+set}" = set; then
17027   withval=$with_db_name;
17028         if test "x$withval" != "x" ; then
17029              db_name=$withval
17030         fi
17031
17032
17033 fi
17034
17035
17036
17037 db_user=bacula
17038
17039 # Check whether --with-db_user was given.
17040 if test "${with_db_user+set}" = set; then
17041   withval=$with_db_user;
17042         if test "x$withval" != "x" ; then
17043              db_user=$withval
17044         fi
17045
17046
17047 fi
17048
17049
17050
17051
17052 #
17053 # Handle users and groups for each daemon
17054 #
17055 dir_user=
17056
17057 # Check whether --with-dir_user was given.
17058 if test "${with_dir_user+set}" = set; then
17059   withval=$with_dir_user;
17060         if test "x$withval" != "x" ; then
17061              dir_user=$withval
17062         fi
17063
17064
17065 fi
17066
17067
17068 dir_group=
17069
17070 # Check whether --with-dir_group was given.
17071 if test "${with_dir_group+set}" = set; then
17072   withval=$with_dir_group;
17073         if test "x$withval" != "x" ; then
17074              dir_group=$withval
17075         fi
17076
17077
17078 fi
17079
17080
17081 sd_user=
17082
17083 # Check whether --with-sd_user was given.
17084 if test "${with_sd_user+set}" = set; then
17085   withval=$with_sd_user;
17086         if test "x$withval" != "x" ; then
17087              sd_user=$withval
17088         fi
17089
17090
17091 fi
17092
17093
17094 sd_group=
17095
17096 # Check whether --with-sd_group was given.
17097 if test "${with_sd_group+set}" = set; then
17098   withval=$with_sd_group;
17099         if test "x$withval" != "x" ; then
17100              sd_group=$withval
17101         fi
17102
17103
17104 fi
17105
17106
17107 fd_user=
17108
17109 # Check whether --with-fd_user was given.
17110 if test "${with_fd_user+set}" = set; then
17111   withval=$with_fd_user;
17112         if test "x$withval" != "x" ; then
17113              fd_user=$withval
17114         fi
17115
17116
17117 fi
17118
17119
17120 fd_group=
17121
17122 # Check whether --with-fd_group was given.
17123 if test "${with_fd_group+set}" = set; then
17124   withval=$with_fd_group;
17125         if test "x$withval" != "x" ; then
17126              fd_group=$withval
17127         fi
17128
17129
17130 fi
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140 #
17141 # allow setting default executable permissions
17142 #
17143 SBINPERM=0754
17144
17145 # Check whether --with-sbin-perm was given.
17146 if test "${with_sbin_perm+set}" = set; then
17147   withval=$with_sbin_perm;
17148         if test "x$withval" != "x" ; then
17149             SBINPERM=$withval
17150         fi
17151
17152
17153 fi
17154
17155
17156
17157
17158 # ------------------------------------------------
17159 # Bacula check for various SQL database engines
17160 # ------------------------------------------------
17161 SQL_LIB=
17162
17163 db_found=no
17164 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17165 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17166
17167 # Check whether --with-postgresql was given.
17168 if test "${with_postgresql+set}" = set; then
17169   withval=$with_postgresql;
17170   if test "$withval" != "no"; then
17171       if test "$db_found" = "yes"; then
17172           { echo "$as_me:$LINENO: result: error" >&5
17173 echo "${ECHO_T}error" >&6; }
17174           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17175 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17176    { (exit 1); exit 1; }; };
17177       fi
17178       if test "$withval" = "yes"; then
17179           PG_CONFIG=`which pg_config`
17180           if test -n "$PG_CONFIG";then
17181               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17182               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17183               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17184           elif test -f /usr/local/include/libpq-fe.h; then
17185               POSTGRESQL_INCDIR=/usr/local/include
17186               if test -d /usr/local/lib64; then
17187                  POSTGRESQL_LIBDIR=/usr/local/lib64
17188               else
17189                  POSTGRESQL_LIBDIR=/usr/local/lib
17190               fi
17191               POSTGRESQL_BINDIR=/usr/local/bin
17192           elif test -f /usr/include/libpq-fe.h; then
17193               POSTGRESQL_INCDIR=/usr/include
17194               if test -d /usr/lib64; then
17195                  POSTGRESQL_LIBDIR=/usr/lib64
17196               else
17197                  POSTGRESQL_LIBDIR=/usr/lib
17198               fi
17199               POSTGRESQL_BINDIR=/usr/bin
17200           elif test -f /usr/include/pgsql/libpq-fe.h; then
17201               POSTGRESQL_INCDIR=/usr/include/pgsql
17202               if test -d /usr/lib64/pgsql; then
17203                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17204               else
17205                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
17206               fi
17207               POSTGRESQL_BINDIR=/usr/bin
17208           elif test -f /usr/include/postgresql/libpq-fe.h; then
17209               POSTGRESQL_INCDIR=/usr/include/postgresql
17210               if test -d /usr/lib64/postgresql; then
17211                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17212               else
17213                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
17214               fi
17215               POSTGRESQL_BINDIR=/usr/bin
17216           else
17217               { echo "$as_me:$LINENO: result: no" >&5
17218 echo "${ECHO_T}no" >&6; }
17219               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17220 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17221    { (exit 1); exit 1; }; }
17222           fi
17223       elif test -f $withval/include/libpq-fe.h; then
17224           POSTGRESQL_INCDIR=$withval/include
17225           POSTGRESQL_LIBDIR=$withval/lib
17226           POSTGRESQL_BINDIR=$withval/bin
17227       elif test -f $withval/include/postgresql/libpq-fe.h; then
17228           POSTGRESQL_INCDIR=$withval/include/postgresql
17229      if test -d $withval/lib64; then
17230          POSTGRESQL_LIBDIR=$withval/lib64
17231      else
17232          POSTGRESQL_LIBDIR=$withval/lib
17233      fi
17234           POSTGRESQL_BINDIR=$withval/bin
17235       else
17236           { echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6; }
17238           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17239 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17240    { (exit 1); exit 1; }; }
17241       fi
17242       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17243       { echo "$as_me:$LINENO: checking for crypt" >&5
17244 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17245 if test "${ac_cv_func_crypt+set}" = set; then
17246   echo $ECHO_N "(cached) $ECHO_C" >&6
17247 else
17248   cat >conftest.$ac_ext <<_ACEOF
17249 /* confdefs.h.  */
17250 _ACEOF
17251 cat confdefs.h >>conftest.$ac_ext
17252 cat >>conftest.$ac_ext <<_ACEOF
17253 /* end confdefs.h.  */
17254 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17255    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17256 #define crypt innocuous_crypt
17257
17258 /* System header to define __stub macros and hopefully few prototypes,
17259     which can conflict with char crypt (); below.
17260     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17261     <limits.h> exists even on freestanding compilers.  */
17262
17263 #ifdef __STDC__
17264 # include <limits.h>
17265 #else
17266 # include <assert.h>
17267 #endif
17268
17269 #undef crypt
17270
17271 /* Override any GCC internal prototype to avoid an error.
17272    Use char because int might match the return type of a GCC
17273    builtin and then its argument prototype would still apply.  */
17274 #ifdef __cplusplus
17275 extern "C"
17276 #endif
17277 char crypt ();
17278 /* The GNU C library defines this for functions which it implements
17279     to always fail with ENOSYS.  Some functions are actually named
17280     something starting with __ and the normal name is an alias.  */
17281 #if defined __stub_crypt || defined __stub___crypt
17282 choke me
17283 #endif
17284
17285 int
17286 main ()
17287 {
17288 return crypt ();
17289   ;
17290   return 0;
17291 }
17292 _ACEOF
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297   *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300   (eval "$ac_link") 2>conftest.er1
17301   ac_status=$?
17302   grep -v '^ *+' conftest.er1 >conftest.err
17303   rm -f conftest.er1
17304   cat conftest.err >&5
17305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306   (exit $ac_status); } && {
17307          test -z "$ac_c_werror_flag" ||
17308          test ! -s conftest.err
17309        } && test -s conftest$ac_exeext &&
17310        $as_test_x conftest$ac_exeext; then
17311   ac_cv_func_crypt=yes
17312 else
17313   echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17315
17316         ac_cv_func_crypt=no
17317 fi
17318
17319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17320       conftest$ac_exeext conftest.$ac_ext
17321 fi
17322 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17323 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17324 if test $ac_cv_func_crypt = yes; then
17325   :
17326 else
17327   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17328 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17329 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17330   echo $ECHO_N "(cached) $ECHO_C" >&6
17331 else
17332   ac_check_lib_save_LIBS=$LIBS
17333 LIBS="-lcrypt  $LIBS"
17334 cat >conftest.$ac_ext <<_ACEOF
17335 /* confdefs.h.  */
17336 _ACEOF
17337 cat confdefs.h >>conftest.$ac_ext
17338 cat >>conftest.$ac_ext <<_ACEOF
17339 /* end confdefs.h.  */
17340
17341 /* Override any GCC internal prototype to avoid an error.
17342    Use char because int might match the return type of a GCC
17343    builtin and then its argument prototype would still apply.  */
17344 #ifdef __cplusplus
17345 extern "C"
17346 #endif
17347 char crypt ();
17348 int
17349 main ()
17350 {
17351 return crypt ();
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext conftest$ac_exeext
17357 if { (ac_try="$ac_link"
17358 case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_link") 2>conftest.er1
17364   ac_status=$?
17365   grep -v '^ *+' conftest.er1 >conftest.err
17366   rm -f conftest.er1
17367   cat conftest.err >&5
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } && {
17370          test -z "$ac_c_werror_flag" ||
17371          test ! -s conftest.err
17372        } && test -s conftest$ac_exeext &&
17373        $as_test_x conftest$ac_exeext; then
17374   ac_cv_lib_crypt_crypt=yes
17375 else
17376   echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379         ac_cv_lib_crypt_crypt=no
17380 fi
17381
17382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17383       conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17385 fi
17386 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17387 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17388 if test $ac_cv_lib_crypt_crypt = yes; then
17389   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17390 fi
17391
17392 fi
17393
17394       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17395       SQL_LFLAGS=$POSTGRESQL_LFLAGS
17396       SQL_BINDIR=$POSTGRESQL_BINDIR
17397       SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17398
17399       cat >>confdefs.h <<\_ACEOF
17400 #define HAVE_POSTGRESQL 1
17401 _ACEOF
17402
17403       { echo "$as_me:$LINENO: result: yes" >&5
17404 echo "${ECHO_T}yes" >&6; }
17405       db_found=yes
17406       support_postgresql=yes
17407       db_type=PostgreSQL
17408       DB_TYPE=postgresql
17409   else
17410       { echo "$as_me:$LINENO: result: no" >&5
17411 echo "${ECHO_T}no" >&6; }
17412   fi
17413
17414 else
17415
17416   { echo "$as_me:$LINENO: result: no" >&5
17417 echo "${ECHO_T}no" >&6; }
17418
17419 fi
17420
17421
17422
17423
17424
17425
17426
17427
17428 db_found=no
17429 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17430 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17431
17432 # Check whether --with-mysql was given.
17433 if test "${with_mysql+set}" = set; then
17434   withval=$with_mysql;
17435   if test "$withval" != "no"; then
17436         if test "$withval" = "yes"; then
17437            if test -f /usr/local/mysql/include/mysql/mysql.h; then
17438                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
17439                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17440                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17441                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17442                    else
17443                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17444                    fi
17445                    MYSQL_BINDIR=/usr/local/mysql/bin
17446            elif test -f /usr/include/mysql/mysql.h; then
17447                    MYSQL_INCDIR=/usr/include/mysql
17448                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17449                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17450                            MYSQL_LIBDIR=/usr/lib64/mysql
17451                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17452                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17453                            MYSQL_LIBDIR=/usr/lib/mysql
17454                    else
17455                            MYSQL_LIBDIR=/usr/lib
17456                    fi
17457                    MYSQL_BINDIR=/usr/bin
17458            elif test -f /usr/include/mysql.h; then
17459                    MYSQL_INCDIR=/usr/include
17460                    if test -f /usr/lib64/libmysqlclient_r.a \
17461                         -o -f /usr/lib64/libmysqlclient_r.so; then
17462                            MYSQL_LIBDIR=/usr/lib64
17463                    else
17464                            MYSQL_LIBDIR=/usr/lib
17465                    fi
17466                    MYSQL_BINDIR=/usr/bin
17467            elif test -f /usr/local/include/mysql/mysql.h; then
17468                    MYSQL_INCDIR=/usr/local/include/mysql
17469                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17470                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17471                            MYSQL_LIBDIR=/usr/local/lib64/mysql
17472                    else
17473                            MYSQL_LIBDIR=/usr/local/lib/mysql
17474                    fi
17475                    MYSQL_BINDIR=/usr/local/bin
17476            elif test -f /usr/local/include/mysql.h; then
17477                    MYSQL_INCDIR=/usr/local/include
17478                    if test -f /usr/local/lib64/libmysqlclient_r.a \
17479                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
17480                            MYSQL_LIBDIR=/usr/local/lib64
17481                    else
17482                            MYSQL_LIBDIR=/usr/local/lib
17483                    fi
17484                    MYSQL_BINDIR=/usr/local/bin
17485            else
17486               { echo "$as_me:$LINENO: result: no" >&5
17487 echo "${ECHO_T}no" >&6; }
17488               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17489 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17490    { (exit 1); exit 1; }; }
17491            fi
17492         else
17493            if test -f $withval/include/mysql/mysql.h; then
17494               MYSQL_INCDIR=$withval/include/mysql
17495               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17496                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17497                  MYSQL_LIBDIR=$withval/lib64/mysql
17498               else
17499                  MYSQL_LIBDIR=$withval/lib/mysql
17500                  # Solaris ...
17501                  if test -f $withval/lib/libmysqlclient_r.so; then
17502                     MYSQL_LIBDIR=$withval/lib
17503                  fi
17504               fi
17505               MYSQL_BINDIR=$withval/bin
17506            elif test -f $withval/include/mysql.h; then
17507               MYSQL_INCDIR=$withval/include
17508               if test -f $withval/lib64/libmysqlclient_r.a \
17509                    -o -f $withval/lib64/libmysqlclient_r.so; then
17510                  MYSQL_LIBDIR=$withval/lib64
17511               else
17512                  MYSQL_LIBDIR=$withval/lib
17513               fi
17514               MYSQL_BINDIR=$withval/bin
17515            else
17516               { echo "$as_me:$LINENO: result: no" >&5
17517 echo "${ECHO_T}no" >&6; }
17518               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17519 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17520    { (exit 1); exit 1; }; }
17521            fi
17522         fi
17523     SQL_INCLUDE=-I$MYSQL_INCDIR
17524     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17525          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17526        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17527        cat >>confdefs.h <<\_ACEOF
17528 #define HAVE_THREAD_SAFE_MYSQL 1
17529 _ACEOF
17530
17531     fi
17532     SQL_BINDIR=$MYSQL_BINDIR
17533     SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17534
17535     cat >>confdefs.h <<\_ACEOF
17536 #define HAVE_MYSQL 1
17537 _ACEOF
17538
17539     { echo "$as_me:$LINENO: result: yes" >&5
17540 echo "${ECHO_T}yes" >&6; }
17541     db_found=yes
17542     support_mysql=yes
17543     db_type=MySQL
17544     DB_TYPE=mysql
17545
17546   else
17547         { echo "$as_me:$LINENO: result: no" >&5
17548 echo "${ECHO_T}no" >&6; }
17549   fi
17550
17551
17552 fi
17553
17554
17555
17556 # Check whether --with-embedded-mysql was given.
17557 if test "${with_embedded_mysql+set}" = set; then
17558   withval=$with_embedded_mysql;
17559   if test "$withval" != "no"; then
17560         if test "$withval" = "yes"; then
17561                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17562                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
17563                         if test -d /usr/local/mysql/lib64/mysql; then
17564                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17565                         else
17566                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17567                         fi
17568                         MYSQL_BINDIR=/usr/local/mysql/bin
17569                 elif test -f /usr/include/mysql/mysql.h; then
17570                         MYSQL_INCDIR=/usr/include/mysql
17571                         if test -d /usr/lib64/mysql; then
17572                                 MYSQL_LIBDIR=/usr/lib64/mysql
17573                         else
17574                                 MYSQL_LIBDIR=/usr/lib/mysql
17575                         fi
17576                         MYSQL_BINDIR=/usr/bin
17577                 elif test -f /usr/include/mysql.h; then
17578                         MYSQL_INCDIR=/usr/include
17579                         if test -d /usr/lib64; then
17580                                 MYSQL_LIBDIR=/usr/lib64
17581                         else
17582                                 MYSQL_LIBDIR=/usr/lib
17583                         fi
17584                         MYSQL_BINDIR=/usr/bin
17585                 elif test -f /usr/local/include/mysql/mysql.h; then
17586                         MYSQL_INCDIR=/usr/local/include/mysql
17587                         if test -d /usr/local/lib64/mysql; then
17588                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
17589                         else
17590                                 MYSQL_LIBDIR=/usr/local/lib/mysql
17591                         fi
17592                         MYSQL_BINDIR=/usr/local/bin
17593                 elif test -f /usr/local/include/mysql.h; then
17594                         MYSQL_INCDIR=/usr/local/include
17595                         if test -d /usr/local/lib64; then
17596                                 MYSQL_LIBDIR=/usr/local/lib64
17597                         else
17598                                 MYSQL_LIBDIR=/usr/local/lib
17599                         fi
17600                         MYSQL_BINDIR=/usr/local/bin
17601                 else
17602                    { echo "$as_me:$LINENO: result: no" >&5
17603 echo "${ECHO_T}no" >&6; }
17604                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17605 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17606    { (exit 1); exit 1; }; }
17607                 fi
17608         else
17609                 if test -f $withval/include/mysql/mysql.h; then
17610                         MYSQL_INCDIR=$withval/include/mysql
17611                         if test -d $withval/lib64/mysql; then
17612                                 MYSQL_LIBDIR=$withval/lib64/mysql
17613                         else
17614                                 MYSQL_LIBDIR=$withval/lib/mysql
17615                         fi
17616                         MYSQL_BINDIR=$withval/bin
17617                 elif test -f $withval/include/mysql.h; then
17618                         MYSQL_INCDIR=$withval/include
17619                         if test -d $withval/lib64; then
17620                                 MYSQL_LIBDIR=$withval/lib64
17621                         else
17622                                 MYSQL_LIBDIR=$withval/lib
17623                         fi
17624                         MYSQL_BINDIR=$withval/bin
17625                 else
17626                    { echo "$as_me:$LINENO: result: no" >&5
17627 echo "${ECHO_T}no" >&6; }
17628                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17629 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17630    { (exit 1); exit 1; }; }
17631                 fi
17632         fi
17633     SQL_INCLUDE=-I$MYSQL_INCDIR
17634     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17635     SQL_BINDIR=$MYSQL_BINDIR
17636     SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17637
17638     cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_MYSQL 1
17640 _ACEOF
17641
17642     cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_EMBEDDED_MYSQL 1
17644 _ACEOF
17645
17646     { echo "$as_me:$LINENO: result: yes" >&5
17647 echo "${ECHO_T}yes" >&6; }
17648     db_found=yes
17649     support_mysql=yes
17650     db_type=MySQL
17651     DB_TYPE=mysql
17652
17653   else
17654         { echo "$as_me:$LINENO: result: no" >&5
17655 echo "${ECHO_T}no" >&6; }
17656   fi
17657
17658
17659 fi
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670 db_found=no
17671 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17672 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17673
17674 # Check whether --with-sqlite3 was given.
17675 if test "${with_sqlite3+set}" = set; then
17676   withval=$with_sqlite3;
17677   if test "$withval" != "no"; then
17678      if test "$withval" = "yes"; then
17679         if test -f /usr/local/include/sqlite3.h; then
17680            SQLITE_INCDIR=/usr/local/include
17681            if test -d /usr/local/lib64; then
17682               SQLITE_LIBDIR=/usr/local/lib64
17683            else
17684               SQLITE_LIBDIR=/usr/local/lib
17685            fi
17686            SQLITE_BINDIR=/usr/local/bin
17687         elif test -f /usr/include/sqlite3.h; then
17688            SQLITE_INCDIR=/usr/include
17689            if test -d /usr/lib64; then
17690               SQLITE_LIBDIR=/usr/lib64
17691            else
17692               SQLITE_LIBDIR=/usr/lib
17693            fi
17694            SQLITE_BINDIR=/usr/bin
17695         elif test -f $prefix/include/sqlite3.h; then
17696            SQLITE_INCDIR=$prefix/include
17697            if test -d $prefix/lib64; then
17698               SQLITE_LIBDIR=$prefix/lib64
17699            else
17700               SQLITE_LIBDIR=$prefix/lib
17701            fi
17702            SQLITE_BINDIR=$prefix/bin
17703         else
17704            { echo "$as_me:$LINENO: result: no" >&5
17705 echo "${ECHO_T}no" >&6; }
17706            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17707 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17708    { (exit 1); exit 1; }; }
17709         fi
17710      else
17711         if test -f $withval/sqlite3.h; then
17712            SQLITE_INCDIR=$withval
17713            SQLITE_LIBDIR=$withval
17714            SQLITE_BINDIR=$withval
17715         elif test -f $withval/include/sqlite3.h; then
17716            SQLITE_INCDIR=$withval/include
17717            if test -d $withval/lib64; then
17718               SQLITE_LIBDIR=$withval/lib64
17719            else
17720               SQLITE_LIBDIR=$withval/lib
17721            fi
17722            SQLITE_BINDIR=$withval/bin
17723         else
17724            { echo "$as_me:$LINENO: result: no" >&5
17725 echo "${ECHO_T}no" >&6; }
17726            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17727 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17728    { (exit 1); exit 1; }; }
17729         fi
17730      fi
17731      SQL_INCLUDE=-I$SQLITE_INCDIR
17732      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17733      SQL_BINDIR=$SQLITE_BINDIR
17734      SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17735
17736      cat >>confdefs.h <<\_ACEOF
17737 #define HAVE_SQLITE3 1
17738 _ACEOF
17739
17740      { echo "$as_me:$LINENO: result: yes" >&5
17741 echo "${ECHO_T}yes" >&6; }
17742      db_found=yes
17743      support_sqlite3=yes
17744      db_type=SQLite3
17745      DB_TYPE=sqlite3
17746
17747   else
17748      { echo "$as_me:$LINENO: result: no" >&5
17749 echo "${ECHO_T}no" >&6; }
17750   fi
17751
17752 else
17753
17754   { echo "$as_me:$LINENO: result: no" >&5
17755 echo "${ECHO_T}no" >&6; }
17756
17757 fi
17758
17759
17760
17761
17762
17763
17764
17765
17766 db_found=no
17767 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17768 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17769
17770 # Check whether --with-sqlite was given.
17771 if test "${with_sqlite+set}" = set; then
17772   withval=$with_sqlite;
17773   if test "$withval" != "no"; then
17774      if test "$withval" = "yes"; then
17775         if test -f /usr/local/include/sqlite.h; then
17776            SQLITE_INCDIR=/usr/local/include
17777            if test -d /usr/local/lib64; then
17778               SQLITE_LIBDIR=/usr/local/lib64
17779            else
17780               SQLITE_LIBDIR=/usr/local/lib
17781            fi
17782            SQLITE_BINDIR=/usr/local/bin
17783         elif test -f /usr/include/sqlite.h; then
17784            SQLITE_INCDIR=/usr/include
17785            if test -d /usr/lib64; then
17786               SQLITE_LIBDIR=/usr/lib64
17787            else
17788               SQLITE_LIBDIR=/usr/lib
17789            fi
17790            SQLITE_BINDIR=/usr/bin
17791         elif test -f $prefix/include/sqlite.h; then
17792            SQLITE_INCDIR=$prefix/include
17793            if test -d $prefix/lib64; then
17794               SQLITE_LIBDIR=$prefix/lib64
17795            else
17796               SQLITE_LIBDIR=$prefix/lib
17797            fi
17798            SQLITE_BINDIR=$prefix/bin
17799         else
17800            { echo "$as_me:$LINENO: result: no" >&5
17801 echo "${ECHO_T}no" >&6; }
17802            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17803 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17804    { (exit 1); exit 1; }; }
17805         fi
17806      else
17807         if test -f $withval/sqlite.h; then
17808            SQLITE_INCDIR=$withval
17809            SQLITE_LIBDIR=$withval
17810            SQLITE_BINDIR=$withval
17811         elif test -f $withval/include/sqlite.h; then
17812            SQLITE_INCDIR=$withval/include
17813            if test -d $withval/lib64; then
17814               SQLITE_LIBDIR=$withval/lib64
17815            else
17816               SQLITE_LIBDIR=$withval/lib
17817            fi
17818            SQLITE_BINDIR=$withval/bin
17819         else
17820            { echo "$as_me:$LINENO: result: no" >&5
17821 echo "${ECHO_T}no" >&6; }
17822            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17823 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17824    { (exit 1); exit 1; }; }
17825         fi
17826      fi
17827      SQL_INCLUDE=-I$SQLITE_INCDIR
17828      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17829      SQL_BINDIR=$SQLITE_BINDIR
17830      SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17831
17832      cat >>confdefs.h <<\_ACEOF
17833 #define HAVE_SQLITE 1
17834 _ACEOF
17835
17836      { echo "$as_me:$LINENO: result: yes" >&5
17837 echo "${ECHO_T}yes" >&6; }
17838      db_found=yes
17839      support_sqlite=yes
17840      db_type=SQLite
17841      DB_TYPE=sqlite
17842
17843   else
17844      { echo "$as_me:$LINENO: result: no" >&5
17845 echo "${ECHO_T}no" >&6; }
17846   fi
17847
17848 else
17849
17850   { echo "$as_me:$LINENO: result: no" >&5
17851 echo "${ECHO_T}no" >&6; }
17852
17853 fi
17854
17855
17856
17857
17858
17859
17860
17861
17862 db_found=no
17863 { echo "$as_me:$LINENO: checking for DBI support" >&5
17864 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
17865
17866 # Check whether --with-dbi was given.
17867 if test "${with_dbi+set}" = set; then
17868   withval=$with_dbi;
17869   if test "$withval" != "no"; then
17870      if test "$withval" = "yes"; then
17871         if test -f /usr/local/include/dbi/dbi.h; then
17872            DBI_INCDIR=/usr/local/dbi/include
17873            if test -d /usr/local/lib64; then
17874               DBI_LIBDIR=/usr/local/lib64
17875            else
17876               DBI_LIBDIR=/usr/local/lib
17877            fi
17878            DBI_BINDIR=/usr/local/bin
17879         elif test -f /usr/include/dbi/dbi.h; then
17880            DBI_INCDIR=/usr/include
17881            if test -d /usr/lib64; then
17882               DBI_LIBDIR=/usr/lib64
17883            else
17884               DBI_LIBDIR=/usr/lib
17885            fi
17886            DBI_BINDIR=/usr/bin
17887         elif test -f $prefix/include/dbi/dbi.h; then
17888            DBI_INCDIR=$prefix/include
17889            if test -d $prefix/lib64; then
17890               DBI_LIBDIR=$prefix/lib64
17891            else
17892               DBI_LIBDIR=$prefix/lib
17893            fi
17894            DBI_BINDIR=$prefix/bin
17895         else
17896            { echo "$as_me:$LINENO: result: no" >&5
17897 echo "${ECHO_T}no" >&6; }
17898            { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
17899 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
17900    { (exit 1); exit 1; }; }
17901         fi
17902         if test -d /usr/local/lib/dbd; then
17903            DRIVERDIR=/usr/local/lib/dbd
17904            if test -d /usr/local/lib64/dbd; then
17905               DRIVERDIR=/usr/local/lib64/dbd
17906            else
17907               DRIVERDIR=/usr/local/lib/dbd
17908            fi
17909         elif test -d /usr/lib/dbd; then
17910            DRIVERDIR=/usr/lib/dbd
17911            if test -d /usr/lib64/dbd; then
17912               DRIVERDIR=/usr/lib64/dbd
17913            else
17914               DRIVERDIR=/usr/lib/dbd
17915            fi
17916         elif test -d $prefix/lib/dbd; then
17917            if test -d $prefix/lib64/dbd; then
17918               DRIVERDIR=$prefix/lib64/dbd
17919            else
17920               DRIVERDIR=$prefix/lib/dbd
17921            fi
17922         else
17923            { echo "$as_me:$LINENO: result: no" >&5
17924 echo "${ECHO_T}no" >&6; }
17925            { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
17926 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
17927    { (exit 1); exit 1; }; }
17928         fi
17929      else
17930         if test -f $withval/dbi.h; then
17931            DBI_INCDIR=$withval
17932            DBI_LIBDIR=$withval
17933            DBI_BINDIR=$withval
17934         elif test -f $withval/include/dbi/dbi.h; then
17935            DBI_INCDIR=$withval/include
17936            if test -d $withval/lib64; then
17937               DBI_LIBDIR=$withval/lib64
17938            else
17939               DBI_LIBDIR=$withval/lib
17940            fi
17941            DBI_BINDIR=$withval/bin
17942         else
17943            { echo "$as_me:$LINENO: result: no" >&5
17944 echo "${ECHO_T}no" >&6; }
17945            { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
17946 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
17947    { (exit 1); exit 1; }; }
17948         fi
17949         if test -d $withval/dbd; then
17950            DRIVERDIR=$withval/dbd
17951         elif test -d $withval/lib/; then
17952            if test -d $withval/lib64/dbd; then
17953               DRIVERDIR=$withval/lib64/dbd
17954            else
17955               DRIVERDIR=$withval/lib/dbd
17956            fi
17957         else
17958            { echo "$as_me:$LINENO: result: no" >&5
17959 echo "${ECHO_T}no" >&6; }
17960            { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
17961 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
17962    { (exit 1); exit 1; }; }
17963         fi
17964      fi
17965      SQL_INCLUDE=-I$DBI_INCDIR
17966      SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
17967      SQL_BINDIR=$DBI_BINDIR
17968      SQL_LIB=$DBI_LIBDIR/libdbi.a
17969      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
17970
17971
17972 cat >>confdefs.h <<\_ACEOF
17973 #define HAVE_DBI 1
17974 _ACEOF
17975
17976      { echo "$as_me:$LINENO: result: yes" >&5
17977 echo "${ECHO_T}yes" >&6; }
17978      db_found=yes
17979      support_dbi=yes
17980      db_type=DBI
17981      DB_TYPE=dbi
17982
17983   else
17984      { echo "$as_me:$LINENO: result: no" >&5
17985 echo "${ECHO_T}no" >&6; }
17986   fi
17987
17988 else
17989
17990   { echo "$as_me:$LINENO: result: no" >&5
17991 echo "${ECHO_T}no" >&6; }
17992
17993 fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003 db_found=no
18004 db_prog=no
18005 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
18006 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
18007
18008 # Check whether --with-dbi-driver was given.
18009 if test "${with_dbi_driver+set}" = set; then
18010   withval=$with_dbi_driver;
18011   if test "$withval" != "no"; then
18012      case $withval in
18013         "mysql")
18014            db_prog="mysql"
18015            if test -f /usr/local/mysql/bin/mysql; then
18016               SQL_BINDIR=/usr/local/mysql/bin
18017            elif test -f /usr/bin/mysql; then
18018               SQL_BINDIR=/usr/bin
18019            elif test -f /usr/local/bin/mysql; then
18020               SQL_BINDIR=/usr/local/bin
18021            else
18022               { echo "$as_me:$LINENO: result: no" >&5
18023 echo "${ECHO_T}no" >&6; }
18024               { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
18025 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
18026    { (exit 1); exit 1; }; }
18027            fi
18028         ;;
18029         "postgresql")
18030            db_prog="postgresql"
18031            PG_CONFIG=`which pg_config`
18032            if test -n "$PG_CONFIG";then
18033               SQL_BINDIR=`"$PG_CONFIG" --bindir`
18034            elif test -f /usr/local/bin/psql; then
18035               SQL_BINDIR=/usr/local/bin
18036            elif test -f /usr/bin/psql; then
18037               SQL_BINDIR=/usr/bin
18038            else
18039               { echo "$as_me:$LINENO: result: no" >&5
18040 echo "${ECHO_T}no" >&6; }
18041               { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
18042 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
18043    { (exit 1); exit 1; }; }
18044           fi
18045         ;;
18046         *)
18047            { echo "$as_me:$LINENO: result: no" >&5
18048 echo "${ECHO_T}no" >&6; }
18049            { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
18050 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
18051    { (exit 1); exit 1; }; }
18052         ;;
18053      esac
18054
18055      { echo "$as_me:$LINENO: result: yes" >&5
18056 echo "${ECHO_T}yes" >&6; }
18057      DB_PROG=$db_prog
18058
18059   else
18060      { echo "$as_me:$LINENO: result: no" >&5
18061 echo "${ECHO_T}no" >&6; }
18062   fi
18063
18064 else
18065
18066   { echo "$as_me:$LINENO: result: no" >&5
18067 echo "${ECHO_T}no" >&6; }
18068
18069 fi
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079 # -------------------------------------------
18080 # enable batch attribute DB insert (default on)
18081 # -------------------------------------------
18082 support_batch_insert=no
18083 A=`nm $SQL_LIB | grep pthread_mutex_lock`
18084 pkg=$?
18085 if test $pkg = 0; then
18086    support_batch_insert=yes
18087    # Check whether --enable-batch-insert was given.
18088 if test "${enable_batch_insert+set}" = set; then
18089   enableval=$enable_batch_insert; if test x$enableval = xno; then
18090        support_batch_insert=no
18091       else
18092        support_batch_insert=yes
18093      fi
18094 fi
18095
18096 fi
18097
18098 # Check if postgresql support batch mode
18099 if test x$DB_TYPE = xpostgresql; then
18100    A=`nm $SQL_LIB | grep PQputCopyData`
18101    pkg=$?
18102    if test $pkg != 0; then
18103       support_batch_insert=no
18104    fi
18105 fi
18106
18107 if test x$DB_TYPE = xdbi; then
18108    DB_TYPE=$DB_PROG
18109    db_type=$DB_PROG
18110 fi
18111
18112 if test $support_batch_insert = yes ; then
18113
18114 cat >>confdefs.h <<\_ACEOF
18115 #define HAVE_BATCH_FILE_INSERT 1
18116 _ACEOF
18117
18118 fi
18119
18120
18121 cat >>confdefs.h <<\_ACEOF
18122 #define PROTOTYPES 1
18123 _ACEOF
18124
18125
18126 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
18127     if test -z "$CCOPTS"; then
18128         CCOPTS='-g -O2 -Wall'
18129     fi
18130     CFLAGS="$CCOPTS"
18131 fi
18132
18133
18134
18135
18136 largefile_support="no"
18137
18138    # Check whether --enable-largefile was given.
18139 if test "${enable_largefile+set}" = set; then
18140   enableval=$enable_largefile;
18141 fi
18142
18143    if test "$enable_largefile" != no; then
18144      if test -n "$ac_tool_prefix"; then
18145   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
18146 set dummy ${ac_tool_prefix}getconf; ac_word=$2
18147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18149 if test "${ac_cv_prog_GETCONF+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152   if test -n "$GETCONF"; then
18153   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
18154 else
18155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18156 for as_dir in $PATH
18157 do
18158   IFS=$as_save_IFS
18159   test -z "$as_dir" && as_dir=.
18160   for ac_exec_ext in '' $ac_executable_extensions; do
18161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18162     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
18163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18164     break 2
18165   fi
18166 done
18167 done
18168 IFS=$as_save_IFS
18169
18170 fi
18171 fi
18172 GETCONF=$ac_cv_prog_GETCONF
18173 if test -n "$GETCONF"; then
18174   { echo "$as_me:$LINENO: result: $GETCONF" >&5
18175 echo "${ECHO_T}$GETCONF" >&6; }
18176 else
18177   { echo "$as_me:$LINENO: result: no" >&5
18178 echo "${ECHO_T}no" >&6; }
18179 fi
18180
18181
18182 fi
18183 if test -z "$ac_cv_prog_GETCONF"; then
18184   ac_ct_GETCONF=$GETCONF
18185   # Extract the first word of "getconf", so it can be a program name with args.
18186 set dummy getconf; ac_word=$2
18187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18189 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
18190   echo $ECHO_N "(cached) $ECHO_C" >&6
18191 else
18192   if test -n "$ac_ct_GETCONF"; then
18193   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
18194 else
18195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196 for as_dir in $PATH
18197 do
18198   IFS=$as_save_IFS
18199   test -z "$as_dir" && as_dir=.
18200   for ac_exec_ext in '' $ac_executable_extensions; do
18201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18202     ac_cv_prog_ac_ct_GETCONF="getconf"
18203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18204     break 2
18205   fi
18206 done
18207 done
18208 IFS=$as_save_IFS
18209
18210 fi
18211 fi
18212 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18213 if test -n "$ac_ct_GETCONF"; then
18214   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18215 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18216 else
18217   { echo "$as_me:$LINENO: result: no" >&5
18218 echo "${ECHO_T}no" >&6; }
18219 fi
18220
18221   if test "x$ac_ct_GETCONF" = x; then
18222     GETCONF=""
18223   else
18224     case $cross_compiling:$ac_tool_warned in
18225 yes:)
18226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18227 whose name does not start with the host triplet.  If you think this
18228 configuration is useful to you, please write to autoconf@gnu.org." >&5
18229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18230 whose name does not start with the host triplet.  If you think this
18231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18232 ac_tool_warned=yes ;;
18233 esac
18234     GETCONF=$ac_ct_GETCONF
18235   fi
18236 else
18237   GETCONF="$ac_cv_prog_GETCONF"
18238 fi
18239
18240      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18241 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18242 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18243   echo $ECHO_N "(cached) $ECHO_C" >&6
18244 else
18245   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18246         ac_cv_sys_largefile_CFLAGS=no
18247         case "$host_os" in
18248            # IRIX 6.2 and later require cc -n32.
18249            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18250              if test "$GCC" != yes; then
18251                ac_cv_sys_largefile_CFLAGS=-n32
18252              fi
18253              ac_save_CC="$CC"
18254              CC="$CC $ac_cv_sys_largefile_CFLAGS"
18255              cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h.  */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h.  */
18261
18262 int
18263 main ()
18264 {
18265
18266   ;
18267   return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274   *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277   (eval "$ac_link") 2>conftest.er1
18278   ac_status=$?
18279   grep -v '^ *+' conftest.er1 >conftest.err
18280   rm -f conftest.er1
18281   cat conftest.err >&5
18282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283   (exit $ac_status); } && {
18284          test -z "$ac_c_werror_flag" ||
18285          test ! -s conftest.err
18286        } && test -s conftest$ac_exeext &&
18287        $as_test_x conftest$ac_exeext; then
18288   :
18289 else
18290   echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293         ac_cv_sys_largefile_CFLAGS=no
18294 fi
18295
18296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18297       conftest$ac_exeext conftest.$ac_ext
18298              CC="$ac_save_CC"
18299            esac
18300       }
18301 fi
18302 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18303 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18304      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18305 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18306 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18307   echo $ECHO_N "(cached) $ECHO_C" >&6
18308 else
18309   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18310         ac_cv_sys_largefile_LDFLAGS=no
18311
18312       }
18313 fi
18314 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18315 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18316      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18317 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18318 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18319   echo $ECHO_N "(cached) $ECHO_C" >&6
18320 else
18321   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18322         ac_cv_sys_largefile_LIBS=no
18323
18324       }
18325 fi
18326 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18327 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18328
18329      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18330        case "$ac_flag" in
18331        no) ;;
18332        -D_FILE_OFFSET_BITS=*) ;;
18333        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18334        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18335        -D?* | -I?*)
18336          case "$ac_flag" in
18337    no) ;;
18338    ?*)
18339      case "$CPPFLAGS" in
18340      '') CPPFLAGS="$ac_flag" ;;
18341      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18342      esac ;;
18343    esac ;;
18344        *)
18345          case "$ac_flag" in
18346    no) ;;
18347    ?*)
18348      case "$CFLAGS" in
18349      '') CFLAGS="$ac_flag" ;;
18350      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18351      esac ;;
18352    esac ;;
18353        esac
18354      done
18355      case "$ac_cv_sys_largefile_LDFLAGS" in
18356    no) ;;
18357    ?*)
18358      case "$LDFLAGS" in
18359      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18360      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18361      esac ;;
18362    esac
18363      case "$ac_cv_sys_largefile_LIBS" in
18364    no) ;;
18365    ?*)
18366      case "$LIBS" in
18367      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18368      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18369      esac ;;
18370    esac
18371      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18372 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18373 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18374   echo $ECHO_N "(cached) $ECHO_C" >&6
18375 else
18376   ac_cv_sys_file_offset_bits=no
18377       ac_cv_sys_file_offset_bits=64
18378       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18379         case "$ac_flag" in
18380         -D_FILE_OFFSET_BITS)
18381           ac_cv_sys_file_offset_bits=1 ;;
18382         -D_FILE_OFFSET_BITS=*)
18383           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18384         esac
18385       done
18386
18387 fi
18388 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18389 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18390    if test "$ac_cv_sys_file_offset_bits" != no; then
18391
18392 cat >>confdefs.h <<_ACEOF
18393 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18394 _ACEOF
18395
18396    fi
18397      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18398 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18399 if test "${ac_cv_sys_largefile_source+set}" = set; then
18400   echo $ECHO_N "(cached) $ECHO_C" >&6
18401 else
18402   ac_cv_sys_largefile_source=no
18403       ac_cv_sys_largefile_source=1
18404       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18405         case "$ac_flag" in
18406         -D_LARGEFILE_SOURCE)
18407           ac_cv_sys_largefile_source=1 ;;
18408         -D_LARGEFILE_SOURCE=*)
18409           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18410         esac
18411       done
18412
18413 fi
18414 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18415 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18416    if test "$ac_cv_sys_largefile_source" != no; then
18417
18418 cat >>confdefs.h <<_ACEOF
18419 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18420 _ACEOF
18421
18422    fi
18423      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18424 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18425 if test "${ac_cv_sys_large_files+set}" = set; then
18426   echo $ECHO_N "(cached) $ECHO_C" >&6
18427 else
18428   ac_cv_sys_large_files=no
18429       ac_cv_sys_large_files=1
18430       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18431         case "$ac_flag" in
18432         -D_LARGE_FILES)
18433           ac_cv_sys_large_files=1 ;;
18434         -D_LARGE_FILES=*)
18435           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18436         esac
18437       done
18438
18439 fi
18440 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18441 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18442    if test "$ac_cv_sys_large_files" != no; then
18443
18444 cat >>confdefs.h <<_ACEOF
18445 #define _LARGE_FILES $ac_cv_sys_large_files
18446 _ACEOF
18447
18448    fi
18449    fi
18450
18451
18452
18453 { echo "$as_me:$LINENO: checking for X" >&5
18454 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18455
18456
18457 # Check whether --with-x was given.
18458 if test "${with_x+set}" = set; then
18459   withval=$with_x;
18460 fi
18461
18462 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18463 if test "x$with_x" = xno; then
18464   # The user explicitly disabled X.
18465   have_x=disabled
18466 else
18467   case $x_includes,$x_libraries in #(
18468     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18469 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18470    { (exit 1); exit 1; }; };; #(
18471     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18472   echo $ECHO_N "(cached) $ECHO_C" >&6
18473 else
18474   # One or both of the vars are not set, and there is no cached value.
18475 ac_x_includes=no ac_x_libraries=no
18476 rm -f -r conftest.dir
18477 if mkdir conftest.dir; then
18478   cd conftest.dir
18479   cat >Imakefile <<'_ACEOF'
18480 incroot:
18481         @echo incroot='${INCROOT}'
18482 usrlibdir:
18483         @echo usrlibdir='${USRLIBDIR}'
18484 libdir:
18485         @echo libdir='${LIBDIR}'
18486 _ACEOF
18487   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18488     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18489     for ac_var in incroot usrlibdir libdir; do
18490       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18491     done
18492     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18493     for ac_extension in a so sl; do
18494       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18495          test -f "$ac_im_libdir/libX11.$ac_extension"; then
18496         ac_im_usrlibdir=$ac_im_libdir; break
18497       fi
18498     done
18499     # Screen out bogus values from the imake configuration.  They are
18500     # bogus both because they are the default anyway, and because
18501     # using them would break gcc on systems where it needs fixed includes.
18502     case $ac_im_incroot in
18503         /usr/include) ac_x_includes= ;;
18504         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18505     esac
18506     case $ac_im_usrlibdir in
18507         /usr/lib | /lib) ;;
18508         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18509     esac
18510   fi
18511   cd ..
18512   rm -f -r conftest.dir
18513 fi
18514
18515 # Standard set of common directories for X headers.
18516 # Check X11 before X11Rn because it is often a symlink to the current release.
18517 ac_x_header_dirs='
18518 /usr/X11/include
18519 /usr/X11R6/include
18520 /usr/X11R5/include
18521 /usr/X11R4/include
18522
18523 /usr/include/X11
18524 /usr/include/X11R6
18525 /usr/include/X11R5
18526 /usr/include/X11R4
18527
18528 /usr/local/X11/include
18529 /usr/local/X11R6/include
18530 /usr/local/X11R5/include
18531 /usr/local/X11R4/include
18532
18533 /usr/local/include/X11
18534 /usr/local/include/X11R6
18535 /usr/local/include/X11R5
18536 /usr/local/include/X11R4
18537
18538 /usr/X386/include
18539 /usr/x386/include
18540 /usr/XFree86/include/X11
18541
18542 /usr/include
18543 /usr/local/include
18544 /usr/unsupported/include
18545 /usr/athena/include
18546 /usr/local/x11r5/include
18547 /usr/lpp/Xamples/include
18548
18549 /usr/openwin/include
18550 /usr/openwin/share/include'
18551
18552 if test "$ac_x_includes" = no; then
18553   # Guess where to find include files, by looking for Xlib.h.
18554   # First, try using that file with no special directory specified.
18555   cat >conftest.$ac_ext <<_ACEOF
18556 /* confdefs.h.  */
18557 _ACEOF
18558 cat confdefs.h >>conftest.$ac_ext
18559 cat >>conftest.$ac_ext <<_ACEOF
18560 /* end confdefs.h.  */
18561 #include <X11/Xlib.h>
18562 _ACEOF
18563 if { (ac_try="$ac_cpp conftest.$ac_ext"
18564 case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18570   ac_status=$?
18571   grep -v '^ *+' conftest.er1 >conftest.err
18572   rm -f conftest.er1
18573   cat conftest.err >&5
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); } >/dev/null && {
18576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18577          test ! -s conftest.err
18578        }; then
18579   # We can compile using X headers with no special include directory.
18580 ac_x_includes=
18581 else
18582   echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585   for ac_dir in $ac_x_header_dirs; do
18586   if test -r "$ac_dir/X11/Xlib.h"; then
18587     ac_x_includes=$ac_dir
18588     break
18589   fi
18590 done
18591 fi
18592
18593 rm -f conftest.err conftest.$ac_ext
18594 fi # $ac_x_includes = no
18595
18596 if test "$ac_x_libraries" = no; then
18597   # Check for the libraries.
18598   # See if we find them without any special options.
18599   # Don't add to $LIBS permanently.
18600   ac_save_LIBS=$LIBS
18601   LIBS="-lX11 $LIBS"
18602   cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h.  */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h.  */
18608 #include <X11/Xlib.h>
18609 int
18610 main ()
18611 {
18612 XrmInitialize ()
18613   ;
18614   return 0;
18615 }
18616 _ACEOF
18617 rm -f conftest.$ac_objext conftest$ac_exeext
18618 if { (ac_try="$ac_link"
18619 case "(($ac_try" in
18620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621   *) ac_try_echo=$ac_try;;
18622 esac
18623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18624   (eval "$ac_link") 2>conftest.er1
18625   ac_status=$?
18626   grep -v '^ *+' conftest.er1 >conftest.err
18627   rm -f conftest.er1
18628   cat conftest.err >&5
18629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18630   (exit $ac_status); } && {
18631          test -z "$ac_c_werror_flag" ||
18632          test ! -s conftest.err
18633        } && test -s conftest$ac_exeext &&
18634        $as_test_x conftest$ac_exeext; then
18635   LIBS=$ac_save_LIBS
18636 # We can link X programs with no special library path.
18637 ac_x_libraries=
18638 else
18639   echo "$as_me: failed program was:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18641
18642         LIBS=$ac_save_LIBS
18643 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18644 do
18645   # Don't even attempt the hair of trying to link an X program!
18646   for ac_extension in a so sl; do
18647     if test -r "$ac_dir/libX11.$ac_extension"; then
18648       ac_x_libraries=$ac_dir
18649       break 2
18650     fi
18651   done
18652 done
18653 fi
18654
18655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18656       conftest$ac_exeext conftest.$ac_ext
18657 fi # $ac_x_libraries = no
18658
18659 case $ac_x_includes,$ac_x_libraries in #(
18660   no,* | *,no | *\'*)
18661     # Didn't find X, or a directory has "'" in its name.
18662     ac_cv_have_x="have_x=no";; #(
18663   *)
18664     # Record where we found X for the cache.
18665     ac_cv_have_x="have_x=yes\
18666         ac_x_includes='$ac_x_includes'\
18667         ac_x_libraries='$ac_x_libraries'"
18668 esac
18669 fi
18670 ;; #(
18671     *) have_x=yes;;
18672   esac
18673   eval "$ac_cv_have_x"
18674 fi # $with_x != no
18675
18676 if test "$have_x" != yes; then
18677   { echo "$as_me:$LINENO: result: $have_x" >&5
18678 echo "${ECHO_T}$have_x" >&6; }
18679   no_x=yes
18680 else
18681   # If each of the values was on the command line, it overrides each guess.
18682   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18683   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18684   # Update the cache value to reflect the command line values.
18685   ac_cv_have_x="have_x=yes\
18686         ac_x_includes='$x_includes'\
18687         ac_x_libraries='$x_libraries'"
18688   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18689 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18690 fi
18691
18692 if test "$no_x" = yes; then
18693   # Not all programs may use this symbol, but it does not hurt to define it.
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define X_DISPLAY_MISSING 1
18697 _ACEOF
18698
18699   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18700 else
18701   if test -n "$x_includes"; then
18702     X_CFLAGS="$X_CFLAGS -I$x_includes"
18703   fi
18704
18705   # It would also be nice to do this for all -L options, not just this one.
18706   if test -n "$x_libraries"; then
18707     X_LIBS="$X_LIBS -L$x_libraries"
18708     # For Solaris; some versions of Sun CC require a space after -R and
18709     # others require no space.  Words are not sufficient . . . .
18710     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18711 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18712     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18713     ac_xsave_c_werror_flag=$ac_c_werror_flag
18714     ac_c_werror_flag=yes
18715     cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h.  */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h.  */
18721
18722 int
18723 main ()
18724 {
18725
18726   ;
18727   return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734   *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737   (eval "$ac_link") 2>conftest.er1
18738   ac_status=$?
18739   grep -v '^ *+' conftest.er1 >conftest.err
18740   rm -f conftest.er1
18741   cat conftest.err >&5
18742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743   (exit $ac_status); } && {
18744          test -z "$ac_c_werror_flag" ||
18745          test ! -s conftest.err
18746        } && test -s conftest$ac_exeext &&
18747        $as_test_x conftest$ac_exeext; then
18748   { echo "$as_me:$LINENO: result: no" >&5
18749 echo "${ECHO_T}no" >&6; }
18750        X_LIBS="$X_LIBS -R$x_libraries"
18751 else
18752   echo "$as_me: failed program was:" >&5
18753 sed 's/^/| /' conftest.$ac_ext >&5
18754
18755         LIBS="$ac_xsave_LIBS -R $x_libraries"
18756        cat >conftest.$ac_ext <<_ACEOF
18757 /* confdefs.h.  */
18758 _ACEOF
18759 cat confdefs.h >>conftest.$ac_ext
18760 cat >>conftest.$ac_ext <<_ACEOF
18761 /* end confdefs.h.  */
18762
18763 int
18764 main ()
18765 {
18766
18767   ;
18768   return 0;
18769 }
18770 _ACEOF
18771 rm -f conftest.$ac_objext conftest$ac_exeext
18772 if { (ac_try="$ac_link"
18773 case "(($ac_try" in
18774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18775   *) ac_try_echo=$ac_try;;
18776 esac
18777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18778   (eval "$ac_link") 2>conftest.er1
18779   ac_status=$?
18780   grep -v '^ *+' conftest.er1 >conftest.err
18781   rm -f conftest.er1
18782   cat conftest.err >&5
18783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784   (exit $ac_status); } && {
18785          test -z "$ac_c_werror_flag" ||
18786          test ! -s conftest.err
18787        } && test -s conftest$ac_exeext &&
18788        $as_test_x conftest$ac_exeext; then
18789   { echo "$as_me:$LINENO: result: yes" >&5
18790 echo "${ECHO_T}yes" >&6; }
18791           X_LIBS="$X_LIBS -R $x_libraries"
18792 else
18793   echo "$as_me: failed program was:" >&5
18794 sed 's/^/| /' conftest.$ac_ext >&5
18795
18796         { echo "$as_me:$LINENO: result: neither works" >&5
18797 echo "${ECHO_T}neither works" >&6; }
18798 fi
18799
18800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18801       conftest$ac_exeext conftest.$ac_ext
18802 fi
18803
18804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18805       conftest$ac_exeext conftest.$ac_ext
18806     ac_c_werror_flag=$ac_xsave_c_werror_flag
18807     LIBS=$ac_xsave_LIBS
18808   fi
18809
18810   # Check for system-dependent libraries X programs must link with.
18811   # Do this before checking for the system-independent R6 libraries
18812   # (-lICE), since we may need -lsocket or whatever for X linking.
18813
18814   if test "$ISC" = yes; then
18815     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18816   else
18817     # Martyn Johnson says this is needed for Ultrix, if the X
18818     # libraries were built with DECnet support.  And Karl Berry says
18819     # the Alpha needs dnet_stub (dnet does not exist).
18820     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18821     cat >conftest.$ac_ext <<_ACEOF
18822 /* confdefs.h.  */
18823 _ACEOF
18824 cat confdefs.h >>conftest.$ac_ext
18825 cat >>conftest.$ac_ext <<_ACEOF
18826 /* end confdefs.h.  */
18827
18828 /* Override any GCC internal prototype to avoid an error.
18829    Use char because int might match the return type of a GCC
18830    builtin and then its argument prototype would still apply.  */
18831 #ifdef __cplusplus
18832 extern "C"
18833 #endif
18834 char XOpenDisplay ();
18835 int
18836 main ()
18837 {
18838 return XOpenDisplay ();
18839   ;
18840   return 0;
18841 }
18842 _ACEOF
18843 rm -f conftest.$ac_objext conftest$ac_exeext
18844 if { (ac_try="$ac_link"
18845 case "(($ac_try" in
18846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18847   *) ac_try_echo=$ac_try;;
18848 esac
18849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18850   (eval "$ac_link") 2>conftest.er1
18851   ac_status=$?
18852   grep -v '^ *+' conftest.er1 >conftest.err
18853   rm -f conftest.er1
18854   cat conftest.err >&5
18855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856   (exit $ac_status); } && {
18857          test -z "$ac_c_werror_flag" ||
18858          test ! -s conftest.err
18859        } && test -s conftest$ac_exeext &&
18860        $as_test_x conftest$ac_exeext; then
18861   :
18862 else
18863   echo "$as_me: failed program was:" >&5
18864 sed 's/^/| /' conftest.$ac_ext >&5
18865
18866         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18867 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18868 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18869   echo $ECHO_N "(cached) $ECHO_C" >&6
18870 else
18871   ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-ldnet  $LIBS"
18873 cat >conftest.$ac_ext <<_ACEOF
18874 /* confdefs.h.  */
18875 _ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h.  */
18879
18880 /* Override any GCC internal prototype to avoid an error.
18881    Use char because int might match the return type of a GCC
18882    builtin and then its argument prototype would still apply.  */
18883 #ifdef __cplusplus
18884 extern "C"
18885 #endif
18886 char dnet_ntoa ();
18887 int
18888 main ()
18889 {
18890 return dnet_ntoa ();
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902   (eval "$ac_link") 2>conftest.er1
18903   ac_status=$?
18904   grep -v '^ *+' conftest.er1 >conftest.err
18905   rm -f conftest.er1
18906   cat conftest.err >&5
18907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908   (exit $ac_status); } && {
18909          test -z "$ac_c_werror_flag" ||
18910          test ! -s conftest.err
18911        } && test -s conftest$ac_exeext &&
18912        $as_test_x conftest$ac_exeext; then
18913   ac_cv_lib_dnet_dnet_ntoa=yes
18914 else
18915   echo "$as_me: failed program was:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18917
18918         ac_cv_lib_dnet_dnet_ntoa=no
18919 fi
18920
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922       conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18924 fi
18925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18926 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18927 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18928   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18929 fi
18930
18931     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18932       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18933 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18934 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18935   echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937   ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-ldnet_stub  $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h.  */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h.  */
18945
18946 /* Override any GCC internal prototype to avoid an error.
18947    Use char because int might match the return type of a GCC
18948    builtin and then its argument prototype would still apply.  */
18949 #ifdef __cplusplus
18950 extern "C"
18951 #endif
18952 char dnet_ntoa ();
18953 int
18954 main ()
18955 {
18956 return dnet_ntoa ();
18957   ;
18958   return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965   *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968   (eval "$ac_link") 2>conftest.er1
18969   ac_status=$?
18970   grep -v '^ *+' conftest.er1 >conftest.err
18971   rm -f conftest.er1
18972   cat conftest.err >&5
18973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974   (exit $ac_status); } && {
18975          test -z "$ac_c_werror_flag" ||
18976          test ! -s conftest.err
18977        } && test -s conftest$ac_exeext &&
18978        $as_test_x conftest$ac_exeext; then
18979   ac_cv_lib_dnet_stub_dnet_ntoa=yes
18980 else
18981   echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984         ac_cv_lib_dnet_stub_dnet_ntoa=no
18985 fi
18986
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988       conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18990 fi
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18992 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18993 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18994   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18995 fi
18996
18997     fi
18998 fi
18999
19000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19001       conftest$ac_exeext conftest.$ac_ext
19002     LIBS="$ac_xsave_LIBS"
19003
19004     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19005     # to get the SysV transport functions.
19006     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19007     # needs -lnsl.
19008     # The nsl library prevents programs from opening the X display
19009     # on Irix 5.2, according to T.E. Dickey.
19010     # The functions gethostbyname, getservbyname, and inet_addr are
19011     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19012     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
19013 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
19014 if test "${ac_cv_func_gethostbyname+set}" = set; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 else
19017   cat >conftest.$ac_ext <<_ACEOF
19018 /* confdefs.h.  */
19019 _ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h.  */
19023 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19025 #define gethostbyname innocuous_gethostbyname
19026
19027 /* System header to define __stub macros and hopefully few prototypes,
19028     which can conflict with char gethostbyname (); below.
19029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030     <limits.h> exists even on freestanding compilers.  */
19031
19032 #ifdef __STDC__
19033 # include <limits.h>
19034 #else
19035 # include <assert.h>
19036 #endif
19037
19038 #undef gethostbyname
19039
19040 /* Override any GCC internal prototype to avoid an error.
19041    Use char because int might match the return type of a GCC
19042    builtin and then its argument prototype would still apply.  */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char gethostbyname ();
19047 /* The GNU C library defines this for functions which it implements
19048     to always fail with ENOSYS.  Some functions are actually named
19049     something starting with __ and the normal name is an alias.  */
19050 #if defined __stub_gethostbyname || defined __stub___gethostbyname
19051 choke me
19052 #endif
19053
19054 int
19055 main ()
19056 {
19057 return gethostbyname ();
19058   ;
19059   return 0;
19060 }
19061 _ACEOF
19062 rm -f conftest.$ac_objext conftest$ac_exeext
19063 if { (ac_try="$ac_link"
19064 case "(($ac_try" in
19065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066   *) ac_try_echo=$ac_try;;
19067 esac
19068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19069   (eval "$ac_link") 2>conftest.er1
19070   ac_status=$?
19071   grep -v '^ *+' conftest.er1 >conftest.err
19072   rm -f conftest.er1
19073   cat conftest.err >&5
19074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075   (exit $ac_status); } && {
19076          test -z "$ac_c_werror_flag" ||
19077          test ! -s conftest.err
19078        } && test -s conftest$ac_exeext &&
19079        $as_test_x conftest$ac_exeext; then
19080   ac_cv_func_gethostbyname=yes
19081 else
19082   echo "$as_me: failed program was:" >&5
19083 sed 's/^/| /' conftest.$ac_ext >&5
19084
19085         ac_cv_func_gethostbyname=no
19086 fi
19087
19088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19089       conftest$ac_exeext conftest.$ac_ext
19090 fi
19091 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19092 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
19093
19094     if test $ac_cv_func_gethostbyname = no; then
19095       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19096 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
19097 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19098   echo $ECHO_N "(cached) $ECHO_C" >&6
19099 else
19100   ac_check_lib_save_LIBS=$LIBS
19101 LIBS="-lnsl  $LIBS"
19102 cat >conftest.$ac_ext <<_ACEOF
19103 /* confdefs.h.  */
19104 _ACEOF
19105 cat confdefs.h >>conftest.$ac_ext
19106 cat >>conftest.$ac_ext <<_ACEOF
19107 /* end confdefs.h.  */
19108
19109 /* Override any GCC internal prototype to avoid an error.
19110    Use char because int might match the return type of a GCC
19111    builtin and then its argument prototype would still apply.  */
19112 #ifdef __cplusplus
19113 extern "C"
19114 #endif
19115 char gethostbyname ();
19116 int
19117 main ()
19118 {
19119 return gethostbyname ();
19120   ;
19121   return 0;
19122 }
19123 _ACEOF
19124 rm -f conftest.$ac_objext conftest$ac_exeext
19125 if { (ac_try="$ac_link"
19126 case "(($ac_try" in
19127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128   *) ac_try_echo=$ac_try;;
19129 esac
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131   (eval "$ac_link") 2>conftest.er1
19132   ac_status=$?
19133   grep -v '^ *+' conftest.er1 >conftest.err
19134   rm -f conftest.er1
19135   cat conftest.err >&5
19136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19137   (exit $ac_status); } && {
19138          test -z "$ac_c_werror_flag" ||
19139          test ! -s conftest.err
19140        } && test -s conftest$ac_exeext &&
19141        $as_test_x conftest$ac_exeext; then
19142   ac_cv_lib_nsl_gethostbyname=yes
19143 else
19144   echo "$as_me: failed program was:" >&5
19145 sed 's/^/| /' conftest.$ac_ext >&5
19146
19147         ac_cv_lib_nsl_gethostbyname=no
19148 fi
19149
19150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19151       conftest$ac_exeext conftest.$ac_ext
19152 LIBS=$ac_check_lib_save_LIBS
19153 fi
19154 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19155 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
19156 if test $ac_cv_lib_nsl_gethostbyname = yes; then
19157   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19158 fi
19159
19160       if test $ac_cv_lib_nsl_gethostbyname = no; then
19161         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19162 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
19163 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19164   echo $ECHO_N "(cached) $ECHO_C" >&6
19165 else
19166   ac_check_lib_save_LIBS=$LIBS
19167 LIBS="-lbsd  $LIBS"
19168 cat >conftest.$ac_ext <<_ACEOF
19169 /* confdefs.h.  */
19170 _ACEOF
19171 cat confdefs.h >>conftest.$ac_ext
19172 cat >>conftest.$ac_ext <<_ACEOF
19173 /* end confdefs.h.  */
19174
19175 /* Override any GCC internal prototype to avoid an error.
19176    Use char because int might match the return type of a GCC
19177    builtin and then its argument prototype would still apply.  */
19178 #ifdef __cplusplus
19179 extern "C"
19180 #endif
19181 char gethostbyname ();
19182 int
19183 main ()
19184 {
19185 return gethostbyname ();
19186   ;
19187   return 0;
19188 }
19189 _ACEOF
19190 rm -f conftest.$ac_objext conftest$ac_exeext
19191 if { (ac_try="$ac_link"
19192 case "(($ac_try" in
19193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194   *) ac_try_echo=$ac_try;;
19195 esac
19196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19197   (eval "$ac_link") 2>conftest.er1
19198   ac_status=$?
19199   grep -v '^ *+' conftest.er1 >conftest.err
19200   rm -f conftest.er1
19201   cat conftest.err >&5
19202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19203   (exit $ac_status); } && {
19204          test -z "$ac_c_werror_flag" ||
19205          test ! -s conftest.err
19206        } && test -s conftest$ac_exeext &&
19207        $as_test_x conftest$ac_exeext; then
19208   ac_cv_lib_bsd_gethostbyname=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         ac_cv_lib_bsd_gethostbyname=no
19214 fi
19215
19216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19217       conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19219 fi
19220 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19221 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19222 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19223   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19224 fi
19225
19226       fi
19227     fi
19228
19229     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19230     # socket/setsockopt and other routines are undefined under SCO ODT
19231     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19232     # on later versions), says Simon Leinen: it contains gethostby*
19233     # variants that don't use the name server (or something).  -lsocket
19234     # must be given before -lnsl if both are needed.  We assume that
19235     # if connect needs -lnsl, so does gethostbyname.
19236     { echo "$as_me:$LINENO: checking for connect" >&5
19237 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19238 if test "${ac_cv_func_connect+set}" = set; then
19239   echo $ECHO_N "(cached) $ECHO_C" >&6
19240 else
19241   cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19248    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19249 #define connect innocuous_connect
19250
19251 /* System header to define __stub macros and hopefully few prototypes,
19252     which can conflict with char connect (); below.
19253     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19254     <limits.h> exists even on freestanding compilers.  */
19255
19256 #ifdef __STDC__
19257 # include <limits.h>
19258 #else
19259 # include <assert.h>
19260 #endif
19261
19262 #undef connect
19263
19264 /* Override any GCC internal prototype to avoid an error.
19265    Use char because int might match the return type of a GCC
19266    builtin and then its argument prototype would still apply.  */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 char connect ();
19271 /* The GNU C library defines this for functions which it implements
19272     to always fail with ENOSYS.  Some functions are actually named
19273     something starting with __ and the normal name is an alias.  */
19274 #if defined __stub_connect || defined __stub___connect
19275 choke me
19276 #endif
19277
19278 int
19279 main ()
19280 {
19281 return connect ();
19282   ;
19283   return 0;
19284 }
19285 _ACEOF
19286 rm -f conftest.$ac_objext conftest$ac_exeext
19287 if { (ac_try="$ac_link"
19288 case "(($ac_try" in
19289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290   *) ac_try_echo=$ac_try;;
19291 esac
19292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19293   (eval "$ac_link") 2>conftest.er1
19294   ac_status=$?
19295   grep -v '^ *+' conftest.er1 >conftest.err
19296   rm -f conftest.er1
19297   cat conftest.err >&5
19298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299   (exit $ac_status); } && {
19300          test -z "$ac_c_werror_flag" ||
19301          test ! -s conftest.err
19302        } && test -s conftest$ac_exeext &&
19303        $as_test_x conftest$ac_exeext; then
19304   ac_cv_func_connect=yes
19305 else
19306   echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309         ac_cv_func_connect=no
19310 fi
19311
19312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19313       conftest$ac_exeext conftest.$ac_ext
19314 fi
19315 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19316 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19317
19318     if test $ac_cv_func_connect = no; then
19319       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19320 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19321 if test "${ac_cv_lib_socket_connect+set}" = set; then
19322   echo $ECHO_N "(cached) $ECHO_C" >&6
19323 else
19324   ac_check_lib_save_LIBS=$LIBS
19325 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19326 cat >conftest.$ac_ext <<_ACEOF
19327 /* confdefs.h.  */
19328 _ACEOF
19329 cat confdefs.h >>conftest.$ac_ext
19330 cat >>conftest.$ac_ext <<_ACEOF
19331 /* end confdefs.h.  */
19332
19333 /* Override any GCC internal prototype to avoid an error.
19334    Use char because int might match the return type of a GCC
19335    builtin and then its argument prototype would still apply.  */
19336 #ifdef __cplusplus
19337 extern "C"
19338 #endif
19339 char connect ();
19340 int
19341 main ()
19342 {
19343 return connect ();
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352   *) ac_try_echo=$ac_try;;
19353 esac
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355   (eval "$ac_link") 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && {
19362          test -z "$ac_c_werror_flag" ||
19363          test ! -s conftest.err
19364        } && test -s conftest$ac_exeext &&
19365        $as_test_x conftest$ac_exeext; then
19366   ac_cv_lib_socket_connect=yes
19367 else
19368   echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371         ac_cv_lib_socket_connect=no
19372 fi
19373
19374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19375       conftest$ac_exeext conftest.$ac_ext
19376 LIBS=$ac_check_lib_save_LIBS
19377 fi
19378 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19379 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19380 if test $ac_cv_lib_socket_connect = yes; then
19381   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19382 fi
19383
19384     fi
19385
19386     # Guillermo Gomez says -lposix is necessary on A/UX.
19387     { echo "$as_me:$LINENO: checking for remove" >&5
19388 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19389 if test "${ac_cv_func_remove+set}" = set; then
19390   echo $ECHO_N "(cached) $ECHO_C" >&6
19391 else
19392   cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h.  */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h.  */
19398 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19399    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19400 #define remove innocuous_remove
19401
19402 /* System header to define __stub macros and hopefully few prototypes,
19403     which can conflict with char remove (); below.
19404     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19405     <limits.h> exists even on freestanding compilers.  */
19406
19407 #ifdef __STDC__
19408 # include <limits.h>
19409 #else
19410 # include <assert.h>
19411 #endif
19412
19413 #undef remove
19414
19415 /* Override any GCC internal prototype to avoid an error.
19416    Use char because int might match the return type of a GCC
19417    builtin and then its argument prototype would still apply.  */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 char remove ();
19422 /* The GNU C library defines this for functions which it implements
19423     to always fail with ENOSYS.  Some functions are actually named
19424     something starting with __ and the normal name is an alias.  */
19425 #if defined __stub_remove || defined __stub___remove
19426 choke me
19427 #endif
19428
19429 int
19430 main ()
19431 {
19432 return remove ();
19433   ;
19434   return 0;
19435 }
19436 _ACEOF
19437 rm -f conftest.$ac_objext conftest$ac_exeext
19438 if { (ac_try="$ac_link"
19439 case "(($ac_try" in
19440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441   *) ac_try_echo=$ac_try;;
19442 esac
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444   (eval "$ac_link") 2>conftest.er1
19445   ac_status=$?
19446   grep -v '^ *+' conftest.er1 >conftest.err
19447   rm -f conftest.er1
19448   cat conftest.err >&5
19449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450   (exit $ac_status); } && {
19451          test -z "$ac_c_werror_flag" ||
19452          test ! -s conftest.err
19453        } && test -s conftest$ac_exeext &&
19454        $as_test_x conftest$ac_exeext; then
19455   ac_cv_func_remove=yes
19456 else
19457   echo "$as_me: failed program was:" >&5
19458 sed 's/^/| /' conftest.$ac_ext >&5
19459
19460         ac_cv_func_remove=no
19461 fi
19462
19463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19464       conftest$ac_exeext conftest.$ac_ext
19465 fi
19466 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19467 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19468
19469     if test $ac_cv_func_remove = no; then
19470       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19471 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_posix_remove+set}" = set; then
19473   echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475   ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lposix  $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h.  */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h.  */
19483
19484 /* Override any GCC internal prototype to avoid an error.
19485    Use char because int might match the return type of a GCC
19486    builtin and then its argument prototype would still apply.  */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 char remove ();
19491 int
19492 main ()
19493 {
19494 return remove ();
19495   ;
19496   return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503   *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506   (eval "$ac_link") 2>conftest.er1
19507   ac_status=$?
19508   grep -v '^ *+' conftest.er1 >conftest.err
19509   rm -f conftest.er1
19510   cat conftest.err >&5
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); } && {
19513          test -z "$ac_c_werror_flag" ||
19514          test ! -s conftest.err
19515        } && test -s conftest$ac_exeext &&
19516        $as_test_x conftest$ac_exeext; then
19517   ac_cv_lib_posix_remove=yes
19518 else
19519   echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522         ac_cv_lib_posix_remove=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526       conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19530 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19531 if test $ac_cv_lib_posix_remove = yes; then
19532   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19533 fi
19534
19535     fi
19536
19537     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19538     { echo "$as_me:$LINENO: checking for shmat" >&5
19539 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19540 if test "${ac_cv_func_shmat+set}" = set; then
19541   echo $ECHO_N "(cached) $ECHO_C" >&6
19542 else
19543   cat >conftest.$ac_ext <<_ACEOF
19544 /* confdefs.h.  */
19545 _ACEOF
19546 cat confdefs.h >>conftest.$ac_ext
19547 cat >>conftest.$ac_ext <<_ACEOF
19548 /* end confdefs.h.  */
19549 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19550    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19551 #define shmat innocuous_shmat
19552
19553 /* System header to define __stub macros and hopefully few prototypes,
19554     which can conflict with char shmat (); below.
19555     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19556     <limits.h> exists even on freestanding compilers.  */
19557
19558 #ifdef __STDC__
19559 # include <limits.h>
19560 #else
19561 # include <assert.h>
19562 #endif
19563
19564 #undef shmat
19565
19566 /* Override any GCC internal prototype to avoid an error.
19567    Use char because int might match the return type of a GCC
19568    builtin and then its argument prototype would still apply.  */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char shmat ();
19573 /* The GNU C library defines this for functions which it implements
19574     to always fail with ENOSYS.  Some functions are actually named
19575     something starting with __ and the normal name is an alias.  */
19576 #if defined __stub_shmat || defined __stub___shmat
19577 choke me
19578 #endif
19579
19580 int
19581 main ()
19582 {
19583 return shmat ();
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext conftest$ac_exeext
19589 if { (ac_try="$ac_link"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_link") 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } && {
19602          test -z "$ac_c_werror_flag" ||
19603          test ! -s conftest.err
19604        } && test -s conftest$ac_exeext &&
19605        $as_test_x conftest$ac_exeext; then
19606   ac_cv_func_shmat=yes
19607 else
19608   echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19610
19611         ac_cv_func_shmat=no
19612 fi
19613
19614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19615       conftest$ac_exeext conftest.$ac_ext
19616 fi
19617 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19618 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19619
19620     if test $ac_cv_func_shmat = no; then
19621       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19622 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19623 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19624   echo $ECHO_N "(cached) $ECHO_C" >&6
19625 else
19626   ac_check_lib_save_LIBS=$LIBS
19627 LIBS="-lipc  $LIBS"
19628 cat >conftest.$ac_ext <<_ACEOF
19629 /* confdefs.h.  */
19630 _ACEOF
19631 cat confdefs.h >>conftest.$ac_ext
19632 cat >>conftest.$ac_ext <<_ACEOF
19633 /* end confdefs.h.  */
19634
19635 /* Override any GCC internal prototype to avoid an error.
19636    Use char because int might match the return type of a GCC
19637    builtin and then its argument prototype would still apply.  */
19638 #ifdef __cplusplus
19639 extern "C"
19640 #endif
19641 char shmat ();
19642 int
19643 main ()
19644 {
19645 return shmat ();
19646   ;
19647   return 0;
19648 }
19649 _ACEOF
19650 rm -f conftest.$ac_objext conftest$ac_exeext
19651 if { (ac_try="$ac_link"
19652 case "(($ac_try" in
19653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19654   *) ac_try_echo=$ac_try;;
19655 esac
19656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19657   (eval "$ac_link") 2>conftest.er1
19658   ac_status=$?
19659   grep -v '^ *+' conftest.er1 >conftest.err
19660   rm -f conftest.er1
19661   cat conftest.err >&5
19662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19663   (exit $ac_status); } && {
19664          test -z "$ac_c_werror_flag" ||
19665          test ! -s conftest.err
19666        } && test -s conftest$ac_exeext &&
19667        $as_test_x conftest$ac_exeext; then
19668   ac_cv_lib_ipc_shmat=yes
19669 else
19670   echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.$ac_ext >&5
19672
19673         ac_cv_lib_ipc_shmat=no
19674 fi
19675
19676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19677       conftest$ac_exeext conftest.$ac_ext
19678 LIBS=$ac_check_lib_save_LIBS
19679 fi
19680 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19681 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19682 if test $ac_cv_lib_ipc_shmat = yes; then
19683   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19684 fi
19685
19686     fi
19687   fi
19688
19689   # Check for libraries that X11R6 Xt/Xaw programs need.
19690   ac_save_LDFLAGS=$LDFLAGS
19691   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19692   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19693   # check for ICE first), but we must link in the order -lSM -lICE or
19694   # we get undefined symbols.  So assume we have SM if we have ICE.
19695   # These have to be linked with before -lX11, unlike the other
19696   # libraries we check for below, so use a different variable.
19697   # John Interrante, Karl Berry
19698   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19699 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19700 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19701   echo $ECHO_N "(cached) $ECHO_C" >&6
19702 else
19703   ac_check_lib_save_LIBS=$LIBS
19704 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19705 cat >conftest.$ac_ext <<_ACEOF
19706 /* confdefs.h.  */
19707 _ACEOF
19708 cat confdefs.h >>conftest.$ac_ext
19709 cat >>conftest.$ac_ext <<_ACEOF
19710 /* end confdefs.h.  */
19711
19712 /* Override any GCC internal prototype to avoid an error.
19713    Use char because int might match the return type of a GCC
19714    builtin and then its argument prototype would still apply.  */
19715 #ifdef __cplusplus
19716 extern "C"
19717 #endif
19718 char IceConnectionNumber ();
19719 int
19720 main ()
19721 {
19722 return IceConnectionNumber ();
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 rm -f conftest.$ac_objext conftest$ac_exeext
19728 if { (ac_try="$ac_link"
19729 case "(($ac_try" in
19730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19731   *) ac_try_echo=$ac_try;;
19732 esac
19733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19734   (eval "$ac_link") 2>conftest.er1
19735   ac_status=$?
19736   grep -v '^ *+' conftest.er1 >conftest.err
19737   rm -f conftest.er1
19738   cat conftest.err >&5
19739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19740   (exit $ac_status); } && {
19741          test -z "$ac_c_werror_flag" ||
19742          test ! -s conftest.err
19743        } && test -s conftest$ac_exeext &&
19744        $as_test_x conftest$ac_exeext; then
19745   ac_cv_lib_ICE_IceConnectionNumber=yes
19746 else
19747   echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.$ac_ext >&5
19749
19750         ac_cv_lib_ICE_IceConnectionNumber=no
19751 fi
19752
19753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19754       conftest$ac_exeext conftest.$ac_ext
19755 LIBS=$ac_check_lib_save_LIBS
19756 fi
19757 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19758 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19759 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19760   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19761 fi
19762
19763   LDFLAGS=$ac_save_LDFLAGS
19764
19765 fi
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798 for ac_header in \
19799         assert.h \
19800         fcntl.h \
19801         grp.h \
19802         pwd.h \
19803         libc.h \
19804         limits.h \
19805         stdarg.h \
19806         stdlib.h \
19807         stdint.h \
19808         string.h \
19809         strings.h \
19810         termios.h \
19811         termcap.h \
19812         term.h \
19813         unistd.h \
19814         sys/bitypes.h \
19815         sys/byteorder.h \
19816         sys/ioctl.h \
19817         sys/select.h \
19818         sys/socket.h \
19819         sys/sockio.h \
19820         sys/stat.h \
19821         sys/time.h \
19822         sys/types.h \
19823         arpa/nameser.h \
19824         resolv.h \
19825         mtio.h \
19826         sys/mtio.h \
19827         sys/tape.h \
19828         regex.h \
19829
19830 do
19831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19836   echo $ECHO_N "(cached) $ECHO_C" >&6
19837 fi
19838 ac_res=`eval echo '${'$as_ac_Header'}'`
19839                { echo "$as_me:$LINENO: result: $ac_res" >&5
19840 echo "${ECHO_T}$ac_res" >&6; }
19841 else
19842   # Is the header compilable?
19843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19845 cat >conftest.$ac_ext <<_ACEOF
19846 /* confdefs.h.  */
19847 _ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h.  */
19851 $ac_includes_default
19852 #include <$ac_header>
19853 _ACEOF
19854 rm -f conftest.$ac_objext
19855 if { (ac_try="$ac_compile"
19856 case "(($ac_try" in
19857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19858   *) ac_try_echo=$ac_try;;
19859 esac
19860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19861   (eval "$ac_compile") 2>conftest.er1
19862   ac_status=$?
19863   grep -v '^ *+' conftest.er1 >conftest.err
19864   rm -f conftest.er1
19865   cat conftest.err >&5
19866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867   (exit $ac_status); } && {
19868          test -z "$ac_c_werror_flag" ||
19869          test ! -s conftest.err
19870        } && test -s conftest.$ac_objext; then
19871   ac_header_compiler=yes
19872 else
19873   echo "$as_me: failed program was:" >&5
19874 sed 's/^/| /' conftest.$ac_ext >&5
19875
19876         ac_header_compiler=no
19877 fi
19878
19879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19881 echo "${ECHO_T}$ac_header_compiler" >&6; }
19882
19883 # Is the header present?
19884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19886 cat >conftest.$ac_ext <<_ACEOF
19887 /* confdefs.h.  */
19888 _ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h.  */
19892 #include <$ac_header>
19893 _ACEOF
19894 if { (ac_try="$ac_cpp conftest.$ac_ext"
19895 case "(($ac_try" in
19896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19897   *) ac_try_echo=$ac_try;;
19898 esac
19899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19901   ac_status=$?
19902   grep -v '^ *+' conftest.er1 >conftest.err
19903   rm -f conftest.er1
19904   cat conftest.err >&5
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); } >/dev/null && {
19907          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19908          test ! -s conftest.err
19909        }; then
19910   ac_header_preproc=yes
19911 else
19912   echo "$as_me: failed program was:" >&5
19913 sed 's/^/| /' conftest.$ac_ext >&5
19914
19915   ac_header_preproc=no
19916 fi
19917
19918 rm -f conftest.err conftest.$ac_ext
19919 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19920 echo "${ECHO_T}$ac_header_preproc" >&6; }
19921
19922 # So?  What about this header?
19923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19924   yes:no: )
19925     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19926 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19928 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19929     ac_header_preproc=yes
19930     ;;
19931   no:yes:* )
19932     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19933 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19934     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19935 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19936     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19937 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19938     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19939 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19941 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19942     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19943 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19944
19945     ;;
19946 esac
19947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19950   echo $ECHO_N "(cached) $ECHO_C" >&6
19951 else
19952   eval "$as_ac_Header=\$ac_header_preproc"
19953 fi
19954 ac_res=`eval echo '${'$as_ac_Header'}'`
19955                { echo "$as_me:$LINENO: result: $ac_res" >&5
19956 echo "${ECHO_T}$ac_res" >&6; }
19957
19958 fi
19959 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19960   cat >>confdefs.h <<_ACEOF
19961 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19962 _ACEOF
19963
19964 fi
19965
19966 done
19967
19968 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19969 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19970 if test "${ac_cv_header_stdc+set}" = set; then
19971   echo $ECHO_N "(cached) $ECHO_C" >&6
19972 else
19973   cat >conftest.$ac_ext <<_ACEOF
19974 /* confdefs.h.  */
19975 _ACEOF
19976 cat confdefs.h >>conftest.$ac_ext
19977 cat >>conftest.$ac_ext <<_ACEOF
19978 /* end confdefs.h.  */
19979 #include <stdlib.h>
19980 #include <stdarg.h>
19981 #include <string.h>
19982 #include <float.h>
19983
19984 int
19985 main ()
19986 {
19987
19988   ;
19989   return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996   *) ac_try_echo=$ac_try;;
19997 esac
19998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19999   (eval "$ac_compile") 2>conftest.er1
20000   ac_status=$?
20001   grep -v '^ *+' conftest.er1 >conftest.err
20002   rm -f conftest.er1
20003   cat conftest.err >&5
20004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005   (exit $ac_status); } && {
20006          test -z "$ac_c_werror_flag" ||
20007          test ! -s conftest.err
20008        } && test -s conftest.$ac_objext; then
20009   ac_cv_header_stdc=yes
20010 else
20011   echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20013
20014         ac_cv_header_stdc=no
20015 fi
20016
20017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20018
20019 if test $ac_cv_header_stdc = yes; then
20020   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20021   cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 #include <string.h>
20028
20029 _ACEOF
20030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20031   $EGREP "memchr" >/dev/null 2>&1; then
20032   :
20033 else
20034   ac_cv_header_stdc=no
20035 fi
20036 rm -f conftest*
20037
20038 fi
20039
20040 if test $ac_cv_header_stdc = yes; then
20041   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20042   cat >conftest.$ac_ext <<_ACEOF
20043 /* confdefs.h.  */
20044 _ACEOF
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h.  */
20048 #include <stdlib.h>
20049
20050 _ACEOF
20051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20052   $EGREP "free" >/dev/null 2>&1; then
20053   :
20054 else
20055   ac_cv_header_stdc=no
20056 fi
20057 rm -f conftest*
20058
20059 fi
20060
20061 if test $ac_cv_header_stdc = yes; then
20062   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20063   if test "$cross_compiling" = yes; then
20064   :
20065 else
20066   cat >conftest.$ac_ext <<_ACEOF
20067 /* confdefs.h.  */
20068 _ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h.  */
20072 #include <ctype.h>
20073 #include <stdlib.h>
20074 #if ((' ' & 0x0FF) == 0x020)
20075 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20076 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20077 #else
20078 # define ISLOWER(c) \
20079                    (('a' <= (c) && (c) <= 'i') \
20080                      || ('j' <= (c) && (c) <= 'r') \
20081                      || ('s' <= (c) && (c) <= 'z'))
20082 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20083 #endif
20084
20085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20086 int
20087 main ()
20088 {
20089   int i;
20090   for (i = 0; i < 256; i++)
20091     if (XOR (islower (i), ISLOWER (i))
20092         || toupper (i) != TOUPPER (i))
20093       return 2;
20094   return 0;
20095 }
20096 _ACEOF
20097 rm -f conftest$ac_exeext
20098 if { (ac_try="$ac_link"
20099 case "(($ac_try" in
20100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20101   *) ac_try_echo=$ac_try;;
20102 esac
20103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20104   (eval "$ac_link") 2>&5
20105   ac_status=$?
20106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20108   { (case "(($ac_try" in
20109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110   *) ac_try_echo=$ac_try;;
20111 esac
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113   (eval "$ac_try") 2>&5
20114   ac_status=$?
20115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116   (exit $ac_status); }; }; then
20117   :
20118 else
20119   echo "$as_me: program exited with status $ac_status" >&5
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ( exit $ac_status )
20124 ac_cv_header_stdc=no
20125 fi
20126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20127 fi
20128
20129
20130 fi
20131 fi
20132 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20133 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20134 if test $ac_cv_header_stdc = yes; then
20135
20136 cat >>confdefs.h <<\_ACEOF
20137 #define STDC_HEADERS 1
20138 _ACEOF
20139
20140 fi
20141
20142 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20143 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20144 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20145   echo $ECHO_N "(cached) $ECHO_C" >&6
20146 else
20147   cat >conftest.$ac_ext <<_ACEOF
20148 /* confdefs.h.  */
20149 _ACEOF
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h.  */
20153 #include <sys/types.h>
20154 int
20155 main ()
20156 {
20157 return makedev(0, 0);
20158   ;
20159   return 0;
20160 }
20161 _ACEOF
20162 rm -f conftest.$ac_objext conftest$ac_exeext
20163 if { (ac_try="$ac_link"
20164 case "(($ac_try" in
20165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166   *) ac_try_echo=$ac_try;;
20167 esac
20168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20169   (eval "$ac_link") 2>conftest.er1
20170   ac_status=$?
20171   grep -v '^ *+' conftest.er1 >conftest.err
20172   rm -f conftest.er1
20173   cat conftest.err >&5
20174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175   (exit $ac_status); } && {
20176          test -z "$ac_c_werror_flag" ||
20177          test ! -s conftest.err
20178        } && test -s conftest$ac_exeext &&
20179        $as_test_x conftest$ac_exeext; then
20180   ac_cv_header_sys_types_h_makedev=yes
20181 else
20182   echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185         ac_cv_header_sys_types_h_makedev=no
20186 fi
20187
20188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20189       conftest$ac_exeext conftest.$ac_ext
20190
20191 fi
20192 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20193 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20194
20195 if test $ac_cv_header_sys_types_h_makedev = no; then
20196 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20197   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20198 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20199 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20200   echo $ECHO_N "(cached) $ECHO_C" >&6
20201 fi
20202 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20203 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20204 else
20205   # Is the header compilable?
20206 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20207 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h.  */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h.  */
20214 $ac_includes_default
20215 #include <sys/mkdev.h>
20216 _ACEOF
20217 rm -f conftest.$ac_objext
20218 if { (ac_try="$ac_compile"
20219 case "(($ac_try" in
20220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221   *) ac_try_echo=$ac_try;;
20222 esac
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224   (eval "$ac_compile") 2>conftest.er1
20225   ac_status=$?
20226   grep -v '^ *+' conftest.er1 >conftest.err
20227   rm -f conftest.er1
20228   cat conftest.err >&5
20229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230   (exit $ac_status); } && {
20231          test -z "$ac_c_werror_flag" ||
20232          test ! -s conftest.err
20233        } && test -s conftest.$ac_objext; then
20234   ac_header_compiler=yes
20235 else
20236   echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.$ac_ext >&5
20238
20239         ac_header_compiler=no
20240 fi
20241
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20244 echo "${ECHO_T}$ac_header_compiler" >&6; }
20245
20246 # Is the header present?
20247 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20248 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 #include <sys/mkdev.h>
20256 _ACEOF
20257 if { (ac_try="$ac_cpp conftest.$ac_ext"
20258 case "(($ac_try" in
20259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260   *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20264   ac_status=$?
20265   grep -v '^ *+' conftest.er1 >conftest.err
20266   rm -f conftest.er1
20267   cat conftest.err >&5
20268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); } >/dev/null && {
20270          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20271          test ! -s conftest.err
20272        }; then
20273   ac_header_preproc=yes
20274 else
20275   echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.$ac_ext >&5
20277
20278   ac_header_preproc=no
20279 fi
20280
20281 rm -f conftest.err conftest.$ac_ext
20282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20283 echo "${ECHO_T}$ac_header_preproc" >&6; }
20284
20285 # So?  What about this header?
20286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20287   yes:no: )
20288     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20289 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20290     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20291 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20292     ac_header_preproc=yes
20293     ;;
20294   no:yes:* )
20295     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20296 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20297     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
20298 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
20299     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20300 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20301     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
20302 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20303     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20304 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20305     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20306 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20307
20308     ;;
20309 esac
20310 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20311 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20312 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20313   echo $ECHO_N "(cached) $ECHO_C" >&6
20314 else
20315   ac_cv_header_sys_mkdev_h=$ac_header_preproc
20316 fi
20317 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20318 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20319
20320 fi
20321 if test $ac_cv_header_sys_mkdev_h = yes; then
20322
20323 cat >>confdefs.h <<\_ACEOF
20324 #define MAJOR_IN_MKDEV 1
20325 _ACEOF
20326
20327 fi
20328
20329
20330
20331   if test $ac_cv_header_sys_mkdev_h = no; then
20332     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20333   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20334 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20335 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20336   echo $ECHO_N "(cached) $ECHO_C" >&6
20337 fi
20338 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20339 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20340 else
20341   # Is the header compilable?
20342 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20343 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h.  */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h.  */
20350 $ac_includes_default
20351 #include <sys/sysmacros.h>
20352 _ACEOF
20353 rm -f conftest.$ac_objext
20354 if { (ac_try="$ac_compile"
20355 case "(($ac_try" in
20356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357   *) ac_try_echo=$ac_try;;
20358 esac
20359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360   (eval "$ac_compile") 2>conftest.er1
20361   ac_status=$?
20362   grep -v '^ *+' conftest.er1 >conftest.err
20363   rm -f conftest.er1
20364   cat conftest.err >&5
20365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366   (exit $ac_status); } && {
20367          test -z "$ac_c_werror_flag" ||
20368          test ! -s conftest.err
20369        } && test -s conftest.$ac_objext; then
20370   ac_header_compiler=yes
20371 else
20372   echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20374
20375         ac_header_compiler=no
20376 fi
20377
20378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20380 echo "${ECHO_T}$ac_header_compiler" >&6; }
20381
20382 # Is the header present?
20383 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20384 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20385 cat >conftest.$ac_ext <<_ACEOF
20386 /* confdefs.h.  */
20387 _ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h.  */
20391 #include <sys/sysmacros.h>
20392 _ACEOF
20393 if { (ac_try="$ac_cpp conftest.$ac_ext"
20394 case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20400   ac_status=$?
20401   grep -v '^ *+' conftest.er1 >conftest.err
20402   rm -f conftest.er1
20403   cat conftest.err >&5
20404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405   (exit $ac_status); } >/dev/null && {
20406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20407          test ! -s conftest.err
20408        }; then
20409   ac_header_preproc=yes
20410 else
20411   echo "$as_me: failed program was:" >&5
20412 sed 's/^/| /' conftest.$ac_ext >&5
20413
20414   ac_header_preproc=no
20415 fi
20416
20417 rm -f conftest.err conftest.$ac_ext
20418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20419 echo "${ECHO_T}$ac_header_preproc" >&6; }
20420
20421 # So?  What about this header?
20422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20423   yes:no: )
20424     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20425 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20426     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20427 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20428     ac_header_preproc=yes
20429     ;;
20430   no:yes:* )
20431     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20432 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20433     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
20434 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
20435     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20436 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20437     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
20438 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20439     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20440 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20441     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20442 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20443
20444     ;;
20445 esac
20446 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20447 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20448 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20449   echo $ECHO_N "(cached) $ECHO_C" >&6
20450 else
20451   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20452 fi
20453 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20454 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20455
20456 fi
20457 if test $ac_cv_header_sys_sysmacros_h = yes; then
20458
20459 cat >>confdefs.h <<\_ACEOF
20460 #define MAJOR_IN_SYSMACROS 1
20461 _ACEOF
20462
20463 fi
20464
20465
20466   fi
20467 fi
20468
20469
20470
20471
20472
20473
20474 ac_header_dirent=no
20475 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20476   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20477 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20478 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20480   echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482   cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h.  */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h.  */
20488 #include <sys/types.h>
20489 #include <$ac_hdr>
20490
20491 int
20492 main ()
20493 {
20494 if ((DIR *) 0)
20495 return 0;
20496   ;
20497   return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (ac_try="$ac_compile"
20502 case "(($ac_try" in
20503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20504   *) ac_try_echo=$ac_try;;
20505 esac
20506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20507   (eval "$ac_compile") 2>conftest.er1
20508   ac_status=$?
20509   grep -v '^ *+' conftest.er1 >conftest.err
20510   rm -f conftest.er1
20511   cat conftest.err >&5
20512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513   (exit $ac_status); } && {
20514          test -z "$ac_c_werror_flag" ||
20515          test ! -s conftest.err
20516        } && test -s conftest.$ac_objext; then
20517   eval "$as_ac_Header=yes"
20518 else
20519   echo "$as_me: failed program was:" >&5
20520 sed 's/^/| /' conftest.$ac_ext >&5
20521
20522         eval "$as_ac_Header=no"
20523 fi
20524
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 fi
20527 ac_res=`eval echo '${'$as_ac_Header'}'`
20528                { echo "$as_me:$LINENO: result: $ac_res" >&5
20529 echo "${ECHO_T}$ac_res" >&6; }
20530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20531   cat >>confdefs.h <<_ACEOF
20532 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20533 _ACEOF
20534
20535 ac_header_dirent=$ac_hdr; break
20536 fi
20537
20538 done
20539 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20540 if test $ac_header_dirent = dirent.h; then
20541   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20542 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20543 if test "${ac_cv_search_opendir+set}" = set; then
20544   echo $ECHO_N "(cached) $ECHO_C" >&6
20545 else
20546   ac_func_search_save_LIBS=$LIBS
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553
20554 /* Override any GCC internal prototype to avoid an error.
20555    Use char because int might match the return type of a GCC
20556    builtin and then its argument prototype would still apply.  */
20557 #ifdef __cplusplus
20558 extern "C"
20559 #endif
20560 char opendir ();
20561 int
20562 main ()
20563 {
20564 return opendir ();
20565   ;
20566   return 0;
20567 }
20568 _ACEOF
20569 for ac_lib in '' dir; do
20570   if test -z "$ac_lib"; then
20571     ac_res="none required"
20572   else
20573     ac_res=-l$ac_lib
20574     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20575   fi
20576   rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580   *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583   (eval "$ac_link") 2>conftest.er1
20584   ac_status=$?
20585   grep -v '^ *+' conftest.er1 >conftest.err
20586   rm -f conftest.er1
20587   cat conftest.err >&5
20588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589   (exit $ac_status); } && {
20590          test -z "$ac_c_werror_flag" ||
20591          test ! -s conftest.err
20592        } && test -s conftest$ac_exeext &&
20593        $as_test_x conftest$ac_exeext; then
20594   ac_cv_search_opendir=$ac_res
20595 else
20596   echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20598
20599
20600 fi
20601
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603       conftest$ac_exeext
20604   if test "${ac_cv_search_opendir+set}" = set; then
20605   break
20606 fi
20607 done
20608 if test "${ac_cv_search_opendir+set}" = set; then
20609   :
20610 else
20611   ac_cv_search_opendir=no
20612 fi
20613 rm conftest.$ac_ext
20614 LIBS=$ac_func_search_save_LIBS
20615 fi
20616 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20617 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20618 ac_res=$ac_cv_search_opendir
20619 if test "$ac_res" != no; then
20620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20621
20622 fi
20623
20624 else
20625   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20626 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20627 if test "${ac_cv_search_opendir+set}" = set; then
20628   echo $ECHO_N "(cached) $ECHO_C" >&6
20629 else
20630   ac_func_search_save_LIBS=$LIBS
20631 cat >conftest.$ac_ext <<_ACEOF
20632 /* confdefs.h.  */
20633 _ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h.  */
20637
20638 /* Override any GCC internal prototype to avoid an error.
20639    Use char because int might match the return type of a GCC
20640    builtin and then its argument prototype would still apply.  */
20641 #ifdef __cplusplus
20642 extern "C"
20643 #endif
20644 char opendir ();
20645 int
20646 main ()
20647 {
20648 return opendir ();
20649   ;
20650   return 0;
20651 }
20652 _ACEOF
20653 for ac_lib in '' x; do
20654   if test -z "$ac_lib"; then
20655     ac_res="none required"
20656   else
20657     ac_res=-l$ac_lib
20658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20659   fi
20660   rm -f conftest.$ac_objext conftest$ac_exeext
20661 if { (ac_try="$ac_link"
20662 case "(($ac_try" in
20663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20664   *) ac_try_echo=$ac_try;;
20665 esac
20666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20667   (eval "$ac_link") 2>conftest.er1
20668   ac_status=$?
20669   grep -v '^ *+' conftest.er1 >conftest.err
20670   rm -f conftest.er1
20671   cat conftest.err >&5
20672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673   (exit $ac_status); } && {
20674          test -z "$ac_c_werror_flag" ||
20675          test ! -s conftest.err
20676        } && test -s conftest$ac_exeext &&
20677        $as_test_x conftest$ac_exeext; then
20678   ac_cv_search_opendir=$ac_res
20679 else
20680   echo "$as_me: failed program was:" >&5
20681 sed 's/^/| /' conftest.$ac_ext >&5
20682
20683
20684 fi
20685
20686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20687       conftest$ac_exeext
20688   if test "${ac_cv_search_opendir+set}" = set; then
20689   break
20690 fi
20691 done
20692 if test "${ac_cv_search_opendir+set}" = set; then
20693   :
20694 else
20695   ac_cv_search_opendir=no
20696 fi
20697 rm conftest.$ac_ext
20698 LIBS=$ac_func_search_save_LIBS
20699 fi
20700 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20701 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20702 ac_res=$ac_cv_search_opendir
20703 if test "$ac_res" != no; then
20704   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20705
20706 fi
20707
20708 fi
20709
20710 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20711 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20712 if test "${ac_cv_header_stat_broken+set}" = set; then
20713   echo $ECHO_N "(cached) $ECHO_C" >&6
20714 else
20715   cat >conftest.$ac_ext <<_ACEOF
20716 /* confdefs.h.  */
20717 _ACEOF
20718 cat confdefs.h >>conftest.$ac_ext
20719 cat >>conftest.$ac_ext <<_ACEOF
20720 /* end confdefs.h.  */
20721 #include <sys/types.h>
20722 #include <sys/stat.h>
20723
20724 #if defined S_ISBLK && defined S_IFDIR
20725 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20726 #endif
20727
20728 #if defined S_ISBLK && defined S_IFCHR
20729 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20730 #endif
20731
20732 #if defined S_ISLNK && defined S_IFREG
20733 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20734 #endif
20735
20736 #if defined S_ISSOCK && defined S_IFREG
20737 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20738 #endif
20739
20740 _ACEOF
20741 rm -f conftest.$ac_objext
20742 if { (ac_try="$ac_compile"
20743 case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_compile") 2>conftest.er1
20749   ac_status=$?
20750   grep -v '^ *+' conftest.er1 >conftest.err
20751   rm -f conftest.er1
20752   cat conftest.err >&5
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); } && {
20755          test -z "$ac_c_werror_flag" ||
20756          test ! -s conftest.err
20757        } && test -s conftest.$ac_objext; then
20758   ac_cv_header_stat_broken=no
20759 else
20760   echo "$as_me: failed program was:" >&5
20761 sed 's/^/| /' conftest.$ac_ext >&5
20762
20763         ac_cv_header_stat_broken=yes
20764 fi
20765
20766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20767 fi
20768 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20769 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20770 if test $ac_cv_header_stat_broken = yes; then
20771
20772 cat >>confdefs.h <<\_ACEOF
20773 #define STAT_MACROS_BROKEN 1
20774 _ACEOF
20775
20776 fi
20777
20778 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20779 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20780 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20781   echo $ECHO_N "(cached) $ECHO_C" >&6
20782 else
20783   cat >conftest.$ac_ext <<_ACEOF
20784 /* confdefs.h.  */
20785 _ACEOF
20786 cat confdefs.h >>conftest.$ac_ext
20787 cat >>conftest.$ac_ext <<_ACEOF
20788 /* end confdefs.h.  */
20789 #include <sys/types.h>
20790 #include <sys/wait.h>
20791 #ifndef WEXITSTATUS
20792 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20793 #endif
20794 #ifndef WIFEXITED
20795 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20796 #endif
20797
20798 int
20799 main ()
20800 {
20801   int s;
20802   wait (&s);
20803   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20804   ;
20805   return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext
20809 if { (ac_try="$ac_compile"
20810 case "(($ac_try" in
20811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812   *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815   (eval "$ac_compile") 2>conftest.er1
20816   ac_status=$?
20817   grep -v '^ *+' conftest.er1 >conftest.err
20818   rm -f conftest.er1
20819   cat conftest.err >&5
20820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821   (exit $ac_status); } && {
20822          test -z "$ac_c_werror_flag" ||
20823          test ! -s conftest.err
20824        } && test -s conftest.$ac_objext; then
20825   ac_cv_header_sys_wait_h=yes
20826 else
20827   echo "$as_me: failed program was:" >&5
20828 sed 's/^/| /' conftest.$ac_ext >&5
20829
20830         ac_cv_header_sys_wait_h=no
20831 fi
20832
20833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20834 fi
20835 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20836 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20837 if test $ac_cv_header_sys_wait_h = yes; then
20838
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_SYS_WAIT_H 1
20841 _ACEOF
20842
20843 fi
20844
20845 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20846 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20847 if test "${ac_cv_header_time+set}" = set; then
20848   echo $ECHO_N "(cached) $ECHO_C" >&6
20849 else
20850   cat >conftest.$ac_ext <<_ACEOF
20851 /* confdefs.h.  */
20852 _ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h.  */
20856 #include <sys/types.h>
20857 #include <sys/time.h>
20858 #include <time.h>
20859
20860 int
20861 main ()
20862 {
20863 if ((struct tm *) 0)
20864 return 0;
20865   ;
20866   return 0;
20867 }
20868 _ACEOF
20869 rm -f conftest.$ac_objext
20870 if { (ac_try="$ac_compile"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_compile") 2>conftest.er1
20877   ac_status=$?
20878   grep -v '^ *+' conftest.er1 >conftest.err
20879   rm -f conftest.er1
20880   cat conftest.err >&5
20881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882   (exit $ac_status); } && {
20883          test -z "$ac_c_werror_flag" ||
20884          test ! -s conftest.err
20885        } && test -s conftest.$ac_objext; then
20886   ac_cv_header_time=yes
20887 else
20888   echo "$as_me: failed program was:" >&5
20889 sed 's/^/| /' conftest.$ac_ext >&5
20890
20891         ac_cv_header_time=no
20892 fi
20893
20894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20895 fi
20896 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20897 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20898 if test $ac_cv_header_time = yes; then
20899
20900 cat >>confdefs.h <<\_ACEOF
20901 #define TIME_WITH_SYS_TIME 1
20902 _ACEOF
20903
20904 fi
20905
20906 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20907 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20908 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20909   echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911   cat >conftest.$ac_ext <<_ACEOF
20912 /* confdefs.h.  */
20913 _ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h.  */
20917 $ac_includes_default
20918 int
20919 main ()
20920 {
20921 static struct stat ac_aggr;
20922 if (ac_aggr.st_blksize)
20923 return 0;
20924   ;
20925   return 0;
20926 }
20927 _ACEOF
20928 rm -f conftest.$ac_objext
20929 if { (ac_try="$ac_compile"
20930 case "(($ac_try" in
20931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20932   *) ac_try_echo=$ac_try;;
20933 esac
20934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20935   (eval "$ac_compile") 2>conftest.er1
20936   ac_status=$?
20937   grep -v '^ *+' conftest.er1 >conftest.err
20938   rm -f conftest.er1
20939   cat conftest.err >&5
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); } && {
20942          test -z "$ac_c_werror_flag" ||
20943          test ! -s conftest.err
20944        } && test -s conftest.$ac_objext; then
20945   ac_cv_member_struct_stat_st_blksize=yes
20946 else
20947   echo "$as_me: failed program was:" >&5
20948 sed 's/^/| /' conftest.$ac_ext >&5
20949
20950         cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h.  */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h.  */
20956 $ac_includes_default
20957 int
20958 main ()
20959 {
20960 static struct stat ac_aggr;
20961 if (sizeof ac_aggr.st_blksize)
20962 return 0;
20963   ;
20964   return 0;
20965 }
20966 _ACEOF
20967 rm -f conftest.$ac_objext
20968 if { (ac_try="$ac_compile"
20969 case "(($ac_try" in
20970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20971   *) ac_try_echo=$ac_try;;
20972 esac
20973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20974   (eval "$ac_compile") 2>conftest.er1
20975   ac_status=$?
20976   grep -v '^ *+' conftest.er1 >conftest.err
20977   rm -f conftest.er1
20978   cat conftest.err >&5
20979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980   (exit $ac_status); } && {
20981          test -z "$ac_c_werror_flag" ||
20982          test ! -s conftest.err
20983        } && test -s conftest.$ac_objext; then
20984   ac_cv_member_struct_stat_st_blksize=yes
20985 else
20986   echo "$as_me: failed program was:" >&5
20987 sed 's/^/| /' conftest.$ac_ext >&5
20988
20989         ac_cv_member_struct_stat_st_blksize=no
20990 fi
20991
20992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20993 fi
20994
20995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20996 fi
20997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20998 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20999 if test $ac_cv_member_struct_stat_st_blksize = yes; then
21000
21001 cat >>confdefs.h <<_ACEOF
21002 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21003 _ACEOF
21004
21005
21006 cat >>confdefs.h <<\_ACEOF
21007 #define HAVE_ST_BLKSIZE 1
21008 _ACEOF
21009
21010 fi
21011
21012
21013 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
21014 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
21015 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
21016   echo $ECHO_N "(cached) $ECHO_C" >&6
21017 else
21018   cat >conftest.$ac_ext <<_ACEOF
21019 /* confdefs.h.  */
21020 _ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h.  */
21024 $ac_includes_default
21025 int
21026 main ()
21027 {
21028 static struct stat ac_aggr;
21029 if (ac_aggr.st_blocks)
21030 return 0;
21031   ;
21032   return 0;
21033 }
21034 _ACEOF
21035 rm -f conftest.$ac_objext
21036 if { (ac_try="$ac_compile"
21037 case "(($ac_try" in
21038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21039   *) ac_try_echo=$ac_try;;
21040 esac
21041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21042   (eval "$ac_compile") 2>conftest.er1
21043   ac_status=$?
21044   grep -v '^ *+' conftest.er1 >conftest.err
21045   rm -f conftest.er1
21046   cat conftest.err >&5
21047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21048   (exit $ac_status); } && {
21049          test -z "$ac_c_werror_flag" ||
21050          test ! -s conftest.err
21051        } && test -s conftest.$ac_objext; then
21052   ac_cv_member_struct_stat_st_blocks=yes
21053 else
21054   echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21056
21057         cat >conftest.$ac_ext <<_ACEOF
21058 /* confdefs.h.  */
21059 _ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h.  */
21063 $ac_includes_default
21064 int
21065 main ()
21066 {
21067 static struct stat ac_aggr;
21068 if (sizeof ac_aggr.st_blocks)
21069 return 0;
21070   ;
21071   return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext
21075 if { (ac_try="$ac_compile"
21076 case "(($ac_try" in
21077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078   *) ac_try_echo=$ac_try;;
21079 esac
21080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21081   (eval "$ac_compile") 2>conftest.er1
21082   ac_status=$?
21083   grep -v '^ *+' conftest.er1 >conftest.err
21084   rm -f conftest.er1
21085   cat conftest.err >&5
21086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087   (exit $ac_status); } && {
21088          test -z "$ac_c_werror_flag" ||
21089          test ! -s conftest.err
21090        } && test -s conftest.$ac_objext; then
21091   ac_cv_member_struct_stat_st_blocks=yes
21092 else
21093   echo "$as_me: failed program was:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21095
21096         ac_cv_member_struct_stat_st_blocks=no
21097 fi
21098
21099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 fi
21101
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 fi
21104 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
21105 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
21106 if test $ac_cv_member_struct_stat_st_blocks = yes; then
21107
21108 cat >>confdefs.h <<_ACEOF
21109 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21110 _ACEOF
21111
21112
21113 cat >>confdefs.h <<\_ACEOF
21114 #define HAVE_ST_BLOCKS 1
21115 _ACEOF
21116
21117 else
21118   case " $LIBOBJS " in
21119   *" fileblocks.$ac_objext "* ) ;;
21120   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
21121  ;;
21122 esac
21123
21124 fi
21125
21126
21127 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21128 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21129 if test "${ac_cv_struct_tm+set}" = set; then
21130   echo $ECHO_N "(cached) $ECHO_C" >&6
21131 else
21132   cat >conftest.$ac_ext <<_ACEOF
21133 /* confdefs.h.  */
21134 _ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h.  */
21138 #include <sys/types.h>
21139 #include <time.h>
21140
21141 int
21142 main ()
21143 {
21144 struct tm tm;
21145                                      int *p = &tm.tm_sec;
21146                                      return !p;
21147   ;
21148   return 0;
21149 }
21150 _ACEOF
21151 rm -f conftest.$ac_objext
21152 if { (ac_try="$ac_compile"
21153 case "(($ac_try" in
21154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21155   *) ac_try_echo=$ac_try;;
21156 esac
21157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21158   (eval "$ac_compile") 2>conftest.er1
21159   ac_status=$?
21160   grep -v '^ *+' conftest.er1 >conftest.err
21161   rm -f conftest.er1
21162   cat conftest.err >&5
21163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164   (exit $ac_status); } && {
21165          test -z "$ac_c_werror_flag" ||
21166          test ! -s conftest.err
21167        } && test -s conftest.$ac_objext; then
21168   ac_cv_struct_tm=time.h
21169 else
21170   echo "$as_me: failed program was:" >&5
21171 sed 's/^/| /' conftest.$ac_ext >&5
21172
21173         ac_cv_struct_tm=sys/time.h
21174 fi
21175
21176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21177 fi
21178 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21179 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
21180 if test $ac_cv_struct_tm = sys/time.h; then
21181
21182 cat >>confdefs.h <<\_ACEOF
21183 #define TM_IN_SYS_TIME 1
21184 _ACEOF
21185
21186 fi
21187
21188 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
21189 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
21190 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
21191   echo $ECHO_N "(cached) $ECHO_C" >&6
21192 else
21193   cat >conftest.$ac_ext <<_ACEOF
21194 /* confdefs.h.  */
21195 _ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h.  */
21199 #include <sys/types.h>
21200 #include <$ac_cv_struct_tm>
21201
21202
21203 int
21204 main ()
21205 {
21206 static struct tm ac_aggr;
21207 if (ac_aggr.tm_zone)
21208 return 0;
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 rm -f conftest.$ac_objext
21214 if { (ac_try="$ac_compile"
21215 case "(($ac_try" in
21216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21217   *) ac_try_echo=$ac_try;;
21218 esac
21219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21220   (eval "$ac_compile") 2>conftest.er1
21221   ac_status=$?
21222   grep -v '^ *+' conftest.er1 >conftest.err
21223   rm -f conftest.er1
21224   cat conftest.err >&5
21225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226   (exit $ac_status); } && {
21227          test -z "$ac_c_werror_flag" ||
21228          test ! -s conftest.err
21229        } && test -s conftest.$ac_objext; then
21230   ac_cv_member_struct_tm_tm_zone=yes
21231 else
21232   echo "$as_me: failed program was:" >&5
21233 sed 's/^/| /' conftest.$ac_ext >&5
21234
21235         cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h.  */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h.  */
21241 #include <sys/types.h>
21242 #include <$ac_cv_struct_tm>
21243
21244
21245 int
21246 main ()
21247 {
21248 static struct tm ac_aggr;
21249 if (sizeof ac_aggr.tm_zone)
21250 return 0;
21251   ;
21252   return 0;
21253 }
21254 _ACEOF
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259   *) ac_try_echo=$ac_try;;
21260 esac
21261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21262   (eval "$ac_compile") 2>conftest.er1
21263   ac_status=$?
21264   grep -v '^ *+' conftest.er1 >conftest.err
21265   rm -f conftest.er1
21266   cat conftest.err >&5
21267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268   (exit $ac_status); } && {
21269          test -z "$ac_c_werror_flag" ||
21270          test ! -s conftest.err
21271        } && test -s conftest.$ac_objext; then
21272   ac_cv_member_struct_tm_tm_zone=yes
21273 else
21274   echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277         ac_cv_member_struct_tm_tm_zone=no
21278 fi
21279
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 fi
21282
21283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21284 fi
21285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21286 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21287 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21288
21289 cat >>confdefs.h <<_ACEOF
21290 #define HAVE_STRUCT_TM_TM_ZONE 1
21291 _ACEOF
21292
21293
21294 fi
21295
21296 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21297
21298 cat >>confdefs.h <<\_ACEOF
21299 #define HAVE_TM_ZONE 1
21300 _ACEOF
21301
21302 else
21303   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21304 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21305 if test "${ac_cv_have_decl_tzname+set}" = set; then
21306   echo $ECHO_N "(cached) $ECHO_C" >&6
21307 else
21308   cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h.  */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h.  */
21314 #include <time.h>
21315
21316 int
21317 main ()
21318 {
21319 #ifndef tzname
21320   (void) tzname;
21321 #endif
21322
21323   ;
21324   return 0;
21325 }
21326 _ACEOF
21327 rm -f conftest.$ac_objext
21328 if { (ac_try="$ac_compile"
21329 case "(($ac_try" in
21330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331   *) ac_try_echo=$ac_try;;
21332 esac
21333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21334   (eval "$ac_compile") 2>conftest.er1
21335   ac_status=$?
21336   grep -v '^ *+' conftest.er1 >conftest.err
21337   rm -f conftest.er1
21338   cat conftest.err >&5
21339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340   (exit $ac_status); } && {
21341          test -z "$ac_c_werror_flag" ||
21342          test ! -s conftest.err
21343        } && test -s conftest.$ac_objext; then
21344   ac_cv_have_decl_tzname=yes
21345 else
21346   echo "$as_me: failed program was:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21348
21349         ac_cv_have_decl_tzname=no
21350 fi
21351
21352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 fi
21354 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21355 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21356 if test $ac_cv_have_decl_tzname = yes; then
21357
21358 cat >>confdefs.h <<_ACEOF
21359 #define HAVE_DECL_TZNAME 1
21360 _ACEOF
21361
21362
21363 else
21364   cat >>confdefs.h <<_ACEOF
21365 #define HAVE_DECL_TZNAME 0
21366 _ACEOF
21367
21368
21369 fi
21370
21371
21372   { echo "$as_me:$LINENO: checking for tzname" >&5
21373 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21374 if test "${ac_cv_var_tzname+set}" = set; then
21375   echo $ECHO_N "(cached) $ECHO_C" >&6
21376 else
21377   cat >conftest.$ac_ext <<_ACEOF
21378 /* confdefs.h.  */
21379 _ACEOF
21380 cat confdefs.h >>conftest.$ac_ext
21381 cat >>conftest.$ac_ext <<_ACEOF
21382 /* end confdefs.h.  */
21383 #include <time.h>
21384 #if !HAVE_DECL_TZNAME
21385 extern char *tzname[];
21386 #endif
21387
21388 int
21389 main ()
21390 {
21391 return tzname[0][0];
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 rm -f conftest.$ac_objext conftest$ac_exeext
21397 if { (ac_try="$ac_link"
21398 case "(($ac_try" in
21399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400   *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403   (eval "$ac_link") 2>conftest.er1
21404   ac_status=$?
21405   grep -v '^ *+' conftest.er1 >conftest.err
21406   rm -f conftest.er1
21407   cat conftest.err >&5
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && {
21410          test -z "$ac_c_werror_flag" ||
21411          test ! -s conftest.err
21412        } && test -s conftest$ac_exeext &&
21413        $as_test_x conftest$ac_exeext; then
21414   ac_cv_var_tzname=yes
21415 else
21416   echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419         ac_cv_var_tzname=no
21420 fi
21421
21422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21423       conftest$ac_exeext conftest.$ac_ext
21424 fi
21425 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21426 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21427   if test $ac_cv_var_tzname = yes; then
21428
21429 cat >>confdefs.h <<\_ACEOF
21430 #define HAVE_TZNAME 1
21431 _ACEOF
21432
21433   fi
21434 fi
21435
21436
21437 { echo "$as_me:$LINENO: checking for utime.h" >&5
21438 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21439 if test "${ba_cv_header_utime_h+set}" = set; then
21440   echo $ECHO_N "(cached) $ECHO_C" >&6
21441 else
21442   cat >conftest.$ac_ext <<_ACEOF
21443 /* confdefs.h.  */
21444 _ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h.  */
21448
21449 #include <sys/types.h>
21450 #include <utime.h>
21451 int
21452 main ()
21453 {
21454 struct utimbuf foo
21455   ;
21456   return 0;
21457 }
21458 _ACEOF
21459 rm -f conftest.$ac_objext
21460 if { (ac_try="$ac_compile"
21461 case "(($ac_try" in
21462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21463   *) ac_try_echo=$ac_try;;
21464 esac
21465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21466   (eval "$ac_compile") 2>conftest.er1
21467   ac_status=$?
21468   grep -v '^ *+' conftest.er1 >conftest.err
21469   rm -f conftest.er1
21470   cat conftest.err >&5
21471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21472   (exit $ac_status); } && {
21473          test -z "$ac_c_werror_flag" ||
21474          test ! -s conftest.err
21475        } && test -s conftest.$ac_objext; then
21476   ba_cv_header_utime_h=yes
21477 else
21478   echo "$as_me: failed program was:" >&5
21479 sed 's/^/| /' conftest.$ac_ext >&5
21480
21481         ba_cv_header_utime_h=no
21482 fi
21483
21484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485 fi
21486 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21487 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21488 test $ba_cv_header_utime_h = yes &&
21489 cat >>confdefs.h <<\_ACEOF
21490 #define HAVE_UTIME_H 1
21491 _ACEOF
21492
21493
21494 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21495 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21496 if test "${ba_cv_header_socklen_t+set}" = set; then
21497   echo $ECHO_N "(cached) $ECHO_C" >&6
21498 else
21499   cat >conftest.$ac_ext <<_ACEOF
21500 /* confdefs.h.  */
21501 _ACEOF
21502 cat confdefs.h >>conftest.$ac_ext
21503 cat >>conftest.$ac_ext <<_ACEOF
21504 /* end confdefs.h.  */
21505
21506 #include <sys/types.h>
21507 #include <sys/socket.h>
21508 int
21509 main ()
21510 {
21511 socklen_t x
21512   ;
21513   return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_compile") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest.$ac_objext; then
21533   ba_cv_header_socklen_t=yes
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         ba_cv_header_socklen_t=no
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 fi
21543 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21544 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21545 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21546 #define HAVE_SOCKLEN_T 1
21547 _ACEOF
21548
21549
21550 { echo "$as_me:$LINENO: checking for bigendian" >&5
21551 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21552 if test "${ba_cv_bigendian+set}" = set; then
21553   echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555   if test "$cross_compiling" = yes; then
21556   ba_cv_bigendian=no
21557 else
21558   cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h.  */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h.  */
21564 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21565 _ACEOF
21566 rm -f conftest$ac_exeext
21567 if { (ac_try="$ac_link"
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_link") 2>&5
21574   ac_status=$?
21575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21577   { (case "(($ac_try" in
21578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579   *) ac_try_echo=$ac_try;;
21580 esac
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582   (eval "$ac_try") 2>&5
21583   ac_status=$?
21584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585   (exit $ac_status); }; }; then
21586   ba_cv_bigendian=yes
21587 else
21588   echo "$as_me: program exited with status $ac_status" >&5
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21591
21592 ( exit $ac_status )
21593 ba_cv_bigendian=no
21594 fi
21595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21596 fi
21597
21598
21599 fi
21600 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21601 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21602 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21603 #define HAVE_BIGENDIAN 1
21604 _ACEOF
21605
21606
21607 ac_ext=cpp
21608 ac_cpp='$CXXCPP $CPPFLAGS'
21609 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21610 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21611 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21612
21613
21614 { echo "$as_me:$LINENO: checking for typeof" >&5
21615 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21616 if test "${ba_cv_have_typeof+set}" = set; then
21617   echo $ECHO_N "(cached) $ECHO_C" >&6
21618 else
21619   if test "$cross_compiling" = yes; then
21620   ba_cv_have_typeof=no
21621 else
21622   cat >conftest.$ac_ext <<_ACEOF
21623 /* confdefs.h.  */
21624 _ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h.  */
21628 main(){char *a = 0; a = (typeof a)a;}
21629 _ACEOF
21630 rm -f conftest$ac_exeext
21631 if { (ac_try="$ac_link"
21632 case "(($ac_try" in
21633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21634   *) ac_try_echo=$ac_try;;
21635 esac
21636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21637   (eval "$ac_link") 2>&5
21638   ac_status=$?
21639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21641   { (case "(($ac_try" in
21642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21643   *) ac_try_echo=$ac_try;;
21644 esac
21645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21646   (eval "$ac_try") 2>&5
21647   ac_status=$?
21648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649   (exit $ac_status); }; }; then
21650   ba_cv_have_typeof=yes
21651 else
21652   echo "$as_me: program exited with status $ac_status" >&5
21653 echo "$as_me: failed program was:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21655
21656 ( exit $ac_status )
21657 ba_cv_have_typeof=no
21658 fi
21659 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21660 fi
21661
21662
21663 fi
21664 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21665 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21666 test $ba_cv_have_typeof = yes &&
21667 cat >>confdefs.h <<\_ACEOF
21668 #define HAVE_TYPEOF 1
21669 _ACEOF
21670
21671 ac_ext=c
21672 ac_cpp='$CPP $CPPFLAGS'
21673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21676
21677
21678 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21679 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21680 if test "${ac_cv_c_const+set}" = set; then
21681   echo $ECHO_N "(cached) $ECHO_C" >&6
21682 else
21683   cat >conftest.$ac_ext <<_ACEOF
21684 /* confdefs.h.  */
21685 _ACEOF
21686 cat confdefs.h >>conftest.$ac_ext
21687 cat >>conftest.$ac_ext <<_ACEOF
21688 /* end confdefs.h.  */
21689
21690 int
21691 main ()
21692 {
21693 /* FIXME: Include the comments suggested by Paul. */
21694 #ifndef __cplusplus
21695   /* Ultrix mips cc rejects this.  */
21696   typedef int charset[2];
21697   const charset cs;
21698   /* SunOS 4.1.1 cc rejects this.  */
21699   char const *const *pcpcc;
21700   char **ppc;
21701   /* NEC SVR4.0.2 mips cc rejects this.  */
21702   struct point {int x, y;};
21703   static struct point const zero = {0,0};
21704   /* AIX XL C 1.02.0.0 rejects this.
21705      It does not let you subtract one const X* pointer from another in
21706      an arm of an if-expression whose if-part is not a constant
21707      expression */
21708   const char *g = "string";
21709   pcpcc = &g + (g ? g-g : 0);
21710   /* HPUX 7.0 cc rejects these. */
21711   ++pcpcc;
21712   ppc = (char**) pcpcc;
21713   pcpcc = (char const *const *) ppc;
21714   { /* SCO 3.2v4 cc rejects this.  */
21715     char *t;
21716     char const *s = 0 ? (char *) 0 : (char const *) 0;
21717
21718     *t++ = 0;
21719     if (s) return 0;
21720   }
21721   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21722     int x[] = {25, 17};
21723     const int *foo = &x[0];
21724     ++foo;
21725   }
21726   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21727     typedef const int *iptr;
21728     iptr p = 0;
21729     ++p;
21730   }
21731   { /* AIX XL C 1.02.0.0 rejects this saying
21732        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21733     struct s { int j; const int *ap[3]; };
21734     struct s *b; b->j = 5;
21735   }
21736   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21737     const int foo = 10;
21738     if (!foo) return 0;
21739   }
21740   return !cs[0] && !zero.x;
21741 #endif
21742
21743   ;
21744   return 0;
21745 }
21746 _ACEOF
21747 rm -f conftest.$ac_objext
21748 if { (ac_try="$ac_compile"
21749 case "(($ac_try" in
21750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21751   *) ac_try_echo=$ac_try;;
21752 esac
21753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21754   (eval "$ac_compile") 2>conftest.er1
21755   ac_status=$?
21756   grep -v '^ *+' conftest.er1 >conftest.err
21757   rm -f conftest.er1
21758   cat conftest.err >&5
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); } && {
21761          test -z "$ac_c_werror_flag" ||
21762          test ! -s conftest.err
21763        } && test -s conftest.$ac_objext; then
21764   ac_cv_c_const=yes
21765 else
21766   echo "$as_me: failed program was:" >&5
21767 sed 's/^/| /' conftest.$ac_ext >&5
21768
21769         ac_cv_c_const=no
21770 fi
21771
21772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21773 fi
21774 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21775 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21776 if test $ac_cv_c_const = no; then
21777
21778 cat >>confdefs.h <<\_ACEOF
21779 #define const
21780 _ACEOF
21781
21782 fi
21783
21784
21785
21786 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21787 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21788 fstype=no
21789 # The order of these tests is important.
21790 cat >conftest.$ac_ext <<_ACEOF
21791 /* confdefs.h.  */
21792 _ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h.  */
21796 #include <sys/statvfs.h>
21797 #include <sys/fstyp.h>
21798 _ACEOF
21799 if { (ac_try="$ac_cpp conftest.$ac_ext"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21806   ac_status=$?
21807   grep -v '^ *+' conftest.er1 >conftest.err
21808   rm -f conftest.er1
21809   cat conftest.err >&5
21810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811   (exit $ac_status); } >/dev/null && {
21812          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21813          test ! -s conftest.err
21814        }; then
21815   cat >>confdefs.h <<\_ACEOF
21816 #define FSTYPE_STATVFS 1
21817 _ACEOF
21818  fstype=SVR4
21819 else
21820   echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21822
21823
21824 fi
21825
21826 rm -f conftest.err conftest.$ac_ext
21827 if test $fstype = no; then
21828 cat >conftest.$ac_ext <<_ACEOF
21829 /* confdefs.h.  */
21830 _ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h.  */
21834 #include <sys/statfs.h>
21835 #include <sys/fstyp.h>
21836 _ACEOF
21837 if { (ac_try="$ac_cpp conftest.$ac_ext"
21838 case "(($ac_try" in
21839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840   *) ac_try_echo=$ac_try;;
21841 esac
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21844   ac_status=$?
21845   grep -v '^ *+' conftest.er1 >conftest.err
21846   rm -f conftest.er1
21847   cat conftest.err >&5
21848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849   (exit $ac_status); } >/dev/null && {
21850          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21851          test ! -s conftest.err
21852        }; then
21853   cat >>confdefs.h <<\_ACEOF
21854 #define FSTYPE_USG_STATFS 1
21855 _ACEOF
21856  fstype=SVR3
21857 else
21858   echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861
21862 fi
21863
21864 rm -f conftest.err conftest.$ac_ext
21865 fi
21866 if test $fstype = no; then
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h.  */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h.  */
21873 #include <sys/statfs.h>
21874 #include <sys/vmount.h>
21875 _ACEOF
21876 if { (ac_try="$ac_cpp conftest.$ac_ext"
21877 case "(($ac_try" in
21878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879   *) ac_try_echo=$ac_try;;
21880 esac
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21883   ac_status=$?
21884   grep -v '^ *+' conftest.er1 >conftest.err
21885   rm -f conftest.er1
21886   cat conftest.err >&5
21887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888   (exit $ac_status); } >/dev/null && {
21889          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21890          test ! -s conftest.err
21891        }; then
21892   cat >>confdefs.h <<\_ACEOF
21893 #define FSTYPE_AIX_STATFS 1
21894 _ACEOF
21895  fstype=AIX
21896 else
21897   echo "$as_me: failed program was:" >&5
21898 sed 's/^/| /' conftest.$ac_ext >&5
21899
21900
21901 fi
21902
21903 rm -f conftest.err conftest.$ac_ext
21904 fi
21905 if test $fstype = no; then
21906 cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <mntent.h>
21913 _ACEOF
21914 if { (ac_try="$ac_cpp conftest.$ac_ext"
21915 case "(($ac_try" in
21916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21917   *) ac_try_echo=$ac_try;;
21918 esac
21919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21920   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21921   ac_status=$?
21922   grep -v '^ *+' conftest.er1 >conftest.err
21923   rm -f conftest.er1
21924   cat conftest.err >&5
21925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926   (exit $ac_status); } >/dev/null && {
21927          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21928          test ! -s conftest.err
21929        }; then
21930   cat >>confdefs.h <<\_ACEOF
21931 #define FSTYPE_MNTENT 1
21932 _ACEOF
21933  fstype=4.3BSD
21934 else
21935   echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938
21939 fi
21940
21941 rm -f conftest.err conftest.$ac_ext
21942 fi
21943 if test $fstype = no; then
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h.  */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h.  */
21950 #include <sys/mount.h>
21951
21952 _ACEOF
21953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21954   $EGREP "f_type;" >/dev/null 2>&1; then
21955   cat >>confdefs.h <<\_ACEOF
21956 #define FSTYPE_STATFS 1
21957 _ACEOF
21958  fstype=4.4BSD/OSF1
21959 fi
21960 rm -f conftest*
21961
21962 fi
21963 if test $fstype = no; then
21964 cat >conftest.$ac_ext <<_ACEOF
21965 /* confdefs.h.  */
21966 _ACEOF
21967 cat confdefs.h >>conftest.$ac_ext
21968 cat >>conftest.$ac_ext <<_ACEOF
21969 /* end confdefs.h.  */
21970 #include <sys/mount.h>
21971 #include <sys/fs_types.h>
21972 _ACEOF
21973 if { (ac_try="$ac_cpp conftest.$ac_ext"
21974 case "(($ac_try" in
21975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21976   *) ac_try_echo=$ac_try;;
21977 esac
21978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21979   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21980   ac_status=$?
21981   grep -v '^ *+' conftest.er1 >conftest.err
21982   rm -f conftest.er1
21983   cat conftest.err >&5
21984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985   (exit $ac_status); } >/dev/null && {
21986          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21987          test ! -s conftest.err
21988        }; then
21989   cat >>confdefs.h <<\_ACEOF
21990 #define FSTYPE_GETMNT 1
21991 _ACEOF
21992  fstype=Ultrix
21993 else
21994   echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21996
21997
21998 fi
21999
22000 rm -f conftest.err conftest.$ac_ext
22001 fi
22002 { echo "$as_me:$LINENO: result: $fstype" >&5
22003 echo "${ECHO_T}$fstype" >&6; }
22004
22005 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22006   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22007 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22008 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22009   echo $ECHO_N "(cached) $ECHO_C" >&6
22010 fi
22011 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22012 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22013 else
22014   # Is the header compilable?
22015 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
22016 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
22017 cat >conftest.$ac_ext <<_ACEOF
22018 /* confdefs.h.  */
22019 _ACEOF
22020 cat confdefs.h >>conftest.$ac_ext
22021 cat >>conftest.$ac_ext <<_ACEOF
22022 /* end confdefs.h.  */
22023 $ac_includes_default
22024 #include <sys/statvfs.h>
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (ac_try="$ac_compile"
22028 case "(($ac_try" in
22029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030   *) ac_try_echo=$ac_try;;
22031 esac
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033   (eval "$ac_compile") 2>conftest.er1
22034   ac_status=$?
22035   grep -v '^ *+' conftest.er1 >conftest.err
22036   rm -f conftest.er1
22037   cat conftest.err >&5
22038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039   (exit $ac_status); } && {
22040          test -z "$ac_c_werror_flag" ||
22041          test ! -s conftest.err
22042        } && test -s conftest.$ac_objext; then
22043   ac_header_compiler=yes
22044 else
22045   echo "$as_me: failed program was:" >&5
22046 sed 's/^/| /' conftest.$ac_ext >&5
22047
22048         ac_header_compiler=no
22049 fi
22050
22051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22053 echo "${ECHO_T}$ac_header_compiler" >&6; }
22054
22055 # Is the header present?
22056 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
22057 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
22058 cat >conftest.$ac_ext <<_ACEOF
22059 /* confdefs.h.  */
22060 _ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h.  */
22064 #include <sys/statvfs.h>
22065 _ACEOF
22066 if { (ac_try="$ac_cpp conftest.$ac_ext"
22067 case "(($ac_try" in
22068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22069   *) ac_try_echo=$ac_try;;
22070 esac
22071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22072   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22073   ac_status=$?
22074   grep -v '^ *+' conftest.er1 >conftest.err
22075   rm -f conftest.er1
22076   cat conftest.err >&5
22077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22078   (exit $ac_status); } >/dev/null && {
22079          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22080          test ! -s conftest.err
22081        }; then
22082   ac_header_preproc=yes
22083 else
22084   echo "$as_me: failed program was:" >&5
22085 sed 's/^/| /' conftest.$ac_ext >&5
22086
22087   ac_header_preproc=no
22088 fi
22089
22090 rm -f conftest.err conftest.$ac_ext
22091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22092 echo "${ECHO_T}$ac_header_preproc" >&6; }
22093
22094 # So?  What about this header?
22095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22096   yes:no: )
22097     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
22098 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22099     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
22100 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
22101     ac_header_preproc=yes
22102     ;;
22103   no:yes:* )
22104     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
22105 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
22106     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
22107 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
22108     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
22109 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
22110     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
22111 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22112     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
22113 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
22114     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
22115 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
22116
22117     ;;
22118 esac
22119 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
22120 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
22121 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
22122   echo $ECHO_N "(cached) $ECHO_C" >&6
22123 else
22124   ac_cv_header_sys_statvfs_h=$ac_header_preproc
22125 fi
22126 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
22127 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
22128
22129 fi
22130 if test $ac_cv_header_sys_statvfs_h = yes; then
22131
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_SYS_STATVFS_H 1
22134 _ACEOF
22135
22136 fi
22137
22138
22139
22140 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22141 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
22142 if test "${ac_cv_type_signal+set}" = set; then
22143   echo $ECHO_N "(cached) $ECHO_C" >&6
22144 else
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 <sys/types.h>
22152 #include <signal.h>
22153
22154 int
22155 main ()
22156 {
22157 return *(signal (0, 0)) (0) == 1;
22158   ;
22159   return 0;
22160 }
22161 _ACEOF
22162 rm -f conftest.$ac_objext
22163 if { (ac_try="$ac_compile"
22164 case "(($ac_try" in
22165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22166   *) ac_try_echo=$ac_try;;
22167 esac
22168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22169   (eval "$ac_compile") 2>conftest.er1
22170   ac_status=$?
22171   grep -v '^ *+' conftest.er1 >conftest.err
22172   rm -f conftest.er1
22173   cat conftest.err >&5
22174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22175   (exit $ac_status); } && {
22176          test -z "$ac_c_werror_flag" ||
22177          test ! -s conftest.err
22178        } && test -s conftest.$ac_objext; then
22179   ac_cv_type_signal=int
22180 else
22181   echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184         ac_cv_type_signal=void
22185 fi
22186
22187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22188 fi
22189 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22190 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
22191
22192 cat >>confdefs.h <<_ACEOF
22193 #define RETSIGTYPE $ac_cv_type_signal
22194 _ACEOF
22195
22196
22197
22198   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22199 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22200   if test "${bash_cv_signal_vintage+set}" = set; then
22201   echo $ECHO_N "(cached) $ECHO_C" >&6
22202 else
22203
22204     cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h.  */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h.  */
22210 #include <signal.h>
22211 int
22212 main ()
22213 {
22214
22215       sigset_t ss;
22216       struct sigaction sa;
22217       sigemptyset(&ss); sigsuspend(&ss);
22218       sigaction(SIGINT, &sa, (struct sigaction *) 0);
22219       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22220
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 rm -f conftest.$ac_objext conftest$ac_exeext
22226 if { (ac_try="$ac_link"
22227 case "(($ac_try" in
22228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229   *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232   (eval "$ac_link") 2>conftest.er1
22233   ac_status=$?
22234   grep -v '^ *+' conftest.er1 >conftest.err
22235   rm -f conftest.er1
22236   cat conftest.err >&5
22237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238   (exit $ac_status); } && {
22239          test -z "$ac_c_werror_flag" ||
22240          test ! -s conftest.err
22241        } && test -s conftest$ac_exeext &&
22242        $as_test_x conftest$ac_exeext; then
22243   bash_cv_signal_vintage="posix"
22244 else
22245   echo "$as_me: failed program was:" >&5
22246 sed 's/^/| /' conftest.$ac_ext >&5
22247
22248
22249       cat >conftest.$ac_ext <<_ACEOF
22250 /* confdefs.h.  */
22251 _ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h.  */
22255 #include <signal.h>
22256 int
22257 main ()
22258 {
22259
22260           int mask = sigmask(SIGINT);
22261           sigsetmask(mask); sigblock(mask); sigpause(mask);
22262
22263   ;
22264   return 0;
22265 }
22266 _ACEOF
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (ac_try="$ac_link"
22269 case "(($ac_try" in
22270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22271   *) ac_try_echo=$ac_try;;
22272 esac
22273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22274   (eval "$ac_link") 2>conftest.er1
22275   ac_status=$?
22276   grep -v '^ *+' conftest.er1 >conftest.err
22277   rm -f conftest.er1
22278   cat conftest.err >&5
22279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22280   (exit $ac_status); } && {
22281          test -z "$ac_c_werror_flag" ||
22282          test ! -s conftest.err
22283        } && test -s conftest$ac_exeext &&
22284        $as_test_x conftest$ac_exeext; then
22285   bash_cv_signal_vintage="4.2bsd"
22286 else
22287   echo "$as_me: failed program was:" >&5
22288 sed 's/^/| /' conftest.$ac_ext >&5
22289
22290
22291         cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h.  */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h.  */
22297
22298           #include <signal.h>
22299           RETSIGTYPE foo() { }
22300 int
22301 main ()
22302 {
22303
22304                   int mask = sigmask(SIGINT);
22305                   sigset(SIGINT, foo); sigrelse(SIGINT);
22306                   sighold(SIGINT); sigpause(SIGINT);
22307
22308   ;
22309   return 0;
22310 }
22311 _ACEOF
22312 rm -f conftest.$ac_objext conftest$ac_exeext
22313 if { (ac_try="$ac_link"
22314 case "(($ac_try" in
22315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316   *) ac_try_echo=$ac_try;;
22317 esac
22318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22319   (eval "$ac_link") 2>conftest.er1
22320   ac_status=$?
22321   grep -v '^ *+' conftest.er1 >conftest.err
22322   rm -f conftest.er1
22323   cat conftest.err >&5
22324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325   (exit $ac_status); } && {
22326          test -z "$ac_c_werror_flag" ||
22327          test ! -s conftest.err
22328        } && test -s conftest$ac_exeext &&
22329        $as_test_x conftest$ac_exeext; then
22330   bash_cv_signal_vintage="svr3"
22331 else
22332   echo "$as_me: failed program was:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22334
22335         bash_cv_signal_vintage="v7"
22336
22337 fi
22338
22339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22340       conftest$ac_exeext conftest.$ac_ext
22341
22342 fi
22343
22344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22345       conftest$ac_exeext conftest.$ac_ext
22346
22347 fi
22348
22349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22350       conftest$ac_exeext conftest.$ac_ext
22351
22352 fi
22353
22354   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22355 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22356   if test "$bash_cv_signal_vintage" = "posix"; then
22357     cat >>confdefs.h <<\_ACEOF
22358 #define HAVE_POSIX_SIGNALS 1
22359 _ACEOF
22360
22361   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22362     cat >>confdefs.h <<\_ACEOF
22363 #define HAVE_BSD_SIGNALS 1
22364 _ACEOF
22365
22366   elif test "$bash_cv_signal_vintage" = "svr3"; then
22367     cat >>confdefs.h <<\_ACEOF
22368 #define HAVE_USG_SIGHOLD 1
22369 _ACEOF
22370
22371   fi
22372
22373 { echo "$as_me:$LINENO: checking for mode_t" >&5
22374 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22375 if test "${ac_cv_type_mode_t+set}" = set; then
22376   echo $ECHO_N "(cached) $ECHO_C" >&6
22377 else
22378   cat >conftest.$ac_ext <<_ACEOF
22379 /* confdefs.h.  */
22380 _ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h.  */
22384 $ac_includes_default
22385 typedef mode_t ac__type_new_;
22386 int
22387 main ()
22388 {
22389 if ((ac__type_new_ *) 0)
22390   return 0;
22391 if (sizeof (ac__type_new_))
22392   return 0;
22393   ;
22394   return 0;
22395 }
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401   *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404   (eval "$ac_compile") 2>conftest.er1
22405   ac_status=$?
22406   grep -v '^ *+' conftest.er1 >conftest.err
22407   rm -f conftest.er1
22408   cat conftest.err >&5
22409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410   (exit $ac_status); } && {
22411          test -z "$ac_c_werror_flag" ||
22412          test ! -s conftest.err
22413        } && test -s conftest.$ac_objext; then
22414   ac_cv_type_mode_t=yes
22415 else
22416   echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419         ac_cv_type_mode_t=no
22420 fi
22421
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 fi
22424 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22425 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22426 if test $ac_cv_type_mode_t = yes; then
22427   :
22428 else
22429
22430 cat >>confdefs.h <<_ACEOF
22431 #define mode_t int
22432 _ACEOF
22433
22434 fi
22435
22436 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22437 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22438 if test "${ac_cv_type_uid_t+set}" = set; then
22439   echo $ECHO_N "(cached) $ECHO_C" >&6
22440 else
22441   cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h.  */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h.  */
22447 #include <sys/types.h>
22448
22449 _ACEOF
22450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22451   $EGREP "uid_t" >/dev/null 2>&1; then
22452   ac_cv_type_uid_t=yes
22453 else
22454   ac_cv_type_uid_t=no
22455 fi
22456 rm -f conftest*
22457
22458 fi
22459 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22460 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22461 if test $ac_cv_type_uid_t = no; then
22462
22463 cat >>confdefs.h <<\_ACEOF
22464 #define uid_t int
22465 _ACEOF
22466
22467
22468 cat >>confdefs.h <<\_ACEOF
22469 #define gid_t int
22470 _ACEOF
22471
22472 fi
22473
22474 { echo "$as_me:$LINENO: checking for size_t" >&5
22475 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22476 if test "${ac_cv_type_size_t+set}" = set; then
22477   echo $ECHO_N "(cached) $ECHO_C" >&6
22478 else
22479   cat >conftest.$ac_ext <<_ACEOF
22480 /* confdefs.h.  */
22481 _ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h.  */
22485 $ac_includes_default
22486 typedef size_t ac__type_new_;
22487 int
22488 main ()
22489 {
22490 if ((ac__type_new_ *) 0)
22491   return 0;
22492 if (sizeof (ac__type_new_))
22493   return 0;
22494   ;
22495   return 0;
22496 }
22497 _ACEOF
22498 rm -f conftest.$ac_objext
22499 if { (ac_try="$ac_compile"
22500 case "(($ac_try" in
22501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502   *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505   (eval "$ac_compile") 2>conftest.er1
22506   ac_status=$?
22507   grep -v '^ *+' conftest.er1 >conftest.err
22508   rm -f conftest.er1
22509   cat conftest.err >&5
22510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22511   (exit $ac_status); } && {
22512          test -z "$ac_c_werror_flag" ||
22513          test ! -s conftest.err
22514        } && test -s conftest.$ac_objext; then
22515   ac_cv_type_size_t=yes
22516 else
22517   echo "$as_me: failed program was:" >&5
22518 sed 's/^/| /' conftest.$ac_ext >&5
22519
22520         ac_cv_type_size_t=no
22521 fi
22522
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22526 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22527 if test $ac_cv_type_size_t = yes; then
22528   :
22529 else
22530
22531 cat >>confdefs.h <<_ACEOF
22532 #define size_t unsigned int
22533 _ACEOF
22534
22535 fi
22536
22537 { echo "$as_me:$LINENO: checking for pid_t" >&5
22538 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22539 if test "${ac_cv_type_pid_t+set}" = set; then
22540   echo $ECHO_N "(cached) $ECHO_C" >&6
22541 else
22542   cat >conftest.$ac_ext <<_ACEOF
22543 /* confdefs.h.  */
22544 _ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h.  */
22548 $ac_includes_default
22549 typedef pid_t ac__type_new_;
22550 int
22551 main ()
22552 {
22553 if ((ac__type_new_ *) 0)
22554   return 0;
22555 if (sizeof (ac__type_new_))
22556   return 0;
22557   ;
22558   return 0;
22559 }
22560 _ACEOF
22561 rm -f conftest.$ac_objext
22562 if { (ac_try="$ac_compile"
22563 case "(($ac_try" in
22564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565   *) ac_try_echo=$ac_try;;
22566 esac
22567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22568   (eval "$ac_compile") 2>conftest.er1
22569   ac_status=$?
22570   grep -v '^ *+' conftest.er1 >conftest.err
22571   rm -f conftest.er1
22572   cat conftest.err >&5
22573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22574   (exit $ac_status); } && {
22575          test -z "$ac_c_werror_flag" ||
22576          test ! -s conftest.err
22577        } && test -s conftest.$ac_objext; then
22578   ac_cv_type_pid_t=yes
22579 else
22580   echo "$as_me: failed program was:" >&5
22581 sed 's/^/| /' conftest.$ac_ext >&5
22582
22583         ac_cv_type_pid_t=no
22584 fi
22585
22586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22587 fi
22588 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22589 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22590 if test $ac_cv_type_pid_t = yes; then
22591   :
22592 else
22593
22594 cat >>confdefs.h <<_ACEOF
22595 #define pid_t int
22596 _ACEOF
22597
22598 fi
22599
22600 { echo "$as_me:$LINENO: checking for off_t" >&5
22601 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22602 if test "${ac_cv_type_off_t+set}" = set; then
22603   echo $ECHO_N "(cached) $ECHO_C" >&6
22604 else
22605   cat >conftest.$ac_ext <<_ACEOF
22606 /* confdefs.h.  */
22607 _ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h.  */
22611 $ac_includes_default
22612 typedef off_t ac__type_new_;
22613 int
22614 main ()
22615 {
22616 if ((ac__type_new_ *) 0)
22617   return 0;
22618 if (sizeof (ac__type_new_))
22619   return 0;
22620   ;
22621   return 0;
22622 }
22623 _ACEOF
22624 rm -f conftest.$ac_objext
22625 if { (ac_try="$ac_compile"
22626 case "(($ac_try" in
22627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22628   *) ac_try_echo=$ac_try;;
22629 esac
22630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22631   (eval "$ac_compile") 2>conftest.er1
22632   ac_status=$?
22633   grep -v '^ *+' conftest.er1 >conftest.err
22634   rm -f conftest.er1
22635   cat conftest.err >&5
22636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22637   (exit $ac_status); } && {
22638          test -z "$ac_c_werror_flag" ||
22639          test ! -s conftest.err
22640        } && test -s conftest.$ac_objext; then
22641   ac_cv_type_off_t=yes
22642 else
22643   echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22645
22646         ac_cv_type_off_t=no
22647 fi
22648
22649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22650 fi
22651 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22652 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22653 if test $ac_cv_type_off_t = yes; then
22654   :
22655 else
22656
22657 cat >>confdefs.h <<_ACEOF
22658 #define off_t long int
22659 _ACEOF
22660
22661 fi
22662
22663 { echo "$as_me:$LINENO: checking for ino_t" >&5
22664 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22665 if test "${ac_cv_type_ino_t+set}" = set; then
22666   echo $ECHO_N "(cached) $ECHO_C" >&6
22667 else
22668   cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h.  */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h.  */
22674 $ac_includes_default
22675 typedef ino_t ac__type_new_;
22676 int
22677 main ()
22678 {
22679 if ((ac__type_new_ *) 0)
22680   return 0;
22681 if (sizeof (ac__type_new_))
22682   return 0;
22683   ;
22684   return 0;
22685 }
22686 _ACEOF
22687 rm -f conftest.$ac_objext
22688 if { (ac_try="$ac_compile"
22689 case "(($ac_try" in
22690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22691   *) ac_try_echo=$ac_try;;
22692 esac
22693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22694   (eval "$ac_compile") 2>conftest.er1
22695   ac_status=$?
22696   grep -v '^ *+' conftest.er1 >conftest.err
22697   rm -f conftest.er1
22698   cat conftest.err >&5
22699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700   (exit $ac_status); } && {
22701          test -z "$ac_c_werror_flag" ||
22702          test ! -s conftest.err
22703        } && test -s conftest.$ac_objext; then
22704   ac_cv_type_ino_t=yes
22705 else
22706   echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.$ac_ext >&5
22708
22709         ac_cv_type_ino_t=no
22710 fi
22711
22712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 fi
22714 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22715 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22716 if test $ac_cv_type_ino_t = yes; then
22717   :
22718 else
22719
22720 cat >>confdefs.h <<_ACEOF
22721 #define ino_t unsigned long
22722 _ACEOF
22723
22724 fi
22725
22726 { echo "$as_me:$LINENO: checking for dev_t" >&5
22727 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22728 if test "${ac_cv_type_dev_t+set}" = set; then
22729   echo $ECHO_N "(cached) $ECHO_C" >&6
22730 else
22731   cat >conftest.$ac_ext <<_ACEOF
22732 /* confdefs.h.  */
22733 _ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h.  */
22737 $ac_includes_default
22738 typedef dev_t ac__type_new_;
22739 int
22740 main ()
22741 {
22742 if ((ac__type_new_ *) 0)
22743   return 0;
22744 if (sizeof (ac__type_new_))
22745   return 0;
22746   ;
22747   return 0;
22748 }
22749 _ACEOF
22750 rm -f conftest.$ac_objext
22751 if { (ac_try="$ac_compile"
22752 case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_compile") 2>conftest.er1
22758   ac_status=$?
22759   grep -v '^ *+' conftest.er1 >conftest.err
22760   rm -f conftest.er1
22761   cat conftest.err >&5
22762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763   (exit $ac_status); } && {
22764          test -z "$ac_c_werror_flag" ||
22765          test ! -s conftest.err
22766        } && test -s conftest.$ac_objext; then
22767   ac_cv_type_dev_t=yes
22768 else
22769   echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22771
22772         ac_cv_type_dev_t=no
22773 fi
22774
22775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22776 fi
22777 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22778 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22779 if test $ac_cv_type_dev_t = yes; then
22780   :
22781 else
22782
22783 cat >>confdefs.h <<_ACEOF
22784 #define dev_t unsigned long
22785 _ACEOF
22786
22787 fi
22788
22789 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22790 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22791 if test "${ac_cv_type_daddr_t+set}" = set; then
22792   echo $ECHO_N "(cached) $ECHO_C" >&6
22793 else
22794   cat >conftest.$ac_ext <<_ACEOF
22795 /* confdefs.h.  */
22796 _ACEOF
22797 cat confdefs.h >>conftest.$ac_ext
22798 cat >>conftest.$ac_ext <<_ACEOF
22799 /* end confdefs.h.  */
22800 $ac_includes_default
22801 typedef daddr_t ac__type_new_;
22802 int
22803 main ()
22804 {
22805 if ((ac__type_new_ *) 0)
22806   return 0;
22807 if (sizeof (ac__type_new_))
22808   return 0;
22809   ;
22810   return 0;
22811 }
22812 _ACEOF
22813 rm -f conftest.$ac_objext
22814 if { (ac_try="$ac_compile"
22815 case "(($ac_try" in
22816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22817   *) ac_try_echo=$ac_try;;
22818 esac
22819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22820   (eval "$ac_compile") 2>conftest.er1
22821   ac_status=$?
22822   grep -v '^ *+' conftest.er1 >conftest.err
22823   rm -f conftest.er1
22824   cat conftest.err >&5
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); } && {
22827          test -z "$ac_c_werror_flag" ||
22828          test ! -s conftest.err
22829        } && test -s conftest.$ac_objext; then
22830   ac_cv_type_daddr_t=yes
22831 else
22832   echo "$as_me: failed program was:" >&5
22833 sed 's/^/| /' conftest.$ac_ext >&5
22834
22835         ac_cv_type_daddr_t=no
22836 fi
22837
22838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22839 fi
22840 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22841 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22842 if test $ac_cv_type_daddr_t = yes; then
22843   :
22844 else
22845
22846 cat >>confdefs.h <<_ACEOF
22847 #define daddr_t long
22848 _ACEOF
22849
22850 fi
22851
22852 { echo "$as_me:$LINENO: checking for major_t" >&5
22853 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22854 if test "${ac_cv_type_major_t+set}" = set; then
22855   echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857   cat >conftest.$ac_ext <<_ACEOF
22858 /* confdefs.h.  */
22859 _ACEOF
22860 cat confdefs.h >>conftest.$ac_ext
22861 cat >>conftest.$ac_ext <<_ACEOF
22862 /* end confdefs.h.  */
22863 $ac_includes_default
22864 typedef major_t ac__type_new_;
22865 int
22866 main ()
22867 {
22868 if ((ac__type_new_ *) 0)
22869   return 0;
22870 if (sizeof (ac__type_new_))
22871   return 0;
22872   ;
22873   return 0;
22874 }
22875 _ACEOF
22876 rm -f conftest.$ac_objext
22877 if { (ac_try="$ac_compile"
22878 case "(($ac_try" in
22879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22880   *) ac_try_echo=$ac_try;;
22881 esac
22882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22883   (eval "$ac_compile") 2>conftest.er1
22884   ac_status=$?
22885   grep -v '^ *+' conftest.er1 >conftest.err
22886   rm -f conftest.er1
22887   cat conftest.err >&5
22888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889   (exit $ac_status); } && {
22890          test -z "$ac_c_werror_flag" ||
22891          test ! -s conftest.err
22892        } && test -s conftest.$ac_objext; then
22893   ac_cv_type_major_t=yes
22894 else
22895   echo "$as_me: failed program was:" >&5
22896 sed 's/^/| /' conftest.$ac_ext >&5
22897
22898         ac_cv_type_major_t=no
22899 fi
22900
22901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22902 fi
22903 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22904 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22905 if test $ac_cv_type_major_t = yes; then
22906   :
22907 else
22908
22909 cat >>confdefs.h <<_ACEOF
22910 #define major_t int
22911 _ACEOF
22912
22913 fi
22914
22915 { echo "$as_me:$LINENO: checking for minor_t" >&5
22916 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22917 if test "${ac_cv_type_minor_t+set}" = set; then
22918   echo $ECHO_N "(cached) $ECHO_C" >&6
22919 else
22920   cat >conftest.$ac_ext <<_ACEOF
22921 /* confdefs.h.  */
22922 _ACEOF
22923 cat confdefs.h >>conftest.$ac_ext
22924 cat >>conftest.$ac_ext <<_ACEOF
22925 /* end confdefs.h.  */
22926 $ac_includes_default
22927 typedef minor_t ac__type_new_;
22928 int
22929 main ()
22930 {
22931 if ((ac__type_new_ *) 0)
22932   return 0;
22933 if (sizeof (ac__type_new_))
22934   return 0;
22935   ;
22936   return 0;
22937 }
22938 _ACEOF
22939 rm -f conftest.$ac_objext
22940 if { (ac_try="$ac_compile"
22941 case "(($ac_try" in
22942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943   *) ac_try_echo=$ac_try;;
22944 esac
22945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22946   (eval "$ac_compile") 2>conftest.er1
22947   ac_status=$?
22948   grep -v '^ *+' conftest.er1 >conftest.err
22949   rm -f conftest.er1
22950   cat conftest.err >&5
22951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22952   (exit $ac_status); } && {
22953          test -z "$ac_c_werror_flag" ||
22954          test ! -s conftest.err
22955        } && test -s conftest.$ac_objext; then
22956   ac_cv_type_minor_t=yes
22957 else
22958   echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961         ac_cv_type_minor_t=no
22962 fi
22963
22964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22965 fi
22966 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22967 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22968 if test $ac_cv_type_minor_t = yes; then
22969   :
22970 else
22971
22972 cat >>confdefs.h <<_ACEOF
22973 #define minor_t int
22974 _ACEOF
22975
22976 fi
22977
22978 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22979 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22980 if test "${ac_cv_type_ssize_t+set}" = set; then
22981   echo $ECHO_N "(cached) $ECHO_C" >&6
22982 else
22983   cat >conftest.$ac_ext <<_ACEOF
22984 /* confdefs.h.  */
22985 _ACEOF
22986 cat confdefs.h >>conftest.$ac_ext
22987 cat >>conftest.$ac_ext <<_ACEOF
22988 /* end confdefs.h.  */
22989 $ac_includes_default
22990 typedef ssize_t ac__type_new_;
22991 int
22992 main ()
22993 {
22994 if ((ac__type_new_ *) 0)
22995   return 0;
22996 if (sizeof (ac__type_new_))
22997   return 0;
22998   ;
22999   return 0;
23000 }
23001 _ACEOF
23002 rm -f conftest.$ac_objext
23003 if { (ac_try="$ac_compile"
23004 case "(($ac_try" in
23005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23006   *) ac_try_echo=$ac_try;;
23007 esac
23008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23009   (eval "$ac_compile") 2>conftest.er1
23010   ac_status=$?
23011   grep -v '^ *+' conftest.er1 >conftest.err
23012   rm -f conftest.er1
23013   cat conftest.err >&5
23014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015   (exit $ac_status); } && {
23016          test -z "$ac_c_werror_flag" ||
23017          test ! -s conftest.err
23018        } && test -s conftest.$ac_objext; then
23019   ac_cv_type_ssize_t=yes
23020 else
23021   echo "$as_me: failed program was:" >&5
23022 sed 's/^/| /' conftest.$ac_ext >&5
23023
23024         ac_cv_type_ssize_t=no
23025 fi
23026
23027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23028 fi
23029 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23030 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
23031 if test $ac_cv_type_ssize_t = yes; then
23032   :
23033 else
23034
23035 cat >>confdefs.h <<_ACEOF
23036 #define ssize_t int
23037 _ACEOF
23038
23039 fi
23040
23041 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
23042 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
23043 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
23044   echo $ECHO_N "(cached) $ECHO_C" >&6
23045 else
23046   cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h.  */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h.  */
23052 $ac_includes_default
23053 int
23054 main ()
23055 {
23056 static struct stat ac_aggr;
23057 if (ac_aggr.st_blocks)
23058 return 0;
23059   ;
23060   return 0;
23061 }
23062 _ACEOF
23063 rm -f conftest.$ac_objext
23064 if { (ac_try="$ac_compile"
23065 case "(($ac_try" in
23066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067   *) ac_try_echo=$ac_try;;
23068 esac
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070   (eval "$ac_compile") 2>conftest.er1
23071   ac_status=$?
23072   grep -v '^ *+' conftest.er1 >conftest.err
23073   rm -f conftest.er1
23074   cat conftest.err >&5
23075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076   (exit $ac_status); } && {
23077          test -z "$ac_c_werror_flag" ||
23078          test ! -s conftest.err
23079        } && test -s conftest.$ac_objext; then
23080   ac_cv_member_struct_stat_st_blocks=yes
23081 else
23082   echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085         cat >conftest.$ac_ext <<_ACEOF
23086 /* confdefs.h.  */
23087 _ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h.  */
23091 $ac_includes_default
23092 int
23093 main ()
23094 {
23095 static struct stat ac_aggr;
23096 if (sizeof ac_aggr.st_blocks)
23097 return 0;
23098   ;
23099   return 0;
23100 }
23101 _ACEOF
23102 rm -f conftest.$ac_objext
23103 if { (ac_try="$ac_compile"
23104 case "(($ac_try" in
23105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23106   *) ac_try_echo=$ac_try;;
23107 esac
23108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23109   (eval "$ac_compile") 2>conftest.er1
23110   ac_status=$?
23111   grep -v '^ *+' conftest.er1 >conftest.err
23112   rm -f conftest.er1
23113   cat conftest.err >&5
23114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23115   (exit $ac_status); } && {
23116          test -z "$ac_c_werror_flag" ||
23117          test ! -s conftest.err
23118        } && test -s conftest.$ac_objext; then
23119   ac_cv_member_struct_stat_st_blocks=yes
23120 else
23121   echo "$as_me: failed program was:" >&5
23122 sed 's/^/| /' conftest.$ac_ext >&5
23123
23124         ac_cv_member_struct_stat_st_blocks=no
23125 fi
23126
23127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23128 fi
23129
23130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23131 fi
23132 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23133 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23134 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23135
23136 cat >>confdefs.h <<_ACEOF
23137 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23138 _ACEOF
23139
23140
23141 cat >>confdefs.h <<\_ACEOF
23142 #define HAVE_ST_BLOCKS 1
23143 _ACEOF
23144
23145 else
23146   case " $LIBOBJS " in
23147   *" fileblocks.$ac_objext "* ) ;;
23148   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23149  ;;
23150 esac
23151
23152 fi
23153
23154
23155 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
23156 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
23157 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
23158   echo $ECHO_N "(cached) $ECHO_C" >&6
23159 else
23160   cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h.  */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h.  */
23166 $ac_includes_default
23167 int
23168 main ()
23169 {
23170 static struct stat ac_aggr;
23171 if (ac_aggr.st_rdev)
23172 return 0;
23173   ;
23174   return 0;
23175 }
23176 _ACEOF
23177 rm -f conftest.$ac_objext
23178 if { (ac_try="$ac_compile"
23179 case "(($ac_try" in
23180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181   *) ac_try_echo=$ac_try;;
23182 esac
23183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23184   (eval "$ac_compile") 2>conftest.er1
23185   ac_status=$?
23186   grep -v '^ *+' conftest.er1 >conftest.err
23187   rm -f conftest.er1
23188   cat conftest.err >&5
23189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190   (exit $ac_status); } && {
23191          test -z "$ac_c_werror_flag" ||
23192          test ! -s conftest.err
23193        } && test -s conftest.$ac_objext; then
23194   ac_cv_member_struct_stat_st_rdev=yes
23195 else
23196   echo "$as_me: failed program was:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23198
23199         cat >conftest.$ac_ext <<_ACEOF
23200 /* confdefs.h.  */
23201 _ACEOF
23202 cat confdefs.h >>conftest.$ac_ext
23203 cat >>conftest.$ac_ext <<_ACEOF
23204 /* end confdefs.h.  */
23205 $ac_includes_default
23206 int
23207 main ()
23208 {
23209 static struct stat ac_aggr;
23210 if (sizeof ac_aggr.st_rdev)
23211 return 0;
23212   ;
23213   return 0;
23214 }
23215 _ACEOF
23216 rm -f conftest.$ac_objext
23217 if { (ac_try="$ac_compile"
23218 case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_compile") 2>conftest.er1
23224   ac_status=$?
23225   grep -v '^ *+' conftest.er1 >conftest.err
23226   rm -f conftest.er1
23227   cat conftest.err >&5
23228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229   (exit $ac_status); } && {
23230          test -z "$ac_c_werror_flag" ||
23231          test ! -s conftest.err
23232        } && test -s conftest.$ac_objext; then
23233   ac_cv_member_struct_stat_st_rdev=yes
23234 else
23235   echo "$as_me: failed program was:" >&5
23236 sed 's/^/| /' conftest.$ac_ext >&5
23237
23238         ac_cv_member_struct_stat_st_rdev=no
23239 fi
23240
23241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23242 fi
23243
23244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23245 fi
23246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23248 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23249
23250 cat >>confdefs.h <<_ACEOF
23251 #define HAVE_STRUCT_STAT_ST_RDEV 1
23252 _ACEOF
23253
23254
23255 cat >>confdefs.h <<\_ACEOF
23256 #define HAVE_ST_RDEV 1
23257 _ACEOF
23258
23259 fi
23260
23261
23262 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23263 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23264 if test "${ac_cv_struct_tm+set}" = set; then
23265   echo $ECHO_N "(cached) $ECHO_C" >&6
23266 else
23267   cat >conftest.$ac_ext <<_ACEOF
23268 /* confdefs.h.  */
23269 _ACEOF
23270 cat confdefs.h >>conftest.$ac_ext
23271 cat >>conftest.$ac_ext <<_ACEOF
23272 /* end confdefs.h.  */
23273 #include <sys/types.h>
23274 #include <time.h>
23275
23276 int
23277 main ()
23278 {
23279 struct tm tm;
23280                                      int *p = &tm.tm_sec;
23281                                      return !p;
23282   ;
23283   return 0;
23284 }
23285 _ACEOF
23286 rm -f conftest.$ac_objext
23287 if { (ac_try="$ac_compile"
23288 case "(($ac_try" in
23289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23290   *) ac_try_echo=$ac_try;;
23291 esac
23292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23293   (eval "$ac_compile") 2>conftest.er1
23294   ac_status=$?
23295   grep -v '^ *+' conftest.er1 >conftest.err
23296   rm -f conftest.er1
23297   cat conftest.err >&5
23298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23299   (exit $ac_status); } && {
23300          test -z "$ac_c_werror_flag" ||
23301          test ! -s conftest.err
23302        } && test -s conftest.$ac_objext; then
23303   ac_cv_struct_tm=time.h
23304 else
23305   echo "$as_me: failed program was:" >&5
23306 sed 's/^/| /' conftest.$ac_ext >&5
23307
23308         ac_cv_struct_tm=sys/time.h
23309 fi
23310
23311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23312 fi
23313 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23314 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23315 if test $ac_cv_struct_tm = sys/time.h; then
23316
23317 cat >>confdefs.h <<\_ACEOF
23318 #define TM_IN_SYS_TIME 1
23319 _ACEOF
23320
23321 fi
23322
23323 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23324 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23325 if test "${ac_cv_c_const+set}" = set; then
23326   echo $ECHO_N "(cached) $ECHO_C" >&6
23327 else
23328   cat >conftest.$ac_ext <<_ACEOF
23329 /* confdefs.h.  */
23330 _ACEOF
23331 cat confdefs.h >>conftest.$ac_ext
23332 cat >>conftest.$ac_ext <<_ACEOF
23333 /* end confdefs.h.  */
23334
23335 int
23336 main ()
23337 {
23338 /* FIXME: Include the comments suggested by Paul. */
23339 #ifndef __cplusplus
23340   /* Ultrix mips cc rejects this.  */
23341   typedef int charset[2];
23342   const charset cs;
23343   /* SunOS 4.1.1 cc rejects this.  */
23344   char const *const *pcpcc;
23345   char **ppc;
23346   /* NEC SVR4.0.2 mips cc rejects this.  */
23347   struct point {int x, y;};
23348   static struct point const zero = {0,0};
23349   /* AIX XL C 1.02.0.0 rejects this.
23350      It does not let you subtract one const X* pointer from another in
23351      an arm of an if-expression whose if-part is not a constant
23352      expression */
23353   const char *g = "string";
23354   pcpcc = &g + (g ? g-g : 0);
23355   /* HPUX 7.0 cc rejects these. */
23356   ++pcpcc;
23357   ppc = (char**) pcpcc;
23358   pcpcc = (char const *const *) ppc;
23359   { /* SCO 3.2v4 cc rejects this.  */
23360     char *t;
23361     char const *s = 0 ? (char *) 0 : (char const *) 0;
23362
23363     *t++ = 0;
23364     if (s) return 0;
23365   }
23366   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23367     int x[] = {25, 17};
23368     const int *foo = &x[0];
23369     ++foo;
23370   }
23371   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23372     typedef const int *iptr;
23373     iptr p = 0;
23374     ++p;
23375   }
23376   { /* AIX XL C 1.02.0.0 rejects this saying
23377        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23378     struct s { int j; const int *ap[3]; };
23379     struct s *b; b->j = 5;
23380   }
23381   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23382     const int foo = 10;
23383     if (!foo) return 0;
23384   }
23385   return !cs[0] && !zero.x;
23386 #endif
23387
23388   ;
23389   return 0;
23390 }
23391 _ACEOF
23392 rm -f conftest.$ac_objext
23393 if { (ac_try="$ac_compile"
23394 case "(($ac_try" in
23395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396   *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399   (eval "$ac_compile") 2>conftest.er1
23400   ac_status=$?
23401   grep -v '^ *+' conftest.er1 >conftest.err
23402   rm -f conftest.er1
23403   cat conftest.err >&5
23404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405   (exit $ac_status); } && {
23406          test -z "$ac_c_werror_flag" ||
23407          test ! -s conftest.err
23408        } && test -s conftest.$ac_objext; then
23409   ac_cv_c_const=yes
23410 else
23411   echo "$as_me: failed program was:" >&5
23412 sed 's/^/| /' conftest.$ac_ext >&5
23413
23414         ac_cv_c_const=no
23415 fi
23416
23417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23418 fi
23419 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23420 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23421 if test $ac_cv_c_const = no; then
23422
23423 cat >>confdefs.h <<\_ACEOF
23424 #define const
23425 _ACEOF
23426
23427 fi
23428
23429
23430
23431 { echo "$as_me:$LINENO: checking for char" >&5
23432 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23433 if test "${ac_cv_type_char+set}" = set; then
23434   echo $ECHO_N "(cached) $ECHO_C" >&6
23435 else
23436   cat >conftest.$ac_ext <<_ACEOF
23437 /* confdefs.h.  */
23438 _ACEOF
23439 cat confdefs.h >>conftest.$ac_ext
23440 cat >>conftest.$ac_ext <<_ACEOF
23441 /* end confdefs.h.  */
23442 $ac_includes_default
23443 typedef char ac__type_new_;
23444 int
23445 main ()
23446 {
23447 if ((ac__type_new_ *) 0)
23448   return 0;
23449 if (sizeof (ac__type_new_))
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_type_char=yes
23473 else
23474   echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477         ac_cv_type_char=no
23478 fi
23479
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 fi
23482 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23483 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23484
23485 # The cast to long int works around a bug in the HP C Compiler
23486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23488 # This bug is HP SR number 8606223364.
23489 { echo "$as_me:$LINENO: checking size of char" >&5
23490 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23491 if test "${ac_cv_sizeof_char+set}" = set; then
23492   echo $ECHO_N "(cached) $ECHO_C" >&6
23493 else
23494   if test "$cross_compiling" = yes; then
23495   # Depending upon the size, compute the lo and hi bounds.
23496 cat >conftest.$ac_ext <<_ACEOF
23497 /* confdefs.h.  */
23498 _ACEOF
23499 cat confdefs.h >>conftest.$ac_ext
23500 cat >>conftest.$ac_ext <<_ACEOF
23501 /* end confdefs.h.  */
23502 $ac_includes_default
23503    typedef char ac__type_sizeof_;
23504 int
23505 main ()
23506 {
23507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23508 test_array [0] = 0
23509
23510   ;
23511   return 0;
23512 }
23513 _ACEOF
23514 rm -f conftest.$ac_objext
23515 if { (ac_try="$ac_compile"
23516 case "(($ac_try" in
23517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23518   *) ac_try_echo=$ac_try;;
23519 esac
23520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23521   (eval "$ac_compile") 2>conftest.er1
23522   ac_status=$?
23523   grep -v '^ *+' conftest.er1 >conftest.err
23524   rm -f conftest.er1
23525   cat conftest.err >&5
23526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527   (exit $ac_status); } && {
23528          test -z "$ac_c_werror_flag" ||
23529          test ! -s conftest.err
23530        } && test -s conftest.$ac_objext; then
23531   ac_lo=0 ac_mid=0
23532   while :; do
23533     cat >conftest.$ac_ext <<_ACEOF
23534 /* confdefs.h.  */
23535 _ACEOF
23536 cat confdefs.h >>conftest.$ac_ext
23537 cat >>conftest.$ac_ext <<_ACEOF
23538 /* end confdefs.h.  */
23539 $ac_includes_default
23540    typedef char ac__type_sizeof_;
23541 int
23542 main ()
23543 {
23544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23545 test_array [0] = 0
23546
23547   ;
23548   return 0;
23549 }
23550 _ACEOF
23551 rm -f conftest.$ac_objext
23552 if { (ac_try="$ac_compile"
23553 case "(($ac_try" in
23554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23555   *) ac_try_echo=$ac_try;;
23556 esac
23557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23558   (eval "$ac_compile") 2>conftest.er1
23559   ac_status=$?
23560   grep -v '^ *+' conftest.er1 >conftest.err
23561   rm -f conftest.er1
23562   cat conftest.err >&5
23563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23564   (exit $ac_status); } && {
23565          test -z "$ac_c_werror_flag" ||
23566          test ! -s conftest.err
23567        } && test -s conftest.$ac_objext; then
23568   ac_hi=$ac_mid; break
23569 else
23570   echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23572
23573         ac_lo=`expr $ac_mid + 1`
23574                         if test $ac_lo -le $ac_mid; then
23575                           ac_lo= ac_hi=
23576                           break
23577                         fi
23578                         ac_mid=`expr 2 '*' $ac_mid + 1`
23579 fi
23580
23581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582   done
23583 else
23584   echo "$as_me: failed program was:" >&5
23585 sed 's/^/| /' conftest.$ac_ext >&5
23586
23587         cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 $ac_includes_default
23594    typedef char ac__type_sizeof_;
23595 int
23596 main ()
23597 {
23598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23599 test_array [0] = 0
23600
23601   ;
23602   return 0;
23603 }
23604 _ACEOF
23605 rm -f conftest.$ac_objext
23606 if { (ac_try="$ac_compile"
23607 case "(($ac_try" in
23608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23609   *) ac_try_echo=$ac_try;;
23610 esac
23611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23612   (eval "$ac_compile") 2>conftest.er1
23613   ac_status=$?
23614   grep -v '^ *+' conftest.er1 >conftest.err
23615   rm -f conftest.er1
23616   cat conftest.err >&5
23617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618   (exit $ac_status); } && {
23619          test -z "$ac_c_werror_flag" ||
23620          test ! -s conftest.err
23621        } && test -s conftest.$ac_objext; then
23622   ac_hi=-1 ac_mid=-1
23623   while :; do
23624     cat >conftest.$ac_ext <<_ACEOF
23625 /* confdefs.h.  */
23626 _ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h.  */
23630 $ac_includes_default
23631    typedef char ac__type_sizeof_;
23632 int
23633 main ()
23634 {
23635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23636 test_array [0] = 0
23637
23638   ;
23639   return 0;
23640 }
23641 _ACEOF
23642 rm -f conftest.$ac_objext
23643 if { (ac_try="$ac_compile"
23644 case "(($ac_try" in
23645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23646   *) ac_try_echo=$ac_try;;
23647 esac
23648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23649   (eval "$ac_compile") 2>conftest.er1
23650   ac_status=$?
23651   grep -v '^ *+' conftest.er1 >conftest.err
23652   rm -f conftest.er1
23653   cat conftest.err >&5
23654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655   (exit $ac_status); } && {
23656          test -z "$ac_c_werror_flag" ||
23657          test ! -s conftest.err
23658        } && test -s conftest.$ac_objext; then
23659   ac_lo=$ac_mid; break
23660 else
23661   echo "$as_me: failed program was:" >&5
23662 sed 's/^/| /' conftest.$ac_ext >&5
23663
23664         ac_hi=`expr '(' $ac_mid ')' - 1`
23665                         if test $ac_mid -le $ac_hi; then
23666                           ac_lo= ac_hi=
23667                           break
23668                         fi
23669                         ac_mid=`expr 2 '*' $ac_mid`
23670 fi
23671
23672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23673   done
23674 else
23675   echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678         ac_lo= ac_hi=
23679 fi
23680
23681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23682 fi
23683
23684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 # Binary search between lo and hi bounds.
23686 while test "x$ac_lo" != "x$ac_hi"; do
23687   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23688   cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h.  */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h.  */
23694 $ac_includes_default
23695    typedef char ac__type_sizeof_;
23696 int
23697 main ()
23698 {
23699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23700 test_array [0] = 0
23701
23702   ;
23703   return 0;
23704 }
23705 _ACEOF
23706 rm -f conftest.$ac_objext
23707 if { (ac_try="$ac_compile"
23708 case "(($ac_try" in
23709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23710   *) ac_try_echo=$ac_try;;
23711 esac
23712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23713   (eval "$ac_compile") 2>conftest.er1
23714   ac_status=$?
23715   grep -v '^ *+' conftest.er1 >conftest.err
23716   rm -f conftest.er1
23717   cat conftest.err >&5
23718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719   (exit $ac_status); } && {
23720          test -z "$ac_c_werror_flag" ||
23721          test ! -s conftest.err
23722        } && test -s conftest.$ac_objext; then
23723   ac_hi=$ac_mid
23724 else
23725   echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23727
23728         ac_lo=`expr '(' $ac_mid ')' + 1`
23729 fi
23730
23731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23732 done
23733 case $ac_lo in
23734 ?*) ac_cv_sizeof_char=$ac_lo;;
23735 '') if test "$ac_cv_type_char" = yes; then
23736      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23737 See \`config.log' for more details." >&5
23738 echo "$as_me: error: cannot compute sizeof (char)
23739 See \`config.log' for more details." >&2;}
23740    { (exit 77); exit 77; }; }
23741    else
23742      ac_cv_sizeof_char=0
23743    fi ;;
23744 esac
23745 else
23746   cat >conftest.$ac_ext <<_ACEOF
23747 /* confdefs.h.  */
23748 _ACEOF
23749 cat confdefs.h >>conftest.$ac_ext
23750 cat >>conftest.$ac_ext <<_ACEOF
23751 /* end confdefs.h.  */
23752 $ac_includes_default
23753    typedef char ac__type_sizeof_;
23754 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23755 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23756 #include <stdio.h>
23757 #include <stdlib.h>
23758 int
23759 main ()
23760 {
23761
23762   FILE *f = fopen ("conftest.val", "w");
23763   if (! f)
23764     return 1;
23765   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23766     {
23767       long int i = longval ();
23768       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23769         return 1;
23770       fprintf (f, "%ld\n", i);
23771     }
23772   else
23773     {
23774       unsigned long int i = ulongval ();
23775       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23776         return 1;
23777       fprintf (f, "%lu\n", i);
23778     }
23779   return ferror (f) || fclose (f) != 0;
23780
23781   ;
23782   return 0;
23783 }
23784 _ACEOF
23785 rm -f conftest$ac_exeext
23786 if { (ac_try="$ac_link"
23787 case "(($ac_try" in
23788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23789   *) ac_try_echo=$ac_try;;
23790 esac
23791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23792   (eval "$ac_link") 2>&5
23793   ac_status=$?
23794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23796   { (case "(($ac_try" in
23797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23798   *) ac_try_echo=$ac_try;;
23799 esac
23800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23801   (eval "$ac_try") 2>&5
23802   ac_status=$?
23803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804   (exit $ac_status); }; }; then
23805   ac_cv_sizeof_char=`cat conftest.val`
23806 else
23807   echo "$as_me: program exited with status $ac_status" >&5
23808 echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.$ac_ext >&5
23810
23811 ( exit $ac_status )
23812 if test "$ac_cv_type_char" = yes; then
23813      { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23814 See \`config.log' for more details." >&5
23815 echo "$as_me: error: cannot compute sizeof (char)
23816 See \`config.log' for more details." >&2;}
23817    { (exit 77); exit 77; }; }
23818    else
23819      ac_cv_sizeof_char=0
23820    fi
23821 fi
23822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23823 fi
23824 rm -f conftest.val
23825 fi
23826 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23827 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23828
23829
23830
23831 cat >>confdefs.h <<_ACEOF
23832 #define SIZEOF_CHAR $ac_cv_sizeof_char
23833 _ACEOF
23834
23835
23836 { echo "$as_me:$LINENO: checking for short int" >&5
23837 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23838 if test "${ac_cv_type_short_int+set}" = set; then
23839   echo $ECHO_N "(cached) $ECHO_C" >&6
23840 else
23841   cat >conftest.$ac_ext <<_ACEOF
23842 /* confdefs.h.  */
23843 _ACEOF
23844 cat confdefs.h >>conftest.$ac_ext
23845 cat >>conftest.$ac_ext <<_ACEOF
23846 /* end confdefs.h.  */
23847 $ac_includes_default
23848 typedef short int ac__type_new_;
23849 int
23850 main ()
23851 {
23852 if ((ac__type_new_ *) 0)
23853   return 0;
23854 if (sizeof (ac__type_new_))
23855   return 0;
23856   ;
23857   return 0;
23858 }
23859 _ACEOF
23860 rm -f conftest.$ac_objext
23861 if { (ac_try="$ac_compile"
23862 case "(($ac_try" in
23863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23864   *) ac_try_echo=$ac_try;;
23865 esac
23866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23867   (eval "$ac_compile") 2>conftest.er1
23868   ac_status=$?
23869   grep -v '^ *+' conftest.er1 >conftest.err
23870   rm -f conftest.er1
23871   cat conftest.err >&5
23872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873   (exit $ac_status); } && {
23874          test -z "$ac_c_werror_flag" ||
23875          test ! -s conftest.err
23876        } && test -s conftest.$ac_objext; then
23877   ac_cv_type_short_int=yes
23878 else
23879   echo "$as_me: failed program was:" >&5
23880 sed 's/^/| /' conftest.$ac_ext >&5
23881
23882         ac_cv_type_short_int=no
23883 fi
23884
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 fi
23887 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23888 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23889
23890 # The cast to long int works around a bug in the HP C Compiler
23891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23893 # This bug is HP SR number 8606223364.
23894 { echo "$as_me:$LINENO: checking size of short int" >&5
23895 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23896 if test "${ac_cv_sizeof_short_int+set}" = set; then
23897   echo $ECHO_N "(cached) $ECHO_C" >&6
23898 else
23899   if test "$cross_compiling" = yes; then
23900   # Depending upon the size, compute the lo and hi bounds.
23901 cat >conftest.$ac_ext <<_ACEOF
23902 /* confdefs.h.  */
23903 _ACEOF
23904 cat confdefs.h >>conftest.$ac_ext
23905 cat >>conftest.$ac_ext <<_ACEOF
23906 /* end confdefs.h.  */
23907 $ac_includes_default
23908    typedef short int ac__type_sizeof_;
23909 int
23910 main ()
23911 {
23912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23913 test_array [0] = 0
23914
23915   ;
23916   return 0;
23917 }
23918 _ACEOF
23919 rm -f conftest.$ac_objext
23920 if { (ac_try="$ac_compile"
23921 case "(($ac_try" in
23922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923   *) ac_try_echo=$ac_try;;
23924 esac
23925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23926   (eval "$ac_compile") 2>conftest.er1
23927   ac_status=$?
23928   grep -v '^ *+' conftest.er1 >conftest.err
23929   rm -f conftest.er1
23930   cat conftest.err >&5
23931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23932   (exit $ac_status); } && {
23933          test -z "$ac_c_werror_flag" ||
23934          test ! -s conftest.err
23935        } && test -s conftest.$ac_objext; then
23936   ac_lo=0 ac_mid=0
23937   while :; do
23938     cat >conftest.$ac_ext <<_ACEOF
23939 /* confdefs.h.  */
23940 _ACEOF
23941 cat confdefs.h >>conftest.$ac_ext
23942 cat >>conftest.$ac_ext <<_ACEOF
23943 /* end confdefs.h.  */
23944 $ac_includes_default
23945    typedef short int ac__type_sizeof_;
23946 int
23947 main ()
23948 {
23949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23950 test_array [0] = 0
23951
23952   ;
23953   return 0;
23954 }
23955 _ACEOF
23956 rm -f conftest.$ac_objext
23957 if { (ac_try="$ac_compile"
23958 case "(($ac_try" in
23959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23960   *) ac_try_echo=$ac_try;;
23961 esac
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963   (eval "$ac_compile") 2>conftest.er1
23964   ac_status=$?
23965   grep -v '^ *+' conftest.er1 >conftest.err
23966   rm -f conftest.er1
23967   cat conftest.err >&5
23968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969   (exit $ac_status); } && {
23970          test -z "$ac_c_werror_flag" ||
23971          test ! -s conftest.err
23972        } && test -s conftest.$ac_objext; then
23973   ac_hi=$ac_mid; break
23974 else
23975   echo "$as_me: failed program was:" >&5
23976 sed 's/^/| /' conftest.$ac_ext >&5
23977
23978         ac_lo=`expr $ac_mid + 1`
23979                         if test $ac_lo -le $ac_mid; then
23980                           ac_lo= ac_hi=
23981                           break
23982                         fi
23983                         ac_mid=`expr 2 '*' $ac_mid + 1`
23984 fi
23985
23986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23987   done
23988 else
23989   echo "$as_me: failed program was:" >&5
23990 sed 's/^/| /' conftest.$ac_ext >&5
23991
23992         cat >conftest.$ac_ext <<_ACEOF
23993 /* confdefs.h.  */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h.  */
23998 $ac_includes_default
23999    typedef short int ac__type_sizeof_;
24000 int
24001 main ()
24002 {
24003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24004 test_array [0] = 0
24005
24006   ;
24007   return 0;
24008 }
24009 _ACEOF
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014   *) ac_try_echo=$ac_try;;
24015 esac
24016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24017   (eval "$ac_compile") 2>conftest.er1
24018   ac_status=$?
24019   grep -v '^ *+' conftest.er1 >conftest.err
24020   rm -f conftest.er1
24021   cat conftest.err >&5
24022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023   (exit $ac_status); } && {
24024          test -z "$ac_c_werror_flag" ||
24025          test ! -s conftest.err
24026        } && test -s conftest.$ac_objext; then
24027   ac_hi=-1 ac_mid=-1
24028   while :; do
24029     cat >conftest.$ac_ext <<_ACEOF
24030 /* confdefs.h.  */
24031 _ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h.  */
24035 $ac_includes_default
24036    typedef short int ac__type_sizeof_;
24037 int
24038 main ()
24039 {
24040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24041 test_array [0] = 0
24042
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 rm -f conftest.$ac_objext
24048 if { (ac_try="$ac_compile"
24049 case "(($ac_try" in
24050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051   *) ac_try_echo=$ac_try;;
24052 esac
24053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24054   (eval "$ac_compile") 2>conftest.er1
24055   ac_status=$?
24056   grep -v '^ *+' conftest.er1 >conftest.err
24057   rm -f conftest.er1
24058   cat conftest.err >&5
24059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060   (exit $ac_status); } && {
24061          test -z "$ac_c_werror_flag" ||
24062          test ! -s conftest.err
24063        } && test -s conftest.$ac_objext; then
24064   ac_lo=$ac_mid; break
24065 else
24066   echo "$as_me: failed program was:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24068
24069         ac_hi=`expr '(' $ac_mid ')' - 1`
24070                         if test $ac_mid -le $ac_hi; then
24071                           ac_lo= ac_hi=
24072                           break
24073                         fi
24074                         ac_mid=`expr 2 '*' $ac_mid`
24075 fi
24076
24077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24078   done
24079 else
24080   echo "$as_me: failed program was:" >&5
24081 sed 's/^/| /' conftest.$ac_ext >&5
24082
24083         ac_lo= ac_hi=
24084 fi
24085
24086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24087 fi
24088
24089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24090 # Binary search between lo and hi bounds.
24091 while test "x$ac_lo" != "x$ac_hi"; do
24092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24093   cat >conftest.$ac_ext <<_ACEOF
24094 /* confdefs.h.  */
24095 _ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h.  */
24099 $ac_includes_default
24100    typedef short int ac__type_sizeof_;
24101 int
24102 main ()
24103 {
24104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24105 test_array [0] = 0
24106
24107   ;
24108   return 0;
24109 }
24110 _ACEOF
24111 rm -f conftest.$ac_objext
24112 if { (ac_try="$ac_compile"
24113 case "(($ac_try" in
24114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24115   *) ac_try_echo=$ac_try;;
24116 esac
24117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24118   (eval "$ac_compile") 2>conftest.er1
24119   ac_status=$?
24120   grep -v '^ *+' conftest.er1 >conftest.err
24121   rm -f conftest.er1
24122   cat conftest.err >&5
24123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124   (exit $ac_status); } && {
24125          test -z "$ac_c_werror_flag" ||
24126          test ! -s conftest.err
24127        } && test -s conftest.$ac_objext; then
24128   ac_hi=$ac_mid
24129 else
24130   echo "$as_me: failed program was:" >&5
24131 sed 's/^/| /' conftest.$ac_ext >&5
24132
24133         ac_lo=`expr '(' $ac_mid ')' + 1`
24134 fi
24135
24136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24137 done
24138 case $ac_lo in
24139 ?*) ac_cv_sizeof_short_int=$ac_lo;;
24140 '') if test "$ac_cv_type_short_int" = yes; then
24141      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24142 See \`config.log' for more details." >&5
24143 echo "$as_me: error: cannot compute sizeof (short int)
24144 See \`config.log' for more details." >&2;}
24145    { (exit 77); exit 77; }; }
24146    else
24147      ac_cv_sizeof_short_int=0
24148    fi ;;
24149 esac
24150 else
24151   cat >conftest.$ac_ext <<_ACEOF
24152 /* confdefs.h.  */
24153 _ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h.  */
24157 $ac_includes_default
24158    typedef short int ac__type_sizeof_;
24159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24161 #include <stdio.h>
24162 #include <stdlib.h>
24163 int
24164 main ()
24165 {
24166
24167   FILE *f = fopen ("conftest.val", "w");
24168   if (! f)
24169     return 1;
24170   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24171     {
24172       long int i = longval ();
24173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24174         return 1;
24175       fprintf (f, "%ld\n", i);
24176     }
24177   else
24178     {
24179       unsigned long int i = ulongval ();
24180       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24181         return 1;
24182       fprintf (f, "%lu\n", i);
24183     }
24184   return ferror (f) || fclose (f) != 0;
24185
24186   ;
24187   return 0;
24188 }
24189 _ACEOF
24190 rm -f conftest$ac_exeext
24191 if { (ac_try="$ac_link"
24192 case "(($ac_try" in
24193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24194   *) ac_try_echo=$ac_try;;
24195 esac
24196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24197   (eval "$ac_link") 2>&5
24198   ac_status=$?
24199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24201   { (case "(($ac_try" in
24202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24203   *) ac_try_echo=$ac_try;;
24204 esac
24205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24206   (eval "$ac_try") 2>&5
24207   ac_status=$?
24208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24209   (exit $ac_status); }; }; then
24210   ac_cv_sizeof_short_int=`cat conftest.val`
24211 else
24212   echo "$as_me: program exited with status $ac_status" >&5
24213 echo "$as_me: failed program was:" >&5
24214 sed 's/^/| /' conftest.$ac_ext >&5
24215
24216 ( exit $ac_status )
24217 if test "$ac_cv_type_short_int" = yes; then
24218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24219 See \`config.log' for more details." >&5
24220 echo "$as_me: error: cannot compute sizeof (short int)
24221 See \`config.log' for more details." >&2;}
24222    { (exit 77); exit 77; }; }
24223    else
24224      ac_cv_sizeof_short_int=0
24225    fi
24226 fi
24227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24228 fi
24229 rm -f conftest.val
24230 fi
24231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24232 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24233
24234
24235
24236 cat >>confdefs.h <<_ACEOF
24237 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24238 _ACEOF
24239
24240
24241 { echo "$as_me:$LINENO: checking for int" >&5
24242 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24243 if test "${ac_cv_type_int+set}" = set; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252 $ac_includes_default
24253 typedef int ac__type_new_;
24254 int
24255 main ()
24256 {
24257 if ((ac__type_new_ *) 0)
24258   return 0;
24259 if (sizeof (ac__type_new_))
24260   return 0;
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269   *) ac_try_echo=$ac_try;;
24270 esac
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272   (eval "$ac_compile") 2>conftest.er1
24273   ac_status=$?
24274   grep -v '^ *+' conftest.er1 >conftest.err
24275   rm -f conftest.er1
24276   cat conftest.err >&5
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); } && {
24279          test -z "$ac_c_werror_flag" ||
24280          test ! -s conftest.err
24281        } && test -s conftest.$ac_objext; then
24282   ac_cv_type_int=yes
24283 else
24284   echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287         ac_cv_type_int=no
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 fi
24292 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24293 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24294
24295 # The cast to long int works around a bug in the HP C Compiler
24296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24298 # This bug is HP SR number 8606223364.
24299 { echo "$as_me:$LINENO: checking size of int" >&5
24300 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24301 if test "${ac_cv_sizeof_int+set}" = set; then
24302   echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304   if test "$cross_compiling" = yes; then
24305   # Depending upon the size, compute the lo and hi bounds.
24306 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312 $ac_includes_default
24313    typedef int ac__type_sizeof_;
24314 int
24315 main ()
24316 {
24317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24318 test_array [0] = 0
24319
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext
24325 if { (ac_try="$ac_compile"
24326 case "(($ac_try" in
24327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328   *) ac_try_echo=$ac_try;;
24329 esac
24330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331   (eval "$ac_compile") 2>conftest.er1
24332   ac_status=$?
24333   grep -v '^ *+' conftest.er1 >conftest.err
24334   rm -f conftest.er1
24335   cat conftest.err >&5
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } && {
24338          test -z "$ac_c_werror_flag" ||
24339          test ! -s conftest.err
24340        } && test -s conftest.$ac_objext; then
24341   ac_lo=0 ac_mid=0
24342   while :; do
24343     cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 $ac_includes_default
24350    typedef int ac__type_sizeof_;
24351 int
24352 main ()
24353 {
24354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24355 test_array [0] = 0
24356
24357   ;
24358   return 0;
24359 }
24360 _ACEOF
24361 rm -f conftest.$ac_objext
24362 if { (ac_try="$ac_compile"
24363 case "(($ac_try" in
24364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365   *) ac_try_echo=$ac_try;;
24366 esac
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368   (eval "$ac_compile") 2>conftest.er1
24369   ac_status=$?
24370   grep -v '^ *+' conftest.er1 >conftest.err
24371   rm -f conftest.er1
24372   cat conftest.err >&5
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); } && {
24375          test -z "$ac_c_werror_flag" ||
24376          test ! -s conftest.err
24377        } && test -s conftest.$ac_objext; then
24378   ac_hi=$ac_mid; break
24379 else
24380   echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383         ac_lo=`expr $ac_mid + 1`
24384                         if test $ac_lo -le $ac_mid; then
24385                           ac_lo= ac_hi=
24386                           break
24387                         fi
24388                         ac_mid=`expr 2 '*' $ac_mid + 1`
24389 fi
24390
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392   done
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397         cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403 $ac_includes_default
24404    typedef int ac__type_sizeof_;
24405 int
24406 main ()
24407 {
24408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24409 test_array [0] = 0
24410
24411   ;
24412   return 0;
24413 }
24414 _ACEOF
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419   *) ac_try_echo=$ac_try;;
24420 esac
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422   (eval "$ac_compile") 2>conftest.er1
24423   ac_status=$?
24424   grep -v '^ *+' conftest.er1 >conftest.err
24425   rm -f conftest.er1
24426   cat conftest.err >&5
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); } && {
24429          test -z "$ac_c_werror_flag" ||
24430          test ! -s conftest.err
24431        } && test -s conftest.$ac_objext; then
24432   ac_hi=-1 ac_mid=-1
24433   while :; do
24434     cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h.  */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h.  */
24440 $ac_includes_default
24441    typedef int ac__type_sizeof_;
24442 int
24443 main ()
24444 {
24445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24446 test_array [0] = 0
24447
24448   ;
24449   return 0;
24450 }
24451 _ACEOF
24452 rm -f conftest.$ac_objext
24453 if { (ac_try="$ac_compile"
24454 case "(($ac_try" in
24455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456   *) ac_try_echo=$ac_try;;
24457 esac
24458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24459   (eval "$ac_compile") 2>conftest.er1
24460   ac_status=$?
24461   grep -v '^ *+' conftest.er1 >conftest.err
24462   rm -f conftest.er1
24463   cat conftest.err >&5
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); } && {
24466          test -z "$ac_c_werror_flag" ||
24467          test ! -s conftest.err
24468        } && test -s conftest.$ac_objext; then
24469   ac_lo=$ac_mid; break
24470 else
24471   echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24473
24474         ac_hi=`expr '(' $ac_mid ')' - 1`
24475                         if test $ac_mid -le $ac_hi; then
24476                           ac_lo= ac_hi=
24477                           break
24478                         fi
24479                         ac_mid=`expr 2 '*' $ac_mid`
24480 fi
24481
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483   done
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488         ac_lo= ac_hi=
24489 fi
24490
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492 fi
24493
24494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24495 # Binary search between lo and hi bounds.
24496 while test "x$ac_lo" != "x$ac_hi"; do
24497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24498   cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 $ac_includes_default
24505    typedef int ac__type_sizeof_;
24506 int
24507 main ()
24508 {
24509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24510 test_array [0] = 0
24511
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520   *) ac_try_echo=$ac_try;;
24521 esac
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523   (eval "$ac_compile") 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } && {
24530          test -z "$ac_c_werror_flag" ||
24531          test ! -s conftest.err
24532        } && test -s conftest.$ac_objext; then
24533   ac_hi=$ac_mid
24534 else
24535   echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538         ac_lo=`expr '(' $ac_mid ')' + 1`
24539 fi
24540
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 done
24543 case $ac_lo in
24544 ?*) ac_cv_sizeof_int=$ac_lo;;
24545 '') if test "$ac_cv_type_int" = yes; then
24546      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24547 See \`config.log' for more details." >&5
24548 echo "$as_me: error: cannot compute sizeof (int)
24549 See \`config.log' for more details." >&2;}
24550    { (exit 77); exit 77; }; }
24551    else
24552      ac_cv_sizeof_int=0
24553    fi ;;
24554 esac
24555 else
24556   cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 $ac_includes_default
24563    typedef int ac__type_sizeof_;
24564 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24565 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24566 #include <stdio.h>
24567 #include <stdlib.h>
24568 int
24569 main ()
24570 {
24571
24572   FILE *f = fopen ("conftest.val", "w");
24573   if (! f)
24574     return 1;
24575   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24576     {
24577       long int i = longval ();
24578       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24579         return 1;
24580       fprintf (f, "%ld\n", i);
24581     }
24582   else
24583     {
24584       unsigned long int i = ulongval ();
24585       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24586         return 1;
24587       fprintf (f, "%lu\n", i);
24588     }
24589   return ferror (f) || fclose (f) != 0;
24590
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602   (eval "$ac_link") 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24606   { (case "(($ac_try" in
24607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608   *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611   (eval "$ac_try") 2>&5
24612   ac_status=$?
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; }; then
24615   ac_cv_sizeof_int=`cat conftest.val`
24616 else
24617   echo "$as_me: program exited with status $ac_status" >&5
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621 ( exit $ac_status )
24622 if test "$ac_cv_type_int" = yes; then
24623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (int)
24626 See \`config.log' for more details." >&2;}
24627    { (exit 77); exit 77; }; }
24628    else
24629      ac_cv_sizeof_int=0
24630    fi
24631 fi
24632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24633 fi
24634 rm -f conftest.val
24635 fi
24636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24637 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24638
24639
24640
24641 cat >>confdefs.h <<_ACEOF
24642 #define SIZEOF_INT $ac_cv_sizeof_int
24643 _ACEOF
24644
24645
24646 { echo "$as_me:$LINENO: checking for long int" >&5
24647 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24648 if test "${ac_cv_type_long_int+set}" = set; then
24649   echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651   cat >conftest.$ac_ext <<_ACEOF
24652 /* confdefs.h.  */
24653 _ACEOF
24654 cat confdefs.h >>conftest.$ac_ext
24655 cat >>conftest.$ac_ext <<_ACEOF
24656 /* end confdefs.h.  */
24657 $ac_includes_default
24658 typedef long int ac__type_new_;
24659 int
24660 main ()
24661 {
24662 if ((ac__type_new_ *) 0)
24663   return 0;
24664 if (sizeof (ac__type_new_))
24665   return 0;
24666   ;
24667   return 0;
24668 }
24669 _ACEOF
24670 rm -f conftest.$ac_objext
24671 if { (ac_try="$ac_compile"
24672 case "(($ac_try" in
24673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24674   *) ac_try_echo=$ac_try;;
24675 esac
24676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24677   (eval "$ac_compile") 2>conftest.er1
24678   ac_status=$?
24679   grep -v '^ *+' conftest.er1 >conftest.err
24680   rm -f conftest.er1
24681   cat conftest.err >&5
24682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683   (exit $ac_status); } && {
24684          test -z "$ac_c_werror_flag" ||
24685          test ! -s conftest.err
24686        } && test -s conftest.$ac_objext; then
24687   ac_cv_type_long_int=yes
24688 else
24689   echo "$as_me: failed program was:" >&5
24690 sed 's/^/| /' conftest.$ac_ext >&5
24691
24692         ac_cv_type_long_int=no
24693 fi
24694
24695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24696 fi
24697 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24698 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24699
24700 # The cast to long int works around a bug in the HP C Compiler
24701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24703 # This bug is HP SR number 8606223364.
24704 { echo "$as_me:$LINENO: checking size of long int" >&5
24705 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24706 if test "${ac_cv_sizeof_long_int+set}" = set; then
24707   echo $ECHO_N "(cached) $ECHO_C" >&6
24708 else
24709   if test "$cross_compiling" = yes; then
24710   # Depending upon the size, compute the lo and hi bounds.
24711 cat >conftest.$ac_ext <<_ACEOF
24712 /* confdefs.h.  */
24713 _ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h.  */
24717 $ac_includes_default
24718    typedef long int ac__type_sizeof_;
24719 int
24720 main ()
24721 {
24722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24723 test_array [0] = 0
24724
24725   ;
24726   return 0;
24727 }
24728 _ACEOF
24729 rm -f conftest.$ac_objext
24730 if { (ac_try="$ac_compile"
24731 case "(($ac_try" in
24732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24733   *) ac_try_echo=$ac_try;;
24734 esac
24735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24736   (eval "$ac_compile") 2>conftest.er1
24737   ac_status=$?
24738   grep -v '^ *+' conftest.er1 >conftest.err
24739   rm -f conftest.er1
24740   cat conftest.err >&5
24741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742   (exit $ac_status); } && {
24743          test -z "$ac_c_werror_flag" ||
24744          test ! -s conftest.err
24745        } && test -s conftest.$ac_objext; then
24746   ac_lo=0 ac_mid=0
24747   while :; do
24748     cat >conftest.$ac_ext <<_ACEOF
24749 /* confdefs.h.  */
24750 _ACEOF
24751 cat confdefs.h >>conftest.$ac_ext
24752 cat >>conftest.$ac_ext <<_ACEOF
24753 /* end confdefs.h.  */
24754 $ac_includes_default
24755    typedef long int ac__type_sizeof_;
24756 int
24757 main ()
24758 {
24759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24760 test_array [0] = 0
24761
24762   ;
24763   return 0;
24764 }
24765 _ACEOF
24766 rm -f conftest.$ac_objext
24767 if { (ac_try="$ac_compile"
24768 case "(($ac_try" in
24769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770   *) ac_try_echo=$ac_try;;
24771 esac
24772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773   (eval "$ac_compile") 2>conftest.er1
24774   ac_status=$?
24775   grep -v '^ *+' conftest.er1 >conftest.err
24776   rm -f conftest.er1
24777   cat conftest.err >&5
24778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779   (exit $ac_status); } && {
24780          test -z "$ac_c_werror_flag" ||
24781          test ! -s conftest.err
24782        } && test -s conftest.$ac_objext; then
24783   ac_hi=$ac_mid; break
24784 else
24785   echo "$as_me: failed program was:" >&5
24786 sed 's/^/| /' conftest.$ac_ext >&5
24787
24788         ac_lo=`expr $ac_mid + 1`
24789                         if test $ac_lo -le $ac_mid; then
24790                           ac_lo= ac_hi=
24791                           break
24792                         fi
24793                         ac_mid=`expr 2 '*' $ac_mid + 1`
24794 fi
24795
24796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24797   done
24798 else
24799   echo "$as_me: failed program was:" >&5
24800 sed 's/^/| /' conftest.$ac_ext >&5
24801
24802         cat >conftest.$ac_ext <<_ACEOF
24803 /* confdefs.h.  */
24804 _ACEOF
24805 cat confdefs.h >>conftest.$ac_ext
24806 cat >>conftest.$ac_ext <<_ACEOF
24807 /* end confdefs.h.  */
24808 $ac_includes_default
24809    typedef long int ac__type_sizeof_;
24810 int
24811 main ()
24812 {
24813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24814 test_array [0] = 0
24815
24816   ;
24817   return 0;
24818 }
24819 _ACEOF
24820 rm -f conftest.$ac_objext
24821 if { (ac_try="$ac_compile"
24822 case "(($ac_try" in
24823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824   *) ac_try_echo=$ac_try;;
24825 esac
24826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24827   (eval "$ac_compile") 2>conftest.er1
24828   ac_status=$?
24829   grep -v '^ *+' conftest.er1 >conftest.err
24830   rm -f conftest.er1
24831   cat conftest.err >&5
24832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24833   (exit $ac_status); } && {
24834          test -z "$ac_c_werror_flag" ||
24835          test ! -s conftest.err
24836        } && test -s conftest.$ac_objext; then
24837   ac_hi=-1 ac_mid=-1
24838   while :; do
24839     cat >conftest.$ac_ext <<_ACEOF
24840 /* confdefs.h.  */
24841 _ACEOF
24842 cat confdefs.h >>conftest.$ac_ext
24843 cat >>conftest.$ac_ext <<_ACEOF
24844 /* end confdefs.h.  */
24845 $ac_includes_default
24846    typedef long int ac__type_sizeof_;
24847 int
24848 main ()
24849 {
24850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24851 test_array [0] = 0
24852
24853   ;
24854   return 0;
24855 }
24856 _ACEOF
24857 rm -f conftest.$ac_objext
24858 if { (ac_try="$ac_compile"
24859 case "(($ac_try" in
24860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24861   *) ac_try_echo=$ac_try;;
24862 esac
24863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24864   (eval "$ac_compile") 2>conftest.er1
24865   ac_status=$?
24866   grep -v '^ *+' conftest.er1 >conftest.err
24867   rm -f conftest.er1
24868   cat conftest.err >&5
24869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24870   (exit $ac_status); } && {
24871          test -z "$ac_c_werror_flag" ||
24872          test ! -s conftest.err
24873        } && test -s conftest.$ac_objext; then
24874   ac_lo=$ac_mid; break
24875 else
24876   echo "$as_me: failed program was:" >&5
24877 sed 's/^/| /' conftest.$ac_ext >&5
24878
24879         ac_hi=`expr '(' $ac_mid ')' - 1`
24880                         if test $ac_mid -le $ac_hi; then
24881                           ac_lo= ac_hi=
24882                           break
24883                         fi
24884                         ac_mid=`expr 2 '*' $ac_mid`
24885 fi
24886
24887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888   done
24889 else
24890   echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.$ac_ext >&5
24892
24893         ac_lo= ac_hi=
24894 fi
24895
24896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24897 fi
24898
24899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24900 # Binary search between lo and hi bounds.
24901 while test "x$ac_lo" != "x$ac_hi"; do
24902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24903   cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h.  */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h.  */
24909 $ac_includes_default
24910    typedef long int ac__type_sizeof_;
24911 int
24912 main ()
24913 {
24914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24915 test_array [0] = 0
24916
24917   ;
24918   return 0;
24919 }
24920 _ACEOF
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925   *) ac_try_echo=$ac_try;;
24926 esac
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928   (eval "$ac_compile") 2>conftest.er1
24929   ac_status=$?
24930   grep -v '^ *+' conftest.er1 >conftest.err
24931   rm -f conftest.er1
24932   cat conftest.err >&5
24933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934   (exit $ac_status); } && {
24935          test -z "$ac_c_werror_flag" ||
24936          test ! -s conftest.err
24937        } && test -s conftest.$ac_objext; then
24938   ac_hi=$ac_mid
24939 else
24940   echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24942
24943         ac_lo=`expr '(' $ac_mid ')' + 1`
24944 fi
24945
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24947 done
24948 case $ac_lo in
24949 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24950 '') if test "$ac_cv_type_long_int" = yes; then
24951      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24952 See \`config.log' for more details." >&5
24953 echo "$as_me: error: cannot compute sizeof (long int)
24954 See \`config.log' for more details." >&2;}
24955    { (exit 77); exit 77; }; }
24956    else
24957      ac_cv_sizeof_long_int=0
24958    fi ;;
24959 esac
24960 else
24961   cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h.  */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h.  */
24967 $ac_includes_default
24968    typedef long int ac__type_sizeof_;
24969 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24970 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24971 #include <stdio.h>
24972 #include <stdlib.h>
24973 int
24974 main ()
24975 {
24976
24977   FILE *f = fopen ("conftest.val", "w");
24978   if (! f)
24979     return 1;
24980   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24981     {
24982       long int i = longval ();
24983       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24984         return 1;
24985       fprintf (f, "%ld\n", i);
24986     }
24987   else
24988     {
24989       unsigned long int i = ulongval ();
24990       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24991         return 1;
24992       fprintf (f, "%lu\n", i);
24993     }
24994   return ferror (f) || fclose (f) != 0;
24995
24996   ;
24997   return 0;
24998 }
24999 _ACEOF
25000 rm -f conftest$ac_exeext
25001 if { (ac_try="$ac_link"
25002 case "(($ac_try" in
25003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25004   *) ac_try_echo=$ac_try;;
25005 esac
25006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25007   (eval "$ac_link") 2>&5
25008   ac_status=$?
25009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25011   { (case "(($ac_try" in
25012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25013   *) ac_try_echo=$ac_try;;
25014 esac
25015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25016   (eval "$ac_try") 2>&5
25017   ac_status=$?
25018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019   (exit $ac_status); }; }; then
25020   ac_cv_sizeof_long_int=`cat conftest.val`
25021 else
25022   echo "$as_me: program exited with status $ac_status" >&5
25023 echo "$as_me: failed program was:" >&5
25024 sed 's/^/| /' conftest.$ac_ext >&5
25025
25026 ( exit $ac_status )
25027 if test "$ac_cv_type_long_int" = yes; then
25028      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
25029 See \`config.log' for more details." >&5
25030 echo "$as_me: error: cannot compute sizeof (long int)
25031 See \`config.log' for more details." >&2;}
25032    { (exit 77); exit 77; }; }
25033    else
25034      ac_cv_sizeof_long_int=0
25035    fi
25036 fi
25037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25038 fi
25039 rm -f conftest.val
25040 fi
25041 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
25042 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
25043
25044
25045
25046 cat >>confdefs.h <<_ACEOF
25047 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
25048 _ACEOF
25049
25050
25051 { echo "$as_me:$LINENO: checking for long long int" >&5
25052 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
25053 if test "${ac_cv_type_long_long_int+set}" = set; then
25054   echo $ECHO_N "(cached) $ECHO_C" >&6
25055 else
25056   cat >conftest.$ac_ext <<_ACEOF
25057 /* confdefs.h.  */
25058 _ACEOF
25059 cat confdefs.h >>conftest.$ac_ext
25060 cat >>conftest.$ac_ext <<_ACEOF
25061 /* end confdefs.h.  */
25062 $ac_includes_default
25063 typedef long long int ac__type_new_;
25064 int
25065 main ()
25066 {
25067 if ((ac__type_new_ *) 0)
25068   return 0;
25069 if (sizeof (ac__type_new_))
25070   return 0;
25071   ;
25072   return 0;
25073 }
25074 _ACEOF
25075 rm -f conftest.$ac_objext
25076 if { (ac_try="$ac_compile"
25077 case "(($ac_try" in
25078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25079   *) ac_try_echo=$ac_try;;
25080 esac
25081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25082   (eval "$ac_compile") 2>conftest.er1
25083   ac_status=$?
25084   grep -v '^ *+' conftest.er1 >conftest.err
25085   rm -f conftest.er1
25086   cat conftest.err >&5
25087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25088   (exit $ac_status); } && {
25089          test -z "$ac_c_werror_flag" ||
25090          test ! -s conftest.err
25091        } && test -s conftest.$ac_objext; then
25092   ac_cv_type_long_long_int=yes
25093 else
25094   echo "$as_me: failed program was:" >&5
25095 sed 's/^/| /' conftest.$ac_ext >&5
25096
25097         ac_cv_type_long_long_int=no
25098 fi
25099
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 fi
25102 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
25103 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
25104
25105 # The cast to long int works around a bug in the HP C Compiler
25106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25108 # This bug is HP SR number 8606223364.
25109 { echo "$as_me:$LINENO: checking size of long long int" >&5
25110 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
25111 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
25112   echo $ECHO_N "(cached) $ECHO_C" >&6
25113 else
25114   if test "$cross_compiling" = yes; then
25115   # Depending upon the size, compute the lo and hi bounds.
25116 cat >conftest.$ac_ext <<_ACEOF
25117 /* confdefs.h.  */
25118 _ACEOF
25119 cat confdefs.h >>conftest.$ac_ext
25120 cat >>conftest.$ac_ext <<_ACEOF
25121 /* end confdefs.h.  */
25122 $ac_includes_default
25123    typedef long long int ac__type_sizeof_;
25124 int
25125 main ()
25126 {
25127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25128 test_array [0] = 0
25129
25130   ;
25131   return 0;
25132 }
25133 _ACEOF
25134 rm -f conftest.$ac_objext
25135 if { (ac_try="$ac_compile"
25136 case "(($ac_try" in
25137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25138   *) ac_try_echo=$ac_try;;
25139 esac
25140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25141   (eval "$ac_compile") 2>conftest.er1
25142   ac_status=$?
25143   grep -v '^ *+' conftest.er1 >conftest.err
25144   rm -f conftest.er1
25145   cat conftest.err >&5
25146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147   (exit $ac_status); } && {
25148          test -z "$ac_c_werror_flag" ||
25149          test ! -s conftest.err
25150        } && test -s conftest.$ac_objext; then
25151   ac_lo=0 ac_mid=0
25152   while :; do
25153     cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h.  */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h.  */
25159 $ac_includes_default
25160    typedef long long int ac__type_sizeof_;
25161 int
25162 main ()
25163 {
25164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25165 test_array [0] = 0
25166
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest.$ac_objext
25172 if { (ac_try="$ac_compile"
25173 case "(($ac_try" in
25174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175   *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178   (eval "$ac_compile") 2>conftest.er1
25179   ac_status=$?
25180   grep -v '^ *+' conftest.er1 >conftest.err
25181   rm -f conftest.er1
25182   cat conftest.err >&5
25183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25184   (exit $ac_status); } && {
25185          test -z "$ac_c_werror_flag" ||
25186          test ! -s conftest.err
25187        } && test -s conftest.$ac_objext; then
25188   ac_hi=$ac_mid; break
25189 else
25190   echo "$as_me: failed program was:" >&5
25191 sed 's/^/| /' conftest.$ac_ext >&5
25192
25193         ac_lo=`expr $ac_mid + 1`
25194                         if test $ac_lo -le $ac_mid; then
25195                           ac_lo= ac_hi=
25196                           break
25197                         fi
25198                         ac_mid=`expr 2 '*' $ac_mid + 1`
25199 fi
25200
25201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25202   done
25203 else
25204   echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.$ac_ext >&5
25206
25207         cat >conftest.$ac_ext <<_ACEOF
25208 /* confdefs.h.  */
25209 _ACEOF
25210 cat confdefs.h >>conftest.$ac_ext
25211 cat >>conftest.$ac_ext <<_ACEOF
25212 /* end confdefs.h.  */
25213 $ac_includes_default
25214    typedef long long int ac__type_sizeof_;
25215 int
25216 main ()
25217 {
25218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25219 test_array [0] = 0
25220
25221   ;
25222   return 0;
25223 }
25224 _ACEOF
25225 rm -f conftest.$ac_objext
25226 if { (ac_try="$ac_compile"
25227 case "(($ac_try" in
25228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229   *) ac_try_echo=$ac_try;;
25230 esac
25231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25232   (eval "$ac_compile") 2>conftest.er1
25233   ac_status=$?
25234   grep -v '^ *+' conftest.er1 >conftest.err
25235   rm -f conftest.er1
25236   cat conftest.err >&5
25237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25238   (exit $ac_status); } && {
25239          test -z "$ac_c_werror_flag" ||
25240          test ! -s conftest.err
25241        } && test -s conftest.$ac_objext; then
25242   ac_hi=-1 ac_mid=-1
25243   while :; do
25244     cat >conftest.$ac_ext <<_ACEOF
25245 /* confdefs.h.  */
25246 _ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h.  */
25250 $ac_includes_default
25251    typedef long long int ac__type_sizeof_;
25252 int
25253 main ()
25254 {
25255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25256 test_array [0] = 0
25257
25258   ;
25259   return 0;
25260 }
25261 _ACEOF
25262 rm -f conftest.$ac_objext
25263 if { (ac_try="$ac_compile"
25264 case "(($ac_try" in
25265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25266   *) ac_try_echo=$ac_try;;
25267 esac
25268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25269   (eval "$ac_compile") 2>conftest.er1
25270   ac_status=$?
25271   grep -v '^ *+' conftest.er1 >conftest.err
25272   rm -f conftest.er1
25273   cat conftest.err >&5
25274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25275   (exit $ac_status); } && {
25276          test -z "$ac_c_werror_flag" ||
25277          test ! -s conftest.err
25278        } && test -s conftest.$ac_objext; then
25279   ac_lo=$ac_mid; break
25280 else
25281   echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25283
25284         ac_hi=`expr '(' $ac_mid ')' - 1`
25285                         if test $ac_mid -le $ac_hi; then
25286                           ac_lo= ac_hi=
25287                           break
25288                         fi
25289                         ac_mid=`expr 2 '*' $ac_mid`
25290 fi
25291
25292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25293   done
25294 else
25295   echo "$as_me: failed program was:" >&5
25296 sed 's/^/| /' conftest.$ac_ext >&5
25297
25298         ac_lo= ac_hi=
25299 fi
25300
25301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25302 fi
25303
25304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25305 # Binary search between lo and hi bounds.
25306 while test "x$ac_lo" != "x$ac_hi"; do
25307   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25308   cat >conftest.$ac_ext <<_ACEOF
25309 /* confdefs.h.  */
25310 _ACEOF
25311 cat confdefs.h >>conftest.$ac_ext
25312 cat >>conftest.$ac_ext <<_ACEOF
25313 /* end confdefs.h.  */
25314 $ac_includes_default
25315    typedef long long int ac__type_sizeof_;
25316 int
25317 main ()
25318 {
25319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25320 test_array [0] = 0
25321
25322   ;
25323   return 0;
25324 }
25325 _ACEOF
25326 rm -f conftest.$ac_objext
25327 if { (ac_try="$ac_compile"
25328 case "(($ac_try" in
25329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25330   *) ac_try_echo=$ac_try;;
25331 esac
25332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25333   (eval "$ac_compile") 2>conftest.er1
25334   ac_status=$?
25335   grep -v '^ *+' conftest.er1 >conftest.err
25336   rm -f conftest.er1
25337   cat conftest.err >&5
25338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25339   (exit $ac_status); } && {
25340          test -z "$ac_c_werror_flag" ||
25341          test ! -s conftest.err
25342        } && test -s conftest.$ac_objext; then
25343   ac_hi=$ac_mid
25344 else
25345   echo "$as_me: failed program was:" >&5
25346 sed 's/^/| /' conftest.$ac_ext >&5
25347
25348         ac_lo=`expr '(' $ac_mid ')' + 1`
25349 fi
25350
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25352 done
25353 case $ac_lo in
25354 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25355 '') if test "$ac_cv_type_long_long_int" = yes; then
25356      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25357 See \`config.log' for more details." >&5
25358 echo "$as_me: error: cannot compute sizeof (long long int)
25359 See \`config.log' for more details." >&2;}
25360    { (exit 77); exit 77; }; }
25361    else
25362      ac_cv_sizeof_long_long_int=0
25363    fi ;;
25364 esac
25365 else
25366   cat >conftest.$ac_ext <<_ACEOF
25367 /* confdefs.h.  */
25368 _ACEOF
25369 cat confdefs.h >>conftest.$ac_ext
25370 cat >>conftest.$ac_ext <<_ACEOF
25371 /* end confdefs.h.  */
25372 $ac_includes_default
25373    typedef long long int ac__type_sizeof_;
25374 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25375 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25376 #include <stdio.h>
25377 #include <stdlib.h>
25378 int
25379 main ()
25380 {
25381
25382   FILE *f = fopen ("conftest.val", "w");
25383   if (! f)
25384     return 1;
25385   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25386     {
25387       long int i = longval ();
25388       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25389         return 1;
25390       fprintf (f, "%ld\n", i);
25391     }
25392   else
25393     {
25394       unsigned long int i = ulongval ();
25395       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25396         return 1;
25397       fprintf (f, "%lu\n", i);
25398     }
25399   return ferror (f) || fclose (f) != 0;
25400
25401   ;
25402   return 0;
25403 }
25404 _ACEOF
25405 rm -f conftest$ac_exeext
25406 if { (ac_try="$ac_link"
25407 case "(($ac_try" in
25408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25409   *) ac_try_echo=$ac_try;;
25410 esac
25411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25412   (eval "$ac_link") 2>&5
25413   ac_status=$?
25414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25416   { (case "(($ac_try" in
25417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25418   *) ac_try_echo=$ac_try;;
25419 esac
25420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25421   (eval "$ac_try") 2>&5
25422   ac_status=$?
25423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25424   (exit $ac_status); }; }; then
25425   ac_cv_sizeof_long_long_int=`cat conftest.val`
25426 else
25427   echo "$as_me: program exited with status $ac_status" >&5
25428 echo "$as_me: failed program was:" >&5
25429 sed 's/^/| /' conftest.$ac_ext >&5
25430
25431 ( exit $ac_status )
25432 if test "$ac_cv_type_long_long_int" = yes; then
25433      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25434 See \`config.log' for more details." >&5
25435 echo "$as_me: error: cannot compute sizeof (long long int)
25436 See \`config.log' for more details." >&2;}
25437    { (exit 77); exit 77; }; }
25438    else
25439      ac_cv_sizeof_long_long_int=0
25440    fi
25441 fi
25442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25443 fi
25444 rm -f conftest.val
25445 fi
25446 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25447 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25448
25449
25450
25451 cat >>confdefs.h <<_ACEOF
25452 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25453 _ACEOF
25454
25455
25456 { echo "$as_me:$LINENO: checking for int *" >&5
25457 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25458 if test "${ac_cv_type_int_p+set}" = set; then
25459   echo $ECHO_N "(cached) $ECHO_C" >&6
25460 else
25461   cat >conftest.$ac_ext <<_ACEOF
25462 /* confdefs.h.  */
25463 _ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h.  */
25467 $ac_includes_default
25468 typedef int * ac__type_new_;
25469 int
25470 main ()
25471 {
25472 if ((ac__type_new_ *) 0)
25473   return 0;
25474 if (sizeof (ac__type_new_))
25475   return 0;
25476   ;
25477   return 0;
25478 }
25479 _ACEOF
25480 rm -f conftest.$ac_objext
25481 if { (ac_try="$ac_compile"
25482 case "(($ac_try" in
25483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484   *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487   (eval "$ac_compile") 2>conftest.er1
25488   ac_status=$?
25489   grep -v '^ *+' conftest.er1 >conftest.err
25490   rm -f conftest.er1
25491   cat conftest.err >&5
25492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493   (exit $ac_status); } && {
25494          test -z "$ac_c_werror_flag" ||
25495          test ! -s conftest.err
25496        } && test -s conftest.$ac_objext; then
25497   ac_cv_type_int_p=yes
25498 else
25499   echo "$as_me: failed program was:" >&5
25500 sed 's/^/| /' conftest.$ac_ext >&5
25501
25502         ac_cv_type_int_p=no
25503 fi
25504
25505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506 fi
25507 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25508 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25509
25510 # The cast to long int works around a bug in the HP C Compiler
25511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25513 # This bug is HP SR number 8606223364.
25514 { echo "$as_me:$LINENO: checking size of int *" >&5
25515 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25516 if test "${ac_cv_sizeof_int_p+set}" = set; then
25517   echo $ECHO_N "(cached) $ECHO_C" >&6
25518 else
25519   if test "$cross_compiling" = yes; then
25520   # Depending upon the size, compute the lo and hi bounds.
25521 cat >conftest.$ac_ext <<_ACEOF
25522 /* confdefs.h.  */
25523 _ACEOF
25524 cat confdefs.h >>conftest.$ac_ext
25525 cat >>conftest.$ac_ext <<_ACEOF
25526 /* end confdefs.h.  */
25527 $ac_includes_default
25528    typedef int * ac__type_sizeof_;
25529 int
25530 main ()
25531 {
25532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25533 test_array [0] = 0
25534
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 rm -f conftest.$ac_objext
25540 if { (ac_try="$ac_compile"
25541 case "(($ac_try" in
25542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543   *) ac_try_echo=$ac_try;;
25544 esac
25545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546   (eval "$ac_compile") 2>conftest.er1
25547   ac_status=$?
25548   grep -v '^ *+' conftest.er1 >conftest.err
25549   rm -f conftest.er1
25550   cat conftest.err >&5
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); } && {
25553          test -z "$ac_c_werror_flag" ||
25554          test ! -s conftest.err
25555        } && test -s conftest.$ac_objext; then
25556   ac_lo=0 ac_mid=0
25557   while :; do
25558     cat >conftest.$ac_ext <<_ACEOF
25559 /* confdefs.h.  */
25560 _ACEOF
25561 cat confdefs.h >>conftest.$ac_ext
25562 cat >>conftest.$ac_ext <<_ACEOF
25563 /* end confdefs.h.  */
25564 $ac_includes_default
25565    typedef int * ac__type_sizeof_;
25566 int
25567 main ()
25568 {
25569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25570 test_array [0] = 0
25571
25572   ;
25573   return 0;
25574 }
25575 _ACEOF
25576 rm -f conftest.$ac_objext
25577 if { (ac_try="$ac_compile"
25578 case "(($ac_try" in
25579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25580   *) ac_try_echo=$ac_try;;
25581 esac
25582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25583   (eval "$ac_compile") 2>conftest.er1
25584   ac_status=$?
25585   grep -v '^ *+' conftest.er1 >conftest.err
25586   rm -f conftest.er1
25587   cat conftest.err >&5
25588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589   (exit $ac_status); } && {
25590          test -z "$ac_c_werror_flag" ||
25591          test ! -s conftest.err
25592        } && test -s conftest.$ac_objext; then
25593   ac_hi=$ac_mid; break
25594 else
25595   echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25597
25598         ac_lo=`expr $ac_mid + 1`
25599                         if test $ac_lo -le $ac_mid; then
25600                           ac_lo= ac_hi=
25601                           break
25602                         fi
25603                         ac_mid=`expr 2 '*' $ac_mid + 1`
25604 fi
25605
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25607   done
25608 else
25609   echo "$as_me: failed program was:" >&5
25610 sed 's/^/| /' conftest.$ac_ext >&5
25611
25612         cat >conftest.$ac_ext <<_ACEOF
25613 /* confdefs.h.  */
25614 _ACEOF
25615 cat confdefs.h >>conftest.$ac_ext
25616 cat >>conftest.$ac_ext <<_ACEOF
25617 /* end confdefs.h.  */
25618 $ac_includes_default
25619    typedef int * ac__type_sizeof_;
25620 int
25621 main ()
25622 {
25623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25624 test_array [0] = 0
25625
25626   ;
25627   return 0;
25628 }
25629 _ACEOF
25630 rm -f conftest.$ac_objext
25631 if { (ac_try="$ac_compile"
25632 case "(($ac_try" in
25633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25634   *) ac_try_echo=$ac_try;;
25635 esac
25636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25637   (eval "$ac_compile") 2>conftest.er1
25638   ac_status=$?
25639   grep -v '^ *+' conftest.er1 >conftest.err
25640   rm -f conftest.er1
25641   cat conftest.err >&5
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); } && {
25644          test -z "$ac_c_werror_flag" ||
25645          test ! -s conftest.err
25646        } && test -s conftest.$ac_objext; then
25647   ac_hi=-1 ac_mid=-1
25648   while :; do
25649     cat >conftest.$ac_ext <<_ACEOF
25650 /* confdefs.h.  */
25651 _ACEOF
25652 cat confdefs.h >>conftest.$ac_ext
25653 cat >>conftest.$ac_ext <<_ACEOF
25654 /* end confdefs.h.  */
25655 $ac_includes_default
25656    typedef int * ac__type_sizeof_;
25657 int
25658 main ()
25659 {
25660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25661 test_array [0] = 0
25662
25663   ;
25664   return 0;
25665 }
25666 _ACEOF
25667 rm -f conftest.$ac_objext
25668 if { (ac_try="$ac_compile"
25669 case "(($ac_try" in
25670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25671   *) ac_try_echo=$ac_try;;
25672 esac
25673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25674   (eval "$ac_compile") 2>conftest.er1
25675   ac_status=$?
25676   grep -v '^ *+' conftest.er1 >conftest.err
25677   rm -f conftest.er1
25678   cat conftest.err >&5
25679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680   (exit $ac_status); } && {
25681          test -z "$ac_c_werror_flag" ||
25682          test ! -s conftest.err
25683        } && test -s conftest.$ac_objext; then
25684   ac_lo=$ac_mid; break
25685 else
25686   echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689         ac_hi=`expr '(' $ac_mid ')' - 1`
25690                         if test $ac_mid -le $ac_hi; then
25691                           ac_lo= ac_hi=
25692                           break
25693                         fi
25694                         ac_mid=`expr 2 '*' $ac_mid`
25695 fi
25696
25697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25698   done
25699 else
25700   echo "$as_me: failed program was:" >&5
25701 sed 's/^/| /' conftest.$ac_ext >&5
25702
25703         ac_lo= ac_hi=
25704 fi
25705
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25707 fi
25708
25709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25710 # Binary search between lo and hi bounds.
25711 while test "x$ac_lo" != "x$ac_hi"; do
25712   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25713   cat >conftest.$ac_ext <<_ACEOF
25714 /* confdefs.h.  */
25715 _ACEOF
25716 cat confdefs.h >>conftest.$ac_ext
25717 cat >>conftest.$ac_ext <<_ACEOF
25718 /* end confdefs.h.  */
25719 $ac_includes_default
25720    typedef int * ac__type_sizeof_;
25721 int
25722 main ()
25723 {
25724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25725 test_array [0] = 0
25726
25727   ;
25728   return 0;
25729 }
25730 _ACEOF
25731 rm -f conftest.$ac_objext
25732 if { (ac_try="$ac_compile"
25733 case "(($ac_try" in
25734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735   *) ac_try_echo=$ac_try;;
25736 esac
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738   (eval "$ac_compile") 2>conftest.er1
25739   ac_status=$?
25740   grep -v '^ *+' conftest.er1 >conftest.err
25741   rm -f conftest.er1
25742   cat conftest.err >&5
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); } && {
25745          test -z "$ac_c_werror_flag" ||
25746          test ! -s conftest.err
25747        } && test -s conftest.$ac_objext; then
25748   ac_hi=$ac_mid
25749 else
25750   echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25752
25753         ac_lo=`expr '(' $ac_mid ')' + 1`
25754 fi
25755
25756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 done
25758 case $ac_lo in
25759 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25760 '') if test "$ac_cv_type_int_p" = yes; then
25761      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25762 See \`config.log' for more details." >&5
25763 echo "$as_me: error: cannot compute sizeof (int *)
25764 See \`config.log' for more details." >&2;}
25765    { (exit 77); exit 77; }; }
25766    else
25767      ac_cv_sizeof_int_p=0
25768    fi ;;
25769 esac
25770 else
25771   cat >conftest.$ac_ext <<_ACEOF
25772 /* confdefs.h.  */
25773 _ACEOF
25774 cat confdefs.h >>conftest.$ac_ext
25775 cat >>conftest.$ac_ext <<_ACEOF
25776 /* end confdefs.h.  */
25777 $ac_includes_default
25778    typedef int * ac__type_sizeof_;
25779 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25780 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25781 #include <stdio.h>
25782 #include <stdlib.h>
25783 int
25784 main ()
25785 {
25786
25787   FILE *f = fopen ("conftest.val", "w");
25788   if (! f)
25789     return 1;
25790   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25791     {
25792       long int i = longval ();
25793       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25794         return 1;
25795       fprintf (f, "%ld\n", i);
25796     }
25797   else
25798     {
25799       unsigned long int i = ulongval ();
25800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25801         return 1;
25802       fprintf (f, "%lu\n", i);
25803     }
25804   return ferror (f) || fclose (f) != 0;
25805
25806   ;
25807   return 0;
25808 }
25809 _ACEOF
25810 rm -f conftest$ac_exeext
25811 if { (ac_try="$ac_link"
25812 case "(($ac_try" in
25813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25814   *) ac_try_echo=$ac_try;;
25815 esac
25816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25817   (eval "$ac_link") 2>&5
25818   ac_status=$?
25819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25821   { (case "(($ac_try" in
25822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25823   *) ac_try_echo=$ac_try;;
25824 esac
25825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25826   (eval "$ac_try") 2>&5
25827   ac_status=$?
25828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25829   (exit $ac_status); }; }; then
25830   ac_cv_sizeof_int_p=`cat conftest.val`
25831 else
25832   echo "$as_me: program exited with status $ac_status" >&5
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25835
25836 ( exit $ac_status )
25837 if test "$ac_cv_type_int_p" = yes; then
25838      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25839 See \`config.log' for more details." >&5
25840 echo "$as_me: error: cannot compute sizeof (int *)
25841 See \`config.log' for more details." >&2;}
25842    { (exit 77); exit 77; }; }
25843    else
25844      ac_cv_sizeof_int_p=0
25845    fi
25846 fi
25847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25848 fi
25849 rm -f conftest.val
25850 fi
25851 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25852 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25853
25854
25855
25856 cat >>confdefs.h <<_ACEOF
25857 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25858 _ACEOF
25859
25860
25861
25862 # Check for sys/types.h types
25863 { echo "$as_me:$LINENO: checking for u_int type" >&5
25864 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25865 if test "${ac_cv_have_u_int+set}" = set; then
25866   echo $ECHO_N "(cached) $ECHO_C" >&6
25867 else
25868
25869     cat >conftest.$ac_ext <<_ACEOF
25870 /* confdefs.h.  */
25871 _ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h.  */
25875  #include <sys/types.h>
25876 int
25877 main ()
25878 {
25879  u_int a; a = 1;
25880   ;
25881   return 0;
25882 }
25883 _ACEOF
25884 rm -f conftest.$ac_objext
25885 if { (ac_try="$ac_compile"
25886 case "(($ac_try" in
25887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25888   *) ac_try_echo=$ac_try;;
25889 esac
25890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25891   (eval "$ac_compile") 2>conftest.er1
25892   ac_status=$?
25893   grep -v '^ *+' conftest.er1 >conftest.err
25894   rm -f conftest.er1
25895   cat conftest.err >&5
25896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897   (exit $ac_status); } && {
25898          test -z "$ac_c_werror_flag" ||
25899          test ! -s conftest.err
25900        } && test -s conftest.$ac_objext; then
25901    ac_cv_have_u_int="yes"
25902 else
25903   echo "$as_me: failed program was:" >&5
25904 sed 's/^/| /' conftest.$ac_ext >&5
25905
25906          ac_cv_have_u_int="no"
25907
25908 fi
25909
25910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25911
25912 fi
25913 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25914 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25915 if test "x$ac_cv_have_u_int" = "xyes" ; then
25916    cat >>confdefs.h <<\_ACEOF
25917 #define HAVE_U_INT 1
25918 _ACEOF
25919
25920    have_u_int=1
25921 fi
25922
25923 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25924 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25925 if test "${ac_cv_have_intmax_t+set}" = set; then
25926   echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928
25929    cat >conftest.$ac_ext <<_ACEOF
25930 /* confdefs.h.  */
25931 _ACEOF
25932 cat confdefs.h >>conftest.$ac_ext
25933 cat >>conftest.$ac_ext <<_ACEOF
25934 /* end confdefs.h.  */
25935  #include <sys/types.h>
25936 int
25937 main ()
25938 {
25939  intmax_t a; a = 1;
25940   ;
25941   return 0;
25942 }
25943 _ACEOF
25944 rm -f conftest.$ac_objext
25945 if { (ac_try="$ac_compile"
25946 case "(($ac_try" in
25947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25948   *) ac_try_echo=$ac_try;;
25949 esac
25950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25951   (eval "$ac_compile") 2>conftest.er1
25952   ac_status=$?
25953   grep -v '^ *+' conftest.er1 >conftest.err
25954   rm -f conftest.er1
25955   cat conftest.err >&5
25956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957   (exit $ac_status); } && {
25958          test -z "$ac_c_werror_flag" ||
25959          test ! -s conftest.err
25960        } && test -s conftest.$ac_objext; then
25961    ac_cv_have_intmax_t="yes"
25962 else
25963   echo "$as_me: failed program was:" >&5
25964 sed 's/^/| /' conftest.$ac_ext >&5
25965
25966
25967          cat >conftest.$ac_ext <<_ACEOF
25968 /* confdefs.h.  */
25969 _ACEOF
25970 cat confdefs.h >>conftest.$ac_ext
25971 cat >>conftest.$ac_ext <<_ACEOF
25972 /* end confdefs.h.  */
25973  #include <stdint.h>
25974 int
25975 main ()
25976 {
25977  intmax_t a; a = 1;
25978   ;
25979   return 0;
25980 }
25981 _ACEOF
25982 rm -f conftest.$ac_objext
25983 if { (ac_try="$ac_compile"
25984 case "(($ac_try" in
25985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25986   *) ac_try_echo=$ac_try;;
25987 esac
25988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25989   (eval "$ac_compile") 2>conftest.er1
25990   ac_status=$?
25991   grep -v '^ *+' conftest.er1 >conftest.err
25992   rm -f conftest.er1
25993   cat conftest.err >&5
25994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25995   (exit $ac_status); } && {
25996          test -z "$ac_c_werror_flag" ||
25997          test ! -s conftest.err
25998        } && test -s conftest.$ac_objext; then
25999    ac_cv_have_intmax_t="yes"
26000 else
26001   echo "$as_me: failed program was:" >&5
26002 sed 's/^/| /' conftest.$ac_ext >&5
26003
26004          ac_cv_have_intmax_t="no"
26005
26006 fi
26007
26008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26009
26010
26011 fi
26012
26013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26014
26015
26016 fi
26017 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
26018 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
26019 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
26020    cat >>confdefs.h <<\_ACEOF
26021 #define HAVE_INTMAX_T 1
26022 _ACEOF
26023
26024    have_intmax_t=1
26025 fi
26026
26027
26028 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
26029 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
26030 if test "${ac_cv_have_u_intmax_t+set}" = set; then
26031   echo $ECHO_N "(cached) $ECHO_C" >&6
26032 else
26033
26034    cat >conftest.$ac_ext <<_ACEOF
26035 /* confdefs.h.  */
26036 _ACEOF
26037 cat confdefs.h >>conftest.$ac_ext
26038 cat >>conftest.$ac_ext <<_ACEOF
26039 /* end confdefs.h.  */
26040  #include <sys/types.h>
26041 int
26042 main ()
26043 {
26044  u_intmax_t a; a = 1;
26045   ;
26046   return 0;
26047 }
26048 _ACEOF
26049 rm -f conftest.$ac_objext
26050 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
26057   ac_status=$?
26058   grep -v '^ *+' conftest.er1 >conftest.err
26059   rm -f conftest.er1
26060   cat conftest.err >&5
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); } && {
26063          test -z "$ac_c_werror_flag" ||
26064          test ! -s conftest.err
26065        } && test -s conftest.$ac_objext; then
26066    ac_cv_have_u_intmax_t="yes"
26067 else
26068   echo "$as_me: failed program was:" >&5
26069 sed 's/^/| /' conftest.$ac_ext >&5
26070
26071
26072          cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h.  */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h.  */
26078  #include <stdint.h>
26079 int
26080 main ()
26081 {
26082  u_intmax_t a; a = 1;
26083   ;
26084   return 0;
26085 }
26086 _ACEOF
26087 rm -f conftest.$ac_objext
26088 if { (ac_try="$ac_compile"
26089 case "(($ac_try" in
26090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091   *) ac_try_echo=$ac_try;;
26092 esac
26093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26094   (eval "$ac_compile") 2>conftest.er1
26095   ac_status=$?
26096   grep -v '^ *+' conftest.er1 >conftest.err
26097   rm -f conftest.er1
26098   cat conftest.err >&5
26099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100   (exit $ac_status); } && {
26101          test -z "$ac_c_werror_flag" ||
26102          test ! -s conftest.err
26103        } && test -s conftest.$ac_objext; then
26104    ac_cv_have_u_intmax_t="yes"
26105 else
26106   echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109          ac_cv_have_u_intmax_t="no"
26110
26111 fi
26112
26113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26114
26115
26116 fi
26117
26118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26119
26120 fi
26121 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
26122 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
26123 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
26124    cat >>confdefs.h <<\_ACEOF
26125 #define HAVE_U_INTMAX_T 1
26126 _ACEOF
26127
26128    have_u_intmax_t=1
26129 fi
26130
26131
26132 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
26133 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
26134 if test "${ac_cv_have_intxx_t+set}" = set; then
26135   echo $ECHO_N "(cached) $ECHO_C" >&6
26136 else
26137
26138    cat >conftest.$ac_ext <<_ACEOF
26139 /* confdefs.h.  */
26140 _ACEOF
26141 cat confdefs.h >>conftest.$ac_ext
26142 cat >>conftest.$ac_ext <<_ACEOF
26143 /* end confdefs.h.  */
26144  #include <sys/types.h>
26145 int
26146 main ()
26147 {
26148  int8_t a; int16_t b; int32_t c; a = b = c = 1;
26149   ;
26150   return 0;
26151 }
26152 _ACEOF
26153 rm -f conftest.$ac_objext
26154 if { (ac_try="$ac_compile"
26155 case "(($ac_try" in
26156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26157   *) ac_try_echo=$ac_try;;
26158 esac
26159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26160   (eval "$ac_compile") 2>conftest.er1
26161   ac_status=$?
26162   grep -v '^ *+' conftest.er1 >conftest.err
26163   rm -f conftest.er1
26164   cat conftest.err >&5
26165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26166   (exit $ac_status); } && {
26167          test -z "$ac_c_werror_flag" ||
26168          test ! -s conftest.err
26169        } && test -s conftest.$ac_objext; then
26170    ac_cv_have_intxx_t="yes"
26171 else
26172   echo "$as_me: failed program was:" >&5
26173 sed 's/^/| /' conftest.$ac_ext >&5
26174
26175          ac_cv_have_intxx_t="no"
26176
26177 fi
26178
26179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26180
26181 fi
26182 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
26183 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
26184 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
26185    cat >>confdefs.h <<\_ACEOF
26186 #define HAVE_INTXX_T 1
26187 _ACEOF
26188
26189    have_intxx_t=1
26190 fi
26191
26192 { echo "$as_me:$LINENO: checking for int64_t type" >&5
26193 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
26194 if test "${ac_cv_have_int64_t+set}" = set; then
26195   echo $ECHO_N "(cached) $ECHO_C" >&6
26196 else
26197
26198    cat >conftest.$ac_ext <<_ACEOF
26199 /* confdefs.h.  */
26200 _ACEOF
26201 cat confdefs.h >>conftest.$ac_ext
26202 cat >>conftest.$ac_ext <<_ACEOF
26203 /* end confdefs.h.  */
26204  #include <sys/types.h>
26205 int
26206 main ()
26207 {
26208  int64_t a; a = 1;
26209   ;
26210   return 0;
26211 }
26212 _ACEOF
26213 rm -f conftest.$ac_objext
26214 if { (ac_try="$ac_compile"
26215 case "(($ac_try" in
26216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217   *) ac_try_echo=$ac_try;;
26218 esac
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220   (eval "$ac_compile") 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } && {
26227          test -z "$ac_c_werror_flag" ||
26228          test ! -s conftest.err
26229        } && test -s conftest.$ac_objext; then
26230    ac_cv_have_int64_t="yes"
26231 else
26232   echo "$as_me: failed program was:" >&5
26233 sed 's/^/| /' conftest.$ac_ext >&5
26234
26235          ac_cv_have_int64_t="no"
26236
26237 fi
26238
26239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26240
26241 fi
26242 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26243 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26244 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26245    cat >>confdefs.h <<\_ACEOF
26246 #define HAVE_INT64_T 1
26247 _ACEOF
26248
26249    have_int64_t=1
26250 fi
26251
26252 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26253 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26254 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26255   echo $ECHO_N "(cached) $ECHO_C" >&6
26256 else
26257
26258    cat >conftest.$ac_ext <<_ACEOF
26259 /* confdefs.h.  */
26260 _ACEOF
26261 cat confdefs.h >>conftest.$ac_ext
26262 cat >>conftest.$ac_ext <<_ACEOF
26263 /* end confdefs.h.  */
26264  #include <sys/types.h>
26265 int
26266 main ()
26267 {
26268  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26269   ;
26270   return 0;
26271 }
26272 _ACEOF
26273 rm -f conftest.$ac_objext
26274 if { (ac_try="$ac_compile"
26275 case "(($ac_try" in
26276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26277   *) ac_try_echo=$ac_try;;
26278 esac
26279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26280   (eval "$ac_compile") 2>conftest.er1
26281   ac_status=$?
26282   grep -v '^ *+' conftest.er1 >conftest.err
26283   rm -f conftest.er1
26284   cat conftest.err >&5
26285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286   (exit $ac_status); } && {
26287          test -z "$ac_c_werror_flag" ||
26288          test ! -s conftest.err
26289        } && test -s conftest.$ac_objext; then
26290    ac_cv_have_u_intxx_t="yes"
26291 else
26292   echo "$as_me: failed program was:" >&5
26293 sed 's/^/| /' conftest.$ac_ext >&5
26294
26295          ac_cv_have_u_intxx_t="no"
26296
26297 fi
26298
26299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26300
26301 fi
26302 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26303 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26304 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26305    cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_U_INTXX_T 1
26307 _ACEOF
26308
26309    have_u_intxx_t=1
26310 fi
26311
26312 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26313 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26314 if test "${ac_cv_have_u_int64_t+set}" = set; then
26315   echo $ECHO_N "(cached) $ECHO_C" >&6
26316 else
26317
26318    cat >conftest.$ac_ext <<_ACEOF
26319 /* confdefs.h.  */
26320 _ACEOF
26321 cat confdefs.h >>conftest.$ac_ext
26322 cat >>conftest.$ac_ext <<_ACEOF
26323 /* end confdefs.h.  */
26324  #include <sys/types.h>
26325 int
26326 main ()
26327 {
26328  u_int64_t a; a = 1;
26329   ;
26330   return 0;
26331 }
26332 _ACEOF
26333 rm -f conftest.$ac_objext
26334 if { (ac_try="$ac_compile"
26335 case "(($ac_try" in
26336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337   *) ac_try_echo=$ac_try;;
26338 esac
26339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26340   (eval "$ac_compile") 2>conftest.er1
26341   ac_status=$?
26342   grep -v '^ *+' conftest.er1 >conftest.err
26343   rm -f conftest.er1
26344   cat conftest.err >&5
26345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346   (exit $ac_status); } && {
26347          test -z "$ac_c_werror_flag" ||
26348          test ! -s conftest.err
26349        } && test -s conftest.$ac_objext; then
26350    ac_cv_have_u_int64_t="yes"
26351 else
26352   echo "$as_me: failed program was:" >&5
26353 sed 's/^/| /' conftest.$ac_ext >&5
26354
26355          ac_cv_have_u_int64_t="no"
26356
26357 fi
26358
26359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26360
26361 fi
26362 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26363 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26364 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26365    cat >>confdefs.h <<\_ACEOF
26366 #define HAVE_U_INT64_T 1
26367 _ACEOF
26368
26369    have_u_int64_t=1
26370 fi
26371
26372 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26373            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26374 then
26375    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26376 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
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/bitypes.h>
26384 int
26385 main ()
26386 {
26387  int8_t a; int16_t b; int32_t c;
26388         u_int8_t e; u_int16_t f; u_int32_t g;
26389         a = b = c = e = f = g = 1;
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 rm -f conftest.$ac_objext
26395 if { (ac_try="$ac_compile"
26396 case "(($ac_try" in
26397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26398   *) ac_try_echo=$ac_try;;
26399 esac
26400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26401   (eval "$ac_compile") 2>conftest.er1
26402   ac_status=$?
26403   grep -v '^ *+' conftest.er1 >conftest.err
26404   rm -f conftest.er1
26405   cat conftest.err >&5
26406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26407   (exit $ac_status); } && {
26408          test -z "$ac_c_werror_flag" ||
26409          test ! -s conftest.err
26410        } && test -s conftest.$ac_objext; then
26411    cat >>confdefs.h <<\_ACEOF
26412 #define HAVE_U_INTXX_T 1
26413 _ACEOF
26414
26415         cat >>confdefs.h <<\_ACEOF
26416 #define HAVE_INTXX_T 1
26417 _ACEOF
26418
26419         cat >>confdefs.h <<\_ACEOF
26420 #define HAVE_SYS_BITYPES_H 1
26421 _ACEOF
26422
26423         { echo "$as_me:$LINENO: result: yes" >&5
26424 echo "${ECHO_T}yes" >&6; }
26425 else
26426   echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.$ac_ext >&5
26428
26429          { echo "$as_me:$LINENO: result: no" >&5
26430 echo "${ECHO_T}no" >&6; }
26431
26432 fi
26433
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 fi
26436
26437 if test -z "$have_u_intxx_t" ; then
26438    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26439 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26440 if test "${ac_cv_have_uintxx_t+set}" = set; then
26441   echo $ECHO_N "(cached) $ECHO_C" >&6
26442 else
26443
26444       cat >conftest.$ac_ext <<_ACEOF
26445 /* confdefs.h.  */
26446 _ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h.  */
26450  #include <sys/types.h>
26451 int
26452 main ()
26453 {
26454  uint8_t a; uint16_t b;
26455            uint32_t c; a = b = c = 1;
26456   ;
26457   return 0;
26458 }
26459 _ACEOF
26460 rm -f conftest.$ac_objext
26461 if { (ac_try="$ac_compile"
26462 case "(($ac_try" in
26463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26464   *) ac_try_echo=$ac_try;;
26465 esac
26466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26467   (eval "$ac_compile") 2>conftest.er1
26468   ac_status=$?
26469   grep -v '^ *+' conftest.er1 >conftest.err
26470   rm -f conftest.er1
26471   cat conftest.err >&5
26472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26473   (exit $ac_status); } && {
26474          test -z "$ac_c_werror_flag" ||
26475          test ! -s conftest.err
26476        } && test -s conftest.$ac_objext; then
26477    ac_cv_have_uintxx_t="yes"
26478 else
26479   echo "$as_me: failed program was:" >&5
26480 sed 's/^/| /' conftest.$ac_ext >&5
26481
26482          ac_cv_have_uintxx_t="no"
26483
26484 fi
26485
26486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26487
26488 fi
26489 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26490 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26491    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26492       cat >>confdefs.h <<\_ACEOF
26493 #define HAVE_UINTXX_T 1
26494 _ACEOF
26495
26496    fi
26497 fi
26498
26499 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26500           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26501 then
26502    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26503 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26504    cat >conftest.$ac_ext <<_ACEOF
26505 /* confdefs.h.  */
26506 _ACEOF
26507 cat confdefs.h >>conftest.$ac_ext
26508 cat >>conftest.$ac_ext <<_ACEOF
26509 /* end confdefs.h.  */
26510  #include <sys/bitypes.h>
26511 int
26512 main ()
26513 {
26514  int64_t a; u_int64_t b;
26515        a = b = 1;
26516   ;
26517   return 0;
26518 }
26519 _ACEOF
26520 rm -f conftest.$ac_objext
26521 if { (ac_try="$ac_compile"
26522 case "(($ac_try" in
26523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26524   *) ac_try_echo=$ac_try;;
26525 esac
26526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26527   (eval "$ac_compile") 2>conftest.er1
26528   ac_status=$?
26529   grep -v '^ *+' conftest.er1 >conftest.err
26530   rm -f conftest.er1
26531   cat conftest.err >&5
26532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26533   (exit $ac_status); } && {
26534          test -z "$ac_c_werror_flag" ||
26535          test ! -s conftest.err
26536        } && test -s conftest.$ac_objext; then
26537    cat >>confdefs.h <<\_ACEOF
26538 #define HAVE_U_INT64_T 1
26539 _ACEOF
26540
26541        cat >>confdefs.h <<\_ACEOF
26542 #define HAVE_INT64_T 1
26543 _ACEOF
26544
26545        { echo "$as_me:$LINENO: result: yes" >&5
26546 echo "${ECHO_T}yes" >&6; }
26547 else
26548   echo "$as_me: failed program was:" >&5
26549 sed 's/^/| /' conftest.$ac_ext >&5
26550
26551          { echo "$as_me:$LINENO: result: no" >&5
26552 echo "${ECHO_T}no" >&6; }
26553
26554 fi
26555
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557 fi
26558
26559 if (test -z "$have_uintxx_t" && \
26560           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26561 then
26562    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26563 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26564    cat >conftest.$ac_ext <<_ACEOF
26565 /* confdefs.h.  */
26566 _ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h.  */
26570  #include <sys/bitypes.h>
26571 int
26572 main ()
26573 {
26574  uint8_t a; uint16_t b;
26575           uint32_t c; a = b = c = 1;
26576   ;
26577   return 0;
26578 }
26579 _ACEOF
26580 rm -f conftest.$ac_objext
26581 if { (ac_try="$ac_compile"
26582 case "(($ac_try" in
26583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584   *) ac_try_echo=$ac_try;;
26585 esac
26586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587   (eval "$ac_compile") 2>conftest.er1
26588   ac_status=$?
26589   grep -v '^ *+' conftest.er1 >conftest.err
26590   rm -f conftest.er1
26591   cat conftest.err >&5
26592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593   (exit $ac_status); } && {
26594          test -z "$ac_c_werror_flag" ||
26595          test ! -s conftest.err
26596        } && test -s conftest.$ac_objext; then
26597    cat >>confdefs.h <<\_ACEOF
26598 #define HAVE_UINTXX_T 1
26599 _ACEOF
26600
26601        { echo "$as_me:$LINENO: result: yes" >&5
26602 echo "${ECHO_T}yes" >&6; }
26603 else
26604   echo "$as_me: failed program was:" >&5
26605 sed 's/^/| /' conftest.$ac_ext >&5
26606
26607          { echo "$as_me:$LINENO: result: no" >&5
26608 echo "${ECHO_T}no" >&6; }
26609
26610 fi
26611
26612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26613
26614 fi
26615
26616
26617
26618
26619
26620
26621
26622
26623
26624
26625
26626
26627
26628
26629
26630
26631
26632 for ac_func in \
26633         fork \
26634         getcwd \
26635         gethostname \
26636         getpid \
26637         gettimeofday \
26638         setpgid \
26639         setpgrp \
26640         setsid \
26641         signal \
26642         strerror \
26643         strncmp \
26644         strncpy \
26645         vfprintf \
26646
26647 do
26648 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26649 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26650 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26651 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26652   echo $ECHO_N "(cached) $ECHO_C" >&6
26653 else
26654   cat >conftest.$ac_ext <<_ACEOF
26655 /* confdefs.h.  */
26656 _ACEOF
26657 cat confdefs.h >>conftest.$ac_ext
26658 cat >>conftest.$ac_ext <<_ACEOF
26659 /* end confdefs.h.  */
26660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26661    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26662 #define $ac_func innocuous_$ac_func
26663
26664 /* System header to define __stub macros and hopefully few prototypes,
26665     which can conflict with char $ac_func (); below.
26666     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26667     <limits.h> exists even on freestanding compilers.  */
26668
26669 #ifdef __STDC__
26670 # include <limits.h>
26671 #else
26672 # include <assert.h>
26673 #endif
26674
26675 #undef $ac_func
26676
26677 /* Override any GCC internal prototype to avoid an error.
26678    Use char because int might match the return type of a GCC
26679    builtin and then its argument prototype would still apply.  */
26680 #ifdef __cplusplus
26681 extern "C"
26682 #endif
26683 char $ac_func ();
26684 /* The GNU C library defines this for functions which it implements
26685     to always fail with ENOSYS.  Some functions are actually named
26686     something starting with __ and the normal name is an alias.  */
26687 #if defined __stub_$ac_func || defined __stub___$ac_func
26688 choke me
26689 #endif
26690
26691 int
26692 main ()
26693 {
26694 return $ac_func ();
26695   ;
26696   return 0;
26697 }
26698 _ACEOF
26699 rm -f conftest.$ac_objext conftest$ac_exeext
26700 if { (ac_try="$ac_link"
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_link") 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_exeext &&
26716        $as_test_x conftest$ac_exeext; then
26717   eval "$as_ac_var=yes"
26718 else
26719   echo "$as_me: failed program was:" >&5
26720 sed 's/^/| /' conftest.$ac_ext >&5
26721
26722         eval "$as_ac_var=no"
26723 fi
26724
26725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26726       conftest$ac_exeext conftest.$ac_ext
26727 fi
26728 ac_res=`eval echo '${'$as_ac_var'}'`
26729                { echo "$as_me:$LINENO: result: $ac_res" >&5
26730 echo "${ECHO_T}$ac_res" >&6; }
26731 if test `eval echo '${'$as_ac_var'}'` = yes; then
26732   cat >>confdefs.h <<_ACEOF
26733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26734 _ACEOF
26735
26736 else
26737   echo 'configure: cannot find needed function.'; exit 1
26738
26739 fi
26740 done
26741
26742
26743
26744 for ac_func in fchdir
26745 do
26746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26750   echo $ECHO_N "(cached) $ECHO_C" >&6
26751 else
26752   cat >conftest.$ac_ext <<_ACEOF
26753 /* confdefs.h.  */
26754 _ACEOF
26755 cat confdefs.h >>conftest.$ac_ext
26756 cat >>conftest.$ac_ext <<_ACEOF
26757 /* end confdefs.h.  */
26758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26760 #define $ac_func innocuous_$ac_func
26761
26762 /* System header to define __stub macros and hopefully few prototypes,
26763     which can conflict with char $ac_func (); below.
26764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26765     <limits.h> exists even on freestanding compilers.  */
26766
26767 #ifdef __STDC__
26768 # include <limits.h>
26769 #else
26770 # include <assert.h>
26771 #endif
26772
26773 #undef $ac_func
26774
26775 /* Override any GCC internal prototype to avoid an error.
26776    Use char because int might match the return type of a GCC
26777    builtin and then its argument prototype would still apply.  */
26778 #ifdef __cplusplus
26779 extern "C"
26780 #endif
26781 char $ac_func ();
26782 /* The GNU C library defines this for functions which it implements
26783     to always fail with ENOSYS.  Some functions are actually named
26784     something starting with __ and the normal name is an alias.  */
26785 #if defined __stub_$ac_func || defined __stub___$ac_func
26786 choke me
26787 #endif
26788
26789 int
26790 main ()
26791 {
26792 return $ac_func ();
26793   ;
26794   return 0;
26795 }
26796 _ACEOF
26797 rm -f conftest.$ac_objext conftest$ac_exeext
26798 if { (ac_try="$ac_link"
26799 case "(($ac_try" in
26800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26801   *) ac_try_echo=$ac_try;;
26802 esac
26803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26804   (eval "$ac_link") 2>conftest.er1
26805   ac_status=$?
26806   grep -v '^ *+' conftest.er1 >conftest.err
26807   rm -f conftest.er1
26808   cat conftest.err >&5
26809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810   (exit $ac_status); } && {
26811          test -z "$ac_c_werror_flag" ||
26812          test ! -s conftest.err
26813        } && test -s conftest$ac_exeext &&
26814        $as_test_x conftest$ac_exeext; then
26815   eval "$as_ac_var=yes"
26816 else
26817   echo "$as_me: failed program was:" >&5
26818 sed 's/^/| /' conftest.$ac_ext >&5
26819
26820         eval "$as_ac_var=no"
26821 fi
26822
26823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26824       conftest$ac_exeext conftest.$ac_ext
26825 fi
26826 ac_res=`eval echo '${'$as_ac_var'}'`
26827                { echo "$as_me:$LINENO: result: $ac_res" >&5
26828 echo "${ECHO_T}$ac_res" >&6; }
26829 if test `eval echo '${'$as_ac_var'}'` = yes; then
26830   cat >>confdefs.h <<_ACEOF
26831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26832 _ACEOF
26833  cat >>confdefs.h <<\_ACEOF
26834 #define HAVE_FCHDIR 1
26835 _ACEOF
26836
26837 fi
26838 done
26839
26840
26841 for ac_func in strtoll
26842 do
26843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26847   echo $ECHO_N "(cached) $ECHO_C" >&6
26848 else
26849   cat >conftest.$ac_ext <<_ACEOF
26850 /* confdefs.h.  */
26851 _ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h.  */
26855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26856    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26857 #define $ac_func innocuous_$ac_func
26858
26859 /* System header to define __stub macros and hopefully few prototypes,
26860     which can conflict with char $ac_func (); below.
26861     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26862     <limits.h> exists even on freestanding compilers.  */
26863
26864 #ifdef __STDC__
26865 # include <limits.h>
26866 #else
26867 # include <assert.h>
26868 #endif
26869
26870 #undef $ac_func
26871
26872 /* Override any GCC internal prototype to avoid an error.
26873    Use char because int might match the return type of a GCC
26874    builtin and then its argument prototype would still apply.  */
26875 #ifdef __cplusplus
26876 extern "C"
26877 #endif
26878 char $ac_func ();
26879 /* The GNU C library defines this for functions which it implements
26880     to always fail with ENOSYS.  Some functions are actually named
26881     something starting with __ and the normal name is an alias.  */
26882 #if defined __stub_$ac_func || defined __stub___$ac_func
26883 choke me
26884 #endif
26885
26886 int
26887 main ()
26888 {
26889 return $ac_func ();
26890   ;
26891   return 0;
26892 }
26893 _ACEOF
26894 rm -f conftest.$ac_objext conftest$ac_exeext
26895 if { (ac_try="$ac_link"
26896 case "(($ac_try" in
26897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26898   *) ac_try_echo=$ac_try;;
26899 esac
26900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26901   (eval "$ac_link") 2>conftest.er1
26902   ac_status=$?
26903   grep -v '^ *+' conftest.er1 >conftest.err
26904   rm -f conftest.er1
26905   cat conftest.err >&5
26906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26907   (exit $ac_status); } && {
26908          test -z "$ac_c_werror_flag" ||
26909          test ! -s conftest.err
26910        } && test -s conftest$ac_exeext &&
26911        $as_test_x conftest$ac_exeext; then
26912   eval "$as_ac_var=yes"
26913 else
26914   echo "$as_me: failed program was:" >&5
26915 sed 's/^/| /' conftest.$ac_ext >&5
26916
26917         eval "$as_ac_var=no"
26918 fi
26919
26920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26921       conftest$ac_exeext conftest.$ac_ext
26922 fi
26923 ac_res=`eval echo '${'$as_ac_var'}'`
26924                { echo "$as_me:$LINENO: result: $ac_res" >&5
26925 echo "${ECHO_T}$ac_res" >&6; }
26926 if test `eval echo '${'$as_ac_var'}'` = yes; then
26927   cat >>confdefs.h <<_ACEOF
26928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26929 _ACEOF
26930  cat >>confdefs.h <<\_ACEOF
26931 #define HAVE_STRTOLL 1
26932 _ACEOF
26933
26934 fi
26935 done
26936
26937
26938 for ac_func in posix_fadvise
26939 do
26940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26944   echo $ECHO_N "(cached) $ECHO_C" >&6
26945 else
26946   cat >conftest.$ac_ext <<_ACEOF
26947 /* confdefs.h.  */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h.  */
26952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26954 #define $ac_func innocuous_$ac_func
26955
26956 /* System header to define __stub macros and hopefully few prototypes,
26957     which can conflict with char $ac_func (); below.
26958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26959     <limits.h> exists even on freestanding compilers.  */
26960
26961 #ifdef __STDC__
26962 # include <limits.h>
26963 #else
26964 # include <assert.h>
26965 #endif
26966
26967 #undef $ac_func
26968
26969 /* Override any GCC internal prototype to avoid an error.
26970    Use char because int might match the return type of a GCC
26971    builtin and then its argument prototype would still apply.  */
26972 #ifdef __cplusplus
26973 extern "C"
26974 #endif
26975 char $ac_func ();
26976 /* The GNU C library defines this for functions which it implements
26977     to always fail with ENOSYS.  Some functions are actually named
26978     something starting with __ and the normal name is an alias.  */
26979 #if defined __stub_$ac_func || defined __stub___$ac_func
26980 choke me
26981 #endif
26982
26983 int
26984 main ()
26985 {
26986 return $ac_func ();
26987   ;
26988   return 0;
26989 }
26990 _ACEOF
26991 rm -f conftest.$ac_objext conftest$ac_exeext
26992 if { (ac_try="$ac_link"
26993 case "(($ac_try" in
26994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26995   *) ac_try_echo=$ac_try;;
26996 esac
26997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26998   (eval "$ac_link") 2>conftest.er1
26999   ac_status=$?
27000   grep -v '^ *+' conftest.er1 >conftest.err
27001   rm -f conftest.er1
27002   cat conftest.err >&5
27003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27004   (exit $ac_status); } && {
27005          test -z "$ac_c_werror_flag" ||
27006          test ! -s conftest.err
27007        } && test -s conftest$ac_exeext &&
27008        $as_test_x conftest$ac_exeext; then
27009   eval "$as_ac_var=yes"
27010 else
27011   echo "$as_me: failed program was:" >&5
27012 sed 's/^/| /' conftest.$ac_ext >&5
27013
27014         eval "$as_ac_var=no"
27015 fi
27016
27017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27018       conftest$ac_exeext conftest.$ac_ext
27019 fi
27020 ac_res=`eval echo '${'$as_ac_var'}'`
27021                { echo "$as_me:$LINENO: result: $ac_res" >&5
27022 echo "${ECHO_T}$ac_res" >&6; }
27023 if test `eval echo '${'$as_ac_var'}'` = yes; then
27024   cat >>confdefs.h <<_ACEOF
27025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27026 _ACEOF
27027
27028 fi
27029 done
27030
27031
27032 for ac_func in fdatasync
27033 do
27034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27038   echo $ECHO_N "(cached) $ECHO_C" >&6
27039 else
27040   cat >conftest.$ac_ext <<_ACEOF
27041 /* confdefs.h.  */
27042 _ACEOF
27043 cat confdefs.h >>conftest.$ac_ext
27044 cat >>conftest.$ac_ext <<_ACEOF
27045 /* end confdefs.h.  */
27046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27047    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27048 #define $ac_func innocuous_$ac_func
27049
27050 /* System header to define __stub macros and hopefully few prototypes,
27051     which can conflict with char $ac_func (); below.
27052     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27053     <limits.h> exists even on freestanding compilers.  */
27054
27055 #ifdef __STDC__
27056 # include <limits.h>
27057 #else
27058 # include <assert.h>
27059 #endif
27060
27061 #undef $ac_func
27062
27063 /* Override any GCC internal prototype to avoid an error.
27064    Use char because int might match the return type of a GCC
27065    builtin and then its argument prototype would still apply.  */
27066 #ifdef __cplusplus
27067 extern "C"
27068 #endif
27069 char $ac_func ();
27070 /* The GNU C library defines this for functions which it implements
27071     to always fail with ENOSYS.  Some functions are actually named
27072     something starting with __ and the normal name is an alias.  */
27073 #if defined __stub_$ac_func || defined __stub___$ac_func
27074 choke me
27075 #endif
27076
27077 int
27078 main ()
27079 {
27080 return $ac_func ();
27081   ;
27082   return 0;
27083 }
27084 _ACEOF
27085 rm -f conftest.$ac_objext conftest$ac_exeext
27086 if { (ac_try="$ac_link"
27087 case "(($ac_try" in
27088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089   *) ac_try_echo=$ac_try;;
27090 esac
27091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092   (eval "$ac_link") 2>conftest.er1
27093   ac_status=$?
27094   grep -v '^ *+' conftest.er1 >conftest.err
27095   rm -f conftest.er1
27096   cat conftest.err >&5
27097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098   (exit $ac_status); } && {
27099          test -z "$ac_c_werror_flag" ||
27100          test ! -s conftest.err
27101        } && test -s conftest$ac_exeext &&
27102        $as_test_x conftest$ac_exeext; then
27103   eval "$as_ac_var=yes"
27104 else
27105   echo "$as_me: failed program was:" >&5
27106 sed 's/^/| /' conftest.$ac_ext >&5
27107
27108         eval "$as_ac_var=no"
27109 fi
27110
27111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27112       conftest$ac_exeext conftest.$ac_ext
27113 fi
27114 ac_res=`eval echo '${'$as_ac_var'}'`
27115                { echo "$as_me:$LINENO: result: $ac_res" >&5
27116 echo "${ECHO_T}$ac_res" >&6; }
27117 if test `eval echo '${'$as_ac_var'}'` = yes; then
27118   cat >>confdefs.h <<_ACEOF
27119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27120 _ACEOF
27121
27122 fi
27123 done
27124
27125
27126
27127 for ac_func in chflags
27128 do
27129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27133   echo $ECHO_N "(cached) $ECHO_C" >&6
27134 else
27135   cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27143 #define $ac_func innocuous_$ac_func
27144
27145 /* System header to define __stub macros and hopefully few prototypes,
27146     which can conflict with char $ac_func (); below.
27147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27148     <limits.h> exists even on freestanding compilers.  */
27149
27150 #ifdef __STDC__
27151 # include <limits.h>
27152 #else
27153 # include <assert.h>
27154 #endif
27155
27156 #undef $ac_func
27157
27158 /* Override any GCC internal prototype to avoid an error.
27159    Use char because int might match the return type of a GCC
27160    builtin and then its argument prototype would still apply.  */
27161 #ifdef __cplusplus
27162 extern "C"
27163 #endif
27164 char $ac_func ();
27165 /* The GNU C library defines this for functions which it implements
27166     to always fail with ENOSYS.  Some functions are actually named
27167     something starting with __ and the normal name is an alias.  */
27168 #if defined __stub_$ac_func || defined __stub___$ac_func
27169 choke me
27170 #endif
27171
27172 int
27173 main ()
27174 {
27175 return $ac_func ();
27176   ;
27177   return 0;
27178 }
27179 _ACEOF
27180 rm -f conftest.$ac_objext conftest$ac_exeext
27181 if { (ac_try="$ac_link"
27182 case "(($ac_try" in
27183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27184   *) ac_try_echo=$ac_try;;
27185 esac
27186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27187   (eval "$ac_link") 2>conftest.er1
27188   ac_status=$?
27189   grep -v '^ *+' conftest.er1 >conftest.err
27190   rm -f conftest.er1
27191   cat conftest.err >&5
27192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193   (exit $ac_status); } && {
27194          test -z "$ac_c_werror_flag" ||
27195          test ! -s conftest.err
27196        } && test -s conftest$ac_exeext &&
27197        $as_test_x conftest$ac_exeext; then
27198   eval "$as_ac_var=yes"
27199 else
27200   echo "$as_me: failed program was:" >&5
27201 sed 's/^/| /' conftest.$ac_ext >&5
27202
27203         eval "$as_ac_var=no"
27204 fi
27205
27206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27207       conftest$ac_exeext conftest.$ac_ext
27208 fi
27209 ac_res=`eval echo '${'$as_ac_var'}'`
27210                { echo "$as_me:$LINENO: result: $ac_res" >&5
27211 echo "${ECHO_T}$ac_res" >&6; }
27212 if test `eval echo '${'$as_ac_var'}'` = yes; then
27213   cat >>confdefs.h <<_ACEOF
27214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27215 _ACEOF
27216
27217 fi
27218 done
27219
27220
27221
27222
27223
27224
27225 for ac_func in snprintf vsnprintf gethostid fseeko
27226 do
27227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27230 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27231   echo $ECHO_N "(cached) $ECHO_C" >&6
27232 else
27233   cat >conftest.$ac_ext <<_ACEOF
27234 /* confdefs.h.  */
27235 _ACEOF
27236 cat confdefs.h >>conftest.$ac_ext
27237 cat >>conftest.$ac_ext <<_ACEOF
27238 /* end confdefs.h.  */
27239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27240    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27241 #define $ac_func innocuous_$ac_func
27242
27243 /* System header to define __stub macros and hopefully few prototypes,
27244     which can conflict with char $ac_func (); below.
27245     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27246     <limits.h> exists even on freestanding compilers.  */
27247
27248 #ifdef __STDC__
27249 # include <limits.h>
27250 #else
27251 # include <assert.h>
27252 #endif
27253
27254 #undef $ac_func
27255
27256 /* Override any GCC internal prototype to avoid an error.
27257    Use char because int might match the return type of a GCC
27258    builtin and then its argument prototype would still apply.  */
27259 #ifdef __cplusplus
27260 extern "C"
27261 #endif
27262 char $ac_func ();
27263 /* The GNU C library defines this for functions which it implements
27264     to always fail with ENOSYS.  Some functions are actually named
27265     something starting with __ and the normal name is an alias.  */
27266 #if defined __stub_$ac_func || defined __stub___$ac_func
27267 choke me
27268 #endif
27269
27270 int
27271 main ()
27272 {
27273 return $ac_func ();
27274   ;
27275   return 0;
27276 }
27277 _ACEOF
27278 rm -f conftest.$ac_objext conftest$ac_exeext
27279 if { (ac_try="$ac_link"
27280 case "(($ac_try" in
27281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27282   *) ac_try_echo=$ac_try;;
27283 esac
27284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27285   (eval "$ac_link") 2>conftest.er1
27286   ac_status=$?
27287   grep -v '^ *+' conftest.er1 >conftest.err
27288   rm -f conftest.er1
27289   cat conftest.err >&5
27290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27291   (exit $ac_status); } && {
27292          test -z "$ac_c_werror_flag" ||
27293          test ! -s conftest.err
27294        } && test -s conftest$ac_exeext &&
27295        $as_test_x conftest$ac_exeext; then
27296   eval "$as_ac_var=yes"
27297 else
27298   echo "$as_me: failed program was:" >&5
27299 sed 's/^/| /' conftest.$ac_ext >&5
27300
27301         eval "$as_ac_var=no"
27302 fi
27303
27304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27305       conftest$ac_exeext conftest.$ac_ext
27306 fi
27307 ac_res=`eval echo '${'$as_ac_var'}'`
27308                { echo "$as_me:$LINENO: result: $ac_res" >&5
27309 echo "${ECHO_T}$ac_res" >&6; }
27310 if test `eval echo '${'$as_ac_var'}'` = yes; then
27311   cat >>confdefs.h <<_ACEOF
27312 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27313 _ACEOF
27314
27315 fi
27316 done
27317
27318
27319 { echo "$as_me:$LINENO: checking for va_copy" >&5
27320 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27321 if test "${ba_cv_va_copy+set}" = set; then
27322   echo $ECHO_N "(cached) $ECHO_C" >&6
27323 else
27324   cat >conftest.$ac_ext <<_ACEOF
27325 /* confdefs.h.  */
27326 _ACEOF
27327 cat confdefs.h >>conftest.$ac_ext
27328 cat >>conftest.$ac_ext <<_ACEOF
27329 /* end confdefs.h.  */
27330
27331 #include <stdarg.h>
27332 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27333 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27334
27335 int
27336 main ()
27337 {
27338 call_use_va_copy(1,2,3)
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 rm -f conftest.$ac_objext conftest$ac_exeext
27344 if { (ac_try="$ac_link"
27345 case "(($ac_try" in
27346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27347   *) ac_try_echo=$ac_try;;
27348 esac
27349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27350   (eval "$ac_link") 2>conftest.er1
27351   ac_status=$?
27352   grep -v '^ *+' conftest.er1 >conftest.err
27353   rm -f conftest.er1
27354   cat conftest.err >&5
27355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27356   (exit $ac_status); } && {
27357          test -z "$ac_c_werror_flag" ||
27358          test ! -s conftest.err
27359        } && test -s conftest$ac_exeext &&
27360        $as_test_x conftest$ac_exeext; then
27361   ba_cv_va_copy=yes
27362 else
27363   echo "$as_me: failed program was:" >&5
27364 sed 's/^/| /' conftest.$ac_ext >&5
27365
27366         ba_cv_va_copy=no
27367 fi
27368
27369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27370       conftest$ac_exeext conftest.$ac_ext
27371 fi
27372 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27373 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27374 test $ba_cv_va_copy = yes &&
27375 cat >>confdefs.h <<\_ACEOF
27376 #define HAVE_VA_COPY 1
27377 _ACEOF
27378
27379
27380
27381
27382
27383
27384
27385 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27386 do
27387 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27388 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27389 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27390 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h.  */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h.  */
27399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27401 #define $ac_func innocuous_$ac_func
27402
27403 /* System header to define __stub macros and hopefully few prototypes,
27404     which can conflict with char $ac_func (); below.
27405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27406     <limits.h> exists even on freestanding compilers.  */
27407
27408 #ifdef __STDC__
27409 # include <limits.h>
27410 #else
27411 # include <assert.h>
27412 #endif
27413
27414 #undef $ac_func
27415
27416 /* Override any GCC internal prototype to avoid an error.
27417    Use char because int might match the return type of a GCC
27418    builtin and then its argument prototype would still apply.  */
27419 #ifdef __cplusplus
27420 extern "C"
27421 #endif
27422 char $ac_func ();
27423 /* The GNU C library defines this for functions which it implements
27424     to always fail with ENOSYS.  Some functions are actually named
27425     something starting with __ and the normal name is an alias.  */
27426 #if defined __stub_$ac_func || defined __stub___$ac_func
27427 choke me
27428 #endif
27429
27430 int
27431 main ()
27432 {
27433 return $ac_func ();
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 rm -f conftest.$ac_objext conftest$ac_exeext
27439 if { (ac_try="$ac_link"
27440 case "(($ac_try" in
27441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27442   *) ac_try_echo=$ac_try;;
27443 esac
27444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27445   (eval "$ac_link") 2>conftest.er1
27446   ac_status=$?
27447   grep -v '^ *+' conftest.er1 >conftest.err
27448   rm -f conftest.er1
27449   cat conftest.err >&5
27450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27451   (exit $ac_status); } && {
27452          test -z "$ac_c_werror_flag" ||
27453          test ! -s conftest.err
27454        } && test -s conftest$ac_exeext &&
27455        $as_test_x conftest$ac_exeext; then
27456   eval "$as_ac_var=yes"
27457 else
27458   echo "$as_me: failed program was:" >&5
27459 sed 's/^/| /' conftest.$ac_ext >&5
27460
27461         eval "$as_ac_var=no"
27462 fi
27463
27464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465       conftest$ac_exeext conftest.$ac_ext
27466 fi
27467 ac_res=`eval echo '${'$as_ac_var'}'`
27468                { echo "$as_me:$LINENO: result: $ac_res" >&5
27469 echo "${ECHO_T}$ac_res" >&6; }
27470 if test `eval echo '${'$as_ac_var'}'` = yes; then
27471   cat >>confdefs.h <<_ACEOF
27472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27473 _ACEOF
27474
27475 fi
27476 done
27477
27478
27479 # If resolver functions are not in libc check for -lnsl or -lresolv.
27480 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27481 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27482 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27483   echo $ECHO_N "(cached) $ECHO_C" >&6
27484 else
27485   cat >conftest.$ac_ext <<_ACEOF
27486 /* confdefs.h.  */
27487 _ACEOF
27488 cat confdefs.h >>conftest.$ac_ext
27489 cat >>conftest.$ac_ext <<_ACEOF
27490 /* end confdefs.h.  */
27491 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27493 #define gethostbyname_r innocuous_gethostbyname_r
27494
27495 /* System header to define __stub macros and hopefully few prototypes,
27496     which can conflict with char gethostbyname_r (); below.
27497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27498     <limits.h> exists even on freestanding compilers.  */
27499
27500 #ifdef __STDC__
27501 # include <limits.h>
27502 #else
27503 # include <assert.h>
27504 #endif
27505
27506 #undef gethostbyname_r
27507
27508 /* Override any GCC internal prototype to avoid an error.
27509    Use char because int might match the return type of a GCC
27510    builtin and then its argument prototype would still apply.  */
27511 #ifdef __cplusplus
27512 extern "C"
27513 #endif
27514 char gethostbyname_r ();
27515 /* The GNU C library defines this for functions which it implements
27516     to always fail with ENOSYS.  Some functions are actually named
27517     something starting with __ and the normal name is an alias.  */
27518 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27519 choke me
27520 #endif
27521
27522 int
27523 main ()
27524 {
27525 return gethostbyname_r ();
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 rm -f conftest.$ac_objext conftest$ac_exeext
27531 if { (ac_try="$ac_link"
27532 case "(($ac_try" in
27533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534   *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537   (eval "$ac_link") 2>conftest.er1
27538   ac_status=$?
27539   grep -v '^ *+' conftest.er1 >conftest.err
27540   rm -f conftest.er1
27541   cat conftest.err >&5
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); } && {
27544          test -z "$ac_c_werror_flag" ||
27545          test ! -s conftest.err
27546        } && test -s conftest$ac_exeext &&
27547        $as_test_x conftest$ac_exeext; then
27548   ac_cv_func_gethostbyname_r=yes
27549 else
27550   echo "$as_me: failed program was:" >&5
27551 sed 's/^/| /' conftest.$ac_ext >&5
27552
27553         ac_cv_func_gethostbyname_r=no
27554 fi
27555
27556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27557       conftest$ac_exeext conftest.$ac_ext
27558 fi
27559 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27560 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27561 if test $ac_cv_func_gethostbyname_r = yes; then
27562   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27563 echo "${ECHO_T}using libc's resolver" >&6; }
27564 else
27565
27566 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27567 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27568 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27569   echo $ECHO_N "(cached) $ECHO_C" >&6
27570 else
27571   ac_check_lib_save_LIBS=$LIBS
27572 LIBS="-lnsl  $LIBS"
27573 cat >conftest.$ac_ext <<_ACEOF
27574 /* confdefs.h.  */
27575 _ACEOF
27576 cat confdefs.h >>conftest.$ac_ext
27577 cat >>conftest.$ac_ext <<_ACEOF
27578 /* end confdefs.h.  */
27579
27580 /* Override any GCC internal prototype to avoid an error.
27581    Use char because int might match the return type of a GCC
27582    builtin and then its argument prototype would still apply.  */
27583 #ifdef __cplusplus
27584 extern "C"
27585 #endif
27586 char gethostbyname_r ();
27587 int
27588 main ()
27589 {
27590 return gethostbyname_r ();
27591   ;
27592   return 0;
27593 }
27594 _ACEOF
27595 rm -f conftest.$ac_objext conftest$ac_exeext
27596 if { (ac_try="$ac_link"
27597 case "(($ac_try" in
27598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27599   *) ac_try_echo=$ac_try;;
27600 esac
27601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27602   (eval "$ac_link") 2>conftest.er1
27603   ac_status=$?
27604   grep -v '^ *+' conftest.er1 >conftest.err
27605   rm -f conftest.er1
27606   cat conftest.err >&5
27607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608   (exit $ac_status); } && {
27609          test -z "$ac_c_werror_flag" ||
27610          test ! -s conftest.err
27611        } && test -s conftest$ac_exeext &&
27612        $as_test_x conftest$ac_exeext; then
27613   ac_cv_lib_nsl_gethostbyname_r=yes
27614 else
27615   echo "$as_me: failed program was:" >&5
27616 sed 's/^/| /' conftest.$ac_ext >&5
27617
27618         ac_cv_lib_nsl_gethostbyname_r=no
27619 fi
27620
27621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27622       conftest$ac_exeext conftest.$ac_ext
27623 LIBS=$ac_check_lib_save_LIBS
27624 fi
27625 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27626 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27627 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27628   cat >>confdefs.h <<_ACEOF
27629 #define HAVE_LIBNSL 1
27630 _ACEOF
27631
27632   LIBS="-lnsl $LIBS"
27633
27634 fi
27635
27636
27637 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27638 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27639 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27640   echo $ECHO_N "(cached) $ECHO_C" >&6
27641 else
27642   ac_check_lib_save_LIBS=$LIBS
27643 LIBS="-lresolv  $LIBS"
27644 cat >conftest.$ac_ext <<_ACEOF
27645 /* confdefs.h.  */
27646 _ACEOF
27647 cat confdefs.h >>conftest.$ac_ext
27648 cat >>conftest.$ac_ext <<_ACEOF
27649 /* end confdefs.h.  */
27650
27651 /* Override any GCC internal prototype to avoid an error.
27652    Use char because int might match the return type of a GCC
27653    builtin and then its argument prototype would still apply.  */
27654 #ifdef __cplusplus
27655 extern "C"
27656 #endif
27657 char gethostbyname_r ();
27658 int
27659 main ()
27660 {
27661 return gethostbyname_r ();
27662   ;
27663   return 0;
27664 }
27665 _ACEOF
27666 rm -f conftest.$ac_objext conftest$ac_exeext
27667 if { (ac_try="$ac_link"
27668 case "(($ac_try" in
27669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27670   *) ac_try_echo=$ac_try;;
27671 esac
27672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27673   (eval "$ac_link") 2>conftest.er1
27674   ac_status=$?
27675   grep -v '^ *+' conftest.er1 >conftest.err
27676   rm -f conftest.er1
27677   cat conftest.err >&5
27678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679   (exit $ac_status); } && {
27680          test -z "$ac_c_werror_flag" ||
27681          test ! -s conftest.err
27682        } && test -s conftest$ac_exeext &&
27683        $as_test_x conftest$ac_exeext; then
27684   ac_cv_lib_resolv_gethostbyname_r=yes
27685 else
27686   echo "$as_me: failed program was:" >&5
27687 sed 's/^/| /' conftest.$ac_ext >&5
27688
27689         ac_cv_lib_resolv_gethostbyname_r=no
27690 fi
27691
27692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27693       conftest$ac_exeext conftest.$ac_ext
27694 LIBS=$ac_check_lib_save_LIBS
27695 fi
27696 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27697 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27698 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27699   cat >>confdefs.h <<_ACEOF
27700 #define HAVE_LIBRESOLV 1
27701 _ACEOF
27702
27703   LIBS="-lresolv $LIBS"
27704
27705 fi
27706
27707 fi
27708
27709
27710
27711
27712
27713 for ac_func in inet_pton
27714 do
27715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27719   echo $ECHO_N "(cached) $ECHO_C" >&6
27720 else
27721   cat >conftest.$ac_ext <<_ACEOF
27722 /* confdefs.h.  */
27723 _ACEOF
27724 cat confdefs.h >>conftest.$ac_ext
27725 cat >>conftest.$ac_ext <<_ACEOF
27726 /* end confdefs.h.  */
27727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27729 #define $ac_func innocuous_$ac_func
27730
27731 /* System header to define __stub macros and hopefully few prototypes,
27732     which can conflict with char $ac_func (); below.
27733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27734     <limits.h> exists even on freestanding compilers.  */
27735
27736 #ifdef __STDC__
27737 # include <limits.h>
27738 #else
27739 # include <assert.h>
27740 #endif
27741
27742 #undef $ac_func
27743
27744 /* Override any GCC internal prototype to avoid an error.
27745    Use char because int might match the return type of a GCC
27746    builtin and then its argument prototype would still apply.  */
27747 #ifdef __cplusplus
27748 extern "C"
27749 #endif
27750 char $ac_func ();
27751 /* The GNU C library defines this for functions which it implements
27752     to always fail with ENOSYS.  Some functions are actually named
27753     something starting with __ and the normal name is an alias.  */
27754 #if defined __stub_$ac_func || defined __stub___$ac_func
27755 choke me
27756 #endif
27757
27758 int
27759 main ()
27760 {
27761 return $ac_func ();
27762   ;
27763   return 0;
27764 }
27765 _ACEOF
27766 rm -f conftest.$ac_objext conftest$ac_exeext
27767 if { (ac_try="$ac_link"
27768 case "(($ac_try" in
27769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27770   *) ac_try_echo=$ac_try;;
27771 esac
27772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27773   (eval "$ac_link") 2>conftest.er1
27774   ac_status=$?
27775   grep -v '^ *+' conftest.er1 >conftest.err
27776   rm -f conftest.er1
27777   cat conftest.err >&5
27778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27779   (exit $ac_status); } && {
27780          test -z "$ac_c_werror_flag" ||
27781          test ! -s conftest.err
27782        } && test -s conftest$ac_exeext &&
27783        $as_test_x conftest$ac_exeext; then
27784   eval "$as_ac_var=yes"
27785 else
27786   echo "$as_me: failed program was:" >&5
27787 sed 's/^/| /' conftest.$ac_ext >&5
27788
27789         eval "$as_ac_var=no"
27790 fi
27791
27792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27793       conftest$ac_exeext conftest.$ac_ext
27794 fi
27795 ac_res=`eval echo '${'$as_ac_var'}'`
27796                { echo "$as_me:$LINENO: result: $ac_res" >&5
27797 echo "${ECHO_T}$ac_res" >&6; }
27798 if test `eval echo '${'$as_ac_var'}'` = yes; then
27799   cat >>confdefs.h <<_ACEOF
27800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27801 _ACEOF
27802  cat >>confdefs.h <<\_ACEOF
27803 #define HAVE_INET_PTON 1
27804 _ACEOF
27805
27806 fi
27807 done
27808
27809
27810 for ac_func in inet_ntop
27811 do
27812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27813 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27815 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27816   echo $ECHO_N "(cached) $ECHO_C" >&6
27817 else
27818   cat >conftest.$ac_ext <<_ACEOF
27819 /* confdefs.h.  */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h.  */
27824 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27826 #define $ac_func innocuous_$ac_func
27827
27828 /* System header to define __stub macros and hopefully few prototypes,
27829     which can conflict with char $ac_func (); below.
27830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27831     <limits.h> exists even on freestanding compilers.  */
27832
27833 #ifdef __STDC__
27834 # include <limits.h>
27835 #else
27836 # include <assert.h>
27837 #endif
27838
27839 #undef $ac_func
27840
27841 /* Override any GCC internal prototype to avoid an error.
27842    Use char because int might match the return type of a GCC
27843    builtin and then its argument prototype would still apply.  */
27844 #ifdef __cplusplus
27845 extern "C"
27846 #endif
27847 char $ac_func ();
27848 /* The GNU C library defines this for functions which it implements
27849     to always fail with ENOSYS.  Some functions are actually named
27850     something starting with __ and the normal name is an alias.  */
27851 #if defined __stub_$ac_func || defined __stub___$ac_func
27852 choke me
27853 #endif
27854
27855 int
27856 main ()
27857 {
27858 return $ac_func ();
27859   ;
27860   return 0;
27861 }
27862 _ACEOF
27863 rm -f conftest.$ac_objext conftest$ac_exeext
27864 if { (ac_try="$ac_link"
27865 case "(($ac_try" in
27866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27867   *) ac_try_echo=$ac_try;;
27868 esac
27869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27870   (eval "$ac_link") 2>conftest.er1
27871   ac_status=$?
27872   grep -v '^ *+' conftest.er1 >conftest.err
27873   rm -f conftest.er1
27874   cat conftest.err >&5
27875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27876   (exit $ac_status); } && {
27877          test -z "$ac_c_werror_flag" ||
27878          test ! -s conftest.err
27879        } && test -s conftest$ac_exeext &&
27880        $as_test_x conftest$ac_exeext; then
27881   eval "$as_ac_var=yes"
27882 else
27883   echo "$as_me: failed program was:" >&5
27884 sed 's/^/| /' conftest.$ac_ext >&5
27885
27886         eval "$as_ac_var=no"
27887 fi
27888
27889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27890       conftest$ac_exeext conftest.$ac_ext
27891 fi
27892 ac_res=`eval echo '${'$as_ac_var'}'`
27893                { echo "$as_me:$LINENO: result: $ac_res" >&5
27894 echo "${ECHO_T}$ac_res" >&6; }
27895 if test `eval echo '${'$as_ac_var'}'` = yes; then
27896   cat >>confdefs.h <<_ACEOF
27897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27898 _ACEOF
27899  cat >>confdefs.h <<\_ACEOF
27900 #define HAVE_INET_NTOP 1
27901 _ACEOF
27902
27903 fi
27904 done
27905
27906
27907 for ac_func in gethostbyname2
27908 do
27909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27913   echo $ECHO_N "(cached) $ECHO_C" >&6
27914 else
27915   cat >conftest.$ac_ext <<_ACEOF
27916 /* confdefs.h.  */
27917 _ACEOF
27918 cat confdefs.h >>conftest.$ac_ext
27919 cat >>conftest.$ac_ext <<_ACEOF
27920 /* end confdefs.h.  */
27921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27923 #define $ac_func innocuous_$ac_func
27924
27925 /* System header to define __stub macros and hopefully few prototypes,
27926     which can conflict with char $ac_func (); below.
27927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27928     <limits.h> exists even on freestanding compilers.  */
27929
27930 #ifdef __STDC__
27931 # include <limits.h>
27932 #else
27933 # include <assert.h>
27934 #endif
27935
27936 #undef $ac_func
27937
27938 /* Override any GCC internal prototype to avoid an error.
27939    Use char because int might match the return type of a GCC
27940    builtin and then its argument prototype would still apply.  */
27941 #ifdef __cplusplus
27942 extern "C"
27943 #endif
27944 char $ac_func ();
27945 /* The GNU C library defines this for functions which it implements
27946     to always fail with ENOSYS.  Some functions are actually named
27947     something starting with __ and the normal name is an alias.  */
27948 #if defined __stub_$ac_func || defined __stub___$ac_func
27949 choke me
27950 #endif
27951
27952 int
27953 main ()
27954 {
27955 return $ac_func ();
27956   ;
27957   return 0;
27958 }
27959 _ACEOF
27960 rm -f conftest.$ac_objext conftest$ac_exeext
27961 if { (ac_try="$ac_link"
27962 case "(($ac_try" in
27963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27964   *) ac_try_echo=$ac_try;;
27965 esac
27966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27967   (eval "$ac_link") 2>conftest.er1
27968   ac_status=$?
27969   grep -v '^ *+' conftest.er1 >conftest.err
27970   rm -f conftest.er1
27971   cat conftest.err >&5
27972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973   (exit $ac_status); } && {
27974          test -z "$ac_c_werror_flag" ||
27975          test ! -s conftest.err
27976        } && test -s conftest$ac_exeext &&
27977        $as_test_x conftest$ac_exeext; then
27978   eval "$as_ac_var=yes"
27979 else
27980   echo "$as_me: failed program was:" >&5
27981 sed 's/^/| /' conftest.$ac_ext >&5
27982
27983         eval "$as_ac_var=no"
27984 fi
27985
27986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27987       conftest$ac_exeext conftest.$ac_ext
27988 fi
27989 ac_res=`eval echo '${'$as_ac_var'}'`
27990                { echo "$as_me:$LINENO: result: $ac_res" >&5
27991 echo "${ECHO_T}$ac_res" >&6; }
27992 if test `eval echo '${'$as_ac_var'}'` = yes; then
27993   cat >>confdefs.h <<_ACEOF
27994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27995 _ACEOF
27996  cat >>confdefs.h <<\_ACEOF
27997 #define HAVE_GETHOSTBYNAME2 1
27998 _ACEOF
27999
28000 fi
28001 done
28002
28003
28004 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
28005 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
28006 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
28007   echo $ECHO_N "(cached) $ECHO_C" >&6
28008 else
28009   cat >conftest.$ac_ext <<_ACEOF
28010 /* confdefs.h.  */
28011 _ACEOF
28012 cat confdefs.h >>conftest.$ac_ext
28013 cat >>conftest.$ac_ext <<_ACEOF
28014 /* end confdefs.h.  */
28015 #include <sys/socket.h>
28016 int
28017 main ()
28018 {
28019 struct sockaddr s; s.sa_len;
28020   ;
28021   return 0;
28022 }
28023 _ACEOF
28024 rm -f conftest.$ac_objext
28025 if { (ac_try="$ac_compile"
28026 case "(($ac_try" in
28027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28028   *) ac_try_echo=$ac_try;;
28029 esac
28030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28031   (eval "$ac_compile") 2>conftest.er1
28032   ac_status=$?
28033   grep -v '^ *+' conftest.er1 >conftest.err
28034   rm -f conftest.er1
28035   cat conftest.err >&5
28036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037   (exit $ac_status); } && {
28038          test -z "$ac_c_werror_flag" ||
28039          test ! -s conftest.err
28040        } && test -s conftest.$ac_objext; then
28041   ac_cv_struct_sockaddr_sa_len=yes
28042 else
28043   echo "$as_me: failed program was:" >&5
28044 sed 's/^/| /' conftest.$ac_ext >&5
28045
28046         ac_cv_struct_sockaddr_sa_len=no
28047 fi
28048
28049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28050 fi
28051 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
28052 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
28053
28054  if test $ac_cv_struct_sockaddr_sa_len = yes; then
28055
28056 cat >>confdefs.h <<\_ACEOF
28057 #define HAVE_SA_LEN 1
28058 _ACEOF
28059
28060  fi
28061
28062
28063
28064
28065
28066 for ac_func in strftime
28067 do
28068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28072   echo $ECHO_N "(cached) $ECHO_C" >&6
28073 else
28074   cat >conftest.$ac_ext <<_ACEOF
28075 /* confdefs.h.  */
28076 _ACEOF
28077 cat confdefs.h >>conftest.$ac_ext
28078 cat >>conftest.$ac_ext <<_ACEOF
28079 /* end confdefs.h.  */
28080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28081    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28082 #define $ac_func innocuous_$ac_func
28083
28084 /* System header to define __stub macros and hopefully few prototypes,
28085     which can conflict with char $ac_func (); below.
28086     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28087     <limits.h> exists even on freestanding compilers.  */
28088
28089 #ifdef __STDC__
28090 # include <limits.h>
28091 #else
28092 # include <assert.h>
28093 #endif
28094
28095 #undef $ac_func
28096
28097 /* Override any GCC internal prototype to avoid an error.
28098    Use char because int might match the return type of a GCC
28099    builtin and then its argument prototype would still apply.  */
28100 #ifdef __cplusplus
28101 extern "C"
28102 #endif
28103 char $ac_func ();
28104 /* The GNU C library defines this for functions which it implements
28105     to always fail with ENOSYS.  Some functions are actually named
28106     something starting with __ and the normal name is an alias.  */
28107 #if defined __stub_$ac_func || defined __stub___$ac_func
28108 choke me
28109 #endif
28110
28111 int
28112 main ()
28113 {
28114 return $ac_func ();
28115   ;
28116   return 0;
28117 }
28118 _ACEOF
28119 rm -f conftest.$ac_objext conftest$ac_exeext
28120 if { (ac_try="$ac_link"
28121 case "(($ac_try" in
28122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28123   *) ac_try_echo=$ac_try;;
28124 esac
28125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28126   (eval "$ac_link") 2>conftest.er1
28127   ac_status=$?
28128   grep -v '^ *+' conftest.er1 >conftest.err
28129   rm -f conftest.er1
28130   cat conftest.err >&5
28131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28132   (exit $ac_status); } && {
28133          test -z "$ac_c_werror_flag" ||
28134          test ! -s conftest.err
28135        } && test -s conftest$ac_exeext &&
28136        $as_test_x conftest$ac_exeext; then
28137   eval "$as_ac_var=yes"
28138 else
28139   echo "$as_me: failed program was:" >&5
28140 sed 's/^/| /' conftest.$ac_ext >&5
28141
28142         eval "$as_ac_var=no"
28143 fi
28144
28145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28146       conftest$ac_exeext conftest.$ac_ext
28147 fi
28148 ac_res=`eval echo '${'$as_ac_var'}'`
28149                { echo "$as_me:$LINENO: result: $ac_res" >&5
28150 echo "${ECHO_T}$ac_res" >&6; }
28151 if test `eval echo '${'$as_ac_var'}'` = yes; then
28152   cat >>confdefs.h <<_ACEOF
28153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28154 _ACEOF
28155
28156 else
28157   # strftime is in -lintl on SCO UNIX.
28158 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
28159 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
28160 if test "${ac_cv_lib_intl_strftime+set}" = set; then
28161   echo $ECHO_N "(cached) $ECHO_C" >&6
28162 else
28163   ac_check_lib_save_LIBS=$LIBS
28164 LIBS="-lintl  $LIBS"
28165 cat >conftest.$ac_ext <<_ACEOF
28166 /* confdefs.h.  */
28167 _ACEOF
28168 cat confdefs.h >>conftest.$ac_ext
28169 cat >>conftest.$ac_ext <<_ACEOF
28170 /* end confdefs.h.  */
28171
28172 /* Override any GCC internal prototype to avoid an error.
28173    Use char because int might match the return type of a GCC
28174    builtin and then its argument prototype would still apply.  */
28175 #ifdef __cplusplus
28176 extern "C"
28177 #endif
28178 char strftime ();
28179 int
28180 main ()
28181 {
28182 return strftime ();
28183   ;
28184   return 0;
28185 }
28186 _ACEOF
28187 rm -f conftest.$ac_objext conftest$ac_exeext
28188 if { (ac_try="$ac_link"
28189 case "(($ac_try" in
28190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28191   *) ac_try_echo=$ac_try;;
28192 esac
28193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28194   (eval "$ac_link") 2>conftest.er1
28195   ac_status=$?
28196   grep -v '^ *+' conftest.er1 >conftest.err
28197   rm -f conftest.er1
28198   cat conftest.err >&5
28199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200   (exit $ac_status); } && {
28201          test -z "$ac_c_werror_flag" ||
28202          test ! -s conftest.err
28203        } && test -s conftest$ac_exeext &&
28204        $as_test_x conftest$ac_exeext; then
28205   ac_cv_lib_intl_strftime=yes
28206 else
28207   echo "$as_me: failed program was:" >&5
28208 sed 's/^/| /' conftest.$ac_ext >&5
28209
28210         ac_cv_lib_intl_strftime=no
28211 fi
28212
28213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28214       conftest$ac_exeext conftest.$ac_ext
28215 LIBS=$ac_check_lib_save_LIBS
28216 fi
28217 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28218 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28219 if test $ac_cv_lib_intl_strftime = yes; then
28220   cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_STRFTIME 1
28222 _ACEOF
28223
28224 LIBS="-lintl $LIBS"
28225 fi
28226
28227 fi
28228 done
28229
28230
28231 for ac_func in vprintf
28232 do
28233 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28234 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28235 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28236 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28237   echo $ECHO_N "(cached) $ECHO_C" >&6
28238 else
28239   cat >conftest.$ac_ext <<_ACEOF
28240 /* confdefs.h.  */
28241 _ACEOF
28242 cat confdefs.h >>conftest.$ac_ext
28243 cat >>conftest.$ac_ext <<_ACEOF
28244 /* end confdefs.h.  */
28245 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28246    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28247 #define $ac_func innocuous_$ac_func
28248
28249 /* System header to define __stub macros and hopefully few prototypes,
28250     which can conflict with char $ac_func (); below.
28251     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28252     <limits.h> exists even on freestanding compilers.  */
28253
28254 #ifdef __STDC__
28255 # include <limits.h>
28256 #else
28257 # include <assert.h>
28258 #endif
28259
28260 #undef $ac_func
28261
28262 /* Override any GCC internal prototype to avoid an error.
28263    Use char because int might match the return type of a GCC
28264    builtin and then its argument prototype would still apply.  */
28265 #ifdef __cplusplus
28266 extern "C"
28267 #endif
28268 char $ac_func ();
28269 /* The GNU C library defines this for functions which it implements
28270     to always fail with ENOSYS.  Some functions are actually named
28271     something starting with __ and the normal name is an alias.  */
28272 #if defined __stub_$ac_func || defined __stub___$ac_func
28273 choke me
28274 #endif
28275
28276 int
28277 main ()
28278 {
28279 return $ac_func ();
28280   ;
28281   return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext conftest$ac_exeext
28285 if { (ac_try="$ac_link"
28286 case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_link") 2>conftest.er1
28292   ac_status=$?
28293   grep -v '^ *+' conftest.er1 >conftest.err
28294   rm -f conftest.er1
28295   cat conftest.err >&5
28296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297   (exit $ac_status); } && {
28298          test -z "$ac_c_werror_flag" ||
28299          test ! -s conftest.err
28300        } && test -s conftest$ac_exeext &&
28301        $as_test_x conftest$ac_exeext; then
28302   eval "$as_ac_var=yes"
28303 else
28304   echo "$as_me: failed program was:" >&5
28305 sed 's/^/| /' conftest.$ac_ext >&5
28306
28307         eval "$as_ac_var=no"
28308 fi
28309
28310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28311       conftest$ac_exeext conftest.$ac_ext
28312 fi
28313 ac_res=`eval echo '${'$as_ac_var'}'`
28314                { echo "$as_me:$LINENO: result: $ac_res" >&5
28315 echo "${ECHO_T}$ac_res" >&6; }
28316 if test `eval echo '${'$as_ac_var'}'` = yes; then
28317   cat >>confdefs.h <<_ACEOF
28318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28319 _ACEOF
28320
28321 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28322 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28323 if test "${ac_cv_func__doprnt+set}" = set; then
28324   echo $ECHO_N "(cached) $ECHO_C" >&6
28325 else
28326   cat >conftest.$ac_ext <<_ACEOF
28327 /* confdefs.h.  */
28328 _ACEOF
28329 cat confdefs.h >>conftest.$ac_ext
28330 cat >>conftest.$ac_ext <<_ACEOF
28331 /* end confdefs.h.  */
28332 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28333    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28334 #define _doprnt innocuous__doprnt
28335
28336 /* System header to define __stub macros and hopefully few prototypes,
28337     which can conflict with char _doprnt (); below.
28338     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28339     <limits.h> exists even on freestanding compilers.  */
28340
28341 #ifdef __STDC__
28342 # include <limits.h>
28343 #else
28344 # include <assert.h>
28345 #endif
28346
28347 #undef _doprnt
28348
28349 /* Override any GCC internal prototype to avoid an error.
28350    Use char because int might match the return type of a GCC
28351    builtin and then its argument prototype would still apply.  */
28352 #ifdef __cplusplus
28353 extern "C"
28354 #endif
28355 char _doprnt ();
28356 /* The GNU C library defines this for functions which it implements
28357     to always fail with ENOSYS.  Some functions are actually named
28358     something starting with __ and the normal name is an alias.  */
28359 #if defined __stub__doprnt || defined __stub____doprnt
28360 choke me
28361 #endif
28362
28363 int
28364 main ()
28365 {
28366 return _doprnt ();
28367   ;
28368   return 0;
28369 }
28370 _ACEOF
28371 rm -f conftest.$ac_objext conftest$ac_exeext
28372 if { (ac_try="$ac_link"
28373 case "(($ac_try" in
28374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28375   *) ac_try_echo=$ac_try;;
28376 esac
28377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28378   (eval "$ac_link") 2>conftest.er1
28379   ac_status=$?
28380   grep -v '^ *+' conftest.er1 >conftest.err
28381   rm -f conftest.er1
28382   cat conftest.err >&5
28383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384   (exit $ac_status); } && {
28385          test -z "$ac_c_werror_flag" ||
28386          test ! -s conftest.err
28387        } && test -s conftest$ac_exeext &&
28388        $as_test_x conftest$ac_exeext; then
28389   ac_cv_func__doprnt=yes
28390 else
28391   echo "$as_me: failed program was:" >&5
28392 sed 's/^/| /' conftest.$ac_ext >&5
28393
28394         ac_cv_func__doprnt=no
28395 fi
28396
28397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28398       conftest$ac_exeext conftest.$ac_ext
28399 fi
28400 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28401 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28402 if test $ac_cv_func__doprnt = yes; then
28403
28404 cat >>confdefs.h <<\_ACEOF
28405 #define HAVE_DOPRNT 1
28406 _ACEOF
28407
28408 fi
28409
28410 fi
28411 done
28412
28413
28414 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28415 # for constant arguments.  Useless!
28416 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28417 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28418 if test "${ac_cv_working_alloca_h+set}" = set; then
28419   echo $ECHO_N "(cached) $ECHO_C" >&6
28420 else
28421   cat >conftest.$ac_ext <<_ACEOF
28422 /* confdefs.h.  */
28423 _ACEOF
28424 cat confdefs.h >>conftest.$ac_ext
28425 cat >>conftest.$ac_ext <<_ACEOF
28426 /* end confdefs.h.  */
28427 #include <alloca.h>
28428 int
28429 main ()
28430 {
28431 char *p = (char *) alloca (2 * sizeof (int));
28432                           if (p) return 0;
28433   ;
28434   return 0;
28435 }
28436 _ACEOF
28437 rm -f conftest.$ac_objext conftest$ac_exeext
28438 if { (ac_try="$ac_link"
28439 case "(($ac_try" in
28440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441   *) ac_try_echo=$ac_try;;
28442 esac
28443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28444   (eval "$ac_link") 2>conftest.er1
28445   ac_status=$?
28446   grep -v '^ *+' conftest.er1 >conftest.err
28447   rm -f conftest.er1
28448   cat conftest.err >&5
28449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28450   (exit $ac_status); } && {
28451          test -z "$ac_c_werror_flag" ||
28452          test ! -s conftest.err
28453        } && test -s conftest$ac_exeext &&
28454        $as_test_x conftest$ac_exeext; then
28455   ac_cv_working_alloca_h=yes
28456 else
28457   echo "$as_me: failed program was:" >&5
28458 sed 's/^/| /' conftest.$ac_ext >&5
28459
28460         ac_cv_working_alloca_h=no
28461 fi
28462
28463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28464       conftest$ac_exeext conftest.$ac_ext
28465 fi
28466 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28467 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28468 if test $ac_cv_working_alloca_h = yes; then
28469
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_ALLOCA_H 1
28472 _ACEOF
28473
28474 fi
28475
28476 { echo "$as_me:$LINENO: checking for alloca" >&5
28477 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28478 if test "${ac_cv_func_alloca_works+set}" = set; then
28479   echo $ECHO_N "(cached) $ECHO_C" >&6
28480 else
28481   cat >conftest.$ac_ext <<_ACEOF
28482 /* confdefs.h.  */
28483 _ACEOF
28484 cat confdefs.h >>conftest.$ac_ext
28485 cat >>conftest.$ac_ext <<_ACEOF
28486 /* end confdefs.h.  */
28487 #ifdef __GNUC__
28488 # define alloca __builtin_alloca
28489 #else
28490 # ifdef _MSC_VER
28491 #  include <malloc.h>
28492 #  define alloca _alloca
28493 # else
28494 #  ifdef HAVE_ALLOCA_H
28495 #   include <alloca.h>
28496 #  else
28497 #   ifdef _AIX
28498  #pragma alloca
28499 #   else
28500 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28501 char *alloca ();
28502 #    endif
28503 #   endif
28504 #  endif
28505 # endif
28506 #endif
28507
28508 int
28509 main ()
28510 {
28511 char *p = (char *) alloca (1);
28512                                     if (p) return 0;
28513   ;
28514   return 0;
28515 }
28516 _ACEOF
28517 rm -f conftest.$ac_objext conftest$ac_exeext
28518 if { (ac_try="$ac_link"
28519 case "(($ac_try" in
28520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28521   *) ac_try_echo=$ac_try;;
28522 esac
28523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28524   (eval "$ac_link") 2>conftest.er1
28525   ac_status=$?
28526   grep -v '^ *+' conftest.er1 >conftest.err
28527   rm -f conftest.er1
28528   cat conftest.err >&5
28529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28530   (exit $ac_status); } && {
28531          test -z "$ac_c_werror_flag" ||
28532          test ! -s conftest.err
28533        } && test -s conftest$ac_exeext &&
28534        $as_test_x conftest$ac_exeext; then
28535   ac_cv_func_alloca_works=yes
28536 else
28537   echo "$as_me: failed program was:" >&5
28538 sed 's/^/| /' conftest.$ac_ext >&5
28539
28540         ac_cv_func_alloca_works=no
28541 fi
28542
28543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28544       conftest$ac_exeext conftest.$ac_ext
28545 fi
28546 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28547 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28548
28549 if test $ac_cv_func_alloca_works = yes; then
28550
28551 cat >>confdefs.h <<\_ACEOF
28552 #define HAVE_ALLOCA 1
28553 _ACEOF
28554
28555 else
28556   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28557 # that cause trouble.  Some versions do not even contain alloca or
28558 # contain a buggy version.  If you still want to use their alloca,
28559 # use ar to extract alloca.o from them instead of compiling alloca.c.
28560
28561 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28562
28563 cat >>confdefs.h <<\_ACEOF
28564 #define C_ALLOCA 1
28565 _ACEOF
28566
28567
28568 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28569 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28570 if test "${ac_cv_os_cray+set}" = set; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579 #if defined CRAY && ! defined CRAY2
28580 webecray
28581 #else
28582 wenotbecray
28583 #endif
28584
28585 _ACEOF
28586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28587   $EGREP "webecray" >/dev/null 2>&1; then
28588   ac_cv_os_cray=yes
28589 else
28590   ac_cv_os_cray=no
28591 fi
28592 rm -f conftest*
28593
28594 fi
28595 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28596 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28597 if test $ac_cv_os_cray = yes; then
28598   for ac_func in _getb67 GETB67 getb67; do
28599     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28600 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28601 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28602 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28603   echo $ECHO_N "(cached) $ECHO_C" >&6
28604 else
28605   cat >conftest.$ac_ext <<_ACEOF
28606 /* confdefs.h.  */
28607 _ACEOF
28608 cat confdefs.h >>conftest.$ac_ext
28609 cat >>conftest.$ac_ext <<_ACEOF
28610 /* end confdefs.h.  */
28611 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28613 #define $ac_func innocuous_$ac_func
28614
28615 /* System header to define __stub macros and hopefully few prototypes,
28616     which can conflict with char $ac_func (); below.
28617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28618     <limits.h> exists even on freestanding compilers.  */
28619
28620 #ifdef __STDC__
28621 # include <limits.h>
28622 #else
28623 # include <assert.h>
28624 #endif
28625
28626 #undef $ac_func
28627
28628 /* Override any GCC internal prototype to avoid an error.
28629    Use char because int might match the return type of a GCC
28630    builtin and then its argument prototype would still apply.  */
28631 #ifdef __cplusplus
28632 extern "C"
28633 #endif
28634 char $ac_func ();
28635 /* The GNU C library defines this for functions which it implements
28636     to always fail with ENOSYS.  Some functions are actually named
28637     something starting with __ and the normal name is an alias.  */
28638 #if defined __stub_$ac_func || defined __stub___$ac_func
28639 choke me
28640 #endif
28641
28642 int
28643 main ()
28644 {
28645 return $ac_func ();
28646   ;
28647   return 0;
28648 }
28649 _ACEOF
28650 rm -f conftest.$ac_objext conftest$ac_exeext
28651 if { (ac_try="$ac_link"
28652 case "(($ac_try" in
28653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28654   *) ac_try_echo=$ac_try;;
28655 esac
28656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28657   (eval "$ac_link") 2>conftest.er1
28658   ac_status=$?
28659   grep -v '^ *+' conftest.er1 >conftest.err
28660   rm -f conftest.er1
28661   cat conftest.err >&5
28662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28663   (exit $ac_status); } && {
28664          test -z "$ac_c_werror_flag" ||
28665          test ! -s conftest.err
28666        } && test -s conftest$ac_exeext &&
28667        $as_test_x conftest$ac_exeext; then
28668   eval "$as_ac_var=yes"
28669 else
28670   echo "$as_me: failed program was:" >&5
28671 sed 's/^/| /' conftest.$ac_ext >&5
28672
28673         eval "$as_ac_var=no"
28674 fi
28675
28676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28677       conftest$ac_exeext conftest.$ac_ext
28678 fi
28679 ac_res=`eval echo '${'$as_ac_var'}'`
28680                { echo "$as_me:$LINENO: result: $ac_res" >&5
28681 echo "${ECHO_T}$ac_res" >&6; }
28682 if test `eval echo '${'$as_ac_var'}'` = yes; then
28683
28684 cat >>confdefs.h <<_ACEOF
28685 #define CRAY_STACKSEG_END $ac_func
28686 _ACEOF
28687
28688     break
28689 fi
28690
28691   done
28692 fi
28693
28694 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28695 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28696 if test "${ac_cv_c_stack_direction+set}" = set; then
28697   echo $ECHO_N "(cached) $ECHO_C" >&6
28698 else
28699   if test "$cross_compiling" = yes; then
28700   ac_cv_c_stack_direction=0
28701 else
28702   cat >conftest.$ac_ext <<_ACEOF
28703 /* confdefs.h.  */
28704 _ACEOF
28705 cat confdefs.h >>conftest.$ac_ext
28706 cat >>conftest.$ac_ext <<_ACEOF
28707 /* end confdefs.h.  */
28708 $ac_includes_default
28709 int
28710 find_stack_direction ()
28711 {
28712   static char *addr = 0;
28713   auto char dummy;
28714   if (addr == 0)
28715     {
28716       addr = &dummy;
28717       return find_stack_direction ();
28718     }
28719   else
28720     return (&dummy > addr) ? 1 : -1;
28721 }
28722
28723 int
28724 main ()
28725 {
28726   return find_stack_direction () < 0;
28727 }
28728 _ACEOF
28729 rm -f conftest$ac_exeext
28730 if { (ac_try="$ac_link"
28731 case "(($ac_try" in
28732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28733   *) ac_try_echo=$ac_try;;
28734 esac
28735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28736   (eval "$ac_link") 2>&5
28737   ac_status=$?
28738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28739   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28740   { (case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_try") 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; }; then
28749   ac_cv_c_stack_direction=1
28750 else
28751   echo "$as_me: program exited with status $ac_status" >&5
28752 echo "$as_me: failed program was:" >&5
28753 sed 's/^/| /' conftest.$ac_ext >&5
28754
28755 ( exit $ac_status )
28756 ac_cv_c_stack_direction=-1
28757 fi
28758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28759 fi
28760
28761
28762 fi
28763 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28764 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28765
28766 cat >>confdefs.h <<_ACEOF
28767 #define STACK_DIRECTION $ac_cv_c_stack_direction
28768 _ACEOF
28769
28770
28771 fi
28772
28773 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28774 # -lseq on Dynix/PTX, -lgen on Unixware.
28775 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28776 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28777 if test "${ac_cv_search_getmntent+set}" = set; then
28778   echo $ECHO_N "(cached) $ECHO_C" >&6
28779 else
28780   ac_func_search_save_LIBS=$LIBS
28781 cat >conftest.$ac_ext <<_ACEOF
28782 /* confdefs.h.  */
28783 _ACEOF
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h.  */
28787
28788 /* Override any GCC internal prototype to avoid an error.
28789    Use char because int might match the return type of a GCC
28790    builtin and then its argument prototype would still apply.  */
28791 #ifdef __cplusplus
28792 extern "C"
28793 #endif
28794 char getmntent ();
28795 int
28796 main ()
28797 {
28798 return getmntent ();
28799   ;
28800   return 0;
28801 }
28802 _ACEOF
28803 for ac_lib in '' sun seq gen; do
28804   if test -z "$ac_lib"; then
28805     ac_res="none required"
28806   else
28807     ac_res=-l$ac_lib
28808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28809   fi
28810   rm -f conftest.$ac_objext conftest$ac_exeext
28811 if { (ac_try="$ac_link"
28812 case "(($ac_try" in
28813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28814   *) ac_try_echo=$ac_try;;
28815 esac
28816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28817   (eval "$ac_link") 2>conftest.er1
28818   ac_status=$?
28819   grep -v '^ *+' conftest.er1 >conftest.err
28820   rm -f conftest.er1
28821   cat conftest.err >&5
28822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28823   (exit $ac_status); } && {
28824          test -z "$ac_c_werror_flag" ||
28825          test ! -s conftest.err
28826        } && test -s conftest$ac_exeext &&
28827        $as_test_x conftest$ac_exeext; then
28828   ac_cv_search_getmntent=$ac_res
28829 else
28830   echo "$as_me: failed program was:" >&5
28831 sed 's/^/| /' conftest.$ac_ext >&5
28832
28833
28834 fi
28835
28836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28837       conftest$ac_exeext
28838   if test "${ac_cv_search_getmntent+set}" = set; then
28839   break
28840 fi
28841 done
28842 if test "${ac_cv_search_getmntent+set}" = set; then
28843   :
28844 else
28845   ac_cv_search_getmntent=no
28846 fi
28847 rm conftest.$ac_ext
28848 LIBS=$ac_func_search_save_LIBS
28849 fi
28850 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28851 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28852 ac_res=$ac_cv_search_getmntent
28853 if test "$ac_res" != no; then
28854   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28855   ac_cv_func_getmntent=yes
28856
28857 cat >>confdefs.h <<\_ACEOF
28858 #define HAVE_GETMNTENT 1
28859 _ACEOF
28860
28861 else
28862   ac_cv_func_getmntent=no
28863 fi
28864
28865
28866 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28867 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28868 if test "${ac_cv_func_closedir_void+set}" = set; then
28869   echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871   if test "$cross_compiling" = yes; then
28872   ac_cv_func_closedir_void=yes
28873 else
28874   cat >conftest.$ac_ext <<_ACEOF
28875 /* confdefs.h.  */
28876 _ACEOF
28877 cat confdefs.h >>conftest.$ac_ext
28878 cat >>conftest.$ac_ext <<_ACEOF
28879 /* end confdefs.h.  */
28880 $ac_includes_default
28881 #include <$ac_header_dirent>
28882 #ifndef __cplusplus
28883 int closedir ();
28884 #endif
28885
28886 int
28887 main ()
28888 {
28889 return closedir (opendir (".")) != 0;
28890   ;
28891   return 0;
28892 }
28893 _ACEOF
28894 rm -f conftest$ac_exeext
28895 if { (ac_try="$ac_link"
28896 case "(($ac_try" in
28897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28898   *) ac_try_echo=$ac_try;;
28899 esac
28900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28901   (eval "$ac_link") 2>&5
28902   ac_status=$?
28903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28905   { (case "(($ac_try" in
28906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28907   *) ac_try_echo=$ac_try;;
28908 esac
28909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28910   (eval "$ac_try") 2>&5
28911   ac_status=$?
28912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913   (exit $ac_status); }; }; then
28914   ac_cv_func_closedir_void=no
28915 else
28916   echo "$as_me: program exited with status $ac_status" >&5
28917 echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.$ac_ext >&5
28919
28920 ( exit $ac_status )
28921 ac_cv_func_closedir_void=yes
28922 fi
28923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28924 fi
28925
28926
28927 fi
28928 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28929 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28930 if test $ac_cv_func_closedir_void = yes; then
28931
28932 cat >>confdefs.h <<\_ACEOF
28933 #define CLOSEDIR_VOID 1
28934 _ACEOF
28935
28936 fi
28937
28938 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28939 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28940 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28941   echo $ECHO_N "(cached) $ECHO_C" >&6
28942 else
28943   if test "$cross_compiling" = yes; then
28944   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28945 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28946    { (exit 1); exit 1; }; }
28947 else
28948   cat >conftest.$ac_ext <<_ACEOF
28949 /* confdefs.h.  */
28950 _ACEOF
28951 cat confdefs.h >>conftest.$ac_ext
28952 cat >>conftest.$ac_ext <<_ACEOF
28953 /* end confdefs.h.  */
28954 $ac_includes_default
28955 int
28956 main ()
28957 {
28958 /* If this system has a BSD-style setpgrp which takes arguments,
28959   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28960   exit successfully. */
28961   return setpgrp (1,1) != -1;
28962   ;
28963   return 0;
28964 }
28965 _ACEOF
28966 rm -f conftest$ac_exeext
28967 if { (ac_try="$ac_link"
28968 case "(($ac_try" in
28969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28970   *) ac_try_echo=$ac_try;;
28971 esac
28972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28973   (eval "$ac_link") 2>&5
28974   ac_status=$?
28975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28977   { (case "(($ac_try" in
28978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28979   *) ac_try_echo=$ac_try;;
28980 esac
28981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28982   (eval "$ac_try") 2>&5
28983   ac_status=$?
28984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985   (exit $ac_status); }; }; then
28986   ac_cv_func_setpgrp_void=no
28987 else
28988   echo "$as_me: program exited with status $ac_status" >&5
28989 echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.$ac_ext >&5
28991
28992 ( exit $ac_status )
28993 ac_cv_func_setpgrp_void=yes
28994 fi
28995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28996 fi
28997
28998
28999 fi
29000 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
29001 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
29002 if test $ac_cv_func_setpgrp_void = yes; then
29003
29004 cat >>confdefs.h <<\_ACEOF
29005 #define SETPGRP_VOID 1
29006 _ACEOF
29007
29008 fi
29009                       # AC_FUNC_FNMATCH    dnl use local version
29010
29011
29012 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
29013 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
29014 if test "${ac_cv_lib_intl_gettext+set}" = set; then
29015   echo $ECHO_N "(cached) $ECHO_C" >&6
29016 else
29017   ac_check_lib_save_LIBS=$LIBS
29018 LIBS="-lintl  $LIBS"
29019 cat >conftest.$ac_ext <<_ACEOF
29020 /* confdefs.h.  */
29021 _ACEOF
29022 cat confdefs.h >>conftest.$ac_ext
29023 cat >>conftest.$ac_ext <<_ACEOF
29024 /* end confdefs.h.  */
29025
29026 /* Override any GCC internal prototype to avoid an error.
29027    Use char because int might match the return type of a GCC
29028    builtin and then its argument prototype would still apply.  */
29029 #ifdef __cplusplus
29030 extern "C"
29031 #endif
29032 char gettext ();
29033 int
29034 main ()
29035 {
29036 return gettext ();
29037   ;
29038   return 0;
29039 }
29040 _ACEOF
29041 rm -f conftest.$ac_objext conftest$ac_exeext
29042 if { (ac_try="$ac_link"
29043 case "(($ac_try" in
29044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29045   *) ac_try_echo=$ac_try;;
29046 esac
29047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29048   (eval "$ac_link") 2>conftest.er1
29049   ac_status=$?
29050   grep -v '^ *+' conftest.er1 >conftest.err
29051   rm -f conftest.er1
29052   cat conftest.err >&5
29053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29054   (exit $ac_status); } && {
29055          test -z "$ac_c_werror_flag" ||
29056          test ! -s conftest.err
29057        } && test -s conftest$ac_exeext &&
29058        $as_test_x conftest$ac_exeext; then
29059   ac_cv_lib_intl_gettext=yes
29060 else
29061   echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.$ac_ext >&5
29063
29064         ac_cv_lib_intl_gettext=no
29065 fi
29066
29067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29068       conftest$ac_exeext conftest.$ac_ext
29069 LIBS=$ac_check_lib_save_LIBS
29070 fi
29071 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
29072 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
29073 if test $ac_cv_lib_intl_gettext = yes; then
29074   LIBS="$LIBS -lintl"
29075 fi
29076
29077
29078
29079
29080 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
29081 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
29082 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
29083   echo $ECHO_N "(cached) $ECHO_C" >&6
29084 else
29085   ac_check_lib_save_LIBS=$LIBS
29086 LIBS="-lsun  $LIBS"
29087 cat >conftest.$ac_ext <<_ACEOF
29088 /* confdefs.h.  */
29089 _ACEOF
29090 cat confdefs.h >>conftest.$ac_ext
29091 cat >>conftest.$ac_ext <<_ACEOF
29092 /* end confdefs.h.  */
29093
29094 /* Override any GCC internal prototype to avoid an error.
29095    Use char because int might match the return type of a GCC
29096    builtin and then its argument prototype would still apply.  */
29097 #ifdef __cplusplus
29098 extern "C"
29099 #endif
29100 char getpwnam ();
29101 int
29102 main ()
29103 {
29104 return getpwnam ();
29105   ;
29106   return 0;
29107 }
29108 _ACEOF
29109 rm -f conftest.$ac_objext conftest$ac_exeext
29110 if { (ac_try="$ac_link"
29111 case "(($ac_try" in
29112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29113   *) ac_try_echo=$ac_try;;
29114 esac
29115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29116   (eval "$ac_link") 2>conftest.er1
29117   ac_status=$?
29118   grep -v '^ *+' conftest.er1 >conftest.err
29119   rm -f conftest.er1
29120   cat conftest.err >&5
29121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122   (exit $ac_status); } && {
29123          test -z "$ac_c_werror_flag" ||
29124          test ! -s conftest.err
29125        } && test -s conftest$ac_exeext &&
29126        $as_test_x conftest$ac_exeext; then
29127   ac_cv_lib_sun_getpwnam=yes
29128 else
29129   echo "$as_me: failed program was:" >&5
29130 sed 's/^/| /' conftest.$ac_ext >&5
29131
29132         ac_cv_lib_sun_getpwnam=no
29133 fi
29134
29135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29136       conftest$ac_exeext conftest.$ac_ext
29137 LIBS=$ac_check_lib_save_LIBS
29138 fi
29139 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
29140 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
29141 if test $ac_cv_lib_sun_getpwnam = yes; then
29142   cat >>confdefs.h <<_ACEOF
29143 #define HAVE_LIBSUN 1
29144 _ACEOF
29145
29146   LIBS="-lsun $LIBS"
29147
29148 fi
29149
29150
29151
29152 for ac_header in zlib.h
29153 do
29154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29156   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29159   echo $ECHO_N "(cached) $ECHO_C" >&6
29160 fi
29161 ac_res=`eval echo '${'$as_ac_Header'}'`
29162                { echo "$as_me:$LINENO: result: $ac_res" >&5
29163 echo "${ECHO_T}$ac_res" >&6; }
29164 else
29165   # Is the header compilable?
29166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29168 cat >conftest.$ac_ext <<_ACEOF
29169 /* confdefs.h.  */
29170 _ACEOF
29171 cat confdefs.h >>conftest.$ac_ext
29172 cat >>conftest.$ac_ext <<_ACEOF
29173 /* end confdefs.h.  */
29174 $ac_includes_default
29175 #include <$ac_header>
29176 _ACEOF
29177 rm -f conftest.$ac_objext
29178 if { (ac_try="$ac_compile"
29179 case "(($ac_try" in
29180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29181   *) ac_try_echo=$ac_try;;
29182 esac
29183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29184   (eval "$ac_compile") 2>conftest.er1
29185   ac_status=$?
29186   grep -v '^ *+' conftest.er1 >conftest.err
29187   rm -f conftest.er1
29188   cat conftest.err >&5
29189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29190   (exit $ac_status); } && {
29191          test -z "$ac_c_werror_flag" ||
29192          test ! -s conftest.err
29193        } && test -s conftest.$ac_objext; then
29194   ac_header_compiler=yes
29195 else
29196   echo "$as_me: failed program was:" >&5
29197 sed 's/^/| /' conftest.$ac_ext >&5
29198
29199         ac_header_compiler=no
29200 fi
29201
29202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29204 echo "${ECHO_T}$ac_header_compiler" >&6; }
29205
29206 # Is the header present?
29207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29209 cat >conftest.$ac_ext <<_ACEOF
29210 /* confdefs.h.  */
29211 _ACEOF
29212 cat confdefs.h >>conftest.$ac_ext
29213 cat >>conftest.$ac_ext <<_ACEOF
29214 /* end confdefs.h.  */
29215 #include <$ac_header>
29216 _ACEOF
29217 if { (ac_try="$ac_cpp conftest.$ac_ext"
29218 case "(($ac_try" in
29219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220   *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } >/dev/null && {
29230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29231          test ! -s conftest.err
29232        }; then
29233   ac_header_preproc=yes
29234 else
29235   echo "$as_me: failed program was:" >&5
29236 sed 's/^/| /' conftest.$ac_ext >&5
29237
29238   ac_header_preproc=no
29239 fi
29240
29241 rm -f conftest.err conftest.$ac_ext
29242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29243 echo "${ECHO_T}$ac_header_preproc" >&6; }
29244
29245 # So?  What about this header?
29246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29247   yes:no: )
29248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29252     ac_header_preproc=yes
29253     ;;
29254   no:yes:* )
29255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29267
29268     ;;
29269 esac
29270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29273   echo $ECHO_N "(cached) $ECHO_C" >&6
29274 else
29275   eval "$as_ac_Header=\$ac_header_preproc"
29276 fi
29277 ac_res=`eval echo '${'$as_ac_Header'}'`
29278                { echo "$as_me:$LINENO: result: $ac_res" >&5
29279 echo "${ECHO_T}$ac_res" >&6; }
29280
29281 fi
29282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29283   cat >>confdefs.h <<_ACEOF
29284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29285 _ACEOF
29286
29287 fi
29288
29289 done
29290
29291 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29292 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29293 if test "${ac_cv_lib_z_deflate+set}" = set; then
29294   echo $ECHO_N "(cached) $ECHO_C" >&6
29295 else
29296   ac_check_lib_save_LIBS=$LIBS
29297 LIBS="-lz  $LIBS"
29298 cat >conftest.$ac_ext <<_ACEOF
29299 /* confdefs.h.  */
29300 _ACEOF
29301 cat confdefs.h >>conftest.$ac_ext
29302 cat >>conftest.$ac_ext <<_ACEOF
29303 /* end confdefs.h.  */
29304
29305 /* Override any GCC internal prototype to avoid an error.
29306    Use char because int might match the return type of a GCC
29307    builtin and then its argument prototype would still apply.  */
29308 #ifdef __cplusplus
29309 extern "C"
29310 #endif
29311 char deflate ();
29312 int
29313 main ()
29314 {
29315 return deflate ();
29316   ;
29317   return 0;
29318 }
29319 _ACEOF
29320 rm -f conftest.$ac_objext conftest$ac_exeext
29321 if { (ac_try="$ac_link"
29322 case "(($ac_try" in
29323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29324   *) ac_try_echo=$ac_try;;
29325 esac
29326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29327   (eval "$ac_link") 2>conftest.er1
29328   ac_status=$?
29329   grep -v '^ *+' conftest.er1 >conftest.err
29330   rm -f conftest.er1
29331   cat conftest.err >&5
29332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29333   (exit $ac_status); } && {
29334          test -z "$ac_c_werror_flag" ||
29335          test ! -s conftest.err
29336        } && test -s conftest$ac_exeext &&
29337        $as_test_x conftest$ac_exeext; then
29338   ac_cv_lib_z_deflate=yes
29339 else
29340   echo "$as_me: failed program was:" >&5
29341 sed 's/^/| /' conftest.$ac_ext >&5
29342
29343         ac_cv_lib_z_deflate=no
29344 fi
29345
29346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29347       conftest$ac_exeext conftest.$ac_ext
29348 LIBS=$ac_check_lib_save_LIBS
29349 fi
29350 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29351 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29352 if test $ac_cv_lib_z_deflate = yes; then
29353   FDLIBS="-lz"
29354 fi
29355
29356 have_zlib=no
29357 if test x$FDLIBS = x-lz; then
29358   cat >>confdefs.h <<\_ACEOF
29359 #define HAVE_LIBZ 1
29360 _ACEOF
29361
29362   have_zlib=yes
29363 fi
29364
29365 #
29366 # Check for ACL libraries
29367 #
29368 have_acl=no
29369 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29370   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29371 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29372 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29373   echo $ECHO_N "(cached) $ECHO_C" >&6
29374 fi
29375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29376 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29377 else
29378   # Is the header compilable?
29379 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29380 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29381 cat >conftest.$ac_ext <<_ACEOF
29382 /* confdefs.h.  */
29383 _ACEOF
29384 cat confdefs.h >>conftest.$ac_ext
29385 cat >>conftest.$ac_ext <<_ACEOF
29386 /* end confdefs.h.  */
29387 $ac_includes_default
29388 #include <sys/acl.h>
29389 _ACEOF
29390 rm -f conftest.$ac_objext
29391 if { (ac_try="$ac_compile"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29397   (eval "$ac_compile") 2>conftest.er1
29398   ac_status=$?
29399   grep -v '^ *+' conftest.er1 >conftest.err
29400   rm -f conftest.er1
29401   cat conftest.err >&5
29402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29403   (exit $ac_status); } && {
29404          test -z "$ac_c_werror_flag" ||
29405          test ! -s conftest.err
29406        } && test -s conftest.$ac_objext; then
29407   ac_header_compiler=yes
29408 else
29409   echo "$as_me: failed program was:" >&5
29410 sed 's/^/| /' conftest.$ac_ext >&5
29411
29412         ac_header_compiler=no
29413 fi
29414
29415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29417 echo "${ECHO_T}$ac_header_compiler" >&6; }
29418
29419 # Is the header present?
29420 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29421 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29422 cat >conftest.$ac_ext <<_ACEOF
29423 /* confdefs.h.  */
29424 _ACEOF
29425 cat confdefs.h >>conftest.$ac_ext
29426 cat >>conftest.$ac_ext <<_ACEOF
29427 /* end confdefs.h.  */
29428 #include <sys/acl.h>
29429 _ACEOF
29430 if { (ac_try="$ac_cpp conftest.$ac_ext"
29431 case "(($ac_try" in
29432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29433   *) ac_try_echo=$ac_try;;
29434 esac
29435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29437   ac_status=$?
29438   grep -v '^ *+' conftest.er1 >conftest.err
29439   rm -f conftest.er1
29440   cat conftest.err >&5
29441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442   (exit $ac_status); } >/dev/null && {
29443          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29444          test ! -s conftest.err
29445        }; then
29446   ac_header_preproc=yes
29447 else
29448   echo "$as_me: failed program was:" >&5
29449 sed 's/^/| /' conftest.$ac_ext >&5
29450
29451   ac_header_preproc=no
29452 fi
29453
29454 rm -f conftest.err conftest.$ac_ext
29455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29456 echo "${ECHO_T}$ac_header_preproc" >&6; }
29457
29458 # So?  What about this header?
29459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29460   yes:no: )
29461     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29462 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29463     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29464 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29465     ac_header_preproc=yes
29466     ;;
29467   no:yes:* )
29468     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29469 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29470     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
29471 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
29472     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29473 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29474     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
29475 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
29476     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29477 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29478     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29479 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29480
29481     ;;
29482 esac
29483 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29484 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29485 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29486   echo $ECHO_N "(cached) $ECHO_C" >&6
29487 else
29488   ac_cv_header_sys_acl_h=$ac_header_preproc
29489 fi
29490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29491 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29492
29493 fi
29494
29495
29496 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29497 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29498 if test "${ac_cv_func_acl_get_file+set}" = set; then
29499   echo $ECHO_N "(cached) $ECHO_C" >&6
29500 else
29501   cat >conftest.$ac_ext <<_ACEOF
29502 /* confdefs.h.  */
29503 _ACEOF
29504 cat confdefs.h >>conftest.$ac_ext
29505 cat >>conftest.$ac_ext <<_ACEOF
29506 /* end confdefs.h.  */
29507 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29508    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29509 #define acl_get_file innocuous_acl_get_file
29510
29511 /* System header to define __stub macros and hopefully few prototypes,
29512     which can conflict with char acl_get_file (); below.
29513     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29514     <limits.h> exists even on freestanding compilers.  */
29515
29516 #ifdef __STDC__
29517 # include <limits.h>
29518 #else
29519 # include <assert.h>
29520 #endif
29521
29522 #undef acl_get_file
29523
29524 /* Override any GCC internal prototype to avoid an error.
29525    Use char because int might match the return type of a GCC
29526    builtin and then its argument prototype would still apply.  */
29527 #ifdef __cplusplus
29528 extern "C"
29529 #endif
29530 char acl_get_file ();
29531 /* The GNU C library defines this for functions which it implements
29532     to always fail with ENOSYS.  Some functions are actually named
29533     something starting with __ and the normal name is an alias.  */
29534 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29535 choke me
29536 #endif
29537
29538 int
29539 main ()
29540 {
29541 return acl_get_file ();
29542   ;
29543   return 0;
29544 }
29545 _ACEOF
29546 rm -f conftest.$ac_objext conftest$ac_exeext
29547 if { (ac_try="$ac_link"
29548 case "(($ac_try" in
29549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29550   *) ac_try_echo=$ac_try;;
29551 esac
29552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29553   (eval "$ac_link") 2>conftest.er1
29554   ac_status=$?
29555   grep -v '^ *+' conftest.er1 >conftest.err
29556   rm -f conftest.er1
29557   cat conftest.err >&5
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } && {
29560          test -z "$ac_c_werror_flag" ||
29561          test ! -s conftest.err
29562        } && test -s conftest$ac_exeext &&
29563        $as_test_x conftest$ac_exeext; then
29564   ac_cv_func_acl_get_file=yes
29565 else
29566   echo "$as_me: failed program was:" >&5
29567 sed 's/^/| /' conftest.$ac_ext >&5
29568
29569         ac_cv_func_acl_get_file=no
29570 fi
29571
29572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29573       conftest$ac_exeext conftest.$ac_ext
29574 fi
29575 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29576 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29577 if test $ac_cv_func_acl_get_file = yes; then
29578   have_acl=yes
29579 else
29580   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29581 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29582 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29583   echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585   ac_check_lib_save_LIBS=$LIBS
29586 LIBS="-lacl  $LIBS"
29587 cat >conftest.$ac_ext <<_ACEOF
29588 /* confdefs.h.  */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h.  */
29593
29594 /* Override any GCC internal prototype to avoid an error.
29595    Use char because int might match the return type of a GCC
29596    builtin and then its argument prototype would still apply.  */
29597 #ifdef __cplusplus
29598 extern "C"
29599 #endif
29600 char acl_get_file ();
29601 int
29602 main ()
29603 {
29604 return acl_get_file ();
29605   ;
29606   return 0;
29607 }
29608 _ACEOF
29609 rm -f conftest.$ac_objext conftest$ac_exeext
29610 if { (ac_try="$ac_link"
29611 case "(($ac_try" in
29612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613   *) ac_try_echo=$ac_try;;
29614 esac
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616   (eval "$ac_link") 2>conftest.er1
29617   ac_status=$?
29618   grep -v '^ *+' conftest.er1 >conftest.err
29619   rm -f conftest.er1
29620   cat conftest.err >&5
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); } && {
29623          test -z "$ac_c_werror_flag" ||
29624          test ! -s conftest.err
29625        } && test -s conftest$ac_exeext &&
29626        $as_test_x conftest$ac_exeext; then
29627   ac_cv_lib_acl_acl_get_file=yes
29628 else
29629   echo "$as_me: failed program was:" >&5
29630 sed 's/^/| /' conftest.$ac_ext >&5
29631
29632         ac_cv_lib_acl_acl_get_file=no
29633 fi
29634
29635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29636       conftest$ac_exeext conftest.$ac_ext
29637 LIBS=$ac_check_lib_save_LIBS
29638 fi
29639 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29640 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29641 if test $ac_cv_lib_acl_acl_get_file = yes; then
29642   have_acl=yes; FDLIBS="-lacl $FDLIBS"
29643 else
29644   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29645 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29646 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29647   echo $ECHO_N "(cached) $ECHO_C" >&6
29648 else
29649   ac_check_lib_save_LIBS=$LIBS
29650 LIBS="-lsec  $LIBS"
29651 cat >conftest.$ac_ext <<_ACEOF
29652 /* confdefs.h.  */
29653 _ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h.  */
29657
29658 /* Override any GCC internal prototype to avoid an error.
29659    Use char because int might match the return type of a GCC
29660    builtin and then its argument prototype would still apply.  */
29661 #ifdef __cplusplus
29662 extern "C"
29663 #endif
29664 char acltotext ();
29665 int
29666 main ()
29667 {
29668 return acltotext ();
29669   ;
29670   return 0;
29671 }
29672 _ACEOF
29673 rm -f conftest.$ac_objext conftest$ac_exeext
29674 if { (ac_try="$ac_link"
29675 case "(($ac_try" in
29676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29677   *) ac_try_echo=$ac_try;;
29678 esac
29679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29680   (eval "$ac_link") 2>conftest.er1
29681   ac_status=$?
29682   grep -v '^ *+' conftest.er1 >conftest.err
29683   rm -f conftest.er1
29684   cat conftest.err >&5
29685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29686   (exit $ac_status); } && {
29687          test -z "$ac_c_werror_flag" ||
29688          test ! -s conftest.err
29689        } && test -s conftest$ac_exeext &&
29690        $as_test_x conftest$ac_exeext; then
29691   ac_cv_lib_sec_acltotext=yes
29692 else
29693   echo "$as_me: failed program was:" >&5
29694 sed 's/^/| /' conftest.$ac_ext >&5
29695
29696         ac_cv_lib_sec_acltotext=no
29697 fi
29698
29699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29700       conftest$ac_exeext conftest.$ac_ext
29701 LIBS=$ac_check_lib_save_LIBS
29702 fi
29703 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29704 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29705 if test $ac_cv_lib_sec_acltotext = yes; then
29706   have_acl=yes; FDLIBS="-lsec $FDLIBS"
29707 fi
29708
29709
29710 fi
29711
29712
29713 fi
29714
29715 if test $have_acl = yes; then
29716    cat >>confdefs.h <<\_ACEOF
29717 #define HAVE_ACL 1
29718 _ACEOF
29719
29720 fi
29721
29722 PTHREAD_LIB=""
29723 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29724 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29725 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29726   echo $ECHO_N "(cached) $ECHO_C" >&6
29727 else
29728   ac_check_lib_save_LIBS=$LIBS
29729 LIBS="-lpthread  $LIBS"
29730 cat >conftest.$ac_ext <<_ACEOF
29731 /* confdefs.h.  */
29732 _ACEOF
29733 cat confdefs.h >>conftest.$ac_ext
29734 cat >>conftest.$ac_ext <<_ACEOF
29735 /* end confdefs.h.  */
29736
29737 /* Override any GCC internal prototype to avoid an error.
29738    Use char because int might match the return type of a GCC
29739    builtin and then its argument prototype would still apply.  */
29740 #ifdef __cplusplus
29741 extern "C"
29742 #endif
29743 char pthread_create ();
29744 int
29745 main ()
29746 {
29747 return pthread_create ();
29748   ;
29749   return 0;
29750 }
29751 _ACEOF
29752 rm -f conftest.$ac_objext conftest$ac_exeext
29753 if { (ac_try="$ac_link"
29754 case "(($ac_try" in
29755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29756   *) ac_try_echo=$ac_try;;
29757 esac
29758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29759   (eval "$ac_link") 2>conftest.er1
29760   ac_status=$?
29761   grep -v '^ *+' conftest.er1 >conftest.err
29762   rm -f conftest.er1
29763   cat conftest.err >&5
29764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29765   (exit $ac_status); } && {
29766          test -z "$ac_c_werror_flag" ||
29767          test ! -s conftest.err
29768        } && test -s conftest$ac_exeext &&
29769        $as_test_x conftest$ac_exeext; then
29770   ac_cv_lib_pthread_pthread_create=yes
29771 else
29772   echo "$as_me: failed program was:" >&5
29773 sed 's/^/| /' conftest.$ac_ext >&5
29774
29775         ac_cv_lib_pthread_pthread_create=no
29776 fi
29777
29778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29779       conftest$ac_exeext conftest.$ac_ext
29780 LIBS=$ac_check_lib_save_LIBS
29781 fi
29782 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29783 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29784 if test $ac_cv_lib_pthread_pthread_create = yes; then
29785   PTHREAD_LIB="-lpthread"
29786 else
29787   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29788 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29789 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29790   echo $ECHO_N "(cached) $ECHO_C" >&6
29791 else
29792   ac_check_lib_save_LIBS=$LIBS
29793 LIBS="-lpthreads  $LIBS"
29794 cat >conftest.$ac_ext <<_ACEOF
29795 /* confdefs.h.  */
29796 _ACEOF
29797 cat confdefs.h >>conftest.$ac_ext
29798 cat >>conftest.$ac_ext <<_ACEOF
29799 /* end confdefs.h.  */
29800
29801 /* Override any GCC internal prototype to avoid an error.
29802    Use char because int might match the return type of a GCC
29803    builtin and then its argument prototype would still apply.  */
29804 #ifdef __cplusplus
29805 extern "C"
29806 #endif
29807 char pthread_create ();
29808 int
29809 main ()
29810 {
29811 return pthread_create ();
29812   ;
29813   return 0;
29814 }
29815 _ACEOF
29816 rm -f conftest.$ac_objext conftest$ac_exeext
29817 if { (ac_try="$ac_link"
29818 case "(($ac_try" in
29819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29820   *) ac_try_echo=$ac_try;;
29821 esac
29822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29823   (eval "$ac_link") 2>conftest.er1
29824   ac_status=$?
29825   grep -v '^ *+' conftest.er1 >conftest.err
29826   rm -f conftest.er1
29827   cat conftest.err >&5
29828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29829   (exit $ac_status); } && {
29830          test -z "$ac_c_werror_flag" ||
29831          test ! -s conftest.err
29832        } && test -s conftest$ac_exeext &&
29833        $as_test_x conftest$ac_exeext; then
29834   ac_cv_lib_pthreads_pthread_create=yes
29835 else
29836   echo "$as_me: failed program was:" >&5
29837 sed 's/^/| /' conftest.$ac_ext >&5
29838
29839         ac_cv_lib_pthreads_pthread_create=no
29840 fi
29841
29842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29843       conftest$ac_exeext conftest.$ac_ext
29844 LIBS=$ac_check_lib_save_LIBS
29845 fi
29846 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29847 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29848 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29849   PTHREAD_LIB="-lpthreads"
29850 else
29851   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29852 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29853 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29854   echo $ECHO_N "(cached) $ECHO_C" >&6
29855 else
29856   ac_check_lib_save_LIBS=$LIBS
29857 LIBS="-lc_r  $LIBS"
29858 cat >conftest.$ac_ext <<_ACEOF
29859 /* confdefs.h.  */
29860 _ACEOF
29861 cat confdefs.h >>conftest.$ac_ext
29862 cat >>conftest.$ac_ext <<_ACEOF
29863 /* end confdefs.h.  */
29864
29865 /* Override any GCC internal prototype to avoid an error.
29866    Use char because int might match the return type of a GCC
29867    builtin and then its argument prototype would still apply.  */
29868 #ifdef __cplusplus
29869 extern "C"
29870 #endif
29871 char pthread_create ();
29872 int
29873 main ()
29874 {
29875 return pthread_create ();
29876   ;
29877   return 0;
29878 }
29879 _ACEOF
29880 rm -f conftest.$ac_objext conftest$ac_exeext
29881 if { (ac_try="$ac_link"
29882 case "(($ac_try" in
29883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29884   *) ac_try_echo=$ac_try;;
29885 esac
29886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29887   (eval "$ac_link") 2>conftest.er1
29888   ac_status=$?
29889   grep -v '^ *+' conftest.er1 >conftest.err
29890   rm -f conftest.er1
29891   cat conftest.err >&5
29892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29893   (exit $ac_status); } && {
29894          test -z "$ac_c_werror_flag" ||
29895          test ! -s conftest.err
29896        } && test -s conftest$ac_exeext &&
29897        $as_test_x conftest$ac_exeext; then
29898   ac_cv_lib_c_r_pthread_create=yes
29899 else
29900   echo "$as_me: failed program was:" >&5
29901 sed 's/^/| /' conftest.$ac_ext >&5
29902
29903         ac_cv_lib_c_r_pthread_create=no
29904 fi
29905
29906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29907       conftest$ac_exeext conftest.$ac_ext
29908 LIBS=$ac_check_lib_save_LIBS
29909 fi
29910 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29911 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29912 if test $ac_cv_lib_c_r_pthread_create = yes; then
29913   PTHREAD_LIB="-lc_r"
29914 else
29915   { echo "$as_me:$LINENO: checking for pthread_create" >&5
29916 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29917 if test "${ac_cv_func_pthread_create+set}" = set; then
29918   echo $ECHO_N "(cached) $ECHO_C" >&6
29919 else
29920   cat >conftest.$ac_ext <<_ACEOF
29921 /* confdefs.h.  */
29922 _ACEOF
29923 cat confdefs.h >>conftest.$ac_ext
29924 cat >>conftest.$ac_ext <<_ACEOF
29925 /* end confdefs.h.  */
29926 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29928 #define pthread_create innocuous_pthread_create
29929
29930 /* System header to define __stub macros and hopefully few prototypes,
29931     which can conflict with char pthread_create (); below.
29932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29933     <limits.h> exists even on freestanding compilers.  */
29934
29935 #ifdef __STDC__
29936 # include <limits.h>
29937 #else
29938 # include <assert.h>
29939 #endif
29940
29941 #undef pthread_create
29942
29943 /* Override any GCC internal prototype to avoid an error.
29944    Use char because int might match the return type of a GCC
29945    builtin and then its argument prototype would still apply.  */
29946 #ifdef __cplusplus
29947 extern "C"
29948 #endif
29949 char pthread_create ();
29950 /* The GNU C library defines this for functions which it implements
29951     to always fail with ENOSYS.  Some functions are actually named
29952     something starting with __ and the normal name is an alias.  */
29953 #if defined __stub_pthread_create || defined __stub___pthread_create
29954 choke me
29955 #endif
29956
29957 int
29958 main ()
29959 {
29960 return pthread_create ();
29961   ;
29962   return 0;
29963 }
29964 _ACEOF
29965 rm -f conftest.$ac_objext conftest$ac_exeext
29966 if { (ac_try="$ac_link"
29967 case "(($ac_try" in
29968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29969   *) ac_try_echo=$ac_try;;
29970 esac
29971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29972   (eval "$ac_link") 2>conftest.er1
29973   ac_status=$?
29974   grep -v '^ *+' conftest.er1 >conftest.err
29975   rm -f conftest.er1
29976   cat conftest.err >&5
29977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29978   (exit $ac_status); } && {
29979          test -z "$ac_c_werror_flag" ||
29980          test ! -s conftest.err
29981        } && test -s conftest$ac_exeext &&
29982        $as_test_x conftest$ac_exeext; then
29983   ac_cv_func_pthread_create=yes
29984 else
29985   echo "$as_me: failed program was:" >&5
29986 sed 's/^/| /' conftest.$ac_ext >&5
29987
29988         ac_cv_func_pthread_create=no
29989 fi
29990
29991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29992       conftest$ac_exeext conftest.$ac_ext
29993 fi
29994 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29995 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29996
29997
29998 fi
29999
30000
30001 fi
30002
30003
30004 fi
30005
30006
30007
30008 cat >>confdefs.h <<\_ACEOF
30009 #define FDLIBS 1
30010 _ACEOF
30011
30012
30013
30014 CFLAGS=${CFLAGS--O}
30015
30016 if test x$have_gcc = xyes ; then
30017    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30018    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30019 fi
30020 LDFLAGS=${LDFLAGS--O}
30021 DB_LIBS="${SQL_LFLAGS}"
30022 CPPFLAGS="$CPPFLAGS"
30023 CFLAGS="$CFLAGS"
30024
30025
30026
30027
30028
30029
30030
30031
30032
30033
30034
30035
30036
30037
30038
30039
30040 OBJLIST=
30041
30042
30043 lld="lld"
30044 llu="llu"
30045
30046 WCFLAGS=
30047 WLDFLAGS=
30048
30049 #
30050 # Finally we set appropriate distribution specific
30051 #  variables and defaults
30052 #
30053 # PFILES are platform specific files
30054 PFILES="platforms/Makefile"
30055 PSCMD="ps -e"
30056 WIN32=
30057 MACOSX=
30058 hostname=`uname -n | cut -d '.' -f 1`
30059 if test x${hostname} = x ; then
30060   hostname="localhost"
30061 fi
30062 case "$DISTNAME" in
30063 aix)
30064         DISTVER=`uname -r`
30065         PSCMD="ps -e -o pid,comm"
30066         PFILES="${PFILES} \
30067            platforms/aix/Makefile"
30068         TAPEDRIVE="/dev/rmt0.1"
30069   ;;
30070 alpha)
30071         DISTVER=`uname -r`
30072         PTHREAD_LIB="-lpthread -lexc"
30073         if test "${CC}" = "gcc" ; then
30074            lld="lld"
30075            llu="llu"
30076         else
30077            lld="ld"
30078            llu="lu"
30079         fi
30080         TAPEDRIVE="/dev/nrmt0"
30081   ;;
30082 bsdi)
30083         DISTVER=`uname -a |awk '{print $3}'`
30084         TAPEDRIVE="/dev/nrmt0"
30085         PTHREAD_LIB="-pthread"
30086         CFLAGS="${CFLAGS} -pthread"
30087         PSCMD="ps -ax -o pid,command"
30088         lld="qd"
30089         llu="qu"
30090         PFILES="${PFILES} \
30091             platforms/bsdi/Makefile \
30092             platforms/bsdi/bacula-fd \
30093             platforms/bsdi/bacula-sd \
30094             platforms/bsdi/bacula-dir"
30095         largefile_support="yes"
30096   ;;
30097 cygwin)
30098         DISTVER=`uname -a |awk '{print $3}'`
30099         TAPEDRIVE="/dev/nrst0"
30100         WIN32=win32
30101         WCFLAGS="-mwindows"
30102         WLDFLAGS="-mwindows"
30103   ;;
30104 darwin)
30105         DISTVER=`uname -r`
30106         TAPEDRIVE="/dev/nst0"
30107         PSCMD="ps -e -o pid,command"
30108         MACOSX=macosx
30109         PFILES="${PFILES} \
30110            platforms/darwin/Makefile"
30111   ;;
30112 debian)
30113         if `grep -q ubuntu /etc/apt/sources.list`; then
30114            DISTNAME="ubuntu"
30115         fi
30116         DISTVER=`cat /etc/debian_version`
30117         if test -f /etc/lsb-release ; then
30118            . /etc/lsb-release
30119            if test "x$DISTRIB_ID" != "x" ; then
30120               DISTNAME=$DISTRIB_ID
30121            fi
30122            if test "x$DISTRIB_RELEASE" != "x" ; then
30123               DISTVER=$DISTRIB_RELEASE
30124            fi
30125         fi
30126         if test "$DISTNAME" = "Ubuntu" ; then
30127            DISTNAME="ubuntu"
30128         fi
30129         TAPEDRIVE="/dev/nst0"
30130         PSCMD="ps -e -o pid,command"
30131         if test "$DISTNAME" = "ubuntu" ; then
30132            PFILES="${PFILES} \
30133               platforms/ubuntu/Makefile \
30134               platforms/ubuntu/bacula-fd \
30135               platforms/ubuntu/bacula-sd \
30136               platforms/ubuntu/bacula-dir"
30137         else
30138            PFILES="${PFILES} \
30139               platforms/debian/Makefile \
30140               platforms/debian/bacula-fd \
30141               platforms/debian/bacula-sd \
30142               platforms/debian/bacula-dir"
30143         fi
30144   ;;
30145 freebsd)
30146         DISTVER=`uname -a |awk '{print $3}'`
30147         VER=`echo $DISTVER | cut -c 1`
30148         if test x$VER = x4 ; then
30149            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30150            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30151         fi
30152         lld="qd"
30153         llu="qu"
30154         TAPEDRIVE="/dev/nrsa0"
30155         PSCMD="ps -ax -o pid,command"
30156         PFILES="${PFILES} \
30157             platforms/freebsd/Makefile \
30158             platforms/freebsd/bacula-fd \
30159             platforms/freebsd/bacula-sd \
30160             platforms/freebsd/bacula-dir"
30161         largefile_support="yes"
30162   ;;
30163 hpux)
30164         PSCMD="UNIX95=1; ps -e -o pid,comm"
30165         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30166         DISTVER=`uname -r`
30167         TAPEDRIVE="/dev/rmt/0hnb"
30168         PTHREAD_LIB="-lpthread"
30169         cat >>confdefs.h <<\_ACEOF
30170 #define _INCLUDE_LONGLONG 1
30171 _ACEOF
30172
30173   ;;
30174 irix)
30175         DISTVER=`uname -r`
30176         TAPEDRIVE="/dev/rmt/0cbn"
30177         PSCMD="ps -e -o pid,comm"
30178         PFILES="${PFILES} \
30179             platforms/irix/Makefile \
30180             platforms/irix/bacula-fd \
30181             platforms/irix/bacula-sd \
30182             platforms/irix/bacula-dir"
30183   ;;
30184 netbsd)
30185         DISTVER=`uname -a |awk '{print $3}'`
30186         lld="qd"
30187         llu="qu"
30188         TAPEDRIVE="/dev/nrst0"
30189         PSCMD="ps -ax -o pid,command"
30190         PTHREAD_LIB="-pthread"
30191         CFLAGS="${CFLAGS} -pthread"
30192   ;;
30193 openbsd)
30194         DISTVER=`uname -a |awk '{print $3}'`
30195         lld="qd"
30196         llu="qu"
30197         TAPEDRIVE="/dev/nrst0"
30198         PSCMD="ps -ax -o pid,command"
30199         PTHREAD_LIB="-pthread"
30200         CFLAGS="${CFLAGS} -pthread"
30201         PFILES="${PFILES} \
30202             platforms/openbsd/Makefile \
30203             platforms/openbsd/bacula-fd \
30204             platforms/openbsd/bacula-sd \
30205             platforms/openbsd/bacula-dir"
30206   ;;
30207 redhat)
30208         if test -f /etc/whitebox-release ; then
30209            f=/etc/whitebox-release
30210         else
30211            f=/etc/redhat-release
30212         fi
30213         if test `cat $f | grep release |\
30214                    cut -f 3 -d ' '`x = "Enterprise"x ; then
30215            DISTVER="Enterprise "`cat $f | grep release |\
30216                     cut -f 6 -d ' '`
30217         else
30218             DISTVER=`cat /etc/redhat-release | grep release |\
30219                      cut -f 5 -d ' '`
30220         fi
30221         TAPEDRIVE="/dev/nst0"
30222         PSCMD="ps -e -o pid,command"
30223         PFILES="${PFILES} \
30224             platforms/redhat/Makefile \
30225             platforms/redhat/bacula-fd \
30226             platforms/redhat/bacula-sd \
30227             platforms/redhat/bacula-dir \
30228             platforms/redhat/bacula.spec \
30229             "
30230   ;;
30231 mandrake)
30232         DISTVER=`cat /etc/mandrake-release | grep release |\
30233            cut -f 5 -d ' '`
30234         TAPEDRIVE="/dev/nst0"
30235         PSCMD="ps -e -o pid,command"
30236         PFILES="${PFILES} \
30237             platforms/mandrake/Makefile \
30238             platforms/mandrake/bacula-fd \
30239             platforms/mandrake/bacula-sd \
30240             platforms/mandrake/bacula-dir \
30241             platforms/mandrake/bacula.spec \
30242             "
30243   ;;
30244 gentoo)
30245         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30246         TAPEDRIVE="/dev/nst0"
30247         PSCMD="ps -e -o pid,command"
30248         PFILES="${PFILES} \
30249             platforms/gentoo/Makefile \
30250          platforms/gentoo/bacula-init \
30251             platforms/gentoo/bacula-fd \
30252             platforms/gentoo/bacula-sd \
30253             platforms/gentoo/bacula-dir"
30254   ;;
30255 slackware)
30256         DISTVER=`cat /etc/slackware-version`
30257         TAPEDRIVE="/dev/nst0"
30258         PSCMD="ps -e -o pid,command"
30259         PFILES="${PFILES} \
30260             platforms/slackware/Makefile \
30261             platforms/slackware/rc.bacula-fd \
30262             platforms/slackware/rc.bacula-sd \
30263             platforms/slackware/rc.bacula-dir\
30264             platforms/slackware/functions.bacula"
30265   ;;
30266 solaris)
30267         DISTVER=`uname -r`
30268         TAPEDRIVE="/dev/rmt/0cbn"
30269         PSCMD="ps -e -o pid,comm"
30270         PFILES="${PFILES} \
30271             platforms/solaris/Makefile \
30272             platforms/solaris/bacula-fd \
30273             platforms/solaris/bacula-sd \
30274             platforms/solaris/bacula-dir"
30275         if test x$DISTVER = x5.6 ; then
30276             cat >>confdefs.h <<\_ACEOF
30277 #define HAVE_OLD_SOCKOPT 1
30278 _ACEOF
30279
30280         fi
30281         LIBS="$LIBS -lresolv"
30282   ;;
30283 suse)
30284         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30285             cut -f 3 -d ' '`
30286         TAPEDRIVE="/dev/nst0"
30287         PSCMD="ps -e -o pid,command"
30288         PFILES="${PFILES} \
30289             platforms/suse/Makefile \
30290             platforms/suse/bacula-fd \
30291             platforms/suse/bacula-sd \
30292             platforms/suse/bacula-dir \
30293             platforms/suse/bacula \
30294             platforms/suse/bacula.spec"
30295   ;;
30296 suse5)
30297         DISTNAME=suse
30298         DISTVER=5.x
30299         TAPEDRIVE="/dev/nst0"
30300         PSCMD="ps -e -o pid,command"
30301         PFILES="${PFILES} \
30302             platforms/suse/Makefile \
30303             platforms/suse/bacula-fd \
30304             platforms/suse/bacula-sd \
30305             platforms/suse/bacula-dir"
30306   ;;
30307 unknown)
30308         DISTVER=unknown
30309         TAPEDRIVE="/dev/nst0"
30310   ;;
30311 *)
30312   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30313   ;;
30314 esac
30315
30316
30317
30318 LIBS="$PTHREAD_LIB $LIBS"
30319
30320 cat >>confdefs.h <<_ACEOF
30321 #define lld "$lld"
30322 _ACEOF
30323
30324 cat >>confdefs.h <<_ACEOF
30325 #define llu "$llu"
30326 _ACEOF
30327
30328
30329
30330
30331
30332
30333
30334
30335 MCOMMON=./autoconf/Make.common
30336
30337
30338 if test "x${subsysdir}" = "x${sbindir}" ; then
30339    echo " "
30340    echo " "
30341    echo "You have set both --sbindir and --with-subsys-dir"
30342    echo "  equal to: ${subsysdir} "
30343    echo "This is not permitted. Please reconfigure."
30344    echo " "
30345    echo "Aborting configuration ..."
30346    echo " "
30347    echo " "
30348    exit 1
30349 fi
30350
30351 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in 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"
30352
30353 ac_config_commands="$ac_config_commands default"
30354
30355 cat >confcache <<\_ACEOF
30356 # This file is a shell script that caches the results of configure
30357 # tests run on this system so they can be shared between configure
30358 # scripts and configure runs, see configure's option --config-cache.
30359 # It is not useful on other systems.  If it contains results you don't
30360 # want to keep, you may remove or edit it.
30361 #
30362 # config.status only pays attention to the cache file if you give it
30363 # the --recheck option to rerun configure.
30364 #
30365 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30366 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30367 # following values.
30368
30369 _ACEOF
30370
30371 # The following way of writing the cache mishandles newlines in values,
30372 # but we know of no workaround that is simple, portable, and efficient.
30373 # So, we kill variables containing newlines.
30374 # Ultrix sh set writes to stderr and can't be redirected directly,
30375 # and sets the high bit in the cache file unless we assign to the vars.
30376 (
30377   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30378     eval ac_val=\$$ac_var
30379     case $ac_val in #(
30380     *${as_nl}*)
30381       case $ac_var in #(
30382       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30383 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30384       esac
30385       case $ac_var in #(
30386       _ | IFS | as_nl) ;; #(
30387       *) $as_unset $ac_var ;;
30388       esac ;;
30389     esac
30390   done
30391
30392   (set) 2>&1 |
30393     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30394     *${as_nl}ac_space=\ *)
30395       # `set' does not quote correctly, so add quotes (double-quote
30396       # substitution turns \\\\ into \\, and sed turns \\ into \).
30397       sed -n \
30398         "s/'/'\\\\''/g;
30399           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30400       ;; #(
30401     *)
30402       # `set' quotes correctly as required by POSIX, so do not add quotes.
30403       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30404       ;;
30405     esac |
30406     sort
30407 ) |
30408   sed '
30409      /^ac_cv_env_/b end
30410      t clear
30411      :clear
30412      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30413      t end
30414      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30415      :end' >>confcache
30416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30417   if test -w "$cache_file"; then
30418     test "x$cache_file" != "x/dev/null" &&
30419       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30420 echo "$as_me: updating cache $cache_file" >&6;}
30421     cat confcache >$cache_file
30422   else
30423     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30424 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30425   fi
30426 fi
30427 rm -f confcache
30428
30429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30430 # Let make expand exec_prefix.
30431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30432
30433 DEFS=-DHAVE_CONFIG_H
30434
30435 ac_libobjs=
30436 ac_ltlibobjs=
30437 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30438   # 1. Remove the extension, and $U if already installed.
30439   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30440   ac_i=`echo "$ac_i" | sed "$ac_script"`
30441   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30442   #    will be set to the directory where LIBOBJS objects are built.
30443   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30444   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30445 done
30446 LIBOBJS=$ac_libobjs
30447
30448 LTLIBOBJS=$ac_ltlibobjs
30449
30450
30451
30452 : ${CONFIG_STATUS=./config.status}
30453 ac_clean_files_save=$ac_clean_files
30454 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30455 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30456 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30457 cat >$CONFIG_STATUS <<_ACEOF
30458 #! $SHELL
30459 # Generated by $as_me.
30460 # Run this file to recreate the current configuration.
30461 # Compiler output produced by configure, useful for debugging
30462 # configure, is in config.log if it exists.
30463
30464 debug=false
30465 ac_cs_recheck=false
30466 ac_cs_silent=false
30467 SHELL=\${CONFIG_SHELL-$SHELL}
30468 _ACEOF
30469
30470 cat >>$CONFIG_STATUS <<\_ACEOF
30471 ## --------------------- ##
30472 ## M4sh Initialization.  ##
30473 ## --------------------- ##
30474
30475 # Be more Bourne compatible
30476 DUALCASE=1; export DUALCASE # for MKS sh
30477 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30478   emulate sh
30479   NULLCMD=:
30480   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30481   # is contrary to our usage.  Disable this feature.
30482   alias -g '${1+"$@"}'='"$@"'
30483   setopt NO_GLOB_SUBST
30484 else
30485   case `(set -o) 2>/dev/null` in
30486   *posix*) set -o posix ;;
30487 esac
30488
30489 fi
30490
30491
30492
30493
30494 # PATH needs CR
30495 # Avoid depending upon Character Ranges.
30496 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30497 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30498 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30499 as_cr_digits='0123456789'
30500 as_cr_alnum=$as_cr_Letters$as_cr_digits
30501
30502 # The user is always right.
30503 if test "${PATH_SEPARATOR+set}" != set; then
30504   echo "#! /bin/sh" >conf$$.sh
30505   echo  "exit 0"   >>conf$$.sh
30506   chmod +x conf$$.sh
30507   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30508     PATH_SEPARATOR=';'
30509   else
30510     PATH_SEPARATOR=:
30511   fi
30512   rm -f conf$$.sh
30513 fi
30514
30515 # Support unset when possible.
30516 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30517   as_unset=unset
30518 else
30519   as_unset=false
30520 fi
30521
30522
30523 # IFS
30524 # We need space, tab and new line, in precisely that order.  Quoting is
30525 # there to prevent editors from complaining about space-tab.
30526 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30527 # splitting by setting IFS to empty value.)
30528 as_nl='
30529 '
30530 IFS=" ""        $as_nl"
30531
30532 # Find who we are.  Look in the path if we contain no directory separator.
30533 case $0 in
30534   *[\\/]* ) as_myself=$0 ;;
30535   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30536 for as_dir in $PATH
30537 do
30538   IFS=$as_save_IFS
30539   test -z "$as_dir" && as_dir=.
30540   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30541 done
30542 IFS=$as_save_IFS
30543
30544      ;;
30545 esac
30546 # We did not find ourselves, most probably we were run as `sh COMMAND'
30547 # in which case we are not to be found in the path.
30548 if test "x$as_myself" = x; then
30549   as_myself=$0
30550 fi
30551 if test ! -f "$as_myself"; then
30552   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30553   { (exit 1); exit 1; }
30554 fi
30555
30556 # Work around bugs in pre-3.0 UWIN ksh.
30557 for as_var in ENV MAIL MAILPATH
30558 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30559 done
30560 PS1='$ '
30561 PS2='> '
30562 PS4='+ '
30563
30564 # NLS nuisances.
30565 for as_var in \
30566   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30567   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30568   LC_TELEPHONE LC_TIME
30569 do
30570   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30571     eval $as_var=C; export $as_var
30572   else
30573     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30574   fi
30575 done
30576
30577 # Required to use basename.
30578 if expr a : '\(a\)' >/dev/null 2>&1 &&
30579    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30580   as_expr=expr
30581 else
30582   as_expr=false
30583 fi
30584
30585 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30586   as_basename=basename
30587 else
30588   as_basename=false
30589 fi
30590
30591
30592 # Name of the executable.
30593 as_me=`$as_basename -- "$0" ||
30594 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30595          X"$0" : 'X\(//\)$' \| \
30596          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30597 echo X/"$0" |
30598     sed '/^.*\/\([^/][^/]*\)\/*$/{
30599             s//\1/
30600             q
30601           }
30602           /^X\/\(\/\/\)$/{
30603             s//\1/
30604             q
30605           }
30606           /^X\/\(\/\).*/{
30607             s//\1/
30608             q
30609           }
30610           s/.*/./; q'`
30611
30612 # CDPATH.
30613 $as_unset CDPATH
30614
30615
30616
30617   as_lineno_1=$LINENO
30618   as_lineno_2=$LINENO
30619   test "x$as_lineno_1" != "x$as_lineno_2" &&
30620   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30621
30622   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30623   # uniformly replaced by the line number.  The first 'sed' inserts a
30624   # line-number line after each line using $LINENO; the second 'sed'
30625   # does the real work.  The second script uses 'N' to pair each
30626   # line-number line with the line containing $LINENO, and appends
30627   # trailing '-' during substitution so that $LINENO is not a special
30628   # case at line end.
30629   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30630   # scripts with optimization help from Paolo Bonzini.  Blame Lee
30631   # E. McMahon (1931-1989) for sed's syntax.  :-)
30632   sed -n '
30633     p
30634     /[$]LINENO/=
30635   ' <$as_myself |
30636     sed '
30637       s/[$]LINENO.*/&-/
30638       t lineno
30639       b
30640       :lineno
30641       N
30642       :loop
30643       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30644       t loop
30645       s/-\n.*//
30646     ' >$as_me.lineno &&
30647   chmod +x "$as_me.lineno" ||
30648     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30649    { (exit 1); exit 1; }; }
30650
30651   # Don't try to exec as it changes $[0], causing all sort of problems
30652   # (the dirname of $[0] is not the place where we might find the
30653   # original and so on.  Autoconf is especially sensitive to this).
30654   . "./$as_me.lineno"
30655   # Exit status is that of the last command.
30656   exit
30657 }
30658
30659
30660 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30661   as_dirname=dirname
30662 else
30663   as_dirname=false
30664 fi
30665
30666 ECHO_C= ECHO_N= ECHO_T=
30667 case `echo -n x` in
30668 -n*)
30669   case `echo 'x\c'` in
30670   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30671   *)   ECHO_C='\c';;
30672   esac;;
30673 *)
30674   ECHO_N='-n';;
30675 esac
30676
30677 if expr a : '\(a\)' >/dev/null 2>&1 &&
30678    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30679   as_expr=expr
30680 else
30681   as_expr=false
30682 fi
30683
30684 rm -f conf$$ conf$$.exe conf$$.file
30685 if test -d conf$$.dir; then
30686   rm -f conf$$.dir/conf$$.file
30687 else
30688   rm -f conf$$.dir
30689   mkdir conf$$.dir
30690 fi
30691 echo >conf$$.file
30692 if ln -s conf$$.file conf$$ 2>/dev/null; then
30693   as_ln_s='ln -s'
30694   # ... but there are two gotchas:
30695   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30696   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30697   # In both cases, we have to default to `cp -p'.
30698   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30699     as_ln_s='cp -p'
30700 elif ln conf$$.file conf$$ 2>/dev/null; then
30701   as_ln_s=ln
30702 else
30703   as_ln_s='cp -p'
30704 fi
30705 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30706 rmdir conf$$.dir 2>/dev/null
30707
30708 if mkdir -p . 2>/dev/null; then
30709   as_mkdir_p=:
30710 else
30711   test -d ./-p && rmdir ./-p
30712   as_mkdir_p=false
30713 fi
30714
30715 if test -x / >/dev/null 2>&1; then
30716   as_test_x='test -x'
30717 else
30718   if ls -dL / >/dev/null 2>&1; then
30719     as_ls_L_option=L
30720   else
30721     as_ls_L_option=
30722   fi
30723   as_test_x='
30724     eval sh -c '\''
30725       if test -d "$1"; then
30726         test -d "$1/.";
30727       else
30728         case $1 in
30729         -*)set "./$1";;
30730         esac;
30731         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30732         ???[sx]*):;;*)false;;esac;fi
30733     '\'' sh
30734   '
30735 fi
30736 as_executable_p=$as_test_x
30737
30738 # Sed expression to map a string onto a valid CPP name.
30739 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30740
30741 # Sed expression to map a string onto a valid variable name.
30742 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30743
30744
30745 exec 6>&1
30746
30747 # Save the log message, to keep $[0] and so on meaningful, and to
30748 # report actual input values of CONFIG_FILES etc. instead of their
30749 # values after options handling.
30750 ac_log="
30751 This file was extended by $as_me, which was
30752 generated by GNU Autoconf 2.61.  Invocation command line was
30753
30754   CONFIG_FILES    = $CONFIG_FILES
30755   CONFIG_HEADERS  = $CONFIG_HEADERS
30756   CONFIG_LINKS    = $CONFIG_LINKS
30757   CONFIG_COMMANDS = $CONFIG_COMMANDS
30758   $ $0 $@
30759
30760 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30761 "
30762
30763 _ACEOF
30764
30765 cat >>$CONFIG_STATUS <<_ACEOF
30766 # Files that config.status was made for.
30767 config_files="$ac_config_files"
30768 config_headers="$ac_config_headers"
30769 config_commands="$ac_config_commands"
30770
30771 _ACEOF
30772
30773 cat >>$CONFIG_STATUS <<\_ACEOF
30774 ac_cs_usage="\
30775 \`$as_me' instantiates files from templates according to the
30776 current configuration.
30777
30778 Usage: $0 [OPTIONS] [FILE]...
30779
30780   -h, --help       print this help, then exit
30781   -V, --version    print version number and configuration settings, then exit
30782   -q, --quiet      do not print progress messages
30783   -d, --debug      don't remove temporary files
30784       --recheck    update $as_me by reconfiguring in the same conditions
30785   --file=FILE[:TEMPLATE]
30786                    instantiate the configuration file FILE
30787   --header=FILE[:TEMPLATE]
30788                    instantiate the configuration header FILE
30789
30790 Configuration files:
30791 $config_files
30792
30793 Configuration headers:
30794 $config_headers
30795
30796 Configuration commands:
30797 $config_commands
30798
30799 Report bugs to <bug-autoconf@gnu.org>."
30800
30801 _ACEOF
30802 cat >>$CONFIG_STATUS <<_ACEOF
30803 ac_cs_version="\\
30804 config.status
30805 configured by $0, generated by GNU Autoconf 2.61,
30806   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30807
30808 Copyright (C) 2006 Free Software Foundation, Inc.
30809 This config.status script is free software; the Free Software Foundation
30810 gives unlimited permission to copy, distribute and modify it."
30811
30812 ac_pwd='$ac_pwd'
30813 srcdir='$srcdir'
30814 INSTALL='$INSTALL'
30815 _ACEOF
30816
30817 cat >>$CONFIG_STATUS <<\_ACEOF
30818 # If no file are specified by the user, then we need to provide default
30819 # value.  By we need to know if files were specified by the user.
30820 ac_need_defaults=:
30821 while test $# != 0
30822 do
30823   case $1 in
30824   --*=*)
30825     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30826     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30827     ac_shift=:
30828     ;;
30829   *)
30830     ac_option=$1
30831     ac_optarg=$2
30832     ac_shift=shift
30833     ;;
30834   esac
30835
30836   case $ac_option in
30837   # Handling of the options.
30838   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30839     ac_cs_recheck=: ;;
30840   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30841     echo "$ac_cs_version"; exit ;;
30842   --debug | --debu | --deb | --de | --d | -d )
30843     debug=: ;;
30844   --file | --fil | --fi | --f )
30845     $ac_shift
30846     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30847     ac_need_defaults=false;;
30848   --header | --heade | --head | --hea )
30849     $ac_shift
30850     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30851     ac_need_defaults=false;;
30852   --he | --h)
30853     # Conflict between --help and --header
30854     { echo "$as_me: error: ambiguous option: $1
30855 Try \`$0 --help' for more information." >&2
30856    { (exit 1); exit 1; }; };;
30857   --help | --hel | -h )
30858     echo "$ac_cs_usage"; exit ;;
30859   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30860   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30861     ac_cs_silent=: ;;
30862
30863   # This is an error.
30864   -*) { echo "$as_me: error: unrecognized option: $1
30865 Try \`$0 --help' for more information." >&2
30866    { (exit 1); exit 1; }; } ;;
30867
30868   *) ac_config_targets="$ac_config_targets $1"
30869      ac_need_defaults=false ;;
30870
30871   esac
30872   shift
30873 done
30874
30875 ac_configure_extra_args=
30876
30877 if $ac_cs_silent; then
30878   exec 6>/dev/null
30879   ac_configure_extra_args="$ac_configure_extra_args --silent"
30880 fi
30881
30882 _ACEOF
30883 cat >>$CONFIG_STATUS <<_ACEOF
30884 if \$ac_cs_recheck; then
30885   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30886   CONFIG_SHELL=$SHELL
30887   export CONFIG_SHELL
30888   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30889 fi
30890
30891 _ACEOF
30892 cat >>$CONFIG_STATUS <<\_ACEOF
30893 exec 5>>config.log
30894 {
30895   echo
30896   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30897 ## Running $as_me. ##
30898 _ASBOX
30899   echo "$ac_log"
30900 } >&5
30901
30902 _ACEOF
30903 cat >>$CONFIG_STATUS <<_ACEOF
30904 #
30905 # INIT-COMMANDS
30906 #
30907 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30908     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30909     # from automake.
30910     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30911     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30912     LINGUAS="${LINGUAS-%UNSET%}"
30913
30914
30915 _ACEOF
30916
30917 cat >>$CONFIG_STATUS <<\_ACEOF
30918
30919 # Handling of arguments.
30920 for ac_config_target in $ac_config_targets
30921 do
30922   case $ac_config_target in
30923     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30924     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30925     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30926     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30927     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30928     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30929     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30930     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30931     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30932     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30933     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30934     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30935     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30936     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30937     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30938     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30939     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30940     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30941     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30942     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30943     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30944     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30945     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30946     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30947     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30948     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30949     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30950     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30951     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30952     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30953     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30954     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30955     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30956     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30957     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30958     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30959     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30960     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30961     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30962     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30963     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30964     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30965     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30966     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30967     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30968     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30969     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30970     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30971     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30972     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30973     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30974     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30975     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30976     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30977     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30978     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30979     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30980     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30981     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30982     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30983     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30984     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30985     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30986     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30987     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30988     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30989     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30990     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30991     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30992     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30993     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30994     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30995     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30996     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30997     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30998     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30999     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
31000     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
31001     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
31002     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
31003     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
31004     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31005     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31006     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31007     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31008     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31009     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31010     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31011     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31012     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
31013     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
31014     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
31015     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
31016     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
31017     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
31018     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31019     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31020     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31021     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31022     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31023     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31024     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31025     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31026     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31027     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31028     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31029     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31030     "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
31031     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31032     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31033
31034   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31035 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31036    { (exit 1); exit 1; }; };;
31037   esac
31038 done
31039
31040
31041 # If the user did not use the arguments to specify the items to instantiate,
31042 # then the envvar interface is used.  Set only those that are not.
31043 # We use the long form for the default assignment because of an extremely
31044 # bizarre bug on SunOS 4.1.3.
31045 if $ac_need_defaults; then
31046   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31047   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31048   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31049 fi
31050
31051 # Have a temporary directory for convenience.  Make it in the build tree
31052 # simply because there is no reason against having it here, and in addition,
31053 # creating and moving files from /tmp can sometimes cause problems.
31054 # Hook for its removal unless debugging.
31055 # Note that there is a small window in which the directory will not be cleaned:
31056 # after its creation but before its name has been assigned to `$tmp'.
31057 $debug ||
31058 {
31059   tmp=
31060   trap 'exit_status=$?
31061   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31062 ' 0
31063   trap '{ (exit 1); exit 1; }' 1 2 13 15
31064 }
31065 # Create a (secure) tmp directory for tmp files.
31066
31067 {
31068   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31069   test -n "$tmp" && test -d "$tmp"
31070 }  ||
31071 {
31072   tmp=./conf$$-$RANDOM
31073   (umask 077 && mkdir "$tmp")
31074 } ||
31075 {
31076    echo "$me: cannot create a temporary directory in ." >&2
31077    { (exit 1); exit 1; }
31078 }
31079
31080 #
31081 # Set up the sed scripts for CONFIG_FILES section.
31082 #
31083
31084 # No need to generate the scripts if there are no CONFIG_FILES.
31085 # This happens for instance when ./config.status config.h
31086 if test -n "$CONFIG_FILES"; then
31087
31088 _ACEOF
31089
31090 # Create sed commands to just substitute file output variables.
31091
31092 # Remaining file output variables are in a fragment that also has non-file
31093 # output varibles.
31094
31095
31096
31097 ac_delim='%!_!# '
31098 for ac_last_try in false false false false false :; do
31099   cat >conf$$subs.sed <<_ACEOF
31100 SHELL!$SHELL$ac_delim
31101 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
31102 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
31103 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
31104 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
31105 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
31106 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
31107 exec_prefix!$exec_prefix$ac_delim
31108 prefix!$prefix$ac_delim
31109 program_transform_name!$program_transform_name$ac_delim
31110 bindir!$bindir$ac_delim
31111 sbindir!$sbindir$ac_delim
31112 libexecdir!$libexecdir$ac_delim
31113 datarootdir!$datarootdir$ac_delim
31114 datadir!$datadir$ac_delim
31115 sysconfdir!$sysconfdir$ac_delim
31116 sharedstatedir!$sharedstatedir$ac_delim
31117 localstatedir!$localstatedir$ac_delim
31118 includedir!$includedir$ac_delim
31119 oldincludedir!$oldincludedir$ac_delim
31120 docdir!$docdir$ac_delim
31121 infodir!$infodir$ac_delim
31122 htmldir!$htmldir$ac_delim
31123 dvidir!$dvidir$ac_delim
31124 pdfdir!$pdfdir$ac_delim
31125 psdir!$psdir$ac_delim
31126 libdir!$libdir$ac_delim
31127 localedir!$localedir$ac_delim
31128 mandir!$mandir$ac_delim
31129 DEFS!$DEFS$ac_delim
31130 ECHO_C!$ECHO_C$ac_delim
31131 ECHO_N!$ECHO_N$ac_delim
31132 ECHO_T!$ECHO_T$ac_delim
31133 LIBS!$LIBS$ac_delim
31134 build_alias!$build_alias$ac_delim
31135 host_alias!$host_alias$ac_delim
31136 target_alias!$target_alias$ac_delim
31137 BUILD_DIR!$BUILD_DIR$ac_delim
31138 TOP_DIR!$TOP_DIR$ac_delim
31139 TRUEPRG!$TRUEPRG$ac_delim
31140 FALSEPRG!$FALSEPRG$ac_delim
31141 VERSION!$VERSION$ac_delim
31142 DATE!$DATE$ac_delim
31143 LSMDATE!$LSMDATE$ac_delim
31144 CC!$CC$ac_delim
31145 CFLAGS!$CFLAGS$ac_delim
31146 LDFLAGS!$LDFLAGS$ac_delim
31147 CPPFLAGS!$CPPFLAGS$ac_delim
31148 ac_ct_CC!$ac_ct_CC$ac_delim
31149 EXEEXT!$EXEEXT$ac_delim
31150 OBJEXT!$OBJEXT$ac_delim
31151 CXX!$CXX$ac_delim
31152 CXXFLAGS!$CXXFLAGS$ac_delim
31153 ac_ct_CXX!$ac_ct_CXX$ac_delim
31154 CPP!$CPP$ac_delim
31155 GREP!$GREP$ac_delim
31156 EGREP!$EGREP$ac_delim
31157 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
31158 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
31159 INSTALL_DATA!$INSTALL_DATA$ac_delim
31160 RANLIB!$RANLIB$ac_delim
31161 MV!$MV$ac_delim
31162 RM!$RM$ac_delim
31163 CP!$CP$ac_delim
31164 SED!$SED$ac_delim
31165 ECHO!$ECHO$ac_delim
31166 CMP!$CMP$ac_delim
31167 TBL!$TBL$ac_delim
31168 AR!$AR$ac_delim
31169 OPENSSL!$OPENSSL$ac_delim
31170 MTX!$MTX$ac_delim
31171 DD!$DD$ac_delim
31172 MKISOFS!$MKISOFS$ac_delim
31173 PYTHON!$PYTHON$ac_delim
31174 GROWISOFS!$GROWISOFS$ac_delim
31175 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
31176 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
31177 PKGCONFIG!$PKGCONFIG$ac_delim
31178 QMAKE!$QMAKE$ac_delim
31179 QMAKEQT4!$QMAKEQT4$ac_delim
31180 WXCONFIG!$WXCONFIG$ac_delim
31181 WXFLAGS!$WXFLAGS$ac_delim
31182 CDRECORD!$CDRECORD$ac_delim
31183 PIDOF!$PIDOF$ac_delim
31184 AWK!$AWK$ac_delim
31185 ARFLAGS!$ARFLAGS$ac_delim
31186 MAKE_SHELL!$MAKE_SHELL$ac_delim
31187 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
31188 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
31189 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
31190 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
31191 build!$build$ac_delim
31192 build_cpu!$build_cpu$ac_delim
31193 build_vendor!$build_vendor$ac_delim
31194 _ACEOF
31195
31196   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
31197     break
31198   elif $ac_last_try; then
31199     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31200 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31201    { (exit 1); exit 1; }; }
31202   else
31203     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31204   fi
31205 done
31206
31207 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31208 if test -n "$ac_eof"; then
31209   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31210   ac_eof=`expr $ac_eof + 1`
31211 fi
31212
31213 cat >>$CONFIG_STATUS <<_ACEOF
31214 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
31215 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31216 /^[      ]*@MCOMMON@[    ]*$/{
31217 r $MCOMMON
31218 d
31219 }
31220 _ACEOF
31221 sed '
31222 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31223 s/^/s,@/; s/!/@,|#_!!_#|/
31224 :n
31225 t n
31226 s/'"$ac_delim"'$/,g/; t
31227 s/$/\\/; p
31228 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31229 ' >>$CONFIG_STATUS <conf$$subs.sed
31230 rm -f conf$$subs.sed
31231 cat >>$CONFIG_STATUS <<_ACEOF
31232 CEOF$ac_eof
31233 _ACEOF
31234
31235
31236 ac_delim='%!_!# '
31237 for ac_last_try in false false false false false :; do
31238   cat >conf$$subs.sed <<_ACEOF
31239 build_os!$build_os$ac_delim
31240 host!$host$ac_delim
31241 host_cpu!$host_cpu$ac_delim
31242 host_vendor!$host_vendor$ac_delim
31243 host_os!$host_os$ac_delim
31244 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31245 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31246 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31247 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31248 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31249 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31250 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31251 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31252 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31253 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31254 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31255 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31256 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31257 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31258 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31259 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31260 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31261 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31262 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31263 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31264 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31265 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31266 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31267 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31268 SET_MAKE!$SET_MAKE$ac_delim
31269 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31270 USE_NLS!$USE_NLS$ac_delim
31271 MSGFMT!$MSGFMT$ac_delim
31272 GMSGFMT!$GMSGFMT$ac_delim
31273 XGETTEXT!$XGETTEXT$ac_delim
31274 MSGMERGE!$MSGMERGE$ac_delim
31275 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31276 LIBICONV!$LIBICONV$ac_delim
31277 LTLIBICONV!$LTLIBICONV$ac_delim
31278 INTLLIBS!$INTLLIBS$ac_delim
31279 LIBINTL!$LIBINTL$ac_delim
31280 LTLIBINTL!$LTLIBINTL$ac_delim
31281 POSUB!$POSUB$ac_delim
31282 GLIBC2!$GLIBC2$ac_delim
31283 ALLOCA!$ALLOCA$ac_delim
31284 GLIBC21!$GLIBC21$ac_delim
31285 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31286 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31287 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31288 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31289 INTLBISON!$INTLBISON$ac_delim
31290 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31291 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31292 CATOBJEXT!$CATOBJEXT$ac_delim
31293 DATADIRNAME!$DATADIRNAME$ac_delim
31294 INSTOBJEXT!$INSTOBJEXT$ac_delim
31295 GENCAT!$GENCAT$ac_delim
31296 INTLOBJS!$INTLOBJS$ac_delim
31297 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31298 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31299 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31300 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31301 GNOME_LIBS!$GNOME_LIBS$ac_delim
31302 GNOME_DIR!$GNOME_DIR$ac_delim
31303 BAT_DIR!$BAT_DIR$ac_delim
31304 QWT_INC!$QWT_INC$ac_delim
31305 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31306 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31307 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31308 WX_DIR!$WX_DIR$ac_delim
31309 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31310 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31311 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31312 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31313 STATIC_FD!$STATIC_FD$ac_delim
31314 STATIC_SD!$STATIC_SD$ac_delim
31315 STATIC_DIR!$STATIC_DIR$ac_delim
31316 STATIC_CONS!$STATIC_CONS$ac_delim
31317 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31318 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31319 ALL_DIRS!$ALL_DIRS$ac_delim
31320 DIRD_DIR!$DIRD_DIR$ac_delim
31321 DIR_TOOLS!$DIR_TOOLS$ac_delim
31322 STORED_DIR!$STORED_DIR$ac_delim
31323 CONS_INC!$CONS_INC$ac_delim
31324 CONS_OBJ!$CONS_OBJ$ac_delim
31325 CONS_SRC!$CONS_SRC$ac_delim
31326 CONS_LIBS!$CONS_LIBS$ac_delim
31327 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31328 READLINE_SRC!$READLINE_SRC$ac_delim
31329 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31330 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31331 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31332 OPENSSL_INC!$OPENSSL_INC$ac_delim
31333 working_dir!$working_dir$ac_delim
31334 archivedir!$archivedir$ac_delim
31335 scriptdir!$scriptdir$ac_delim
31336 _ACEOF
31337
31338   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31339     break
31340   elif $ac_last_try; then
31341     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31342 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31343    { (exit 1); exit 1; }; }
31344   else
31345     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31346   fi
31347 done
31348
31349 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31350 if test -n "$ac_eof"; then
31351   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31352   ac_eof=`expr $ac_eof + 1`
31353 fi
31354
31355 cat >>$CONFIG_STATUS <<_ACEOF
31356 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31357 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31358 _ACEOF
31359 sed '
31360 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31361 s/^/s,@/; s/!/@,|#_!!_#|/
31362 :n
31363 t n
31364 s/'"$ac_delim"'$/,g/; t
31365 s/$/\\/; p
31366 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31367 ' >>$CONFIG_STATUS <conf$$subs.sed
31368 rm -f conf$$subs.sed
31369 cat >>$CONFIG_STATUS <<_ACEOF
31370 CEOF$ac_eof
31371 _ACEOF
31372
31373
31374 ac_delim='%!_!# '
31375 for ac_last_try in false false false false false :; do
31376   cat >conf$$subs.sed <<_ACEOF
31377 dump_email!$dump_email$ac_delim
31378 job_email!$job_email$ac_delim
31379 smtp_host!$smtp_host$ac_delim
31380 piddir!$piddir$ac_delim
31381 subsysdir!$subsysdir$ac_delim
31382 baseport!$baseport$ac_delim
31383 dir_port!$dir_port$ac_delim
31384 fd_port!$fd_port$ac_delim
31385 sd_port!$sd_port$ac_delim
31386 dir_password!$dir_password$ac_delim
31387 fd_password!$fd_password$ac_delim
31388 sd_password!$sd_password$ac_delim
31389 mon_dir_password!$mon_dir_password$ac_delim
31390 mon_fd_password!$mon_fd_password$ac_delim
31391 mon_sd_password!$mon_sd_password$ac_delim
31392 db_name!$db_name$ac_delim
31393 db_user!$db_user$ac_delim
31394 dir_user!$dir_user$ac_delim
31395 dir_group!$dir_group$ac_delim
31396 sd_user!$sd_user$ac_delim
31397 sd_group!$sd_group$ac_delim
31398 fd_user!$fd_user$ac_delim
31399 fd_group!$fd_group$ac_delim
31400 SBINPERM!$SBINPERM$ac_delim
31401 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31402 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31403 SQL_BINDIR!$SQL_BINDIR$ac_delim
31404 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
31405 DB_PROG!$DB_PROG$ac_delim
31406 cats!$cats$ac_delim
31407 DB_TYPE!$DB_TYPE$ac_delim
31408 GETCONF!$GETCONF$ac_delim
31409 XMKMF!$XMKMF$ac_delim
31410 X_CFLAGS!$X_CFLAGS$ac_delim
31411 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31412 X_LIBS!$X_LIBS$ac_delim
31413 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31414 LIBOBJS!$LIBOBJS$ac_delim
31415 FDLIBS!$FDLIBS$ac_delim
31416 DEBUG!$DEBUG$ac_delim
31417 DINCLUDE!$DINCLUDE$ac_delim
31418 DLIB!$DLIB$ac_delim
31419 DB_LIBS!$DB_LIBS$ac_delim
31420 WCFLAGS!$WCFLAGS$ac_delim
31421 WLDFLAGS!$WLDFLAGS$ac_delim
31422 WRAPLIBS!$WRAPLIBS$ac_delim
31423 OBJLIST!$OBJLIST$ac_delim
31424 hostname!$hostname$ac_delim
31425 TAPEDRIVE!$TAPEDRIVE$ac_delim
31426 PSCMD!$PSCMD$ac_delim
31427 WIN32!$WIN32$ac_delim
31428 MACOSX!$MACOSX$ac_delim
31429 DISTNAME!$DISTNAME$ac_delim
31430 DISTVER!$DISTVER$ac_delim
31431 LTLIBOBJS!$LTLIBOBJS$ac_delim
31432 _ACEOF
31433
31434   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 55; then
31435     break
31436   elif $ac_last_try; then
31437     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31438 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31439    { (exit 1); exit 1; }; }
31440   else
31441     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31442   fi
31443 done
31444
31445 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31446 if test -n "$ac_eof"; then
31447   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31448   ac_eof=`expr $ac_eof + 1`
31449 fi
31450
31451 cat >>$CONFIG_STATUS <<_ACEOF
31452 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31454 _ACEOF
31455 sed '
31456 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31457 s/^/s,@/; s/!/@,|#_!!_#|/
31458 :n
31459 t n
31460 s/'"$ac_delim"'$/,g/; t
31461 s/$/\\/; p
31462 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31463 ' >>$CONFIG_STATUS <conf$$subs.sed
31464 rm -f conf$$subs.sed
31465 cat >>$CONFIG_STATUS <<_ACEOF
31466 :end
31467 s/|#_!!_#|//g
31468 CEOF$ac_eof
31469 _ACEOF
31470
31471
31472 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31473 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31474 # trailing colons and then remove the whole line if VPATH becomes empty
31475 # (actually we leave an empty line to preserve line numbers).
31476 if test "x$srcdir" = x.; then
31477   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31478 s/:*\$(srcdir):*/:/
31479 s/:*\${srcdir}:*/:/
31480 s/:*@srcdir@:*/:/
31481 s/^\([^=]*=[     ]*\):*/\1/
31482 s/:*$//
31483 s/^[^=]*=[       ]*$//
31484 }'
31485 fi
31486
31487 cat >>$CONFIG_STATUS <<\_ACEOF
31488 fi # test -n "$CONFIG_FILES"
31489
31490
31491 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
31492 do
31493   case $ac_tag in
31494   :[FHLC]) ac_mode=$ac_tag; continue;;
31495   esac
31496   case $ac_mode$ac_tag in
31497   :[FHL]*:*);;
31498   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31499 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31500    { (exit 1); exit 1; }; };;
31501   :[FH]-) ac_tag=-:-;;
31502   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31503   esac
31504   ac_save_IFS=$IFS
31505   IFS=:
31506   set x $ac_tag
31507   IFS=$ac_save_IFS
31508   shift
31509   ac_file=$1
31510   shift
31511
31512   case $ac_mode in
31513   :L) ac_source=$1;;
31514   :[FH])
31515     ac_file_inputs=
31516     for ac_f
31517     do
31518       case $ac_f in
31519       -) ac_f="$tmp/stdin";;
31520       *) # Look for the file first in the build tree, then in the source tree
31521          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31522          # because $ac_f cannot contain `:'.
31523          test -f "$ac_f" ||
31524            case $ac_f in
31525            [\\/$]*) false;;
31526            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31527            esac ||
31528            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31529 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31530    { (exit 1); exit 1; }; };;
31531       esac
31532       ac_file_inputs="$ac_file_inputs $ac_f"
31533     done
31534
31535     # Let's still pretend it is `configure' which instantiates (i.e., don't
31536     # use $as_me), people would be surprised to read:
31537     #    /* config.h.  Generated by config.status.  */
31538     configure_input="Generated from "`IFS=:
31539           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31540     if test x"$ac_file" != x-; then
31541       configure_input="$ac_file.  $configure_input"
31542       { echo "$as_me:$LINENO: creating $ac_file" >&5
31543 echo "$as_me: creating $ac_file" >&6;}
31544     fi
31545
31546     case $ac_tag in
31547     *:-:* | *:-) cat >"$tmp/stdin";;
31548     esac
31549     ;;
31550   esac
31551
31552   ac_dir=`$as_dirname -- "$ac_file" ||
31553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31554          X"$ac_file" : 'X\(//\)[^/]' \| \
31555          X"$ac_file" : 'X\(//\)$' \| \
31556          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31557 echo X"$ac_file" |
31558     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31559             s//\1/
31560             q
31561           }
31562           /^X\(\/\/\)[^/].*/{
31563             s//\1/
31564             q
31565           }
31566           /^X\(\/\/\)$/{
31567             s//\1/
31568             q
31569           }
31570           /^X\(\/\).*/{
31571             s//\1/
31572             q
31573           }
31574           s/.*/./; q'`
31575   { as_dir="$ac_dir"
31576   case $as_dir in #(
31577   -*) as_dir=./$as_dir;;
31578   esac
31579   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31580     as_dirs=
31581     while :; do
31582       case $as_dir in #(
31583       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31584       *) as_qdir=$as_dir;;
31585       esac
31586       as_dirs="'$as_qdir' $as_dirs"
31587       as_dir=`$as_dirname -- "$as_dir" ||
31588 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31589          X"$as_dir" : 'X\(//\)[^/]' \| \
31590          X"$as_dir" : 'X\(//\)$' \| \
31591          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31592 echo X"$as_dir" |
31593     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31594             s//\1/
31595             q
31596           }
31597           /^X\(\/\/\)[^/].*/{
31598             s//\1/
31599             q
31600           }
31601           /^X\(\/\/\)$/{
31602             s//\1/
31603             q
31604           }
31605           /^X\(\/\).*/{
31606             s//\1/
31607             q
31608           }
31609           s/.*/./; q'`
31610       test -d "$as_dir" && break
31611     done
31612     test -z "$as_dirs" || eval "mkdir $as_dirs"
31613   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31614 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31615    { (exit 1); exit 1; }; }; }
31616   ac_builddir=.
31617
31618 case "$ac_dir" in
31619 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31620 *)
31621   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31622   # A ".." for each directory in $ac_dir_suffix.
31623   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31624   case $ac_top_builddir_sub in
31625   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31626   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31627   esac ;;
31628 esac
31629 ac_abs_top_builddir=$ac_pwd
31630 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31631 # for backward compatibility:
31632 ac_top_builddir=$ac_top_build_prefix
31633
31634 case $srcdir in
31635   .)  # We are building in place.
31636     ac_srcdir=.
31637     ac_top_srcdir=$ac_top_builddir_sub
31638     ac_abs_top_srcdir=$ac_pwd ;;
31639   [\\/]* | ?:[\\/]* )  # Absolute name.
31640     ac_srcdir=$srcdir$ac_dir_suffix;
31641     ac_top_srcdir=$srcdir
31642     ac_abs_top_srcdir=$srcdir ;;
31643   *) # Relative name.
31644     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31645     ac_top_srcdir=$ac_top_build_prefix$srcdir
31646     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31647 esac
31648 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31649
31650
31651   case $ac_mode in
31652   :F)
31653   #
31654   # CONFIG_FILE
31655   #
31656
31657   case $INSTALL in
31658   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31659   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31660   esac
31661 _ACEOF
31662
31663 cat >>$CONFIG_STATUS <<\_ACEOF
31664 # If the template does not know about datarootdir, expand it.
31665 # FIXME: This hack should be removed a few years after 2.60.
31666 ac_datarootdir_hack=; ac_datarootdir_seen=
31667
31668 case `sed -n '/datarootdir/ {
31669   p
31670   q
31671 }
31672 /@datadir@/p
31673 /@docdir@/p
31674 /@infodir@/p
31675 /@localedir@/p
31676 /@mandir@/p
31677 ' $ac_file_inputs` in
31678 *datarootdir*) ac_datarootdir_seen=yes;;
31679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31680   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31681 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31682 _ACEOF
31683 cat >>$CONFIG_STATUS <<_ACEOF
31684   ac_datarootdir_hack='
31685   s&@datadir@&$datadir&g
31686   s&@docdir@&$docdir&g
31687   s&@infodir@&$infodir&g
31688   s&@localedir@&$localedir&g
31689   s&@mandir@&$mandir&g
31690     s&\\\${datarootdir}&$datarootdir&g' ;;
31691 esac
31692 _ACEOF
31693
31694 # Neutralize VPATH when `$srcdir' = `.'.
31695 # Shell code in configure.ac might set extrasub.
31696 # FIXME: do we really want to maintain this feature?
31697 cat >>$CONFIG_STATUS <<_ACEOF
31698   sed "$ac_vpsub
31699 $extrasub
31700 _ACEOF
31701 cat >>$CONFIG_STATUS <<\_ACEOF
31702 :t
31703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31704 s&@configure_input@&$configure_input&;t t
31705 s&@top_builddir@&$ac_top_builddir_sub&;t t
31706 s&@srcdir@&$ac_srcdir&;t t
31707 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31708 s&@top_srcdir@&$ac_top_srcdir&;t t
31709 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31710 s&@builddir@&$ac_builddir&;t t
31711 s&@abs_builddir@&$ac_abs_builddir&;t t
31712 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31713 s&@INSTALL@&$ac_INSTALL&;t t
31714 $ac_datarootdir_hack
31715 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31716
31717 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31718   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31719   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31720   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31721 which seems to be undefined.  Please make sure it is defined." >&5
31722 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31723 which seems to be undefined.  Please make sure it is defined." >&2;}
31724
31725   rm -f "$tmp/stdin"
31726   case $ac_file in
31727   -) cat "$tmp/out"; rm -f "$tmp/out";;
31728   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31729   esac
31730  ;;
31731   :H)
31732   #
31733   # CONFIG_HEADER
31734   #
31735 _ACEOF
31736
31737 # Transform confdefs.h into a sed script `conftest.defines', that
31738 # substitutes the proper values into config.h.in to produce config.h.
31739 rm -f conftest.defines conftest.tail
31740 # First, append a space to every undef/define line, to ease matching.
31741 echo 's/$/ /' >conftest.defines
31742 # Then, protect against being on the right side of a sed subst, or in
31743 # an unquoted here document, in config.status.  If some macros were
31744 # called several times there might be several #defines for the same
31745 # symbol, which is useless.  But do not sort them, since the last
31746 # AC_DEFINE must be honored.
31747 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31748 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31749 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31750 # PARAMS is the parameter list in the macro definition--in most cases, it's
31751 # just an empty string.
31752 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
31753 ac_dB='\\)[      (].*,\\1define\\2'
31754 ac_dC=' '
31755 ac_dD=' ,'
31756
31757 uniq confdefs.h |
31758   sed -n '
31759         t rset
31760         :rset
31761         s/^[     ]*#[    ]*define[       ][      ]*//
31762         t ok
31763         d
31764         :ok
31765         s/[\\&,]/\\&/g
31766         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31767         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31768   ' >>conftest.defines
31769
31770 # Remove the space that was appended to ease matching.
31771 # Then replace #undef with comments.  This is necessary, for
31772 # example, in the case of _POSIX_SOURCE, which is predefined and required
31773 # on some systems where configure will not decide to define it.
31774 # (The regexp can be short, since the line contains either #define or #undef.)
31775 echo 's/ $//
31776 s,^[     #]*u.*,/* & */,' >>conftest.defines
31777
31778 # Break up conftest.defines:
31779 ac_max_sed_lines=50
31780
31781 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31782 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31783 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31784 # et cetera.
31785 ac_in='$ac_file_inputs'
31786 ac_out='"$tmp/out1"'
31787 ac_nxt='"$tmp/out2"'
31788
31789 while :
31790 do
31791   # Write a here document:
31792     cat >>$CONFIG_STATUS <<_ACEOF
31793     # First, check the format of the line:
31794     cat >"\$tmp/defines.sed" <<\\CEOF
31795 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
31796 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
31797 b
31798 :def
31799 _ACEOF
31800   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31801   echo 'CEOF
31802     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31803   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31804   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31805   grep . conftest.tail >/dev/null || break
31806   rm -f conftest.defines
31807   mv conftest.tail conftest.defines
31808 done
31809 rm -f conftest.defines conftest.tail
31810
31811 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31812 cat >>$CONFIG_STATUS <<\_ACEOF
31813   if test x"$ac_file" != x-; then
31814     echo "/* $configure_input  */" >"$tmp/config.h"
31815     cat "$ac_result" >>"$tmp/config.h"
31816     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31817       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31818 echo "$as_me: $ac_file is unchanged" >&6;}
31819     else
31820       rm -f $ac_file
31821       mv "$tmp/config.h" $ac_file
31822     fi
31823   else
31824     echo "/* $configure_input  */"
31825     cat "$ac_result"
31826   fi
31827   rm -f "$tmp/out12"
31828  ;;
31829
31830   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31831 echo "$as_me: executing $ac_file commands" >&6;}
31832  ;;
31833   esac
31834
31835
31836   case $ac_file$ac_mode in
31837     "default-1":C)
31838     for ac_file in $CONFIG_FILES; do
31839       # Support "outfile[:infile[:infile...]]"
31840       case "$ac_file" in
31841         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31842       esac
31843       # PO directories have a Makefile.in generated from Makefile.in.in.
31844       case "$ac_file" in */Makefile.in)
31845         # Adjust a relative srcdir.
31846         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31847         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31848         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31849         # In autoconf-2.13 it is called $ac_given_srcdir.
31850         # In autoconf-2.50 it is called $srcdir.
31851         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31852         case "$ac_given_srcdir" in
31853           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31854           /*) top_srcdir="$ac_given_srcdir" ;;
31855           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
31856         esac
31857         # Treat a directory as a PO directory if and only if it has a
31858         # POTFILES.in file. This allows packages to have multiple PO
31859         # directories under different names or in different locations.
31860         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31861           rm -f "$ac_dir/POTFILES"
31862           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31863           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31864           POMAKEFILEDEPS="POTFILES.in"
31865           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31866           # on $ac_dir but don't depend on user-specified configuration
31867           # parameters.
31868           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31869             # The LINGUAS file contains the set of available languages.
31870             if test -n "$OBSOLETE_ALL_LINGUAS"; then
31871               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31872             fi
31873             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31874             # Hide the ALL_LINGUAS assigment from automake.
31875             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31876             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31877           else
31878             # The set of available languages was given in configure.in.
31879             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31880           fi
31881           # Compute POFILES
31882           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31883           # Compute UPDATEPOFILES
31884           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31885           # Compute DUMMYPOFILES
31886           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31887           # Compute GMOFILES
31888           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31889           case "$ac_given_srcdir" in
31890             .) srcdirpre= ;;
31891             *) srcdirpre='$(srcdir)/' ;;
31892           esac
31893           POFILES=
31894           UPDATEPOFILES=
31895           DUMMYPOFILES=
31896           GMOFILES=
31897           for lang in $ALL_LINGUAS; do
31898             POFILES="$POFILES $srcdirpre$lang.po"
31899             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31900             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31901             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31902           done
31903           # CATALOGS depends on both $ac_dir and the user's LINGUAS
31904           # environment variable.
31905           INST_LINGUAS=
31906           if test -n "$ALL_LINGUAS"; then
31907             for presentlang in $ALL_LINGUAS; do
31908               useit=no
31909               if test "%UNSET%" != "$LINGUAS"; then
31910                 desiredlanguages="$LINGUAS"
31911               else
31912                 desiredlanguages="$ALL_LINGUAS"
31913               fi
31914               for desiredlang in $desiredlanguages; do
31915                 # Use the presentlang catalog if desiredlang is
31916                 #   a. equal to presentlang, or
31917                 #   b. a variant of presentlang (because in this case,
31918                 #      presentlang can be used as a fallback for messages
31919                 #      which are not translated in the desiredlang catalog).
31920                 case "$desiredlang" in
31921                   "$presentlang"*) useit=yes;;
31922                 esac
31923               done
31924               if test $useit = yes; then
31925                 INST_LINGUAS="$INST_LINGUAS $presentlang"
31926               fi
31927             done
31928           fi
31929           CATALOGS=
31930           if test -n "$INST_LINGUAS"; then
31931             for lang in $INST_LINGUAS; do
31932               CATALOGS="$CATALOGS $lang.gmo"
31933             done
31934           fi
31935           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31936           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"
31937           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31938             if test -f "$f"; then
31939               case "$f" in
31940                 *.orig | *.bak | *~) ;;
31941                 *) cat "$f" >> "$ac_dir/Makefile" ;;
31942               esac
31943             fi
31944           done
31945         fi
31946         ;;
31947       esac
31948     done ;;
31949     "default":C)
31950  ;;
31951
31952   esac
31953 done # for ac_tag
31954
31955
31956 { (exit 0); exit 0; }
31957 _ACEOF
31958 chmod +x $CONFIG_STATUS
31959 ac_clean_files=$ac_clean_files_save
31960
31961
31962 # configure is writing to config.log, and then calls config.status.
31963 # config.status does its own redirection, appending to config.log.
31964 # Unfortunately, on DOS this fails, as config.log is still kept open
31965 # by configure, so config.status won't be able to write to it; its
31966 # output is simply discarded.  So we exec the FD to /dev/null,
31967 # effectively closing config.log, so it can be properly (re)opened and
31968 # appended to by config.status.  When coming back to configure, we
31969 # need to make the FD available again.
31970 if test "$no_create" != yes; then
31971   ac_cs_success=:
31972   ac_config_status_args=
31973   test "$silent" = yes &&
31974     ac_config_status_args="$ac_config_status_args --quiet"
31975   exec 5>/dev/null
31976   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31977   exec 5>>config.log
31978   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31979   # would make configure fail if this is the last instruction.
31980   $ac_cs_success || { (exit 1); exit 1; }
31981 fi
31982
31983
31984 if test "${support_bat}" = "yes" ; then
31985   if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31986   echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31987   exit 1
31988   fi
31989
31990   QMAKEBIN="qmake"
31991
31992   if test "x$QMAKEQT4" != "xnone"; then
31993     QMAKEBIN=qmake-qt4
31994   fi
31995
31996
31997
31998   cd src/qt-console
31999   chmod 755 install_conf_file build-depkgs-qt-console
32000   echo "Creating bat Makefile"
32001   $QMAKEBIN
32002   cd ${BUILD_DIR}
32003 fi
32004
32005 echo "Doing make of dependencies"
32006 ${MAKE:-make} depend
32007
32008 cd scripts
32009 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32010 chmod 755 dvd-handler dvd-simulator
32011 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32012 cd ..
32013
32014 c=updatedb
32015 chmod 755 $c/update_mysql_tables_10_to_11       $c/update_sqlite3_tables_10_to_11
32016 chmod 755 $c/update_postgresql_tables_10_to_11  $c/update_sqlite_tables_10_to_11
32017
32018 c=src/cats
32019
32020 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32021 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32022
32023 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
32024 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
32025
32026 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32027 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32028
32029 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
32030 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
32031
32032 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32033 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32034
32035 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32036 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32037
32038 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
32039 chmod 755 $c/sqlite
32040 chmod 755 $c/mysql
32041
32042 chmod 755 src/win32/build-depkgs-mingw32
32043
32044
32045
32046 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32047    largefile_support="yes"
32048 fi
32049
32050 #
32051 # A whole lot of hand springs to get the compiler version.
32052 #  This is because gcc changed the output in version 3.0
32053 #
32054 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32055 if test "x${CCVERSION}" = "x" ; then
32056   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32057 fi
32058 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32059 if test x"${CXXVERSION}" = x ; then
32060   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32061 fi
32062
32063 if test "x${subsysdir}" = "x${sbindir}" ; then
32064    echo " "
32065    echo " "
32066    echo "You have set --sbindir and --with-subsys-dir"
32067    echo "  both equal to: ${subsysdir} "
32068    echo "  This is not permitted. Please reconfigure."
32069    echo " "
32070    echo "Aborting configuration ..."
32071    echo " "
32072    echo " "
32073    exit 1
32074 fi
32075
32076 if test "x${db_type}" = "xInternal" ; then
32077    echo " "
32078    echo " "
32079    echo "You have not specified either --enable-client-only or one of the"
32080    echo "  supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
32081    echo "  This is not permitted. Please reconfigure."
32082    echo " "
32083    echo "Aborting the configuration ..."
32084    echo " "
32085    echo " "
32086    exit 1
32087 fi
32088
32089 echo "
32090 Configuration on `date`:
32091
32092   Host:                       $host -- ${DISTNAME} ${DISTVER}
32093   Bacula version:             ${VERSION} (${DATE})
32094   Source code location:       ${srcdir}
32095   Install binaries:           ${sbindir}
32096   Install config files:       ${sysconfdir}
32097   Scripts directory:          ${scriptdir}
32098   Archive directory:          ${archivedir}
32099   Working directory:          ${working_dir}
32100   PID directory:              ${piddir}
32101   Subsys directory:           ${subsysdir}
32102   Man directory:              ${mandir}
32103   Data directory:             ${datadir}
32104   C Compiler:                 ${CC} ${CCVERSION}
32105   C++ Compiler:               ${CXX} ${CXXVERSION}
32106   Compiler flags:             ${WCFLAGS} ${CFLAGS}
32107   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
32108   Libraries:                  ${LIBS}
32109   Statically Linked Tools:    ${support_static_tools}
32110   Statically Linked FD:       ${support_static_fd}
32111   Statically Linked SD:       ${support_static_sd}
32112   Statically Linked DIR:      ${support_static_dir}
32113   Statically Linked CONS:     ${support_static_cons}
32114   Database type:              ${db_type}
32115   Database lib:               ${DB_LIBS}
32116   Database name:              ${db_name}
32117   Database user:              ${db_user}
32118
32119   Job Output Email:           ${job_email}
32120   Traceback Email:            ${dump_email}
32121   SMTP Host Address:          ${smtp_host}
32122
32123   Director Port:              ${dir_port}
32124   File daemon Port:           ${fd_port}
32125   Storage daemon Port:        ${sd_port}
32126
32127   Director User:              ${dir_user}
32128   Director Group:             ${dir_group}
32129   Storage Daemon User:        ${sd_user}
32130   Storage DaemonGroup:        ${sd_group}
32131   File Daemon User:           ${fd_user}
32132   File Daemon Group:          ${fd_group}
32133
32134   SQL binaries Directory      ${SQL_BINDIR}
32135
32136   Large file support:         $largefile_support
32137   Bacula conio support:       ${got_conio} ${CONS_LIBS}
32138   readline support:           ${got_readline} ${PRTREADLINE_SRC}
32139   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
32140   TLS support:                ${support_tls}
32141   Encryption support:         ${support_crypto}
32142   ZLIB support:               ${have_zlib}
32143   enable-smartalloc:          ${support_smartalloc}
32144   bat support:                ${support_bat} ${QWT_LDFLAGS}
32145   enable-gnome:               ${support_gnome} ${gnome_version}
32146   enable-bwx-console:         ${support_wx_console} ${wx_version}
32147   enable-tray-monitor:        ${support_tray_monitor}
32148   client-only:                ${build_client_only}
32149   build-dird:                 ${build_dird}
32150   build-stored:               ${build_stored}
32151   ACL support:                ${have_acl}
32152   Python support:             ${support_python} ${PYTHON_LIBS}
32153   Batch insert enabled:       ${support_batch_insert}
32154
32155   " > config.out
32156
32157 cat config.out